]> git.ipfire.org Git - thirdparty/bash.git/blob - autom4te.cache/output.0
commit bash-20051222 snapshot
[thirdparty/bash.git] / autom4te.cache / output.0
1 @%:@! /bin/sh
2 @%:@ From configure.in for Bash 3.2, version 3.186.
3 @%:@ Guess values for system-dependent variables and create Makefiles.
4 @%:@ Generated by GNU Autoconf 2.59 for bash 3.2-devel.
5 @%:@
6 @%:@ Report bugs to <bug-bash@gnu.org>.
7 @%:@
8 @%:@ Copyright (C) 2003 Free Software Foundation, Inc.
9 @%:@ This configure script is free software; the Free Software Foundation
10 @%:@ gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24 fi
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29 as_unset=unset
30 else
31 as_unset=false
32 fi
33
34
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
37 PS1='$ '
38 PS2='> '
39 PS4='+ '
40
41 # NLS nuisances.
42 for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46 do
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52 done
53
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57 else
58 as_expr=false
59 fi
60
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63 else
64 as_basename=false
65 fi
66
67
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74 echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100 fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 for as_dir in $PATH
114 do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118 done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155 done
156 ;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187 }
188
189
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192 ' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 esac
196
197 if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199 else
200 as_expr=false
201 fi
202
203 rm -f conf$$ conf$$.exe conf$$.file
204 echo >conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214 elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216 else
217 as_ln_s='cp -p'
218 fi
219 rm -f conf$$ conf$$.exe conf$$.file
220
221 if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223 else
224 test -d ./-p && rmdir ./-p
225 as_mkdir_p=false
226 fi
227
228 as_executable_p="test -f"
229
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237 # IFS
238 # We need space, tab and new line, in precisely that order.
239 as_nl='
240 '
241 IFS=" $as_nl"
242
243 # CDPATH.
244 $as_unset CDPATH
245
246
247 # Name of the host.
248 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249 # so uname gets run too.
250 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252 exec 6>&1
253
254 #
255 # Initializations.
256 #
257 ac_default_prefix=/usr/local
258 ac_config_libobj_dir=.
259 cross_compiling=no
260 subdirs=
261 MFLAGS=
262 MAKEFLAGS=
263 SHELL=${CONFIG_SHELL-/bin/sh}
264
265 # Maximum number of lines to put in a shell here document.
266 # This variable seems obsolete. It should probably be removed, and
267 # only ac_max_sed_lines should be used.
268 : ${ac_max_here_lines=38}
269
270 # Identity of this package.
271 PACKAGE_NAME='bash'
272 PACKAGE_TARNAME='bash'
273 PACKAGE_VERSION='3.2-devel'
274 PACKAGE_STRING='bash 3.2-devel'
275 PACKAGE_BUGREPORT='bug-bash@gnu.org'
276
277 ac_unique_file="shell.h"
278 # Factoring default headers for most tests.
279 ac_includes_default="\
280 #include <stdio.h>
281 #if HAVE_SYS_TYPES_H
282 # include <sys/types.h>
283 #endif
284 #if HAVE_SYS_STAT_H
285 # include <sys/stat.h>
286 #endif
287 #if STDC_HEADERS
288 # include <stdlib.h>
289 # include <stddef.h>
290 #else
291 # if HAVE_STDLIB_H
292 # include <stdlib.h>
293 # endif
294 #endif
295 #if HAVE_STRING_H
296 # if !STDC_HEADERS && HAVE_MEMORY_H
297 # include <memory.h>
298 # endif
299 # include <string.h>
300 #endif
301 #if HAVE_STRINGS_H
302 # include <strings.h>
303 #endif
304 #if HAVE_INTTYPES_H
305 # include <inttypes.h>
306 #else
307 # if HAVE_STDINT_H
308 # include <stdint.h>
309 # endif
310 #endif
311 #if HAVE_UNISTD_H
312 # include <unistd.h>
313 #endif"
314
315 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os EMACS lispdir DEBUGGER_START_FILE TESTSCRIPT PURIFY MALLOC_TARGET MALLOC_SRC MALLOC_LIB MALLOC_LIBRARY MALLOC_LDFLAGS MALLOC_DEP htmldir HELPDIR HELPDIRDEFINE HELPINSTALL HELPSTRINGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CROSS_COMPILE SIGNAMES_H SIGNAMES_O CC_FOR_BUILD STATIC_LD CFLAGS_FOR_BUILD CPPFLAGS_FOR_BUILD LDFLAGS_FOR_BUILD RL_VERSION RL_MAJOR RL_MINOR READLINE_LIB READLINE_DEP RL_LIBDIR RL_INCLUDEDIR RL_INCLUDE HISTORY_LIB HISTORY_DEP HIST_LIBDIR TILDE_LIB INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR RANLIB ac_ct_RANLIB YACC SET_MAKE MAKE_SHELL SIZE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE ALLOCA GLIBC21 LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIB@&t@OBJS INTL_DEP INTL_INC LIBINTL_H SIGLIST_O TERMCAP_LIB TERMCAP_DEP JOBS_O SHOBJ_CC SHOBJ_CFLAGS SHOBJ_LD SHOBJ_LDFLAGS SHOBJ_XLDFLAGS SHOBJ_LIBS SHOBJ_STATUS PROFILE_FLAGS incdir BUILD_DIR ARFLAGS BASHVERS RELSTATUS DEBUG MALLOC_DEBUG LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS LTLIBOBJS'
316 ac_subst_files=''
317
318 # Initialize some variables set by options.
319 ac_init_help=
320 ac_init_version=false
321 # The variables have the same names as the options, with
322 # dashes changed to underlines.
323 cache_file=/dev/null
324 exec_prefix=NONE
325 no_create=
326 no_recursion=
327 prefix=NONE
328 program_prefix=NONE
329 program_suffix=NONE
330 program_transform_name=s,x,x,
331 silent=
332 site=
333 srcdir=
334 verbose=
335 x_includes=NONE
336 x_libraries=NONE
337
338 # Installation directory options.
339 # These are left unexpanded so users can "make install exec_prefix=/foo"
340 # and all the variables that are supposed to be based on exec_prefix
341 # by default will actually change.
342 # Use braces instead of parens because sh, perl, etc. also accept them.
343 bindir='${exec_prefix}/bin'
344 sbindir='${exec_prefix}/sbin'
345 libexecdir='${exec_prefix}/libexec'
346 datadir='${prefix}/share'
347 sysconfdir='${prefix}/etc'
348 sharedstatedir='${prefix}/com'
349 localstatedir='${prefix}/var'
350 libdir='${exec_prefix}/lib'
351 includedir='${prefix}/include'
352 oldincludedir='/usr/include'
353 infodir='${prefix}/info'
354 mandir='${prefix}/man'
355
356 ac_prev=
357 for ac_option
358 do
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
370 case $ac_option in
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 bindir=$ac_optarg ;;
376
377 -build | --build | --buil | --bui | --bu)
378 ac_prev=build_alias ;;
379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
380 build_alias=$ac_optarg ;;
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
396 datadir=$ac_optarg ;;
397
398 -disable-* | --disable-*)
399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
400 # Reject names that are not valid shell variable names.
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
406
407 -enable-* | --enable-*)
408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
409 # Reject names that are not valid shell variable names.
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 *) ac_optarg=yes ;;
417 esac
418 eval "enable_$ac_feature='$ac_optarg'" ;;
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
427 exec_prefix=$ac_optarg ;;
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
439
440 -host | --host | --hos | --ho)
441 ac_prev=host_alias ;;
442 -host=* | --host=* | --hos=* | --ho=*)
443 host_alias=$ac_optarg ;;
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
450 includedir=$ac_optarg ;;
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
455 infodir=$ac_optarg ;;
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 libdir=$ac_optarg ;;
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
467 libexecdir=$ac_optarg ;;
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
476 localstatedir=$ac_optarg ;;
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 mandir=$ac_optarg ;;
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c | -n)
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
502 oldincludedir=$ac_optarg ;;
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 prefix=$ac_optarg ;;
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
514 program_prefix=$ac_optarg ;;
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
521 program_suffix=$ac_optarg ;;
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
538 program_transform_name=$ac_optarg ;;
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
548 sbindir=$ac_optarg ;;
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
559 sharedstatedir=$ac_optarg ;;
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
564 site=$ac_optarg ;;
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 srcdir=$ac_optarg ;;
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
576 sysconfdir=$ac_optarg ;;
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
579 ac_prev=target_alias ;;
580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
581 target_alias=$ac_optarg ;;
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
588
589 -with-* | --with-*)
590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
591 # Reject names that are not valid shell variable names.
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
595 ac_package=`echo $ac_package| sed 's/-/_/g'`
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 *) ac_optarg=yes ;;
599 esac
600 eval "with_$ac_package='$ac_optarg'" ;;
601
602 -without-* | --without-*)
603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
604 # Reject names that are not valid shell variable names.
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
620 x_includes=$ac_optarg ;;
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
627 x_libraries=$ac_optarg ;;
628
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630 Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
632 ;;
633
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
644 *)
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
650 ;;
651
652 esac
653 done
654
655 if test -n "$ac_prev"; then
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
659 fi
660
661 # Be sure to have absolute paths.
662 for ac_var in exec_prefix prefix
663 do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670 done
671
672 # Be sure to have absolute paths.
673 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
674 localstatedir libdir includedir oldincludedir infodir mandir
675 do
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
681 esac
682 done
683
684 # There might be people who depend on the old broken behavior: `$host'
685 # used to hold the argument of --host etc.
686 # FIXME: To remove some day.
687 build=$build_alias
688 host=$host_alias
689 target=$target_alias
690
691 # FIXME: To remove some day.
692 if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700 fi
701
702 ac_tool_prefix=
703 test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705 test "$silent" = yes && exec 6>/dev/null
706
707
708 # Find the source files, if location was not specified.
709 if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
718 echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728 else
729 ac_srcdir_defaulted=no
730 fi
731 if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
735 else
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
738 fi
739 fi
740 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744 ac_env_build_alias_set=${build_alias+set}
745 ac_env_build_alias_value=$build_alias
746 ac_cv_env_build_alias_set=${build_alias+set}
747 ac_cv_env_build_alias_value=$build_alias
748 ac_env_host_alias_set=${host_alias+set}
749 ac_env_host_alias_value=$host_alias
750 ac_cv_env_host_alias_set=${host_alias+set}
751 ac_cv_env_host_alias_value=$host_alias
752 ac_env_target_alias_set=${target_alias+set}
753 ac_env_target_alias_value=$target_alias
754 ac_cv_env_target_alias_set=${target_alias+set}
755 ac_cv_env_target_alias_value=$target_alias
756 ac_env_DEBUGGER_START_FILE_set=${DEBUGGER_START_FILE+set}
757 ac_env_DEBUGGER_START_FILE_value=$DEBUGGER_START_FILE
758 ac_cv_env_DEBUGGER_START_FILE_set=${DEBUGGER_START_FILE+set}
759 ac_cv_env_DEBUGGER_START_FILE_value=$DEBUGGER_START_FILE
760 ac_env_CC_set=${CC+set}
761 ac_env_CC_value=$CC
762 ac_cv_env_CC_set=${CC+set}
763 ac_cv_env_CC_value=$CC
764 ac_env_CFLAGS_set=${CFLAGS+set}
765 ac_env_CFLAGS_value=$CFLAGS
766 ac_cv_env_CFLAGS_set=${CFLAGS+set}
767 ac_cv_env_CFLAGS_value=$CFLAGS
768 ac_env_LDFLAGS_set=${LDFLAGS+set}
769 ac_env_LDFLAGS_value=$LDFLAGS
770 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
771 ac_cv_env_LDFLAGS_value=$LDFLAGS
772 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
773 ac_env_CPPFLAGS_value=$CPPFLAGS
774 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
775 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
780
781 #
782 # Report the --help message.
783 #
784 if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
787 cat <<_ACEOF
788 \`configure' configures bash 3.2-devel to adapt to many kinds of systems.
789
790 Usage: $0 [OPTION]... [VAR=VALUE]...
791
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE. See below for descriptions of some of the useful variables.
794
795 Defaults for the options are specified in brackets.
796
797 Configuration:
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
807
808 _ACEOF
809
810 cat <<_ACEOF
811 Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
813 [$ac_default_prefix]
814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
815 [PREFIX]
816
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
821
822 For better control, use the options below.
823
824 Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
837 _ACEOF
838
839 cat <<\_ACEOF
840
841 System types:
842 --build=BUILD configure for building on BUILD [guessed]
843 --host=HOST cross-compile to build programs to run on HOST [BUILD]
844 _ACEOF
845 fi
846
847 if test -n "$ac_init_help"; then
848 case $ac_init_help in
849 short | recursive ) echo "Configuration of bash 3.2-devel:";;
850 esac
851 cat <<\_ACEOF
852
853 Optional Features:
854 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
855 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
856 --enable-minimal-config a minimal sh-like configuration
857 --enable-alias enable shell aliases
858 --enable-arith-for-command
859 enable arithmetic for command
860 --enable-array-variables
861 include shell array variables
862 --enable-bang-history turn on csh-style history substitution
863 --enable-brace-expansion
864 include brace expansion
865 --enable-command-timing enable the time reserved word and command timing
866 --enable-cond-command enable the conditional command
867 --enable-cond-regexp enable extgended regular expression matching in
868 conditional commands
869 --enable-debugger enable support for bash debugger
870 --enable-directory-stack
871 enable builtins pushd/popd/dirs
872 --enable-disabled-builtins
873 allow disabled builtins to still be invoked
874 --enable-dparen-arithmetic
875 include ((...)) command
876 --enable-extended-glob include ksh-style extended pattern matching
877 --enable-help-builtin include the help builtin
878 --enable-history turn on command history
879 --enable-job-control enable job control features
880 --enable-multibyte enable multibyte characters if OS supports them
881 --enable-net-redirections
882 enable /dev/tcp/host/port redirection
883 --enable-process-substitution
884 enable process substitution
885 --enable-progcomp enable programmable completion and the complete
886 builtin
887 --enable-prompt-string-decoding
888 turn on escape character decoding in prompts
889 --enable-readline turn on command line editing
890 --enable-restricted enable a restricted shell
891 --enable-select include select command
892 --enable-separate-helpfiles
893 use external files for help builtin documentation
894 --enable-single-help-strings
895 store help documentation as a single string to ease
896 translation
897 --enable-strict-posix-default
898 configure bash to be posix-conformant by default
899 --enable-usg-echo-default
900 a synonym for --enable-xpg-echo-default
901 --enable-xpg-echo-default
902 make the echo builtin expand escape sequences by
903 default
904 --enable-mem-scramble scramble memory on calls to malloc and free
905 --enable-profiling allow profiling with gprof
906 --enable-static-link link bash statically, for use as a root shell
907 --disable-largefile omit support for large files
908 --disable-nls do not use Native Language Support
909 --disable-rpath do not hardcode runtime library paths
910
911 Optional Packages:
912 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
913 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
914 --with-lispdir override the default lisp directory
915 --with-afs if you are running AFS
916 --with-bash-malloc use the Bash version of malloc
917 --with-curses use the curses library instead of the termcap
918 library
919 --with-gnu-malloc synonym for --with-bash-malloc
920 --with-installed-readline
921 use a version of the readline library that is
922 already installed
923 --with-purecov configure to postprocess with pure coverage
924 --with-purify configure to postprocess with purify
925 --with-gnu-ld assume the C compiler uses GNU ld default=no
926 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
927 --without-libiconv-prefix don't search for libiconv in includedir and libdir
928 --with-included-gettext use the GNU gettext library included here
929 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
930 --without-libintl-prefix don't search for libintl in includedir and libdir
931
932 Some influential environment variables:
933 DEBUGGER_START_FILE
934 location of bash debugger initialization file
935 CC C compiler command
936 CFLAGS C compiler flags
937 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
938 nonstandard directory <lib dir>
939 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
940 headers in a nonstandard directory <include dir>
941 CPP C preprocessor
942
943 Use these variables to override the choices made by `configure' or to help
944 it to find libraries and programs with nonstandard names/locations.
945
946 Report bugs to <bug-bash@gnu.org>.
947 _ACEOF
948 fi
949
950 if test "$ac_init_help" = "recursive"; then
951 # If there are subdirs, report their specific --help.
952 ac_popdir=`pwd`
953 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
954 test -d $ac_dir || continue
955 ac_builddir=.
956
957 if test "$ac_dir" != .; then
958 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
959 # A "../" for each directory in $ac_dir_suffix.
960 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
961 else
962 ac_dir_suffix= ac_top_builddir=
963 fi
964
965 case $srcdir in
966 .) # No --srcdir option. We are building in place.
967 ac_srcdir=.
968 if test -z "$ac_top_builddir"; then
969 ac_top_srcdir=.
970 else
971 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
972 fi ;;
973 [\\/]* | ?:[\\/]* ) # Absolute path.
974 ac_srcdir=$srcdir$ac_dir_suffix;
975 ac_top_srcdir=$srcdir ;;
976 *) # Relative path.
977 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
978 ac_top_srcdir=$ac_top_builddir$srcdir ;;
979 esac
980
981 # Do not use `cd foo && pwd` to compute absolute paths, because
982 # the directories may not exist.
983 case `pwd` in
984 .) ac_abs_builddir="$ac_dir";;
985 *)
986 case "$ac_dir" in
987 .) ac_abs_builddir=`pwd`;;
988 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
989 *) ac_abs_builddir=`pwd`/"$ac_dir";;
990 esac;;
991 esac
992 case $ac_abs_builddir in
993 .) ac_abs_top_builddir=${ac_top_builddir}.;;
994 *)
995 case ${ac_top_builddir}. in
996 .) ac_abs_top_builddir=$ac_abs_builddir;;
997 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
998 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
999 esac;;
1000 esac
1001 case $ac_abs_builddir in
1002 .) ac_abs_srcdir=$ac_srcdir;;
1003 *)
1004 case $ac_srcdir in
1005 .) ac_abs_srcdir=$ac_abs_builddir;;
1006 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1007 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1008 esac;;
1009 esac
1010 case $ac_abs_builddir in
1011 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1012 *)
1013 case $ac_top_srcdir in
1014 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1015 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1016 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1017 esac;;
1018 esac
1019
1020 cd $ac_dir
1021 # Check for guested configure; otherwise get Cygnus style configure.
1022 if test -f $ac_srcdir/configure.gnu; then
1023 echo
1024 $SHELL $ac_srcdir/configure.gnu --help=recursive
1025 elif test -f $ac_srcdir/configure; then
1026 echo
1027 $SHELL $ac_srcdir/configure --help=recursive
1028 elif test -f $ac_srcdir/configure.ac ||
1029 test -f $ac_srcdir/configure.in; then
1030 echo
1031 $ac_configure --help
1032 else
1033 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1034 fi
1035 cd $ac_popdir
1036 done
1037 fi
1038
1039 test -n "$ac_init_help" && exit 0
1040 if $ac_init_version; then
1041 cat <<\_ACEOF
1042 bash configure 3.2-devel
1043 generated by GNU Autoconf 2.59
1044
1045 Copyright (C) 2003 Free Software Foundation, Inc.
1046 This configure script is free software; the Free Software Foundation
1047 gives unlimited permission to copy, distribute and modify it.
1048 _ACEOF
1049 exit 0
1050 fi
1051 exec 5>config.log
1052 cat >&5 <<_ACEOF
1053 This file contains any messages produced by compilers while
1054 running configure, to aid debugging if configure makes a mistake.
1055
1056 It was created by bash $as_me 3.2-devel, which was
1057 generated by GNU Autoconf 2.59. Invocation command line was
1058
1059 $ $0 $@
1060
1061 _ACEOF
1062 {
1063 cat <<_ASUNAME
1064 @%:@@%:@ --------- @%:@@%:@
1065 @%:@@%:@ Platform. @%:@@%:@
1066 @%:@@%:@ --------- @%:@@%:@
1067
1068 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1069 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1070 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1071 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1072 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1073
1074 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1075 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1076
1077 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1078 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1079 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1080 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1081 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1082 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1083 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1084
1085 _ASUNAME
1086
1087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1088 for as_dir in $PATH
1089 do
1090 IFS=$as_save_IFS
1091 test -z "$as_dir" && as_dir=.
1092 echo "PATH: $as_dir"
1093 done
1094
1095 } >&5
1096
1097 cat >&5 <<_ACEOF
1098
1099
1100 @%:@@%:@ ----------- @%:@@%:@
1101 @%:@@%:@ Core tests. @%:@@%:@
1102 @%:@@%:@ ----------- @%:@@%:@
1103
1104 _ACEOF
1105
1106
1107 # Keep a trace of the command line.
1108 # Strip out --no-create and --no-recursion so they do not pile up.
1109 # Strip out --silent because we don't want to record it for future runs.
1110 # Also quote any args containing shell meta-characters.
1111 # Make two passes to allow for proper duplicate-argument suppression.
1112 ac_configure_args=
1113 ac_configure_args0=
1114 ac_configure_args1=
1115 ac_sep=
1116 ac_must_keep_next=false
1117 for ac_pass in 1 2
1118 do
1119 for ac_arg
1120 do
1121 case $ac_arg in
1122 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1125 continue ;;
1126 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1127 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1128 esac
1129 case $ac_pass in
1130 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1131 2)
1132 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1133 if test $ac_must_keep_next = true; then
1134 ac_must_keep_next=false # Got value, back to normal.
1135 else
1136 case $ac_arg in
1137 *=* | --config-cache | -C | -disable-* | --disable-* \
1138 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1139 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1140 | -with-* | --with-* | -without-* | --without-* | --x)
1141 case "$ac_configure_args0 " in
1142 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1143 esac
1144 ;;
1145 -* ) ac_must_keep_next=true ;;
1146 esac
1147 fi
1148 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1149 # Get rid of the leading space.
1150 ac_sep=" "
1151 ;;
1152 esac
1153 done
1154 done
1155 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1156 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1157
1158 # When interrupted or exit'd, cleanup temporary files, and complete
1159 # config.log. We remove comments because anyway the quotes in there
1160 # would cause problems or look ugly.
1161 # WARNING: Be sure not to use single quotes in there, as some shells,
1162 # such as our DU 5.0 friend, will then `close' the trap.
1163 trap 'exit_status=$?
1164 # Save into config.log some information that might help in debugging.
1165 {
1166 echo
1167
1168 cat <<\_ASBOX
1169 @%:@@%:@ ---------------- @%:@@%:@
1170 @%:@@%:@ Cache variables. @%:@@%:@
1171 @%:@@%:@ ---------------- @%:@@%:@
1172 _ASBOX
1173 echo
1174 # The following way of writing the cache mishandles newlines in values,
1175 {
1176 (set) 2>&1 |
1177 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1178 *ac_space=\ *)
1179 sed -n \
1180 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1181 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1182 ;;
1183 *)
1184 sed -n \
1185 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1186 ;;
1187 esac;
1188 }
1189 echo
1190
1191 cat <<\_ASBOX
1192 @%:@@%:@ ----------------- @%:@@%:@
1193 @%:@@%:@ Output variables. @%:@@%:@
1194 @%:@@%:@ ----------------- @%:@@%:@
1195 _ASBOX
1196 echo
1197 for ac_var in $ac_subst_vars
1198 do
1199 eval ac_val=$`echo $ac_var`
1200 echo "$ac_var='"'"'$ac_val'"'"'"
1201 done | sort
1202 echo
1203
1204 if test -n "$ac_subst_files"; then
1205 cat <<\_ASBOX
1206 @%:@@%:@ ------------- @%:@@%:@
1207 @%:@@%:@ Output files. @%:@@%:@
1208 @%:@@%:@ ------------- @%:@@%:@
1209 _ASBOX
1210 echo
1211 for ac_var in $ac_subst_files
1212 do
1213 eval ac_val=$`echo $ac_var`
1214 echo "$ac_var='"'"'$ac_val'"'"'"
1215 done | sort
1216 echo
1217 fi
1218
1219 if test -s confdefs.h; then
1220 cat <<\_ASBOX
1221 @%:@@%:@ ----------- @%:@@%:@
1222 @%:@@%:@ confdefs.h. @%:@@%:@
1223 @%:@@%:@ ----------- @%:@@%:@
1224 _ASBOX
1225 echo
1226 sed "/^$/d" confdefs.h | sort
1227 echo
1228 fi
1229 test "$ac_signal" != 0 &&
1230 echo "$as_me: caught signal $ac_signal"
1231 echo "$as_me: exit $exit_status"
1232 } >&5
1233 rm -f core *.core &&
1234 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1235 exit $exit_status
1236 ' 0
1237 for ac_signal in 1 2 13 15; do
1238 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1239 done
1240 ac_signal=0
1241
1242 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1243 rm -rf conftest* confdefs.h
1244 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1245 echo >confdefs.h
1246
1247 # Predefined preprocessor variables.
1248
1249 cat >>confdefs.h <<_ACEOF
1250 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1251 _ACEOF
1252
1253
1254 cat >>confdefs.h <<_ACEOF
1255 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1256 _ACEOF
1257
1258
1259 cat >>confdefs.h <<_ACEOF
1260 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1261 _ACEOF
1262
1263
1264 cat >>confdefs.h <<_ACEOF
1265 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1266 _ACEOF
1267
1268
1269 cat >>confdefs.h <<_ACEOF
1270 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1271 _ACEOF
1272
1273
1274 # Let the site file select an alternate cache file if it wants to.
1275 # Prefer explicitly selected file to automatically selected ones.
1276 if test -z "$CONFIG_SITE"; then
1277 if test "x$prefix" != xNONE; then
1278 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1279 else
1280 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1281 fi
1282 fi
1283 for ac_site_file in $CONFIG_SITE; do
1284 if test -r "$ac_site_file"; then
1285 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1286 echo "$as_me: loading site script $ac_site_file" >&6;}
1287 sed 's/^/| /' "$ac_site_file" >&5
1288 . "$ac_site_file"
1289 fi
1290 done
1291
1292 if test -r "$cache_file"; then
1293 # Some versions of bash will fail to source /dev/null (special
1294 # files actually), so we avoid doing that.
1295 if test -f "$cache_file"; then
1296 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1297 echo "$as_me: loading cache $cache_file" >&6;}
1298 case $cache_file in
1299 [\\/]* | ?:[\\/]* ) . $cache_file;;
1300 *) . ./$cache_file;;
1301 esac
1302 fi
1303 else
1304 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1305 echo "$as_me: creating cache $cache_file" >&6;}
1306 >$cache_file
1307 fi
1308
1309 # Check that the precious variables saved in the cache have kept the same
1310 # value.
1311 ac_cache_corrupted=false
1312 for ac_var in `(set) 2>&1 |
1313 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1314 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1315 eval ac_new_set=\$ac_env_${ac_var}_set
1316 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1317 eval ac_new_val="\$ac_env_${ac_var}_value"
1318 case $ac_old_set,$ac_new_set in
1319 set,)
1320 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1321 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1322 ac_cache_corrupted=: ;;
1323 ,set)
1324 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1325 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1326 ac_cache_corrupted=: ;;
1327 ,);;
1328 *)
1329 if test "x$ac_old_val" != "x$ac_new_val"; then
1330 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1331 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1332 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1333 echo "$as_me: former value: $ac_old_val" >&2;}
1334 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1335 echo "$as_me: current value: $ac_new_val" >&2;}
1336 ac_cache_corrupted=:
1337 fi;;
1338 esac
1339 # Pass precious variables to config.status.
1340 if test "$ac_new_set" = set; then
1341 case $ac_new_val in
1342 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1343 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1344 *) ac_arg=$ac_var=$ac_new_val ;;
1345 esac
1346 case " $ac_configure_args " in
1347 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1348 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1349 esac
1350 fi
1351 done
1352 if $ac_cache_corrupted; then
1353 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1354 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1355 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1356 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1357 { (exit 1); exit 1; }; }
1358 fi
1359
1360 ac_ext=c
1361 ac_cpp='$CPP $CPPFLAGS'
1362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396 ac_aux_dir=
1397 for ac_dir in ./support $srcdir/./support; do
1398 if test -f $ac_dir/install-sh; then
1399 ac_aux_dir=$ac_dir
1400 ac_install_sh="$ac_aux_dir/install-sh -c"
1401 break
1402 elif test -f $ac_dir/install.sh; then
1403 ac_aux_dir=$ac_dir
1404 ac_install_sh="$ac_aux_dir/install.sh -c"
1405 break
1406 elif test -f $ac_dir/shtool; then
1407 ac_aux_dir=$ac_dir
1408 ac_install_sh="$ac_aux_dir/shtool install -c"
1409 break
1410 fi
1411 done
1412 if test -z "$ac_aux_dir"; then
1413 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&5
1414 echo "$as_me: error: cannot find install-sh or install.sh in ./support $srcdir/./support" >&2;}
1415 { (exit 1); exit 1; }; }
1416 fi
1417 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1418 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1419 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1420
1421 ac_config_headers="$ac_config_headers config.h"
1422
1423
1424 BASHVERS=3.2
1425 RELSTATUS=devel
1426
1427 case "$RELSTATUS" in
1428 alp*|bet*|dev*|rc*) DEBUG='-DDEBUG' MALLOC_DEBUG='-DMALLOC_DEBUG' ;;
1429 *) DEBUG= MALLOC_DEBUG= ;;
1430 esac
1431
1432 # Make sure we can run config.sub.
1433 $ac_config_sub sun4 >/dev/null 2>&1 ||
1434 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1435 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1436 { (exit 1); exit 1; }; }
1437
1438 echo "$as_me:$LINENO: checking build system type" >&5
1439 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1440 if test "${ac_cv_build+set}" = set; then
1441 echo $ECHO_N "(cached) $ECHO_C" >&6
1442 else
1443 ac_cv_build_alias=$build_alias
1444 test -z "$ac_cv_build_alias" &&
1445 ac_cv_build_alias=`$ac_config_guess`
1446 test -z "$ac_cv_build_alias" &&
1447 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1448 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1449 { (exit 1); exit 1; }; }
1450 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1451 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1452 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1453 { (exit 1); exit 1; }; }
1454
1455 fi
1456 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1457 echo "${ECHO_T}$ac_cv_build" >&6
1458 build=$ac_cv_build
1459 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1460 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1461 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1462
1463
1464 echo "$as_me:$LINENO: checking host system type" >&5
1465 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1466 if test "${ac_cv_host+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1468 else
1469 ac_cv_host_alias=$host_alias
1470 test -z "$ac_cv_host_alias" &&
1471 ac_cv_host_alias=$ac_cv_build_alias
1472 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1473 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1474 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1475 { (exit 1); exit 1; }; }
1476
1477 fi
1478 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1479 echo "${ECHO_T}$ac_cv_host" >&6
1480 host=$ac_cv_host
1481 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1482 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1483 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1484
1485
1486
1487 opt_bash_malloc=yes
1488 opt_purify=no
1489 opt_purecov=no
1490 opt_afs=no
1491 opt_curses=no
1492 opt_with_installed_readline=no
1493
1494 #htmldir=
1495
1496 case "${host_cpu}-${host_os}" in
1497 alpha*-*) opt_bash_malloc=no ;; # alpha running osf/1 or linux
1498 *[Cc]ray*-*) opt_bash_malloc=no ;; # Crays
1499 *-osf1*) opt_bash_malloc=no ;; # other osf/1 machines
1500 sparc-svr4*) opt_bash_malloc=no ;; # sparc SVR4, SVR4.2
1501 sparc-netbsd*) opt_bash_malloc=no ;; # needs 8-byte alignment
1502 mips-irix6*) opt_bash_malloc=no ;; # needs 8-byte alignment
1503 m68k-sysv) opt_bash_malloc=no ;; # fixes file descriptor leak in closedir
1504 sparc-linux*) opt_bash_malloc=no ;; # sparc running linux; requires ELF
1505 #*-freebsd*-gnu) opt_bash_malloc=no ;; # there's some undetermined problem here
1506 #*-freebsd*) opt_bash_malloc=no ;; # they claim it's better; I disagree
1507 *-openbsd*) opt_bash_malloc=no ;; # they claim it needs eight-bit alignment
1508 *-aix*) opt_bash_malloc=no ;; # AIX machines
1509 *-nextstep*) opt_bash_malloc=no ;; # NeXT machines running NeXTstep
1510 *-macos*) opt_bash_malloc=no ;; # Apple MacOS X
1511 *-rhapsody*) opt_bash_malloc=no ;; # Apple Rhapsody (MacOS X)
1512 *-darwin*) opt_bash_malloc=no ;; # Apple Darwin (MacOS X)
1513 *-dgux*) opt_bash_malloc=no ;; # DG/UX machines
1514 *-qnx*) opt_bash_malloc=no ;; # QNX 4.2, QNX 6.x
1515 *-machten4) opt_bash_malloc=no ;; # MachTen 4.x
1516 *-bsdi2.1|*-bsdi3.?) opt_bash_malloc=no ; : ${CC:=shlicc2} ;; # for loadable builtins
1517 *-beos*) opt_bash_malloc=no ;; # they say it's suitable
1518 *-cygwin*) opt_bash_malloc=no ;; # Cygnus's CYGWIN environment
1519 *-opennt*|*-interix*) opt_bash_malloc=no ;; # Interix, now owned by Microsoft
1520 esac
1521
1522 # memory scrambling on free()
1523 case "${host_os}" in
1524 sco3.2v5*|sco3.2v4*) opt_memscramble=no ;;
1525 *) opt_memscramble=yes ;;
1526 esac
1527
1528
1529 # Check whether --with-lispdir or --without-lispdir was given.
1530 if test "${with_lispdir+set}" = set; then
1531 withval="$with_lispdir"
1532 lispdir="$withval"
1533 echo "$as_me:$LINENO: checking where .elc files should go" >&5
1534 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
1535 echo "$as_me:$LINENO: result: $lispdir" >&5
1536 echo "${ECHO_T}$lispdir" >&6
1537 else
1538
1539 # If set to t, that means we are running in a shell under Emacs.
1540 # If you have an Emacs named "t", then use the full path.
1541 test x"$EMACS" = xt && EMACS=
1542 for ac_prog in emacs xemacs
1543 do
1544 # Extract the first word of "$ac_prog", so it can be a program name with args.
1545 set dummy $ac_prog; ac_word=$2
1546 echo "$as_me:$LINENO: checking for $ac_word" >&5
1547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548 if test "${ac_cv_prog_EMACS+set}" = set; then
1549 echo $ECHO_N "(cached) $ECHO_C" >&6
1550 else
1551 if test -n "$EMACS"; then
1552 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
1553 else
1554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1555 for as_dir in $PATH
1556 do
1557 IFS=$as_save_IFS
1558 test -z "$as_dir" && as_dir=.
1559 for ac_exec_ext in '' $ac_executable_extensions; do
1560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1561 ac_cv_prog_EMACS="$ac_prog"
1562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1563 break 2
1564 fi
1565 done
1566 done
1567
1568 fi
1569 fi
1570 EMACS=$ac_cv_prog_EMACS
1571 if test -n "$EMACS"; then
1572 echo "$as_me:$LINENO: result: $EMACS" >&5
1573 echo "${ECHO_T}$EMACS" >&6
1574 else
1575 echo "$as_me:$LINENO: result: no" >&5
1576 echo "${ECHO_T}no" >&6
1577 fi
1578
1579 test -n "$EMACS" && break
1580 done
1581 test -n "$EMACS" || EMACS="no"
1582
1583 if test $EMACS != "no"; then
1584 if test x${lispdir+set} != xset; then
1585 echo "$as_me:$LINENO: checking where .elc files should go" >&5
1586 echo $ECHO_N "checking where .elc files should go... $ECHO_C" >&6
1587 if test "${am_cv_lispdir+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 else
1590 am_cv_lispdir=`$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' | sed -n -e 's,/$,,' -e '/.*\/lib\/\(x\?emacs\/site-lisp\)$/{s,,${libdir}/\1,;p;q;}' -e '/.*\/share\/\(x\?emacs\/site-lisp\)$/{s,,${datadir}/\1,;p;q;}'`
1591 if test -z "$am_cv_lispdir"; then
1592 am_cv_lispdir='${datadir}/emacs/site-lisp'
1593 fi
1594
1595 fi
1596 echo "$as_me:$LINENO: result: $am_cv_lispdir" >&5
1597 echo "${ECHO_T}$am_cv_lispdir" >&6
1598 lispdir="$am_cv_lispdir"
1599 fi
1600 fi
1601
1602 fi;
1603
1604
1605
1606
1607
1608 # Check whether --with-afs or --without-afs was given.
1609 if test "${with_afs+set}" = set; then
1610 withval="$with_afs"
1611 opt_afs=$withval
1612 fi;
1613
1614 # Check whether --with-bash-malloc or --without-bash-malloc was given.
1615 if test "${with_bash_malloc+set}" = set; then
1616 withval="$with_bash_malloc"
1617 opt_bash_malloc=$withval
1618 fi;
1619
1620 # Check whether --with-curses or --without-curses was given.
1621 if test "${with_curses+set}" = set; then
1622 withval="$with_curses"
1623 opt_curses=$withval
1624 fi;
1625
1626 # Check whether --with-gnu-malloc or --without-gnu-malloc was given.
1627 if test "${with_gnu_malloc+set}" = set; then
1628 withval="$with_gnu_malloc"
1629 opt_bash_malloc=$withval
1630 fi;
1631
1632 # Check whether --with-installed-readline or --without-installed-readline was given.
1633 if test "${with_installed_readline+set}" = set; then
1634 withval="$with_installed_readline"
1635 opt_with_installed_readline=$withval
1636 fi;
1637
1638 # Check whether --with-purecov or --without-purecov was given.
1639 if test "${with_purecov+set}" = set; then
1640 withval="$with_purecov"
1641 opt_purecov=$withval
1642 fi;
1643
1644 # Check whether --with-purify or --without-purify was given.
1645 if test "${with_purify+set}" = set; then
1646 withval="$with_purify"
1647 opt_purify=$withval
1648 fi;
1649
1650 if test "$opt_bash_malloc" = yes; then
1651 MALLOC_TARGET=malloc
1652 MALLOC_SRC=malloc.c
1653
1654 MALLOC_LIB='-lmalloc'
1655 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
1656 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
1657 MALLOC_DEP='$(MALLOC_LIBRARY)'
1658
1659 cat >>confdefs.h <<\_ACEOF
1660 @%:@define USING_BASH_MALLOC 1
1661 _ACEOF
1662
1663 else
1664 MALLOC_LIB=
1665 MALLOC_LIBRARY=
1666 MALLOC_LDFLAGS=
1667 MALLOC_DEP=
1668 fi
1669
1670 if test "$opt_purify" = yes; then
1671 PURIFY="purify "
1672 cat >>confdefs.h <<\_ACEOF
1673 @%:@define DISABLE_MALLOC_WRAPPERS 1
1674 _ACEOF
1675
1676 else
1677 PURIFY=
1678 fi
1679
1680 if test "$opt_purecov" = yes; then
1681 PURIFY="${PURIFY}purecov"
1682 fi
1683
1684 if test "$opt_afs" = yes; then
1685 cat >>confdefs.h <<\_ACEOF
1686 @%:@define AFS 1
1687 _ACEOF
1688
1689 fi
1690
1691 if test "$opt_curses" = yes; then
1692 prefer_curses=yes
1693 fi
1694
1695 if test -z "${DEBUGGER_START_FILE}"; then
1696 DEBUGGER_START_FILE=${ac_default_prefix}/lib/bashdb/bashdb-main.inc
1697 fi
1698
1699 opt_minimal_config=no
1700
1701 opt_job_control=yes
1702 opt_alias=yes
1703 opt_readline=yes
1704 opt_history=yes
1705 opt_bang_history=yes
1706 opt_dirstack=yes
1707 opt_restricted=yes
1708 opt_process_subst=yes
1709 opt_prompt_decoding=yes
1710 opt_select=yes
1711 opt_help=yes
1712 opt_array_variables=yes
1713 opt_dparen_arith=yes
1714 opt_extended_glob=yes
1715 opt_brace_expansion=yes
1716 opt_disabled_builtins=no
1717 opt_command_timing=yes
1718 opt_xpg_echo=no
1719 opt_strict_posix=no
1720 opt_cond_command=yes
1721 opt_cond_regexp=yes
1722 opt_arith_for_command=yes
1723 opt_net_redirs=yes
1724 opt_progcomp=yes
1725 opt_separate_help=no
1726 opt_multibyte=yes
1727 opt_debugger=yes
1728 opt_single_longdoc_strings=yes
1729
1730 opt_static_link=no
1731 opt_profiling=no
1732
1733 # Check whether --enable-minimal-config or --disable-minimal-config was given.
1734 if test "${enable_minimal_config+set}" = set; then
1735 enableval="$enable_minimal_config"
1736 opt_minimal_config=$enableval
1737 fi;
1738
1739 if test $opt_minimal_config = yes; then
1740 opt_job_control=no opt_alias=no opt_readline=no
1741 opt_history=no opt_bang_history=no opt_dirstack=no
1742 opt_restricted=no opt_process_subst=no opt_prompt_decoding=no
1743 opt_select=no opt_help=no opt_array_variables=no opt_dparen_arith=no
1744 opt_brace_expansion=no opt_disabled_builtins=no opt_command_timing=no
1745 opt_extended_glob=no opt_cond_command=no opt_arith_for_command=no
1746 opt_net_redirs=no opt_progcomp=no opt_separate_help=no
1747 opt_multibyte=yes opt_cond_regexp=no
1748 fi
1749
1750 # Check whether --enable-alias or --disable-alias was given.
1751 if test "${enable_alias+set}" = set; then
1752 enableval="$enable_alias"
1753 opt_alias=$enableval
1754 fi;
1755 # Check whether --enable-arith-for-command or --disable-arith-for-command was given.
1756 if test "${enable_arith_for_command+set}" = set; then
1757 enableval="$enable_arith_for_command"
1758 opt_arith_for_command=$enableval
1759 fi;
1760 # Check whether --enable-array-variables or --disable-array-variables was given.
1761 if test "${enable_array_variables+set}" = set; then
1762 enableval="$enable_array_variables"
1763 opt_array_variables=$enableval
1764 fi;
1765 # Check whether --enable-bang-history or --disable-bang-history was given.
1766 if test "${enable_bang_history+set}" = set; then
1767 enableval="$enable_bang_history"
1768 opt_bang_history=$enableval
1769 fi;
1770 # Check whether --enable-brace-expansion or --disable-brace-expansion was given.
1771 if test "${enable_brace_expansion+set}" = set; then
1772 enableval="$enable_brace_expansion"
1773 opt_brace_expansion=$enableval
1774 fi;
1775 # Check whether --enable-command-timing or --disable-command-timing was given.
1776 if test "${enable_command_timing+set}" = set; then
1777 enableval="$enable_command_timing"
1778 opt_command_timing=$enableval
1779 fi;
1780 # Check whether --enable-cond-command or --disable-cond-command was given.
1781 if test "${enable_cond_command+set}" = set; then
1782 enableval="$enable_cond_command"
1783 opt_cond_command=$enableval
1784 fi;
1785 # Check whether --enable-cond-regexp or --disable-cond-regexp was given.
1786 if test "${enable_cond_regexp+set}" = set; then
1787 enableval="$enable_cond_regexp"
1788 opt_cond_regexp=$enableval
1789 fi;
1790 # Check whether --enable-debugger or --disable-debugger was given.
1791 if test "${enable_debugger+set}" = set; then
1792 enableval="$enable_debugger"
1793 opt_debugger=$enableval
1794 fi;
1795 # Check whether --enable-directory-stack or --disable-directory-stack was given.
1796 if test "${enable_directory_stack+set}" = set; then
1797 enableval="$enable_directory_stack"
1798 opt_dirstack=$enableval
1799 fi;
1800 # Check whether --enable-disabled-builtins or --disable-disabled-builtins was given.
1801 if test "${enable_disabled_builtins+set}" = set; then
1802 enableval="$enable_disabled_builtins"
1803 opt_disabled_builtins=$enableval
1804 fi;
1805 # Check whether --enable-dparen-arithmetic or --disable-dparen-arithmetic was given.
1806 if test "${enable_dparen_arithmetic+set}" = set; then
1807 enableval="$enable_dparen_arithmetic"
1808 opt_dparen_arith=$enableval
1809 fi;
1810 # Check whether --enable-extended-glob or --disable-extended-glob was given.
1811 if test "${enable_extended_glob+set}" = set; then
1812 enableval="$enable_extended_glob"
1813 opt_extended_glob=$enableval
1814 fi;
1815 # Check whether --enable-help-builtin or --disable-help-builtin was given.
1816 if test "${enable_help_builtin+set}" = set; then
1817 enableval="$enable_help_builtin"
1818 opt_help=$enableval
1819 fi;
1820 # Check whether --enable-history or --disable-history was given.
1821 if test "${enable_history+set}" = set; then
1822 enableval="$enable_history"
1823 opt_history=$enableval
1824 fi;
1825 # Check whether --enable-job-control or --disable-job-control was given.
1826 if test "${enable_job_control+set}" = set; then
1827 enableval="$enable_job_control"
1828 opt_job_control=$enableval
1829 fi;
1830 # Check whether --enable-multibyte or --disable-multibyte was given.
1831 if test "${enable_multibyte+set}" = set; then
1832 enableval="$enable_multibyte"
1833 opt_multibyte=$enableval
1834 fi;
1835 # Check whether --enable-net-redirections or --disable-net-redirections was given.
1836 if test "${enable_net_redirections+set}" = set; then
1837 enableval="$enable_net_redirections"
1838 opt_net_redirs=$enableval
1839 fi;
1840 # Check whether --enable-process-substitution or --disable-process-substitution was given.
1841 if test "${enable_process_substitution+set}" = set; then
1842 enableval="$enable_process_substitution"
1843 opt_process_subst=$enableval
1844 fi;
1845 # Check whether --enable-progcomp or --disable-progcomp was given.
1846 if test "${enable_progcomp+set}" = set; then
1847 enableval="$enable_progcomp"
1848 opt_progcomp=$enableval
1849 fi;
1850 # Check whether --enable-prompt-string-decoding or --disable-prompt-string-decoding was given.
1851 if test "${enable_prompt_string_decoding+set}" = set; then
1852 enableval="$enable_prompt_string_decoding"
1853 opt_prompt_decoding=$enableval
1854 fi;
1855 # Check whether --enable-readline or --disable-readline was given.
1856 if test "${enable_readline+set}" = set; then
1857 enableval="$enable_readline"
1858 opt_readline=$enableval
1859 fi;
1860 # Check whether --enable-restricted or --disable-restricted was given.
1861 if test "${enable_restricted+set}" = set; then
1862 enableval="$enable_restricted"
1863 opt_restricted=$enableval
1864 fi;
1865 # Check whether --enable-select or --disable-select was given.
1866 if test "${enable_select+set}" = set; then
1867 enableval="$enable_select"
1868 opt_select=$enableval
1869 fi;
1870 # Check whether --enable-separate-helpfiles or --disable-separate-helpfiles was given.
1871 if test "${enable_separate_helpfiles+set}" = set; then
1872 enableval="$enable_separate_helpfiles"
1873 opt_separate_help=$enableval
1874 fi;
1875 # Check whether --enable-single-help-strings or --disable-single-help-strings was given.
1876 if test "${enable_single_help_strings+set}" = set; then
1877 enableval="$enable_single_help_strings"
1878 opt_single_longdoc_strings=$enableval
1879 fi;
1880 # Check whether --enable-strict-posix-default or --disable-strict-posix-default was given.
1881 if test "${enable_strict_posix_default+set}" = set; then
1882 enableval="$enable_strict_posix_default"
1883 opt_strict_posix=$enableval
1884 fi;
1885 # Check whether --enable-usg-echo-default or --disable-usg-echo-default was given.
1886 if test "${enable_usg_echo_default+set}" = set; then
1887 enableval="$enable_usg_echo_default"
1888 opt_xpg_echo=$enableval
1889 fi;
1890 # Check whether --enable-xpg-echo-default or --disable-xpg-echo-default was given.
1891 if test "${enable_xpg_echo_default+set}" = set; then
1892 enableval="$enable_xpg_echo_default"
1893 opt_xpg_echo=$enableval
1894 fi;
1895
1896 # Check whether --enable-mem-scramble or --disable-mem-scramble was given.
1897 if test "${enable_mem_scramble+set}" = set; then
1898 enableval="$enable_mem_scramble"
1899 opt_memscramble=$enableval
1900 fi;
1901 # Check whether --enable-profiling or --disable-profiling was given.
1902 if test "${enable_profiling+set}" = set; then
1903 enableval="$enable_profiling"
1904 opt_profiling=$enableval
1905 fi;
1906 # Check whether --enable-static-link or --disable-static-link was given.
1907 if test "${enable_static_link+set}" = set; then
1908 enableval="$enable_static_link"
1909 opt_static_link=$enableval
1910 fi;
1911
1912
1913
1914 if test $opt_alias = yes; then
1915 cat >>confdefs.h <<\_ACEOF
1916 @%:@define ALIAS 1
1917 _ACEOF
1918
1919 fi
1920 if test $opt_dirstack = yes; then
1921 cat >>confdefs.h <<\_ACEOF
1922 @%:@define PUSHD_AND_POPD 1
1923 _ACEOF
1924
1925 fi
1926 if test $opt_restricted = yes; then
1927 cat >>confdefs.h <<\_ACEOF
1928 @%:@define RESTRICTED_SHELL 1
1929 _ACEOF
1930
1931 fi
1932 if test $opt_process_subst = yes; then
1933 cat >>confdefs.h <<\_ACEOF
1934 @%:@define PROCESS_SUBSTITUTION 1
1935 _ACEOF
1936
1937 fi
1938 if test $opt_prompt_decoding = yes; then
1939 cat >>confdefs.h <<\_ACEOF
1940 @%:@define PROMPT_STRING_DECODE 1
1941 _ACEOF
1942
1943 fi
1944 if test $opt_select = yes; then
1945 cat >>confdefs.h <<\_ACEOF
1946 @%:@define SELECT_COMMAND 1
1947 _ACEOF
1948
1949 fi
1950 if test $opt_help = yes; then
1951 cat >>confdefs.h <<\_ACEOF
1952 @%:@define HELP_BUILTIN 1
1953 _ACEOF
1954
1955 fi
1956 if test $opt_array_variables = yes; then
1957 cat >>confdefs.h <<\_ACEOF
1958 @%:@define ARRAY_VARS 1
1959 _ACEOF
1960
1961 fi
1962 if test $opt_dparen_arith = yes; then
1963 cat >>confdefs.h <<\_ACEOF
1964 @%:@define DPAREN_ARITHMETIC 1
1965 _ACEOF
1966
1967 fi
1968 if test $opt_brace_expansion = yes; then
1969 cat >>confdefs.h <<\_ACEOF
1970 @%:@define BRACE_EXPANSION 1
1971 _ACEOF
1972
1973 fi
1974 if test $opt_disabled_builtins = yes; then
1975 cat >>confdefs.h <<\_ACEOF
1976 @%:@define DISABLED_BUILTINS 1
1977 _ACEOF
1978
1979 fi
1980 if test $opt_command_timing = yes; then
1981 cat >>confdefs.h <<\_ACEOF
1982 @%:@define COMMAND_TIMING 1
1983 _ACEOF
1984
1985 fi
1986 if test $opt_xpg_echo = yes ; then
1987 cat >>confdefs.h <<\_ACEOF
1988 @%:@define DEFAULT_ECHO_TO_XPG 1
1989 _ACEOF
1990
1991 fi
1992 if test $opt_strict_posix = yes; then
1993 cat >>confdefs.h <<\_ACEOF
1994 @%:@define STRICT_POSIX 1
1995 _ACEOF
1996
1997 fi
1998 if test $opt_extended_glob = yes ; then
1999 cat >>confdefs.h <<\_ACEOF
2000 @%:@define EXTENDED_GLOB 1
2001 _ACEOF
2002
2003 fi
2004 if test $opt_cond_command = yes ; then
2005 cat >>confdefs.h <<\_ACEOF
2006 @%:@define COND_COMMAND 1
2007 _ACEOF
2008
2009 fi
2010 if test $opt_cond_regexp = yes ; then
2011 cat >>confdefs.h <<\_ACEOF
2012 @%:@define COND_REGEXP 1
2013 _ACEOF
2014
2015 fi
2016 if test $opt_arith_for_command = yes; then
2017 cat >>confdefs.h <<\_ACEOF
2018 @%:@define ARITH_FOR_COMMAND 1
2019 _ACEOF
2020
2021 fi
2022 if test $opt_net_redirs = yes; then
2023 cat >>confdefs.h <<\_ACEOF
2024 @%:@define NETWORK_REDIRECTIONS 1
2025 _ACEOF
2026
2027 fi
2028 if test $opt_progcomp = yes; then
2029 cat >>confdefs.h <<\_ACEOF
2030 @%:@define PROGRAMMABLE_COMPLETION 1
2031 _ACEOF
2032
2033 fi
2034 if test $opt_multibyte = no; then
2035 cat >>confdefs.h <<\_ACEOF
2036 @%:@define NO_MULTIBYTE_SUPPORT 1
2037 _ACEOF
2038
2039 fi
2040 if test $opt_debugger = yes; then
2041 cat >>confdefs.h <<\_ACEOF
2042 @%:@define DEBUGGER 1
2043 _ACEOF
2044
2045 fi
2046
2047 if test $opt_memscramble = yes; then
2048 cat >>confdefs.h <<\_ACEOF
2049 @%:@define MEMSCRAMBLE 1
2050 _ACEOF
2051
2052 fi
2053
2054 if test "$opt_minimal_config" = yes; then
2055 TESTSCRIPT=run-minimal
2056 else
2057 TESTSCRIPT=run-all
2058 fi
2059
2060 HELPDIR= HELPDIRDEFINE= HELPINSTALL=
2061 if test "$opt_separate_help" != no; then
2062 if test "$opt_separate_help" = "yes" ; then
2063 HELPDIR='${datadir}/bash'
2064 else
2065 HELPDIR=$opt_separate_help
2066 fi
2067 HELPDIRDEFINE='-H ${HELPDIR}'
2068 HELPINSTALL='install-help'
2069 fi
2070 HELPSTRINGS=
2071 if test "$opt_single_longdoc_strings" != "yes"; then
2072 HELPSTRINGS='-S'
2073 fi
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092 echo ""
2093 echo "Beginning configuration for bash-$BASHVERS-$RELSTATUS for ${host_cpu}-${host_vendor}-${host_os}"
2094 echo ""
2095
2096 ac_ext=c
2097 ac_cpp='$CPP $CPPFLAGS'
2098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2101 if test -n "$ac_tool_prefix"; then
2102 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2103 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2104 echo "$as_me:$LINENO: checking for $ac_word" >&5
2105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2106 if test "${ac_cv_prog_CC+set}" = set; then
2107 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 else
2109 if test -n "$CC"; then
2110 ac_cv_prog_CC="$CC" # Let the user override the test.
2111 else
2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113 for as_dir in $PATH
2114 do
2115 IFS=$as_save_IFS
2116 test -z "$as_dir" && as_dir=.
2117 for ac_exec_ext in '' $ac_executable_extensions; do
2118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2119 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121 break 2
2122 fi
2123 done
2124 done
2125
2126 fi
2127 fi
2128 CC=$ac_cv_prog_CC
2129 if test -n "$CC"; then
2130 echo "$as_me:$LINENO: result: $CC" >&5
2131 echo "${ECHO_T}$CC" >&6
2132 else
2133 echo "$as_me:$LINENO: result: no" >&5
2134 echo "${ECHO_T}no" >&6
2135 fi
2136
2137 fi
2138 if test -z "$ac_cv_prog_CC"; then
2139 ac_ct_CC=$CC
2140 # Extract the first word of "gcc", so it can be a program name with args.
2141 set dummy gcc; ac_word=$2
2142 echo "$as_me:$LINENO: checking for $ac_word" >&5
2143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2144 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2146 else
2147 if test -n "$ac_ct_CC"; then
2148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2149 else
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 for as_dir in $PATH
2152 do
2153 IFS=$as_save_IFS
2154 test -z "$as_dir" && as_dir=.
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2157 ac_cv_prog_ac_ct_CC="gcc"
2158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159 break 2
2160 fi
2161 done
2162 done
2163
2164 fi
2165 fi
2166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2167 if test -n "$ac_ct_CC"; then
2168 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2169 echo "${ECHO_T}$ac_ct_CC" >&6
2170 else
2171 echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6
2173 fi
2174
2175 CC=$ac_ct_CC
2176 else
2177 CC="$ac_cv_prog_CC"
2178 fi
2179
2180 if test -z "$CC"; then
2181 if test -n "$ac_tool_prefix"; then
2182 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2183 set dummy ${ac_tool_prefix}cc; ac_word=$2
2184 echo "$as_me:$LINENO: checking for $ac_word" >&5
2185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2186 if test "${ac_cv_prog_CC+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2188 else
2189 if test -n "$CC"; then
2190 ac_cv_prog_CC="$CC" # Let the user override the test.
2191 else
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 for as_dir in $PATH
2194 do
2195 IFS=$as_save_IFS
2196 test -z "$as_dir" && as_dir=.
2197 for ac_exec_ext in '' $ac_executable_extensions; do
2198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2199 ac_cv_prog_CC="${ac_tool_prefix}cc"
2200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201 break 2
2202 fi
2203 done
2204 done
2205
2206 fi
2207 fi
2208 CC=$ac_cv_prog_CC
2209 if test -n "$CC"; then
2210 echo "$as_me:$LINENO: result: $CC" >&5
2211 echo "${ECHO_T}$CC" >&6
2212 else
2213 echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6
2215 fi
2216
2217 fi
2218 if test -z "$ac_cv_prog_CC"; then
2219 ac_ct_CC=$CC
2220 # Extract the first word of "cc", so it can be a program name with args.
2221 set dummy cc; ac_word=$2
2222 echo "$as_me:$LINENO: checking for $ac_word" >&5
2223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2224 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2226 else
2227 if test -n "$ac_ct_CC"; then
2228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2229 else
2230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231 for as_dir in $PATH
2232 do
2233 IFS=$as_save_IFS
2234 test -z "$as_dir" && as_dir=.
2235 for ac_exec_ext in '' $ac_executable_extensions; do
2236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2237 ac_cv_prog_ac_ct_CC="cc"
2238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239 break 2
2240 fi
2241 done
2242 done
2243
2244 fi
2245 fi
2246 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2247 if test -n "$ac_ct_CC"; then
2248 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2249 echo "${ECHO_T}$ac_ct_CC" >&6
2250 else
2251 echo "$as_me:$LINENO: result: no" >&5
2252 echo "${ECHO_T}no" >&6
2253 fi
2254
2255 CC=$ac_ct_CC
2256 else
2257 CC="$ac_cv_prog_CC"
2258 fi
2259
2260 fi
2261 if test -z "$CC"; then
2262 # Extract the first word of "cc", so it can be a program name with args.
2263 set dummy cc; ac_word=$2
2264 echo "$as_me:$LINENO: checking for $ac_word" >&5
2265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2266 if test "${ac_cv_prog_CC+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2268 else
2269 if test -n "$CC"; then
2270 ac_cv_prog_CC="$CC" # Let the user override the test.
2271 else
2272 ac_prog_rejected=no
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274 for as_dir in $PATH
2275 do
2276 IFS=$as_save_IFS
2277 test -z "$as_dir" && as_dir=.
2278 for ac_exec_ext in '' $ac_executable_extensions; do
2279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2280 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2281 ac_prog_rejected=yes
2282 continue
2283 fi
2284 ac_cv_prog_CC="cc"
2285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286 break 2
2287 fi
2288 done
2289 done
2290
2291 if test $ac_prog_rejected = yes; then
2292 # We found a bogon in the path, so make sure we never use it.
2293 set dummy $ac_cv_prog_CC
2294 shift
2295 if test $@%:@ != 0; then
2296 # We chose a different compiler from the bogus one.
2297 # However, it has the same basename, so the bogon will be chosen
2298 # first if we set CC to just the basename; use the full file name.
2299 shift
2300 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2301 fi
2302 fi
2303 fi
2304 fi
2305 CC=$ac_cv_prog_CC
2306 if test -n "$CC"; then
2307 echo "$as_me:$LINENO: result: $CC" >&5
2308 echo "${ECHO_T}$CC" >&6
2309 else
2310 echo "$as_me:$LINENO: result: no" >&5
2311 echo "${ECHO_T}no" >&6
2312 fi
2313
2314 fi
2315 if test -z "$CC"; then
2316 if test -n "$ac_tool_prefix"; then
2317 for ac_prog in cl
2318 do
2319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2320 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2321 echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2323 if test "${ac_cv_prog_CC+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 else
2326 if test -n "$CC"; then
2327 ac_cv_prog_CC="$CC" # Let the user override the test.
2328 else
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 for as_dir in $PATH
2331 do
2332 IFS=$as_save_IFS
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2336 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 break 2
2339 fi
2340 done
2341 done
2342
2343 fi
2344 fi
2345 CC=$ac_cv_prog_CC
2346 if test -n "$CC"; then
2347 echo "$as_me:$LINENO: result: $CC" >&5
2348 echo "${ECHO_T}$CC" >&6
2349 else
2350 echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6
2352 fi
2353
2354 test -n "$CC" && break
2355 done
2356 fi
2357 if test -z "$CC"; then
2358 ac_ct_CC=$CC
2359 for ac_prog in cl
2360 do
2361 # Extract the first word of "$ac_prog", so it can be a program name with args.
2362 set dummy $ac_prog; ac_word=$2
2363 echo "$as_me:$LINENO: checking for $ac_word" >&5
2364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2365 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2366 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 else
2368 if test -n "$ac_ct_CC"; then
2369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2370 else
2371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 for as_dir in $PATH
2373 do
2374 IFS=$as_save_IFS
2375 test -z "$as_dir" && as_dir=.
2376 for ac_exec_ext in '' $ac_executable_extensions; do
2377 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2378 ac_cv_prog_ac_ct_CC="$ac_prog"
2379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380 break 2
2381 fi
2382 done
2383 done
2384
2385 fi
2386 fi
2387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2388 if test -n "$ac_ct_CC"; then
2389 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2390 echo "${ECHO_T}$ac_ct_CC" >&6
2391 else
2392 echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6
2394 fi
2395
2396 test -n "$ac_ct_CC" && break
2397 done
2398
2399 CC=$ac_ct_CC
2400 fi
2401
2402 fi
2403
2404
2405 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2406 See \`config.log' for more details." >&5
2407 echo "$as_me: error: no acceptable C compiler found in \$PATH
2408 See \`config.log' for more details." >&2;}
2409 { (exit 1); exit 1; }; }
2410
2411 # Provide some information about the compiler.
2412 echo "$as_me:$LINENO:" \
2413 "checking for C compiler version" >&5
2414 ac_compiler=`set X $ac_compile; echo $2`
2415 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2416 (eval $ac_compiler --version </dev/null >&5) 2>&5
2417 ac_status=$?
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }
2420 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2421 (eval $ac_compiler -v </dev/null >&5) 2>&5
2422 ac_status=$?
2423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424 (exit $ac_status); }
2425 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2426 (eval $ac_compiler -V </dev/null >&5) 2>&5
2427 ac_status=$?
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }
2430
2431 cat >conftest.$ac_ext <<_ACEOF
2432 /* confdefs.h. */
2433 _ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h. */
2437
2438 int
2439 main ()
2440 {
2441
2442 ;
2443 return 0;
2444 }
2445 _ACEOF
2446 ac_clean_files_save=$ac_clean_files
2447 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2448 # Try to create an executable without -o first, disregard a.out.
2449 # It will help us diagnose broken compilers, and finding out an intuition
2450 # of exeext.
2451 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2452 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2453 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2454 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2455 (eval $ac_link_default) 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; then
2459 # Find the output, starting from the most likely. This scheme is
2460 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2461 # resort.
2462
2463 # Be careful to initialize this variable, since it used to be cached.
2464 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2465 ac_cv_exeext=
2466 # b.out is created by i960 compilers.
2467 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2468 do
2469 test -f "$ac_file" || continue
2470 case $ac_file in
2471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2472 ;;
2473 conftest.$ac_ext )
2474 # This is the source file.
2475 ;;
2476 [ab].out )
2477 # We found the default executable, but exeext='' is most
2478 # certainly right.
2479 break;;
2480 *.* )
2481 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2482 # FIXME: I believe we export ac_cv_exeext for Libtool,
2483 # but it would be cool to find out if it's true. Does anybody
2484 # maintain Libtool? --akim.
2485 export ac_cv_exeext
2486 break;;
2487 * )
2488 break;;
2489 esac
2490 done
2491 else
2492 echo "$as_me: failed program was:" >&5
2493 sed 's/^/| /' conftest.$ac_ext >&5
2494
2495 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2496 See \`config.log' for more details." >&5
2497 echo "$as_me: error: C compiler cannot create executables
2498 See \`config.log' for more details." >&2;}
2499 { (exit 77); exit 77; }; }
2500 fi
2501
2502 ac_exeext=$ac_cv_exeext
2503 echo "$as_me:$LINENO: result: $ac_file" >&5
2504 echo "${ECHO_T}$ac_file" >&6
2505
2506 # Check the compiler produces executables we can run. If not, either
2507 # the compiler is broken, or we cross compile.
2508 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2509 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2510 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2511 # If not cross compiling, check that we can run a simple program.
2512 if test "$cross_compiling" != yes; then
2513 if { ac_try='./$ac_file'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 cross_compiling=no
2520 else
2521 if test "$cross_compiling" = maybe; then
2522 cross_compiling=yes
2523 else
2524 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2525 If you meant to cross compile, use \`--host'.
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: cannot run C compiled programs.
2528 If you meant to cross compile, use \`--host'.
2529 See \`config.log' for more details." >&2;}
2530 { (exit 1); exit 1; }; }
2531 fi
2532 fi
2533 fi
2534 echo "$as_me:$LINENO: result: yes" >&5
2535 echo "${ECHO_T}yes" >&6
2536
2537 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2538 ac_clean_files=$ac_clean_files_save
2539 # Check the compiler produces executables we can run. If not, either
2540 # the compiler is broken, or we cross compile.
2541 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2542 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2543 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2544 echo "${ECHO_T}$cross_compiling" >&6
2545
2546 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2547 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2549 (eval $ac_link) 2>&5
2550 ac_status=$?
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; then
2553 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2554 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2555 # work properly (i.e., refer to `conftest.exe'), while it won't with
2556 # `rm'.
2557 for ac_file in conftest.exe conftest conftest.*; do
2558 test -f "$ac_file" || continue
2559 case $ac_file in
2560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2561 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2562 export ac_cv_exeext
2563 break;;
2564 * ) break;;
2565 esac
2566 done
2567 else
2568 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2569 See \`config.log' for more details." >&5
2570 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2571 See \`config.log' for more details." >&2;}
2572 { (exit 1); exit 1; }; }
2573 fi
2574
2575 rm -f conftest$ac_cv_exeext
2576 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2577 echo "${ECHO_T}$ac_cv_exeext" >&6
2578
2579 rm -f conftest.$ac_ext
2580 EXEEXT=$ac_cv_exeext
2581 ac_exeext=$EXEEXT
2582 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2583 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2584 if test "${ac_cv_objext+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 else
2587 cat >conftest.$ac_ext <<_ACEOF
2588 /* confdefs.h. */
2589 _ACEOF
2590 cat confdefs.h >>conftest.$ac_ext
2591 cat >>conftest.$ac_ext <<_ACEOF
2592 /* end confdefs.h. */
2593
2594 int
2595 main ()
2596 {
2597
2598 ;
2599 return 0;
2600 }
2601 _ACEOF
2602 rm -f conftest.o conftest.obj
2603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604 (eval $ac_compile) 2>&5
2605 ac_status=$?
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; then
2608 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2609 case $ac_file in
2610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2611 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2612 break;;
2613 esac
2614 done
2615 else
2616 echo "$as_me: failed program was:" >&5
2617 sed 's/^/| /' conftest.$ac_ext >&5
2618
2619 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2620 See \`config.log' for more details." >&5
2621 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2622 See \`config.log' for more details." >&2;}
2623 { (exit 1); exit 1; }; }
2624 fi
2625
2626 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2627 fi
2628 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2629 echo "${ECHO_T}$ac_cv_objext" >&6
2630 OBJEXT=$ac_cv_objext
2631 ac_objext=$OBJEXT
2632 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2633 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2634 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2636 else
2637 cat >conftest.$ac_ext <<_ACEOF
2638 /* confdefs.h. */
2639 _ACEOF
2640 cat confdefs.h >>conftest.$ac_ext
2641 cat >>conftest.$ac_ext <<_ACEOF
2642 /* end confdefs.h. */
2643
2644 int
2645 main ()
2646 {
2647 #ifndef __GNUC__
2648 choke me
2649 #endif
2650
2651 ;
2652 return 0;
2653 }
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657 (eval $ac_compile) 2>conftest.er1
2658 ac_status=$?
2659 grep -v '^ *+' conftest.er1 >conftest.err
2660 rm -f conftest.er1
2661 cat conftest.err >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } &&
2664 { ac_try='test -z "$ac_c_werror_flag"
2665 || test ! -s conftest.err'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 (eval $ac_try) 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; } &&
2671 { ac_try='test -s conftest.$ac_objext'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 (eval $ac_try) 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2677 ac_compiler_gnu=yes
2678 else
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2681
2682 ac_compiler_gnu=no
2683 fi
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2686
2687 fi
2688 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2689 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2690 GCC=`test $ac_compiler_gnu = yes && echo yes`
2691 ac_test_CFLAGS=${CFLAGS+set}
2692 ac_save_CFLAGS=$CFLAGS
2693 CFLAGS="-g"
2694 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2695 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2696 if test "${ac_cv_prog_cc_g+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699 cat >conftest.$ac_ext <<_ACEOF
2700 /* confdefs.h. */
2701 _ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h. */
2705
2706 int
2707 main ()
2708 {
2709
2710 ;
2711 return 0;
2712 }
2713 _ACEOF
2714 rm -f conftest.$ac_objext
2715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716 (eval $ac_compile) 2>conftest.er1
2717 ac_status=$?
2718 grep -v '^ *+' conftest.er1 >conftest.err
2719 rm -f conftest.er1
2720 cat conftest.err >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); } &&
2723 { ac_try='test -z "$ac_c_werror_flag"
2724 || test ! -s conftest.err'
2725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726 (eval $ac_try) 2>&5
2727 ac_status=$?
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; } &&
2730 { ac_try='test -s conftest.$ac_objext'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 (eval $ac_try) 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; }; then
2736 ac_cv_prog_cc_g=yes
2737 else
2738 echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2740
2741 ac_cv_prog_cc_g=no
2742 fi
2743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2744 fi
2745 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2746 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2747 if test "$ac_test_CFLAGS" = set; then
2748 CFLAGS=$ac_save_CFLAGS
2749 elif test $ac_cv_prog_cc_g = yes; then
2750 if test "$GCC" = yes; then
2751 CFLAGS="-g -O2"
2752 else
2753 CFLAGS="-g"
2754 fi
2755 else
2756 if test "$GCC" = yes; then
2757 CFLAGS="-O2"
2758 else
2759 CFLAGS=
2760 fi
2761 fi
2762 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2763 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2764 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 else
2767 ac_cv_prog_cc_stdc=no
2768 ac_save_CC=$CC
2769 cat >conftest.$ac_ext <<_ACEOF
2770 /* confdefs.h. */
2771 _ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2775 #include <stdarg.h>
2776 #include <stdio.h>
2777 #include <sys/types.h>
2778 #include <sys/stat.h>
2779 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2780 struct buf { int x; };
2781 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2782 static char *e (p, i)
2783 char **p;
2784 int i;
2785 {
2786 return p[i];
2787 }
2788 static char *f (char * (*g) (char **, int), char **p, ...)
2789 {
2790 char *s;
2791 va_list v;
2792 va_start (v,p);
2793 s = g (p, va_arg (v,int));
2794 va_end (v);
2795 return s;
2796 }
2797
2798 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2799 function prototypes and stuff, but not '\xHH' hex character constants.
2800 These don't provoke an error unfortunately, instead are silently treated
2801 as 'x'. The following induces an error, until -std1 is added to get
2802 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2803 array size at least. It's necessary to write '\x00'==0 to get something
2804 that's true only with -std1. */
2805 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2806
2807 int test (int i, double x);
2808 struct s1 {int (*f) (int a);};
2809 struct s2 {int (*f) (double a);};
2810 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2811 int argc;
2812 char **argv;
2813 int
2814 main ()
2815 {
2816 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2817 ;
2818 return 0;
2819 }
2820 _ACEOF
2821 # Don't try gcc -ansi; that turns off useful extensions and
2822 # breaks some systems' header files.
2823 # AIX -qlanglvl=ansi
2824 # Ultrix and OSF/1 -std1
2825 # HP-UX 10.20 and later -Ae
2826 # HP-UX older versions -Aa -D_HPUX_SOURCE
2827 # SVR4 -Xc -D__EXTENSIONS__
2828 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2829 do
2830 CC="$ac_save_CC $ac_arg"
2831 rm -f conftest.$ac_objext
2832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2833 (eval $ac_compile) 2>conftest.er1
2834 ac_status=$?
2835 grep -v '^ *+' conftest.er1 >conftest.err
2836 rm -f conftest.er1
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 { ac_try='test -z "$ac_c_werror_flag"
2841 || test ! -s conftest.err'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 (eval $ac_try) 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; } &&
2847 { ac_try='test -s conftest.$ac_objext'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 (eval $ac_try) 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2853 ac_cv_prog_cc_stdc=$ac_arg
2854 break
2855 else
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2858
2859 fi
2860 rm -f conftest.err conftest.$ac_objext
2861 done
2862 rm -f conftest.$ac_ext conftest.$ac_objext
2863 CC=$ac_save_CC
2864
2865 fi
2866
2867 case "x$ac_cv_prog_cc_stdc" in
2868 x|xno)
2869 echo "$as_me:$LINENO: result: none needed" >&5
2870 echo "${ECHO_T}none needed" >&6 ;;
2871 *)
2872 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2873 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2874 CC="$CC $ac_cv_prog_cc_stdc" ;;
2875 esac
2876
2877 # Some people use a C++ compiler to compile C. Since we use `exit',
2878 # in C++ we need to declare it. In case someone uses the same compiler
2879 # for both compiling C and C++ we need to have the C++ compiler decide
2880 # the declaration of exit, since it's the most demanding environment.
2881 cat >conftest.$ac_ext <<_ACEOF
2882 @%:@ifndef __cplusplus
2883 choke me
2884 @%:@endif
2885 _ACEOF
2886 rm -f conftest.$ac_objext
2887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2888 (eval $ac_compile) 2>conftest.er1
2889 ac_status=$?
2890 grep -v '^ *+' conftest.er1 >conftest.err
2891 rm -f conftest.er1
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } &&
2895 { ac_try='test -z "$ac_c_werror_flag"
2896 || test ! -s conftest.err'
2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 (eval $ac_try) 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; } &&
2902 { ac_try='test -s conftest.$ac_objext'
2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904 (eval $ac_try) 2>&5
2905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; }; then
2908 for ac_declaration in \
2909 '' \
2910 'extern "C" void std::exit (int) throw (); using std::exit;' \
2911 'extern "C" void std::exit (int); using std::exit;' \
2912 'extern "C" void exit (int) throw ();' \
2913 'extern "C" void exit (int);' \
2914 'void exit (int);'
2915 do
2916 cat >conftest.$ac_ext <<_ACEOF
2917 /* confdefs.h. */
2918 _ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2922 $ac_declaration
2923 @%:@include <stdlib.h>
2924 int
2925 main ()
2926 {
2927 exit (42);
2928 ;
2929 return 0;
2930 }
2931 _ACEOF
2932 rm -f conftest.$ac_objext
2933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2934 (eval $ac_compile) 2>conftest.er1
2935 ac_status=$?
2936 grep -v '^ *+' conftest.er1 >conftest.err
2937 rm -f conftest.er1
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } &&
2941 { ac_try='test -z "$ac_c_werror_flag"
2942 || test ! -s conftest.err'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 (eval $ac_try) 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; } &&
2948 { ac_try='test -s conftest.$ac_objext'
2949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950 (eval $ac_try) 2>&5
2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; }; then
2954 :
2955 else
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2958
2959 continue
2960 fi
2961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2962 cat >conftest.$ac_ext <<_ACEOF
2963 /* confdefs.h. */
2964 _ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2968 $ac_declaration
2969 int
2970 main ()
2971 {
2972 exit (42);
2973 ;
2974 return 0;
2975 }
2976 _ACEOF
2977 rm -f conftest.$ac_objext
2978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2979 (eval $ac_compile) 2>conftest.er1
2980 ac_status=$?
2981 grep -v '^ *+' conftest.er1 >conftest.err
2982 rm -f conftest.er1
2983 cat conftest.err >&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); } &&
2986 { ac_try='test -z "$ac_c_werror_flag"
2987 || test ! -s conftest.err'
2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989 (eval $ac_try) 2>&5
2990 ac_status=$?
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; } &&
2993 { ac_try='test -s conftest.$ac_objext'
2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 (eval $ac_try) 2>&5
2996 ac_status=$?
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
2999 break
3000 else
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3003
3004 fi
3005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3006 done
3007 rm -f conftest*
3008 if test -n "$ac_declaration"; then
3009 echo '#ifdef __cplusplus' >>confdefs.h
3010 echo $ac_declaration >>confdefs.h
3011 echo '#endif' >>confdefs.h
3012 fi
3013
3014 else
3015 echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3017
3018 fi
3019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3020 ac_ext=c
3021 ac_cpp='$CPP $CPPFLAGS'
3022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3025
3026
3027
3028
3029 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3030 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3031 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
3033 else
3034 ac_check_lib_save_LIBS=$LIBS
3035 LIBS="-lcposix $LIBS"
3036 cat >conftest.$ac_ext <<_ACEOF
3037 /* confdefs.h. */
3038 _ACEOF
3039 cat confdefs.h >>conftest.$ac_ext
3040 cat >>conftest.$ac_ext <<_ACEOF
3041 /* end confdefs.h. */
3042
3043 /* Override any gcc2 internal prototype to avoid an error. */
3044 #ifdef __cplusplus
3045 extern "C"
3046 #endif
3047 /* We use char because int might match the return type of a gcc2
3048 builtin and then its argument prototype would still apply. */
3049 char strerror ();
3050 int
3051 main ()
3052 {
3053 strerror ();
3054 ;
3055 return 0;
3056 }
3057 _ACEOF
3058 rm -f conftest.$ac_objext conftest$ac_exeext
3059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3060 (eval $ac_link) 2>conftest.er1
3061 ac_status=$?
3062 grep -v '^ *+' conftest.er1 >conftest.err
3063 rm -f conftest.er1
3064 cat conftest.err >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } &&
3067 { ac_try='test -z "$ac_c_werror_flag"
3068 || test ! -s conftest.err'
3069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070 (eval $ac_try) 2>&5
3071 ac_status=$?
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }; } &&
3074 { ac_try='test -s conftest$ac_exeext'
3075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076 (eval $ac_try) 2>&5
3077 ac_status=$?
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); }; }; then
3080 ac_cv_lib_cposix_strerror=yes
3081 else
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085 ac_cv_lib_cposix_strerror=no
3086 fi
3087 rm -f conftest.err conftest.$ac_objext \
3088 conftest$ac_exeext conftest.$ac_ext
3089 LIBS=$ac_check_lib_save_LIBS
3090 fi
3091 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3092 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3093 if test $ac_cv_lib_cposix_strerror = yes; then
3094 LIBS="$LIBS -lcposix"
3095 fi
3096
3097
3098
3099 ac_ext=c
3100 ac_cpp='$CPP $CPPFLAGS'
3101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3105 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3106 # On Suns, sometimes $CPP names a directory.
3107 if test -n "$CPP" && test -d "$CPP"; then
3108 CPP=
3109 fi
3110 if test -z "$CPP"; then
3111 if test "${ac_cv_prog_CPP+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 else
3114 # Double quotes because CPP needs to be expanded
3115 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3116 do
3117 ac_preproc_ok=false
3118 for ac_c_preproc_warn_flag in '' yes
3119 do
3120 # Use a header file that comes with gcc, so configuring glibc
3121 # with a fresh cross-compiler works.
3122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3123 # <limits.h> exists even on freestanding compilers.
3124 # On the NeXT, cc -E runs the code through the compiler's parser,
3125 # not just through cpp. "Syntax error" is here to catch this case.
3126 cat >conftest.$ac_ext <<_ACEOF
3127 /* confdefs.h. */
3128 _ACEOF
3129 cat confdefs.h >>conftest.$ac_ext
3130 cat >>conftest.$ac_ext <<_ACEOF
3131 /* end confdefs.h. */
3132 @%:@ifdef __STDC__
3133 @%:@ include <limits.h>
3134 @%:@else
3135 @%:@ include <assert.h>
3136 @%:@endif
3137 Syntax error
3138 _ACEOF
3139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3141 ac_status=$?
3142 grep -v '^ *+' conftest.er1 >conftest.err
3143 rm -f conftest.er1
3144 cat conftest.err >&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); } >/dev/null; then
3147 if test -s conftest.err; then
3148 ac_cpp_err=$ac_c_preproc_warn_flag
3149 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3150 else
3151 ac_cpp_err=
3152 fi
3153 else
3154 ac_cpp_err=yes
3155 fi
3156 if test -z "$ac_cpp_err"; then
3157 :
3158 else
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3161
3162 # Broken: fails on valid input.
3163 continue
3164 fi
3165 rm -f conftest.err conftest.$ac_ext
3166
3167 # OK, works on sane cases. Now check whether non-existent headers
3168 # can be detected and how.
3169 cat >conftest.$ac_ext <<_ACEOF
3170 /* confdefs.h. */
3171 _ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h. */
3175 @%:@include <ac_nonexistent.h>
3176 _ACEOF
3177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3179 ac_status=$?
3180 grep -v '^ *+' conftest.er1 >conftest.err
3181 rm -f conftest.er1
3182 cat conftest.err >&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } >/dev/null; then
3185 if test -s conftest.err; then
3186 ac_cpp_err=$ac_c_preproc_warn_flag
3187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3188 else
3189 ac_cpp_err=
3190 fi
3191 else
3192 ac_cpp_err=yes
3193 fi
3194 if test -z "$ac_cpp_err"; then
3195 # Broken: success on invalid input.
3196 continue
3197 else
3198 echo "$as_me: failed program was:" >&5
3199 sed 's/^/| /' conftest.$ac_ext >&5
3200
3201 # Passes both tests.
3202 ac_preproc_ok=:
3203 break
3204 fi
3205 rm -f conftest.err conftest.$ac_ext
3206
3207 done
3208 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3209 rm -f conftest.err conftest.$ac_ext
3210 if $ac_preproc_ok; then
3211 break
3212 fi
3213
3214 done
3215 ac_cv_prog_CPP=$CPP
3216
3217 fi
3218 CPP=$ac_cv_prog_CPP
3219 else
3220 ac_cv_prog_CPP=$CPP
3221 fi
3222 echo "$as_me:$LINENO: result: $CPP" >&5
3223 echo "${ECHO_T}$CPP" >&6
3224 ac_preproc_ok=false
3225 for ac_c_preproc_warn_flag in '' yes
3226 do
3227 # Use a header file that comes with gcc, so configuring glibc
3228 # with a fresh cross-compiler works.
3229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230 # <limits.h> exists even on freestanding compilers.
3231 # On the NeXT, cc -E runs the code through the compiler's parser,
3232 # not just through cpp. "Syntax error" is here to catch this case.
3233 cat >conftest.$ac_ext <<_ACEOF
3234 /* confdefs.h. */
3235 _ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3239 @%:@ifdef __STDC__
3240 @%:@ include <limits.h>
3241 @%:@else
3242 @%:@ include <assert.h>
3243 @%:@endif
3244 Syntax error
3245 _ACEOF
3246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3248 ac_status=$?
3249 grep -v '^ *+' conftest.er1 >conftest.err
3250 rm -f conftest.er1
3251 cat conftest.err >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } >/dev/null; then
3254 if test -s conftest.err; then
3255 ac_cpp_err=$ac_c_preproc_warn_flag
3256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3257 else
3258 ac_cpp_err=
3259 fi
3260 else
3261 ac_cpp_err=yes
3262 fi
3263 if test -z "$ac_cpp_err"; then
3264 :
3265 else
3266 echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3268
3269 # Broken: fails on valid input.
3270 continue
3271 fi
3272 rm -f conftest.err conftest.$ac_ext
3273
3274 # OK, works on sane cases. Now check whether non-existent headers
3275 # can be detected and how.
3276 cat >conftest.$ac_ext <<_ACEOF
3277 /* confdefs.h. */
3278 _ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3282 @%:@include <ac_nonexistent.h>
3283 _ACEOF
3284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3286 ac_status=$?
3287 grep -v '^ *+' conftest.er1 >conftest.err
3288 rm -f conftest.er1
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } >/dev/null; then
3292 if test -s conftest.err; then
3293 ac_cpp_err=$ac_c_preproc_warn_flag
3294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3295 else
3296 ac_cpp_err=
3297 fi
3298 else
3299 ac_cpp_err=yes
3300 fi
3301 if test -z "$ac_cpp_err"; then
3302 # Broken: success on invalid input.
3303 continue
3304 else
3305 echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3307
3308 # Passes both tests.
3309 ac_preproc_ok=:
3310 break
3311 fi
3312 rm -f conftest.err conftest.$ac_ext
3313
3314 done
3315 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3316 rm -f conftest.err conftest.$ac_ext
3317 if $ac_preproc_ok; then
3318 :
3319 else
3320 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3321 See \`config.log' for more details." >&5
3322 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3323 See \`config.log' for more details." >&2;}
3324 { (exit 1); exit 1; }; }
3325 fi
3326
3327 ac_ext=c
3328 ac_cpp='$CPP $CPPFLAGS'
3329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3332
3333
3334 echo "$as_me:$LINENO: checking for egrep" >&5
3335 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3336 if test "${ac_cv_prog_egrep+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3340 then ac_cv_prog_egrep='grep -E'
3341 else ac_cv_prog_egrep='egrep'
3342 fi
3343 fi
3344 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3345 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3346 EGREP=$ac_cv_prog_egrep
3347
3348
3349 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3350 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3351 if test "${ac_cv_header_stdc+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 else
3354 cat >conftest.$ac_ext <<_ACEOF
3355 /* confdefs.h. */
3356 _ACEOF
3357 cat confdefs.h >>conftest.$ac_ext
3358 cat >>conftest.$ac_ext <<_ACEOF
3359 /* end confdefs.h. */
3360 #include <stdlib.h>
3361 #include <stdarg.h>
3362 #include <string.h>
3363 #include <float.h>
3364
3365 int
3366 main ()
3367 {
3368
3369 ;
3370 return 0;
3371 }
3372 _ACEOF
3373 rm -f conftest.$ac_objext
3374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3375 (eval $ac_compile) 2>conftest.er1
3376 ac_status=$?
3377 grep -v '^ *+' conftest.er1 >conftest.err
3378 rm -f conftest.er1
3379 cat conftest.err >&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } &&
3382 { ac_try='test -z "$ac_c_werror_flag"
3383 || test ! -s conftest.err'
3384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385 (eval $ac_try) 2>&5
3386 ac_status=$?
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; } &&
3389 { ac_try='test -s conftest.$ac_objext'
3390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391 (eval $ac_try) 2>&5
3392 ac_status=$?
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; }; then
3395 ac_cv_header_stdc=yes
3396 else
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400 ac_cv_header_stdc=no
3401 fi
3402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3403
3404 if test $ac_cv_header_stdc = yes; then
3405 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3406 cat >conftest.$ac_ext <<_ACEOF
3407 /* confdefs.h. */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3412 #include <string.h>
3413
3414 _ACEOF
3415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3416 $EGREP "memchr" >/dev/null 2>&1; then
3417 :
3418 else
3419 ac_cv_header_stdc=no
3420 fi
3421 rm -f conftest*
3422
3423 fi
3424
3425 if test $ac_cv_header_stdc = yes; then
3426 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3427 cat >conftest.$ac_ext <<_ACEOF
3428 /* confdefs.h. */
3429 _ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h. */
3433 #include <stdlib.h>
3434
3435 _ACEOF
3436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3437 $EGREP "free" >/dev/null 2>&1; then
3438 :
3439 else
3440 ac_cv_header_stdc=no
3441 fi
3442 rm -f conftest*
3443
3444 fi
3445
3446 if test $ac_cv_header_stdc = yes; then
3447 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3448 if test "$cross_compiling" = yes; then
3449 :
3450 else
3451 cat >conftest.$ac_ext <<_ACEOF
3452 /* confdefs.h. */
3453 _ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3457 #include <ctype.h>
3458 #if ((' ' & 0x0FF) == 0x020)
3459 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3460 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3461 #else
3462 # define ISLOWER(c) \
3463 (('a' <= (c) && (c) <= 'i') \
3464 || ('j' <= (c) && (c) <= 'r') \
3465 || ('s' <= (c) && (c) <= 'z'))
3466 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3467 #endif
3468
3469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3470 int
3471 main ()
3472 {
3473 int i;
3474 for (i = 0; i < 256; i++)
3475 if (XOR (islower (i), ISLOWER (i))
3476 || toupper (i) != TOUPPER (i))
3477 exit(2);
3478 exit (0);
3479 }
3480 _ACEOF
3481 rm -f conftest$ac_exeext
3482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3483 (eval $ac_link) 2>&5
3484 ac_status=$?
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488 (eval $ac_try) 2>&5
3489 ac_status=$?
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }; }; then
3492 :
3493 else
3494 echo "$as_me: program exited with status $ac_status" >&5
3495 echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3497
3498 ( exit $ac_status )
3499 ac_cv_header_stdc=no
3500 fi
3501 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3502 fi
3503 fi
3504 fi
3505 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3506 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3507 if test $ac_cv_header_stdc = yes; then
3508
3509 cat >>confdefs.h <<\_ACEOF
3510 @%:@define STDC_HEADERS 1
3511 _ACEOF
3512
3513 fi
3514
3515 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3526 inttypes.h stdint.h unistd.h
3527 do
3528 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3529 echo "$as_me:$LINENO: checking for $ac_header" >&5
3530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3533 else
3534 cat >conftest.$ac_ext <<_ACEOF
3535 /* confdefs.h. */
3536 _ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3540 $ac_includes_default
3541
3542 @%:@include <$ac_header>
3543 _ACEOF
3544 rm -f conftest.$ac_objext
3545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3546 (eval $ac_compile) 2>conftest.er1
3547 ac_status=$?
3548 grep -v '^ *+' conftest.er1 >conftest.err
3549 rm -f conftest.er1
3550 cat conftest.err >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); } &&
3553 { ac_try='test -z "$ac_c_werror_flag"
3554 || test ! -s conftest.err'
3555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3556 (eval $ac_try) 2>&5
3557 ac_status=$?
3558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3559 (exit $ac_status); }; } &&
3560 { ac_try='test -s conftest.$ac_objext'
3561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562 (eval $ac_try) 2>&5
3563 ac_status=$?
3564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565 (exit $ac_status); }; }; then
3566 eval "$as_ac_Header=yes"
3567 else
3568 echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3570
3571 eval "$as_ac_Header=no"
3572 fi
3573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3574 fi
3575 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3576 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3578 cat >>confdefs.h <<_ACEOF
3579 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3580 _ACEOF
3581
3582 fi
3583
3584 done
3585
3586
3587 if test "${ac_cv_header_minix_config_h+set}" = set; then
3588 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3589 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3590 if test "${ac_cv_header_minix_config_h+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3592 fi
3593 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3594 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3595 else
3596 # Is the header compilable?
3597 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3598 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3599 cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h. */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3605 $ac_includes_default
3606 @%:@include <minix/config.h>
3607 _ACEOF
3608 rm -f conftest.$ac_objext
3609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3610 (eval $ac_compile) 2>conftest.er1
3611 ac_status=$?
3612 grep -v '^ *+' conftest.er1 >conftest.err
3613 rm -f conftest.er1
3614 cat conftest.err >&5
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); } &&
3617 { ac_try='test -z "$ac_c_werror_flag"
3618 || test ! -s conftest.err'
3619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3620 (eval $ac_try) 2>&5
3621 ac_status=$?
3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623 (exit $ac_status); }; } &&
3624 { ac_try='test -s conftest.$ac_objext'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 (eval $ac_try) 2>&5
3627 ac_status=$?
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; }; then
3630 ac_header_compiler=yes
3631 else
3632 echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635 ac_header_compiler=no
3636 fi
3637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3639 echo "${ECHO_T}$ac_header_compiler" >&6
3640
3641 # Is the header present?
3642 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3643 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3644 cat >conftest.$ac_ext <<_ACEOF
3645 /* confdefs.h. */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3650 @%:@include <minix/config.h>
3651 _ACEOF
3652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3654 ac_status=$?
3655 grep -v '^ *+' conftest.er1 >conftest.err
3656 rm -f conftest.er1
3657 cat conftest.err >&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } >/dev/null; then
3660 if test -s conftest.err; then
3661 ac_cpp_err=$ac_c_preproc_warn_flag
3662 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3663 else
3664 ac_cpp_err=
3665 fi
3666 else
3667 ac_cpp_err=yes
3668 fi
3669 if test -z "$ac_cpp_err"; then
3670 ac_header_preproc=yes
3671 else
3672 echo "$as_me: failed program was:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3674
3675 ac_header_preproc=no
3676 fi
3677 rm -f conftest.err conftest.$ac_ext
3678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3679 echo "${ECHO_T}$ac_header_preproc" >&6
3680
3681 # So? What about this header?
3682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3683 yes:no: )
3684 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3685 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3686 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3687 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3688 ac_header_preproc=yes
3689 ;;
3690 no:yes:* )
3691 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3692 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3693 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3694 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3695 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3696 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3697 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3698 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3699 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3700 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3701 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3702 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3703 (
3704 cat <<\_ASBOX
3705 @%:@@%:@ ------------------------------- @%:@@%:@
3706 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
3707 @%:@@%:@ ------------------------------- @%:@@%:@
3708 _ASBOX
3709 ) |
3710 sed "s/^/$as_me: WARNING: /" >&2
3711 ;;
3712 esac
3713 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3714 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3715 if test "${ac_cv_header_minix_config_h+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 else
3718 ac_cv_header_minix_config_h=$ac_header_preproc
3719 fi
3720 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3721 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3722
3723 fi
3724 if test $ac_cv_header_minix_config_h = yes; then
3725 MINIX=yes
3726 else
3727 MINIX=
3728 fi
3729
3730
3731 if test "$MINIX" = yes; then
3732
3733 cat >>confdefs.h <<\_ACEOF
3734 @%:@define _POSIX_SOURCE 1
3735 _ACEOF
3736
3737
3738 cat >>confdefs.h <<\_ACEOF
3739 @%:@define _POSIX_1_SOURCE 2
3740 _ACEOF
3741
3742
3743 cat >>confdefs.h <<\_ACEOF
3744 @%:@define _MINIX 1
3745 _ACEOF
3746
3747 fi
3748
3749
3750 # Check whether --enable-largefile or --disable-largefile was given.
3751 if test "${enable_largefile+set}" = set; then
3752 enableval="$enable_largefile"
3753
3754 fi;
3755 if test "$enable_largefile" != no; then
3756
3757 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3758 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3759 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762 ac_cv_sys_largefile_CC=no
3763 if test "$GCC" != yes; then
3764 ac_save_CC=$CC
3765 while :; do
3766 # IRIX 6.2 and later do not support large files by default,
3767 # so use the C compiler's -n32 option if that helps.
3768 cat >conftest.$ac_ext <<_ACEOF
3769 /* confdefs.h. */
3770 _ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3774 @%:@include <sys/types.h>
3775 /* Check that off_t can represent 2**63 - 1 correctly.
3776 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3777 since some C++ compilers masquerading as C compilers
3778 incorrectly reject 9223372036854775807. */
3779 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3780 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3781 && LARGE_OFF_T % 2147483647 == 1)
3782 ? 1 : -1];
3783 int
3784 main ()
3785 {
3786
3787 ;
3788 return 0;
3789 }
3790 _ACEOF
3791 rm -f conftest.$ac_objext
3792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3793 (eval $ac_compile) 2>conftest.er1
3794 ac_status=$?
3795 grep -v '^ *+' conftest.er1 >conftest.err
3796 rm -f conftest.er1
3797 cat conftest.err >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); } &&
3800 { ac_try='test -z "$ac_c_werror_flag"
3801 || test ! -s conftest.err'
3802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803 (eval $ac_try) 2>&5
3804 ac_status=$?
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); }; } &&
3807 { ac_try='test -s conftest.$ac_objext'
3808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809 (eval $ac_try) 2>&5
3810 ac_status=$?
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; }; then
3813 break
3814 else
3815 echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3817
3818 fi
3819 rm -f conftest.err conftest.$ac_objext
3820 CC="$CC -n32"
3821 rm -f conftest.$ac_objext
3822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3823 (eval $ac_compile) 2>conftest.er1
3824 ac_status=$?
3825 grep -v '^ *+' conftest.er1 >conftest.err
3826 rm -f conftest.er1
3827 cat conftest.err >&5
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); } &&
3830 { ac_try='test -z "$ac_c_werror_flag"
3831 || test ! -s conftest.err'
3832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833 (eval $ac_try) 2>&5
3834 ac_status=$?
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; } &&
3837 { ac_try='test -s conftest.$ac_objext'
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839 (eval $ac_try) 2>&5
3840 ac_status=$?
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; }; then
3843 ac_cv_sys_largefile_CC=' -n32'; break
3844 else
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3847
3848 fi
3849 rm -f conftest.err conftest.$ac_objext
3850 break
3851 done
3852 CC=$ac_save_CC
3853 rm -f conftest.$ac_ext
3854 fi
3855 fi
3856 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
3857 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3858 if test "$ac_cv_sys_largefile_CC" != no; then
3859 CC=$CC$ac_cv_sys_largefile_CC
3860 fi
3861
3862 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3863 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3864 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3866 else
3867 while :; do
3868 ac_cv_sys_file_offset_bits=no
3869 cat >conftest.$ac_ext <<_ACEOF
3870 /* confdefs.h. */
3871 _ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3875 @%:@include <sys/types.h>
3876 /* Check that off_t can represent 2**63 - 1 correctly.
3877 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3878 since some C++ compilers masquerading as C compilers
3879 incorrectly reject 9223372036854775807. */
3880 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3881 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3882 && LARGE_OFF_T % 2147483647 == 1)
3883 ? 1 : -1];
3884 int
3885 main ()
3886 {
3887
3888 ;
3889 return 0;
3890 }
3891 _ACEOF
3892 rm -f conftest.$ac_objext
3893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3894 (eval $ac_compile) 2>conftest.er1
3895 ac_status=$?
3896 grep -v '^ *+' conftest.er1 >conftest.err
3897 rm -f conftest.er1
3898 cat conftest.err >&5
3899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900 (exit $ac_status); } &&
3901 { ac_try='test -z "$ac_c_werror_flag"
3902 || test ! -s conftest.err'
3903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904 (eval $ac_try) 2>&5
3905 ac_status=$?
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); }; } &&
3908 { ac_try='test -s conftest.$ac_objext'
3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3910 (eval $ac_try) 2>&5
3911 ac_status=$?
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then
3914 break
3915 else
3916 echo "$as_me: failed program was:" >&5
3917 sed 's/^/| /' conftest.$ac_ext >&5
3918
3919 fi
3920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3921 cat >conftest.$ac_ext <<_ACEOF
3922 /* confdefs.h. */
3923 _ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h. */
3927 @%:@define _FILE_OFFSET_BITS 64
3928 @%:@include <sys/types.h>
3929 /* Check that off_t can represent 2**63 - 1 correctly.
3930 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3931 since some C++ compilers masquerading as C compilers
3932 incorrectly reject 9223372036854775807. */
3933 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3934 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3935 && LARGE_OFF_T % 2147483647 == 1)
3936 ? 1 : -1];
3937 int
3938 main ()
3939 {
3940
3941 ;
3942 return 0;
3943 }
3944 _ACEOF
3945 rm -f conftest.$ac_objext
3946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3947 (eval $ac_compile) 2>conftest.er1
3948 ac_status=$?
3949 grep -v '^ *+' conftest.er1 >conftest.err
3950 rm -f conftest.er1
3951 cat conftest.err >&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } &&
3954 { ac_try='test -z "$ac_c_werror_flag"
3955 || test ! -s conftest.err'
3956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957 (eval $ac_try) 2>&5
3958 ac_status=$?
3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); }; } &&
3961 { ac_try='test -s conftest.$ac_objext'
3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3963 (eval $ac_try) 2>&5
3964 ac_status=$?
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; }; then
3967 ac_cv_sys_file_offset_bits=64; break
3968 else
3969 echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3971
3972 fi
3973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3974 break
3975 done
3976 fi
3977 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3978 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3979 if test "$ac_cv_sys_file_offset_bits" != no; then
3980
3981 cat >>confdefs.h <<_ACEOF
3982 @%:@define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3983 _ACEOF
3984
3985 fi
3986 rm -f conftest*
3987 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3988 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3989 if test "${ac_cv_sys_large_files+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 else
3992 while :; do
3993 ac_cv_sys_large_files=no
3994 cat >conftest.$ac_ext <<_ACEOF
3995 /* confdefs.h. */
3996 _ACEOF
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h. */
4000 @%:@include <sys/types.h>
4001 /* Check that off_t can represent 2**63 - 1 correctly.
4002 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4003 since some C++ compilers masquerading as C compilers
4004 incorrectly reject 9223372036854775807. */
4005 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4006 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4007 && LARGE_OFF_T % 2147483647 == 1)
4008 ? 1 : -1];
4009 int
4010 main ()
4011 {
4012
4013 ;
4014 return 0;
4015 }
4016 _ACEOF
4017 rm -f conftest.$ac_objext
4018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4019 (eval $ac_compile) 2>conftest.er1
4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } &&
4026 { ac_try='test -z "$ac_c_werror_flag"
4027 || test ! -s conftest.err'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 (eval $ac_try) 2>&5
4030 ac_status=$?
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; } &&
4033 { ac_try='test -s conftest.$ac_objext'
4034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 (eval $ac_try) 2>&5
4036 ac_status=$?
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); }; }; then
4039 break
4040 else
4041 echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4043
4044 fi
4045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4046 cat >conftest.$ac_ext <<_ACEOF
4047 /* confdefs.h. */
4048 _ACEOF
4049 cat confdefs.h >>conftest.$ac_ext
4050 cat >>conftest.$ac_ext <<_ACEOF
4051 /* end confdefs.h. */
4052 @%:@define _LARGE_FILES 1
4053 @%:@include <sys/types.h>
4054 /* Check that off_t can represent 2**63 - 1 correctly.
4055 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4056 since some C++ compilers masquerading as C compilers
4057 incorrectly reject 9223372036854775807. */
4058 @%:@define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4059 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4060 && LARGE_OFF_T % 2147483647 == 1)
4061 ? 1 : -1];
4062 int
4063 main ()
4064 {
4065
4066 ;
4067 return 0;
4068 }
4069 _ACEOF
4070 rm -f conftest.$ac_objext
4071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4072 (eval $ac_compile) 2>conftest.er1
4073 ac_status=$?
4074 grep -v '^ *+' conftest.er1 >conftest.err
4075 rm -f conftest.er1
4076 cat conftest.err >&5
4077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078 (exit $ac_status); } &&
4079 { ac_try='test -z "$ac_c_werror_flag"
4080 || test ! -s conftest.err'
4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4082 (eval $ac_try) 2>&5
4083 ac_status=$?
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; } &&
4086 { ac_try='test -s conftest.$ac_objext'
4087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4088 (eval $ac_try) 2>&5
4089 ac_status=$?
4090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091 (exit $ac_status); }; }; then
4092 ac_cv_sys_large_files=1; break
4093 else
4094 echo "$as_me: failed program was:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4096
4097 fi
4098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4099 break
4100 done
4101 fi
4102 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4103 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4104 if test "$ac_cv_sys_large_files" != no; then
4105
4106 cat >>confdefs.h <<_ACEOF
4107 @%:@define _LARGE_FILES $ac_cv_sys_large_files
4108 _ACEOF
4109
4110 fi
4111 rm -f conftest*
4112 fi
4113
4114
4115
4116 SIGNAMES_O=
4117 SIGNAMES_H=lsignames.h
4118
4119
4120
4121 if test "x$cross_compiling" = "xyes"; then
4122 case "${host}" in
4123 *-cygwin*)
4124 cross_cache=${srcdir}/cross-build/cygwin32.cache
4125 ;;
4126 *-mingw*)
4127 cross_cache=${srcdir}/cross-build/cygwin32.cache
4128 ;;
4129 i[3456]86-*-beos*)
4130 cross_cache=${srcdir}/cross-build/x86-beos.cache
4131 ;;
4132 *) echo "configure: cross-compiling for $host is not supported" >&2
4133 ;;
4134 esac
4135 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
4136 echo "loading cross-build cache file ${cross_cache}"
4137 . ${cross_cache}
4138 fi
4139 unset cross_cache
4140 SIGNAMES_O='signames.o'
4141 CROSS_COMPILE='-DCROSS_COMPILING'
4142
4143 fi
4144
4145
4146
4147 if test -z "$CC_FOR_BUILD"; then
4148 if test "x$cross_compiling" = "xno"; then
4149 CC_FOR_BUILD='$(CC)'
4150 else
4151 CC_FOR_BUILD=gcc
4152 fi
4153 fi
4154
4155
4156
4157 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
4158
4159 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O2"
4160
4161 if test "$opt_profiling" = "yes"; then
4162 PROFILE_FLAGS=-pg
4163 case "$host_os" in
4164 solaris2*) ;;
4165 *) opt_static_link=yes ;;
4166 esac
4167 DEBUG= MALLOC_DEBUG=
4168 fi
4169
4170 if test "$opt_static_link" = yes; then
4171 # if we're using gcc, add `-static' to LDFLAGS, except on Solaris >= 2
4172 if test -n "$GCC" || test "$ac_cv_c_compiler_gnu" = "yes"; then
4173 STATIC_LD="-static"
4174 case "$host_os" in
4175 solaris2*) ;;
4176 *) LDFLAGS="$LDFLAGS -static" ;; # XXX experimental
4177 esac
4178 fi
4179 fi
4180
4181 if test "X$cross_compiling" = "Xno"; then
4182 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-"$CPPFLAGS"}
4183 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-'$(LDFLAGS)'}
4184 else
4185 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-""}
4186 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-""}
4187 fi
4188
4189 test -z "$CFLAGS_FOR_BUILD" && CFLAGS_FOR_BUILD="-g"
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200 if test $ac_cv_c_compiler_gnu = yes; then
4201 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4202 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4203 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206 ac_pattern="Autoconf.*'x'"
4207 cat >conftest.$ac_ext <<_ACEOF
4208 /* confdefs.h. */
4209 _ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h. */
4213 #include <sgtty.h>
4214 Autoconf TIOCGETP
4215 _ACEOF
4216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4217 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4218 ac_cv_prog_gcc_traditional=yes
4219 else
4220 ac_cv_prog_gcc_traditional=no
4221 fi
4222 rm -f conftest*
4223
4224
4225 if test $ac_cv_prog_gcc_traditional = no; then
4226 cat >conftest.$ac_ext <<_ACEOF
4227 /* confdefs.h. */
4228 _ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4232 #include <termio.h>
4233 Autoconf TCGETA
4234 _ACEOF
4235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4236 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4237 ac_cv_prog_gcc_traditional=yes
4238 fi
4239 rm -f conftest*
4240
4241 fi
4242 fi
4243 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4244 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4245 if test $ac_cv_prog_gcc_traditional = yes; then
4246 CC="$CC -traditional"
4247 fi
4248 fi
4249
4250
4251
4252 if test "$opt_readline" = yes && test "$opt_with_installed_readline" != "no"
4253 then
4254 # If the user specified --with-installed-readline=PREFIX and PREFIX
4255 # is not `yes', set ac_cv_rl_prefix to PREFIX
4256 test $opt_with_installed_readline != "yes" && ac_cv_rl_prefix=$opt_with_installed_readline
4257
4258
4259 if test "X$bash_cv_termcap_lib" = "X"; then
4260 _bash_needmsg=yes
4261 else
4262 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
4263 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
4264 _bash_needmsg=
4265 fi
4266 if test "${bash_cv_termcap_lib+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4268 else
4269 echo "$as_me:$LINENO: checking for tgetent" >&5
4270 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
4271 if test "${ac_cv_func_tgetent+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274 cat >conftest.$ac_ext <<_ACEOF
4275 /* confdefs.h. */
4276 _ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h. */
4280 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
4281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4282 #define tgetent innocuous_tgetent
4283
4284 /* System header to define __stub macros and hopefully few prototypes,
4285 which can conflict with char tgetent (); below.
4286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4287 <limits.h> exists even on freestanding compilers. */
4288
4289 #ifdef __STDC__
4290 # include <limits.h>
4291 #else
4292 # include <assert.h>
4293 #endif
4294
4295 #undef tgetent
4296
4297 /* Override any gcc2 internal prototype to avoid an error. */
4298 #ifdef __cplusplus
4299 extern "C"
4300 {
4301 #endif
4302 /* We use char because int might match the return type of a gcc2
4303 builtin and then its argument prototype would still apply. */
4304 char tgetent ();
4305 /* The GNU C library defines this for functions which it implements
4306 to always fail with ENOSYS. Some functions are actually named
4307 something starting with __ and the normal name is an alias. */
4308 #if defined (__stub_tgetent) || defined (__stub___tgetent)
4309 choke me
4310 #else
4311 char (*f) () = tgetent;
4312 #endif
4313 #ifdef __cplusplus
4314 }
4315 #endif
4316
4317 int
4318 main ()
4319 {
4320 return f != tgetent;
4321 ;
4322 return 0;
4323 }
4324 _ACEOF
4325 rm -f conftest.$ac_objext conftest$ac_exeext
4326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4327 (eval $ac_link) 2>conftest.er1
4328 ac_status=$?
4329 grep -v '^ *+' conftest.er1 >conftest.err
4330 rm -f conftest.er1
4331 cat conftest.err >&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); } &&
4334 { ac_try='test -z "$ac_c_werror_flag"
4335 || test ! -s conftest.err'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 (eval $ac_try) 2>&5
4338 ac_status=$?
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; } &&
4341 { ac_try='test -s conftest$ac_exeext'
4342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343 (eval $ac_try) 2>&5
4344 ac_status=$?
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 ac_cv_func_tgetent=yes
4348 else
4349 echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4351
4352 ac_cv_func_tgetent=no
4353 fi
4354 rm -f conftest.err conftest.$ac_objext \
4355 conftest$ac_exeext conftest.$ac_ext
4356 fi
4357 echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
4358 echo "${ECHO_T}$ac_cv_func_tgetent" >&6
4359 if test $ac_cv_func_tgetent = yes; then
4360 bash_cv_termcap_lib=libc
4361 else
4362 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
4363 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
4364 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 else
4367 ac_check_lib_save_LIBS=$LIBS
4368 LIBS="-ltermcap $LIBS"
4369 cat >conftest.$ac_ext <<_ACEOF
4370 /* confdefs.h. */
4371 _ACEOF
4372 cat confdefs.h >>conftest.$ac_ext
4373 cat >>conftest.$ac_ext <<_ACEOF
4374 /* end confdefs.h. */
4375
4376 /* Override any gcc2 internal prototype to avoid an error. */
4377 #ifdef __cplusplus
4378 extern "C"
4379 #endif
4380 /* We use char because int might match the return type of a gcc2
4381 builtin and then its argument prototype would still apply. */
4382 char tgetent ();
4383 int
4384 main ()
4385 {
4386 tgetent ();
4387 ;
4388 return 0;
4389 }
4390 _ACEOF
4391 rm -f conftest.$ac_objext conftest$ac_exeext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4393 (eval $ac_link) 2>conftest.er1
4394 ac_status=$?
4395 grep -v '^ *+' conftest.er1 >conftest.err
4396 rm -f conftest.er1
4397 cat conftest.err >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } &&
4400 { ac_try='test -z "$ac_c_werror_flag"
4401 || test ! -s conftest.err'
4402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4403 (eval $ac_try) 2>&5
4404 ac_status=$?
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); }; } &&
4407 { ac_try='test -s conftest$ac_exeext'
4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409 (eval $ac_try) 2>&5
4410 ac_status=$?
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; }; then
4413 ac_cv_lib_termcap_tgetent=yes
4414 else
4415 echo "$as_me: failed program was:" >&5
4416 sed 's/^/| /' conftest.$ac_ext >&5
4417
4418 ac_cv_lib_termcap_tgetent=no
4419 fi
4420 rm -f conftest.err conftest.$ac_objext \
4421 conftest$ac_exeext conftest.$ac_ext
4422 LIBS=$ac_check_lib_save_LIBS
4423 fi
4424 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
4425 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
4426 if test $ac_cv_lib_termcap_tgetent = yes; then
4427 bash_cv_termcap_lib=libtermcap
4428 else
4429 echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
4430 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
4431 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434 ac_check_lib_save_LIBS=$LIBS
4435 LIBS="-ltinfo $LIBS"
4436 cat >conftest.$ac_ext <<_ACEOF
4437 /* confdefs.h. */
4438 _ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4442
4443 /* Override any gcc2 internal prototype to avoid an error. */
4444 #ifdef __cplusplus
4445 extern "C"
4446 #endif
4447 /* We use char because int might match the return type of a gcc2
4448 builtin and then its argument prototype would still apply. */
4449 char tgetent ();
4450 int
4451 main ()
4452 {
4453 tgetent ();
4454 ;
4455 return 0;
4456 }
4457 _ACEOF
4458 rm -f conftest.$ac_objext conftest$ac_exeext
4459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4460 (eval $ac_link) 2>conftest.er1
4461 ac_status=$?
4462 grep -v '^ *+' conftest.er1 >conftest.err
4463 rm -f conftest.er1
4464 cat conftest.err >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } &&
4467 { ac_try='test -z "$ac_c_werror_flag"
4468 || test ! -s conftest.err'
4469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 (eval $ac_try) 2>&5
4471 ac_status=$?
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; } &&
4474 { ac_try='test -s conftest$ac_exeext'
4475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476 (eval $ac_try) 2>&5
4477 ac_status=$?
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); }; }; then
4480 ac_cv_lib_tinfo_tgetent=yes
4481 else
4482 echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4484
4485 ac_cv_lib_tinfo_tgetent=no
4486 fi
4487 rm -f conftest.err conftest.$ac_objext \
4488 conftest$ac_exeext conftest.$ac_ext
4489 LIBS=$ac_check_lib_save_LIBS
4490 fi
4491 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
4492 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
4493 if test $ac_cv_lib_tinfo_tgetent = yes; then
4494 bash_cv_termcap_lib=libtinfo
4495 else
4496 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
4497 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
4498 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 else
4501 ac_check_lib_save_LIBS=$LIBS
4502 LIBS="-lcurses $LIBS"
4503 cat >conftest.$ac_ext <<_ACEOF
4504 /* confdefs.h. */
4505 _ACEOF
4506 cat confdefs.h >>conftest.$ac_ext
4507 cat >>conftest.$ac_ext <<_ACEOF
4508 /* end confdefs.h. */
4509
4510 /* Override any gcc2 internal prototype to avoid an error. */
4511 #ifdef __cplusplus
4512 extern "C"
4513 #endif
4514 /* We use char because int might match the return type of a gcc2
4515 builtin and then its argument prototype would still apply. */
4516 char tgetent ();
4517 int
4518 main ()
4519 {
4520 tgetent ();
4521 ;
4522 return 0;
4523 }
4524 _ACEOF
4525 rm -f conftest.$ac_objext conftest$ac_exeext
4526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4527 (eval $ac_link) 2>conftest.er1
4528 ac_status=$?
4529 grep -v '^ *+' conftest.er1 >conftest.err
4530 rm -f conftest.er1
4531 cat conftest.err >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); } &&
4534 { ac_try='test -z "$ac_c_werror_flag"
4535 || test ! -s conftest.err'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 (eval $ac_try) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; } &&
4541 { ac_try='test -s conftest$ac_exeext'
4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543 (eval $ac_try) 2>&5
4544 ac_status=$?
4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546 (exit $ac_status); }; }; then
4547 ac_cv_lib_curses_tgetent=yes
4548 else
4549 echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4551
4552 ac_cv_lib_curses_tgetent=no
4553 fi
4554 rm -f conftest.err conftest.$ac_objext \
4555 conftest$ac_exeext conftest.$ac_ext
4556 LIBS=$ac_check_lib_save_LIBS
4557 fi
4558 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
4559 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
4560 if test $ac_cv_lib_curses_tgetent = yes; then
4561 bash_cv_termcap_lib=libcurses
4562 else
4563 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
4564 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
4565 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568 ac_check_lib_save_LIBS=$LIBS
4569 LIBS="-lncurses $LIBS"
4570 cat >conftest.$ac_ext <<_ACEOF
4571 /* confdefs.h. */
4572 _ACEOF
4573 cat confdefs.h >>conftest.$ac_ext
4574 cat >>conftest.$ac_ext <<_ACEOF
4575 /* end confdefs.h. */
4576
4577 /* Override any gcc2 internal prototype to avoid an error. */
4578 #ifdef __cplusplus
4579 extern "C"
4580 #endif
4581 /* We use char because int might match the return type of a gcc2
4582 builtin and then its argument prototype would still apply. */
4583 char tgetent ();
4584 int
4585 main ()
4586 {
4587 tgetent ();
4588 ;
4589 return 0;
4590 }
4591 _ACEOF
4592 rm -f conftest.$ac_objext conftest$ac_exeext
4593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4594 (eval $ac_link) 2>conftest.er1
4595 ac_status=$?
4596 grep -v '^ *+' conftest.er1 >conftest.err
4597 rm -f conftest.er1
4598 cat conftest.err >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } &&
4601 { ac_try='test -z "$ac_c_werror_flag"
4602 || test ! -s conftest.err'
4603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4604 (eval $ac_try) 2>&5
4605 ac_status=$?
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); }; } &&
4608 { ac_try='test -s conftest$ac_exeext'
4609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 (eval $ac_try) 2>&5
4611 ac_status=$?
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; }; then
4614 ac_cv_lib_ncurses_tgetent=yes
4615 else
4616 echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4618
4619 ac_cv_lib_ncurses_tgetent=no
4620 fi
4621 rm -f conftest.err conftest.$ac_objext \
4622 conftest$ac_exeext conftest.$ac_ext
4623 LIBS=$ac_check_lib_save_LIBS
4624 fi
4625 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
4626 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
4627 if test $ac_cv_lib_ncurses_tgetent = yes; then
4628 bash_cv_termcap_lib=libncurses
4629 else
4630 bash_cv_termcap_lib=gnutermcap
4631 fi
4632
4633 fi
4634
4635 fi
4636
4637 fi
4638
4639 fi
4640
4641 fi
4642
4643 if test "X$_bash_needmsg" = "Xyes"; then
4644 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
4645 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
4646 fi
4647 echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
4648 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
4649 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
4650 LDFLAGS="$LDFLAGS -L./lib/termcap"
4651 TERMCAP_LIB="./lib/termcap/libtermcap.a"
4652 TERMCAP_DEP="./lib/termcap/libtermcap.a"
4653 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
4654 TERMCAP_LIB=-ltermcap
4655 TERMCAP_DEP=
4656 elif test $bash_cv_termcap_lib = libtinfo; then
4657 TERMCAP_LIB=-ltinfo
4658 TERMCAP_DEP=
4659 elif test $bash_cv_termcap_lib = libncurses; then
4660 TERMCAP_LIB=-lncurses
4661 TERMCAP_DEP=
4662 elif test $bash_cv_termcap_lib = libc; then
4663 TERMCAP_LIB=
4664 TERMCAP_DEP=
4665 else
4666 TERMCAP_LIB=-lcurses
4667 TERMCAP_DEP=
4668 fi
4669
4670
4671
4672
4673 echo "$as_me:$LINENO: checking version of installed readline library" >&5
4674 echo $ECHO_N "checking version of installed readline library... $ECHO_C" >&6
4675
4676 # What a pain in the ass this is.
4677
4678 # save cpp and ld options
4679 _save_CFLAGS="$CFLAGS"
4680 _save_LDFLAGS="$LDFLAGS"
4681 _save_LIBS="$LIBS"
4682
4683 # Don't set ac_cv_rl_prefix if the caller has already assigned a value. This
4684 # allows the caller to do something like $_rl_prefix=$withval if the user
4685 # specifies --with-installed-readline=PREFIX as an argument to configure
4686
4687 if test -z "$ac_cv_rl_prefix"; then
4688 test "x$prefix" = xNONE && ac_cv_rl_prefix=$ac_default_prefix || ac_cv_rl_prefix=${prefix}
4689 fi
4690
4691 eval ac_cv_rl_includedir=${ac_cv_rl_prefix}/include
4692 eval ac_cv_rl_libdir=${ac_cv_rl_prefix}/lib
4693
4694 LIBS="$LIBS -lreadline ${TERMCAP_LIB}"
4695 CFLAGS="$CFLAGS -I${ac_cv_rl_includedir}"
4696 LDFLAGS="$LDFLAGS -L${ac_cv_rl_libdir}"
4697
4698 if test "${ac_cv_rl_version+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701 if test "$cross_compiling" = yes; then
4702 ac_cv_rl_version='4.2'
4703 else
4704 cat >conftest.$ac_ext <<_ACEOF
4705 /* confdefs.h. */
4706 _ACEOF
4707 cat confdefs.h >>conftest.$ac_ext
4708 cat >>conftest.$ac_ext <<_ACEOF
4709 /* end confdefs.h. */
4710
4711 #include <stdio.h>
4712 #include <readline/readline.h>
4713
4714 extern int rl_gnu_readline_p;
4715
4716 main()
4717 {
4718 FILE *fp;
4719 fp = fopen("conftest.rlv", "w");
4720 if (fp == 0)
4721 exit(1);
4722 if (rl_gnu_readline_p != 1)
4723 fprintf(fp, "0.0\n");
4724 else
4725 fprintf(fp, "%s\n", rl_library_version ? rl_library_version : "0.0");
4726 fclose(fp);
4727 exit(0);
4728 }
4729
4730 _ACEOF
4731 rm -f conftest$ac_exeext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4733 (eval $ac_link) 2>&5
4734 ac_status=$?
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 (eval $ac_try) 2>&5
4739 ac_status=$?
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); }; }; then
4742 ac_cv_rl_version=`cat conftest.rlv`
4743 else
4744 echo "$as_me: program exited with status $ac_status" >&5
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4747
4748 ( exit $ac_status )
4749 ac_cv_rl_version='0.0'
4750 fi
4751 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4752 fi
4753 fi
4754
4755
4756 CFLAGS="$_save_CFLAGS"
4757 LDFLAGS="$_save_LDFLAGS"
4758 LIBS="$_save_LIBS"
4759
4760 RL_MAJOR=0
4761 RL_MINOR=0
4762
4763 # (
4764 case "$ac_cv_rl_version" in
4765 2*|3*|4*|5*|6*|7*|8*|9*)
4766 RL_MAJOR=`echo $ac_cv_rl_version | sed 's:\..*$::'`
4767 RL_MINOR=`echo $ac_cv_rl_version | sed -e 's:^.*\.::' -e 's:[a-zA-Z]*$::'`
4768 ;;
4769 esac
4770
4771 # (((
4772 case $RL_MAJOR in
4773 [0-9][0-9]) _RL_MAJOR=$RL_MAJOR ;;
4774 [0-9]) _RL_MAJOR=0$RL_MAJOR ;;
4775 *) _RL_MAJOR=00 ;;
4776 esac
4777
4778 # (((
4779 case $RL_MINOR in
4780 [0-9][0-9]) _RL_MINOR=$RL_MINOR ;;
4781 [0-9]) _RL_MINOR=0$RL_MINOR ;;
4782 *) _RL_MINOR=00 ;;
4783 esac
4784
4785 RL_VERSION="0x${_RL_MAJOR}${_RL_MINOR}"
4786
4787 # Readline versions greater than 4.2 have these defines in readline.h
4788
4789 if test $ac_cv_rl_version = '0.0' ; then
4790 { echo "$as_me:$LINENO: WARNING: Could not test version of installed readline library." >&5
4791 echo "$as_me: WARNING: Could not test version of installed readline library." >&2;}
4792 elif test $RL_MAJOR -gt 4 || { test $RL_MAJOR = 4 && test $RL_MINOR -gt 2 ; } ; then
4793 # set these for use by the caller
4794 RL_PREFIX=$ac_cv_rl_prefix
4795 RL_LIBDIR=$ac_cv_rl_libdir
4796 RL_INCLUDEDIR=$ac_cv_rl_includedir
4797 echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
4798 echo "${ECHO_T}$ac_cv_rl_version" >&6
4799 else
4800
4801
4802 cat >>confdefs.h <<_ACEOF
4803 @%:@define RL_READLINE_VERSION $RL_VERSION
4804 _ACEOF
4805
4806
4807 cat >>confdefs.h <<_ACEOF
4808 @%:@define RL_VERSION_MAJOR $RL_MAJOR
4809 _ACEOF
4810
4811
4812 cat >>confdefs.h <<_ACEOF
4813 @%:@define RL_VERSION_MINOR $RL_MINOR
4814 _ACEOF
4815
4816
4817
4818
4819
4820
4821 # set these for use by the caller
4822 RL_PREFIX=$ac_cv_rl_prefix
4823 RL_LIBDIR=$ac_cv_rl_libdir
4824 RL_INCLUDEDIR=$ac_cv_rl_includedir
4825
4826 echo "$as_me:$LINENO: result: $ac_cv_rl_version" >&5
4827 echo "${ECHO_T}$ac_cv_rl_version" >&6
4828
4829 fi
4830
4831
4832 case "$ac_cv_rl_version" in
4833 5*|6*|7*|8*|9*) ;;
4834 *) opt_with_installed_readline=no
4835 { echo "$as_me:$LINENO: WARNING: installed readline library is too old to be linked with bash" >&5
4836 echo "$as_me: WARNING: installed readline library is too old to be linked with bash" >&2;}
4837 { echo "$as_me:$LINENO: WARNING: using private bash version" >&5
4838 echo "$as_me: WARNING: using private bash version" >&2;}
4839 ;;
4840 esac
4841 fi
4842
4843 TILDE_LIB=-ltilde
4844 if test $opt_readline = yes; then
4845 cat >>confdefs.h <<\_ACEOF
4846 @%:@define READLINE 1
4847 _ACEOF
4848
4849 if test "$opt_with_installed_readline" != "no" ; then
4850 case "$opt_with_installed_readline" in
4851 yes) RL_INCLUDE= ;;
4852 *) case "$RL_INCLUDEDIR" in
4853 /usr/include) ;;
4854 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
4855 esac
4856 ;;
4857 esac
4858 READLINE_DEP=
4859 READLINE_LIB=-lreadline
4860 # section for OS versions that don't allow unresolved symbols
4861 # to be compiled into dynamic libraries.
4862 case "$host_os" in
4863 cygwin*) TILDE_LIB= ;;
4864 esac
4865 else
4866 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4867 READLINE_DEP='$(READLINE_LIBRARY)'
4868 # section for OS versions that ship an older/broken version of
4869 # readline as a standard dynamic library and don't allow a
4870 # static version specified as -llibname to override the
4871 # dynamic version
4872 case "${host_os}" in
4873 darwin8*) READLINE_LIB='${READLINE_LIBRARY}' ;;
4874 *) READLINE_LIB=-lreadline ;;
4875 esac
4876 fi
4877 else
4878 RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4879 READLINE_LIB= READLINE_DEP=
4880 fi
4881 if test $opt_history = yes || test $opt_bang_history = yes; then
4882 if test $opt_history = yes; then
4883 cat >>confdefs.h <<\_ACEOF
4884 @%:@define HISTORY 1
4885 _ACEOF
4886
4887 fi
4888 if test $opt_bang_history = yes; then
4889 cat >>confdefs.h <<\_ACEOF
4890 @%:@define BANG_HISTORY 1
4891 _ACEOF
4892
4893 fi
4894 if test "$opt_with_installed_readline" != "no"; then
4895 HIST_LIBDIR=$RL_LIBDIR
4896 HISTORY_DEP=
4897 HISTORY_LIB=-lhistory
4898 case "$opt_with_installed_readline" in
4899 yes) RL_INCLUDE= ;;
4900 *) case "$RL_INCLUDEDIR" in
4901 /usr/include) ;;
4902 *) RL_INCLUDE='-I${RL_INCLUDEDIR}' ;;
4903 esac
4904 ;;
4905 esac
4906 else
4907 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4908 HISTORY_DEP='$(HISTORY_LIBRARY)'
4909 # section for OS versions that ship an older version of
4910 # readline as a standard dynamic library and don't allow a
4911 # static version specified as -llibname to override the
4912 # dynamic version
4913 case "${host_os}" in
4914 darwin8*) HISTORY_LIB='${HISTORY_LIBRARY}' ;;
4915 *) HISTORY_LIB=-lhistory ;;
4916 esac
4917 fi
4918 else
4919 HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline'
4920 HISTORY_LIB= HISTORY_DEP=
4921 fi
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933 # Find a good install program. We prefer a C program (faster),
4934 # so one script is as good as another. But avoid the broken or
4935 # incompatible versions:
4936 # SysV /etc/install, /usr/sbin/install
4937 # SunOS /usr/etc/install
4938 # IRIX /sbin/install
4939 # AIX /bin/install
4940 # AmigaOS /C/install, which installs bootblocks on floppy discs
4941 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4942 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4943 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4944 # OS/2's system install, which has a completely different semantic
4945 # ./install, which can be erroneously created by make from ./install.sh.
4946 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4947 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4948 if test -z "$INSTALL"; then
4949 if test "${ac_cv_path_install+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 else
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4954 do
4955 IFS=$as_save_IFS
4956 test -z "$as_dir" && as_dir=.
4957 # Account for people who put trailing slashes in PATH elements.
4958 case $as_dir/ in
4959 ./ | .// | /cC/* | \
4960 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4961 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4962 /usr/ucb/* ) ;;
4963 *)
4964 # OSF1 and SCO ODT 3.0 have their own names for install.
4965 # Don't use installbsd from OSF since it installs stuff as root
4966 # by default.
4967 for ac_prog in ginstall scoinst install; do
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4970 if test $ac_prog = install &&
4971 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4972 # AIX install. It has an incompatible calling convention.
4973 :
4974 elif test $ac_prog = install &&
4975 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4976 # program-specific install script used by HP pwplus--don't use.
4977 :
4978 else
4979 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4980 break 3
4981 fi
4982 fi
4983 done
4984 done
4985 ;;
4986 esac
4987 done
4988
4989
4990 fi
4991 if test "${ac_cv_path_install+set}" = set; then
4992 INSTALL=$ac_cv_path_install
4993 else
4994 # As a last resort, use the slow shell script. We don't cache a
4995 # path for INSTALL within a source directory, because that will
4996 # break other packages using the cache if that directory is
4997 # removed, or if the path is relative.
4998 INSTALL=$ac_install_sh
4999 fi
5000 fi
5001 echo "$as_me:$LINENO: result: $INSTALL" >&5
5002 echo "${ECHO_T}$INSTALL" >&6
5003
5004 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5005 # It thinks the first close brace ends the variable substitution.
5006 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5007
5008 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5009
5010 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5011
5012 # Extract the first word of "ar", so it can be a program name with args.
5013 set dummy ar; ac_word=$2
5014 echo "$as_me:$LINENO: checking for $ac_word" >&5
5015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5016 if test "${ac_cv_prog_AR+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 else
5019 if test -n "$AR"; then
5020 ac_cv_prog_AR="$AR" # Let the user override the test.
5021 else
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH
5024 do
5025 IFS=$as_save_IFS
5026 test -z "$as_dir" && as_dir=.
5027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5029 ac_cv_prog_AR=""
5030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5031 break 2
5032 fi
5033 done
5034 done
5035
5036 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
5037 fi
5038 fi
5039 AR=$ac_cv_prog_AR
5040 if test -n "$AR"; then
5041 echo "$as_me:$LINENO: result: $AR" >&5
5042 echo "${ECHO_T}$AR" >&6
5043 else
5044 echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6
5046 fi
5047
5048 test -n "$ARFLAGS" || ARFLAGS="cr"
5049 if test -n "$ac_tool_prefix"; then
5050 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5051 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5052 echo "$as_me:$LINENO: checking for $ac_word" >&5
5053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5054 if test "${ac_cv_prog_RANLIB+set}" = set; then
5055 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 else
5057 if test -n "$RANLIB"; then
5058 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5059 else
5060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5062 do
5063 IFS=$as_save_IFS
5064 test -z "$as_dir" && as_dir=.
5065 for ac_exec_ext in '' $ac_executable_extensions; do
5066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 break 2
5070 fi
5071 done
5072 done
5073
5074 fi
5075 fi
5076 RANLIB=$ac_cv_prog_RANLIB
5077 if test -n "$RANLIB"; then
5078 echo "$as_me:$LINENO: result: $RANLIB" >&5
5079 echo "${ECHO_T}$RANLIB" >&6
5080 else
5081 echo "$as_me:$LINENO: result: no" >&5
5082 echo "${ECHO_T}no" >&6
5083 fi
5084
5085 fi
5086 if test -z "$ac_cv_prog_RANLIB"; then
5087 ac_ct_RANLIB=$RANLIB
5088 # Extract the first word of "ranlib", so it can be a program name with args.
5089 set dummy ranlib; ac_word=$2
5090 echo "$as_me:$LINENO: checking for $ac_word" >&5
5091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5092 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5093 echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095 if test -n "$ac_ct_RANLIB"; then
5096 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5097 else
5098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 for as_dir in $PATH
5100 do
5101 IFS=$as_save_IFS
5102 test -z "$as_dir" && as_dir=.
5103 for ac_exec_ext in '' $ac_executable_extensions; do
5104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5105 ac_cv_prog_ac_ct_RANLIB="ranlib"
5106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5107 break 2
5108 fi
5109 done
5110 done
5111
5112 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5113 fi
5114 fi
5115 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5116 if test -n "$ac_ct_RANLIB"; then
5117 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5118 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5119 else
5120 echo "$as_me:$LINENO: result: no" >&5
5121 echo "${ECHO_T}no" >&6
5122 fi
5123
5124 RANLIB=$ac_ct_RANLIB
5125 else
5126 RANLIB="$ac_cv_prog_RANLIB"
5127 fi
5128
5129 for ac_prog in 'bison -y' byacc
5130 do
5131 # Extract the first word of "$ac_prog", so it can be a program name with args.
5132 set dummy $ac_prog; ac_word=$2
5133 echo "$as_me:$LINENO: checking for $ac_word" >&5
5134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5135 if test "${ac_cv_prog_YACC+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 else
5138 if test -n "$YACC"; then
5139 ac_cv_prog_YACC="$YACC" # Let the user override the test.
5140 else
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5143 do
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148 ac_cv_prog_YACC="$ac_prog"
5149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 break 2
5151 fi
5152 done
5153 done
5154
5155 fi
5156 fi
5157 YACC=$ac_cv_prog_YACC
5158 if test -n "$YACC"; then
5159 echo "$as_me:$LINENO: result: $YACC" >&5
5160 echo "${ECHO_T}$YACC" >&6
5161 else
5162 echo "$as_me:$LINENO: result: no" >&5
5163 echo "${ECHO_T}no" >&6
5164 fi
5165
5166 test -n "$YACC" && break
5167 done
5168 test -n "$YACC" || YACC="yacc"
5169
5170 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5171 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5172 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5173 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5175 else
5176 cat >conftest.make <<\_ACEOF
5177 all:
5178 @echo 'ac_maketemp="$(MAKE)"'
5179 _ACEOF
5180 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5181 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5182 if test -n "$ac_maketemp"; then
5183 eval ac_cv_prog_make_${ac_make}_set=yes
5184 else
5185 eval ac_cv_prog_make_${ac_make}_set=no
5186 fi
5187 rm -f conftest.make
5188 fi
5189 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5190 echo "$as_me:$LINENO: result: yes" >&5
5191 echo "${ECHO_T}yes" >&6
5192 SET_MAKE=
5193 else
5194 echo "$as_me:$LINENO: result: no" >&5
5195 echo "${ECHO_T}no" >&6
5196 SET_MAKE="MAKE=${MAKE-make}"
5197 fi
5198
5199
5200 case "$host_os" in
5201 opennt*|interix*) MAKE_SHELL="$INTERIX_ROOT/bin/sh" ;;
5202 *) MAKE_SHELL=/bin/sh ;;
5203 esac
5204
5205
5206 if test x$SIZE = x; then
5207 if test x$ac_tool_prefix = x; then
5208 SIZE=size
5209 else
5210 SIZE=${ac_tool_prefix}size
5211 save_IFS=$IFS ; IFS=:
5212 size_found=0
5213 for dir in $PATH; do
5214 if test -x $dir/$SIZE ; then
5215 size_found=1
5216 break
5217 fi
5218 done
5219 if test $size_found -eq 0; then
5220 SIZE=:
5221 fi
5222 IFS=$save_IFS
5223 fi
5224 fi
5225
5226
5227 cat >>confdefs.h <<\_ACEOF
5228 @%:@define _GNU_SOURCE 1
5229 _ACEOF
5230
5231
5232 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5233 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5234 if test "${ac_cv_c_const+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 else
5237 cat >conftest.$ac_ext <<_ACEOF
5238 /* confdefs.h. */
5239 _ACEOF
5240 cat confdefs.h >>conftest.$ac_ext
5241 cat >>conftest.$ac_ext <<_ACEOF
5242 /* end confdefs.h. */
5243
5244 int
5245 main ()
5246 {
5247 /* FIXME: Include the comments suggested by Paul. */
5248 #ifndef __cplusplus
5249 /* Ultrix mips cc rejects this. */
5250 typedef int charset[2];
5251 const charset x;
5252 /* SunOS 4.1.1 cc rejects this. */
5253 char const *const *ccp;
5254 char **p;
5255 /* NEC SVR4.0.2 mips cc rejects this. */
5256 struct point {int x, y;};
5257 static struct point const zero = {0,0};
5258 /* AIX XL C 1.02.0.0 rejects this.
5259 It does not let you subtract one const X* pointer from another in
5260 an arm of an if-expression whose if-part is not a constant
5261 expression */
5262 const char *g = "string";
5263 ccp = &g + (g ? g-g : 0);
5264 /* HPUX 7.0 cc rejects these. */
5265 ++ccp;
5266 p = (char**) ccp;
5267 ccp = (char const *const *) p;
5268 { /* SCO 3.2v4 cc rejects this. */
5269 char *t;
5270 char const *s = 0 ? (char *) 0 : (char const *) 0;
5271
5272 *t++ = 0;
5273 }
5274 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5275 int x[] = {25, 17};
5276 const int *foo = &x[0];
5277 ++foo;
5278 }
5279 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5280 typedef const int *iptr;
5281 iptr p = 0;
5282 ++p;
5283 }
5284 { /* AIX XL C 1.02.0.0 rejects this saying
5285 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5286 struct s { int j; const int *ap[3]; };
5287 struct s *b; b->j = 5;
5288 }
5289 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5290 const int foo = 10;
5291 }
5292 #endif
5293
5294 ;
5295 return 0;
5296 }
5297 _ACEOF
5298 rm -f conftest.$ac_objext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300 (eval $ac_compile) 2>conftest.er1
5301 ac_status=$?
5302 grep -v '^ *+' conftest.er1 >conftest.err
5303 rm -f conftest.er1
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } &&
5307 { ac_try='test -z "$ac_c_werror_flag"
5308 || test ! -s conftest.err'
5309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5310 (eval $ac_try) 2>&5
5311 ac_status=$?
5312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313 (exit $ac_status); }; } &&
5314 { ac_try='test -s conftest.$ac_objext'
5315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316 (eval $ac_try) 2>&5
5317 ac_status=$?
5318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319 (exit $ac_status); }; }; then
5320 ac_cv_c_const=yes
5321 else
5322 echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5324
5325 ac_cv_c_const=no
5326 fi
5327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5328 fi
5329 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5330 echo "${ECHO_T}$ac_cv_c_const" >&6
5331 if test $ac_cv_c_const = no; then
5332
5333 cat >>confdefs.h <<\_ACEOF
5334 @%:@define const
5335 _ACEOF
5336
5337 fi
5338
5339 echo "$as_me:$LINENO: checking for inline" >&5
5340 echo $ECHO_N "checking for inline... $ECHO_C" >&6
5341 if test "${ac_cv_c_inline+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 else
5344 ac_cv_c_inline=no
5345 for ac_kw in inline __inline__ __inline; do
5346 cat >conftest.$ac_ext <<_ACEOF
5347 /* confdefs.h. */
5348 _ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h. */
5352 #ifndef __cplusplus
5353 typedef int foo_t;
5354 static $ac_kw foo_t static_foo () {return 0; }
5355 $ac_kw foo_t foo () {return 0; }
5356 #endif
5357
5358 _ACEOF
5359 rm -f conftest.$ac_objext
5360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5361 (eval $ac_compile) 2>conftest.er1
5362 ac_status=$?
5363 grep -v '^ *+' conftest.er1 >conftest.err
5364 rm -f conftest.er1
5365 cat conftest.err >&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } &&
5368 { ac_try='test -z "$ac_c_werror_flag"
5369 || test ! -s conftest.err'
5370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5371 (eval $ac_try) 2>&5
5372 ac_status=$?
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); }; } &&
5375 { ac_try='test -s conftest.$ac_objext'
5376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 (eval $ac_try) 2>&5
5378 ac_status=$?
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); }; }; then
5381 ac_cv_c_inline=$ac_kw; break
5382 else
5383 echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.$ac_ext >&5
5385
5386 fi
5387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5388 done
5389
5390 fi
5391 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5392 echo "${ECHO_T}$ac_cv_c_inline" >&6
5393
5394
5395 case $ac_cv_c_inline in
5396 inline | yes) ;;
5397 *)
5398 case $ac_cv_c_inline in
5399 no) ac_val=;;
5400 *) ac_val=$ac_cv_c_inline;;
5401 esac
5402 cat >>confdefs.h <<_ACEOF
5403 #ifndef __cplusplus
5404 #define inline $ac_val
5405 #endif
5406 _ACEOF
5407 ;;
5408 esac
5409
5410 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5411 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5412 if test "${ac_cv_c_bigendian+set}" = set; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
5414 else
5415 # See if sys/param.h defines the BYTE_ORDER macro.
5416 cat >conftest.$ac_ext <<_ACEOF
5417 /* confdefs.h. */
5418 _ACEOF
5419 cat confdefs.h >>conftest.$ac_ext
5420 cat >>conftest.$ac_ext <<_ACEOF
5421 /* end confdefs.h. */
5422 #include <sys/types.h>
5423 #include <sys/param.h>
5424
5425 int
5426 main ()
5427 {
5428 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5429 bogus endian macros
5430 #endif
5431
5432 ;
5433 return 0;
5434 }
5435 _ACEOF
5436 rm -f conftest.$ac_objext
5437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5438 (eval $ac_compile) 2>conftest.er1
5439 ac_status=$?
5440 grep -v '^ *+' conftest.er1 >conftest.err
5441 rm -f conftest.er1
5442 cat conftest.err >&5
5443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } &&
5445 { ac_try='test -z "$ac_c_werror_flag"
5446 || test ! -s conftest.err'
5447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448 (eval $ac_try) 2>&5
5449 ac_status=$?
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); }; } &&
5452 { ac_try='test -s conftest.$ac_objext'
5453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5454 (eval $ac_try) 2>&5
5455 ac_status=$?
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }; }; then
5458 # It does; now see whether it defined to BIG_ENDIAN or not.
5459 cat >conftest.$ac_ext <<_ACEOF
5460 /* confdefs.h. */
5461 _ACEOF
5462 cat confdefs.h >>conftest.$ac_ext
5463 cat >>conftest.$ac_ext <<_ACEOF
5464 /* end confdefs.h. */
5465 #include <sys/types.h>
5466 #include <sys/param.h>
5467
5468 int
5469 main ()
5470 {
5471 #if BYTE_ORDER != BIG_ENDIAN
5472 not big endian
5473 #endif
5474
5475 ;
5476 return 0;
5477 }
5478 _ACEOF
5479 rm -f conftest.$ac_objext
5480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5481 (eval $ac_compile) 2>conftest.er1
5482 ac_status=$?
5483 grep -v '^ *+' conftest.er1 >conftest.err
5484 rm -f conftest.er1
5485 cat conftest.err >&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } &&
5488 { ac_try='test -z "$ac_c_werror_flag"
5489 || test ! -s conftest.err'
5490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5491 (eval $ac_try) 2>&5
5492 ac_status=$?
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; } &&
5495 { ac_try='test -s conftest.$ac_objext'
5496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5497 (eval $ac_try) 2>&5
5498 ac_status=$?
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; }; then
5501 ac_cv_c_bigendian=yes
5502 else
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5505
5506 ac_cv_c_bigendian=no
5507 fi
5508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5509 else
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5512
5513 # It does not; compile a test program.
5514 if test "$cross_compiling" = yes; then
5515 # try to guess the endianness by grepping values into an object file
5516 ac_cv_c_bigendian=unknown
5517 cat >conftest.$ac_ext <<_ACEOF
5518 /* confdefs.h. */
5519 _ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5524 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5525 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5526 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5527 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5528 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5529 int
5530 main ()
5531 {
5532 _ascii (); _ebcdic ();
5533 ;
5534 return 0;
5535 }
5536 _ACEOF
5537 rm -f conftest.$ac_objext
5538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5539 (eval $ac_compile) 2>conftest.er1
5540 ac_status=$?
5541 grep -v '^ *+' conftest.er1 >conftest.err
5542 rm -f conftest.er1
5543 cat conftest.err >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } &&
5546 { ac_try='test -z "$ac_c_werror_flag"
5547 || test ! -s conftest.err'
5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 (eval $ac_try) 2>&5
5550 ac_status=$?
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; } &&
5553 { ac_try='test -s conftest.$ac_objext'
5554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555 (eval $ac_try) 2>&5
5556 ac_status=$?
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
5559 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5560 ac_cv_c_bigendian=yes
5561 fi
5562 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5563 if test "$ac_cv_c_bigendian" = unknown; then
5564 ac_cv_c_bigendian=no
5565 else
5566 # finding both strings is unlikely to happen, but who knows?
5567 ac_cv_c_bigendian=unknown
5568 fi
5569 fi
5570 else
5571 echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5573
5574 fi
5575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5576 else
5577 cat >conftest.$ac_ext <<_ACEOF
5578 /* confdefs.h. */
5579 _ACEOF
5580 cat confdefs.h >>conftest.$ac_ext
5581 cat >>conftest.$ac_ext <<_ACEOF
5582 /* end confdefs.h. */
5583 int
5584 main ()
5585 {
5586 /* Are we little or big endian? From Harbison&Steele. */
5587 union
5588 {
5589 long l;
5590 char c[sizeof (long)];
5591 } u;
5592 u.l = 1;
5593 exit (u.c[sizeof (long) - 1] == 1);
5594 }
5595 _ACEOF
5596 rm -f conftest$ac_exeext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5598 (eval $ac_link) 2>&5
5599 ac_status=$?
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603 (eval $ac_try) 2>&5
5604 ac_status=$?
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; }; then
5607 ac_cv_c_bigendian=no
5608 else
5609 echo "$as_me: program exited with status $ac_status" >&5
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5612
5613 ( exit $ac_status )
5614 ac_cv_c_bigendian=yes
5615 fi
5616 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5617 fi
5618 fi
5619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5620 fi
5621 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5622 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5623 case $ac_cv_c_bigendian in
5624 yes)
5625
5626 cat >>confdefs.h <<\_ACEOF
5627 @%:@define WORDS_BIGENDIAN 1
5628 _ACEOF
5629 ;;
5630 no)
5631 ;;
5632 *)
5633 { { echo "$as_me:$LINENO: error: unknown endianness
5634 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5635 echo "$as_me: error: unknown endianness
5636 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5637 { (exit 1); exit 1; }; } ;;
5638 esac
5639
5640 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
5641 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
5642 if test "${ac_cv_c_stringize+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5645 cat >conftest.$ac_ext <<_ACEOF
5646 /* confdefs.h. */
5647 _ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5651 @%:@define x(y) #y
5652
5653 char *s = x(teststring);
5654 _ACEOF
5655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5656 $EGREP "@%:@teststring" >/dev/null 2>&1; then
5657 ac_cv_c_stringize=no
5658 else
5659 ac_cv_c_stringize=yes
5660 fi
5661 rm -f conftest*
5662
5663 fi
5664 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
5665 echo "${ECHO_T}$ac_cv_c_stringize" >&6
5666 if test $ac_cv_c_stringize = yes; then
5667
5668 cat >>confdefs.h <<\_ACEOF
5669 @%:@define HAVE_STRINGIZE 1
5670 _ACEOF
5671
5672 fi
5673
5674 echo "$as_me:$LINENO: checking for working long double with more range or precision than double" >&5
5675 echo $ECHO_N "checking for working long double with more range or precision than double... $ECHO_C" >&6
5676 if test "${ac_cv_c_long_double+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 else
5679 cat >conftest.$ac_ext <<_ACEOF
5680 /* confdefs.h. */
5681 _ACEOF
5682 cat confdefs.h >>conftest.$ac_ext
5683 cat >>conftest.$ac_ext <<_ACEOF
5684 /* end confdefs.h. */
5685 #include <float.h>
5686 long double foo = 0.0;
5687 int
5688 main ()
5689 {
5690 static int test_array @<:@1 - 2 * !(/* Using '|' rather than '||' catches a GCC 2.95.2 x86 bug. */
5691 (DBL_MAX < LDBL_MAX) | (LDBL_EPSILON < DBL_EPSILON)
5692 | (DBL_MAX_EXP < LDBL_MAX_EXP) | (DBL_MANT_DIG < LDBL_MANT_DIG))@:>@;
5693 test_array @<:@0@:>@ = 0
5694
5695 ;
5696 return 0;
5697 }
5698 _ACEOF
5699 rm -f conftest.$ac_objext
5700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5701 (eval $ac_compile) 2>conftest.er1
5702 ac_status=$?
5703 grep -v '^ *+' conftest.er1 >conftest.err
5704 rm -f conftest.er1
5705 cat conftest.err >&5
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } &&
5708 { ac_try='test -z "$ac_c_werror_flag"
5709 || test ! -s conftest.err'
5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711 (eval $ac_try) 2>&5
5712 ac_status=$?
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; } &&
5715 { ac_try='test -s conftest.$ac_objext'
5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 (eval $ac_try) 2>&5
5718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; }; then
5721 ac_cv_c_long_double=yes
5722 else
5723 echo "$as_me: failed program was:" >&5
5724 sed 's/^/| /' conftest.$ac_ext >&5
5725
5726 ac_cv_c_long_double=no
5727 fi
5728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5729 fi
5730 echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5
5731 echo "${ECHO_T}$ac_cv_c_long_double" >&6
5732 if test $ac_cv_c_long_double = yes; then
5733
5734 cat >>confdefs.h <<\_ACEOF
5735 @%:@define HAVE_LONG_DOUBLE 1
5736 _ACEOF
5737
5738 fi
5739
5740 echo "$as_me:$LINENO: checking for function prototypes" >&5
5741 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5742 if test "$ac_cv_prog_cc_stdc" != no; then
5743 echo "$as_me:$LINENO: result: yes" >&5
5744 echo "${ECHO_T}yes" >&6
5745
5746 cat >>confdefs.h <<\_ACEOF
5747 @%:@define PROTOTYPES 1
5748 _ACEOF
5749
5750
5751 cat >>confdefs.h <<\_ACEOF
5752 @%:@define __PROTOTYPES 1
5753 _ACEOF
5754
5755 else
5756 echo "$as_me:$LINENO: result: no" >&5
5757 echo "${ECHO_T}no" >&6
5758 fi
5759
5760
5761 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
5762 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
5763 if test "${ac_cv_c_char_unsigned+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 else
5766 cat >conftest.$ac_ext <<_ACEOF
5767 /* confdefs.h. */
5768 _ACEOF
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h. */
5772 $ac_includes_default
5773 int
5774 main ()
5775 {
5776 static int test_array @<:@1 - 2 * !(((char) -1) < 0)@:>@;
5777 test_array @<:@0@:>@ = 0
5778
5779 ;
5780 return 0;
5781 }
5782 _ACEOF
5783 rm -f conftest.$ac_objext
5784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5785 (eval $ac_compile) 2>conftest.er1
5786 ac_status=$?
5787 grep -v '^ *+' conftest.er1 >conftest.err
5788 rm -f conftest.er1
5789 cat conftest.err >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } &&
5792 { ac_try='test -z "$ac_c_werror_flag"
5793 || test ! -s conftest.err'
5794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5795 (eval $ac_try) 2>&5
5796 ac_status=$?
5797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798 (exit $ac_status); }; } &&
5799 { ac_try='test -s conftest.$ac_objext'
5800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5801 (eval $ac_try) 2>&5
5802 ac_status=$?
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }; }; then
5805 ac_cv_c_char_unsigned=no
5806 else
5807 echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.$ac_ext >&5
5809
5810 ac_cv_c_char_unsigned=yes
5811 fi
5812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5813 fi
5814 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
5815 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
5816 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
5817 cat >>confdefs.h <<\_ACEOF
5818 @%:@define __CHAR_UNSIGNED__ 1
5819 _ACEOF
5820
5821 fi
5822
5823
5824
5825 MKINSTALLDIRS=
5826 if test -n "$ac_aux_dir"; then
5827 case "$ac_aux_dir" in
5828 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5829 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5830 esac
5831 fi
5832 if test -z "$MKINSTALLDIRS"; then
5833 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5834 fi
5835
5836
5837
5838 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5839 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5840 # Check whether --enable-nls or --disable-nls was given.
5841 if test "${enable_nls+set}" = set; then
5842 enableval="$enable_nls"
5843 USE_NLS=$enableval
5844 else
5845 USE_NLS=yes
5846 fi;
5847 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5848 echo "${ECHO_T}$USE_NLS" >&6
5849
5850
5851
5852
5853
5854
5855 # Prepare PATH_SEPARATOR.
5856 # The user is always right.
5857 if test "${PATH_SEPARATOR+set}" != set; then
5858 echo "#! /bin/sh" >conf$$.sh
5859 echo "exit 0" >>conf$$.sh
5860 chmod +x conf$$.sh
5861 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5862 PATH_SEPARATOR=';'
5863 else
5864 PATH_SEPARATOR=:
5865 fi
5866 rm -f conf$$.sh
5867 fi
5868
5869 # Find out how to test for executable files. Don't use a zero-byte file,
5870 # as systems may use methods other than mode bits to determine executability.
5871 cat >conf$$.file <<_ASEOF
5872 #! /bin/sh
5873 exit 0
5874 _ASEOF
5875 chmod +x conf$$.file
5876 if test -x conf$$.file >/dev/null 2>&1; then
5877 ac_executable_p="test -x"
5878 else
5879 ac_executable_p="test -f"
5880 fi
5881 rm -f conf$$.file
5882
5883 # Extract the first word of "msgfmt", so it can be a program name with args.
5884 set dummy msgfmt; ac_word=$2
5885 echo "$as_me:$LINENO: checking for $ac_word" >&5
5886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5887 if test "${ac_cv_path_MSGFMT+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890 case "$MSGFMT" in
5891 [\\/]* | ?:[\\/]*)
5892 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5893 ;;
5894 *)
5895 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5896 for ac_dir in $PATH; do
5897 IFS="$ac_save_IFS"
5898 test -z "$ac_dir" && ac_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5901 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5902 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5903 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5904 break 2
5905 fi
5906 fi
5907 done
5908 done
5909 IFS="$ac_save_IFS"
5910 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5911 ;;
5912 esac
5913 fi
5914 MSGFMT="$ac_cv_path_MSGFMT"
5915 if test "$MSGFMT" != ":"; then
5916 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5917 echo "${ECHO_T}$MSGFMT" >&6
5918 else
5919 echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6
5921 fi
5922
5923 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5924 set dummy gmsgfmt; ac_word=$2
5925 echo "$as_me:$LINENO: checking for $ac_word" >&5
5926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5927 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930 case $GMSGFMT in
5931 [\\/]* | ?:[\\/]*)
5932 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5933 ;;
5934 *)
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5937 do
5938 IFS=$as_save_IFS
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5942 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5944 break 2
5945 fi
5946 done
5947 done
5948
5949 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5950 ;;
5951 esac
5952 fi
5953 GMSGFMT=$ac_cv_path_GMSGFMT
5954
5955 if test -n "$GMSGFMT"; then
5956 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5957 echo "${ECHO_T}$GMSGFMT" >&6
5958 else
5959 echo "$as_me:$LINENO: result: no" >&5
5960 echo "${ECHO_T}no" >&6
5961 fi
5962
5963
5964
5965 # Prepare PATH_SEPARATOR.
5966 # The user is always right.
5967 if test "${PATH_SEPARATOR+set}" != set; then
5968 echo "#! /bin/sh" >conf$$.sh
5969 echo "exit 0" >>conf$$.sh
5970 chmod +x conf$$.sh
5971 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5972 PATH_SEPARATOR=';'
5973 else
5974 PATH_SEPARATOR=:
5975 fi
5976 rm -f conf$$.sh
5977 fi
5978
5979 # Find out how to test for executable files. Don't use a zero-byte file,
5980 # as systems may use methods other than mode bits to determine executability.
5981 cat >conf$$.file <<_ASEOF
5982 #! /bin/sh
5983 exit 0
5984 _ASEOF
5985 chmod +x conf$$.file
5986 if test -x conf$$.file >/dev/null 2>&1; then
5987 ac_executable_p="test -x"
5988 else
5989 ac_executable_p="test -f"
5990 fi
5991 rm -f conf$$.file
5992
5993 # Extract the first word of "xgettext", so it can be a program name with args.
5994 set dummy xgettext; ac_word=$2
5995 echo "$as_me:$LINENO: checking for $ac_word" >&5
5996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5997 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5998 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000 case "$XGETTEXT" in
6001 [\\/]* | ?:[\\/]*)
6002 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6003 ;;
6004 *)
6005 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6006 for ac_dir in $PATH; do
6007 IFS="$ac_save_IFS"
6008 test -z "$ac_dir" && ac_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6011 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6012 (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
6013 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6014 break 2
6015 fi
6016 fi
6017 done
6018 done
6019 IFS="$ac_save_IFS"
6020 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6021 ;;
6022 esac
6023 fi
6024 XGETTEXT="$ac_cv_path_XGETTEXT"
6025 if test "$XGETTEXT" != ":"; then
6026 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6027 echo "${ECHO_T}$XGETTEXT" >&6
6028 else
6029 echo "$as_me:$LINENO: result: no" >&5
6030 echo "${ECHO_T}no" >&6
6031 fi
6032
6033 rm -f messages.po
6034
6035
6036 # Prepare PATH_SEPARATOR.
6037 # The user is always right.
6038 if test "${PATH_SEPARATOR+set}" != set; then
6039 echo "#! /bin/sh" >conf$$.sh
6040 echo "exit 0" >>conf$$.sh
6041 chmod +x conf$$.sh
6042 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6043 PATH_SEPARATOR=';'
6044 else
6045 PATH_SEPARATOR=:
6046 fi
6047 rm -f conf$$.sh
6048 fi
6049
6050 # Find out how to test for executable files. Don't use a zero-byte file,
6051 # as systems may use methods other than mode bits to determine executability.
6052 cat >conf$$.file <<_ASEOF
6053 #! /bin/sh
6054 exit 0
6055 _ASEOF
6056 chmod +x conf$$.file
6057 if test -x conf$$.file >/dev/null 2>&1; then
6058 ac_executable_p="test -x"
6059 else
6060 ac_executable_p="test -f"
6061 fi
6062 rm -f conf$$.file
6063
6064 # Extract the first word of "msgmerge", so it can be a program name with args.
6065 set dummy msgmerge; ac_word=$2
6066 echo "$as_me:$LINENO: checking for $ac_word" >&5
6067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6068 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6070 else
6071 case "$MSGMERGE" in
6072 [\\/]* | ?:[\\/]*)
6073 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6074 ;;
6075 *)
6076 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6077 for ac_dir in $PATH; do
6078 IFS="$ac_save_IFS"
6079 test -z "$ac_dir" && ac_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6082 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
6083 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6084 break 2
6085 fi
6086 fi
6087 done
6088 done
6089 IFS="$ac_save_IFS"
6090 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6091 ;;
6092 esac
6093 fi
6094 MSGMERGE="$ac_cv_path_MSGMERGE"
6095 if test "$MSGMERGE" != ":"; then
6096 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6097 echo "${ECHO_T}$MSGMERGE" >&6
6098 else
6099 echo "$as_me:$LINENO: result: no" >&5
6100 echo "${ECHO_T}no" >&6
6101 fi
6102
6103
6104 if test "$GMSGFMT" != ":"; then
6105 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6106 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6107 : ;
6108 else
6109 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6110 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6111 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
6112 GMSGFMT=":"
6113 fi
6114 fi
6115
6116 if test "$XGETTEXT" != ":"; then
6117 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6118 (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
6119 : ;
6120 else
6121 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6122 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
6123 XGETTEXT=":"
6124 fi
6125 rm -f messages.po
6126 fi
6127
6128 ac_config_commands="$ac_config_commands default-1"
6129
6130
6131 echo "$as_me:$LINENO: checking for off_t" >&5
6132 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
6133 if test "${ac_cv_type_off_t+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136 cat >conftest.$ac_ext <<_ACEOF
6137 /* confdefs.h. */
6138 _ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6142 $ac_includes_default
6143 int
6144 main ()
6145 {
6146 if ((off_t *) 0)
6147 return 0;
6148 if (sizeof (off_t))
6149 return 0;
6150 ;
6151 return 0;
6152 }
6153 _ACEOF
6154 rm -f conftest.$ac_objext
6155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6156 (eval $ac_compile) 2>conftest.er1
6157 ac_status=$?
6158 grep -v '^ *+' conftest.er1 >conftest.err
6159 rm -f conftest.er1
6160 cat conftest.err >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } &&
6163 { ac_try='test -z "$ac_c_werror_flag"
6164 || test ! -s conftest.err'
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); }; } &&
6170 { ac_try='test -s conftest.$ac_objext'
6171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6172 (eval $ac_try) 2>&5
6173 ac_status=$?
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); }; }; then
6176 ac_cv_type_off_t=yes
6177 else
6178 echo "$as_me: failed program was:" >&5
6179 sed 's/^/| /' conftest.$ac_ext >&5
6180
6181 ac_cv_type_off_t=no
6182 fi
6183 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6184 fi
6185 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6186 echo "${ECHO_T}$ac_cv_type_off_t" >&6
6187 if test $ac_cv_type_off_t = yes; then
6188 :
6189 else
6190
6191 cat >>confdefs.h <<_ACEOF
6192 @%:@define off_t long
6193 _ACEOF
6194
6195 fi
6196
6197 echo "$as_me:$LINENO: checking for size_t" >&5
6198 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
6199 if test "${ac_cv_type_size_t+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202 cat >conftest.$ac_ext <<_ACEOF
6203 /* confdefs.h. */
6204 _ACEOF
6205 cat confdefs.h >>conftest.$ac_ext
6206 cat >>conftest.$ac_ext <<_ACEOF
6207 /* end confdefs.h. */
6208 $ac_includes_default
6209 int
6210 main ()
6211 {
6212 if ((size_t *) 0)
6213 return 0;
6214 if (sizeof (size_t))
6215 return 0;
6216 ;
6217 return 0;
6218 }
6219 _ACEOF
6220 rm -f conftest.$ac_objext
6221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6222 (eval $ac_compile) 2>conftest.er1
6223 ac_status=$?
6224 grep -v '^ *+' conftest.er1 >conftest.err
6225 rm -f conftest.er1
6226 cat conftest.err >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } &&
6229 { ac_try='test -z "$ac_c_werror_flag"
6230 || test ! -s conftest.err'
6231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6232 (eval $ac_try) 2>&5
6233 ac_status=$?
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); }; } &&
6236 { ac_try='test -s conftest.$ac_objext'
6237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6238 (eval $ac_try) 2>&5
6239 ac_status=$?
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; }; then
6242 ac_cv_type_size_t=yes
6243 else
6244 echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6246
6247 ac_cv_type_size_t=no
6248 fi
6249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6250 fi
6251 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6252 echo "${ECHO_T}$ac_cv_type_size_t" >&6
6253 if test $ac_cv_type_size_t = yes; then
6254 :
6255 else
6256
6257 cat >>confdefs.h <<_ACEOF
6258 @%:@define size_t unsigned
6259 _ACEOF
6260
6261 fi
6262
6263 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6264 # for constant arguments. Useless!
6265 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6266 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6267 if test "${ac_cv_working_alloca_h+set}" = set; then
6268 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 else
6270 cat >conftest.$ac_ext <<_ACEOF
6271 /* confdefs.h. */
6272 _ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h. */
6276 @%:@include <alloca.h>
6277 int
6278 main ()
6279 {
6280 char *p = (char *) alloca (2 * sizeof (int));
6281 ;
6282 return 0;
6283 }
6284 _ACEOF
6285 rm -f conftest.$ac_objext conftest$ac_exeext
6286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6287 (eval $ac_link) 2>conftest.er1
6288 ac_status=$?
6289 grep -v '^ *+' conftest.er1 >conftest.err
6290 rm -f conftest.er1
6291 cat conftest.err >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } &&
6294 { ac_try='test -z "$ac_c_werror_flag"
6295 || test ! -s conftest.err'
6296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297 (eval $ac_try) 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; } &&
6301 { ac_try='test -s conftest$ac_exeext'
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6303 (eval $ac_try) 2>&5
6304 ac_status=$?
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; }; then
6307 ac_cv_working_alloca_h=yes
6308 else
6309 echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6311
6312 ac_cv_working_alloca_h=no
6313 fi
6314 rm -f conftest.err conftest.$ac_objext \
6315 conftest$ac_exeext conftest.$ac_ext
6316 fi
6317 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6318 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6319 if test $ac_cv_working_alloca_h = yes; then
6320
6321 cat >>confdefs.h <<\_ACEOF
6322 @%:@define HAVE_ALLOCA_H 1
6323 _ACEOF
6324
6325 fi
6326
6327 echo "$as_me:$LINENO: checking for alloca" >&5
6328 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6329 if test "${ac_cv_func_alloca_works+set}" = set; then
6330 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 else
6332 cat >conftest.$ac_ext <<_ACEOF
6333 /* confdefs.h. */
6334 _ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h. */
6338 #ifdef __GNUC__
6339 # define alloca __builtin_alloca
6340 #else
6341 # ifdef _MSC_VER
6342 # include <malloc.h>
6343 # define alloca _alloca
6344 # else
6345 # if HAVE_ALLOCA_H
6346 # include <alloca.h>
6347 # else
6348 # ifdef _AIX
6349 #pragma alloca
6350 # else
6351 # ifndef alloca /* predefined by HP cc +Olibcalls */
6352 char *alloca ();
6353 # endif
6354 # endif
6355 # endif
6356 # endif
6357 #endif
6358
6359 int
6360 main ()
6361 {
6362 char *p = (char *) alloca (1);
6363 ;
6364 return 0;
6365 }
6366 _ACEOF
6367 rm -f conftest.$ac_objext conftest$ac_exeext
6368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6369 (eval $ac_link) 2>conftest.er1
6370 ac_status=$?
6371 grep -v '^ *+' conftest.er1 >conftest.err
6372 rm -f conftest.er1
6373 cat conftest.err >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } &&
6376 { ac_try='test -z "$ac_c_werror_flag"
6377 || test ! -s conftest.err'
6378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379 (eval $ac_try) 2>&5
6380 ac_status=$?
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; } &&
6383 { ac_try='test -s conftest$ac_exeext'
6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385 (eval $ac_try) 2>&5
6386 ac_status=$?
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; }; then
6389 ac_cv_func_alloca_works=yes
6390 else
6391 echo "$as_me: failed program was:" >&5
6392 sed 's/^/| /' conftest.$ac_ext >&5
6393
6394 ac_cv_func_alloca_works=no
6395 fi
6396 rm -f conftest.err conftest.$ac_objext \
6397 conftest$ac_exeext conftest.$ac_ext
6398 fi
6399 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6400 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6401
6402 if test $ac_cv_func_alloca_works = yes; then
6403
6404 cat >>confdefs.h <<\_ACEOF
6405 @%:@define HAVE_ALLOCA 1
6406 _ACEOF
6407
6408 else
6409 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6410 # that cause trouble. Some versions do not even contain alloca or
6411 # contain a buggy version. If you still want to use their alloca,
6412 # use ar to extract alloca.o from them instead of compiling alloca.c.
6413
6414 ALLOCA=alloca.$ac_objext
6415
6416 cat >>confdefs.h <<\_ACEOF
6417 @%:@define C_ALLOCA 1
6418 _ACEOF
6419
6420
6421 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6422 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6423 if test "${ac_cv_os_cray+set}" = set; then
6424 echo $ECHO_N "(cached) $ECHO_C" >&6
6425 else
6426 cat >conftest.$ac_ext <<_ACEOF
6427 /* confdefs.h. */
6428 _ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6432 #if defined(CRAY) && ! defined(CRAY2)
6433 webecray
6434 #else
6435 wenotbecray
6436 #endif
6437
6438 _ACEOF
6439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6440 $EGREP "webecray" >/dev/null 2>&1; then
6441 ac_cv_os_cray=yes
6442 else
6443 ac_cv_os_cray=no
6444 fi
6445 rm -f conftest*
6446
6447 fi
6448 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6449 echo "${ECHO_T}$ac_cv_os_cray" >&6
6450 if test $ac_cv_os_cray = yes; then
6451 for ac_func in _getb67 GETB67 getb67; do
6452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6453 echo "$as_me:$LINENO: checking for $ac_func" >&5
6454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6455 if eval "test \"\${$as_ac_var+set}\" = set"; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
6457 else
6458 cat >conftest.$ac_ext <<_ACEOF
6459 /* confdefs.h. */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6466 #define $ac_func innocuous_$ac_func
6467
6468 /* System header to define __stub macros and hopefully few prototypes,
6469 which can conflict with char $ac_func (); below.
6470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6471 <limits.h> exists even on freestanding compilers. */
6472
6473 #ifdef __STDC__
6474 # include <limits.h>
6475 #else
6476 # include <assert.h>
6477 #endif
6478
6479 #undef $ac_func
6480
6481 /* Override any gcc2 internal prototype to avoid an error. */
6482 #ifdef __cplusplus
6483 extern "C"
6484 {
6485 #endif
6486 /* We use char because int might match the return type of a gcc2
6487 builtin and then its argument prototype would still apply. */
6488 char $ac_func ();
6489 /* The GNU C library defines this for functions which it implements
6490 to always fail with ENOSYS. Some functions are actually named
6491 something starting with __ and the normal name is an alias. */
6492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6493 choke me
6494 #else
6495 char (*f) () = $ac_func;
6496 #endif
6497 #ifdef __cplusplus
6498 }
6499 #endif
6500
6501 int
6502 main ()
6503 {
6504 return f != $ac_func;
6505 ;
6506 return 0;
6507 }
6508 _ACEOF
6509 rm -f conftest.$ac_objext conftest$ac_exeext
6510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6511 (eval $ac_link) 2>conftest.er1
6512 ac_status=$?
6513 grep -v '^ *+' conftest.er1 >conftest.err
6514 rm -f conftest.er1
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } &&
6518 { ac_try='test -z "$ac_c_werror_flag"
6519 || test ! -s conftest.err'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 (eval $ac_try) 2>&5
6522 ac_status=$?
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; } &&
6525 { ac_try='test -s conftest$ac_exeext'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527 (eval $ac_try) 2>&5
6528 ac_status=$?
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; }; then
6531 eval "$as_ac_var=yes"
6532 else
6533 echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6535
6536 eval "$as_ac_var=no"
6537 fi
6538 rm -f conftest.err conftest.$ac_objext \
6539 conftest$ac_exeext conftest.$ac_ext
6540 fi
6541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6542 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6543 if test `eval echo '${'$as_ac_var'}'` = yes; then
6544
6545 cat >>confdefs.h <<_ACEOF
6546 @%:@define CRAY_STACKSEG_END $ac_func
6547 _ACEOF
6548
6549 break
6550 fi
6551
6552 done
6553 fi
6554
6555 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6556 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6557 if test "${ac_cv_c_stack_direction+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560 if test "$cross_compiling" = yes; then
6561 ac_cv_c_stack_direction=0
6562 else
6563 cat >conftest.$ac_ext <<_ACEOF
6564 /* confdefs.h. */
6565 _ACEOF
6566 cat confdefs.h >>conftest.$ac_ext
6567 cat >>conftest.$ac_ext <<_ACEOF
6568 /* end confdefs.h. */
6569 int
6570 find_stack_direction ()
6571 {
6572 static char *addr = 0;
6573 auto char dummy;
6574 if (addr == 0)
6575 {
6576 addr = &dummy;
6577 return find_stack_direction ();
6578 }
6579 else
6580 return (&dummy > addr) ? 1 : -1;
6581 }
6582
6583 int
6584 main ()
6585 {
6586 exit (find_stack_direction () < 0);
6587 }
6588 _ACEOF
6589 rm -f conftest$ac_exeext
6590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6591 (eval $ac_link) 2>&5
6592 ac_status=$?
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 (eval $ac_try) 2>&5
6597 ac_status=$?
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
6600 ac_cv_c_stack_direction=1
6601 else
6602 echo "$as_me: program exited with status $ac_status" >&5
6603 echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6605
6606 ( exit $ac_status )
6607 ac_cv_c_stack_direction=-1
6608 fi
6609 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6610 fi
6611 fi
6612 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6613 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6614
6615 cat >>confdefs.h <<_ACEOF
6616 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
6617 _ACEOF
6618
6619
6620 fi
6621
6622
6623
6624 for ac_header in stdlib.h unistd.h
6625 do
6626 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6628 echo "$as_me:$LINENO: checking for $ac_header" >&5
6629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 fi
6633 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6634 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6635 else
6636 # Is the header compilable?
6637 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6638 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6639 cat >conftest.$ac_ext <<_ACEOF
6640 /* confdefs.h. */
6641 _ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h. */
6645 $ac_includes_default
6646 @%:@include <$ac_header>
6647 _ACEOF
6648 rm -f conftest.$ac_objext
6649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6650 (eval $ac_compile) 2>conftest.er1
6651 ac_status=$?
6652 grep -v '^ *+' conftest.er1 >conftest.err
6653 rm -f conftest.er1
6654 cat conftest.err >&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); } &&
6657 { ac_try='test -z "$ac_c_werror_flag"
6658 || test ! -s conftest.err'
6659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660 (eval $ac_try) 2>&5
6661 ac_status=$?
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); }; } &&
6664 { ac_try='test -s conftest.$ac_objext'
6665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6666 (eval $ac_try) 2>&5
6667 ac_status=$?
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); }; }; then
6670 ac_header_compiler=yes
6671 else
6672 echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.$ac_ext >&5
6674
6675 ac_header_compiler=no
6676 fi
6677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6678 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6679 echo "${ECHO_T}$ac_header_compiler" >&6
6680
6681 # Is the header present?
6682 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6684 cat >conftest.$ac_ext <<_ACEOF
6685 /* confdefs.h. */
6686 _ACEOF
6687 cat confdefs.h >>conftest.$ac_ext
6688 cat >>conftest.$ac_ext <<_ACEOF
6689 /* end confdefs.h. */
6690 @%:@include <$ac_header>
6691 _ACEOF
6692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6694 ac_status=$?
6695 grep -v '^ *+' conftest.er1 >conftest.err
6696 rm -f conftest.er1
6697 cat conftest.err >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } >/dev/null; then
6700 if test -s conftest.err; then
6701 ac_cpp_err=$ac_c_preproc_warn_flag
6702 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6703 else
6704 ac_cpp_err=
6705 fi
6706 else
6707 ac_cpp_err=yes
6708 fi
6709 if test -z "$ac_cpp_err"; then
6710 ac_header_preproc=yes
6711 else
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6714
6715 ac_header_preproc=no
6716 fi
6717 rm -f conftest.err conftest.$ac_ext
6718 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6719 echo "${ECHO_T}$ac_header_preproc" >&6
6720
6721 # So? What about this header?
6722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6723 yes:no: )
6724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6728 ac_header_preproc=yes
6729 ;;
6730 no:yes:* )
6731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6734 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6738 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6743 (
6744 cat <<\_ASBOX
6745 @%:@@%:@ ------------------------------- @%:@@%:@
6746 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
6747 @%:@@%:@ ------------------------------- @%:@@%:@
6748 _ASBOX
6749 ) |
6750 sed "s/^/$as_me: WARNING: /" >&2
6751 ;;
6752 esac
6753 echo "$as_me:$LINENO: checking for $ac_header" >&5
6754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6756 echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6758 eval "$as_ac_Header=\$ac_header_preproc"
6759 fi
6760 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6761 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6762
6763 fi
6764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6765 cat >>confdefs.h <<_ACEOF
6766 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6767 _ACEOF
6768
6769 fi
6770
6771 done
6772
6773
6774 for ac_func in getpagesize
6775 do
6776 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6777 echo "$as_me:$LINENO: checking for $ac_func" >&5
6778 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6779 if eval "test \"\${$as_ac_var+set}\" = set"; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782 cat >conftest.$ac_ext <<_ACEOF
6783 /* confdefs.h. */
6784 _ACEOF
6785 cat confdefs.h >>conftest.$ac_ext
6786 cat >>conftest.$ac_ext <<_ACEOF
6787 /* end confdefs.h. */
6788 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6789 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6790 #define $ac_func innocuous_$ac_func
6791
6792 /* System header to define __stub macros and hopefully few prototypes,
6793 which can conflict with char $ac_func (); below.
6794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6795 <limits.h> exists even on freestanding compilers. */
6796
6797 #ifdef __STDC__
6798 # include <limits.h>
6799 #else
6800 # include <assert.h>
6801 #endif
6802
6803 #undef $ac_func
6804
6805 /* Override any gcc2 internal prototype to avoid an error. */
6806 #ifdef __cplusplus
6807 extern "C"
6808 {
6809 #endif
6810 /* We use char because int might match the return type of a gcc2
6811 builtin and then its argument prototype would still apply. */
6812 char $ac_func ();
6813 /* The GNU C library defines this for functions which it implements
6814 to always fail with ENOSYS. Some functions are actually named
6815 something starting with __ and the normal name is an alias. */
6816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6817 choke me
6818 #else
6819 char (*f) () = $ac_func;
6820 #endif
6821 #ifdef __cplusplus
6822 }
6823 #endif
6824
6825 int
6826 main ()
6827 {
6828 return f != $ac_func;
6829 ;
6830 return 0;
6831 }
6832 _ACEOF
6833 rm -f conftest.$ac_objext conftest$ac_exeext
6834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6835 (eval $ac_link) 2>conftest.er1
6836 ac_status=$?
6837 grep -v '^ *+' conftest.er1 >conftest.err
6838 rm -f conftest.er1
6839 cat conftest.err >&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); } &&
6842 { ac_try='test -z "$ac_c_werror_flag"
6843 || test ! -s conftest.err'
6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845 (eval $ac_try) 2>&5
6846 ac_status=$?
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; } &&
6849 { ac_try='test -s conftest$ac_exeext'
6850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6851 (eval $ac_try) 2>&5
6852 ac_status=$?
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; }; then
6855 eval "$as_ac_var=yes"
6856 else
6857 echo "$as_me: failed program was:" >&5
6858 sed 's/^/| /' conftest.$ac_ext >&5
6859
6860 eval "$as_ac_var=no"
6861 fi
6862 rm -f conftest.err conftest.$ac_objext \
6863 conftest$ac_exeext conftest.$ac_ext
6864 fi
6865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6867 if test `eval echo '${'$as_ac_var'}'` = yes; then
6868 cat >>confdefs.h <<_ACEOF
6869 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6870 _ACEOF
6871
6872 fi
6873 done
6874
6875 echo "$as_me:$LINENO: checking for working mmap" >&5
6876 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6877 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 else
6880 if test "$cross_compiling" = yes; then
6881 ac_cv_func_mmap_fixed_mapped=no
6882 else
6883 cat >conftest.$ac_ext <<_ACEOF
6884 /* confdefs.h. */
6885 _ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6889 $ac_includes_default
6890 /* malloc might have been renamed as rpl_malloc. */
6891 #undef malloc
6892
6893 /* Thanks to Mike Haertel and Jim Avera for this test.
6894 Here is a matrix of mmap possibilities:
6895 mmap private not fixed
6896 mmap private fixed at somewhere currently unmapped
6897 mmap private fixed at somewhere already mapped
6898 mmap shared not fixed
6899 mmap shared fixed at somewhere currently unmapped
6900 mmap shared fixed at somewhere already mapped
6901 For private mappings, we should verify that changes cannot be read()
6902 back from the file, nor mmap's back from the file at a different
6903 address. (There have been systems where private was not correctly
6904 implemented like the infamous i386 svr4.0, and systems where the
6905 VM page cache was not coherent with the file system buffer cache
6906 like early versions of FreeBSD and possibly contemporary NetBSD.)
6907 For shared mappings, we should conversely verify that changes get
6908 propagated back to all the places they're supposed to be.
6909
6910 Grep wants private fixed already mapped.
6911 The main things grep needs to know about mmap are:
6912 * does it exist and is it safe to write into the mmap'd area
6913 * how to use it (BSD variants) */
6914
6915 #include <fcntl.h>
6916 #include <sys/mman.h>
6917
6918 #if !STDC_HEADERS && !HAVE_STDLIB_H
6919 char *malloc ();
6920 #endif
6921
6922 /* This mess was copied from the GNU getpagesize.h. */
6923 #if !HAVE_GETPAGESIZE
6924 /* Assume that all systems that can run configure have sys/param.h. */
6925 # if !HAVE_SYS_PARAM_H
6926 # define HAVE_SYS_PARAM_H 1
6927 # endif
6928
6929 # ifdef _SC_PAGESIZE
6930 # define getpagesize() sysconf(_SC_PAGESIZE)
6931 # else /* no _SC_PAGESIZE */
6932 # if HAVE_SYS_PARAM_H
6933 # include <sys/param.h>
6934 # ifdef EXEC_PAGESIZE
6935 # define getpagesize() EXEC_PAGESIZE
6936 # else /* no EXEC_PAGESIZE */
6937 # ifdef NBPG
6938 # define getpagesize() NBPG * CLSIZE
6939 # ifndef CLSIZE
6940 # define CLSIZE 1
6941 # endif /* no CLSIZE */
6942 # else /* no NBPG */
6943 # ifdef NBPC
6944 # define getpagesize() NBPC
6945 # else /* no NBPC */
6946 # ifdef PAGESIZE
6947 # define getpagesize() PAGESIZE
6948 # endif /* PAGESIZE */
6949 # endif /* no NBPC */
6950 # endif /* no NBPG */
6951 # endif /* no EXEC_PAGESIZE */
6952 # else /* no HAVE_SYS_PARAM_H */
6953 # define getpagesize() 8192 /* punt totally */
6954 # endif /* no HAVE_SYS_PARAM_H */
6955 # endif /* no _SC_PAGESIZE */
6956
6957 #endif /* no HAVE_GETPAGESIZE */
6958
6959 int
6960 main ()
6961 {
6962 char *data, *data2, *data3;
6963 int i, pagesize;
6964 int fd;
6965
6966 pagesize = getpagesize ();
6967
6968 /* First, make a file with some known garbage in it. */
6969 data = (char *) malloc (pagesize);
6970 if (!data)
6971 exit (1);
6972 for (i = 0; i < pagesize; ++i)
6973 *(data + i) = rand ();
6974 umask (0);
6975 fd = creat ("conftest.mmap", 0600);
6976 if (fd < 0)
6977 exit (1);
6978 if (write (fd, data, pagesize) != pagesize)
6979 exit (1);
6980 close (fd);
6981
6982 /* Next, try to mmap the file at a fixed address which already has
6983 something else allocated at it. If we can, also make sure that
6984 we see the same garbage. */
6985 fd = open ("conftest.mmap", O_RDWR);
6986 if (fd < 0)
6987 exit (1);
6988 data2 = (char *) malloc (2 * pagesize);
6989 if (!data2)
6990 exit (1);
6991 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6992 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6993 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6994 exit (1);
6995 for (i = 0; i < pagesize; ++i)
6996 if (*(data + i) != *(data2 + i))
6997 exit (1);
6998
6999 /* Finally, make sure that changes to the mapped area do not
7000 percolate back to the file as seen by read(). (This is a bug on
7001 some variants of i386 svr4.0.) */
7002 for (i = 0; i < pagesize; ++i)
7003 *(data2 + i) = *(data2 + i) + 1;
7004 data3 = (char *) malloc (pagesize);
7005 if (!data3)
7006 exit (1);
7007 if (read (fd, data3, pagesize) != pagesize)
7008 exit (1);
7009 for (i = 0; i < pagesize; ++i)
7010 if (*(data + i) != *(data3 + i))
7011 exit (1);
7012 close (fd);
7013 exit (0);
7014 }
7015 _ACEOF
7016 rm -f conftest$ac_exeext
7017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7018 (eval $ac_link) 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7023 (eval $ac_try) 2>&5
7024 ac_status=$?
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; }; then
7027 ac_cv_func_mmap_fixed_mapped=yes
7028 else
7029 echo "$as_me: program exited with status $ac_status" >&5
7030 echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7032
7033 ( exit $ac_status )
7034 ac_cv_func_mmap_fixed_mapped=no
7035 fi
7036 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7037 fi
7038 fi
7039 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7040 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
7041 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7042
7043 cat >>confdefs.h <<\_ACEOF
7044 @%:@define HAVE_MMAP 1
7045 _ACEOF
7046
7047 fi
7048 rm -f conftest.mmap
7049
7050
7051 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7052 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
7053 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056 cat >conftest.$ac_ext <<_ACEOF
7057 /* confdefs.h. */
7058 _ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h. */
7062
7063 #include <features.h>
7064 #ifdef __GNU_LIBRARY__
7065 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7066 Lucky GNU user
7067 #endif
7068 #endif
7069
7070 _ACEOF
7071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7072 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7073 ac_cv_gnu_library_2_1=yes
7074 else
7075 ac_cv_gnu_library_2_1=no
7076 fi
7077 rm -f conftest*
7078
7079
7080
7081 fi
7082 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7083 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
7084
7085 GLIBC21="$ac_cv_gnu_library_2_1"
7086
7087
7088
7089
7090 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
7091 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
7092 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 else
7095
7096 if test "$cross_compiling" = yes; then
7097
7098 # Guess based on the CPU.
7099 case "$host_cpu" in
7100 alpha* | i3456786 | m68k | s390*)
7101 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7102 *)
7103 gt_cv_int_divbyzero_sigfpe="guessing no";;
7104 esac
7105
7106 else
7107 cat >conftest.$ac_ext <<_ACEOF
7108 /* confdefs.h. */
7109 _ACEOF
7110 cat confdefs.h >>conftest.$ac_ext
7111 cat >>conftest.$ac_ext <<_ACEOF
7112 /* end confdefs.h. */
7113
7114 #include <stdlib.h>
7115 #include <signal.h>
7116
7117 static void
7118 #ifdef __cplusplus
7119 sigfpe_handler (int sig)
7120 #else
7121 sigfpe_handler (sig) int sig;
7122 #endif
7123 {
7124 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7125 exit (sig != SIGFPE);
7126 }
7127
7128 int x = 1;
7129 int y = 0;
7130 int z;
7131 int nan;
7132
7133 int main ()
7134 {
7135 signal (SIGFPE, sigfpe_handler);
7136 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7137 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7138 signal (SIGTRAP, sigfpe_handler);
7139 #endif
7140 /* Linux/SPARC yields signal SIGILL. */
7141 #if defined (__sparc__) && defined (__linux__)
7142 signal (SIGILL, sigfpe_handler);
7143 #endif
7144
7145 z = x / y;
7146 nan = y / y;
7147 exit (1);
7148 }
7149
7150 _ACEOF
7151 rm -f conftest$ac_exeext
7152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7153 (eval $ac_link) 2>&5
7154 ac_status=$?
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158 (eval $ac_try) 2>&5
7159 ac_status=$?
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); }; }; then
7162 gt_cv_int_divbyzero_sigfpe=yes
7163 else
7164 echo "$as_me: program exited with status $ac_status" >&5
7165 echo "$as_me: failed program was:" >&5
7166 sed 's/^/| /' conftest.$ac_ext >&5
7167
7168 ( exit $ac_status )
7169 gt_cv_int_divbyzero_sigfpe=no
7170 fi
7171 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7172 fi
7173
7174 fi
7175 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
7176 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
7177 case "$gt_cv_int_divbyzero_sigfpe" in
7178 *yes) value=1;;
7179 *) value=0;;
7180 esac
7181
7182 cat >>confdefs.h <<_ACEOF
7183 @%:@define INTDIV0_RAISES_SIGFPE $value
7184 _ACEOF
7185
7186
7187
7188 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7189 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7190 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
7191 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 else
7193 cat >conftest.$ac_ext <<_ACEOF
7194 /* confdefs.h. */
7195 _ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7199 #include <sys/types.h>
7200 #include <inttypes.h>
7201 int
7202 main ()
7203 {
7204 uintmax_t i = (uintmax_t) -1;
7205 ;
7206 return 0;
7207 }
7208 _ACEOF
7209 rm -f conftest.$ac_objext
7210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7211 (eval $ac_compile) 2>conftest.er1
7212 ac_status=$?
7213 grep -v '^ *+' conftest.er1 >conftest.err
7214 rm -f conftest.er1
7215 cat conftest.err >&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); } &&
7218 { ac_try='test -z "$ac_c_werror_flag"
7219 || test ! -s conftest.err'
7220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221 (eval $ac_try) 2>&5
7222 ac_status=$?
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); }; } &&
7225 { ac_try='test -s conftest.$ac_objext'
7226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227 (eval $ac_try) 2>&5
7228 ac_status=$?
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); }; }; then
7231 jm_ac_cv_header_inttypes_h=yes
7232 else
7233 echo "$as_me: failed program was:" >&5
7234 sed 's/^/| /' conftest.$ac_ext >&5
7235
7236 jm_ac_cv_header_inttypes_h=no
7237 fi
7238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7239 fi
7240 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
7241 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
7242 if test $jm_ac_cv_header_inttypes_h = yes; then
7243
7244 cat >>confdefs.h <<_ACEOF
7245 @%:@define HAVE_INTTYPES_H_WITH_UINTMAX 1
7246 _ACEOF
7247
7248 fi
7249
7250
7251 echo "$as_me:$LINENO: checking for stdint.h" >&5
7252 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7253 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 else
7256 cat >conftest.$ac_ext <<_ACEOF
7257 /* confdefs.h. */
7258 _ACEOF
7259 cat confdefs.h >>conftest.$ac_ext
7260 cat >>conftest.$ac_ext <<_ACEOF
7261 /* end confdefs.h. */
7262 #include <sys/types.h>
7263 #include <stdint.h>
7264 int
7265 main ()
7266 {
7267 uintmax_t i = (uintmax_t) -1;
7268 ;
7269 return 0;
7270 }
7271 _ACEOF
7272 rm -f conftest.$ac_objext
7273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7274 (eval $ac_compile) 2>conftest.er1
7275 ac_status=$?
7276 grep -v '^ *+' conftest.er1 >conftest.err
7277 rm -f conftest.er1
7278 cat conftest.err >&5
7279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280 (exit $ac_status); } &&
7281 { ac_try='test -z "$ac_c_werror_flag"
7282 || test ! -s conftest.err'
7283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7284 (eval $ac_try) 2>&5
7285 ac_status=$?
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); }; } &&
7288 { ac_try='test -s conftest.$ac_objext'
7289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7290 (eval $ac_try) 2>&5
7291 ac_status=$?
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); }; }; then
7294 jm_ac_cv_header_stdint_h=yes
7295 else
7296 echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7298
7299 jm_ac_cv_header_stdint_h=no
7300 fi
7301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7302 fi
7303 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
7304 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
7305 if test $jm_ac_cv_header_stdint_h = yes; then
7306
7307 cat >>confdefs.h <<_ACEOF
7308 @%:@define HAVE_STDINT_H_WITH_UINTMAX 1
7309 _ACEOF
7310
7311 fi
7312
7313
7314 echo "$as_me:$LINENO: checking for unsigned long long" >&5
7315 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
7316 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7317 echo $ECHO_N "(cached) $ECHO_C" >&6
7318 else
7319 cat >conftest.$ac_ext <<_ACEOF
7320 /* confdefs.h. */
7321 _ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7325 unsigned long long ull = 1; int i = 63;
7326 int
7327 main ()
7328 {
7329 unsigned long long ullmax = (unsigned long long) -1;
7330 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7331 ;
7332 return 0;
7333 }
7334 _ACEOF
7335 rm -f conftest.$ac_objext conftest$ac_exeext
7336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7337 (eval $ac_link) 2>conftest.er1
7338 ac_status=$?
7339 grep -v '^ *+' conftest.er1 >conftest.err
7340 rm -f conftest.er1
7341 cat conftest.err >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); } &&
7344 { ac_try='test -z "$ac_c_werror_flag"
7345 || test ! -s conftest.err'
7346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347 (eval $ac_try) 2>&5
7348 ac_status=$?
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); }; } &&
7351 { ac_try='test -s conftest$ac_exeext'
7352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 (eval $ac_try) 2>&5
7354 ac_status=$?
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); }; }; then
7357 ac_cv_type_unsigned_long_long=yes
7358 else
7359 echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7361
7362 ac_cv_type_unsigned_long_long=no
7363 fi
7364 rm -f conftest.err conftest.$ac_objext \
7365 conftest$ac_exeext conftest.$ac_ext
7366 fi
7367 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7368 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
7369 if test $ac_cv_type_unsigned_long_long = yes; then
7370
7371 cat >>confdefs.h <<\_ACEOF
7372 @%:@define HAVE_UNSIGNED_LONG_LONG 1
7373 _ACEOF
7374
7375 fi
7376
7377
7378
7379
7380 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7381
7382 test $ac_cv_type_unsigned_long_long = yes \
7383 && ac_type='unsigned long long' \
7384 || ac_type='unsigned long'
7385
7386 cat >>confdefs.h <<_ACEOF
7387 @%:@define uintmax_t $ac_type
7388 _ACEOF
7389
7390 else
7391
7392 cat >>confdefs.h <<\_ACEOF
7393 @%:@define HAVE_UINTMAX_T 1
7394 _ACEOF
7395
7396 fi
7397
7398
7399 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7400 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7401 if test "${gt_cv_header_inttypes_h+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7403 else
7404
7405 cat >conftest.$ac_ext <<_ACEOF
7406 /* confdefs.h. */
7407 _ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h. */
7411 #include <sys/types.h>
7412 #include <inttypes.h>
7413 int
7414 main ()
7415 {
7416
7417 ;
7418 return 0;
7419 }
7420 _ACEOF
7421 rm -f conftest.$ac_objext
7422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7423 (eval $ac_compile) 2>conftest.er1
7424 ac_status=$?
7425 grep -v '^ *+' conftest.er1 >conftest.err
7426 rm -f conftest.er1
7427 cat conftest.err >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } &&
7430 { ac_try='test -z "$ac_c_werror_flag"
7431 || test ! -s conftest.err'
7432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7433 (eval $ac_try) 2>&5
7434 ac_status=$?
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); }; } &&
7437 { ac_try='test -s conftest.$ac_objext'
7438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7439 (eval $ac_try) 2>&5
7440 ac_status=$?
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); }; }; then
7443 gt_cv_header_inttypes_h=yes
7444 else
7445 echo "$as_me: failed program was:" >&5
7446 sed 's/^/| /' conftest.$ac_ext >&5
7447
7448 gt_cv_header_inttypes_h=no
7449 fi
7450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7451
7452 fi
7453 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7454 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
7455 if test $gt_cv_header_inttypes_h = yes; then
7456
7457 cat >>confdefs.h <<_ACEOF
7458 @%:@define HAVE_INTTYPES_H 1
7459 _ACEOF
7460
7461 fi
7462
7463
7464
7465 if test $gt_cv_header_inttypes_h = yes; then
7466 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7467 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
7468 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 else
7471
7472 cat >conftest.$ac_ext <<_ACEOF
7473 /* confdefs.h. */
7474 _ACEOF
7475 cat confdefs.h >>conftest.$ac_ext
7476 cat >>conftest.$ac_ext <<_ACEOF
7477 /* end confdefs.h. */
7478 #include <inttypes.h>
7479 #ifdef PRId32
7480 char *p = PRId32;
7481 #endif
7482
7483 int
7484 main ()
7485 {
7486
7487 ;
7488 return 0;
7489 }
7490 _ACEOF
7491 rm -f conftest.$ac_objext
7492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7493 (eval $ac_compile) 2>conftest.er1
7494 ac_status=$?
7495 grep -v '^ *+' conftest.er1 >conftest.err
7496 rm -f conftest.er1
7497 cat conftest.err >&5
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); } &&
7500 { ac_try='test -z "$ac_c_werror_flag"
7501 || test ! -s conftest.err'
7502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503 (eval $ac_try) 2>&5
7504 ac_status=$?
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); }; } &&
7507 { ac_try='test -s conftest.$ac_objext'
7508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7509 (eval $ac_try) 2>&5
7510 ac_status=$?
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); }; }; then
7513 gt_cv_inttypes_pri_broken=no
7514 else
7515 echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.$ac_ext >&5
7517
7518 gt_cv_inttypes_pri_broken=yes
7519 fi
7520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7521
7522 fi
7523 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7524 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
7525 fi
7526 if test "$gt_cv_inttypes_pri_broken" = yes; then
7527
7528 cat >>confdefs.h <<_ACEOF
7529 @%:@define PRI_MACROS_BROKEN 1
7530 _ACEOF
7531
7532 fi
7533
7534
7535 if test "X$prefix" = "XNONE"; then
7536 acl_final_prefix="$ac_default_prefix"
7537 else
7538 acl_final_prefix="$prefix"
7539 fi
7540 if test "X$exec_prefix" = "XNONE"; then
7541 acl_final_exec_prefix='${prefix}'
7542 else
7543 acl_final_exec_prefix="$exec_prefix"
7544 fi
7545 acl_save_prefix="$prefix"
7546 prefix="$acl_final_prefix"
7547 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7548 prefix="$acl_save_prefix"
7549
7550
7551 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7552 if test "${with_gnu_ld+set}" = set; then
7553 withval="$with_gnu_ld"
7554 test "$withval" = no || with_gnu_ld=yes
7555 else
7556 with_gnu_ld=no
7557 fi;
7558 # Prepare PATH_SEPARATOR.
7559 # The user is always right.
7560 if test "${PATH_SEPARATOR+set}" != set; then
7561 echo "#! /bin/sh" >conf$$.sh
7562 echo "exit 0" >>conf$$.sh
7563 chmod +x conf$$.sh
7564 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7565 PATH_SEPARATOR=';'
7566 else
7567 PATH_SEPARATOR=:
7568 fi
7569 rm -f conf$$.sh
7570 fi
7571 ac_prog=ld
7572 if test "$GCC" = yes; then
7573 # Check if gcc -print-prog-name=ld gives a path.
7574 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7575 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7576 case $host in
7577 *-*-mingw*)
7578 # gcc leaves a trailing carriage return which upsets mingw
7579 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7580 *)
7581 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7582 esac
7583 case $ac_prog in
7584 # Accept absolute paths.
7585 [\\/]* | [A-Za-z]:[\\/]*)
7586 re_direlt='/[^/][^/]*/\.\./'
7587 # Canonicalize the path of ld
7588 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7589 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7590 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7591 done
7592 test -z "$LD" && LD="$ac_prog"
7593 ;;
7594 "")
7595 # If it fails, then pretend we aren't using GCC.
7596 ac_prog=ld
7597 ;;
7598 *)
7599 # If it is relative, then search for the first ld in PATH.
7600 with_gnu_ld=unknown
7601 ;;
7602 esac
7603 elif test "$with_gnu_ld" = yes; then
7604 echo "$as_me:$LINENO: checking for GNU ld" >&5
7605 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7606 else
7607 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7608 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7609 fi
7610 if test "${acl_cv_path_LD+set}" = set; then
7611 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 else
7613 if test -z "$LD"; then
7614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7615 for ac_dir in $PATH; do
7616 test -z "$ac_dir" && ac_dir=.
7617 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7618 acl_cv_path_LD="$ac_dir/$ac_prog"
7619 # Check to see if the program is GNU ld. I'd rather use --version,
7620 # but apparently some GNU ld's only accept -v.
7621 # Break only if it was the GNU/non-GNU ld that we prefer.
7622 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
7623 test "$with_gnu_ld" != no && break
7624 else
7625 test "$with_gnu_ld" != yes && break
7626 fi
7627 fi
7628 done
7629 IFS="$ac_save_ifs"
7630 else
7631 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7632 fi
7633 fi
7634
7635 LD="$acl_cv_path_LD"
7636 if test -n "$LD"; then
7637 echo "$as_me:$LINENO: result: $LD" >&5
7638 echo "${ECHO_T}$LD" >&6
7639 else
7640 echo "$as_me:$LINENO: result: no" >&5
7641 echo "${ECHO_T}no" >&6
7642 fi
7643 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7644 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7645 { (exit 1); exit 1; }; }
7646 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7647 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7648 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 else
7651 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7652 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7653 acl_cv_prog_gnu_ld=yes
7654 else
7655 acl_cv_prog_gnu_ld=no
7656 fi
7657 fi
7658 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7659 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7660 with_gnu_ld=$acl_cv_prog_gnu_ld
7661
7662
7663
7664 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7665 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7666 if test "${acl_cv_rpath+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 else
7669
7670 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7671 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7672 . ./conftest.sh
7673 rm -f ./conftest.sh
7674 acl_cv_rpath=done
7675
7676 fi
7677 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7678 echo "${ECHO_T}$acl_cv_rpath" >&6
7679 wl="$acl_cv_wl"
7680 libext="$acl_cv_libext"
7681 shlibext="$acl_cv_shlibext"
7682 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7683 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7684 hardcode_direct="$acl_cv_hardcode_direct"
7685 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7686 # Check whether --enable-rpath or --disable-rpath was given.
7687 if test "${enable_rpath+set}" = set; then
7688 enableval="$enable_rpath"
7689 :
7690 else
7691 enable_rpath=yes
7692 fi;
7693
7694
7695
7696
7697
7698
7699
7700 use_additional=yes
7701
7702 acl_save_prefix="$prefix"
7703 prefix="$acl_final_prefix"
7704 acl_save_exec_prefix="$exec_prefix"
7705 exec_prefix="$acl_final_exec_prefix"
7706
7707 eval additional_includedir=\"$includedir\"
7708 eval additional_libdir=\"$libdir\"
7709
7710 exec_prefix="$acl_save_exec_prefix"
7711 prefix="$acl_save_prefix"
7712
7713
7714 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7715 if test "${with_libiconv_prefix+set}" = set; then
7716 withval="$with_libiconv_prefix"
7717
7718 if test "X$withval" = "Xno"; then
7719 use_additional=no
7720 else
7721 if test "X$withval" = "X"; then
7722
7723 acl_save_prefix="$prefix"
7724 prefix="$acl_final_prefix"
7725 acl_save_exec_prefix="$exec_prefix"
7726 exec_prefix="$acl_final_exec_prefix"
7727
7728 eval additional_includedir=\"$includedir\"
7729 eval additional_libdir=\"$libdir\"
7730
7731 exec_prefix="$acl_save_exec_prefix"
7732 prefix="$acl_save_prefix"
7733
7734 else
7735 additional_includedir="$withval/include"
7736 additional_libdir="$withval/lib"
7737 fi
7738 fi
7739
7740 fi;
7741 LIBICONV=
7742 LTLIBICONV=
7743 INCICONV=
7744 rpathdirs=
7745 ltrpathdirs=
7746 names_already_handled=
7747 names_next_round='iconv '
7748 while test -n "$names_next_round"; do
7749 names_this_round="$names_next_round"
7750 names_next_round=
7751 for name in $names_this_round; do
7752 already_handled=
7753 for n in $names_already_handled; do
7754 if test "$n" = "$name"; then
7755 already_handled=yes
7756 break
7757 fi
7758 done
7759 if test -z "$already_handled"; then
7760 names_already_handled="$names_already_handled $name"
7761 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7762 eval value=\"\$HAVE_LIB$uppername\"
7763 if test -n "$value"; then
7764 if test "$value" = yes; then
7765 eval value=\"\$LIB$uppername\"
7766 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7767 eval value=\"\$LTLIB$uppername\"
7768 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7769 else
7770 :
7771 fi
7772 else
7773 found_dir=
7774 found_la=
7775 found_so=
7776 found_a=
7777 if test $use_additional = yes; then
7778 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7779 found_dir="$additional_libdir"
7780 found_so="$additional_libdir/lib$name.$shlibext"
7781 if test -f "$additional_libdir/lib$name.la"; then
7782 found_la="$additional_libdir/lib$name.la"
7783 fi
7784 else
7785 if test -f "$additional_libdir/lib$name.$libext"; then
7786 found_dir="$additional_libdir"
7787 found_a="$additional_libdir/lib$name.$libext"
7788 if test -f "$additional_libdir/lib$name.la"; then
7789 found_la="$additional_libdir/lib$name.la"
7790 fi
7791 fi
7792 fi
7793 fi
7794 if test "X$found_dir" = "X"; then
7795 for x in $LDFLAGS $LTLIBICONV; do
7796
7797 acl_save_prefix="$prefix"
7798 prefix="$acl_final_prefix"
7799 acl_save_exec_prefix="$exec_prefix"
7800 exec_prefix="$acl_final_exec_prefix"
7801 eval x=\"$x\"
7802 exec_prefix="$acl_save_exec_prefix"
7803 prefix="$acl_save_prefix"
7804
7805 case "$x" in
7806 -L*)
7807 dir=`echo "X$x" | sed -e 's/^X-L//'`
7808 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7809 found_dir="$dir"
7810 found_so="$dir/lib$name.$shlibext"
7811 if test -f "$dir/lib$name.la"; then
7812 found_la="$dir/lib$name.la"
7813 fi
7814 else
7815 if test -f "$dir/lib$name.$libext"; then
7816 found_dir="$dir"
7817 found_a="$dir/lib$name.$libext"
7818 if test -f "$dir/lib$name.la"; then
7819 found_la="$dir/lib$name.la"
7820 fi
7821 fi
7822 fi
7823 ;;
7824 esac
7825 if test "X$found_dir" != "X"; then
7826 break
7827 fi
7828 done
7829 fi
7830 if test "X$found_dir" != "X"; then
7831 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7832 if test "X$found_so" != "X"; then
7833 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7834 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7835 else
7836 haveit=
7837 for x in $ltrpathdirs; do
7838 if test "X$x" = "X$found_dir"; then
7839 haveit=yes
7840 break
7841 fi
7842 done
7843 if test -z "$haveit"; then
7844 ltrpathdirs="$ltrpathdirs $found_dir"
7845 fi
7846 if test "$hardcode_direct" = yes; then
7847 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7848 else
7849 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7850 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7851 haveit=
7852 for x in $rpathdirs; do
7853 if test "X$x" = "X$found_dir"; then
7854 haveit=yes
7855 break
7856 fi
7857 done
7858 if test -z "$haveit"; then
7859 rpathdirs="$rpathdirs $found_dir"
7860 fi
7861 else
7862 haveit=
7863 for x in $LDFLAGS $LIBICONV; do
7864
7865 acl_save_prefix="$prefix"
7866 prefix="$acl_final_prefix"
7867 acl_save_exec_prefix="$exec_prefix"
7868 exec_prefix="$acl_final_exec_prefix"
7869 eval x=\"$x\"
7870 exec_prefix="$acl_save_exec_prefix"
7871 prefix="$acl_save_prefix"
7872
7873 if test "X$x" = "X-L$found_dir"; then
7874 haveit=yes
7875 break
7876 fi
7877 done
7878 if test -z "$haveit"; then
7879 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7880 fi
7881 if test "$hardcode_minus_L" != no; then
7882 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7883 else
7884 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7885 fi
7886 fi
7887 fi
7888 fi
7889 else
7890 if test "X$found_a" != "X"; then
7891 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7892 else
7893 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7894 fi
7895 fi
7896 additional_includedir=
7897 case "$found_dir" in
7898 */lib | */lib/)
7899 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7900 additional_includedir="$basedir/include"
7901 ;;
7902 esac
7903 if test "X$additional_includedir" != "X"; then
7904 if test "X$additional_includedir" != "X/usr/include"; then
7905 haveit=
7906 if test "X$additional_includedir" = "X/usr/local/include"; then
7907 if test -n "$GCC"; then
7908 case $host_os in
7909 linux*) haveit=yes;;
7910 esac
7911 fi
7912 fi
7913 if test -z "$haveit"; then
7914 for x in $CPPFLAGS $INCICONV; do
7915
7916 acl_save_prefix="$prefix"
7917 prefix="$acl_final_prefix"
7918 acl_save_exec_prefix="$exec_prefix"
7919 exec_prefix="$acl_final_exec_prefix"
7920 eval x=\"$x\"
7921 exec_prefix="$acl_save_exec_prefix"
7922 prefix="$acl_save_prefix"
7923
7924 if test "X$x" = "X-I$additional_includedir"; then
7925 haveit=yes
7926 break
7927 fi
7928 done
7929 if test -z "$haveit"; then
7930 if test -d "$additional_includedir"; then
7931 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7932 fi
7933 fi
7934 fi
7935 fi
7936 fi
7937 if test -n "$found_la"; then
7938 save_libdir="$libdir"
7939 case "$found_la" in
7940 */* | *\\*) . "$found_la" ;;
7941 *) . "./$found_la" ;;
7942 esac
7943 libdir="$save_libdir"
7944 for dep in $dependency_libs; do
7945 case "$dep" in
7946 -L*)
7947 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7948 if test "X$additional_libdir" != "X/usr/lib"; then
7949 haveit=
7950 if test "X$additional_libdir" = "X/usr/local/lib"; then
7951 if test -n "$GCC"; then
7952 case $host_os in
7953 linux*) haveit=yes;;
7954 esac
7955 fi
7956 fi
7957 if test -z "$haveit"; then
7958 haveit=
7959 for x in $LDFLAGS $LIBICONV; do
7960
7961 acl_save_prefix="$prefix"
7962 prefix="$acl_final_prefix"
7963 acl_save_exec_prefix="$exec_prefix"
7964 exec_prefix="$acl_final_exec_prefix"
7965 eval x=\"$x\"
7966 exec_prefix="$acl_save_exec_prefix"
7967 prefix="$acl_save_prefix"
7968
7969 if test "X$x" = "X-L$additional_libdir"; then
7970 haveit=yes
7971 break
7972 fi
7973 done
7974 if test -z "$haveit"; then
7975 if test -d "$additional_libdir"; then
7976 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7977 fi
7978 fi
7979 haveit=
7980 for x in $LDFLAGS $LTLIBICONV; do
7981
7982 acl_save_prefix="$prefix"
7983 prefix="$acl_final_prefix"
7984 acl_save_exec_prefix="$exec_prefix"
7985 exec_prefix="$acl_final_exec_prefix"
7986 eval x=\"$x\"
7987 exec_prefix="$acl_save_exec_prefix"
7988 prefix="$acl_save_prefix"
7989
7990 if test "X$x" = "X-L$additional_libdir"; then
7991 haveit=yes
7992 break
7993 fi
7994 done
7995 if test -z "$haveit"; then
7996 if test -d "$additional_libdir"; then
7997 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7998 fi
7999 fi
8000 fi
8001 fi
8002 ;;
8003 -R*)
8004 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8005 if test "$enable_rpath" != no; then
8006 haveit=
8007 for x in $rpathdirs; do
8008 if test "X$x" = "X$dir"; then
8009 haveit=yes
8010 break
8011 fi
8012 done
8013 if test -z "$haveit"; then
8014 rpathdirs="$rpathdirs $dir"
8015 fi
8016 haveit=
8017 for x in $ltrpathdirs; do
8018 if test "X$x" = "X$dir"; then
8019 haveit=yes
8020 break
8021 fi
8022 done
8023 if test -z "$haveit"; then
8024 ltrpathdirs="$ltrpathdirs $dir"
8025 fi
8026 fi
8027 ;;
8028 -l*)
8029 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8030 ;;
8031 *.la)
8032 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8033 ;;
8034 *)
8035 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8036 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8037 ;;
8038 esac
8039 done
8040 fi
8041 else
8042 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8043 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8044 fi
8045 fi
8046 fi
8047 done
8048 done
8049 if test "X$rpathdirs" != "X"; then
8050 if test -n "$hardcode_libdir_separator"; then
8051 alldirs=
8052 for found_dir in $rpathdirs; do
8053 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8054 done
8055 acl_save_libdir="$libdir"
8056 libdir="$alldirs"
8057 eval flag=\"$hardcode_libdir_flag_spec\"
8058 libdir="$acl_save_libdir"
8059 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8060 else
8061 for found_dir in $rpathdirs; do
8062 acl_save_libdir="$libdir"
8063 libdir="$found_dir"
8064 eval flag=\"$hardcode_libdir_flag_spec\"
8065 libdir="$acl_save_libdir"
8066 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8067 done
8068 fi
8069 fi
8070 if test "X$ltrpathdirs" != "X"; then
8071 for found_dir in $ltrpathdirs; do
8072 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8073 done
8074 fi
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8090 stdlib.h string.h unistd.h sys/param.h
8091 do
8092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8094 echo "$as_me:$LINENO: checking for $ac_header" >&5
8095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8098 fi
8099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8101 else
8102 # Is the header compilable?
8103 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8105 cat >conftest.$ac_ext <<_ACEOF
8106 /* confdefs.h. */
8107 _ACEOF
8108 cat confdefs.h >>conftest.$ac_ext
8109 cat >>conftest.$ac_ext <<_ACEOF
8110 /* end confdefs.h. */
8111 $ac_includes_default
8112 @%:@include <$ac_header>
8113 _ACEOF
8114 rm -f conftest.$ac_objext
8115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8116 (eval $ac_compile) 2>conftest.er1
8117 ac_status=$?
8118 grep -v '^ *+' conftest.er1 >conftest.err
8119 rm -f conftest.er1
8120 cat conftest.err >&5
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); } &&
8123 { ac_try='test -z "$ac_c_werror_flag"
8124 || test ! -s conftest.err'
8125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 (eval $ac_try) 2>&5
8127 ac_status=$?
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; } &&
8130 { ac_try='test -s conftest.$ac_objext'
8131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132 (eval $ac_try) 2>&5
8133 ac_status=$?
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); }; }; then
8136 ac_header_compiler=yes
8137 else
8138 echo "$as_me: failed program was:" >&5
8139 sed 's/^/| /' conftest.$ac_ext >&5
8140
8141 ac_header_compiler=no
8142 fi
8143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8145 echo "${ECHO_T}$ac_header_compiler" >&6
8146
8147 # Is the header present?
8148 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8150 cat >conftest.$ac_ext <<_ACEOF
8151 /* confdefs.h. */
8152 _ACEOF
8153 cat confdefs.h >>conftest.$ac_ext
8154 cat >>conftest.$ac_ext <<_ACEOF
8155 /* end confdefs.h. */
8156 @%:@include <$ac_header>
8157 _ACEOF
8158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8160 ac_status=$?
8161 grep -v '^ *+' conftest.er1 >conftest.err
8162 rm -f conftest.er1
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } >/dev/null; then
8166 if test -s conftest.err; then
8167 ac_cpp_err=$ac_c_preproc_warn_flag
8168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8169 else
8170 ac_cpp_err=
8171 fi
8172 else
8173 ac_cpp_err=yes
8174 fi
8175 if test -z "$ac_cpp_err"; then
8176 ac_header_preproc=yes
8177 else
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8180
8181 ac_header_preproc=no
8182 fi
8183 rm -f conftest.err conftest.$ac_ext
8184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8185 echo "${ECHO_T}$ac_header_preproc" >&6
8186
8187 # So? What about this header?
8188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8189 yes:no: )
8190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8194 ac_header_preproc=yes
8195 ;;
8196 no:yes:* )
8197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8198 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8200 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8202 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8204 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8208 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8209 (
8210 cat <<\_ASBOX
8211 @%:@@%:@ ------------------------------- @%:@@%:@
8212 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
8213 @%:@@%:@ ------------------------------- @%:@@%:@
8214 _ASBOX
8215 ) |
8216 sed "s/^/$as_me: WARNING: /" >&2
8217 ;;
8218 esac
8219 echo "$as_me:$LINENO: checking for $ac_header" >&5
8220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
8223 else
8224 eval "$as_ac_Header=\$ac_header_preproc"
8225 fi
8226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8228
8229 fi
8230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8231 cat >>confdefs.h <<_ACEOF
8232 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8233 _ACEOF
8234
8235 fi
8236
8237 done
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
8262 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
8263 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
8264 __fsetlocking
8265 do
8266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8267 echo "$as_me:$LINENO: checking for $ac_func" >&5
8268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8269 if eval "test \"\${$as_ac_var+set}\" = set"; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8271 else
8272 cat >conftest.$ac_ext <<_ACEOF
8273 /* confdefs.h. */
8274 _ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h. */
8278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8280 #define $ac_func innocuous_$ac_func
8281
8282 /* System header to define __stub macros and hopefully few prototypes,
8283 which can conflict with char $ac_func (); below.
8284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8285 <limits.h> exists even on freestanding compilers. */
8286
8287 #ifdef __STDC__
8288 # include <limits.h>
8289 #else
8290 # include <assert.h>
8291 #endif
8292
8293 #undef $ac_func
8294
8295 /* Override any gcc2 internal prototype to avoid an error. */
8296 #ifdef __cplusplus
8297 extern "C"
8298 {
8299 #endif
8300 /* We use char because int might match the return type of a gcc2
8301 builtin and then its argument prototype would still apply. */
8302 char $ac_func ();
8303 /* The GNU C library defines this for functions which it implements
8304 to always fail with ENOSYS. Some functions are actually named
8305 something starting with __ and the normal name is an alias. */
8306 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8307 choke me
8308 #else
8309 char (*f) () = $ac_func;
8310 #endif
8311 #ifdef __cplusplus
8312 }
8313 #endif
8314
8315 int
8316 main ()
8317 {
8318 return f != $ac_func;
8319 ;
8320 return 0;
8321 }
8322 _ACEOF
8323 rm -f conftest.$ac_objext conftest$ac_exeext
8324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8325 (eval $ac_link) 2>conftest.er1
8326 ac_status=$?
8327 grep -v '^ *+' conftest.er1 >conftest.err
8328 rm -f conftest.er1
8329 cat conftest.err >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); } &&
8332 { ac_try='test -z "$ac_c_werror_flag"
8333 || test ! -s conftest.err'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8335 (eval $ac_try) 2>&5
8336 ac_status=$?
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; } &&
8339 { ac_try='test -s conftest$ac_exeext'
8340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8341 (eval $ac_try) 2>&5
8342 ac_status=$?
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); }; }; then
8345 eval "$as_ac_var=yes"
8346 else
8347 echo "$as_me: failed program was:" >&5
8348 sed 's/^/| /' conftest.$ac_ext >&5
8349
8350 eval "$as_ac_var=no"
8351 fi
8352 rm -f conftest.err conftest.$ac_objext \
8353 conftest$ac_exeext conftest.$ac_ext
8354 fi
8355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8357 if test `eval echo '${'$as_ac_var'}'` = yes; then
8358 cat >>confdefs.h <<_ACEOF
8359 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8360 _ACEOF
8361
8362 fi
8363 done
8364
8365
8366
8367
8368
8369
8370
8371 am_save_CPPFLAGS="$CPPFLAGS"
8372
8373 for element in $INCICONV; do
8374 haveit=
8375 for x in $CPPFLAGS; do
8376
8377 acl_save_prefix="$prefix"
8378 prefix="$acl_final_prefix"
8379 acl_save_exec_prefix="$exec_prefix"
8380 exec_prefix="$acl_final_exec_prefix"
8381 eval x=\"$x\"
8382 exec_prefix="$acl_save_exec_prefix"
8383 prefix="$acl_save_prefix"
8384
8385 if test "X$x" = "X$element"; then
8386 haveit=yes
8387 break
8388 fi
8389 done
8390 if test -z "$haveit"; then
8391 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8392 fi
8393 done
8394
8395
8396 echo "$as_me:$LINENO: checking for iconv" >&5
8397 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8398 if test "${am_cv_func_iconv+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8400 else
8401
8402 am_cv_func_iconv="no, consider installing GNU libiconv"
8403 am_cv_lib_iconv=no
8404 cat >conftest.$ac_ext <<_ACEOF
8405 /* confdefs.h. */
8406 _ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8410 #include <stdlib.h>
8411 #include <iconv.h>
8412 int
8413 main ()
8414 {
8415 iconv_t cd = iconv_open("","");
8416 iconv(cd,NULL,NULL,NULL,NULL);
8417 iconv_close(cd);
8418 ;
8419 return 0;
8420 }
8421 _ACEOF
8422 rm -f conftest.$ac_objext conftest$ac_exeext
8423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8424 (eval $ac_link) 2>conftest.er1
8425 ac_status=$?
8426 grep -v '^ *+' conftest.er1 >conftest.err
8427 rm -f conftest.er1
8428 cat conftest.err >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } &&
8431 { ac_try='test -z "$ac_c_werror_flag"
8432 || test ! -s conftest.err'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 (eval $ac_try) 2>&5
8435 ac_status=$?
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; } &&
8438 { ac_try='test -s conftest$ac_exeext'
8439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8440 (eval $ac_try) 2>&5
8441 ac_status=$?
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); }; }; then
8444 am_cv_func_iconv=yes
8445 else
8446 echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8448
8449 fi
8450 rm -f conftest.err conftest.$ac_objext \
8451 conftest$ac_exeext conftest.$ac_ext
8452 if test "$am_cv_func_iconv" != yes; then
8453 am_save_LIBS="$LIBS"
8454 LIBS="$LIBS $LIBICONV"
8455 cat >conftest.$ac_ext <<_ACEOF
8456 /* confdefs.h. */
8457 _ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h. */
8461 #include <stdlib.h>
8462 #include <iconv.h>
8463 int
8464 main ()
8465 {
8466 iconv_t cd = iconv_open("","");
8467 iconv(cd,NULL,NULL,NULL,NULL);
8468 iconv_close(cd);
8469 ;
8470 return 0;
8471 }
8472 _ACEOF
8473 rm -f conftest.$ac_objext conftest$ac_exeext
8474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8475 (eval $ac_link) 2>conftest.er1
8476 ac_status=$?
8477 grep -v '^ *+' conftest.er1 >conftest.err
8478 rm -f conftest.er1
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } &&
8482 { ac_try='test -z "$ac_c_werror_flag"
8483 || test ! -s conftest.err'
8484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485 (eval $ac_try) 2>&5
8486 ac_status=$?
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); }; } &&
8489 { ac_try='test -s conftest$ac_exeext'
8490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491 (eval $ac_try) 2>&5
8492 ac_status=$?
8493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494 (exit $ac_status); }; }; then
8495 am_cv_lib_iconv=yes
8496 am_cv_func_iconv=yes
8497 else
8498 echo "$as_me: failed program was:" >&5
8499 sed 's/^/| /' conftest.$ac_ext >&5
8500
8501 fi
8502 rm -f conftest.err conftest.$ac_objext \
8503 conftest$ac_exeext conftest.$ac_ext
8504 LIBS="$am_save_LIBS"
8505 fi
8506
8507 fi
8508 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8509 echo "${ECHO_T}$am_cv_func_iconv" >&6
8510 if test "$am_cv_func_iconv" = yes; then
8511
8512 cat >>confdefs.h <<\_ACEOF
8513 @%:@define HAVE_ICONV 1
8514 _ACEOF
8515
8516 fi
8517 if test "$am_cv_lib_iconv" = yes; then
8518 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8519 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8520 echo "$as_me:$LINENO: result: $LIBICONV" >&5
8521 echo "${ECHO_T}$LIBICONV" >&6
8522 else
8523 CPPFLAGS="$am_save_CPPFLAGS"
8524 LIBICONV=
8525 LTLIBICONV=
8526 fi
8527
8528
8529
8530 if test "$am_cv_func_iconv" = yes; then
8531 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8532 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8533 if test "${am_cv_proto_iconv+set}" = set; then
8534 echo $ECHO_N "(cached) $ECHO_C" >&6
8535 else
8536
8537 cat >conftest.$ac_ext <<_ACEOF
8538 /* confdefs.h. */
8539 _ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8543
8544 #include <stdlib.h>
8545 #include <iconv.h>
8546 extern
8547 #ifdef __cplusplus
8548 "C"
8549 #endif
8550 #if defined(__STDC__) || defined(__cplusplus)
8551 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8552 #else
8553 size_t iconv();
8554 #endif
8555
8556 int
8557 main ()
8558 {
8559
8560 ;
8561 return 0;
8562 }
8563 _ACEOF
8564 rm -f conftest.$ac_objext
8565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8566 (eval $ac_compile) 2>conftest.er1
8567 ac_status=$?
8568 grep -v '^ *+' conftest.er1 >conftest.err
8569 rm -f conftest.er1
8570 cat conftest.err >&5
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } &&
8573 { ac_try='test -z "$ac_c_werror_flag"
8574 || test ! -s conftest.err'
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576 (eval $ac_try) 2>&5
8577 ac_status=$?
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; } &&
8580 { ac_try='test -s conftest.$ac_objext'
8581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582 (eval $ac_try) 2>&5
8583 ac_status=$?
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); }; }; then
8586 am_cv_proto_iconv_arg1=""
8587 else
8588 echo "$as_me: failed program was:" >&5
8589 sed 's/^/| /' conftest.$ac_ext >&5
8590
8591 am_cv_proto_iconv_arg1="const"
8592 fi
8593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8594 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);"
8595 fi
8596
8597 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8598 echo "$as_me:$LINENO: result: ${ac_t:-
8599 }$am_cv_proto_iconv" >&5
8600 echo "${ECHO_T}${ac_t:-
8601 }$am_cv_proto_iconv" >&6
8602
8603 cat >>confdefs.h <<_ACEOF
8604 @%:@define ICONV_CONST $am_cv_proto_iconv_arg1
8605 _ACEOF
8606
8607 fi
8608
8609
8610 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8611 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8612 if test "${am_cv_langinfo_codeset+set}" = set; then
8613 echo $ECHO_N "(cached) $ECHO_C" >&6
8614 else
8615 cat >conftest.$ac_ext <<_ACEOF
8616 /* confdefs.h. */
8617 _ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h. */
8621 #include <langinfo.h>
8622 int
8623 main ()
8624 {
8625 char* cs = nl_langinfo(CODESET);
8626 ;
8627 return 0;
8628 }
8629 _ACEOF
8630 rm -f conftest.$ac_objext conftest$ac_exeext
8631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8632 (eval $ac_link) 2>conftest.er1
8633 ac_status=$?
8634 grep -v '^ *+' conftest.er1 >conftest.err
8635 rm -f conftest.er1
8636 cat conftest.err >&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); } &&
8639 { ac_try='test -z "$ac_c_werror_flag"
8640 || test ! -s conftest.err'
8641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8642 (eval $ac_try) 2>&5
8643 ac_status=$?
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); }; } &&
8646 { ac_try='test -s conftest$ac_exeext'
8647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8648 (eval $ac_try) 2>&5
8649 ac_status=$?
8650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); }; }; then
8652 am_cv_langinfo_codeset=yes
8653 else
8654 echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.$ac_ext >&5
8656
8657 am_cv_langinfo_codeset=no
8658 fi
8659 rm -f conftest.err conftest.$ac_objext \
8660 conftest$ac_exeext conftest.$ac_ext
8661
8662 fi
8663 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
8664 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
8665 if test $am_cv_langinfo_codeset = yes; then
8666
8667 cat >>confdefs.h <<\_ACEOF
8668 @%:@define HAVE_LANGINFO_CODESET 1
8669 _ACEOF
8670
8671 fi
8672
8673 if test $ac_cv_header_locale_h = yes; then
8674
8675 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8676 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8677 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8680 cat >conftest.$ac_ext <<_ACEOF
8681 /* confdefs.h. */
8682 _ACEOF
8683 cat confdefs.h >>conftest.$ac_ext
8684 cat >>conftest.$ac_ext <<_ACEOF
8685 /* end confdefs.h. */
8686 #include <locale.h>
8687 int
8688 main ()
8689 {
8690 return LC_MESSAGES
8691 ;
8692 return 0;
8693 }
8694 _ACEOF
8695 rm -f conftest.$ac_objext conftest$ac_exeext
8696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8697 (eval $ac_link) 2>conftest.er1
8698 ac_status=$?
8699 grep -v '^ *+' conftest.er1 >conftest.err
8700 rm -f conftest.er1
8701 cat conftest.err >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } &&
8704 { ac_try='test -z "$ac_c_werror_flag"
8705 || test ! -s conftest.err'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 (eval $ac_try) 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; } &&
8711 { ac_try='test -s conftest$ac_exeext'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 (eval $ac_try) 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; }; then
8717 am_cv_val_LC_MESSAGES=yes
8718 else
8719 echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8721
8722 am_cv_val_LC_MESSAGES=no
8723 fi
8724 rm -f conftest.err conftest.$ac_objext \
8725 conftest$ac_exeext conftest.$ac_ext
8726 fi
8727 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8728 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8729 if test $am_cv_val_LC_MESSAGES = yes; then
8730
8731 cat >>confdefs.h <<\_ACEOF
8732 @%:@define HAVE_LC_MESSAGES 1
8733 _ACEOF
8734
8735 fi
8736
8737 fi
8738
8739 for ac_prog in bison
8740 do
8741 # Extract the first word of "$ac_prog", so it can be a program name with args.
8742 set dummy $ac_prog; ac_word=$2
8743 echo "$as_me:$LINENO: checking for $ac_word" >&5
8744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8745 if test "${ac_cv_prog_INTLBISON+set}" = set; then
8746 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 else
8748 if test -n "$INTLBISON"; then
8749 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8750 else
8751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8752 for as_dir in $PATH
8753 do
8754 IFS=$as_save_IFS
8755 test -z "$as_dir" && as_dir=.
8756 for ac_exec_ext in '' $ac_executable_extensions; do
8757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8758 ac_cv_prog_INTLBISON="$ac_prog"
8759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8760 break 2
8761 fi
8762 done
8763 done
8764
8765 fi
8766 fi
8767 INTLBISON=$ac_cv_prog_INTLBISON
8768 if test -n "$INTLBISON"; then
8769 echo "$as_me:$LINENO: result: $INTLBISON" >&5
8770 echo "${ECHO_T}$INTLBISON" >&6
8771 else
8772 echo "$as_me:$LINENO: result: no" >&5
8773 echo "${ECHO_T}no" >&6
8774 fi
8775
8776 test -n "$INTLBISON" && break
8777 done
8778
8779 if test -z "$INTLBISON"; then
8780 ac_verc_fail=yes
8781 else
8782 echo "$as_me:$LINENO: checking version of bison" >&5
8783 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
8784 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8785 case $ac_prog_version in
8786 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8787 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8788 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8789 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8790 esac
8791 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
8792 echo "${ECHO_T}$ac_prog_version" >&6
8793 fi
8794 if test $ac_verc_fail = yes; then
8795 INTLBISON=:
8796 fi
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
8814 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
8815 # Check whether --enable-nls or --disable-nls was given.
8816 if test "${enable_nls+set}" = set; then
8817 enableval="$enable_nls"
8818 USE_NLS=$enableval
8819 else
8820 USE_NLS=yes
8821 fi;
8822 echo "$as_me:$LINENO: result: $USE_NLS" >&5
8823 echo "${ECHO_T}$USE_NLS" >&6
8824
8825
8826
8827
8828 BUILD_INCLUDED_LIBINTL=no
8829 USE_INCLUDED_LIBINTL=no
8830
8831 LIBINTL=
8832 LTLIBINTL=
8833 POSUB=
8834
8835 if test "$USE_NLS" = "yes"; then
8836 gt_use_preinstalled_gnugettext=no
8837
8838 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
8839 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
8840
8841 # Check whether --with-included-gettext or --without-included-gettext was given.
8842 if test "${with_included_gettext+set}" = set; then
8843 withval="$with_included_gettext"
8844 nls_cv_force_use_gnu_gettext=$withval
8845 else
8846 nls_cv_force_use_gnu_gettext=no
8847 fi;
8848 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
8849 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
8850
8851 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8852 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8853
8854
8855
8856
8857
8858
8859 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
8860 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
8861 if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
8863 else
8864 cat >conftest.$ac_ext <<_ACEOF
8865 /* confdefs.h. */
8866 _ACEOF
8867 cat confdefs.h >>conftest.$ac_ext
8868 cat >>conftest.$ac_ext <<_ACEOF
8869 /* end confdefs.h. */
8870 #include <libintl.h>
8871 extern int _nl_msg_cat_cntr;
8872 extern int *_nl_domain_bindings;
8873 int
8874 main ()
8875 {
8876 bindtextdomain ("", "");
8877 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
8878 ;
8879 return 0;
8880 }
8881 _ACEOF
8882 rm -f conftest.$ac_objext conftest$ac_exeext
8883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8884 (eval $ac_link) 2>conftest.er1
8885 ac_status=$?
8886 grep -v '^ *+' conftest.er1 >conftest.err
8887 rm -f conftest.er1
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } &&
8891 { ac_try='test -z "$ac_c_werror_flag"
8892 || test ! -s conftest.err'
8893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8894 (eval $ac_try) 2>&5
8895 ac_status=$?
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); }; } &&
8898 { ac_try='test -s conftest$ac_exeext'
8899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8900 (eval $ac_try) 2>&5
8901 ac_status=$?
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); }; }; then
8904 gt_cv_func_gnugettext2_libc=yes
8905 else
8906 echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8908
8909 gt_cv_func_gnugettext2_libc=no
8910 fi
8911 rm -f conftest.err conftest.$ac_objext \
8912 conftest$ac_exeext conftest.$ac_ext
8913 fi
8914 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
8915 echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6
8916
8917 if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
8918
8919
8920
8921 use_additional=yes
8922
8923 acl_save_prefix="$prefix"
8924 prefix="$acl_final_prefix"
8925 acl_save_exec_prefix="$exec_prefix"
8926 exec_prefix="$acl_final_exec_prefix"
8927
8928 eval additional_includedir=\"$includedir\"
8929 eval additional_libdir=\"$libdir\"
8930
8931 exec_prefix="$acl_save_exec_prefix"
8932 prefix="$acl_save_prefix"
8933
8934
8935 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
8936 if test "${with_libintl_prefix+set}" = set; then
8937 withval="$with_libintl_prefix"
8938
8939 if test "X$withval" = "Xno"; then
8940 use_additional=no
8941 else
8942 if test "X$withval" = "X"; then
8943
8944 acl_save_prefix="$prefix"
8945 prefix="$acl_final_prefix"
8946 acl_save_exec_prefix="$exec_prefix"
8947 exec_prefix="$acl_final_exec_prefix"
8948
8949 eval additional_includedir=\"$includedir\"
8950 eval additional_libdir=\"$libdir\"
8951
8952 exec_prefix="$acl_save_exec_prefix"
8953 prefix="$acl_save_prefix"
8954
8955 else
8956 additional_includedir="$withval/include"
8957 additional_libdir="$withval/lib"
8958 fi
8959 fi
8960
8961 fi;
8962 LIBINTL=
8963 LTLIBINTL=
8964 INCINTL=
8965 rpathdirs=
8966 ltrpathdirs=
8967 names_already_handled=
8968 names_next_round='intl '
8969 while test -n "$names_next_round"; do
8970 names_this_round="$names_next_round"
8971 names_next_round=
8972 for name in $names_this_round; do
8973 already_handled=
8974 for n in $names_already_handled; do
8975 if test "$n" = "$name"; then
8976 already_handled=yes
8977 break
8978 fi
8979 done
8980 if test -z "$already_handled"; then
8981 names_already_handled="$names_already_handled $name"
8982 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8983 eval value=\"\$HAVE_LIB$uppername\"
8984 if test -n "$value"; then
8985 if test "$value" = yes; then
8986 eval value=\"\$LIB$uppername\"
8987 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8988 eval value=\"\$LTLIB$uppername\"
8989 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8990 else
8991 :
8992 fi
8993 else
8994 found_dir=
8995 found_la=
8996 found_so=
8997 found_a=
8998 if test $use_additional = yes; then
8999 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9000 found_dir="$additional_libdir"
9001 found_so="$additional_libdir/lib$name.$shlibext"
9002 if test -f "$additional_libdir/lib$name.la"; then
9003 found_la="$additional_libdir/lib$name.la"
9004 fi
9005 else
9006 if test -f "$additional_libdir/lib$name.$libext"; then
9007 found_dir="$additional_libdir"
9008 found_a="$additional_libdir/lib$name.$libext"
9009 if test -f "$additional_libdir/lib$name.la"; then
9010 found_la="$additional_libdir/lib$name.la"
9011 fi
9012 fi
9013 fi
9014 fi
9015 if test "X$found_dir" = "X"; then
9016 for x in $LDFLAGS $LTLIBINTL; do
9017
9018 acl_save_prefix="$prefix"
9019 prefix="$acl_final_prefix"
9020 acl_save_exec_prefix="$exec_prefix"
9021 exec_prefix="$acl_final_exec_prefix"
9022 eval x=\"$x\"
9023 exec_prefix="$acl_save_exec_prefix"
9024 prefix="$acl_save_prefix"
9025
9026 case "$x" in
9027 -L*)
9028 dir=`echo "X$x" | sed -e 's/^X-L//'`
9029 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9030 found_dir="$dir"
9031 found_so="$dir/lib$name.$shlibext"
9032 if test -f "$dir/lib$name.la"; then
9033 found_la="$dir/lib$name.la"
9034 fi
9035 else
9036 if test -f "$dir/lib$name.$libext"; then
9037 found_dir="$dir"
9038 found_a="$dir/lib$name.$libext"
9039 if test -f "$dir/lib$name.la"; then
9040 found_la="$dir/lib$name.la"
9041 fi
9042 fi
9043 fi
9044 ;;
9045 esac
9046 if test "X$found_dir" != "X"; then
9047 break
9048 fi
9049 done
9050 fi
9051 if test "X$found_dir" != "X"; then
9052 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9053 if test "X$found_so" != "X"; then
9054 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9055 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9056 else
9057 haveit=
9058 for x in $ltrpathdirs; do
9059 if test "X$x" = "X$found_dir"; then
9060 haveit=yes
9061 break
9062 fi
9063 done
9064 if test -z "$haveit"; then
9065 ltrpathdirs="$ltrpathdirs $found_dir"
9066 fi
9067 if test "$hardcode_direct" = yes; then
9068 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9069 else
9070 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9071 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9072 haveit=
9073 for x in $rpathdirs; do
9074 if test "X$x" = "X$found_dir"; then
9075 haveit=yes
9076 break
9077 fi
9078 done
9079 if test -z "$haveit"; then
9080 rpathdirs="$rpathdirs $found_dir"
9081 fi
9082 else
9083 haveit=
9084 for x in $LDFLAGS $LIBINTL; do
9085
9086 acl_save_prefix="$prefix"
9087 prefix="$acl_final_prefix"
9088 acl_save_exec_prefix="$exec_prefix"
9089 exec_prefix="$acl_final_exec_prefix"
9090 eval x=\"$x\"
9091 exec_prefix="$acl_save_exec_prefix"
9092 prefix="$acl_save_prefix"
9093
9094 if test "X$x" = "X-L$found_dir"; then
9095 haveit=yes
9096 break
9097 fi
9098 done
9099 if test -z "$haveit"; then
9100 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9101 fi
9102 if test "$hardcode_minus_L" != no; then
9103 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9104 else
9105 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9106 fi
9107 fi
9108 fi
9109 fi
9110 else
9111 if test "X$found_a" != "X"; then
9112 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9113 else
9114 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9115 fi
9116 fi
9117 additional_includedir=
9118 case "$found_dir" in
9119 */lib | */lib/)
9120 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9121 additional_includedir="$basedir/include"
9122 ;;
9123 esac
9124 if test "X$additional_includedir" != "X"; then
9125 if test "X$additional_includedir" != "X/usr/include"; then
9126 haveit=
9127 if test "X$additional_includedir" = "X/usr/local/include"; then
9128 if test -n "$GCC"; then
9129 case $host_os in
9130 linux*) haveit=yes;;
9131 esac
9132 fi
9133 fi
9134 if test -z "$haveit"; then
9135 for x in $CPPFLAGS $INCINTL; do
9136
9137 acl_save_prefix="$prefix"
9138 prefix="$acl_final_prefix"
9139 acl_save_exec_prefix="$exec_prefix"
9140 exec_prefix="$acl_final_exec_prefix"
9141 eval x=\"$x\"
9142 exec_prefix="$acl_save_exec_prefix"
9143 prefix="$acl_save_prefix"
9144
9145 if test "X$x" = "X-I$additional_includedir"; then
9146 haveit=yes
9147 break
9148 fi
9149 done
9150 if test -z "$haveit"; then
9151 if test -d "$additional_includedir"; then
9152 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9153 fi
9154 fi
9155 fi
9156 fi
9157 fi
9158 if test -n "$found_la"; then
9159 save_libdir="$libdir"
9160 case "$found_la" in
9161 */* | *\\*) . "$found_la" ;;
9162 *) . "./$found_la" ;;
9163 esac
9164 libdir="$save_libdir"
9165 for dep in $dependency_libs; do
9166 case "$dep" in
9167 -L*)
9168 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9169 if test "X$additional_libdir" != "X/usr/lib"; then
9170 haveit=
9171 if test "X$additional_libdir" = "X/usr/local/lib"; then
9172 if test -n "$GCC"; then
9173 case $host_os in
9174 linux*) haveit=yes;;
9175 esac
9176 fi
9177 fi
9178 if test -z "$haveit"; then
9179 haveit=
9180 for x in $LDFLAGS $LIBINTL; do
9181
9182 acl_save_prefix="$prefix"
9183 prefix="$acl_final_prefix"
9184 acl_save_exec_prefix="$exec_prefix"
9185 exec_prefix="$acl_final_exec_prefix"
9186 eval x=\"$x\"
9187 exec_prefix="$acl_save_exec_prefix"
9188 prefix="$acl_save_prefix"
9189
9190 if test "X$x" = "X-L$additional_libdir"; then
9191 haveit=yes
9192 break
9193 fi
9194 done
9195 if test -z "$haveit"; then
9196 if test -d "$additional_libdir"; then
9197 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9198 fi
9199 fi
9200 haveit=
9201 for x in $LDFLAGS $LTLIBINTL; do
9202
9203 acl_save_prefix="$prefix"
9204 prefix="$acl_final_prefix"
9205 acl_save_exec_prefix="$exec_prefix"
9206 exec_prefix="$acl_final_exec_prefix"
9207 eval x=\"$x\"
9208 exec_prefix="$acl_save_exec_prefix"
9209 prefix="$acl_save_prefix"
9210
9211 if test "X$x" = "X-L$additional_libdir"; then
9212 haveit=yes
9213 break
9214 fi
9215 done
9216 if test -z "$haveit"; then
9217 if test -d "$additional_libdir"; then
9218 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9219 fi
9220 fi
9221 fi
9222 fi
9223 ;;
9224 -R*)
9225 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9226 if test "$enable_rpath" != no; then
9227 haveit=
9228 for x in $rpathdirs; do
9229 if test "X$x" = "X$dir"; then
9230 haveit=yes
9231 break
9232 fi
9233 done
9234 if test -z "$haveit"; then
9235 rpathdirs="$rpathdirs $dir"
9236 fi
9237 haveit=
9238 for x in $ltrpathdirs; do
9239 if test "X$x" = "X$dir"; then
9240 haveit=yes
9241 break
9242 fi
9243 done
9244 if test -z "$haveit"; then
9245 ltrpathdirs="$ltrpathdirs $dir"
9246 fi
9247 fi
9248 ;;
9249 -l*)
9250 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9251 ;;
9252 *.la)
9253 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9254 ;;
9255 *)
9256 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9257 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9258 ;;
9259 esac
9260 done
9261 fi
9262 else
9263 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9264 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9265 fi
9266 fi
9267 fi
9268 done
9269 done
9270 if test "X$rpathdirs" != "X"; then
9271 if test -n "$hardcode_libdir_separator"; then
9272 alldirs=
9273 for found_dir in $rpathdirs; do
9274 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9275 done
9276 acl_save_libdir="$libdir"
9277 libdir="$alldirs"
9278 eval flag=\"$hardcode_libdir_flag_spec\"
9279 libdir="$acl_save_libdir"
9280 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9281 else
9282 for found_dir in $rpathdirs; do
9283 acl_save_libdir="$libdir"
9284 libdir="$found_dir"
9285 eval flag=\"$hardcode_libdir_flag_spec\"
9286 libdir="$acl_save_libdir"
9287 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9288 done
9289 fi
9290 fi
9291 if test "X$ltrpathdirs" != "X"; then
9292 for found_dir in $ltrpathdirs; do
9293 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9294 done
9295 fi
9296
9297 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9298 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9299 if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
9300 echo $ECHO_N "(cached) $ECHO_C" >&6
9301 else
9302 gt_save_CPPFLAGS="$CPPFLAGS"
9303 CPPFLAGS="$CPPFLAGS $INCINTL"
9304 gt_save_LIBS="$LIBS"
9305 LIBS="$LIBS $LIBINTL"
9306 cat >conftest.$ac_ext <<_ACEOF
9307 /* confdefs.h. */
9308 _ACEOF
9309 cat confdefs.h >>conftest.$ac_ext
9310 cat >>conftest.$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9312 #include <libintl.h>
9313 extern int _nl_msg_cat_cntr;
9314 extern
9315 #ifdef __cplusplus
9316 "C"
9317 #endif
9318 const char *_nl_expand_alias ();
9319 int
9320 main ()
9321 {
9322 bindtextdomain ("", "");
9323 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9324 ;
9325 return 0;
9326 }
9327 _ACEOF
9328 rm -f conftest.$ac_objext conftest$ac_exeext
9329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9330 (eval $ac_link) 2>conftest.er1
9331 ac_status=$?
9332 grep -v '^ *+' conftest.er1 >conftest.err
9333 rm -f conftest.er1
9334 cat conftest.err >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } &&
9337 { ac_try='test -z "$ac_c_werror_flag"
9338 || test ! -s conftest.err'
9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9340 (eval $ac_try) 2>&5
9341 ac_status=$?
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); }; } &&
9344 { ac_try='test -s conftest$ac_exeext'
9345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9346 (eval $ac_try) 2>&5
9347 ac_status=$?
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); }; }; then
9350 gt_cv_func_gnugettext2_libintl=yes
9351 else
9352 echo "$as_me: failed program was:" >&5
9353 sed 's/^/| /' conftest.$ac_ext >&5
9354
9355 gt_cv_func_gnugettext2_libintl=no
9356 fi
9357 rm -f conftest.err conftest.$ac_objext \
9358 conftest$ac_exeext conftest.$ac_ext
9359 if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
9360 LIBS="$LIBS $LIBICONV"
9361 cat >conftest.$ac_ext <<_ACEOF
9362 /* confdefs.h. */
9363 _ACEOF
9364 cat confdefs.h >>conftest.$ac_ext
9365 cat >>conftest.$ac_ext <<_ACEOF
9366 /* end confdefs.h. */
9367 #include <libintl.h>
9368 extern int _nl_msg_cat_cntr;
9369 extern
9370 #ifdef __cplusplus
9371 "C"
9372 #endif
9373 const char *_nl_expand_alias ();
9374 int
9375 main ()
9376 {
9377 bindtextdomain ("", "");
9378 return (int) gettext ("") + (int) ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9379 ;
9380 return 0;
9381 }
9382 _ACEOF
9383 rm -f conftest.$ac_objext conftest$ac_exeext
9384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9385 (eval $ac_link) 2>conftest.er1
9386 ac_status=$?
9387 grep -v '^ *+' conftest.er1 >conftest.err
9388 rm -f conftest.er1
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } &&
9392 { ac_try='test -z "$ac_c_werror_flag"
9393 || test ! -s conftest.err'
9394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395 (eval $ac_try) 2>&5
9396 ac_status=$?
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); }; } &&
9399 { ac_try='test -s conftest$ac_exeext'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 (eval $ac_try) 2>&5
9402 ac_status=$?
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; }; then
9405 LIBINTL="$LIBINTL $LIBICONV"
9406 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9407 gt_cv_func_gnugettext2_libintl=yes
9408
9409 else
9410 echo "$as_me: failed program was:" >&5
9411 sed 's/^/| /' conftest.$ac_ext >&5
9412
9413 fi
9414 rm -f conftest.err conftest.$ac_objext \
9415 conftest$ac_exeext conftest.$ac_ext
9416 fi
9417 CPPFLAGS="$gt_save_CPPFLAGS"
9418 LIBS="$gt_save_LIBS"
9419 fi
9420 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
9421 echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6
9422 fi
9423
9424 if test "$gt_cv_func_gnugettext2_libc" = "yes" \
9425 || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
9426 && test "$PACKAGE" != gettext-runtime \
9427 && test "$PACKAGE" != gettext-tools; }; then
9428 gt_use_preinstalled_gnugettext=yes
9429 else
9430 LIBINTL=
9431 LTLIBINTL=
9432 INCINTL=
9433 fi
9434
9435
9436 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9437 nls_cv_use_gnu_gettext=yes
9438 fi
9439 fi
9440
9441 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9442 BUILD_INCLUDED_LIBINTL=yes
9443 USE_INCLUDED_LIBINTL=yes
9444 LIBINTL="lib/intl/libintl.a $LIBICONV"
9445 LTLIBINTL="lib/intl/libintl.a $LTLIBICONV"
9446 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9447 fi
9448
9449 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9450 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9451 CATOBJEXT=.gmo
9452 fi
9453
9454
9455 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9456 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9457
9458 cat >>confdefs.h <<\_ACEOF
9459 @%:@define ENABLE_NLS 1
9460 _ACEOF
9461
9462 else
9463 USE_NLS=no
9464 fi
9465 fi
9466
9467 echo "$as_me:$LINENO: checking whether to use NLS" >&5
9468 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
9469 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9470 echo "${ECHO_T}$USE_NLS" >&6
9471 if test "$USE_NLS" = "yes"; then
9472 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
9473 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
9474 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9475 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
9476 gt_source="external libintl"
9477 else
9478 gt_source="libc"
9479 fi
9480 else
9481 gt_source="included intl directory"
9482 fi
9483 echo "$as_me:$LINENO: result: $gt_source" >&5
9484 echo "${ECHO_T}$gt_source" >&6
9485 fi
9486
9487 if test "$USE_NLS" = "yes"; then
9488
9489 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9490 if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
9491 echo "$as_me:$LINENO: checking how to link with libintl" >&5
9492 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
9493 echo "$as_me:$LINENO: result: $LIBINTL" >&5
9494 echo "${ECHO_T}$LIBINTL" >&6
9495
9496 for element in $INCINTL; do
9497 haveit=
9498 for x in $CPPFLAGS; do
9499
9500 acl_save_prefix="$prefix"
9501 prefix="$acl_final_prefix"
9502 acl_save_exec_prefix="$exec_prefix"
9503 exec_prefix="$acl_final_exec_prefix"
9504 eval x=\"$x\"
9505 exec_prefix="$acl_save_exec_prefix"
9506 prefix="$acl_save_prefix"
9507
9508 if test "X$x" = "X$element"; then
9509 haveit=yes
9510 break
9511 fi
9512 done
9513 if test -z "$haveit"; then
9514 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9515 fi
9516 done
9517
9518 fi
9519
9520
9521 cat >>confdefs.h <<\_ACEOF
9522 @%:@define HAVE_GETTEXT 1
9523 _ACEOF
9524
9525
9526 cat >>confdefs.h <<\_ACEOF
9527 @%:@define HAVE_DCGETTEXT 1
9528 _ACEOF
9529
9530 fi
9531
9532 POSUB=po
9533 fi
9534
9535
9536 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9537 BUILD_INCLUDED_LIBINTL=yes
9538 fi
9539
9540
9541
9542
9543
9544 nls_cv_header_intl=
9545 nls_cv_header_libgt=
9546
9547 DATADIRNAME=share
9548
9549
9550 INSTOBJEXT=.mo
9551
9552
9553 GENCAT=gencat
9554
9555
9556 if test "$USE_INCLUDED_LIBINTL" = yes; then
9557 INTLOBJS="\$(GETTOBJS)"
9558 fi
9559
9560
9561 INTL_LIBTOOL_SUFFIX_PREFIX=
9562
9563
9564
9565 INTLLIBS="$LIBINTL"
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578 ac_header_dirent=no
9579 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9580 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9581 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9582 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
9585 else
9586 cat >conftest.$ac_ext <<_ACEOF
9587 /* confdefs.h. */
9588 _ACEOF
9589 cat confdefs.h >>conftest.$ac_ext
9590 cat >>conftest.$ac_ext <<_ACEOF
9591 /* end confdefs.h. */
9592 #include <sys/types.h>
9593 #include <$ac_hdr>
9594
9595 int
9596 main ()
9597 {
9598 if ((DIR *) 0)
9599 return 0;
9600 ;
9601 return 0;
9602 }
9603 _ACEOF
9604 rm -f conftest.$ac_objext
9605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9606 (eval $ac_compile) 2>conftest.er1
9607 ac_status=$?
9608 grep -v '^ *+' conftest.er1 >conftest.err
9609 rm -f conftest.er1
9610 cat conftest.err >&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } &&
9613 { ac_try='test -z "$ac_c_werror_flag"
9614 || test ! -s conftest.err'
9615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616 (eval $ac_try) 2>&5
9617 ac_status=$?
9618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9619 (exit $ac_status); }; } &&
9620 { ac_try='test -s conftest.$ac_objext'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622 (eval $ac_try) 2>&5
9623 ac_status=$?
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; }; then
9626 eval "$as_ac_Header=yes"
9627 else
9628 echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9630
9631 eval "$as_ac_Header=no"
9632 fi
9633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9634 fi
9635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9638 cat >>confdefs.h <<_ACEOF
9639 @%:@define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9640 _ACEOF
9641
9642 ac_header_dirent=$ac_hdr; break
9643 fi
9644
9645 done
9646 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9647 if test $ac_header_dirent = dirent.h; then
9648 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9649 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9650 if test "${ac_cv_search_opendir+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9652 else
9653 ac_func_search_save_LIBS=$LIBS
9654 ac_cv_search_opendir=no
9655 cat >conftest.$ac_ext <<_ACEOF
9656 /* confdefs.h. */
9657 _ACEOF
9658 cat confdefs.h >>conftest.$ac_ext
9659 cat >>conftest.$ac_ext <<_ACEOF
9660 /* end confdefs.h. */
9661
9662 /* Override any gcc2 internal prototype to avoid an error. */
9663 #ifdef __cplusplus
9664 extern "C"
9665 #endif
9666 /* We use char because int might match the return type of a gcc2
9667 builtin and then its argument prototype would still apply. */
9668 char opendir ();
9669 int
9670 main ()
9671 {
9672 opendir ();
9673 ;
9674 return 0;
9675 }
9676 _ACEOF
9677 rm -f conftest.$ac_objext conftest$ac_exeext
9678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9679 (eval $ac_link) 2>conftest.er1
9680 ac_status=$?
9681 grep -v '^ *+' conftest.er1 >conftest.err
9682 rm -f conftest.er1
9683 cat conftest.err >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); } &&
9686 { ac_try='test -z "$ac_c_werror_flag"
9687 || test ! -s conftest.err'
9688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689 (eval $ac_try) 2>&5
9690 ac_status=$?
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); }; } &&
9693 { ac_try='test -s conftest$ac_exeext'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9695 (eval $ac_try) 2>&5
9696 ac_status=$?
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699 ac_cv_search_opendir="none required"
9700 else
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9703
9704 fi
9705 rm -f conftest.err conftest.$ac_objext \
9706 conftest$ac_exeext conftest.$ac_ext
9707 if test "$ac_cv_search_opendir" = no; then
9708 for ac_lib in dir; do
9709 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9710 cat >conftest.$ac_ext <<_ACEOF
9711 /* confdefs.h. */
9712 _ACEOF
9713 cat confdefs.h >>conftest.$ac_ext
9714 cat >>conftest.$ac_ext <<_ACEOF
9715 /* end confdefs.h. */
9716
9717 /* Override any gcc2 internal prototype to avoid an error. */
9718 #ifdef __cplusplus
9719 extern "C"
9720 #endif
9721 /* We use char because int might match the return type of a gcc2
9722 builtin and then its argument prototype would still apply. */
9723 char opendir ();
9724 int
9725 main ()
9726 {
9727 opendir ();
9728 ;
9729 return 0;
9730 }
9731 _ACEOF
9732 rm -f conftest.$ac_objext conftest$ac_exeext
9733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9734 (eval $ac_link) 2>conftest.er1
9735 ac_status=$?
9736 grep -v '^ *+' conftest.er1 >conftest.err
9737 rm -f conftest.er1
9738 cat conftest.err >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -z "$ac_c_werror_flag"
9742 || test ! -s conftest.err'
9743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744 (eval $ac_try) 2>&5
9745 ac_status=$?
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); }; } &&
9748 { ac_try='test -s conftest$ac_exeext'
9749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 (eval $ac_try) 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; }; then
9754 ac_cv_search_opendir="-l$ac_lib"
9755 break
9756 else
9757 echo "$as_me: failed program was:" >&5
9758 sed 's/^/| /' conftest.$ac_ext >&5
9759
9760 fi
9761 rm -f conftest.err conftest.$ac_objext \
9762 conftest$ac_exeext conftest.$ac_ext
9763 done
9764 fi
9765 LIBS=$ac_func_search_save_LIBS
9766 fi
9767 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9768 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9769 if test "$ac_cv_search_opendir" != no; then
9770 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9771
9772 fi
9773
9774 else
9775 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9776 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9777 if test "${ac_cv_search_opendir+set}" = set; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 else
9780 ac_func_search_save_LIBS=$LIBS
9781 ac_cv_search_opendir=no
9782 cat >conftest.$ac_ext <<_ACEOF
9783 /* confdefs.h. */
9784 _ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h. */
9788
9789 /* Override any gcc2 internal prototype to avoid an error. */
9790 #ifdef __cplusplus
9791 extern "C"
9792 #endif
9793 /* We use char because int might match the return type of a gcc2
9794 builtin and then its argument prototype would still apply. */
9795 char opendir ();
9796 int
9797 main ()
9798 {
9799 opendir ();
9800 ;
9801 return 0;
9802 }
9803 _ACEOF
9804 rm -f conftest.$ac_objext conftest$ac_exeext
9805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9806 (eval $ac_link) 2>conftest.er1
9807 ac_status=$?
9808 grep -v '^ *+' conftest.er1 >conftest.err
9809 rm -f conftest.er1
9810 cat conftest.err >&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } &&
9813 { ac_try='test -z "$ac_c_werror_flag"
9814 || test ! -s conftest.err'
9815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9816 (eval $ac_try) 2>&5
9817 ac_status=$?
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; } &&
9820 { ac_try='test -s conftest$ac_exeext'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 (eval $ac_try) 2>&5
9823 ac_status=$?
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; }; then
9826 ac_cv_search_opendir="none required"
9827 else
9828 echo "$as_me: failed program was:" >&5
9829 sed 's/^/| /' conftest.$ac_ext >&5
9830
9831 fi
9832 rm -f conftest.err conftest.$ac_objext \
9833 conftest$ac_exeext conftest.$ac_ext
9834 if test "$ac_cv_search_opendir" = no; then
9835 for ac_lib in x; do
9836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9837 cat >conftest.$ac_ext <<_ACEOF
9838 /* confdefs.h. */
9839 _ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h. */
9843
9844 /* Override any gcc2 internal prototype to avoid an error. */
9845 #ifdef __cplusplus
9846 extern "C"
9847 #endif
9848 /* We use char because int might match the return type of a gcc2
9849 builtin and then its argument prototype would still apply. */
9850 char opendir ();
9851 int
9852 main ()
9853 {
9854 opendir ();
9855 ;
9856 return 0;
9857 }
9858 _ACEOF
9859 rm -f conftest.$ac_objext conftest$ac_exeext
9860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9861 (eval $ac_link) 2>conftest.er1
9862 ac_status=$?
9863 grep -v '^ *+' conftest.er1 >conftest.err
9864 rm -f conftest.er1
9865 cat conftest.err >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); } &&
9868 { ac_try='test -z "$ac_c_werror_flag"
9869 || test ! -s conftest.err'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9871 (eval $ac_try) 2>&5
9872 ac_status=$?
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; } &&
9875 { ac_try='test -s conftest$ac_exeext'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9877 (eval $ac_try) 2>&5
9878 ac_status=$?
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9881 ac_cv_search_opendir="-l$ac_lib"
9882 break
9883 else
9884 echo "$as_me: failed program was:" >&5
9885 sed 's/^/| /' conftest.$ac_ext >&5
9886
9887 fi
9888 rm -f conftest.err conftest.$ac_objext \
9889 conftest$ac_exeext conftest.$ac_ext
9890 done
9891 fi
9892 LIBS=$ac_func_search_save_LIBS
9893 fi
9894 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9895 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9896 if test "$ac_cv_search_opendir" != no; then
9897 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9898
9899 fi
9900
9901 fi
9902
9903 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9904 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9905 if test "${ac_cv_header_time+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9907 else
9908 cat >conftest.$ac_ext <<_ACEOF
9909 /* confdefs.h. */
9910 _ACEOF
9911 cat confdefs.h >>conftest.$ac_ext
9912 cat >>conftest.$ac_ext <<_ACEOF
9913 /* end confdefs.h. */
9914 #include <sys/types.h>
9915 #include <sys/time.h>
9916 #include <time.h>
9917
9918 int
9919 main ()
9920 {
9921 if ((struct tm *) 0)
9922 return 0;
9923 ;
9924 return 0;
9925 }
9926 _ACEOF
9927 rm -f conftest.$ac_objext
9928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9929 (eval $ac_compile) 2>conftest.er1
9930 ac_status=$?
9931 grep -v '^ *+' conftest.er1 >conftest.err
9932 rm -f conftest.er1
9933 cat conftest.err >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935 (exit $ac_status); } &&
9936 { ac_try='test -z "$ac_c_werror_flag"
9937 || test ! -s conftest.err'
9938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939 (eval $ac_try) 2>&5
9940 ac_status=$?
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; } &&
9943 { ac_try='test -s conftest.$ac_objext'
9944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945 (eval $ac_try) 2>&5
9946 ac_status=$?
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; }; then
9949 ac_cv_header_time=yes
9950 else
9951 echo "$as_me: failed program was:" >&5
9952 sed 's/^/| /' conftest.$ac_ext >&5
9953
9954 ac_cv_header_time=no
9955 fi
9956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9957 fi
9958 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9959 echo "${ECHO_T}$ac_cv_header_time" >&6
9960 if test $ac_cv_header_time = yes; then
9961
9962 cat >>confdefs.h <<\_ACEOF
9963 @%:@define TIME_WITH_SYS_TIME 1
9964 _ACEOF
9965
9966 fi
9967
9968
9969
9970
9971 for ac_header in inttypes.h
9972 do
9973 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9975 echo "$as_me:$LINENO: checking for $ac_header" >&5
9976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9977 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9979 fi
9980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9982 else
9983 # Is the header compilable?
9984 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9985 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9986 cat >conftest.$ac_ext <<_ACEOF
9987 /* confdefs.h. */
9988 _ACEOF
9989 cat confdefs.h >>conftest.$ac_ext
9990 cat >>conftest.$ac_ext <<_ACEOF
9991 /* end confdefs.h. */
9992 $ac_includes_default
9993 @%:@include <$ac_header>
9994 _ACEOF
9995 rm -f conftest.$ac_objext
9996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9997 (eval $ac_compile) 2>conftest.er1
9998 ac_status=$?
9999 grep -v '^ *+' conftest.er1 >conftest.err
10000 rm -f conftest.er1
10001 cat conftest.err >&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } &&
10004 { ac_try='test -z "$ac_c_werror_flag"
10005 || test ! -s conftest.err'
10006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007 (eval $ac_try) 2>&5
10008 ac_status=$?
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; } &&
10011 { ac_try='test -s conftest.$ac_objext'
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10014 ac_status=$?
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; }; then
10017 ac_header_compiler=yes
10018 else
10019 echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10021
10022 ac_header_compiler=no
10023 fi
10024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10025 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10026 echo "${ECHO_T}$ac_header_compiler" >&6
10027
10028 # Is the header present?
10029 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10031 cat >conftest.$ac_ext <<_ACEOF
10032 /* confdefs.h. */
10033 _ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h. */
10037 @%:@include <$ac_header>
10038 _ACEOF
10039 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10041 ac_status=$?
10042 grep -v '^ *+' conftest.er1 >conftest.err
10043 rm -f conftest.er1
10044 cat conftest.err >&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } >/dev/null; then
10047 if test -s conftest.err; then
10048 ac_cpp_err=$ac_c_preproc_warn_flag
10049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10050 else
10051 ac_cpp_err=
10052 fi
10053 else
10054 ac_cpp_err=yes
10055 fi
10056 if test -z "$ac_cpp_err"; then
10057 ac_header_preproc=yes
10058 else
10059 echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.$ac_ext >&5
10061
10062 ac_header_preproc=no
10063 fi
10064 rm -f conftest.err conftest.$ac_ext
10065 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10066 echo "${ECHO_T}$ac_header_preproc" >&6
10067
10068 # So? What about this header?
10069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10070 yes:no: )
10071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10072 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10074 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10075 ac_header_preproc=yes
10076 ;;
10077 no:yes:* )
10078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10079 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10081 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10082 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10083 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10084 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10085 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10087 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10088 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10089 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10090 (
10091 cat <<\_ASBOX
10092 @%:@@%:@ ------------------------------- @%:@@%:@
10093 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
10094 @%:@@%:@ ------------------------------- @%:@@%:@
10095 _ASBOX
10096 ) |
10097 sed "s/^/$as_me: WARNING: /" >&2
10098 ;;
10099 esac
10100 echo "$as_me:$LINENO: checking for $ac_header" >&5
10101 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10103 echo $ECHO_N "(cached) $ECHO_C" >&6
10104 else
10105 eval "$as_ac_Header=\$ac_header_preproc"
10106 fi
10107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10109
10110 fi
10111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10112 cat >>confdefs.h <<_ACEOF
10113 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10114 _ACEOF
10115
10116 fi
10117
10118 done
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141 for ac_header in unistd.h stdlib.h stdarg.h varargs.h limits.h string.h \
10142 memory.h locale.h termcap.h termio.h termios.h dlfcn.h \
10143 stddef.h stdint.h netdb.h pwd.h grp.h strings.h regex.h
10144 do
10145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10147 echo "$as_me:$LINENO: checking for $ac_header" >&5
10148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10151 fi
10152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10154 else
10155 # Is the header compilable?
10156 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10158 cat >conftest.$ac_ext <<_ACEOF
10159 /* confdefs.h. */
10160 _ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10164 $ac_includes_default
10165 @%:@include <$ac_header>
10166 _ACEOF
10167 rm -f conftest.$ac_objext
10168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10169 (eval $ac_compile) 2>conftest.er1
10170 ac_status=$?
10171 grep -v '^ *+' conftest.er1 >conftest.err
10172 rm -f conftest.er1
10173 cat conftest.err >&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } &&
10176 { ac_try='test -z "$ac_c_werror_flag"
10177 || test ! -s conftest.err'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10180 ac_status=$?
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; } &&
10183 { ac_try='test -s conftest.$ac_objext'
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; }; then
10189 ac_header_compiler=yes
10190 else
10191 echo "$as_me: failed program was:" >&5
10192 sed 's/^/| /' conftest.$ac_ext >&5
10193
10194 ac_header_compiler=no
10195 fi
10196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10197 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10198 echo "${ECHO_T}$ac_header_compiler" >&6
10199
10200 # Is the header present?
10201 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10203 cat >conftest.$ac_ext <<_ACEOF
10204 /* confdefs.h. */
10205 _ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
10208 /* end confdefs.h. */
10209 @%:@include <$ac_header>
10210 _ACEOF
10211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10213 ac_status=$?
10214 grep -v '^ *+' conftest.er1 >conftest.err
10215 rm -f conftest.er1
10216 cat conftest.err >&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } >/dev/null; then
10219 if test -s conftest.err; then
10220 ac_cpp_err=$ac_c_preproc_warn_flag
10221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10222 else
10223 ac_cpp_err=
10224 fi
10225 else
10226 ac_cpp_err=yes
10227 fi
10228 if test -z "$ac_cpp_err"; then
10229 ac_header_preproc=yes
10230 else
10231 echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10233
10234 ac_header_preproc=no
10235 fi
10236 rm -f conftest.err conftest.$ac_ext
10237 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10238 echo "${ECHO_T}$ac_header_preproc" >&6
10239
10240 # So? What about this header?
10241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10242 yes:no: )
10243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10247 ac_header_preproc=yes
10248 ;;
10249 no:yes:* )
10250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10253 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10257 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10262 (
10263 cat <<\_ASBOX
10264 @%:@@%:@ ------------------------------- @%:@@%:@
10265 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
10266 @%:@@%:@ ------------------------------- @%:@@%:@
10267 _ASBOX
10268 ) |
10269 sed "s/^/$as_me: WARNING: /" >&2
10270 ;;
10271 esac
10272 echo "$as_me:$LINENO: checking for $ac_header" >&5
10273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10275 echo $ECHO_N "(cached) $ECHO_C" >&6
10276 else
10277 eval "$as_ac_Header=\$ac_header_preproc"
10278 fi
10279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10281
10282 fi
10283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10284 cat >>confdefs.h <<_ACEOF
10285 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10286 _ACEOF
10287
10288 fi
10289
10290 done
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304 for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h \
10305 sys/resource.h sys/param.h sys/socket.h sys/stat.h \
10306 sys/time.h sys/times.h sys/types.h sys/wait.h
10307 do
10308 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10310 echo "$as_me:$LINENO: checking for $ac_header" >&5
10311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10314 fi
10315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10317 else
10318 # Is the header compilable?
10319 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10321 cat >conftest.$ac_ext <<_ACEOF
10322 /* confdefs.h. */
10323 _ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h. */
10327 $ac_includes_default
10328 @%:@include <$ac_header>
10329 _ACEOF
10330 rm -f conftest.$ac_objext
10331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10332 (eval $ac_compile) 2>conftest.er1
10333 ac_status=$?
10334 grep -v '^ *+' conftest.er1 >conftest.err
10335 rm -f conftest.er1
10336 cat conftest.err >&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } &&
10339 { ac_try='test -z "$ac_c_werror_flag"
10340 || test ! -s conftest.err'
10341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10342 (eval $ac_try) 2>&5
10343 ac_status=$?
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); }; } &&
10346 { ac_try='test -s conftest.$ac_objext'
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10349 ac_status=$?
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; }; then
10352 ac_header_compiler=yes
10353 else
10354 echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.$ac_ext >&5
10356
10357 ac_header_compiler=no
10358 fi
10359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10361 echo "${ECHO_T}$ac_header_compiler" >&6
10362
10363 # Is the header present?
10364 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10366 cat >conftest.$ac_ext <<_ACEOF
10367 /* confdefs.h. */
10368 _ACEOF
10369 cat confdefs.h >>conftest.$ac_ext
10370 cat >>conftest.$ac_ext <<_ACEOF
10371 /* end confdefs.h. */
10372 @%:@include <$ac_header>
10373 _ACEOF
10374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10376 ac_status=$?
10377 grep -v '^ *+' conftest.er1 >conftest.err
10378 rm -f conftest.er1
10379 cat conftest.err >&5
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); } >/dev/null; then
10382 if test -s conftest.err; then
10383 ac_cpp_err=$ac_c_preproc_warn_flag
10384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10385 else
10386 ac_cpp_err=
10387 fi
10388 else
10389 ac_cpp_err=yes
10390 fi
10391 if test -z "$ac_cpp_err"; then
10392 ac_header_preproc=yes
10393 else
10394 echo "$as_me: failed program was:" >&5
10395 sed 's/^/| /' conftest.$ac_ext >&5
10396
10397 ac_header_preproc=no
10398 fi
10399 rm -f conftest.err conftest.$ac_ext
10400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10401 echo "${ECHO_T}$ac_header_preproc" >&6
10402
10403 # So? What about this header?
10404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10405 yes:no: )
10406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10410 ac_header_preproc=yes
10411 ;;
10412 no:yes:* )
10413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10420 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10425 (
10426 cat <<\_ASBOX
10427 @%:@@%:@ ------------------------------- @%:@@%:@
10428 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
10429 @%:@@%:@ ------------------------------- @%:@@%:@
10430 _ASBOX
10431 ) |
10432 sed "s/^/$as_me: WARNING: /" >&2
10433 ;;
10434 esac
10435 echo "$as_me:$LINENO: checking for $ac_header" >&5
10436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10438 echo $ECHO_N "(cached) $ECHO_C" >&6
10439 else
10440 eval "$as_ac_Header=\$ac_header_preproc"
10441 fi
10442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10444
10445 fi
10446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10447 cat >>confdefs.h <<_ACEOF
10448 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10449 _ACEOF
10450
10451 fi
10452
10453 done
10454
10455
10456
10457 for ac_header in netinet/in.h arpa/inet.h
10458 do
10459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10460 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10461 echo "$as_me:$LINENO: checking for $ac_header" >&5
10462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10465 fi
10466 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10467 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10468 else
10469 # Is the header compilable?
10470 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10471 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10472 cat >conftest.$ac_ext <<_ACEOF
10473 /* confdefs.h. */
10474 _ACEOF
10475 cat confdefs.h >>conftest.$ac_ext
10476 cat >>conftest.$ac_ext <<_ACEOF
10477 /* end confdefs.h. */
10478 $ac_includes_default
10479 @%:@include <$ac_header>
10480 _ACEOF
10481 rm -f conftest.$ac_objext
10482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10483 (eval $ac_compile) 2>conftest.er1
10484 ac_status=$?
10485 grep -v '^ *+' conftest.er1 >conftest.err
10486 rm -f conftest.er1
10487 cat conftest.err >&5
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); } &&
10490 { ac_try='test -z "$ac_c_werror_flag"
10491 || test ! -s conftest.err'
10492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493 (eval $ac_try) 2>&5
10494 ac_status=$?
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); }; } &&
10497 { ac_try='test -s conftest.$ac_objext'
10498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10499 (eval $ac_try) 2>&5
10500 ac_status=$?
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; }; then
10503 ac_header_compiler=yes
10504 else
10505 echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10507
10508 ac_header_compiler=no
10509 fi
10510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10511 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10512 echo "${ECHO_T}$ac_header_compiler" >&6
10513
10514 # Is the header present?
10515 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10517 cat >conftest.$ac_ext <<_ACEOF
10518 /* confdefs.h. */
10519 _ACEOF
10520 cat confdefs.h >>conftest.$ac_ext
10521 cat >>conftest.$ac_ext <<_ACEOF
10522 /* end confdefs.h. */
10523 @%:@include <$ac_header>
10524 _ACEOF
10525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10527 ac_status=$?
10528 grep -v '^ *+' conftest.er1 >conftest.err
10529 rm -f conftest.er1
10530 cat conftest.err >&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); } >/dev/null; then
10533 if test -s conftest.err; then
10534 ac_cpp_err=$ac_c_preproc_warn_flag
10535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10536 else
10537 ac_cpp_err=
10538 fi
10539 else
10540 ac_cpp_err=yes
10541 fi
10542 if test -z "$ac_cpp_err"; then
10543 ac_header_preproc=yes
10544 else
10545 echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10547
10548 ac_header_preproc=no
10549 fi
10550 rm -f conftest.err conftest.$ac_ext
10551 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10552 echo "${ECHO_T}$ac_header_preproc" >&6
10553
10554 # So? What about this header?
10555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10556 yes:no: )
10557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10561 ac_header_preproc=yes
10562 ;;
10563 no:yes:* )
10564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10576 (
10577 cat <<\_ASBOX
10578 @%:@@%:@ ------------------------------- @%:@@%:@
10579 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
10580 @%:@@%:@ ------------------------------- @%:@@%:@
10581 _ASBOX
10582 ) |
10583 sed "s/^/$as_me: WARNING: /" >&2
10584 ;;
10585 esac
10586 echo "$as_me:$LINENO: checking for $ac_header" >&5
10587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
10590 else
10591 eval "$as_ac_Header=\$ac_header_preproc"
10592 fi
10593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10595
10596 fi
10597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10598 cat >>confdefs.h <<_ACEOF
10599 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10600 _ACEOF
10601
10602 fi
10603
10604 done
10605
10606
10607 echo "$as_me:$LINENO: checking for sys/ptem.h" >&5
10608 echo $ECHO_N "checking for sys/ptem.h... $ECHO_C" >&6
10609 if test "${ac_cv_header_sys_ptem_h+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 else
10612 cat >conftest.$ac_ext <<_ACEOF
10613 /* confdefs.h. */
10614 _ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h. */
10618
10619 #if HAVE_SYS_STREAM_H
10620 # include <sys/stream.h>
10621 #endif
10622
10623
10624 @%:@include <sys/ptem.h>
10625 _ACEOF
10626 rm -f conftest.$ac_objext
10627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10628 (eval $ac_compile) 2>conftest.er1
10629 ac_status=$?
10630 grep -v '^ *+' conftest.er1 >conftest.err
10631 rm -f conftest.er1
10632 cat conftest.err >&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); } &&
10635 { ac_try='test -z "$ac_c_werror_flag"
10636 || test ! -s conftest.err'
10637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10638 (eval $ac_try) 2>&5
10639 ac_status=$?
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); }; } &&
10642 { ac_try='test -s conftest.$ac_objext'
10643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10644 (eval $ac_try) 2>&5
10645 ac_status=$?
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; }; then
10648 ac_cv_header_sys_ptem_h=yes
10649 else
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10652
10653 ac_cv_header_sys_ptem_h=no
10654 fi
10655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10656 fi
10657 echo "$as_me:$LINENO: result: $ac_cv_header_sys_ptem_h" >&5
10658 echo "${ECHO_T}$ac_cv_header_sys_ptem_h" >&6
10659
10660
10661
10662 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10663 # for constant arguments. Useless!
10664 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10665 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10666 if test "${ac_cv_working_alloca_h+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10668 else
10669 cat >conftest.$ac_ext <<_ACEOF
10670 /* confdefs.h. */
10671 _ACEOF
10672 cat confdefs.h >>conftest.$ac_ext
10673 cat >>conftest.$ac_ext <<_ACEOF
10674 /* end confdefs.h. */
10675 @%:@include <alloca.h>
10676 int
10677 main ()
10678 {
10679 char *p = (char *) alloca (2 * sizeof (int));
10680 ;
10681 return 0;
10682 }
10683 _ACEOF
10684 rm -f conftest.$ac_objext conftest$ac_exeext
10685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10686 (eval $ac_link) 2>conftest.er1
10687 ac_status=$?
10688 grep -v '^ *+' conftest.er1 >conftest.err
10689 rm -f conftest.er1
10690 cat conftest.err >&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } &&
10693 { ac_try='test -z "$ac_c_werror_flag"
10694 || test ! -s conftest.err'
10695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10696 (eval $ac_try) 2>&5
10697 ac_status=$?
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); }; } &&
10700 { ac_try='test -s conftest$ac_exeext'
10701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10702 (eval $ac_try) 2>&5
10703 ac_status=$?
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); }; }; then
10706 ac_cv_working_alloca_h=yes
10707 else
10708 echo "$as_me: failed program was:" >&5
10709 sed 's/^/| /' conftest.$ac_ext >&5
10710
10711 ac_cv_working_alloca_h=no
10712 fi
10713 rm -f conftest.err conftest.$ac_objext \
10714 conftest$ac_exeext conftest.$ac_ext
10715 fi
10716 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10717 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10718 if test $ac_cv_working_alloca_h = yes; then
10719
10720 cat >>confdefs.h <<\_ACEOF
10721 @%:@define HAVE_ALLOCA_H 1
10722 _ACEOF
10723
10724 fi
10725
10726 echo "$as_me:$LINENO: checking for alloca" >&5
10727 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10728 if test "${ac_cv_func_alloca_works+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10730 else
10731 cat >conftest.$ac_ext <<_ACEOF
10732 /* confdefs.h. */
10733 _ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h. */
10737 #ifdef __GNUC__
10738 # define alloca __builtin_alloca
10739 #else
10740 # ifdef _MSC_VER
10741 # include <malloc.h>
10742 # define alloca _alloca
10743 # else
10744 # if HAVE_ALLOCA_H
10745 # include <alloca.h>
10746 # else
10747 # ifdef _AIX
10748 #pragma alloca
10749 # else
10750 # ifndef alloca /* predefined by HP cc +Olibcalls */
10751 char *alloca ();
10752 # endif
10753 # endif
10754 # endif
10755 # endif
10756 #endif
10757
10758 int
10759 main ()
10760 {
10761 char *p = (char *) alloca (1);
10762 ;
10763 return 0;
10764 }
10765 _ACEOF
10766 rm -f conftest.$ac_objext conftest$ac_exeext
10767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10768 (eval $ac_link) 2>conftest.er1
10769 ac_status=$?
10770 grep -v '^ *+' conftest.er1 >conftest.err
10771 rm -f conftest.er1
10772 cat conftest.err >&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } &&
10775 { ac_try='test -z "$ac_c_werror_flag"
10776 || test ! -s conftest.err'
10777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778 (eval $ac_try) 2>&5
10779 ac_status=$?
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; } &&
10782 { ac_try='test -s conftest$ac_exeext'
10783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784 (eval $ac_try) 2>&5
10785 ac_status=$?
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; }; then
10788 ac_cv_func_alloca_works=yes
10789 else
10790 echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10792
10793 ac_cv_func_alloca_works=no
10794 fi
10795 rm -f conftest.err conftest.$ac_objext \
10796 conftest$ac_exeext conftest.$ac_ext
10797 fi
10798 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10799 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
10800
10801 if test $ac_cv_func_alloca_works = yes; then
10802
10803 cat >>confdefs.h <<\_ACEOF
10804 @%:@define HAVE_ALLOCA 1
10805 _ACEOF
10806
10807 else
10808 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10809 # that cause trouble. Some versions do not even contain alloca or
10810 # contain a buggy version. If you still want to use their alloca,
10811 # use ar to extract alloca.o from them instead of compiling alloca.c.
10812
10813 ALLOCA=alloca.$ac_objext
10814
10815 cat >>confdefs.h <<\_ACEOF
10816 @%:@define C_ALLOCA 1
10817 _ACEOF
10818
10819
10820 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10821 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
10822 if test "${ac_cv_os_cray+set}" = set; then
10823 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 else
10825 cat >conftest.$ac_ext <<_ACEOF
10826 /* confdefs.h. */
10827 _ACEOF
10828 cat confdefs.h >>conftest.$ac_ext
10829 cat >>conftest.$ac_ext <<_ACEOF
10830 /* end confdefs.h. */
10831 #if defined(CRAY) && ! defined(CRAY2)
10832 webecray
10833 #else
10834 wenotbecray
10835 #endif
10836
10837 _ACEOF
10838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10839 $EGREP "webecray" >/dev/null 2>&1; then
10840 ac_cv_os_cray=yes
10841 else
10842 ac_cv_os_cray=no
10843 fi
10844 rm -f conftest*
10845
10846 fi
10847 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10848 echo "${ECHO_T}$ac_cv_os_cray" >&6
10849 if test $ac_cv_os_cray = yes; then
10850 for ac_func in _getb67 GETB67 getb67; do
10851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10852 echo "$as_me:$LINENO: checking for $ac_func" >&5
10853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10854 if eval "test \"\${$as_ac_var+set}\" = set"; then
10855 echo $ECHO_N "(cached) $ECHO_C" >&6
10856 else
10857 cat >conftest.$ac_ext <<_ACEOF
10858 /* confdefs.h. */
10859 _ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10865 #define $ac_func innocuous_$ac_func
10866
10867 /* System header to define __stub macros and hopefully few prototypes,
10868 which can conflict with char $ac_func (); below.
10869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10870 <limits.h> exists even on freestanding compilers. */
10871
10872 #ifdef __STDC__
10873 # include <limits.h>
10874 #else
10875 # include <assert.h>
10876 #endif
10877
10878 #undef $ac_func
10879
10880 /* Override any gcc2 internal prototype to avoid an error. */
10881 #ifdef __cplusplus
10882 extern "C"
10883 {
10884 #endif
10885 /* We use char because int might match the return type of a gcc2
10886 builtin and then its argument prototype would still apply. */
10887 char $ac_func ();
10888 /* The GNU C library defines this for functions which it implements
10889 to always fail with ENOSYS. Some functions are actually named
10890 something starting with __ and the normal name is an alias. */
10891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10892 choke me
10893 #else
10894 char (*f) () = $ac_func;
10895 #endif
10896 #ifdef __cplusplus
10897 }
10898 #endif
10899
10900 int
10901 main ()
10902 {
10903 return f != $ac_func;
10904 ;
10905 return 0;
10906 }
10907 _ACEOF
10908 rm -f conftest.$ac_objext conftest$ac_exeext
10909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10910 (eval $ac_link) 2>conftest.er1
10911 ac_status=$?
10912 grep -v '^ *+' conftest.er1 >conftest.err
10913 rm -f conftest.er1
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } &&
10917 { ac_try='test -z "$ac_c_werror_flag"
10918 || test ! -s conftest.err'
10919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920 (eval $ac_try) 2>&5
10921 ac_status=$?
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; } &&
10924 { ac_try='test -s conftest$ac_exeext'
10925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10926 (eval $ac_try) 2>&5
10927 ac_status=$?
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); }; }; then
10930 eval "$as_ac_var=yes"
10931 else
10932 echo "$as_me: failed program was:" >&5
10933 sed 's/^/| /' conftest.$ac_ext >&5
10934
10935 eval "$as_ac_var=no"
10936 fi
10937 rm -f conftest.err conftest.$ac_objext \
10938 conftest$ac_exeext conftest.$ac_ext
10939 fi
10940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10942 if test `eval echo '${'$as_ac_var'}'` = yes; then
10943
10944 cat >>confdefs.h <<_ACEOF
10945 @%:@define CRAY_STACKSEG_END $ac_func
10946 _ACEOF
10947
10948 break
10949 fi
10950
10951 done
10952 fi
10953
10954 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10955 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
10956 if test "${ac_cv_c_stack_direction+set}" = set; then
10957 echo $ECHO_N "(cached) $ECHO_C" >&6
10958 else
10959 if test "$cross_compiling" = yes; then
10960 ac_cv_c_stack_direction=0
10961 else
10962 cat >conftest.$ac_ext <<_ACEOF
10963 /* confdefs.h. */
10964 _ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10968 int
10969 find_stack_direction ()
10970 {
10971 static char *addr = 0;
10972 auto char dummy;
10973 if (addr == 0)
10974 {
10975 addr = &dummy;
10976 return find_stack_direction ();
10977 }
10978 else
10979 return (&dummy > addr) ? 1 : -1;
10980 }
10981
10982 int
10983 main ()
10984 {
10985 exit (find_stack_direction () < 0);
10986 }
10987 _ACEOF
10988 rm -f conftest$ac_exeext
10989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10990 (eval $ac_link) 2>&5
10991 ac_status=$?
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995 (eval $ac_try) 2>&5
10996 ac_status=$?
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; }; then
10999 ac_cv_c_stack_direction=1
11000 else
11001 echo "$as_me: program exited with status $ac_status" >&5
11002 echo "$as_me: failed program was:" >&5
11003 sed 's/^/| /' conftest.$ac_ext >&5
11004
11005 ( exit $ac_status )
11006 ac_cv_c_stack_direction=-1
11007 fi
11008 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11009 fi
11010 fi
11011 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11012 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11013
11014 cat >>confdefs.h <<_ACEOF
11015 @%:@define STACK_DIRECTION $ac_cv_c_stack_direction
11016 _ACEOF
11017
11018
11019 fi
11020
11021 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
11022 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
11023 if test "${ac_cv_func_getpgrp_void+set}" = set; then
11024 echo $ECHO_N "(cached) $ECHO_C" >&6
11025 else
11026 # Use it with a single arg.
11027 cat >conftest.$ac_ext <<_ACEOF
11028 /* confdefs.h. */
11029 _ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h. */
11033 $ac_includes_default
11034 int
11035 main ()
11036 {
11037 getpgrp (0);
11038 ;
11039 return 0;
11040 }
11041 _ACEOF
11042 rm -f conftest.$ac_objext
11043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11044 (eval $ac_compile) 2>conftest.er1
11045 ac_status=$?
11046 grep -v '^ *+' conftest.er1 >conftest.err
11047 rm -f conftest.er1
11048 cat conftest.err >&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } &&
11051 { ac_try='test -z "$ac_c_werror_flag"
11052 || test ! -s conftest.err'
11053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11054 (eval $ac_try) 2>&5
11055 ac_status=$?
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); }; } &&
11058 { ac_try='test -s conftest.$ac_objext'
11059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11061 ac_status=$?
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; }; then
11064 ac_cv_func_getpgrp_void=no
11065 else
11066 echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.$ac_ext >&5
11068
11069 ac_cv_func_getpgrp_void=yes
11070 fi
11071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11072
11073 fi
11074 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
11075 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
11076 if test $ac_cv_func_getpgrp_void = yes; then
11077
11078 cat >>confdefs.h <<\_ACEOF
11079 @%:@define GETPGRP_VOID 1
11080 _ACEOF
11081
11082 fi
11083
11084 echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
11085 echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
11086 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
11087 echo $ECHO_N "(cached) $ECHO_C" >&6
11088 else
11089 ac_cv_func_setvbuf_reversed=no
11090 cat >conftest.$ac_ext <<_ACEOF
11091 /* confdefs.h. */
11092 _ACEOF
11093 cat confdefs.h >>conftest.$ac_ext
11094 cat >>conftest.$ac_ext <<_ACEOF
11095 /* end confdefs.h. */
11096 #include <stdio.h>
11097 # if PROTOTYPES
11098 int (setvbuf) (FILE *, int, char *, size_t);
11099 # endif
11100 int
11101 main ()
11102 {
11103 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
11104 ;
11105 return 0;
11106 }
11107 _ACEOF
11108 rm -f conftest.$ac_objext conftest$ac_exeext
11109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11110 (eval $ac_link) 2>conftest.er1
11111 ac_status=$?
11112 grep -v '^ *+' conftest.er1 >conftest.err
11113 rm -f conftest.er1
11114 cat conftest.err >&5
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); } &&
11117 { ac_try='test -z "$ac_c_werror_flag"
11118 || test ! -s conftest.err'
11119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11120 (eval $ac_try) 2>&5
11121 ac_status=$?
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; } &&
11124 { ac_try='test -s conftest$ac_exeext'
11125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11126 (eval $ac_try) 2>&5
11127 ac_status=$?
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); }; }; then
11130 cat >conftest.$ac_ext <<_ACEOF
11131 /* confdefs.h. */
11132 _ACEOF
11133 cat confdefs.h >>conftest.$ac_ext
11134 cat >>conftest.$ac_ext <<_ACEOF
11135 /* end confdefs.h. */
11136 #include <stdio.h>
11137 # if PROTOTYPES
11138 int (setvbuf) (FILE *, int, char *, size_t);
11139 # endif
11140 int
11141 main ()
11142 {
11143 char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
11144 ;
11145 return 0;
11146 }
11147 _ACEOF
11148 rm -f conftest.$ac_objext conftest$ac_exeext
11149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11150 (eval $ac_link) 2>conftest.er1
11151 ac_status=$?
11152 grep -v '^ *+' conftest.er1 >conftest.err
11153 rm -f conftest.er1
11154 cat conftest.err >&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); } &&
11157 { ac_try='test -z "$ac_c_werror_flag"
11158 || test ! -s conftest.err'
11159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11160 (eval $ac_try) 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 # It compiles and links either way, so it must not be declared
11171 # with a prototype and most likely this is a K&R C compiler.
11172 # Try running it.
11173 if test "$cross_compiling" = yes; then
11174 : # Assume setvbuf is not reversed when cross-compiling.
11175 else
11176 cat >conftest.$ac_ext <<_ACEOF
11177 /* confdefs.h. */
11178 _ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h. */
11182 #include <stdio.h>
11183 int
11184 main ()
11185 {
11186 /* This call has the arguments reversed.
11187 A reversed system may check and see that the address of buf
11188 is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
11189 char buf;
11190 if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
11191 exit (1);
11192 putchar ('\r');
11193 exit (0); /* Non-reversed systems SEGV here. */
11194 ;
11195 return 0;
11196 }
11197 _ACEOF
11198 rm -f conftest$ac_exeext
11199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11200 (eval $ac_link) 2>&5
11201 ac_status=$?
11202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205 (eval $ac_try) 2>&5
11206 ac_status=$?
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }; }; then
11209 ac_cv_func_setvbuf_reversed=yes
11210 else
11211 echo "$as_me: program exited with status $ac_status" >&5
11212 echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.$ac_ext >&5
11214
11215 ( exit $ac_status )
11216 rm -f core *.core
11217 fi
11218 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11219 fi
11220 ac_cv_func_setvbuf_reversed=yes
11221 else
11222 echo "$as_me: failed program was:" >&5
11223 sed 's/^/| /' conftest.$ac_ext >&5
11224
11225 fi
11226 rm -f conftest.err conftest.$ac_objext \
11227 conftest$ac_exeext conftest.$ac_ext
11228 else
11229 echo "$as_me: failed program was:" >&5
11230 sed 's/^/| /' conftest.$ac_ext >&5
11231
11232 fi
11233 rm -f conftest.err conftest.$ac_objext \
11234 conftest$ac_exeext conftest.$ac_ext
11235 fi
11236 echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
11237 echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
11238 if test $ac_cv_func_setvbuf_reversed = yes; then
11239
11240 cat >>confdefs.h <<\_ACEOF
11241 @%:@define SETVBUF_REVERSED 1
11242 _ACEOF
11243
11244 fi
11245
11246
11247 for ac_func in vprintf
11248 do
11249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11250 echo "$as_me:$LINENO: checking for $ac_func" >&5
11251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11252 if eval "test \"\${$as_ac_var+set}\" = set"; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11254 else
11255 cat >conftest.$ac_ext <<_ACEOF
11256 /* confdefs.h. */
11257 _ACEOF
11258 cat confdefs.h >>conftest.$ac_ext
11259 cat >>conftest.$ac_ext <<_ACEOF
11260 /* end confdefs.h. */
11261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11263 #define $ac_func innocuous_$ac_func
11264
11265 /* System header to define __stub macros and hopefully few prototypes,
11266 which can conflict with char $ac_func (); below.
11267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11268 <limits.h> exists even on freestanding compilers. */
11269
11270 #ifdef __STDC__
11271 # include <limits.h>
11272 #else
11273 # include <assert.h>
11274 #endif
11275
11276 #undef $ac_func
11277
11278 /* Override any gcc2 internal prototype to avoid an error. */
11279 #ifdef __cplusplus
11280 extern "C"
11281 {
11282 #endif
11283 /* We use char because int might match the return type of a gcc2
11284 builtin and then its argument prototype would still apply. */
11285 char $ac_func ();
11286 /* The GNU C library defines this for functions which it implements
11287 to always fail with ENOSYS. Some functions are actually named
11288 something starting with __ and the normal name is an alias. */
11289 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11290 choke me
11291 #else
11292 char (*f) () = $ac_func;
11293 #endif
11294 #ifdef __cplusplus
11295 }
11296 #endif
11297
11298 int
11299 main ()
11300 {
11301 return f != $ac_func;
11302 ;
11303 return 0;
11304 }
11305 _ACEOF
11306 rm -f conftest.$ac_objext conftest$ac_exeext
11307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11308 (eval $ac_link) 2>conftest.er1
11309 ac_status=$?
11310 grep -v '^ *+' conftest.er1 >conftest.err
11311 rm -f conftest.er1
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try='test -z "$ac_c_werror_flag"
11316 || test ! -s conftest.err'
11317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318 (eval $ac_try) 2>&5
11319 ac_status=$?
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; } &&
11322 { ac_try='test -s conftest$ac_exeext'
11323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11324 (eval $ac_try) 2>&5
11325 ac_status=$?
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); }; }; then
11328 eval "$as_ac_var=yes"
11329 else
11330 echo "$as_me: failed program was:" >&5
11331 sed 's/^/| /' conftest.$ac_ext >&5
11332
11333 eval "$as_ac_var=no"
11334 fi
11335 rm -f conftest.err conftest.$ac_objext \
11336 conftest$ac_exeext conftest.$ac_ext
11337 fi
11338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11339 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11340 if test `eval echo '${'$as_ac_var'}'` = yes; then
11341 cat >>confdefs.h <<_ACEOF
11342 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11343 _ACEOF
11344
11345 echo "$as_me:$LINENO: checking for _doprnt" >&5
11346 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
11347 if test "${ac_cv_func__doprnt+set}" = set; then
11348 echo $ECHO_N "(cached) $ECHO_C" >&6
11349 else
11350 cat >conftest.$ac_ext <<_ACEOF
11351 /* confdefs.h. */
11352 _ACEOF
11353 cat confdefs.h >>conftest.$ac_ext
11354 cat >>conftest.$ac_ext <<_ACEOF
11355 /* end confdefs.h. */
11356 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11358 #define _doprnt innocuous__doprnt
11359
11360 /* System header to define __stub macros and hopefully few prototypes,
11361 which can conflict with char _doprnt (); below.
11362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11363 <limits.h> exists even on freestanding compilers. */
11364
11365 #ifdef __STDC__
11366 # include <limits.h>
11367 #else
11368 # include <assert.h>
11369 #endif
11370
11371 #undef _doprnt
11372
11373 /* Override any gcc2 internal prototype to avoid an error. */
11374 #ifdef __cplusplus
11375 extern "C"
11376 {
11377 #endif
11378 /* We use char because int might match the return type of a gcc2
11379 builtin and then its argument prototype would still apply. */
11380 char _doprnt ();
11381 /* The GNU C library defines this for functions which it implements
11382 to always fail with ENOSYS. Some functions are actually named
11383 something starting with __ and the normal name is an alias. */
11384 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11385 choke me
11386 #else
11387 char (*f) () = _doprnt;
11388 #endif
11389 #ifdef __cplusplus
11390 }
11391 #endif
11392
11393 int
11394 main ()
11395 {
11396 return f != _doprnt;
11397 ;
11398 return 0;
11399 }
11400 _ACEOF
11401 rm -f conftest.$ac_objext conftest$ac_exeext
11402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11403 (eval $ac_link) 2>conftest.er1
11404 ac_status=$?
11405 grep -v '^ *+' conftest.er1 >conftest.err
11406 rm -f conftest.er1
11407 cat conftest.err >&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); } &&
11410 { ac_try='test -z "$ac_c_werror_flag"
11411 || test ! -s conftest.err'
11412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11413 (eval $ac_try) 2>&5
11414 ac_status=$?
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); }; } &&
11417 { ac_try='test -s conftest$ac_exeext'
11418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11419 (eval $ac_try) 2>&5
11420 ac_status=$?
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); }; }; then
11423 ac_cv_func__doprnt=yes
11424 else
11425 echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11427
11428 ac_cv_func__doprnt=no
11429 fi
11430 rm -f conftest.err conftest.$ac_objext \
11431 conftest$ac_exeext conftest.$ac_ext
11432 fi
11433 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11434 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
11435 if test $ac_cv_func__doprnt = yes; then
11436
11437 cat >>confdefs.h <<\_ACEOF
11438 @%:@define HAVE_DOPRNT 1
11439 _ACEOF
11440
11441 fi
11442
11443 fi
11444 done
11445
11446
11447 echo "$as_me:$LINENO: checking for working strcoll" >&5
11448 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
11449 if test "${ac_cv_func_strcoll_works+set}" = set; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11451 else
11452 if test "$cross_compiling" = yes; then
11453 ac_cv_func_strcoll_works=no
11454 else
11455 cat >conftest.$ac_ext <<_ACEOF
11456 /* confdefs.h. */
11457 _ACEOF
11458 cat confdefs.h >>conftest.$ac_ext
11459 cat >>conftest.$ac_ext <<_ACEOF
11460 /* end confdefs.h. */
11461 $ac_includes_default
11462 int
11463 main ()
11464 {
11465 exit (strcoll ("abc", "def") >= 0 ||
11466 strcoll ("ABC", "DEF") >= 0 ||
11467 strcoll ("123", "456") >= 0)
11468 ;
11469 return 0;
11470 }
11471 _ACEOF
11472 rm -f conftest$ac_exeext
11473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11474 (eval $ac_link) 2>&5
11475 ac_status=$?
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11480 ac_status=$?
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; }; then
11483 ac_cv_func_strcoll_works=yes
11484 else
11485 echo "$as_me: program exited with status $ac_status" >&5
11486 echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11488
11489 ( exit $ac_status )
11490 ac_cv_func_strcoll_works=no
11491 fi
11492 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11493 fi
11494 fi
11495 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
11496 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
11497 if test $ac_cv_func_strcoll_works = yes; then
11498
11499 cat >>confdefs.h <<\_ACEOF
11500 @%:@define HAVE_STRCOLL 1
11501 _ACEOF
11502
11503 fi
11504
11505
11506
11507 if test "$ac_cv_func_alloca_works" = "no" && test "$opt_bash_malloc" = "no"; then
11508 MALLOC_TARGET=alloca
11509 MALLOC_SRC=alloca.c
11510
11511 MALLOC_LIB='-lmalloc'
11512 MALLOC_LIBRARY='$(ALLOC_LIBDIR)/libmalloc.a'
11513 MALLOC_LDFLAGS='-L$(ALLOC_LIBDIR)'
11514 MALLOC_DEP='$(MALLOC_LIBRARY)'
11515 fi
11516
11517 if test "$ac_cv_func_vprintf" = no; then
11518 echo "$as_me:$LINENO: checking for declaration of vprintf in stdio.h" >&5
11519 echo $ECHO_N "checking for declaration of vprintf in stdio.h... $ECHO_C" >&6
11520 cat >conftest.$ac_ext <<_ACEOF
11521 /* confdefs.h. */
11522 _ACEOF
11523 cat confdefs.h >>conftest.$ac_ext
11524 cat >>conftest.$ac_ext <<_ACEOF
11525 /* end confdefs.h. */
11526 #include <stdio.h>
11527
11528 _ACEOF
11529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11530 $EGREP "[int[ ]*vprintf[^a-zA-Z0-9]]" >/dev/null 2>&1; then
11531 ac_cv_func_vprintf=yes
11532 fi
11533 rm -f conftest*
11534
11535 echo "$as_me:$LINENO: result: $ac_cv_func_vprintf" >&5
11536 echo "${ECHO_T}$ac_cv_func_vprintf" >&6
11537 if test $ac_cv_func_vprintf = yes; then
11538 cat >>confdefs.h <<\_ACEOF
11539 @%:@define HAVE_VPRINTF 1
11540 _ACEOF
11541
11542 fi
11543 fi
11544
11545 if test "$ac_cv_func_vprintf" = no && test "$ac_cv_func__doprnt" = "yes"; then
11546 case $LIB@&t@OBJS in
11547 "vprint.$ac_objext" | \
11548 *" vprint.$ac_objext" | \
11549 "vprint.$ac_objext "* | \
11550 *" vprint.$ac_objext "* ) ;;
11551 *) LIB@&t@OBJS="$LIB@&t@OBJS vprint.$ac_objext" ;;
11552 esac
11553
11554 fi
11555
11556 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11557 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11558 if test "${ac_cv_type_signal+set}" = set; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11560 else
11561 cat >conftest.$ac_ext <<_ACEOF
11562 /* confdefs.h. */
11563 _ACEOF
11564 cat confdefs.h >>conftest.$ac_ext
11565 cat >>conftest.$ac_ext <<_ACEOF
11566 /* end confdefs.h. */
11567 #include <sys/types.h>
11568 #include <signal.h>
11569 #ifdef signal
11570 # undef signal
11571 #endif
11572 #ifdef __cplusplus
11573 extern "C" void (*signal (int, void (*)(int)))(int);
11574 #else
11575 void (*signal ()) ();
11576 #endif
11577
11578 int
11579 main ()
11580 {
11581 int i;
11582 ;
11583 return 0;
11584 }
11585 _ACEOF
11586 rm -f conftest.$ac_objext
11587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11588 (eval $ac_compile) 2>conftest.er1
11589 ac_status=$?
11590 grep -v '^ *+' conftest.er1 >conftest.err
11591 rm -f conftest.er1
11592 cat conftest.err >&5
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); } &&
11595 { ac_try='test -z "$ac_c_werror_flag"
11596 || test ! -s conftest.err'
11597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598 (eval $ac_try) 2>&5
11599 ac_status=$?
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; } &&
11602 { ac_try='test -s conftest.$ac_objext'
11603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604 (eval $ac_try) 2>&5
11605 ac_status=$?
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; }; then
11608 ac_cv_type_signal=void
11609 else
11610 echo "$as_me: failed program was:" >&5
11611 sed 's/^/| /' conftest.$ac_ext >&5
11612
11613 ac_cv_type_signal=int
11614 fi
11615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11616 fi
11617 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11618 echo "${ECHO_T}$ac_cv_type_signal" >&6
11619
11620 cat >>confdefs.h <<_ACEOF
11621 @%:@define RETSIGTYPE $ac_cv_type_signal
11622 _ACEOF
11623
11624
11625
11626 echo "$as_me:$LINENO: checking for __setostype" >&5
11627 echo $ECHO_N "checking for __setostype... $ECHO_C" >&6
11628 if test "${ac_cv_func___setostype+set}" = set; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11630 else
11631 cat >conftest.$ac_ext <<_ACEOF
11632 /* confdefs.h. */
11633 _ACEOF
11634 cat confdefs.h >>conftest.$ac_ext
11635 cat >>conftest.$ac_ext <<_ACEOF
11636 /* end confdefs.h. */
11637 /* Define __setostype to an innocuous variant, in case <limits.h> declares __setostype.
11638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11639 #define __setostype innocuous___setostype
11640
11641 /* System header to define __stub macros and hopefully few prototypes,
11642 which can conflict with char __setostype (); below.
11643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11644 <limits.h> exists even on freestanding compilers. */
11645
11646 #ifdef __STDC__
11647 # include <limits.h>
11648 #else
11649 # include <assert.h>
11650 #endif
11651
11652 #undef __setostype
11653
11654 /* Override any gcc2 internal prototype to avoid an error. */
11655 #ifdef __cplusplus
11656 extern "C"
11657 {
11658 #endif
11659 /* We use char because int might match the return type of a gcc2
11660 builtin and then its argument prototype would still apply. */
11661 char __setostype ();
11662 /* The GNU C library defines this for functions which it implements
11663 to always fail with ENOSYS. Some functions are actually named
11664 something starting with __ and the normal name is an alias. */
11665 #if defined (__stub___setostype) || defined (__stub_____setostype)
11666 choke me
11667 #else
11668 char (*f) () = __setostype;
11669 #endif
11670 #ifdef __cplusplus
11671 }
11672 #endif
11673
11674 int
11675 main ()
11676 {
11677 return f != __setostype;
11678 ;
11679 return 0;
11680 }
11681 _ACEOF
11682 rm -f conftest.$ac_objext conftest$ac_exeext
11683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11684 (eval $ac_link) 2>conftest.er1
11685 ac_status=$?
11686 grep -v '^ *+' conftest.er1 >conftest.err
11687 rm -f conftest.er1
11688 cat conftest.err >&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } &&
11691 { ac_try='test -z "$ac_c_werror_flag"
11692 || test ! -s conftest.err'
11693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11694 (eval $ac_try) 2>&5
11695 ac_status=$?
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); }; } &&
11698 { ac_try='test -s conftest$ac_exeext'
11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700 (eval $ac_try) 2>&5
11701 ac_status=$?
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; }; then
11704 ac_cv_func___setostype=yes
11705 else
11706 echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11708
11709 ac_cv_func___setostype=no
11710 fi
11711 rm -f conftest.err conftest.$ac_objext \
11712 conftest$ac_exeext conftest.$ac_ext
11713 fi
11714 echo "$as_me:$LINENO: result: $ac_cv_func___setostype" >&5
11715 echo "${ECHO_T}$ac_cv_func___setostype" >&6
11716 if test $ac_cv_func___setostype = yes; then
11717 cat >>confdefs.h <<\_ACEOF
11718 @%:@define HAVE_SETOSTYPE 1
11719 _ACEOF
11720
11721 fi
11722
11723 echo "$as_me:$LINENO: checking for wait3" >&5
11724 echo $ECHO_N "checking for wait3... $ECHO_C" >&6
11725 if test "${ac_cv_func_wait3+set}" = set; then
11726 echo $ECHO_N "(cached) $ECHO_C" >&6
11727 else
11728 cat >conftest.$ac_ext <<_ACEOF
11729 /* confdefs.h. */
11730 _ACEOF
11731 cat confdefs.h >>conftest.$ac_ext
11732 cat >>conftest.$ac_ext <<_ACEOF
11733 /* end confdefs.h. */
11734 /* Define wait3 to an innocuous variant, in case <limits.h> declares wait3.
11735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11736 #define wait3 innocuous_wait3
11737
11738 /* System header to define __stub macros and hopefully few prototypes,
11739 which can conflict with char wait3 (); below.
11740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11741 <limits.h> exists even on freestanding compilers. */
11742
11743 #ifdef __STDC__
11744 # include <limits.h>
11745 #else
11746 # include <assert.h>
11747 #endif
11748
11749 #undef wait3
11750
11751 /* Override any gcc2 internal prototype to avoid an error. */
11752 #ifdef __cplusplus
11753 extern "C"
11754 {
11755 #endif
11756 /* We use char because int might match the return type of a gcc2
11757 builtin and then its argument prototype would still apply. */
11758 char wait3 ();
11759 /* The GNU C library defines this for functions which it implements
11760 to always fail with ENOSYS. Some functions are actually named
11761 something starting with __ and the normal name is an alias. */
11762 #if defined (__stub_wait3) || defined (__stub___wait3)
11763 choke me
11764 #else
11765 char (*f) () = wait3;
11766 #endif
11767 #ifdef __cplusplus
11768 }
11769 #endif
11770
11771 int
11772 main ()
11773 {
11774 return f != wait3;
11775 ;
11776 return 0;
11777 }
11778 _ACEOF
11779 rm -f conftest.$ac_objext conftest$ac_exeext
11780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11781 (eval $ac_link) 2>conftest.er1
11782 ac_status=$?
11783 grep -v '^ *+' conftest.er1 >conftest.err
11784 rm -f conftest.er1
11785 cat conftest.err >&5
11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787 (exit $ac_status); } &&
11788 { ac_try='test -z "$ac_c_werror_flag"
11789 || test ! -s conftest.err'
11790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11791 (eval $ac_try) 2>&5
11792 ac_status=$?
11793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794 (exit $ac_status); }; } &&
11795 { ac_try='test -s conftest$ac_exeext'
11796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11797 (eval $ac_try) 2>&5
11798 ac_status=$?
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); }; }; then
11801 ac_cv_func_wait3=yes
11802 else
11803 echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11805
11806 ac_cv_func_wait3=no
11807 fi
11808 rm -f conftest.err conftest.$ac_objext \
11809 conftest$ac_exeext conftest.$ac_ext
11810 fi
11811 echo "$as_me:$LINENO: result: $ac_cv_func_wait3" >&5
11812 echo "${ECHO_T}$ac_cv_func_wait3" >&6
11813 if test $ac_cv_func_wait3 = yes; then
11814 cat >>confdefs.h <<\_ACEOF
11815 @%:@define HAVE_WAIT3 1
11816 _ACEOF
11817
11818 fi
11819
11820 echo "$as_me:$LINENO: checking for isinf" >&5
11821 echo $ECHO_N "checking for isinf... $ECHO_C" >&6
11822 if test "${ac_cv_func_isinf+set}" = set; then
11823 echo $ECHO_N "(cached) $ECHO_C" >&6
11824 else
11825 cat >conftest.$ac_ext <<_ACEOF
11826 /* confdefs.h. */
11827 _ACEOF
11828 cat confdefs.h >>conftest.$ac_ext
11829 cat >>conftest.$ac_ext <<_ACEOF
11830 /* end confdefs.h. */
11831 /* Define isinf to an innocuous variant, in case <limits.h> declares isinf.
11832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11833 #define isinf innocuous_isinf
11834
11835 /* System header to define __stub macros and hopefully few prototypes,
11836 which can conflict with char isinf (); below.
11837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11838 <limits.h> exists even on freestanding compilers. */
11839
11840 #ifdef __STDC__
11841 # include <limits.h>
11842 #else
11843 # include <assert.h>
11844 #endif
11845
11846 #undef isinf
11847
11848 /* Override any gcc2 internal prototype to avoid an error. */
11849 #ifdef __cplusplus
11850 extern "C"
11851 {
11852 #endif
11853 /* We use char because int might match the return type of a gcc2
11854 builtin and then its argument prototype would still apply. */
11855 char isinf ();
11856 /* The GNU C library defines this for functions which it implements
11857 to always fail with ENOSYS. Some functions are actually named
11858 something starting with __ and the normal name is an alias. */
11859 #if defined (__stub_isinf) || defined (__stub___isinf)
11860 choke me
11861 #else
11862 char (*f) () = isinf;
11863 #endif
11864 #ifdef __cplusplus
11865 }
11866 #endif
11867
11868 int
11869 main ()
11870 {
11871 return f != isinf;
11872 ;
11873 return 0;
11874 }
11875 _ACEOF
11876 rm -f conftest.$ac_objext conftest$ac_exeext
11877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11878 (eval $ac_link) 2>conftest.er1
11879 ac_status=$?
11880 grep -v '^ *+' conftest.er1 >conftest.err
11881 rm -f conftest.er1
11882 cat conftest.err >&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } &&
11885 { ac_try='test -z "$ac_c_werror_flag"
11886 || test ! -s conftest.err'
11887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11888 (eval $ac_try) 2>&5
11889 ac_status=$?
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); }; } &&
11892 { ac_try='test -s conftest$ac_exeext'
11893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894 (eval $ac_try) 2>&5
11895 ac_status=$?
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; }; then
11898 ac_cv_func_isinf=yes
11899 else
11900 echo "$as_me: failed program was:" >&5
11901 sed 's/^/| /' conftest.$ac_ext >&5
11902
11903 ac_cv_func_isinf=no
11904 fi
11905 rm -f conftest.err conftest.$ac_objext \
11906 conftest$ac_exeext conftest.$ac_ext
11907 fi
11908 echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
11909 echo "${ECHO_T}$ac_cv_func_isinf" >&6
11910 if test $ac_cv_func_isinf = yes; then
11911 cat >>confdefs.h <<\_ACEOF
11912 @%:@define HAVE_ISINF_IN_LIBC 1
11913 _ACEOF
11914
11915 fi
11916
11917
11918 echo "$as_me:$LINENO: checking for mkfifo" >&5
11919 echo $ECHO_N "checking for mkfifo... $ECHO_C" >&6
11920 if test "${ac_cv_func_mkfifo+set}" = set; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11922 else
11923 cat >conftest.$ac_ext <<_ACEOF
11924 /* confdefs.h. */
11925 _ACEOF
11926 cat confdefs.h >>conftest.$ac_ext
11927 cat >>conftest.$ac_ext <<_ACEOF
11928 /* end confdefs.h. */
11929 /* Define mkfifo to an innocuous variant, in case <limits.h> declares mkfifo.
11930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11931 #define mkfifo innocuous_mkfifo
11932
11933 /* System header to define __stub macros and hopefully few prototypes,
11934 which can conflict with char mkfifo (); below.
11935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11936 <limits.h> exists even on freestanding compilers. */
11937
11938 #ifdef __STDC__
11939 # include <limits.h>
11940 #else
11941 # include <assert.h>
11942 #endif
11943
11944 #undef mkfifo
11945
11946 /* Override any gcc2 internal prototype to avoid an error. */
11947 #ifdef __cplusplus
11948 extern "C"
11949 {
11950 #endif
11951 /* We use char because int might match the return type of a gcc2
11952 builtin and then its argument prototype would still apply. */
11953 char mkfifo ();
11954 /* The GNU C library defines this for functions which it implements
11955 to always fail with ENOSYS. Some functions are actually named
11956 something starting with __ and the normal name is an alias. */
11957 #if defined (__stub_mkfifo) || defined (__stub___mkfifo)
11958 choke me
11959 #else
11960 char (*f) () = mkfifo;
11961 #endif
11962 #ifdef __cplusplus
11963 }
11964 #endif
11965
11966 int
11967 main ()
11968 {
11969 return f != mkfifo;
11970 ;
11971 return 0;
11972 }
11973 _ACEOF
11974 rm -f conftest.$ac_objext conftest$ac_exeext
11975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11976 (eval $ac_link) 2>conftest.er1
11977 ac_status=$?
11978 grep -v '^ *+' conftest.er1 >conftest.err
11979 rm -f conftest.er1
11980 cat conftest.err >&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } &&
11983 { ac_try='test -z "$ac_c_werror_flag"
11984 || test ! -s conftest.err'
11985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986 (eval $ac_try) 2>&5
11987 ac_status=$?
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); }; } &&
11990 { ac_try='test -s conftest$ac_exeext'
11991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992 (eval $ac_try) 2>&5
11993 ac_status=$?
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); }; }; then
11996 ac_cv_func_mkfifo=yes
11997 else
11998 echo "$as_me: failed program was:" >&5
11999 sed 's/^/| /' conftest.$ac_ext >&5
12000
12001 ac_cv_func_mkfifo=no
12002 fi
12003 rm -f conftest.err conftest.$ac_objext \
12004 conftest$ac_exeext conftest.$ac_ext
12005 fi
12006 echo "$as_me:$LINENO: result: $ac_cv_func_mkfifo" >&5
12007 echo "${ECHO_T}$ac_cv_func_mkfifo" >&6
12008 if test $ac_cv_func_mkfifo = yes; then
12009 cat >>confdefs.h <<\_ACEOF
12010 @%:@define HAVE_MKFIFO 1
12011 _ACEOF
12012
12013 else
12014 cat >>confdefs.h <<\_ACEOF
12015 @%:@define MKFIFO_MISSING 1
12016 _ACEOF
12017
12018 fi
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042 for ac_func in dup2 fcntl getdtablesize getgroups gethostname getpagesize \
12043 getpeername getrlimit getrusage gettimeofday kill killpg \
12044 lstat readlink sbrk select setdtablesize tcgetpgrp uname \
12045 ulimit waitpid
12046 do
12047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12048 echo "$as_me:$LINENO: checking for $ac_func" >&5
12049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12050 if eval "test \"\${$as_ac_var+set}\" = set"; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
12052 else
12053 cat >conftest.$ac_ext <<_ACEOF
12054 /* confdefs.h. */
12055 _ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h. */
12059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12061 #define $ac_func innocuous_$ac_func
12062
12063 /* System header to define __stub macros and hopefully few prototypes,
12064 which can conflict with char $ac_func (); below.
12065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12066 <limits.h> exists even on freestanding compilers. */
12067
12068 #ifdef __STDC__
12069 # include <limits.h>
12070 #else
12071 # include <assert.h>
12072 #endif
12073
12074 #undef $ac_func
12075
12076 /* Override any gcc2 internal prototype to avoid an error. */
12077 #ifdef __cplusplus
12078 extern "C"
12079 {
12080 #endif
12081 /* We use char because int might match the return type of a gcc2
12082 builtin and then its argument prototype would still apply. */
12083 char $ac_func ();
12084 /* The GNU C library defines this for functions which it implements
12085 to always fail with ENOSYS. Some functions are actually named
12086 something starting with __ and the normal name is an alias. */
12087 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12088 choke me
12089 #else
12090 char (*f) () = $ac_func;
12091 #endif
12092 #ifdef __cplusplus
12093 }
12094 #endif
12095
12096 int
12097 main ()
12098 {
12099 return f != $ac_func;
12100 ;
12101 return 0;
12102 }
12103 _ACEOF
12104 rm -f conftest.$ac_objext conftest$ac_exeext
12105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12106 (eval $ac_link) 2>conftest.er1
12107 ac_status=$?
12108 grep -v '^ *+' conftest.er1 >conftest.err
12109 rm -f conftest.er1
12110 cat conftest.err >&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); } &&
12113 { ac_try='test -z "$ac_c_werror_flag"
12114 || test ! -s conftest.err'
12115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12116 (eval $ac_try) 2>&5
12117 ac_status=$?
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); }; } &&
12120 { ac_try='test -s conftest$ac_exeext'
12121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122 (eval $ac_try) 2>&5
12123 ac_status=$?
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; }; then
12126 eval "$as_ac_var=yes"
12127 else
12128 echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12130
12131 eval "$as_ac_var=no"
12132 fi
12133 rm -f conftest.err conftest.$ac_objext \
12134 conftest$ac_exeext conftest.$ac_ext
12135 fi
12136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12137 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12138 if test `eval echo '${'$as_ac_var'}'` = yes; then
12139 cat >>confdefs.h <<_ACEOF
12140 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12141 _ACEOF
12142
12143 fi
12144 done
12145
12146
12147 for ac_func in rename
12148 do
12149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12150 echo "$as_me:$LINENO: checking for $ac_func" >&5
12151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12152 if eval "test \"\${$as_ac_var+set}\" = set"; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155 cat >conftest.$ac_ext <<_ACEOF
12156 /* confdefs.h. */
12157 _ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12163 #define $ac_func innocuous_$ac_func
12164
12165 /* System header to define __stub macros and hopefully few prototypes,
12166 which can conflict with char $ac_func (); below.
12167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12168 <limits.h> exists even on freestanding compilers. */
12169
12170 #ifdef __STDC__
12171 # include <limits.h>
12172 #else
12173 # include <assert.h>
12174 #endif
12175
12176 #undef $ac_func
12177
12178 /* Override any gcc2 internal prototype to avoid an error. */
12179 #ifdef __cplusplus
12180 extern "C"
12181 {
12182 #endif
12183 /* We use char because int might match the return type of a gcc2
12184 builtin and then its argument prototype would still apply. */
12185 char $ac_func ();
12186 /* The GNU C library defines this for functions which it implements
12187 to always fail with ENOSYS. Some functions are actually named
12188 something starting with __ and the normal name is an alias. */
12189 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12190 choke me
12191 #else
12192 char (*f) () = $ac_func;
12193 #endif
12194 #ifdef __cplusplus
12195 }
12196 #endif
12197
12198 int
12199 main ()
12200 {
12201 return f != $ac_func;
12202 ;
12203 return 0;
12204 }
12205 _ACEOF
12206 rm -f conftest.$ac_objext conftest$ac_exeext
12207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12208 (eval $ac_link) 2>conftest.er1
12209 ac_status=$?
12210 grep -v '^ *+' conftest.er1 >conftest.err
12211 rm -f conftest.er1
12212 cat conftest.err >&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } &&
12215 { ac_try='test -z "$ac_c_werror_flag"
12216 || test ! -s conftest.err'
12217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12218 (eval $ac_try) 2>&5
12219 ac_status=$?
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); }; } &&
12222 { ac_try='test -s conftest$ac_exeext'
12223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224 (eval $ac_try) 2>&5
12225 ac_status=$?
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; }; then
12228 eval "$as_ac_var=yes"
12229 else
12230 echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12232
12233 eval "$as_ac_var=no"
12234 fi
12235 rm -f conftest.err conftest.$ac_objext \
12236 conftest$ac_exeext conftest.$ac_ext
12237 fi
12238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12240 if test `eval echo '${'$as_ac_var'}'` = yes; then
12241 cat >>confdefs.h <<_ACEOF
12242 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12243 _ACEOF
12244
12245 else
12246 case $LIB@&t@OBJS in
12247 "$ac_func.$ac_objext" | \
12248 *" $ac_func.$ac_objext" | \
12249 "$ac_func.$ac_objext "* | \
12250 *" $ac_func.$ac_objext "* ) ;;
12251 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext" ;;
12252 esac
12253
12254 fi
12255 done
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286 for ac_func in bcopy bzero confstr fnmatch \
12287 getaddrinfo gethostbyname getservbyname getservent inet_aton \
12288 memmove pathconf putenv raise regcomp regexec \
12289 setenv setlinebuf setlocale setvbuf siginterrupt strchr \
12290 sysconf tcgetattr times ttyname tzset unsetenv
12291 do
12292 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12293 echo "$as_me:$LINENO: checking for $ac_func" >&5
12294 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12295 if eval "test \"\${$as_ac_var+set}\" = set"; then
12296 echo $ECHO_N "(cached) $ECHO_C" >&6
12297 else
12298 cat >conftest.$ac_ext <<_ACEOF
12299 /* confdefs.h. */
12300 _ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h. */
12304 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12306 #define $ac_func innocuous_$ac_func
12307
12308 /* System header to define __stub macros and hopefully few prototypes,
12309 which can conflict with char $ac_func (); below.
12310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12311 <limits.h> exists even on freestanding compilers. */
12312
12313 #ifdef __STDC__
12314 # include <limits.h>
12315 #else
12316 # include <assert.h>
12317 #endif
12318
12319 #undef $ac_func
12320
12321 /* Override any gcc2 internal prototype to avoid an error. */
12322 #ifdef __cplusplus
12323 extern "C"
12324 {
12325 #endif
12326 /* We use char because int might match the return type of a gcc2
12327 builtin and then its argument prototype would still apply. */
12328 char $ac_func ();
12329 /* The GNU C library defines this for functions which it implements
12330 to always fail with ENOSYS. Some functions are actually named
12331 something starting with __ and the normal name is an alias. */
12332 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12333 choke me
12334 #else
12335 char (*f) () = $ac_func;
12336 #endif
12337 #ifdef __cplusplus
12338 }
12339 #endif
12340
12341 int
12342 main ()
12343 {
12344 return f != $ac_func;
12345 ;
12346 return 0;
12347 }
12348 _ACEOF
12349 rm -f conftest.$ac_objext conftest$ac_exeext
12350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12351 (eval $ac_link) 2>conftest.er1
12352 ac_status=$?
12353 grep -v '^ *+' conftest.er1 >conftest.err
12354 rm -f conftest.er1
12355 cat conftest.err >&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
12358 { ac_try='test -z "$ac_c_werror_flag"
12359 || test ! -s conftest.err'
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12362 ac_status=$?
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; } &&
12365 { ac_try='test -s conftest$ac_exeext'
12366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12368 ac_status=$?
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; }; then
12371 eval "$as_ac_var=yes"
12372 else
12373 echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12375
12376 eval "$as_ac_var=no"
12377 fi
12378 rm -f conftest.err conftest.$ac_objext \
12379 conftest$ac_exeext conftest.$ac_ext
12380 fi
12381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12383 if test `eval echo '${'$as_ac_var'}'` = yes; then
12384 cat >>confdefs.h <<_ACEOF
12385 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12386 _ACEOF
12387
12388 fi
12389 done
12390
12391
12392
12393
12394
12395
12396 for ac_func in vsnprintf snprintf vasprintf asprintf
12397 do
12398 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12399 echo "$as_me:$LINENO: checking for $ac_func" >&5
12400 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12401 if eval "test \"\${$as_ac_var+set}\" = set"; then
12402 echo $ECHO_N "(cached) $ECHO_C" >&6
12403 else
12404 cat >conftest.$ac_ext <<_ACEOF
12405 /* confdefs.h. */
12406 _ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h. */
12410 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12412 #define $ac_func innocuous_$ac_func
12413
12414 /* System header to define __stub macros and hopefully few prototypes,
12415 which can conflict with char $ac_func (); below.
12416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12417 <limits.h> exists even on freestanding compilers. */
12418
12419 #ifdef __STDC__
12420 # include <limits.h>
12421 #else
12422 # include <assert.h>
12423 #endif
12424
12425 #undef $ac_func
12426
12427 /* Override any gcc2 internal prototype to avoid an error. */
12428 #ifdef __cplusplus
12429 extern "C"
12430 {
12431 #endif
12432 /* We use char because int might match the return type of a gcc2
12433 builtin and then its argument prototype would still apply. */
12434 char $ac_func ();
12435 /* The GNU C library defines this for functions which it implements
12436 to always fail with ENOSYS. Some functions are actually named
12437 something starting with __ and the normal name is an alias. */
12438 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12439 choke me
12440 #else
12441 char (*f) () = $ac_func;
12442 #endif
12443 #ifdef __cplusplus
12444 }
12445 #endif
12446
12447 int
12448 main ()
12449 {
12450 return f != $ac_func;
12451 ;
12452 return 0;
12453 }
12454 _ACEOF
12455 rm -f conftest.$ac_objext conftest$ac_exeext
12456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12457 (eval $ac_link) 2>conftest.er1
12458 ac_status=$?
12459 grep -v '^ *+' conftest.er1 >conftest.err
12460 rm -f conftest.er1
12461 cat conftest.err >&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); } &&
12464 { ac_try='test -z "$ac_c_werror_flag"
12465 || test ! -s conftest.err'
12466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12467 (eval $ac_try) 2>&5
12468 ac_status=$?
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; } &&
12471 { ac_try='test -s conftest$ac_exeext'
12472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473 (eval $ac_try) 2>&5
12474 ac_status=$?
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); }; }; then
12477 eval "$as_ac_var=yes"
12478 else
12479 echo "$as_me: failed program was:" >&5
12480 sed 's/^/| /' conftest.$ac_ext >&5
12481
12482 eval "$as_ac_var=no"
12483 fi
12484 rm -f conftest.err conftest.$ac_objext \
12485 conftest$ac_exeext conftest.$ac_ext
12486 fi
12487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12488 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12489 if test `eval echo '${'$as_ac_var'}'` = yes; then
12490 cat >>confdefs.h <<_ACEOF
12491 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12492 _ACEOF
12493
12494 fi
12495 done
12496
12497
12498
12499
12500
12501
12502
12503 for ac_func in isascii isblank isgraph isprint isspace isxdigit
12504 do
12505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12506 echo "$as_me:$LINENO: checking for $ac_func" >&5
12507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12508 if eval "test \"\${$as_ac_var+set}\" = set"; then
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12510 else
12511 cat >conftest.$ac_ext <<_ACEOF
12512 /* confdefs.h. */
12513 _ACEOF
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h. */
12517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12519 #define $ac_func innocuous_$ac_func
12520
12521 /* System header to define __stub macros and hopefully few prototypes,
12522 which can conflict with char $ac_func (); below.
12523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12524 <limits.h> exists even on freestanding compilers. */
12525
12526 #ifdef __STDC__
12527 # include <limits.h>
12528 #else
12529 # include <assert.h>
12530 #endif
12531
12532 #undef $ac_func
12533
12534 /* Override any gcc2 internal prototype to avoid an error. */
12535 #ifdef __cplusplus
12536 extern "C"
12537 {
12538 #endif
12539 /* We use char because int might match the return type of a gcc2
12540 builtin and then its argument prototype would still apply. */
12541 char $ac_func ();
12542 /* The GNU C library defines this for functions which it implements
12543 to always fail with ENOSYS. Some functions are actually named
12544 something starting with __ and the normal name is an alias. */
12545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12546 choke me
12547 #else
12548 char (*f) () = $ac_func;
12549 #endif
12550 #ifdef __cplusplus
12551 }
12552 #endif
12553
12554 int
12555 main ()
12556 {
12557 return f != $ac_func;
12558 ;
12559 return 0;
12560 }
12561 _ACEOF
12562 rm -f conftest.$ac_objext conftest$ac_exeext
12563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12564 (eval $ac_link) 2>conftest.er1
12565 ac_status=$?
12566 grep -v '^ *+' conftest.er1 >conftest.err
12567 rm -f conftest.er1
12568 cat conftest.err >&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } &&
12571 { ac_try='test -z "$ac_c_werror_flag"
12572 || test ! -s conftest.err'
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12575 ac_status=$?
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; } &&
12578 { ac_try='test -s conftest$ac_exeext'
12579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580 (eval $ac_try) 2>&5
12581 ac_status=$?
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; }; then
12584 eval "$as_ac_var=yes"
12585 else
12586 echo "$as_me: failed program was:" >&5
12587 sed 's/^/| /' conftest.$ac_ext >&5
12588
12589 eval "$as_ac_var=no"
12590 fi
12591 rm -f conftest.err conftest.$ac_objext \
12592 conftest$ac_exeext conftest.$ac_ext
12593 fi
12594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12595 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12596 if test `eval echo '${'$as_ac_var'}'` = yes; then
12597 cat >>confdefs.h <<_ACEOF
12598 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12599 _ACEOF
12600
12601 fi
12602 done
12603
12604
12605
12606
12607 for ac_func in getpwent getpwnam getpwuid
12608 do
12609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12610 echo "$as_me:$LINENO: checking for $ac_func" >&5
12611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12612 if eval "test \"\${$as_ac_var+set}\" = set"; then
12613 echo $ECHO_N "(cached) $ECHO_C" >&6
12614 else
12615 cat >conftest.$ac_ext <<_ACEOF
12616 /* confdefs.h. */
12617 _ACEOF
12618 cat confdefs.h >>conftest.$ac_ext
12619 cat >>conftest.$ac_ext <<_ACEOF
12620 /* end confdefs.h. */
12621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12623 #define $ac_func innocuous_$ac_func
12624
12625 /* System header to define __stub macros and hopefully few prototypes,
12626 which can conflict with char $ac_func (); below.
12627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12628 <limits.h> exists even on freestanding compilers. */
12629
12630 #ifdef __STDC__
12631 # include <limits.h>
12632 #else
12633 # include <assert.h>
12634 #endif
12635
12636 #undef $ac_func
12637
12638 /* Override any gcc2 internal prototype to avoid an error. */
12639 #ifdef __cplusplus
12640 extern "C"
12641 {
12642 #endif
12643 /* We use char because int might match the return type of a gcc2
12644 builtin and then its argument prototype would still apply. */
12645 char $ac_func ();
12646 /* The GNU C library defines this for functions which it implements
12647 to always fail with ENOSYS. Some functions are actually named
12648 something starting with __ and the normal name is an alias. */
12649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12650 choke me
12651 #else
12652 char (*f) () = $ac_func;
12653 #endif
12654 #ifdef __cplusplus
12655 }
12656 #endif
12657
12658 int
12659 main ()
12660 {
12661 return f != $ac_func;
12662 ;
12663 return 0;
12664 }
12665 _ACEOF
12666 rm -f conftest.$ac_objext conftest$ac_exeext
12667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12668 (eval $ac_link) 2>conftest.er1
12669 ac_status=$?
12670 grep -v '^ *+' conftest.er1 >conftest.err
12671 rm -f conftest.er1
12672 cat conftest.err >&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } &&
12675 { ac_try='test -z "$ac_c_werror_flag"
12676 || test ! -s conftest.err'
12677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678 (eval $ac_try) 2>&5
12679 ac_status=$?
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; } &&
12682 { ac_try='test -s conftest$ac_exeext'
12683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12684 (eval $ac_try) 2>&5
12685 ac_status=$?
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; }; then
12688 eval "$as_ac_var=yes"
12689 else
12690 echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12692
12693 eval "$as_ac_var=no"
12694 fi
12695 rm -f conftest.err conftest.$ac_objext \
12696 conftest$ac_exeext conftest.$ac_ext
12697 fi
12698 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12699 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12700 if test `eval echo '${'$as_ac_var'}'` = yes; then
12701 cat >>confdefs.h <<_ACEOF
12702 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12703 _ACEOF
12704
12705 fi
12706 done
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716 for ac_func in getcwd memset strcasecmp strerror strftime strnlen strpbrk strstr
12717 do
12718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12719 echo "$as_me:$LINENO: checking for $ac_func" >&5
12720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12721 if eval "test \"\${$as_ac_var+set}\" = set"; then
12722 echo $ECHO_N "(cached) $ECHO_C" >&6
12723 else
12724 cat >conftest.$ac_ext <<_ACEOF
12725 /* confdefs.h. */
12726 _ACEOF
12727 cat confdefs.h >>conftest.$ac_ext
12728 cat >>conftest.$ac_ext <<_ACEOF
12729 /* end confdefs.h. */
12730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12732 #define $ac_func innocuous_$ac_func
12733
12734 /* System header to define __stub macros and hopefully few prototypes,
12735 which can conflict with char $ac_func (); below.
12736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12737 <limits.h> exists even on freestanding compilers. */
12738
12739 #ifdef __STDC__
12740 # include <limits.h>
12741 #else
12742 # include <assert.h>
12743 #endif
12744
12745 #undef $ac_func
12746
12747 /* Override any gcc2 internal prototype to avoid an error. */
12748 #ifdef __cplusplus
12749 extern "C"
12750 {
12751 #endif
12752 /* We use char because int might match the return type of a gcc2
12753 builtin and then its argument prototype would still apply. */
12754 char $ac_func ();
12755 /* The GNU C library defines this for functions which it implements
12756 to always fail with ENOSYS. Some functions are actually named
12757 something starting with __ and the normal name is an alias. */
12758 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12759 choke me
12760 #else
12761 char (*f) () = $ac_func;
12762 #endif
12763 #ifdef __cplusplus
12764 }
12765 #endif
12766
12767 int
12768 main ()
12769 {
12770 return f != $ac_func;
12771 ;
12772 return 0;
12773 }
12774 _ACEOF
12775 rm -f conftest.$ac_objext conftest$ac_exeext
12776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12777 (eval $ac_link) 2>conftest.er1
12778 ac_status=$?
12779 grep -v '^ *+' conftest.er1 >conftest.err
12780 rm -f conftest.er1
12781 cat conftest.err >&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } &&
12784 { ac_try='test -z "$ac_c_werror_flag"
12785 || test ! -s conftest.err'
12786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787 (eval $ac_try) 2>&5
12788 ac_status=$?
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; } &&
12791 { ac_try='test -s conftest$ac_exeext'
12792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793 (eval $ac_try) 2>&5
12794 ac_status=$?
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); }; }; then
12797 eval "$as_ac_var=yes"
12798 else
12799 echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12801
12802 eval "$as_ac_var=no"
12803 fi
12804 rm -f conftest.err conftest.$ac_objext \
12805 conftest$ac_exeext conftest.$ac_ext
12806 fi
12807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12808 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12809 if test `eval echo '${'$as_ac_var'}'` = yes; then
12810 cat >>confdefs.h <<_ACEOF
12811 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12812 _ACEOF
12813
12814 else
12815 case $LIB@&t@OBJS in
12816 "$ac_func.$ac_objext" | \
12817 *" $ac_func.$ac_objext" | \
12818 "$ac_func.$ac_objext "* | \
12819 *" $ac_func.$ac_objext "* ) ;;
12820 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext" ;;
12821 esac
12822
12823 fi
12824 done
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834 for ac_func in strtod strtol strtoul strtoll strtoull strtoimax strtoumax
12835 do
12836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12837 echo "$as_me:$LINENO: checking for $ac_func" >&5
12838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12839 if eval "test \"\${$as_ac_var+set}\" = set"; then
12840 echo $ECHO_N "(cached) $ECHO_C" >&6
12841 else
12842 cat >conftest.$ac_ext <<_ACEOF
12843 /* confdefs.h. */
12844 _ACEOF
12845 cat confdefs.h >>conftest.$ac_ext
12846 cat >>conftest.$ac_ext <<_ACEOF
12847 /* end confdefs.h. */
12848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12850 #define $ac_func innocuous_$ac_func
12851
12852 /* System header to define __stub macros and hopefully few prototypes,
12853 which can conflict with char $ac_func (); below.
12854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12855 <limits.h> exists even on freestanding compilers. */
12856
12857 #ifdef __STDC__
12858 # include <limits.h>
12859 #else
12860 # include <assert.h>
12861 #endif
12862
12863 #undef $ac_func
12864
12865 /* Override any gcc2 internal prototype to avoid an error. */
12866 #ifdef __cplusplus
12867 extern "C"
12868 {
12869 #endif
12870 /* We use char because int might match the return type of a gcc2
12871 builtin and then its argument prototype would still apply. */
12872 char $ac_func ();
12873 /* The GNU C library defines this for functions which it implements
12874 to always fail with ENOSYS. Some functions are actually named
12875 something starting with __ and the normal name is an alias. */
12876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12877 choke me
12878 #else
12879 char (*f) () = $ac_func;
12880 #endif
12881 #ifdef __cplusplus
12882 }
12883 #endif
12884
12885 int
12886 main ()
12887 {
12888 return f != $ac_func;
12889 ;
12890 return 0;
12891 }
12892 _ACEOF
12893 rm -f conftest.$ac_objext conftest$ac_exeext
12894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12895 (eval $ac_link) 2>conftest.er1
12896 ac_status=$?
12897 grep -v '^ *+' conftest.er1 >conftest.err
12898 rm -f conftest.er1
12899 cat conftest.err >&5
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } &&
12902 { ac_try='test -z "$ac_c_werror_flag"
12903 || test ! -s conftest.err'
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); }; } &&
12909 { ac_try='test -s conftest$ac_exeext'
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; }; then
12915 eval "$as_ac_var=yes"
12916 else
12917 echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12919
12920 eval "$as_ac_var=no"
12921 fi
12922 rm -f conftest.err conftest.$ac_objext \
12923 conftest$ac_exeext conftest.$ac_ext
12924 fi
12925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12926 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12927 if test `eval echo '${'$as_ac_var'}'` = yes; then
12928 cat >>confdefs.h <<_ACEOF
12929 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12930 _ACEOF
12931
12932 else
12933 case $LIB@&t@OBJS in
12934 "$ac_func.$ac_objext" | \
12935 *" $ac_func.$ac_objext" | \
12936 "$ac_func.$ac_objext "* | \
12937 *" $ac_func.$ac_objext "* ) ;;
12938 *) LIB@&t@OBJS="$LIB@&t@OBJS $ac_func.$ac_objext" ;;
12939 esac
12940
12941 fi
12942 done
12943
12944
12945
12946 echo "$as_me:$LINENO: checking whether confstr is declared" >&5
12947 echo $ECHO_N "checking whether confstr is declared... $ECHO_C" >&6
12948 if test "${ac_cv_have_decl_confstr+set}" = set; then
12949 echo $ECHO_N "(cached) $ECHO_C" >&6
12950 else
12951 cat >conftest.$ac_ext <<_ACEOF
12952 /* confdefs.h. */
12953 _ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h. */
12957 $ac_includes_default
12958 int
12959 main ()
12960 {
12961 #ifndef confstr
12962 char *p = (char *) confstr;
12963 #endif
12964
12965 ;
12966 return 0;
12967 }
12968 _ACEOF
12969 rm -f conftest.$ac_objext
12970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12971 (eval $ac_compile) 2>conftest.er1
12972 ac_status=$?
12973 grep -v '^ *+' conftest.er1 >conftest.err
12974 rm -f conftest.er1
12975 cat conftest.err >&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } &&
12978 { ac_try='test -z "$ac_c_werror_flag"
12979 || test ! -s conftest.err'
12980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12981 (eval $ac_try) 2>&5
12982 ac_status=$?
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); }; } &&
12985 { ac_try='test -s conftest.$ac_objext'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12988 ac_status=$?
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; }; then
12991 ac_cv_have_decl_confstr=yes
12992 else
12993 echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12995
12996 ac_cv_have_decl_confstr=no
12997 fi
12998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12999 fi
13000 echo "$as_me:$LINENO: result: $ac_cv_have_decl_confstr" >&5
13001 echo "${ECHO_T}$ac_cv_have_decl_confstr" >&6
13002 if test $ac_cv_have_decl_confstr = yes; then
13003
13004 cat >>confdefs.h <<_ACEOF
13005 @%:@define HAVE_DECL_CONFSTR 1
13006 _ACEOF
13007
13008
13009 else
13010 cat >>confdefs.h <<_ACEOF
13011 @%:@define HAVE_DECL_CONFSTR 0
13012 _ACEOF
13013
13014
13015 fi
13016
13017
13018 echo "$as_me:$LINENO: checking whether printf is declared" >&5
13019 echo $ECHO_N "checking whether printf is declared... $ECHO_C" >&6
13020 if test "${ac_cv_have_decl_printf+set}" = set; then
13021 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 else
13023 cat >conftest.$ac_ext <<_ACEOF
13024 /* confdefs.h. */
13025 _ACEOF
13026 cat confdefs.h >>conftest.$ac_ext
13027 cat >>conftest.$ac_ext <<_ACEOF
13028 /* end confdefs.h. */
13029 $ac_includes_default
13030 int
13031 main ()
13032 {
13033 #ifndef printf
13034 char *p = (char *) printf;
13035 #endif
13036
13037 ;
13038 return 0;
13039 }
13040 _ACEOF
13041 rm -f conftest.$ac_objext
13042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13043 (eval $ac_compile) 2>conftest.er1
13044 ac_status=$?
13045 grep -v '^ *+' conftest.er1 >conftest.err
13046 rm -f conftest.er1
13047 cat conftest.err >&5
13048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049 (exit $ac_status); } &&
13050 { ac_try='test -z "$ac_c_werror_flag"
13051 || test ! -s conftest.err'
13052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13053 (eval $ac_try) 2>&5
13054 ac_status=$?
13055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13056 (exit $ac_status); }; } &&
13057 { ac_try='test -s conftest.$ac_objext'
13058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13059 (eval $ac_try) 2>&5
13060 ac_status=$?
13061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062 (exit $ac_status); }; }; then
13063 ac_cv_have_decl_printf=yes
13064 else
13065 echo "$as_me: failed program was:" >&5
13066 sed 's/^/| /' conftest.$ac_ext >&5
13067
13068 ac_cv_have_decl_printf=no
13069 fi
13070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13071 fi
13072 echo "$as_me:$LINENO: result: $ac_cv_have_decl_printf" >&5
13073 echo "${ECHO_T}$ac_cv_have_decl_printf" >&6
13074 if test $ac_cv_have_decl_printf = yes; then
13075
13076 cat >>confdefs.h <<_ACEOF
13077 @%:@define HAVE_DECL_PRINTF 1
13078 _ACEOF
13079
13080
13081 else
13082 cat >>confdefs.h <<_ACEOF
13083 @%:@define HAVE_DECL_PRINTF 0
13084 _ACEOF
13085
13086
13087 fi
13088
13089
13090 echo "$as_me:$LINENO: checking whether sbrk is declared" >&5
13091 echo $ECHO_N "checking whether sbrk is declared... $ECHO_C" >&6
13092 if test "${ac_cv_have_decl_sbrk+set}" = set; then
13093 echo $ECHO_N "(cached) $ECHO_C" >&6
13094 else
13095 cat >conftest.$ac_ext <<_ACEOF
13096 /* confdefs.h. */
13097 _ACEOF
13098 cat confdefs.h >>conftest.$ac_ext
13099 cat >>conftest.$ac_ext <<_ACEOF
13100 /* end confdefs.h. */
13101 $ac_includes_default
13102 int
13103 main ()
13104 {
13105 #ifndef sbrk
13106 char *p = (char *) sbrk;
13107 #endif
13108
13109 ;
13110 return 0;
13111 }
13112 _ACEOF
13113 rm -f conftest.$ac_objext
13114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13115 (eval $ac_compile) 2>conftest.er1
13116 ac_status=$?
13117 grep -v '^ *+' conftest.er1 >conftest.err
13118 rm -f conftest.er1
13119 cat conftest.err >&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); } &&
13122 { ac_try='test -z "$ac_c_werror_flag"
13123 || test ! -s conftest.err'
13124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13125 (eval $ac_try) 2>&5
13126 ac_status=$?
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; } &&
13129 { ac_try='test -s conftest.$ac_objext'
13130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13131 (eval $ac_try) 2>&5
13132 ac_status=$?
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; }; then
13135 ac_cv_have_decl_sbrk=yes
13136 else
13137 echo "$as_me: failed program was:" >&5
13138 sed 's/^/| /' conftest.$ac_ext >&5
13139
13140 ac_cv_have_decl_sbrk=no
13141 fi
13142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13143 fi
13144 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sbrk" >&5
13145 echo "${ECHO_T}$ac_cv_have_decl_sbrk" >&6
13146 if test $ac_cv_have_decl_sbrk = yes; then
13147
13148 cat >>confdefs.h <<_ACEOF
13149 @%:@define HAVE_DECL_SBRK 1
13150 _ACEOF
13151
13152
13153 else
13154 cat >>confdefs.h <<_ACEOF
13155 @%:@define HAVE_DECL_SBRK 0
13156 _ACEOF
13157
13158
13159 fi
13160
13161
13162 echo "$as_me:$LINENO: checking whether strcpy is declared" >&5
13163 echo $ECHO_N "checking whether strcpy is declared... $ECHO_C" >&6
13164 if test "${ac_cv_have_decl_strcpy+set}" = set; then
13165 echo $ECHO_N "(cached) $ECHO_C" >&6
13166 else
13167 cat >conftest.$ac_ext <<_ACEOF
13168 /* confdefs.h. */
13169 _ACEOF
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h. */
13173 $ac_includes_default
13174 int
13175 main ()
13176 {
13177 #ifndef strcpy
13178 char *p = (char *) strcpy;
13179 #endif
13180
13181 ;
13182 return 0;
13183 }
13184 _ACEOF
13185 rm -f conftest.$ac_objext
13186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13187 (eval $ac_compile) 2>conftest.er1
13188 ac_status=$?
13189 grep -v '^ *+' conftest.er1 >conftest.err
13190 rm -f conftest.er1
13191 cat conftest.err >&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); } &&
13194 { ac_try='test -z "$ac_c_werror_flag"
13195 || test ! -s conftest.err'
13196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13197 (eval $ac_try) 2>&5
13198 ac_status=$?
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); }; } &&
13201 { ac_try='test -s conftest.$ac_objext'
13202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13203 (eval $ac_try) 2>&5
13204 ac_status=$?
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); }; }; then
13207 ac_cv_have_decl_strcpy=yes
13208 else
13209 echo "$as_me: failed program was:" >&5
13210 sed 's/^/| /' conftest.$ac_ext >&5
13211
13212 ac_cv_have_decl_strcpy=no
13213 fi
13214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13215 fi
13216 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strcpy" >&5
13217 echo "${ECHO_T}$ac_cv_have_decl_strcpy" >&6
13218 if test $ac_cv_have_decl_strcpy = yes; then
13219
13220 cat >>confdefs.h <<_ACEOF
13221 @%:@define HAVE_DECL_STRCPY 1
13222 _ACEOF
13223
13224
13225 else
13226 cat >>confdefs.h <<_ACEOF
13227 @%:@define HAVE_DECL_STRCPY 0
13228 _ACEOF
13229
13230
13231 fi
13232
13233
13234 echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
13235 echo $ECHO_N "checking whether strsignal is declared... $ECHO_C" >&6
13236 if test "${ac_cv_have_decl_strsignal+set}" = set; then
13237 echo $ECHO_N "(cached) $ECHO_C" >&6
13238 else
13239 cat >conftest.$ac_ext <<_ACEOF
13240 /* confdefs.h. */
13241 _ACEOF
13242 cat confdefs.h >>conftest.$ac_ext
13243 cat >>conftest.$ac_ext <<_ACEOF
13244 /* end confdefs.h. */
13245 $ac_includes_default
13246 int
13247 main ()
13248 {
13249 #ifndef strsignal
13250 char *p = (char *) strsignal;
13251 #endif
13252
13253 ;
13254 return 0;
13255 }
13256 _ACEOF
13257 rm -f conftest.$ac_objext
13258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13259 (eval $ac_compile) 2>conftest.er1
13260 ac_status=$?
13261 grep -v '^ *+' conftest.er1 >conftest.err
13262 rm -f conftest.er1
13263 cat conftest.err >&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); } &&
13266 { ac_try='test -z "$ac_c_werror_flag"
13267 || test ! -s conftest.err'
13268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13269 (eval $ac_try) 2>&5
13270 ac_status=$?
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; } &&
13273 { ac_try='test -s conftest.$ac_objext'
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13276 ac_status=$?
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; }; then
13279 ac_cv_have_decl_strsignal=yes
13280 else
13281 echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.$ac_ext >&5
13283
13284 ac_cv_have_decl_strsignal=no
13285 fi
13286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13287 fi
13288 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
13289 echo "${ECHO_T}$ac_cv_have_decl_strsignal" >&6
13290 if test $ac_cv_have_decl_strsignal = yes; then
13291
13292 cat >>confdefs.h <<_ACEOF
13293 @%:@define HAVE_DECL_STRSIGNAL 1
13294 _ACEOF
13295
13296
13297 else
13298 cat >>confdefs.h <<_ACEOF
13299 @%:@define HAVE_DECL_STRSIGNAL 0
13300 _ACEOF
13301
13302
13303 fi
13304
13305
13306
13307 echo "$as_me:$LINENO: checking whether strtold is declared" >&5
13308 echo $ECHO_N "checking whether strtold is declared... $ECHO_C" >&6
13309 if test "${ac_cv_have_decl_strtold+set}" = set; then
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13311 else
13312 cat >conftest.$ac_ext <<_ACEOF
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 int
13320 main ()
13321 {
13322 #ifndef strtold
13323 char *p = (char *) strtold;
13324 #endif
13325
13326 ;
13327 return 0;
13328 }
13329 _ACEOF
13330 rm -f conftest.$ac_objext
13331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13332 (eval $ac_compile) 2>conftest.er1
13333 ac_status=$?
13334 grep -v '^ *+' conftest.er1 >conftest.err
13335 rm -f conftest.er1
13336 cat conftest.err >&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); } &&
13339 { ac_try='test -z "$ac_c_werror_flag"
13340 || test ! -s conftest.err'
13341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13342 (eval $ac_try) 2>&5
13343 ac_status=$?
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); }; } &&
13346 { ac_try='test -s conftest.$ac_objext'
13347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13348 (eval $ac_try) 2>&5
13349 ac_status=$?
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; }; then
13352 ac_cv_have_decl_strtold=yes
13353 else
13354 echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13356
13357 ac_cv_have_decl_strtold=no
13358 fi
13359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13360 fi
13361 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtold" >&5
13362 echo "${ECHO_T}$ac_cv_have_decl_strtold" >&6
13363 if test $ac_cv_have_decl_strtold = yes; then
13364
13365 cat >>confdefs.h <<_ACEOF
13366 @%:@define HAVE_DECL_STRTOLD 1
13367 _ACEOF
13368
13369
13370 echo "$as_me:$LINENO: checking for broken strtold" >&5
13371 echo $ECHO_N "checking for broken strtold... $ECHO_C" >&6
13372 if test "${bash_cv_strtold_broken+set}" = set; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13374 else
13375 cat >conftest.$ac_ext <<_ACEOF
13376 /* confdefs.h. */
13377 _ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h. */
13381 #include <stdlib.h>
13382 int
13383 main ()
13384 {
13385 int main() { long double r; char *foo, bar; r = strtold(foo, &bar);}
13386 ;
13387 return 0;
13388 }
13389 _ACEOF
13390 rm -f conftest.$ac_objext
13391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13392 (eval $ac_compile) 2>conftest.er1
13393 ac_status=$?
13394 grep -v '^ *+' conftest.er1 >conftest.err
13395 rm -f conftest.er1
13396 cat conftest.err >&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); } &&
13399 { ac_try='test -z "$ac_c_werror_flag"
13400 || test ! -s conftest.err'
13401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402 (eval $ac_try) 2>&5
13403 ac_status=$?
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; } &&
13406 { ac_try='test -s conftest.$ac_objext'
13407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408 (eval $ac_try) 2>&5
13409 ac_status=$?
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; }; then
13412 bash_cv_strtold_broken=no
13413 else
13414 echo "$as_me: failed program was:" >&5
13415 sed 's/^/| /' conftest.$ac_ext >&5
13416
13417 bash_cv_strtold_broken=yes
13418 fi
13419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13420
13421
13422 fi
13423
13424 echo "$as_me:$LINENO: result: $bash_cv_strtold_broken" >&5
13425 echo "${ECHO_T}$bash_cv_strtold_broken" >&6
13426 if test "$bash_cv_strtold_broken" = "yes" ; then
13427 cat >>confdefs.h <<\_ACEOF
13428 @%:@define STRTOLD_BROKEN 1
13429 _ACEOF
13430
13431 fi
13432
13433 else
13434 cat >>confdefs.h <<_ACEOF
13435 @%:@define HAVE_DECL_STRTOLD 0
13436 _ACEOF
13437
13438
13439 fi
13440
13441
13442
13443
13444
13445
13446
13447 echo "$as_me:$LINENO: checking for declaration of strtoimax" >&5
13448 echo $ECHO_N "checking for declaration of strtoimax... $ECHO_C" >&6
13449 if test "${bash_cv_decl_strtoimax+set}" = set; then
13450 echo $ECHO_N "(cached) $ECHO_C" >&6
13451 else
13452 cat >conftest.$ac_ext <<_ACEOF
13453 /* confdefs.h. */
13454 _ACEOF
13455 cat confdefs.h >>conftest.$ac_ext
13456 cat >>conftest.$ac_ext <<_ACEOF
13457 /* end confdefs.h. */
13458
13459 #if STDC_HEADERS
13460 # include <stdlib.h>
13461 #endif
13462 #if HAVE_INTTYPES_H
13463 # include <inttypes.h>
13464 #endif
13465
13466 int
13467 main ()
13468 {
13469 return !strtoimax;
13470 ;
13471 return 0;
13472 }
13473 _ACEOF
13474 rm -f conftest.$ac_objext conftest$ac_exeext
13475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13476 (eval $ac_link) 2>conftest.er1
13477 ac_status=$?
13478 grep -v '^ *+' conftest.er1 >conftest.err
13479 rm -f conftest.er1
13480 cat conftest.err >&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } &&
13483 { ac_try='test -z "$ac_c_werror_flag"
13484 || test ! -s conftest.err'
13485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486 (eval $ac_try) 2>&5
13487 ac_status=$?
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; } &&
13490 { ac_try='test -s conftest$ac_exeext'
13491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13492 (eval $ac_try) 2>&5
13493 ac_status=$?
13494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13495 (exit $ac_status); }; }; then
13496 bash_cv_decl_strtoimax=yes
13497 else
13498 echo "$as_me: failed program was:" >&5
13499 sed 's/^/| /' conftest.$ac_ext >&5
13500
13501 bash_cv_decl_strtoimax=no
13502 fi
13503 rm -f conftest.err conftest.$ac_objext \
13504 conftest$ac_exeext conftest.$ac_ext
13505 fi
13506 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoimax" >&5
13507 echo "${ECHO_T}$bash_cv_decl_strtoimax" >&6
13508 bash_tr_func=HAVE_DECL_`echo strtoimax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13509 if test $bash_cv_decl_strtoimax = yes; then
13510 cat >>confdefs.h <<_ACEOF
13511 @%:@define $bash_tr_func 1
13512 _ACEOF
13513
13514 else
13515 cat >>confdefs.h <<_ACEOF
13516 @%:@define $bash_tr_func 0
13517 _ACEOF
13518
13519 fi
13520
13521
13522
13523
13524 echo "$as_me:$LINENO: checking for declaration of strtol" >&5
13525 echo $ECHO_N "checking for declaration of strtol... $ECHO_C" >&6
13526 if test "${bash_cv_decl_strtol+set}" = set; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
13528 else
13529 cat >conftest.$ac_ext <<_ACEOF
13530 /* confdefs.h. */
13531 _ACEOF
13532 cat confdefs.h >>conftest.$ac_ext
13533 cat >>conftest.$ac_ext <<_ACEOF
13534 /* end confdefs.h. */
13535
13536 #if STDC_HEADERS
13537 # include <stdlib.h>
13538 #endif
13539 #if HAVE_INTTYPES_H
13540 # include <inttypes.h>
13541 #endif
13542
13543 int
13544 main ()
13545 {
13546 return !strtol;
13547 ;
13548 return 0;
13549 }
13550 _ACEOF
13551 rm -f conftest.$ac_objext conftest$ac_exeext
13552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13553 (eval $ac_link) 2>conftest.er1
13554 ac_status=$?
13555 grep -v '^ *+' conftest.er1 >conftest.err
13556 rm -f conftest.er1
13557 cat conftest.err >&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } &&
13560 { ac_try='test -z "$ac_c_werror_flag"
13561 || test ! -s conftest.err'
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13564 ac_status=$?
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; } &&
13567 { ac_try='test -s conftest$ac_exeext'
13568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13569 (eval $ac_try) 2>&5
13570 ac_status=$?
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); }; }; then
13573 bash_cv_decl_strtol=yes
13574 else
13575 echo "$as_me: failed program was:" >&5
13576 sed 's/^/| /' conftest.$ac_ext >&5
13577
13578 bash_cv_decl_strtol=no
13579 fi
13580 rm -f conftest.err conftest.$ac_objext \
13581 conftest$ac_exeext conftest.$ac_ext
13582 fi
13583 echo "$as_me:$LINENO: result: $bash_cv_decl_strtol" >&5
13584 echo "${ECHO_T}$bash_cv_decl_strtol" >&6
13585 bash_tr_func=HAVE_DECL_`echo strtol | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13586 if test $bash_cv_decl_strtol = yes; then
13587 cat >>confdefs.h <<_ACEOF
13588 @%:@define $bash_tr_func 1
13589 _ACEOF
13590
13591 else
13592 cat >>confdefs.h <<_ACEOF
13593 @%:@define $bash_tr_func 0
13594 _ACEOF
13595
13596 fi
13597
13598
13599
13600
13601 echo "$as_me:$LINENO: checking for declaration of strtoll" >&5
13602 echo $ECHO_N "checking for declaration of strtoll... $ECHO_C" >&6
13603 if test "${bash_cv_decl_strtoll+set}" = set; then
13604 echo $ECHO_N "(cached) $ECHO_C" >&6
13605 else
13606 cat >conftest.$ac_ext <<_ACEOF
13607 /* confdefs.h. */
13608 _ACEOF
13609 cat confdefs.h >>conftest.$ac_ext
13610 cat >>conftest.$ac_ext <<_ACEOF
13611 /* end confdefs.h. */
13612
13613 #if STDC_HEADERS
13614 # include <stdlib.h>
13615 #endif
13616 #if HAVE_INTTYPES_H
13617 # include <inttypes.h>
13618 #endif
13619
13620 int
13621 main ()
13622 {
13623 return !strtoll;
13624 ;
13625 return 0;
13626 }
13627 _ACEOF
13628 rm -f conftest.$ac_objext conftest$ac_exeext
13629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13630 (eval $ac_link) 2>conftest.er1
13631 ac_status=$?
13632 grep -v '^ *+' conftest.er1 >conftest.err
13633 rm -f conftest.er1
13634 cat conftest.err >&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); } &&
13637 { ac_try='test -z "$ac_c_werror_flag"
13638 || test ! -s conftest.err'
13639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13640 (eval $ac_try) 2>&5
13641 ac_status=$?
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); }; } &&
13644 { ac_try='test -s conftest$ac_exeext'
13645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13647 ac_status=$?
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; }; then
13650 bash_cv_decl_strtoll=yes
13651 else
13652 echo "$as_me: failed program was:" >&5
13653 sed 's/^/| /' conftest.$ac_ext >&5
13654
13655 bash_cv_decl_strtoll=no
13656 fi
13657 rm -f conftest.err conftest.$ac_objext \
13658 conftest$ac_exeext conftest.$ac_ext
13659 fi
13660 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoll" >&5
13661 echo "${ECHO_T}$bash_cv_decl_strtoll" >&6
13662 bash_tr_func=HAVE_DECL_`echo strtoll | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13663 if test $bash_cv_decl_strtoll = yes; then
13664 cat >>confdefs.h <<_ACEOF
13665 @%:@define $bash_tr_func 1
13666 _ACEOF
13667
13668 else
13669 cat >>confdefs.h <<_ACEOF
13670 @%:@define $bash_tr_func 0
13671 _ACEOF
13672
13673 fi
13674
13675
13676
13677
13678 echo "$as_me:$LINENO: checking for declaration of strtoul" >&5
13679 echo $ECHO_N "checking for declaration of strtoul... $ECHO_C" >&6
13680 if test "${bash_cv_decl_strtoul+set}" = set; then
13681 echo $ECHO_N "(cached) $ECHO_C" >&6
13682 else
13683 cat >conftest.$ac_ext <<_ACEOF
13684 /* confdefs.h. */
13685 _ACEOF
13686 cat confdefs.h >>conftest.$ac_ext
13687 cat >>conftest.$ac_ext <<_ACEOF
13688 /* end confdefs.h. */
13689
13690 #if STDC_HEADERS
13691 # include <stdlib.h>
13692 #endif
13693 #if HAVE_INTTYPES_H
13694 # include <inttypes.h>
13695 #endif
13696
13697 int
13698 main ()
13699 {
13700 return !strtoul;
13701 ;
13702 return 0;
13703 }
13704 _ACEOF
13705 rm -f conftest.$ac_objext conftest$ac_exeext
13706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13707 (eval $ac_link) 2>conftest.er1
13708 ac_status=$?
13709 grep -v '^ *+' conftest.er1 >conftest.err
13710 rm -f conftest.er1
13711 cat conftest.err >&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); } &&
13714 { ac_try='test -z "$ac_c_werror_flag"
13715 || test ! -s conftest.err'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13718 ac_status=$?
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; } &&
13721 { ac_try='test -s conftest$ac_exeext'
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13724 ac_status=$?
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; }; then
13727 bash_cv_decl_strtoul=yes
13728 else
13729 echo "$as_me: failed program was:" >&5
13730 sed 's/^/| /' conftest.$ac_ext >&5
13731
13732 bash_cv_decl_strtoul=no
13733 fi
13734 rm -f conftest.err conftest.$ac_objext \
13735 conftest$ac_exeext conftest.$ac_ext
13736 fi
13737 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoul" >&5
13738 echo "${ECHO_T}$bash_cv_decl_strtoul" >&6
13739 bash_tr_func=HAVE_DECL_`echo strtoul | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13740 if test $bash_cv_decl_strtoul = yes; then
13741 cat >>confdefs.h <<_ACEOF
13742 @%:@define $bash_tr_func 1
13743 _ACEOF
13744
13745 else
13746 cat >>confdefs.h <<_ACEOF
13747 @%:@define $bash_tr_func 0
13748 _ACEOF
13749
13750 fi
13751
13752
13753
13754
13755 echo "$as_me:$LINENO: checking for declaration of strtoull" >&5
13756 echo $ECHO_N "checking for declaration of strtoull... $ECHO_C" >&6
13757 if test "${bash_cv_decl_strtoull+set}" = set; then
13758 echo $ECHO_N "(cached) $ECHO_C" >&6
13759 else
13760 cat >conftest.$ac_ext <<_ACEOF
13761 /* confdefs.h. */
13762 _ACEOF
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h. */
13766
13767 #if STDC_HEADERS
13768 # include <stdlib.h>
13769 #endif
13770 #if HAVE_INTTYPES_H
13771 # include <inttypes.h>
13772 #endif
13773
13774 int
13775 main ()
13776 {
13777 return !strtoull;
13778 ;
13779 return 0;
13780 }
13781 _ACEOF
13782 rm -f conftest.$ac_objext conftest$ac_exeext
13783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13784 (eval $ac_link) 2>conftest.er1
13785 ac_status=$?
13786 grep -v '^ *+' conftest.er1 >conftest.err
13787 rm -f conftest.er1
13788 cat conftest.err >&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); } &&
13791 { ac_try='test -z "$ac_c_werror_flag"
13792 || test ! -s conftest.err'
13793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794 (eval $ac_try) 2>&5
13795 ac_status=$?
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; } &&
13798 { ac_try='test -s conftest$ac_exeext'
13799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800 (eval $ac_try) 2>&5
13801 ac_status=$?
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; }; then
13804 bash_cv_decl_strtoull=yes
13805 else
13806 echo "$as_me: failed program was:" >&5
13807 sed 's/^/| /' conftest.$ac_ext >&5
13808
13809 bash_cv_decl_strtoull=no
13810 fi
13811 rm -f conftest.err conftest.$ac_objext \
13812 conftest$ac_exeext conftest.$ac_ext
13813 fi
13814 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoull" >&5
13815 echo "${ECHO_T}$bash_cv_decl_strtoull" >&6
13816 bash_tr_func=HAVE_DECL_`echo strtoull | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13817 if test $bash_cv_decl_strtoull = yes; then
13818 cat >>confdefs.h <<_ACEOF
13819 @%:@define $bash_tr_func 1
13820 _ACEOF
13821
13822 else
13823 cat >>confdefs.h <<_ACEOF
13824 @%:@define $bash_tr_func 0
13825 _ACEOF
13826
13827 fi
13828
13829
13830
13831
13832 echo "$as_me:$LINENO: checking for declaration of strtoumax" >&5
13833 echo $ECHO_N "checking for declaration of strtoumax... $ECHO_C" >&6
13834 if test "${bash_cv_decl_strtoumax+set}" = set; then
13835 echo $ECHO_N "(cached) $ECHO_C" >&6
13836 else
13837 cat >conftest.$ac_ext <<_ACEOF
13838 /* confdefs.h. */
13839 _ACEOF
13840 cat confdefs.h >>conftest.$ac_ext
13841 cat >>conftest.$ac_ext <<_ACEOF
13842 /* end confdefs.h. */
13843
13844 #if STDC_HEADERS
13845 # include <stdlib.h>
13846 #endif
13847 #if HAVE_INTTYPES_H
13848 # include <inttypes.h>
13849 #endif
13850
13851 int
13852 main ()
13853 {
13854 return !strtoumax;
13855 ;
13856 return 0;
13857 }
13858 _ACEOF
13859 rm -f conftest.$ac_objext conftest$ac_exeext
13860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13861 (eval $ac_link) 2>conftest.er1
13862 ac_status=$?
13863 grep -v '^ *+' conftest.er1 >conftest.err
13864 rm -f conftest.er1
13865 cat conftest.err >&5
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); } &&
13868 { ac_try='test -z "$ac_c_werror_flag"
13869 || test ! -s conftest.err'
13870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13871 (eval $ac_try) 2>&5
13872 ac_status=$?
13873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13874 (exit $ac_status); }; } &&
13875 { ac_try='test -s conftest$ac_exeext'
13876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877 (eval $ac_try) 2>&5
13878 ac_status=$?
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); }; }; then
13881 bash_cv_decl_strtoumax=yes
13882 else
13883 echo "$as_me: failed program was:" >&5
13884 sed 's/^/| /' conftest.$ac_ext >&5
13885
13886 bash_cv_decl_strtoumax=no
13887 fi
13888 rm -f conftest.err conftest.$ac_objext \
13889 conftest$ac_exeext conftest.$ac_ext
13890 fi
13891 echo "$as_me:$LINENO: result: $bash_cv_decl_strtoumax" >&5
13892 echo "${ECHO_T}$bash_cv_decl_strtoumax" >&6
13893 bash_tr_func=HAVE_DECL_`echo strtoumax | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13894 if test $bash_cv_decl_strtoumax = yes; then
13895 cat >>confdefs.h <<_ACEOF
13896 @%:@define $bash_tr_func 1
13897 _ACEOF
13898
13899 else
13900 cat >>confdefs.h <<_ACEOF
13901 @%:@define $bash_tr_func 0
13902 _ACEOF
13903
13904 fi
13905
13906
13907
13908
13909
13910 for ac_header in stdlib.h sys/time.h unistd.h
13911 do
13912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13914 echo "$as_me:$LINENO: checking for $ac_header" >&5
13915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13918 fi
13919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13921 else
13922 # Is the header compilable?
13923 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13925 cat >conftest.$ac_ext <<_ACEOF
13926 /* confdefs.h. */
13927 _ACEOF
13928 cat confdefs.h >>conftest.$ac_ext
13929 cat >>conftest.$ac_ext <<_ACEOF
13930 /* end confdefs.h. */
13931 $ac_includes_default
13932 @%:@include <$ac_header>
13933 _ACEOF
13934 rm -f conftest.$ac_objext
13935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13936 (eval $ac_compile) 2>conftest.er1
13937 ac_status=$?
13938 grep -v '^ *+' conftest.er1 >conftest.err
13939 rm -f conftest.er1
13940 cat conftest.err >&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); } &&
13943 { ac_try='test -z "$ac_c_werror_flag"
13944 || test ! -s conftest.err'
13945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946 (eval $ac_try) 2>&5
13947 ac_status=$?
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); }; } &&
13950 { ac_try='test -s conftest.$ac_objext'
13951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13952 (eval $ac_try) 2>&5
13953 ac_status=$?
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; }; then
13956 ac_header_compiler=yes
13957 else
13958 echo "$as_me: failed program was:" >&5
13959 sed 's/^/| /' conftest.$ac_ext >&5
13960
13961 ac_header_compiler=no
13962 fi
13963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13965 echo "${ECHO_T}$ac_header_compiler" >&6
13966
13967 # Is the header present?
13968 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13970 cat >conftest.$ac_ext <<_ACEOF
13971 /* confdefs.h. */
13972 _ACEOF
13973 cat confdefs.h >>conftest.$ac_ext
13974 cat >>conftest.$ac_ext <<_ACEOF
13975 /* end confdefs.h. */
13976 @%:@include <$ac_header>
13977 _ACEOF
13978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13980 ac_status=$?
13981 grep -v '^ *+' conftest.er1 >conftest.err
13982 rm -f conftest.er1
13983 cat conftest.err >&5
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); } >/dev/null; then
13986 if test -s conftest.err; then
13987 ac_cpp_err=$ac_c_preproc_warn_flag
13988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13989 else
13990 ac_cpp_err=
13991 fi
13992 else
13993 ac_cpp_err=yes
13994 fi
13995 if test -z "$ac_cpp_err"; then
13996 ac_header_preproc=yes
13997 else
13998 echo "$as_me: failed program was:" >&5
13999 sed 's/^/| /' conftest.$ac_ext >&5
14000
14001 ac_header_preproc=no
14002 fi
14003 rm -f conftest.err conftest.$ac_ext
14004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14005 echo "${ECHO_T}$ac_header_preproc" >&6
14006
14007 # So? What about this header?
14008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14009 yes:no: )
14010 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14012 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14013 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14014 ac_header_preproc=yes
14015 ;;
14016 no:yes:* )
14017 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14018 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14019 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14020 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14021 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14022 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14023 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14024 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14027 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14028 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14029 (
14030 cat <<\_ASBOX
14031 @%:@@%:@ ------------------------------- @%:@@%:@
14032 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
14033 @%:@@%:@ ------------------------------- @%:@@%:@
14034 _ASBOX
14035 ) |
14036 sed "s/^/$as_me: WARNING: /" >&2
14037 ;;
14038 esac
14039 echo "$as_me:$LINENO: checking for $ac_header" >&5
14040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14043 else
14044 eval "$as_ac_Header=\$ac_header_preproc"
14045 fi
14046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14047 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14048
14049 fi
14050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14051 cat >>confdefs.h <<_ACEOF
14052 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14053 _ACEOF
14054
14055 fi
14056
14057 done
14058
14059
14060 for ac_func in alarm
14061 do
14062 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14063 echo "$as_me:$LINENO: checking for $ac_func" >&5
14064 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14065 if eval "test \"\${$as_ac_var+set}\" = set"; then
14066 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 else
14068 cat >conftest.$ac_ext <<_ACEOF
14069 /* confdefs.h. */
14070 _ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14076 #define $ac_func innocuous_$ac_func
14077
14078 /* System header to define __stub macros and hopefully few prototypes,
14079 which can conflict with char $ac_func (); below.
14080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14081 <limits.h> exists even on freestanding compilers. */
14082
14083 #ifdef __STDC__
14084 # include <limits.h>
14085 #else
14086 # include <assert.h>
14087 #endif
14088
14089 #undef $ac_func
14090
14091 /* Override any gcc2 internal prototype to avoid an error. */
14092 #ifdef __cplusplus
14093 extern "C"
14094 {
14095 #endif
14096 /* We use char because int might match the return type of a gcc2
14097 builtin and then its argument prototype would still apply. */
14098 char $ac_func ();
14099 /* The GNU C library defines this for functions which it implements
14100 to always fail with ENOSYS. Some functions are actually named
14101 something starting with __ and the normal name is an alias. */
14102 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14103 choke me
14104 #else
14105 char (*f) () = $ac_func;
14106 #endif
14107 #ifdef __cplusplus
14108 }
14109 #endif
14110
14111 int
14112 main ()
14113 {
14114 return f != $ac_func;
14115 ;
14116 return 0;
14117 }
14118 _ACEOF
14119 rm -f conftest.$ac_objext conftest$ac_exeext
14120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14121 (eval $ac_link) 2>conftest.er1
14122 ac_status=$?
14123 grep -v '^ *+' conftest.er1 >conftest.err
14124 rm -f conftest.er1
14125 cat conftest.err >&5
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); } &&
14128 { ac_try='test -z "$ac_c_werror_flag"
14129 || test ! -s conftest.err'
14130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131 (eval $ac_try) 2>&5
14132 ac_status=$?
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); }; } &&
14135 { ac_try='test -s conftest$ac_exeext'
14136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137 (eval $ac_try) 2>&5
14138 ac_status=$?
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; }; then
14141 eval "$as_ac_var=yes"
14142 else
14143 echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.$ac_ext >&5
14145
14146 eval "$as_ac_var=no"
14147 fi
14148 rm -f conftest.err conftest.$ac_objext \
14149 conftest$ac_exeext conftest.$ac_ext
14150 fi
14151 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14152 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14153 if test `eval echo '${'$as_ac_var'}'` = yes; then
14154 cat >>confdefs.h <<_ACEOF
14155 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14156 _ACEOF
14157
14158 fi
14159 done
14160
14161 echo "$as_me:$LINENO: checking for working mktime" >&5
14162 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
14163 if test "${ac_cv_func_working_mktime+set}" = set; then
14164 echo $ECHO_N "(cached) $ECHO_C" >&6
14165 else
14166 if test "$cross_compiling" = yes; then
14167 ac_cv_func_working_mktime=no
14168 else
14169 cat >conftest.$ac_ext <<_ACEOF
14170 /* confdefs.h. */
14171 _ACEOF
14172 cat confdefs.h >>conftest.$ac_ext
14173 cat >>conftest.$ac_ext <<_ACEOF
14174 /* end confdefs.h. */
14175 /* Test program from Paul Eggert and Tony Leneis. */
14176 #if TIME_WITH_SYS_TIME
14177 # include <sys/time.h>
14178 # include <time.h>
14179 #else
14180 # if HAVE_SYS_TIME_H
14181 # include <sys/time.h>
14182 # else
14183 # include <time.h>
14184 # endif
14185 #endif
14186
14187 #if HAVE_STDLIB_H
14188 # include <stdlib.h>
14189 #endif
14190
14191 #if HAVE_UNISTD_H
14192 # include <unistd.h>
14193 #endif
14194
14195 #if !HAVE_ALARM
14196 # define alarm(X) /* empty */
14197 #endif
14198
14199 /* Work around redefinition to rpl_putenv by other config tests. */
14200 #undef putenv
14201
14202 static time_t time_t_max;
14203 static time_t time_t_min;
14204
14205 /* Values we'll use to set the TZ environment variable. */
14206 static char *tz_strings[] = {
14207 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14208 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14209 };
14210 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14211
14212 /* Fail if mktime fails to convert a date in the spring-forward gap.
14213 Based on a problem report from Andreas Jaeger. */
14214 static void
14215 spring_forward_gap ()
14216 {
14217 /* glibc (up to about 1998-10-07) failed this test. */
14218 struct tm tm;
14219
14220 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14221 instead of "TZ=America/Vancouver" in order to detect the bug even
14222 on systems that don't support the Olson extension, or don't have the
14223 full zoneinfo tables installed. */
14224 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14225
14226 tm.tm_year = 98;
14227 tm.tm_mon = 3;
14228 tm.tm_mday = 5;
14229 tm.tm_hour = 2;
14230 tm.tm_min = 0;
14231 tm.tm_sec = 0;
14232 tm.tm_isdst = -1;
14233 if (mktime (&tm) == (time_t)-1)
14234 exit (1);
14235 }
14236
14237 static void
14238 mktime_test1 (now)
14239 time_t now;
14240 {
14241 struct tm *lt;
14242 if ((lt = localtime (&now)) && mktime (lt) != now)
14243 exit (1);
14244 }
14245
14246 static void
14247 mktime_test (now)
14248 time_t now;
14249 {
14250 mktime_test1 (now);
14251 mktime_test1 ((time_t) (time_t_max - now));
14252 mktime_test1 ((time_t) (time_t_min + now));
14253 }
14254
14255 static void
14256 irix_6_4_bug ()
14257 {
14258 /* Based on code from Ariel Faigon. */
14259 struct tm tm;
14260 tm.tm_year = 96;
14261 tm.tm_mon = 3;
14262 tm.tm_mday = 0;
14263 tm.tm_hour = 0;
14264 tm.tm_min = 0;
14265 tm.tm_sec = 0;
14266 tm.tm_isdst = -1;
14267 mktime (&tm);
14268 if (tm.tm_mon != 2 || tm.tm_mday != 31)
14269 exit (1);
14270 }
14271
14272 static void
14273 bigtime_test (j)
14274 int j;
14275 {
14276 struct tm tm;
14277 time_t now;
14278 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
14279 now = mktime (&tm);
14280 if (now != (time_t) -1)
14281 {
14282 struct tm *lt = localtime (&now);
14283 if (! (lt
14284 && lt->tm_year == tm.tm_year
14285 && lt->tm_mon == tm.tm_mon
14286 && lt->tm_mday == tm.tm_mday
14287 && lt->tm_hour == tm.tm_hour
14288 && lt->tm_min == tm.tm_min
14289 && lt->tm_sec == tm.tm_sec
14290 && lt->tm_yday == tm.tm_yday
14291 && lt->tm_wday == tm.tm_wday
14292 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
14293 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
14294 exit (1);
14295 }
14296 }
14297
14298 int
14299 main ()
14300 {
14301 time_t t, delta;
14302 int i, j;
14303
14304 /* This test makes some buggy mktime implementations loop.
14305 Give up after 60 seconds; a mktime slower than that
14306 isn't worth using anyway. */
14307 alarm (60);
14308
14309 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
14310 continue;
14311 time_t_max--;
14312 if ((time_t) -1 < 0)
14313 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
14314 continue;
14315 delta = time_t_max / 997; /* a suitable prime number */
14316 for (i = 0; i < N_STRINGS; i++)
14317 {
14318 if (tz_strings[i])
14319 putenv (tz_strings[i]);
14320
14321 for (t = 0; t <= time_t_max - delta; t += delta)
14322 mktime_test (t);
14323 mktime_test ((time_t) 1);
14324 mktime_test ((time_t) (60 * 60));
14325 mktime_test ((time_t) (60 * 60 * 24));
14326
14327 for (j = 1; 0 < j; j *= 2)
14328 bigtime_test (j);
14329 bigtime_test (j - 1);
14330 }
14331 irix_6_4_bug ();
14332 spring_forward_gap ();
14333 exit (0);
14334 }
14335 _ACEOF
14336 rm -f conftest$ac_exeext
14337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14338 (eval $ac_link) 2>&5
14339 ac_status=$?
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14343 (eval $ac_try) 2>&5
14344 ac_status=$?
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); }; }; then
14347 ac_cv_func_working_mktime=yes
14348 else
14349 echo "$as_me: program exited with status $ac_status" >&5
14350 echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.$ac_ext >&5
14352
14353 ( exit $ac_status )
14354 ac_cv_func_working_mktime=no
14355 fi
14356 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14357 fi
14358 fi
14359 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
14360 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
14361 if test $ac_cv_func_working_mktime = no; then
14362 case $LIB@&t@OBJS in
14363 "mktime.$ac_objext" | \
14364 *" mktime.$ac_objext" | \
14365 "mktime.$ac_objext "* | \
14366 *" mktime.$ac_objext "* ) ;;
14367 *) LIB@&t@OBJS="$LIB@&t@OBJS mktime.$ac_objext" ;;
14368 esac
14369
14370 fi
14371
14372
14373
14374
14375
14376
14377
14378
14379 for ac_header in argz.h errno.h fcntl.h malloc.h stdio_ext.h
14380 do
14381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14382 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14383 echo "$as_me:$LINENO: checking for $ac_header" >&5
14384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14386 echo $ECHO_N "(cached) $ECHO_C" >&6
14387 fi
14388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14389 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14390 else
14391 # Is the header compilable?
14392 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14394 cat >conftest.$ac_ext <<_ACEOF
14395 /* confdefs.h. */
14396 _ACEOF
14397 cat confdefs.h >>conftest.$ac_ext
14398 cat >>conftest.$ac_ext <<_ACEOF
14399 /* end confdefs.h. */
14400 $ac_includes_default
14401 @%:@include <$ac_header>
14402 _ACEOF
14403 rm -f conftest.$ac_objext
14404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14405 (eval $ac_compile) 2>conftest.er1
14406 ac_status=$?
14407 grep -v '^ *+' conftest.er1 >conftest.err
14408 rm -f conftest.er1
14409 cat conftest.err >&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } &&
14412 { ac_try='test -z "$ac_c_werror_flag"
14413 || test ! -s conftest.err'
14414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14415 (eval $ac_try) 2>&5
14416 ac_status=$?
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; } &&
14419 { ac_try='test -s conftest.$ac_objext'
14420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421 (eval $ac_try) 2>&5
14422 ac_status=$?
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); }; }; then
14425 ac_header_compiler=yes
14426 else
14427 echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14429
14430 ac_header_compiler=no
14431 fi
14432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14434 echo "${ECHO_T}$ac_header_compiler" >&6
14435
14436 # Is the header present?
14437 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14439 cat >conftest.$ac_ext <<_ACEOF
14440 /* confdefs.h. */
14441 _ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h. */
14445 @%:@include <$ac_header>
14446 _ACEOF
14447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14449 ac_status=$?
14450 grep -v '^ *+' conftest.er1 >conftest.err
14451 rm -f conftest.er1
14452 cat conftest.err >&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); } >/dev/null; then
14455 if test -s conftest.err; then
14456 ac_cpp_err=$ac_c_preproc_warn_flag
14457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14458 else
14459 ac_cpp_err=
14460 fi
14461 else
14462 ac_cpp_err=yes
14463 fi
14464 if test -z "$ac_cpp_err"; then
14465 ac_header_preproc=yes
14466 else
14467 echo "$as_me: failed program was:" >&5
14468 sed 's/^/| /' conftest.$ac_ext >&5
14469
14470 ac_header_preproc=no
14471 fi
14472 rm -f conftest.err conftest.$ac_ext
14473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14474 echo "${ECHO_T}$ac_header_preproc" >&6
14475
14476 # So? What about this header?
14477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14478 yes:no: )
14479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14483 ac_header_preproc=yes
14484 ;;
14485 no:yes:* )
14486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14490 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14492 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14493 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14496 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14498 (
14499 cat <<\_ASBOX
14500 @%:@@%:@ ------------------------------- @%:@@%:@
14501 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
14502 @%:@@%:@ ------------------------------- @%:@@%:@
14503 _ASBOX
14504 ) |
14505 sed "s/^/$as_me: WARNING: /" >&2
14506 ;;
14507 esac
14508 echo "$as_me:$LINENO: checking for $ac_header" >&5
14509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14511 echo $ECHO_N "(cached) $ECHO_C" >&6
14512 else
14513 eval "$as_ac_Header=\$ac_header_preproc"
14514 fi
14515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14517
14518 fi
14519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14520 cat >>confdefs.h <<_ACEOF
14521 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14522 _ACEOF
14523
14524 fi
14525
14526 done
14527
14528
14529
14530
14531 for ac_header in stdlib.h unistd.h
14532 do
14533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14535 echo "$as_me:$LINENO: checking for $ac_header" >&5
14536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14539 fi
14540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14542 else
14543 # Is the header compilable?
14544 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14546 cat >conftest.$ac_ext <<_ACEOF
14547 /* confdefs.h. */
14548 _ACEOF
14549 cat confdefs.h >>conftest.$ac_ext
14550 cat >>conftest.$ac_ext <<_ACEOF
14551 /* end confdefs.h. */
14552 $ac_includes_default
14553 @%:@include <$ac_header>
14554 _ACEOF
14555 rm -f conftest.$ac_objext
14556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14557 (eval $ac_compile) 2>conftest.er1
14558 ac_status=$?
14559 grep -v '^ *+' conftest.er1 >conftest.err
14560 rm -f conftest.er1
14561 cat conftest.err >&5
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); } &&
14564 { ac_try='test -z "$ac_c_werror_flag"
14565 || test ! -s conftest.err'
14566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14567 (eval $ac_try) 2>&5
14568 ac_status=$?
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); }; } &&
14571 { ac_try='test -s conftest.$ac_objext'
14572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14573 (eval $ac_try) 2>&5
14574 ac_status=$?
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); }; }; then
14577 ac_header_compiler=yes
14578 else
14579 echo "$as_me: failed program was:" >&5
14580 sed 's/^/| /' conftest.$ac_ext >&5
14581
14582 ac_header_compiler=no
14583 fi
14584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14586 echo "${ECHO_T}$ac_header_compiler" >&6
14587
14588 # Is the header present?
14589 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14591 cat >conftest.$ac_ext <<_ACEOF
14592 /* confdefs.h. */
14593 _ACEOF
14594 cat confdefs.h >>conftest.$ac_ext
14595 cat >>conftest.$ac_ext <<_ACEOF
14596 /* end confdefs.h. */
14597 @%:@include <$ac_header>
14598 _ACEOF
14599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14601 ac_status=$?
14602 grep -v '^ *+' conftest.er1 >conftest.err
14603 rm -f conftest.er1
14604 cat conftest.err >&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } >/dev/null; then
14607 if test -s conftest.err; then
14608 ac_cpp_err=$ac_c_preproc_warn_flag
14609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14610 else
14611 ac_cpp_err=
14612 fi
14613 else
14614 ac_cpp_err=yes
14615 fi
14616 if test -z "$ac_cpp_err"; then
14617 ac_header_preproc=yes
14618 else
14619 echo "$as_me: failed program was:" >&5
14620 sed 's/^/| /' conftest.$ac_ext >&5
14621
14622 ac_header_preproc=no
14623 fi
14624 rm -f conftest.err conftest.$ac_ext
14625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14626 echo "${ECHO_T}$ac_header_preproc" >&6
14627
14628 # So? What about this header?
14629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14630 yes:no: )
14631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14635 ac_header_preproc=yes
14636 ;;
14637 no:yes:* )
14638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14650 (
14651 cat <<\_ASBOX
14652 @%:@@%:@ ------------------------------- @%:@@%:@
14653 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
14654 @%:@@%:@ ------------------------------- @%:@@%:@
14655 _ASBOX
14656 ) |
14657 sed "s/^/$as_me: WARNING: /" >&2
14658 ;;
14659 esac
14660 echo "$as_me:$LINENO: checking for $ac_header" >&5
14661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14663 echo $ECHO_N "(cached) $ECHO_C" >&6
14664 else
14665 eval "$as_ac_Header=\$ac_header_preproc"
14666 fi
14667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14669
14670 fi
14671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14672 cat >>confdefs.h <<_ACEOF
14673 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14674 _ACEOF
14675
14676 fi
14677
14678 done
14679
14680
14681 for ac_func in getpagesize
14682 do
14683 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14684 echo "$as_me:$LINENO: checking for $ac_func" >&5
14685 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14686 if eval "test \"\${$as_ac_var+set}\" = set"; then
14687 echo $ECHO_N "(cached) $ECHO_C" >&6
14688 else
14689 cat >conftest.$ac_ext <<_ACEOF
14690 /* confdefs.h. */
14691 _ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h. */
14695 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14697 #define $ac_func innocuous_$ac_func
14698
14699 /* System header to define __stub macros and hopefully few prototypes,
14700 which can conflict with char $ac_func (); below.
14701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14702 <limits.h> exists even on freestanding compilers. */
14703
14704 #ifdef __STDC__
14705 # include <limits.h>
14706 #else
14707 # include <assert.h>
14708 #endif
14709
14710 #undef $ac_func
14711
14712 /* Override any gcc2 internal prototype to avoid an error. */
14713 #ifdef __cplusplus
14714 extern "C"
14715 {
14716 #endif
14717 /* We use char because int might match the return type of a gcc2
14718 builtin and then its argument prototype would still apply. */
14719 char $ac_func ();
14720 /* The GNU C library defines this for functions which it implements
14721 to always fail with ENOSYS. Some functions are actually named
14722 something starting with __ and the normal name is an alias. */
14723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14724 choke me
14725 #else
14726 char (*f) () = $ac_func;
14727 #endif
14728 #ifdef __cplusplus
14729 }
14730 #endif
14731
14732 int
14733 main ()
14734 {
14735 return f != $ac_func;
14736 ;
14737 return 0;
14738 }
14739 _ACEOF
14740 rm -f conftest.$ac_objext conftest$ac_exeext
14741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14742 (eval $ac_link) 2>conftest.er1
14743 ac_status=$?
14744 grep -v '^ *+' conftest.er1 >conftest.err
14745 rm -f conftest.er1
14746 cat conftest.err >&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); } &&
14749 { ac_try='test -z "$ac_c_werror_flag"
14750 || test ! -s conftest.err'
14751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14752 (eval $ac_try) 2>&5
14753 ac_status=$?
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); }; } &&
14756 { ac_try='test -s conftest$ac_exeext'
14757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758 (eval $ac_try) 2>&5
14759 ac_status=$?
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; }; then
14762 eval "$as_ac_var=yes"
14763 else
14764 echo "$as_me: failed program was:" >&5
14765 sed 's/^/| /' conftest.$ac_ext >&5
14766
14767 eval "$as_ac_var=no"
14768 fi
14769 rm -f conftest.err conftest.$ac_objext \
14770 conftest$ac_exeext conftest.$ac_ext
14771 fi
14772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14773 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14774 if test `eval echo '${'$as_ac_var'}'` = yes; then
14775 cat >>confdefs.h <<_ACEOF
14776 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14777 _ACEOF
14778
14779 fi
14780 done
14781
14782 echo "$as_me:$LINENO: checking for working mmap" >&5
14783 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14784 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14786 else
14787 if test "$cross_compiling" = yes; then
14788 ac_cv_func_mmap_fixed_mapped=no
14789 else
14790 cat >conftest.$ac_ext <<_ACEOF
14791 /* confdefs.h. */
14792 _ACEOF
14793 cat confdefs.h >>conftest.$ac_ext
14794 cat >>conftest.$ac_ext <<_ACEOF
14795 /* end confdefs.h. */
14796 $ac_includes_default
14797 /* malloc might have been renamed as rpl_malloc. */
14798 #undef malloc
14799
14800 /* Thanks to Mike Haertel and Jim Avera for this test.
14801 Here is a matrix of mmap possibilities:
14802 mmap private not fixed
14803 mmap private fixed at somewhere currently unmapped
14804 mmap private fixed at somewhere already mapped
14805 mmap shared not fixed
14806 mmap shared fixed at somewhere currently unmapped
14807 mmap shared fixed at somewhere already mapped
14808 For private mappings, we should verify that changes cannot be read()
14809 back from the file, nor mmap's back from the file at a different
14810 address. (There have been systems where private was not correctly
14811 implemented like the infamous i386 svr4.0, and systems where the
14812 VM page cache was not coherent with the file system buffer cache
14813 like early versions of FreeBSD and possibly contemporary NetBSD.)
14814 For shared mappings, we should conversely verify that changes get
14815 propagated back to all the places they're supposed to be.
14816
14817 Grep wants private fixed already mapped.
14818 The main things grep needs to know about mmap are:
14819 * does it exist and is it safe to write into the mmap'd area
14820 * how to use it (BSD variants) */
14821
14822 #include <fcntl.h>
14823 #include <sys/mman.h>
14824
14825 #if !STDC_HEADERS && !HAVE_STDLIB_H
14826 char *malloc ();
14827 #endif
14828
14829 /* This mess was copied from the GNU getpagesize.h. */
14830 #if !HAVE_GETPAGESIZE
14831 /* Assume that all systems that can run configure have sys/param.h. */
14832 # if !HAVE_SYS_PARAM_H
14833 # define HAVE_SYS_PARAM_H 1
14834 # endif
14835
14836 # ifdef _SC_PAGESIZE
14837 # define getpagesize() sysconf(_SC_PAGESIZE)
14838 # else /* no _SC_PAGESIZE */
14839 # if HAVE_SYS_PARAM_H
14840 # include <sys/param.h>
14841 # ifdef EXEC_PAGESIZE
14842 # define getpagesize() EXEC_PAGESIZE
14843 # else /* no EXEC_PAGESIZE */
14844 # ifdef NBPG
14845 # define getpagesize() NBPG * CLSIZE
14846 # ifndef CLSIZE
14847 # define CLSIZE 1
14848 # endif /* no CLSIZE */
14849 # else /* no NBPG */
14850 # ifdef NBPC
14851 # define getpagesize() NBPC
14852 # else /* no NBPC */
14853 # ifdef PAGESIZE
14854 # define getpagesize() PAGESIZE
14855 # endif /* PAGESIZE */
14856 # endif /* no NBPC */
14857 # endif /* no NBPG */
14858 # endif /* no EXEC_PAGESIZE */
14859 # else /* no HAVE_SYS_PARAM_H */
14860 # define getpagesize() 8192 /* punt totally */
14861 # endif /* no HAVE_SYS_PARAM_H */
14862 # endif /* no _SC_PAGESIZE */
14863
14864 #endif /* no HAVE_GETPAGESIZE */
14865
14866 int
14867 main ()
14868 {
14869 char *data, *data2, *data3;
14870 int i, pagesize;
14871 int fd;
14872
14873 pagesize = getpagesize ();
14874
14875 /* First, make a file with some known garbage in it. */
14876 data = (char *) malloc (pagesize);
14877 if (!data)
14878 exit (1);
14879 for (i = 0; i < pagesize; ++i)
14880 *(data + i) = rand ();
14881 umask (0);
14882 fd = creat ("conftest.mmap", 0600);
14883 if (fd < 0)
14884 exit (1);
14885 if (write (fd, data, pagesize) != pagesize)
14886 exit (1);
14887 close (fd);
14888
14889 /* Next, try to mmap the file at a fixed address which already has
14890 something else allocated at it. If we can, also make sure that
14891 we see the same garbage. */
14892 fd = open ("conftest.mmap", O_RDWR);
14893 if (fd < 0)
14894 exit (1);
14895 data2 = (char *) malloc (2 * pagesize);
14896 if (!data2)
14897 exit (1);
14898 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14899 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14900 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14901 exit (1);
14902 for (i = 0; i < pagesize; ++i)
14903 if (*(data + i) != *(data2 + i))
14904 exit (1);
14905
14906 /* Finally, make sure that changes to the mapped area do not
14907 percolate back to the file as seen by read(). (This is a bug on
14908 some variants of i386 svr4.0.) */
14909 for (i = 0; i < pagesize; ++i)
14910 *(data2 + i) = *(data2 + i) + 1;
14911 data3 = (char *) malloc (pagesize);
14912 if (!data3)
14913 exit (1);
14914 if (read (fd, data3, pagesize) != pagesize)
14915 exit (1);
14916 for (i = 0; i < pagesize; ++i)
14917 if (*(data + i) != *(data3 + i))
14918 exit (1);
14919 close (fd);
14920 exit (0);
14921 }
14922 _ACEOF
14923 rm -f conftest$ac_exeext
14924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14925 (eval $ac_link) 2>&5
14926 ac_status=$?
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930 (eval $ac_try) 2>&5
14931 ac_status=$?
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; }; then
14934 ac_cv_func_mmap_fixed_mapped=yes
14935 else
14936 echo "$as_me: program exited with status $ac_status" >&5
14937 echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14939
14940 ( exit $ac_status )
14941 ac_cv_func_mmap_fixed_mapped=no
14942 fi
14943 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14944 fi
14945 fi
14946 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14947 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14948 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14949
14950 cat >>confdefs.h <<\_ACEOF
14951 @%:@define HAVE_MMAP 1
14952 _ACEOF
14953
14954 fi
14955 rm -f conftest.mmap
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966 for ac_func in __argz_count __argz_next __argz_stringify dcgettext mempcpy \
14967 munmap stpcpy strcspn strdup
14968 do
14969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14970 echo "$as_me:$LINENO: checking for $ac_func" >&5
14971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14972 if eval "test \"\${$as_ac_var+set}\" = set"; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14974 else
14975 cat >conftest.$ac_ext <<_ACEOF
14976 /* confdefs.h. */
14977 _ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14983 #define $ac_func innocuous_$ac_func
14984
14985 /* System header to define __stub macros and hopefully few prototypes,
14986 which can conflict with char $ac_func (); below.
14987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14988 <limits.h> exists even on freestanding compilers. */
14989
14990 #ifdef __STDC__
14991 # include <limits.h>
14992 #else
14993 # include <assert.h>
14994 #endif
14995
14996 #undef $ac_func
14997
14998 /* Override any gcc2 internal prototype to avoid an error. */
14999 #ifdef __cplusplus
15000 extern "C"
15001 {
15002 #endif
15003 /* We use char because int might match the return type of a gcc2
15004 builtin and then its argument prototype would still apply. */
15005 char $ac_func ();
15006 /* The GNU C library defines this for functions which it implements
15007 to always fail with ENOSYS. Some functions are actually named
15008 something starting with __ and the normal name is an alias. */
15009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15010 choke me
15011 #else
15012 char (*f) () = $ac_func;
15013 #endif
15014 #ifdef __cplusplus
15015 }
15016 #endif
15017
15018 int
15019 main ()
15020 {
15021 return f != $ac_func;
15022 ;
15023 return 0;
15024 }
15025 _ACEOF
15026 rm -f conftest.$ac_objext conftest$ac_exeext
15027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15028 (eval $ac_link) 2>conftest.er1
15029 ac_status=$?
15030 grep -v '^ *+' conftest.er1 >conftest.err
15031 rm -f conftest.er1
15032 cat conftest.err >&5
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); } &&
15035 { ac_try='test -z "$ac_c_werror_flag"
15036 || test ! -s conftest.err'
15037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038 (eval $ac_try) 2>&5
15039 ac_status=$?
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); }; } &&
15042 { ac_try='test -s conftest$ac_exeext'
15043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15044 (eval $ac_try) 2>&5
15045 ac_status=$?
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); }; }; then
15048 eval "$as_ac_var=yes"
15049 else
15050 echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15052
15053 eval "$as_ac_var=no"
15054 fi
15055 rm -f conftest.err conftest.$ac_objext \
15056 conftest$ac_exeext conftest.$ac_ext
15057 fi
15058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15060 if test `eval echo '${'$as_ac_var'}'` = yes; then
15061 cat >>confdefs.h <<_ACEOF
15062 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15063 _ACEOF
15064
15065 fi
15066 done
15067
15068
15069 INTL_DEP= INTL_INC= LIBINTL_H=
15070 if test "x$USE_INCLUDED_LIBINTL" = "xyes"; then
15071 INTL_DEP='${INTL_LIBDIR}/libintl.a'
15072 INTL_INC='-I${INTL_LIBSRC} -I${INTL_BUILDDIR}'
15073 LIBINTL_H='${INTL_BUILDDIR}/libintl.h'
15074 fi
15075
15076
15077
15078
15079
15080
15081
15082 for ac_header in wctype.h
15083 do
15084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15086 echo "$as_me:$LINENO: checking for $ac_header" >&5
15087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
15090 fi
15091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15092 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15093 else
15094 # Is the header compilable?
15095 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15097 cat >conftest.$ac_ext <<_ACEOF
15098 /* confdefs.h. */
15099 _ACEOF
15100 cat confdefs.h >>conftest.$ac_ext
15101 cat >>conftest.$ac_ext <<_ACEOF
15102 /* end confdefs.h. */
15103 $ac_includes_default
15104 @%:@include <$ac_header>
15105 _ACEOF
15106 rm -f conftest.$ac_objext
15107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15108 (eval $ac_compile) 2>conftest.er1
15109 ac_status=$?
15110 grep -v '^ *+' conftest.er1 >conftest.err
15111 rm -f conftest.er1
15112 cat conftest.err >&5
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); } &&
15115 { ac_try='test -z "$ac_c_werror_flag"
15116 || test ! -s conftest.err'
15117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118 (eval $ac_try) 2>&5
15119 ac_status=$?
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); }; } &&
15122 { ac_try='test -s conftest.$ac_objext'
15123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15124 (eval $ac_try) 2>&5
15125 ac_status=$?
15126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15127 (exit $ac_status); }; }; then
15128 ac_header_compiler=yes
15129 else
15130 echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15132
15133 ac_header_compiler=no
15134 fi
15135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15136 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15137 echo "${ECHO_T}$ac_header_compiler" >&6
15138
15139 # Is the header present?
15140 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15142 cat >conftest.$ac_ext <<_ACEOF
15143 /* confdefs.h. */
15144 _ACEOF
15145 cat confdefs.h >>conftest.$ac_ext
15146 cat >>conftest.$ac_ext <<_ACEOF
15147 /* end confdefs.h. */
15148 @%:@include <$ac_header>
15149 _ACEOF
15150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15151 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15152 ac_status=$?
15153 grep -v '^ *+' conftest.er1 >conftest.err
15154 rm -f conftest.er1
15155 cat conftest.err >&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); } >/dev/null; then
15158 if test -s conftest.err; then
15159 ac_cpp_err=$ac_c_preproc_warn_flag
15160 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15161 else
15162 ac_cpp_err=
15163 fi
15164 else
15165 ac_cpp_err=yes
15166 fi
15167 if test -z "$ac_cpp_err"; then
15168 ac_header_preproc=yes
15169 else
15170 echo "$as_me: failed program was:" >&5
15171 sed 's/^/| /' conftest.$ac_ext >&5
15172
15173 ac_header_preproc=no
15174 fi
15175 rm -f conftest.err conftest.$ac_ext
15176 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15177 echo "${ECHO_T}$ac_header_preproc" >&6
15178
15179 # So? What about this header?
15180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15181 yes:no: )
15182 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15183 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15185 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15186 ac_header_preproc=yes
15187 ;;
15188 no:yes:* )
15189 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15190 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15191 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15192 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15193 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15194 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15195 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15196 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15198 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15199 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15200 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15201 (
15202 cat <<\_ASBOX
15203 @%:@@%:@ ------------------------------- @%:@@%:@
15204 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
15205 @%:@@%:@ ------------------------------- @%:@@%:@
15206 _ASBOX
15207 ) |
15208 sed "s/^/$as_me: WARNING: /" >&2
15209 ;;
15210 esac
15211 echo "$as_me:$LINENO: checking for $ac_header" >&5
15212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15214 echo $ECHO_N "(cached) $ECHO_C" >&6
15215 else
15216 eval "$as_ac_Header=\$ac_header_preproc"
15217 fi
15218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15219 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15220
15221 fi
15222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15223 cat >>confdefs.h <<_ACEOF
15224 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15225 _ACEOF
15226
15227 fi
15228
15229 done
15230
15231
15232 for ac_header in wchar.h
15233 do
15234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15236 echo "$as_me:$LINENO: checking for $ac_header" >&5
15237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15239 echo $ECHO_N "(cached) $ECHO_C" >&6
15240 fi
15241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15243 else
15244 # Is the header compilable?
15245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15247 cat >conftest.$ac_ext <<_ACEOF
15248 /* confdefs.h. */
15249 _ACEOF
15250 cat confdefs.h >>conftest.$ac_ext
15251 cat >>conftest.$ac_ext <<_ACEOF
15252 /* end confdefs.h. */
15253 $ac_includes_default
15254 @%:@include <$ac_header>
15255 _ACEOF
15256 rm -f conftest.$ac_objext
15257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15258 (eval $ac_compile) 2>conftest.er1
15259 ac_status=$?
15260 grep -v '^ *+' conftest.er1 >conftest.err
15261 rm -f conftest.er1
15262 cat conftest.err >&5
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); } &&
15265 { ac_try='test -z "$ac_c_werror_flag"
15266 || test ! -s conftest.err'
15267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15268 (eval $ac_try) 2>&5
15269 ac_status=$?
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); }; } &&
15272 { ac_try='test -s conftest.$ac_objext'
15273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15274 (eval $ac_try) 2>&5
15275 ac_status=$?
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); }; }; then
15278 ac_header_compiler=yes
15279 else
15280 echo "$as_me: failed program was:" >&5
15281 sed 's/^/| /' conftest.$ac_ext >&5
15282
15283 ac_header_compiler=no
15284 fi
15285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15286 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15287 echo "${ECHO_T}$ac_header_compiler" >&6
15288
15289 # Is the header present?
15290 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15291 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15292 cat >conftest.$ac_ext <<_ACEOF
15293 /* confdefs.h. */
15294 _ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15298 @%:@include <$ac_header>
15299 _ACEOF
15300 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15302 ac_status=$?
15303 grep -v '^ *+' conftest.er1 >conftest.err
15304 rm -f conftest.er1
15305 cat conftest.err >&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); } >/dev/null; then
15308 if test -s conftest.err; then
15309 ac_cpp_err=$ac_c_preproc_warn_flag
15310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15311 else
15312 ac_cpp_err=
15313 fi
15314 else
15315 ac_cpp_err=yes
15316 fi
15317 if test -z "$ac_cpp_err"; then
15318 ac_header_preproc=yes
15319 else
15320 echo "$as_me: failed program was:" >&5
15321 sed 's/^/| /' conftest.$ac_ext >&5
15322
15323 ac_header_preproc=no
15324 fi
15325 rm -f conftest.err conftest.$ac_ext
15326 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15327 echo "${ECHO_T}$ac_header_preproc" >&6
15328
15329 # So? What about this header?
15330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15331 yes:no: )
15332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15336 ac_header_preproc=yes
15337 ;;
15338 no:yes:* )
15339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15342 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15346 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15351 (
15352 cat <<\_ASBOX
15353 @%:@@%:@ ------------------------------- @%:@@%:@
15354 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
15355 @%:@@%:@ ------------------------------- @%:@@%:@
15356 _ASBOX
15357 ) |
15358 sed "s/^/$as_me: WARNING: /" >&2
15359 ;;
15360 esac
15361 echo "$as_me:$LINENO: checking for $ac_header" >&5
15362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15364 echo $ECHO_N "(cached) $ECHO_C" >&6
15365 else
15366 eval "$as_ac_Header=\$ac_header_preproc"
15367 fi
15368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15370
15371 fi
15372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15373 cat >>confdefs.h <<_ACEOF
15374 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15375 _ACEOF
15376
15377 fi
15378
15379 done
15380
15381
15382 for ac_header in langinfo.h
15383 do
15384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15386 echo "$as_me:$LINENO: checking for $ac_header" >&5
15387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15389 echo $ECHO_N "(cached) $ECHO_C" >&6
15390 fi
15391 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15392 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15393 else
15394 # Is the header compilable?
15395 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15397 cat >conftest.$ac_ext <<_ACEOF
15398 /* confdefs.h. */
15399 _ACEOF
15400 cat confdefs.h >>conftest.$ac_ext
15401 cat >>conftest.$ac_ext <<_ACEOF
15402 /* end confdefs.h. */
15403 $ac_includes_default
15404 @%:@include <$ac_header>
15405 _ACEOF
15406 rm -f conftest.$ac_objext
15407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15408 (eval $ac_compile) 2>conftest.er1
15409 ac_status=$?
15410 grep -v '^ *+' conftest.er1 >conftest.err
15411 rm -f conftest.er1
15412 cat conftest.err >&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); } &&
15415 { ac_try='test -z "$ac_c_werror_flag"
15416 || test ! -s conftest.err'
15417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15418 (eval $ac_try) 2>&5
15419 ac_status=$?
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); }; } &&
15422 { ac_try='test -s conftest.$ac_objext'
15423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15424 (eval $ac_try) 2>&5
15425 ac_status=$?
15426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427 (exit $ac_status); }; }; then
15428 ac_header_compiler=yes
15429 else
15430 echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15432
15433 ac_header_compiler=no
15434 fi
15435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15436 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15437 echo "${ECHO_T}$ac_header_compiler" >&6
15438
15439 # Is the header present?
15440 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15442 cat >conftest.$ac_ext <<_ACEOF
15443 /* confdefs.h. */
15444 _ACEOF
15445 cat confdefs.h >>conftest.$ac_ext
15446 cat >>conftest.$ac_ext <<_ACEOF
15447 /* end confdefs.h. */
15448 @%:@include <$ac_header>
15449 _ACEOF
15450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15452 ac_status=$?
15453 grep -v '^ *+' conftest.er1 >conftest.err
15454 rm -f conftest.er1
15455 cat conftest.err >&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); } >/dev/null; then
15458 if test -s conftest.err; then
15459 ac_cpp_err=$ac_c_preproc_warn_flag
15460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15461 else
15462 ac_cpp_err=
15463 fi
15464 else
15465 ac_cpp_err=yes
15466 fi
15467 if test -z "$ac_cpp_err"; then
15468 ac_header_preproc=yes
15469 else
15470 echo "$as_me: failed program was:" >&5
15471 sed 's/^/| /' conftest.$ac_ext >&5
15472
15473 ac_header_preproc=no
15474 fi
15475 rm -f conftest.err conftest.$ac_ext
15476 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15477 echo "${ECHO_T}$ac_header_preproc" >&6
15478
15479 # So? What about this header?
15480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15481 yes:no: )
15482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15486 ac_header_preproc=yes
15487 ;;
15488 no:yes:* )
15489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15496 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15501 (
15502 cat <<\_ASBOX
15503 @%:@@%:@ ------------------------------- @%:@@%:@
15504 @%:@@%:@ Report this to bug-bash@gnu.org @%:@@%:@
15505 @%:@@%:@ ------------------------------- @%:@@%:@
15506 _ASBOX
15507 ) |
15508 sed "s/^/$as_me: WARNING: /" >&2
15509 ;;
15510 esac
15511 echo "$as_me:$LINENO: checking for $ac_header" >&5
15512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15514 echo $ECHO_N "(cached) $ECHO_C" >&6
15515 else
15516 eval "$as_ac_Header=\$ac_header_preproc"
15517 fi
15518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15520
15521 fi
15522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15523 cat >>confdefs.h <<_ACEOF
15524 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15525 _ACEOF
15526
15527 fi
15528
15529 done
15530
15531
15532 echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
15533 echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6
15534 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
15535 echo $ECHO_N "(cached) $ECHO_C" >&6
15536 else
15537 cat >conftest.$ac_ext <<_ACEOF
15538 /* confdefs.h. */
15539 _ACEOF
15540 cat confdefs.h >>conftest.$ac_ext
15541 cat >>conftest.$ac_ext <<_ACEOF
15542 /* end confdefs.h. */
15543 /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
15544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15545 #define mbsrtowcs innocuous_mbsrtowcs
15546
15547 /* System header to define __stub macros and hopefully few prototypes,
15548 which can conflict with char mbsrtowcs (); below.
15549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15550 <limits.h> exists even on freestanding compilers. */
15551
15552 #ifdef __STDC__
15553 # include <limits.h>
15554 #else
15555 # include <assert.h>
15556 #endif
15557
15558 #undef mbsrtowcs
15559
15560 /* Override any gcc2 internal prototype to avoid an error. */
15561 #ifdef __cplusplus
15562 extern "C"
15563 {
15564 #endif
15565 /* We use char because int might match the return type of a gcc2
15566 builtin and then its argument prototype would still apply. */
15567 char mbsrtowcs ();
15568 /* The GNU C library defines this for functions which it implements
15569 to always fail with ENOSYS. Some functions are actually named
15570 something starting with __ and the normal name is an alias. */
15571 #if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs)
15572 choke me
15573 #else
15574 char (*f) () = mbsrtowcs;
15575 #endif
15576 #ifdef __cplusplus
15577 }
15578 #endif
15579
15580 int
15581 main ()
15582 {
15583 return f != mbsrtowcs;
15584 ;
15585 return 0;
15586 }
15587 _ACEOF
15588 rm -f conftest.$ac_objext conftest$ac_exeext
15589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15590 (eval $ac_link) 2>conftest.er1
15591 ac_status=$?
15592 grep -v '^ *+' conftest.er1 >conftest.err
15593 rm -f conftest.er1
15594 cat conftest.err >&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } &&
15597 { ac_try='test -z "$ac_c_werror_flag"
15598 || test ! -s conftest.err'
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; } &&
15604 { ac_try='test -s conftest$ac_exeext'
15605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15607 ac_status=$?
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; }; then
15610 ac_cv_func_mbsrtowcs=yes
15611 else
15612 echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.$ac_ext >&5
15614
15615 ac_cv_func_mbsrtowcs=no
15616 fi
15617 rm -f conftest.err conftest.$ac_objext \
15618 conftest$ac_exeext conftest.$ac_ext
15619 fi
15620 echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
15621 echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
15622 if test $ac_cv_func_mbsrtowcs = yes; then
15623 cat >>confdefs.h <<\_ACEOF
15624 @%:@define HAVE_MBSRTOWCS 1
15625 _ACEOF
15626
15627 fi
15628
15629 echo "$as_me:$LINENO: checking for mbrtowc" >&5
15630 echo $ECHO_N "checking for mbrtowc... $ECHO_C" >&6
15631 if test "${ac_cv_func_mbrtowc+set}" = set; then
15632 echo $ECHO_N "(cached) $ECHO_C" >&6
15633 else
15634 cat >conftest.$ac_ext <<_ACEOF
15635 /* confdefs.h. */
15636 _ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h. */
15640 /* Define mbrtowc to an innocuous variant, in case <limits.h> declares mbrtowc.
15641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15642 #define mbrtowc innocuous_mbrtowc
15643
15644 /* System header to define __stub macros and hopefully few prototypes,
15645 which can conflict with char mbrtowc (); below.
15646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15647 <limits.h> exists even on freestanding compilers. */
15648
15649 #ifdef __STDC__
15650 # include <limits.h>
15651 #else
15652 # include <assert.h>
15653 #endif
15654
15655 #undef mbrtowc
15656
15657 /* Override any gcc2 internal prototype to avoid an error. */
15658 #ifdef __cplusplus
15659 extern "C"
15660 {
15661 #endif
15662 /* We use char because int might match the return type of a gcc2
15663 builtin and then its argument prototype would still apply. */
15664 char mbrtowc ();
15665 /* The GNU C library defines this for functions which it implements
15666 to always fail with ENOSYS. Some functions are actually named
15667 something starting with __ and the normal name is an alias. */
15668 #if defined (__stub_mbrtowc) || defined (__stub___mbrtowc)
15669 choke me
15670 #else
15671 char (*f) () = mbrtowc;
15672 #endif
15673 #ifdef __cplusplus
15674 }
15675 #endif
15676
15677 int
15678 main ()
15679 {
15680 return f != mbrtowc;
15681 ;
15682 return 0;
15683 }
15684 _ACEOF
15685 rm -f conftest.$ac_objext conftest$ac_exeext
15686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15687 (eval $ac_link) 2>conftest.er1
15688 ac_status=$?
15689 grep -v '^ *+' conftest.er1 >conftest.err
15690 rm -f conftest.er1
15691 cat conftest.err >&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } &&
15694 { ac_try='test -z "$ac_c_werror_flag"
15695 || test ! -s conftest.err'
15696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697 (eval $ac_try) 2>&5
15698 ac_status=$?
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); }; } &&
15701 { ac_try='test -s conftest$ac_exeext'
15702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703 (eval $ac_try) 2>&5
15704 ac_status=$?
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; }; then
15707 ac_cv_func_mbrtowc=yes
15708 else
15709 echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15711
15712 ac_cv_func_mbrtowc=no
15713 fi
15714 rm -f conftest.err conftest.$ac_objext \
15715 conftest$ac_exeext conftest.$ac_ext
15716 fi
15717 echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
15718 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
15719 if test $ac_cv_func_mbrtowc = yes; then
15720 cat >>confdefs.h <<\_ACEOF
15721 @%:@define HAVE_MBRTOWC 1
15722 _ACEOF
15723
15724 fi
15725
15726 echo "$as_me:$LINENO: checking for mbrlen" >&5
15727 echo $ECHO_N "checking for mbrlen... $ECHO_C" >&6
15728 if test "${ac_cv_func_mbrlen+set}" = set; then
15729 echo $ECHO_N "(cached) $ECHO_C" >&6
15730 else
15731 cat >conftest.$ac_ext <<_ACEOF
15732 /* confdefs.h. */
15733 _ACEOF
15734 cat confdefs.h >>conftest.$ac_ext
15735 cat >>conftest.$ac_ext <<_ACEOF
15736 /* end confdefs.h. */
15737 /* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
15738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15739 #define mbrlen innocuous_mbrlen
15740
15741 /* System header to define __stub macros and hopefully few prototypes,
15742 which can conflict with char mbrlen (); below.
15743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15744 <limits.h> exists even on freestanding compilers. */
15745
15746 #ifdef __STDC__
15747 # include <limits.h>
15748 #else
15749 # include <assert.h>
15750 #endif
15751
15752 #undef mbrlen
15753
15754 /* Override any gcc2 internal prototype to avoid an error. */
15755 #ifdef __cplusplus
15756 extern "C"
15757 {
15758 #endif
15759 /* We use char because int might match the return type of a gcc2
15760 builtin and then its argument prototype would still apply. */
15761 char mbrlen ();
15762 /* The GNU C library defines this for functions which it implements
15763 to always fail with ENOSYS. Some functions are actually named
15764 something starting with __ and the normal name is an alias. */
15765 #if defined (__stub_mbrlen) || defined (__stub___mbrlen)
15766 choke me
15767 #else
15768 char (*f) () = mbrlen;
15769 #endif
15770 #ifdef __cplusplus
15771 }
15772 #endif
15773
15774 int
15775 main ()
15776 {
15777 return f != mbrlen;
15778 ;
15779 return 0;
15780 }
15781 _ACEOF
15782 rm -f conftest.$ac_objext conftest$ac_exeext
15783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15784 (eval $ac_link) 2>conftest.er1
15785 ac_status=$?
15786 grep -v '^ *+' conftest.er1 >conftest.err
15787 rm -f conftest.er1
15788 cat conftest.err >&5
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); } &&
15791 { ac_try='test -z "$ac_c_werror_flag"
15792 || test ! -s conftest.err'
15793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15794 (eval $ac_try) 2>&5
15795 ac_status=$?
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; } &&
15798 { ac_try='test -s conftest$ac_exeext'
15799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15800 (eval $ac_try) 2>&5
15801 ac_status=$?
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); }; }; then
15804 ac_cv_func_mbrlen=yes
15805 else
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15808
15809 ac_cv_func_mbrlen=no
15810 fi
15811 rm -f conftest.err conftest.$ac_objext \
15812 conftest$ac_exeext conftest.$ac_ext
15813 fi
15814 echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
15815 echo "${ECHO_T}$ac_cv_func_mbrlen" >&6
15816 if test $ac_cv_func_mbrlen = yes; then
15817 cat >>confdefs.h <<\_ACEOF
15818 @%:@define HAVE_MBRLEN 1
15819 _ACEOF
15820
15821 fi
15822
15823 echo "$as_me:$LINENO: checking for wctomb" >&5
15824 echo $ECHO_N "checking for wctomb... $ECHO_C" >&6
15825 if test "${ac_cv_func_wctomb+set}" = set; then
15826 echo $ECHO_N "(cached) $ECHO_C" >&6
15827 else
15828 cat >conftest.$ac_ext <<_ACEOF
15829 /* confdefs.h. */
15830 _ACEOF
15831 cat confdefs.h >>conftest.$ac_ext
15832 cat >>conftest.$ac_ext <<_ACEOF
15833 /* end confdefs.h. */
15834 /* Define wctomb to an innocuous variant, in case <limits.h> declares wctomb.
15835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15836 #define wctomb innocuous_wctomb
15837
15838 /* System header to define __stub macros and hopefully few prototypes,
15839 which can conflict with char wctomb (); below.
15840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15841 <limits.h> exists even on freestanding compilers. */
15842
15843 #ifdef __STDC__
15844 # include <limits.h>
15845 #else
15846 # include <assert.h>
15847 #endif
15848
15849 #undef wctomb
15850
15851 /* Override any gcc2 internal prototype to avoid an error. */
15852 #ifdef __cplusplus
15853 extern "C"
15854 {
15855 #endif
15856 /* We use char because int might match the return type of a gcc2
15857 builtin and then its argument prototype would still apply. */
15858 char wctomb ();
15859 /* The GNU C library defines this for functions which it implements
15860 to always fail with ENOSYS. Some functions are actually named
15861 something starting with __ and the normal name is an alias. */
15862 #if defined (__stub_wctomb) || defined (__stub___wctomb)
15863 choke me
15864 #else
15865 char (*f) () = wctomb;
15866 #endif
15867 #ifdef __cplusplus
15868 }
15869 #endif
15870
15871 int
15872 main ()
15873 {
15874 return f != wctomb;
15875 ;
15876 return 0;
15877 }
15878 _ACEOF
15879 rm -f conftest.$ac_objext conftest$ac_exeext
15880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15881 (eval $ac_link) 2>conftest.er1
15882 ac_status=$?
15883 grep -v '^ *+' conftest.er1 >conftest.err
15884 rm -f conftest.er1
15885 cat conftest.err >&5
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); } &&
15888 { ac_try='test -z "$ac_c_werror_flag"
15889 || test ! -s conftest.err'
15890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891 (eval $ac_try) 2>&5
15892 ac_status=$?
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; } &&
15895 { ac_try='test -s conftest$ac_exeext'
15896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897 (eval $ac_try) 2>&5
15898 ac_status=$?
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }; }; then
15901 ac_cv_func_wctomb=yes
15902 else
15903 echo "$as_me: failed program was:" >&5
15904 sed 's/^/| /' conftest.$ac_ext >&5
15905
15906 ac_cv_func_wctomb=no
15907 fi
15908 rm -f conftest.err conftest.$ac_objext \
15909 conftest$ac_exeext conftest.$ac_ext
15910 fi
15911 echo "$as_me:$LINENO: result: $ac_cv_func_wctomb" >&5
15912 echo "${ECHO_T}$ac_cv_func_wctomb" >&6
15913 if test $ac_cv_func_wctomb = yes; then
15914 cat >>confdefs.h <<\_ACEOF
15915 @%:@define HAVE_WCTOMB 1
15916 _ACEOF
15917
15918 fi
15919
15920 echo "$as_me:$LINENO: checking for wcwidth" >&5
15921 echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
15922 if test "${ac_cv_func_wcwidth+set}" = set; then
15923 echo $ECHO_N "(cached) $ECHO_C" >&6
15924 else
15925 cat >conftest.$ac_ext <<_ACEOF
15926 /* confdefs.h. */
15927 _ACEOF
15928 cat confdefs.h >>conftest.$ac_ext
15929 cat >>conftest.$ac_ext <<_ACEOF
15930 /* end confdefs.h. */
15931 /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
15932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15933 #define wcwidth innocuous_wcwidth
15934
15935 /* System header to define __stub macros and hopefully few prototypes,
15936 which can conflict with char wcwidth (); below.
15937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15938 <limits.h> exists even on freestanding compilers. */
15939
15940 #ifdef __STDC__
15941 # include <limits.h>
15942 #else
15943 # include <assert.h>
15944 #endif
15945
15946 #undef wcwidth
15947
15948 /* Override any gcc2 internal prototype to avoid an error. */
15949 #ifdef __cplusplus
15950 extern "C"
15951 {
15952 #endif
15953 /* We use char because int might match the return type of a gcc2
15954 builtin and then its argument prototype would still apply. */
15955 char wcwidth ();
15956 /* The GNU C library defines this for functions which it implements
15957 to always fail with ENOSYS. Some functions are actually named
15958 something starting with __ and the normal name is an alias. */
15959 #if defined (__stub_wcwidth) || defined (__stub___wcwidth)
15960 choke me
15961 #else
15962 char (*f) () = wcwidth;
15963 #endif
15964 #ifdef __cplusplus
15965 }
15966 #endif
15967
15968 int
15969 main ()
15970 {
15971 return f != wcwidth;
15972 ;
15973 return 0;
15974 }
15975 _ACEOF
15976 rm -f conftest.$ac_objext conftest$ac_exeext
15977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15978 (eval $ac_link) 2>conftest.er1
15979 ac_status=$?
15980 grep -v '^ *+' conftest.er1 >conftest.err
15981 rm -f conftest.er1
15982 cat conftest.err >&5
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); } &&
15985 { ac_try='test -z "$ac_c_werror_flag"
15986 || test ! -s conftest.err'
15987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15988 (eval $ac_try) 2>&5
15989 ac_status=$?
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); }; } &&
15992 { ac_try='test -s conftest$ac_exeext'
15993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15994 (eval $ac_try) 2>&5
15995 ac_status=$?
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); }; }; then
15998 ac_cv_func_wcwidth=yes
15999 else
16000 echo "$as_me: failed program was:" >&5
16001 sed 's/^/| /' conftest.$ac_ext >&5
16002
16003 ac_cv_func_wcwidth=no
16004 fi
16005 rm -f conftest.err conftest.$ac_objext \
16006 conftest$ac_exeext conftest.$ac_ext
16007 fi
16008 echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
16009 echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
16010 if test $ac_cv_func_wcwidth = yes; then
16011 cat >>confdefs.h <<\_ACEOF
16012 @%:@define HAVE_WCWIDTH 1
16013 _ACEOF
16014
16015 fi
16016
16017 echo "$as_me:$LINENO: checking for wcsdup" >&5
16018 echo $ECHO_N "checking for wcsdup... $ECHO_C" >&6
16019 if test "${ac_cv_func_wcsdup+set}" = set; then
16020 echo $ECHO_N "(cached) $ECHO_C" >&6
16021 else
16022 cat >conftest.$ac_ext <<_ACEOF
16023 /* confdefs.h. */
16024 _ACEOF
16025 cat confdefs.h >>conftest.$ac_ext
16026 cat >>conftest.$ac_ext <<_ACEOF
16027 /* end confdefs.h. */
16028 /* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
16029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16030 #define wcsdup innocuous_wcsdup
16031
16032 /* System header to define __stub macros and hopefully few prototypes,
16033 which can conflict with char wcsdup (); below.
16034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16035 <limits.h> exists even on freestanding compilers. */
16036
16037 #ifdef __STDC__
16038 # include <limits.h>
16039 #else
16040 # include <assert.h>
16041 #endif
16042
16043 #undef wcsdup
16044
16045 /* Override any gcc2 internal prototype to avoid an error. */
16046 #ifdef __cplusplus
16047 extern "C"
16048 {
16049 #endif
16050 /* We use char because int might match the return type of a gcc2
16051 builtin and then its argument prototype would still apply. */
16052 char wcsdup ();
16053 /* The GNU C library defines this for functions which it implements
16054 to always fail with ENOSYS. Some functions are actually named
16055 something starting with __ and the normal name is an alias. */
16056 #if defined (__stub_wcsdup) || defined (__stub___wcsdup)
16057 choke me
16058 #else
16059 char (*f) () = wcsdup;
16060 #endif
16061 #ifdef __cplusplus
16062 }
16063 #endif
16064
16065 int
16066 main ()
16067 {
16068 return f != wcsdup;
16069 ;
16070 return 0;
16071 }
16072 _ACEOF
16073 rm -f conftest.$ac_objext conftest$ac_exeext
16074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16075 (eval $ac_link) 2>conftest.er1
16076 ac_status=$?
16077 grep -v '^ *+' conftest.er1 >conftest.err
16078 rm -f conftest.er1
16079 cat conftest.err >&5
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); } &&
16082 { ac_try='test -z "$ac_c_werror_flag"
16083 || test ! -s conftest.err'
16084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16086 ac_status=$?
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; } &&
16089 { ac_try='test -s conftest$ac_exeext'
16090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16091 (eval $ac_try) 2>&5
16092 ac_status=$?
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); }; }; then
16095 ac_cv_func_wcsdup=yes
16096 else
16097 echo "$as_me: failed program was:" >&5
16098 sed 's/^/| /' conftest.$ac_ext >&5
16099
16100 ac_cv_func_wcsdup=no
16101 fi
16102 rm -f conftest.err conftest.$ac_objext \
16103 conftest$ac_exeext conftest.$ac_ext
16104 fi
16105 echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
16106 echo "${ECHO_T}$ac_cv_func_wcsdup" >&6
16107 if test $ac_cv_func_wcsdup = yes; then
16108 cat >>confdefs.h <<\_ACEOF
16109 @%:@define HAVE_WCSDUP 1
16110 _ACEOF
16111
16112 fi
16113
16114 echo "$as_me:$LINENO: checking for wctype" >&5
16115 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
16116 if test "${ac_cv_func_wctype+set}" = set; then
16117 echo $ECHO_N "(cached) $ECHO_C" >&6
16118 else
16119 cat >conftest.$ac_ext <<_ACEOF
16120 /* confdefs.h. */
16121 _ACEOF
16122 cat confdefs.h >>conftest.$ac_ext
16123 cat >>conftest.$ac_ext <<_ACEOF
16124 /* end confdefs.h. */
16125 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
16126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16127 #define wctype innocuous_wctype
16128
16129 /* System header to define __stub macros and hopefully few prototypes,
16130 which can conflict with char wctype (); below.
16131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16132 <limits.h> exists even on freestanding compilers. */
16133
16134 #ifdef __STDC__
16135 # include <limits.h>
16136 #else
16137 # include <assert.h>
16138 #endif
16139
16140 #undef wctype
16141
16142 /* Override any gcc2 internal prototype to avoid an error. */
16143 #ifdef __cplusplus
16144 extern "C"
16145 {
16146 #endif
16147 /* We use char because int might match the return type of a gcc2
16148 builtin and then its argument prototype would still apply. */
16149 char wctype ();
16150 /* The GNU C library defines this for functions which it implements
16151 to always fail with ENOSYS. Some functions are actually named
16152 something starting with __ and the normal name is an alias. */
16153 #if defined (__stub_wctype) || defined (__stub___wctype)
16154 choke me
16155 #else
16156 char (*f) () = wctype;
16157 #endif
16158 #ifdef __cplusplus
16159 }
16160 #endif
16161
16162 int
16163 main ()
16164 {
16165 return f != wctype;
16166 ;
16167 return 0;
16168 }
16169 _ACEOF
16170 rm -f conftest.$ac_objext conftest$ac_exeext
16171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16172 (eval $ac_link) 2>conftest.er1
16173 ac_status=$?
16174 grep -v '^ *+' conftest.er1 >conftest.err
16175 rm -f conftest.er1
16176 cat conftest.err >&5
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); } &&
16179 { ac_try='test -z "$ac_c_werror_flag"
16180 || test ! -s conftest.err'
16181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16183 ac_status=$?
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; } &&
16186 { ac_try='test -s conftest$ac_exeext'
16187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16188 (eval $ac_try) 2>&5
16189 ac_status=$?
16190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16191 (exit $ac_status); }; }; then
16192 ac_cv_func_wctype=yes
16193 else
16194 echo "$as_me: failed program was:" >&5
16195 sed 's/^/| /' conftest.$ac_ext >&5
16196
16197 ac_cv_func_wctype=no
16198 fi
16199 rm -f conftest.err conftest.$ac_objext \
16200 conftest$ac_exeext conftest.$ac_ext
16201 fi
16202 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
16203 echo "${ECHO_T}$ac_cv_func_wctype" >&6
16204 if test $ac_cv_func_wctype = yes; then
16205 cat >>confdefs.h <<\_ACEOF
16206 @%:@define HAVE_WCTYPE 1
16207 _ACEOF
16208
16209 fi
16210
16211
16212 echo "$as_me:$LINENO: checking for mbstate_t" >&5
16213 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
16214 if test "${bash_cv_have_mbstate_t+set}" = set; then
16215 echo $ECHO_N "(cached) $ECHO_C" >&6
16216 else
16217 cat >conftest.$ac_ext <<_ACEOF
16218 /* confdefs.h. */
16219 _ACEOF
16220 cat confdefs.h >>conftest.$ac_ext
16221 cat >>conftest.$ac_ext <<_ACEOF
16222 /* end confdefs.h. */
16223
16224 #include <wchar.h>
16225 int
16226 main ()
16227 {
16228
16229 mbstate_t ps;
16230 mbstate_t *psp;
16231 psp = (mbstate_t *)0;
16232
16233 ;
16234 return 0;
16235 }
16236 _ACEOF
16237 rm -f conftest.$ac_objext
16238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16239 (eval $ac_compile) 2>conftest.er1
16240 ac_status=$?
16241 grep -v '^ *+' conftest.er1 >conftest.err
16242 rm -f conftest.er1
16243 cat conftest.err >&5
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } &&
16246 { ac_try='test -z "$ac_c_werror_flag"
16247 || test ! -s conftest.err'
16248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249 (eval $ac_try) 2>&5
16250 ac_status=$?
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; } &&
16253 { ac_try='test -s conftest.$ac_objext'
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16256 ac_status=$?
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; }; then
16259 bash_cv_have_mbstate_t=yes
16260 else
16261 echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.$ac_ext >&5
16263
16264 bash_cv_have_mbstate_t=no
16265 fi
16266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16267 fi
16268 echo "$as_me:$LINENO: result: $bash_cv_have_mbstate_t" >&5
16269 echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6
16270 if test $bash_cv_have_mbstate_t = yes; then
16271 cat >>confdefs.h <<\_ACEOF
16272 @%:@define HAVE_MBSTATE_T 1
16273 _ACEOF
16274
16275 fi
16276
16277 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16278 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
16279 if test "${bash_cv_langinfo_codeset+set}" = set; then
16280 echo $ECHO_N "(cached) $ECHO_C" >&6
16281 else
16282 cat >conftest.$ac_ext <<_ACEOF
16283 /* confdefs.h. */
16284 _ACEOF
16285 cat confdefs.h >>conftest.$ac_ext
16286 cat >>conftest.$ac_ext <<_ACEOF
16287 /* end confdefs.h. */
16288 #include <langinfo.h>
16289 int
16290 main ()
16291 {
16292 char* cs = nl_langinfo(CODESET);
16293 ;
16294 return 0;
16295 }
16296 _ACEOF
16297 rm -f conftest.$ac_objext conftest$ac_exeext
16298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16299 (eval $ac_link) 2>conftest.er1
16300 ac_status=$?
16301 grep -v '^ *+' conftest.er1 >conftest.err
16302 rm -f conftest.er1
16303 cat conftest.err >&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); } &&
16306 { ac_try='test -z "$ac_c_werror_flag"
16307 || test ! -s conftest.err'
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16310 ac_status=$?
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; } &&
16313 { ac_try='test -s conftest$ac_exeext'
16314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16315 (eval $ac_try) 2>&5
16316 ac_status=$?
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); }; }; then
16319 bash_cv_langinfo_codeset=yes
16320 else
16321 echo "$as_me: failed program was:" >&5
16322 sed 's/^/| /' conftest.$ac_ext >&5
16323
16324 bash_cv_langinfo_codeset=no
16325 fi
16326 rm -f conftest.err conftest.$ac_objext \
16327 conftest$ac_exeext conftest.$ac_ext
16328 fi
16329 echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
16330 echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6
16331 if test $bash_cv_langinfo_codeset = yes; then
16332 cat >>confdefs.h <<\_ACEOF
16333 @%:@define HAVE_LANGINFO_CODESET 1
16334 _ACEOF
16335
16336 fi
16337
16338
16339
16340 if test "$opt_static_link" != yes; then
16341
16342 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16343 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16344 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16345 echo $ECHO_N "(cached) $ECHO_C" >&6
16346 else
16347 ac_check_lib_save_LIBS=$LIBS
16348 LIBS="-ldl $LIBS"
16349 cat >conftest.$ac_ext <<_ACEOF
16350 /* confdefs.h. */
16351 _ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h. */
16355
16356 /* Override any gcc2 internal prototype to avoid an error. */
16357 #ifdef __cplusplus
16358 extern "C"
16359 #endif
16360 /* We use char because int might match the return type of a gcc2
16361 builtin and then its argument prototype would still apply. */
16362 char dlopen ();
16363 int
16364 main ()
16365 {
16366 dlopen ();
16367 ;
16368 return 0;
16369 }
16370 _ACEOF
16371 rm -f conftest.$ac_objext conftest$ac_exeext
16372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16373 (eval $ac_link) 2>conftest.er1
16374 ac_status=$?
16375 grep -v '^ *+' conftest.er1 >conftest.err
16376 rm -f conftest.er1
16377 cat conftest.err >&5
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); } &&
16380 { ac_try='test -z "$ac_c_werror_flag"
16381 || test ! -s conftest.err'
16382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16383 (eval $ac_try) 2>&5
16384 ac_status=$?
16385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386 (exit $ac_status); }; } &&
16387 { ac_try='test -s conftest$ac_exeext'
16388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16389 (eval $ac_try) 2>&5
16390 ac_status=$?
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); }; }; then
16393 ac_cv_lib_dl_dlopen=yes
16394 else
16395 echo "$as_me: failed program was:" >&5
16396 sed 's/^/| /' conftest.$ac_ext >&5
16397
16398 ac_cv_lib_dl_dlopen=no
16399 fi
16400 rm -f conftest.err conftest.$ac_objext \
16401 conftest$ac_exeext conftest.$ac_ext
16402 LIBS=$ac_check_lib_save_LIBS
16403 fi
16404 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16405 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16406 if test $ac_cv_lib_dl_dlopen = yes; then
16407 cat >>confdefs.h <<_ACEOF
16408 @%:@define HAVE_LIBDL 1
16409 _ACEOF
16410
16411 LIBS="-ldl $LIBS"
16412
16413 fi
16414
16415
16416
16417
16418 for ac_func in dlopen dlclose dlsym
16419 do
16420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16421 echo "$as_me:$LINENO: checking for $ac_func" >&5
16422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16423 if eval "test \"\${$as_ac_var+set}\" = set"; then
16424 echo $ECHO_N "(cached) $ECHO_C" >&6
16425 else
16426 cat >conftest.$ac_ext <<_ACEOF
16427 /* confdefs.h. */
16428 _ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h. */
16432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16434 #define $ac_func innocuous_$ac_func
16435
16436 /* System header to define __stub macros and hopefully few prototypes,
16437 which can conflict with char $ac_func (); below.
16438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16439 <limits.h> exists even on freestanding compilers. */
16440
16441 #ifdef __STDC__
16442 # include <limits.h>
16443 #else
16444 # include <assert.h>
16445 #endif
16446
16447 #undef $ac_func
16448
16449 /* Override any gcc2 internal prototype to avoid an error. */
16450 #ifdef __cplusplus
16451 extern "C"
16452 {
16453 #endif
16454 /* We use char because int might match the return type of a gcc2
16455 builtin and then its argument prototype would still apply. */
16456 char $ac_func ();
16457 /* The GNU C library defines this for functions which it implements
16458 to always fail with ENOSYS. Some functions are actually named
16459 something starting with __ and the normal name is an alias. */
16460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16461 choke me
16462 #else
16463 char (*f) () = $ac_func;
16464 #endif
16465 #ifdef __cplusplus
16466 }
16467 #endif
16468
16469 int
16470 main ()
16471 {
16472 return f != $ac_func;
16473 ;
16474 return 0;
16475 }
16476 _ACEOF
16477 rm -f conftest.$ac_objext conftest$ac_exeext
16478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16479 (eval $ac_link) 2>conftest.er1
16480 ac_status=$?
16481 grep -v '^ *+' conftest.er1 >conftest.err
16482 rm -f conftest.er1
16483 cat conftest.err >&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); } &&
16486 { ac_try='test -z "$ac_c_werror_flag"
16487 || test ! -s conftest.err'
16488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489 (eval $ac_try) 2>&5
16490 ac_status=$?
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; } &&
16493 { ac_try='test -s conftest$ac_exeext'
16494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16495 (eval $ac_try) 2>&5
16496 ac_status=$?
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); }; }; then
16499 eval "$as_ac_var=yes"
16500 else
16501 echo "$as_me: failed program was:" >&5
16502 sed 's/^/| /' conftest.$ac_ext >&5
16503
16504 eval "$as_ac_var=no"
16505 fi
16506 rm -f conftest.err conftest.$ac_objext \
16507 conftest$ac_exeext conftest.$ac_ext
16508 fi
16509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16511 if test `eval echo '${'$as_ac_var'}'` = yes; then
16512 cat >>confdefs.h <<_ACEOF
16513 @%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16514 _ACEOF
16515
16516 fi
16517 done
16518
16519 fi
16520
16521 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
16522 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
16523 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
16524 echo $ECHO_N "(cached) $ECHO_C" >&6
16525 else
16526 cat >conftest.$ac_ext <<_ACEOF
16527 /* confdefs.h. */
16528 _ACEOF
16529 cat confdefs.h >>conftest.$ac_ext
16530 cat >>conftest.$ac_ext <<_ACEOF
16531 /* end confdefs.h. */
16532 #include <signal.h>
16533 /* NetBSD declares sys_siglist in unistd.h. */
16534 #if HAVE_UNISTD_H
16535 # include <unistd.h>
16536 #endif
16537
16538
16539 int
16540 main ()
16541 {
16542 #ifndef sys_siglist
16543 char *p = (char *) sys_siglist;
16544 #endif
16545
16546 ;
16547 return 0;
16548 }
16549 _ACEOF
16550 rm -f conftest.$ac_objext
16551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16552 (eval $ac_compile) 2>conftest.er1
16553 ac_status=$?
16554 grep -v '^ *+' conftest.er1 >conftest.err
16555 rm -f conftest.er1
16556 cat conftest.err >&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); } &&
16559 { ac_try='test -z "$ac_c_werror_flag"
16560 || test ! -s conftest.err'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16563 ac_status=$?
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; } &&
16566 { ac_try='test -s conftest.$ac_objext'
16567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568 (eval $ac_try) 2>&5
16569 ac_status=$?
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; }; then
16572 ac_cv_have_decl_sys_siglist=yes
16573 else
16574 echo "$as_me: failed program was:" >&5
16575 sed 's/^/| /' conftest.$ac_ext >&5
16576
16577 ac_cv_have_decl_sys_siglist=no
16578 fi
16579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16580 fi
16581 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
16582 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
16583 if test $ac_cv_have_decl_sys_siglist = yes; then
16584
16585 cat >>confdefs.h <<_ACEOF
16586 @%:@define HAVE_DECL_SYS_SIGLIST 1
16587 _ACEOF
16588
16589
16590 else
16591 cat >>confdefs.h <<_ACEOF
16592 @%:@define HAVE_DECL_SYS_SIGLIST 0
16593 _ACEOF
16594
16595
16596 fi
16597
16598
16599
16600
16601 if test "$ac_cv_func_inet_aton" != 'yes'; then
16602
16603 echo "$as_me:$LINENO: checking for inet_aton" >&5
16604 echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
16605 if test "${bash_cv_func_inet_aton+set}" = set; then
16606 echo $ECHO_N "(cached) $ECHO_C" >&6
16607 else
16608 cat >conftest.$ac_ext <<_ACEOF
16609 /* confdefs.h. */
16610 _ACEOF
16611 cat confdefs.h >>conftest.$ac_ext
16612 cat >>conftest.$ac_ext <<_ACEOF
16613 /* end confdefs.h. */
16614
16615 #include <sys/types.h>
16616 #include <netinet/in.h>
16617 #include <arpa/inet.h>
16618 struct in_addr ap;
16619 int
16620 main ()
16621 {
16622 inet_aton("127.0.0.1", &ap);
16623 ;
16624 return 0;
16625 }
16626 _ACEOF
16627 rm -f conftest.$ac_objext conftest$ac_exeext
16628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16629 (eval $ac_link) 2>conftest.er1
16630 ac_status=$?
16631 grep -v '^ *+' conftest.er1 >conftest.err
16632 rm -f conftest.er1
16633 cat conftest.err >&5
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); } &&
16636 { ac_try='test -z "$ac_c_werror_flag"
16637 || test ! -s conftest.err'
16638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16639 (eval $ac_try) 2>&5
16640 ac_status=$?
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); }; } &&
16643 { ac_try='test -s conftest$ac_exeext'
16644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16645 (eval $ac_try) 2>&5
16646 ac_status=$?
16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16648 (exit $ac_status); }; }; then
16649 bash_cv_func_inet_aton=yes
16650 else
16651 echo "$as_me: failed program was:" >&5
16652 sed 's/^/| /' conftest.$ac_ext >&5
16653
16654 bash_cv_func_inet_aton=no
16655 fi
16656 rm -f conftest.err conftest.$ac_objext \
16657 conftest$ac_exeext conftest.$ac_ext
16658 fi
16659 echo "$as_me:$LINENO: result: $bash_cv_func_inet_aton" >&5
16660 echo "${ECHO_T}$bash_cv_func_inet_aton" >&6
16661 if test $bash_cv_func_inet_aton = yes; then
16662 cat >>confdefs.h <<\_ACEOF
16663 @%:@define HAVE_INET_ATON 1
16664 _ACEOF
16665
16666 else
16667 case $LIB@&t@OBJS in
16668 "inet_aton.$ac_objext" | \
16669 *" inet_aton.$ac_objext" | \
16670 "inet_aton.$ac_objext "* | \
16671 *" inet_aton.$ac_objext "* ) ;;
16672 *) LIB@&t@OBJS="$LIB@&t@OBJS inet_aton.$ac_objext" ;;
16673 esac
16674
16675 fi
16676
16677 fi
16678
16679 case "$host_os" in
16680 irix4*)
16681 echo "$as_me:$LINENO: checking for getpwent in -lsun" >&5
16682 echo $ECHO_N "checking for getpwent in -lsun... $ECHO_C" >&6
16683 if test "${ac_cv_lib_sun_getpwent+set}" = set; then
16684 echo $ECHO_N "(cached) $ECHO_C" >&6
16685 else
16686 ac_check_lib_save_LIBS=$LIBS
16687 LIBS="-lsun $LIBS"
16688 cat >conftest.$ac_ext <<_ACEOF
16689 /* confdefs.h. */
16690 _ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h. */
16694
16695 /* Override any gcc2 internal prototype to avoid an error. */
16696 #ifdef __cplusplus
16697 extern "C"
16698 #endif
16699 /* We use char because int might match the return type of a gcc2
16700 builtin and then its argument prototype would still apply. */
16701 char getpwent ();
16702 int
16703 main ()
16704 {
16705 getpwent ();
16706 ;
16707 return 0;
16708 }
16709 _ACEOF
16710 rm -f conftest.$ac_objext conftest$ac_exeext
16711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16712 (eval $ac_link) 2>conftest.er1
16713 ac_status=$?
16714 grep -v '^ *+' conftest.er1 >conftest.err
16715 rm -f conftest.er1
16716 cat conftest.err >&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } &&
16719 { ac_try='test -z "$ac_c_werror_flag"
16720 || test ! -s conftest.err'
16721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722 (eval $ac_try) 2>&5
16723 ac_status=$?
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); }; } &&
16726 { ac_try='test -s conftest$ac_exeext'
16727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728 (eval $ac_try) 2>&5
16729 ac_status=$?
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); }; }; then
16732 ac_cv_lib_sun_getpwent=yes
16733 else
16734 echo "$as_me: failed program was:" >&5
16735 sed 's/^/| /' conftest.$ac_ext >&5
16736
16737 ac_cv_lib_sun_getpwent=no
16738 fi
16739 rm -f conftest.err conftest.$ac_objext \
16740 conftest$ac_exeext conftest.$ac_ext
16741 LIBS=$ac_check_lib_save_LIBS
16742 fi
16743 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwent" >&5
16744 echo "${ECHO_T}$ac_cv_lib_sun_getpwent" >&6
16745 if test $ac_cv_lib_sun_getpwent = yes; then
16746 cat >>confdefs.h <<_ACEOF
16747 @%:@define HAVE_LIBSUN 1
16748 _ACEOF
16749
16750 LIBS="-lsun $LIBS"
16751
16752 fi
16753 ;;
16754 esac
16755
16756 if test "$ac_cv_func_getpeername" = no; then
16757
16758 if test "X$bash_cv_have_socklib" = "X"; then
16759 _bash_needmsg=
16760 else
16761 echo "$as_me:$LINENO: checking for socket library" >&5
16762 echo $ECHO_N "checking for socket library... $ECHO_C" >&6
16763 _bash_needmsg=yes
16764 fi
16765 if test "${bash_cv_have_socklib+set}" = set; then
16766 echo $ECHO_N "(cached) $ECHO_C" >&6
16767 else
16768 echo "$as_me:$LINENO: checking for getpeername in -lsocket" >&5
16769 echo $ECHO_N "checking for getpeername in -lsocket... $ECHO_C" >&6
16770 if test "${ac_cv_lib_socket_getpeername+set}" = set; then
16771 echo $ECHO_N "(cached) $ECHO_C" >&6
16772 else
16773 ac_check_lib_save_LIBS=$LIBS
16774 LIBS="-lsocket -lnsl $LIBS"
16775 cat >conftest.$ac_ext <<_ACEOF
16776 /* confdefs.h. */
16777 _ACEOF
16778 cat confdefs.h >>conftest.$ac_ext
16779 cat >>conftest.$ac_ext <<_ACEOF
16780 /* end confdefs.h. */
16781
16782 /* Override any gcc2 internal prototype to avoid an error. */
16783 #ifdef __cplusplus
16784 extern "C"
16785 #endif
16786 /* We use char because int might match the return type of a gcc2
16787 builtin and then its argument prototype would still apply. */
16788 char getpeername ();
16789 int
16790 main ()
16791 {
16792 getpeername ();
16793 ;
16794 return 0;
16795 }
16796 _ACEOF
16797 rm -f conftest.$ac_objext conftest$ac_exeext
16798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16799 (eval $ac_link) 2>conftest.er1
16800 ac_status=$?
16801 grep -v '^ *+' conftest.er1 >conftest.err
16802 rm -f conftest.er1
16803 cat conftest.err >&5
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); } &&
16806 { ac_try='test -z "$ac_c_werror_flag"
16807 || test ! -s conftest.err'
16808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16809 (eval $ac_try) 2>&5
16810 ac_status=$?
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); }; } &&
16813 { ac_try='test -s conftest$ac_exeext'
16814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16815 (eval $ac_try) 2>&5
16816 ac_status=$?
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; }; then
16819 ac_cv_lib_socket_getpeername=yes
16820 else
16821 echo "$as_me: failed program was:" >&5
16822 sed 's/^/| /' conftest.$ac_ext >&5
16823
16824 ac_cv_lib_socket_getpeername=no
16825 fi
16826 rm -f conftest.err conftest.$ac_objext \
16827 conftest$ac_exeext conftest.$ac_ext
16828 LIBS=$ac_check_lib_save_LIBS
16829 fi
16830 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getpeername" >&5
16831 echo "${ECHO_T}$ac_cv_lib_socket_getpeername" >&6
16832 if test $ac_cv_lib_socket_getpeername = yes; then
16833 bash_cv_have_socklib=yes
16834 else
16835 bash_cv_have_socklib=no
16836 fi
16837
16838 fi
16839
16840 if test "X$_bash_needmsg" = Xyes; then
16841 echo "$as_me:$LINENO: result: $bash_cv_have_socklib" >&5
16842 echo "${ECHO_T}$bash_cv_have_socklib" >&6
16843 _bash_needmsg=
16844 fi
16845 if test $bash_cv_have_socklib = yes; then
16846 # check for libnsl, add it to LIBS if present
16847 if test "X$bash_cv_have_libnsl" = "X"; then
16848 _bash_needmsg=
16849 else
16850 echo "$as_me:$LINENO: checking for libnsl" >&5
16851 echo $ECHO_N "checking for libnsl... $ECHO_C" >&6
16852 _bash_needmsg=yes
16853 fi
16854 if test "${bash_cv_have_libnsl+set}" = set; then
16855 echo $ECHO_N "(cached) $ECHO_C" >&6
16856 else
16857 echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
16858 echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
16859 if test "${ac_cv_lib_nsl_t_open+set}" = set; then
16860 echo $ECHO_N "(cached) $ECHO_C" >&6
16861 else
16862 ac_check_lib_save_LIBS=$LIBS
16863 LIBS="-lnsl $LIBS"
16864 cat >conftest.$ac_ext <<_ACEOF
16865 /* confdefs.h. */
16866 _ACEOF
16867 cat confdefs.h >>conftest.$ac_ext
16868 cat >>conftest.$ac_ext <<_ACEOF
16869 /* end confdefs.h. */
16870
16871 /* Override any gcc2 internal prototype to avoid an error. */
16872 #ifdef __cplusplus
16873 extern "C"
16874 #endif
16875 /* We use char because int might match the return type of a gcc2
16876 builtin and then its argument prototype would still apply. */
16877 char t_open ();
16878 int
16879 main ()
16880 {
16881 t_open ();
16882 ;
16883 return 0;
16884 }
16885 _ACEOF
16886 rm -f conftest.$ac_objext conftest$ac_exeext
16887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16888 (eval $ac_link) 2>conftest.er1
16889 ac_status=$?
16890 grep -v '^ *+' conftest.er1 >conftest.err
16891 rm -f conftest.er1
16892 cat conftest.err >&5
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); } &&
16895 { ac_try='test -z "$ac_c_werror_flag"
16896 || test ! -s conftest.err'
16897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16898 (eval $ac_try) 2>&5
16899 ac_status=$?
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); }; } &&
16902 { ac_try='test -s conftest$ac_exeext'
16903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904 (eval $ac_try) 2>&5
16905 ac_status=$?
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; }; then
16908 ac_cv_lib_nsl_t_open=yes
16909 else
16910 echo "$as_me: failed program was:" >&5
16911 sed 's/^/| /' conftest.$ac_ext >&5
16912
16913 ac_cv_lib_nsl_t_open=no
16914 fi
16915 rm -f conftest.err conftest.$ac_objext \
16916 conftest$ac_exeext conftest.$ac_ext
16917 LIBS=$ac_check_lib_save_LIBS
16918 fi
16919 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
16920 echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
16921 if test $ac_cv_lib_nsl_t_open = yes; then
16922 bash_cv_have_libnsl=yes
16923 else
16924 bash_cv_have_libnsl=no
16925 fi
16926
16927 fi
16928
16929 if test "X$_bash_needmsg" = Xyes; then
16930 echo "$as_me:$LINENO: result: $bash_cv_have_libnsl" >&5
16931 echo "${ECHO_T}$bash_cv_have_libnsl" >&6
16932 _bash_needmsg=
16933 fi
16934 if test $bash_cv_have_libnsl = yes; then
16935 LIBS="-lsocket -lnsl $LIBS"
16936 else
16937 LIBS="-lsocket $LIBS"
16938 fi
16939 cat >>confdefs.h <<\_ACEOF
16940 @%:@define HAVE_LIBSOCKET 1
16941 _ACEOF
16942
16943 cat >>confdefs.h <<\_ACEOF
16944 @%:@define HAVE_GETPEERNAME 1
16945 _ACEOF
16946
16947 fi
16948
16949 fi
16950 if test "$ac_cv_func_gethostbyname" = no; then
16951 if test "X$bash_cv_have_gethostbyname" = "X"; then
16952 _bash_needmsg=yes
16953 else
16954 echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
16955 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
16956 _bash_needmsg=
16957 fi
16958 if test "${bash_cv_have_gethostbyname+set}" = set; then
16959 echo $ECHO_N "(cached) $ECHO_C" >&6
16960 else
16961 cat >conftest.$ac_ext <<_ACEOF
16962 /* confdefs.h. */
16963 _ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h. */
16967 #include <netdb.h>
16968 int
16969 main ()
16970 {
16971 struct hostent *hp;
16972 hp = gethostbyname("localhost");
16973
16974 ;
16975 return 0;
16976 }
16977 _ACEOF
16978 rm -f conftest.$ac_objext conftest$ac_exeext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16980 (eval $ac_link) 2>conftest.er1
16981 ac_status=$?
16982 grep -v '^ *+' conftest.er1 >conftest.err
16983 rm -f conftest.er1
16984 cat conftest.err >&5
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
16987 { ac_try='test -z "$ac_c_werror_flag"
16988 || test ! -s conftest.err'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; } &&
16994 { ac_try='test -s conftest$ac_exeext'
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16997 ac_status=$?
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; }; then
17000 bash_cv_have_gethostbyname=yes
17001 else
17002 echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17004
17005 bash_cv_have_gethostbyname=no
17006 fi
17007 rm -f conftest.err conftest.$ac_objext \
17008 conftest$ac_exeext conftest.$ac_ext
17009
17010 fi
17011
17012 if test "X$_bash_needmsg" = Xyes; then
17013 echo "$as_me:$LINENO: checking for gethostbyname in socket library" >&5
17014 echo $ECHO_N "checking for gethostbyname in socket library... $ECHO_C" >&6
17015 fi
17016 echo "$as_me:$LINENO: result: $bash_cv_have_gethostbyname" >&5
17017 echo "${ECHO_T}$bash_cv_have_gethostbyname" >&6
17018 if test "$bash_cv_have_gethostbyname" = yes; then
17019 cat >>confdefs.h <<\_ACEOF
17020 @%:@define HAVE_GETHOSTBYNAME 1
17021 _ACEOF
17022
17023 fi
17024
17025 fi
17026
17027 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
17028 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
17029 if test "${ac_cv_type_uid_t+set}" = set; then
17030 echo $ECHO_N "(cached) $ECHO_C" >&6
17031 else
17032 cat >conftest.$ac_ext <<_ACEOF
17033 /* confdefs.h. */
17034 _ACEOF
17035 cat confdefs.h >>conftest.$ac_ext
17036 cat >>conftest.$ac_ext <<_ACEOF
17037 /* end confdefs.h. */
17038 #include <sys/types.h>
17039
17040 _ACEOF
17041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17042 $EGREP "uid_t" >/dev/null 2>&1; then
17043 ac_cv_type_uid_t=yes
17044 else
17045 ac_cv_type_uid_t=no
17046 fi
17047 rm -f conftest*
17048
17049 fi
17050 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
17051 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
17052 if test $ac_cv_type_uid_t = no; then
17053
17054 cat >>confdefs.h <<\_ACEOF
17055 @%:@define uid_t int
17056 _ACEOF
17057
17058
17059 cat >>confdefs.h <<\_ACEOF
17060 @%:@define gid_t int
17061 _ACEOF
17062
17063 fi
17064
17065 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
17066 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
17067 if test "${ac_cv_type_getgroups+set}" = set; then
17068 echo $ECHO_N "(cached) $ECHO_C" >&6
17069 else
17070 if test "$cross_compiling" = yes; then
17071 ac_cv_type_getgroups=cross
17072 else
17073 cat >conftest.$ac_ext <<_ACEOF
17074 /* confdefs.h. */
17075 _ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h. */
17079 /* Thanks to Mike Rendell for this test. */
17080 #include <sys/types.h>
17081 #define NGID 256
17082 #undef MAX
17083 #define MAX(x, y) ((x) > (y) ? (x) : (y))
17084
17085 int
17086 main ()
17087 {
17088 gid_t gidset[NGID];
17089 int i, n;
17090 union { gid_t gval; long lval; } val;
17091
17092 val.lval = -1;
17093 for (i = 0; i < NGID; i++)
17094 gidset[i] = val.gval;
17095 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
17096 gidset);
17097 /* Exit non-zero if getgroups seems to require an array of ints. This
17098 happens when gid_t is short but getgroups modifies an array of ints. */
17099 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
17100 }
17101 _ACEOF
17102 rm -f conftest$ac_exeext
17103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17104 (eval $ac_link) 2>&5
17105 ac_status=$?
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17109 (eval $ac_try) 2>&5
17110 ac_status=$?
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; }; then
17113 ac_cv_type_getgroups=gid_t
17114 else
17115 echo "$as_me: program exited with status $ac_status" >&5
17116 echo "$as_me: failed program was:" >&5
17117 sed 's/^/| /' conftest.$ac_ext >&5
17118
17119 ( exit $ac_status )
17120 ac_cv_type_getgroups=int
17121 fi
17122 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17123 fi
17124 if test $ac_cv_type_getgroups = cross; then
17125 cat >conftest.$ac_ext <<_ACEOF
17126 /* confdefs.h. */
17127 _ACEOF
17128 cat confdefs.h >>conftest.$ac_ext
17129 cat >>conftest.$ac_ext <<_ACEOF
17130 /* end confdefs.h. */
17131 #include <unistd.h>
17132
17133 _ACEOF
17134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17135 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
17136 ac_cv_type_getgroups=gid_t
17137 else
17138 ac_cv_type_getgroups=int
17139 fi
17140 rm -f conftest*
17141
17142 fi
17143 fi
17144 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
17145 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
17146
17147 cat >>confdefs.h <<_ACEOF
17148 @%:@define GETGROUPS_T $ac_cv_type_getgroups
17149 _ACEOF
17150
17151
17152 echo "$as_me:$LINENO: checking for off_t" >&5
17153 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
17154 if test "${ac_cv_type_off_t+set}" = set; then
17155 echo $ECHO_N "(cached) $ECHO_C" >&6
17156 else
17157 cat >conftest.$ac_ext <<_ACEOF
17158 /* confdefs.h. */
17159 _ACEOF
17160 cat confdefs.h >>conftest.$ac_ext
17161 cat >>conftest.$ac_ext <<_ACEOF
17162 /* end confdefs.h. */
17163 $ac_includes_default
17164 int
17165 main ()
17166 {
17167 if ((off_t *) 0)
17168 return 0;
17169 if (sizeof (off_t))
17170 return 0;
17171 ;
17172 return 0;
17173 }
17174 _ACEOF
17175 rm -f conftest.$ac_objext
17176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17177 (eval $ac_compile) 2>conftest.er1
17178 ac_status=$?
17179 grep -v '^ *+' conftest.er1 >conftest.err
17180 rm -f conftest.er1
17181 cat conftest.err >&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } &&
17184 { ac_try='test -z "$ac_c_werror_flag"
17185 || test ! -s conftest.err'
17186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17187 (eval $ac_try) 2>&5
17188 ac_status=$?
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; } &&
17191 { ac_try='test -s conftest.$ac_objext'
17192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193 (eval $ac_try) 2>&5
17194 ac_status=$?
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); }; }; then
17197 ac_cv_type_off_t=yes
17198 else
17199 echo "$as_me: failed program was:" >&5
17200 sed 's/^/| /' conftest.$ac_ext >&5
17201
17202 ac_cv_type_off_t=no
17203 fi
17204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17205 fi
17206 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
17207 echo "${ECHO_T}$ac_cv_type_off_t" >&6
17208 if test $ac_cv_type_off_t = yes; then
17209 :
17210 else
17211
17212 cat >>confdefs.h <<_ACEOF
17213 @%:@define off_t long
17214 _ACEOF
17215
17216 fi
17217
17218 echo "$as_me:$LINENO: checking for mode_t" >&5
17219 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
17220 if test "${ac_cv_type_mode_t+set}" = set; then
17221 echo $ECHO_N "(cached) $ECHO_C" >&6
17222 else
17223 cat >conftest.$ac_ext <<_ACEOF
17224 /* confdefs.h. */
17225 _ACEOF
17226 cat confdefs.h >>conftest.$ac_ext
17227 cat >>conftest.$ac_ext <<_ACEOF
17228 /* end confdefs.h. */
17229 $ac_includes_default
17230 int
17231 main ()
17232 {
17233 if ((mode_t *) 0)
17234 return 0;
17235 if (sizeof (mode_t))
17236 return 0;
17237 ;
17238 return 0;
17239 }
17240 _ACEOF
17241 rm -f conftest.$ac_objext
17242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17243 (eval $ac_compile) 2>conftest.er1
17244 ac_status=$?
17245 grep -v '^ *+' conftest.er1 >conftest.err
17246 rm -f conftest.er1
17247 cat conftest.err >&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
17250 { ac_try='test -z "$ac_c_werror_flag"
17251 || test ! -s conftest.err'
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17254 ac_status=$?
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; } &&
17257 { ac_try='test -s conftest.$ac_objext'
17258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259 (eval $ac_try) 2>&5
17260 ac_status=$?
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; }; then
17263 ac_cv_type_mode_t=yes
17264 else
17265 echo "$as_me: failed program was:" >&5
17266 sed 's/^/| /' conftest.$ac_ext >&5
17267
17268 ac_cv_type_mode_t=no
17269 fi
17270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17271 fi
17272 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
17273 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
17274 if test $ac_cv_type_mode_t = yes; then
17275 :
17276 else
17277
17278 cat >>confdefs.h <<_ACEOF
17279 @%:@define mode_t int
17280 _ACEOF
17281
17282 fi
17283
17284 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
17285 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
17286 if test "${ac_cv_type_uid_t+set}" = set; then
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
17288 else
17289 cat >conftest.$ac_ext <<_ACEOF
17290 /* confdefs.h. */
17291 _ACEOF
17292 cat confdefs.h >>conftest.$ac_ext
17293 cat >>conftest.$ac_ext <<_ACEOF
17294 /* end confdefs.h. */
17295 #include <sys/types.h>
17296
17297 _ACEOF
17298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17299 $EGREP "uid_t" >/dev/null 2>&1; then
17300 ac_cv_type_uid_t=yes
17301 else
17302 ac_cv_type_uid_t=no
17303 fi
17304 rm -f conftest*
17305
17306 fi
17307 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
17308 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
17309 if test $ac_cv_type_uid_t = no; then
17310
17311 cat >>confdefs.h <<\_ACEOF
17312 @%:@define uid_t int
17313 _ACEOF
17314
17315
17316 cat >>confdefs.h <<\_ACEOF
17317 @%:@define gid_t int
17318 _ACEOF
17319
17320 fi
17321
17322 echo "$as_me:$LINENO: checking for pid_t" >&5
17323 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17324 if test "${ac_cv_type_pid_t+set}" = set; then
17325 echo $ECHO_N "(cached) $ECHO_C" >&6
17326 else
17327 cat >conftest.$ac_ext <<_ACEOF
17328 /* confdefs.h. */
17329 _ACEOF
17330 cat confdefs.h >>conftest.$ac_ext
17331 cat >>conftest.$ac_ext <<_ACEOF
17332 /* end confdefs.h. */
17333 $ac_includes_default
17334 int
17335 main ()
17336 {
17337 if ((pid_t *) 0)
17338 return 0;
17339 if (sizeof (pid_t))
17340 return 0;
17341 ;
17342 return 0;
17343 }
17344 _ACEOF
17345 rm -f conftest.$ac_objext
17346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17347 (eval $ac_compile) 2>conftest.er1
17348 ac_status=$?
17349 grep -v '^ *+' conftest.er1 >conftest.err
17350 rm -f conftest.er1
17351 cat conftest.err >&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); } &&
17354 { ac_try='test -z "$ac_c_werror_flag"
17355 || test ! -s conftest.err'
17356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17357 (eval $ac_try) 2>&5
17358 ac_status=$?
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); }; } &&
17361 { ac_try='test -s conftest.$ac_objext'
17362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17363 (eval $ac_try) 2>&5
17364 ac_status=$?
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; }; then
17367 ac_cv_type_pid_t=yes
17368 else
17369 echo "$as_me: failed program was:" >&5
17370 sed 's/^/| /' conftest.$ac_ext >&5
17371
17372 ac_cv_type_pid_t=no
17373 fi
17374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17375 fi
17376 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17377 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17378 if test $ac_cv_type_pid_t = yes; then
17379 :
17380 else
17381
17382 cat >>confdefs.h <<_ACEOF
17383 @%:@define pid_t int
17384 _ACEOF
17385
17386 fi
17387
17388 echo "$as_me:$LINENO: checking for size_t" >&5
17389 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17390 if test "${ac_cv_type_size_t+set}" = set; then
17391 echo $ECHO_N "(cached) $ECHO_C" >&6
17392 else
17393 cat >conftest.$ac_ext <<_ACEOF
17394 /* confdefs.h. */
17395 _ACEOF
17396 cat confdefs.h >>conftest.$ac_ext
17397 cat >>conftest.$ac_ext <<_ACEOF
17398 /* end confdefs.h. */
17399 $ac_includes_default
17400 int
17401 main ()
17402 {
17403 if ((size_t *) 0)
17404 return 0;
17405 if (sizeof (size_t))
17406 return 0;
17407 ;
17408 return 0;
17409 }
17410 _ACEOF
17411 rm -f conftest.$ac_objext
17412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17413 (eval $ac_compile) 2>conftest.er1
17414 ac_status=$?
17415 grep -v '^ *+' conftest.er1 >conftest.err
17416 rm -f conftest.er1
17417 cat conftest.err >&5
17418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419 (exit $ac_status); } &&
17420 { ac_try='test -z "$ac_c_werror_flag"
17421 || test ! -s conftest.err'
17422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17423 (eval $ac_try) 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_cv_type_size_t=yes
17434 else
17435 echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.$ac_ext >&5
17437
17438 ac_cv_type_size_t=no
17439 fi
17440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17441 fi
17442 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17443 echo "${ECHO_T}$ac_cv_type_size_t" >&6
17444 if test $ac_cv_type_size_t = yes; then
17445 :
17446 else
17447
17448 cat >>confdefs.h <<_ACEOF
17449 @%:@define size_t unsigned
17450 _ACEOF
17451
17452 fi
17453
17454 echo "$as_me:$LINENO: checking for ssize_t" >&5
17455 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17456 if test "${ac_cv_type_ssize_t+set}" = set; then
17457 echo $ECHO_N "(cached) $ECHO_C" >&6
17458 else
17459 cat >conftest.$ac_ext <<_ACEOF
17460 /* confdefs.h. */
17461 _ACEOF
17462 cat confdefs.h >>conftest.$ac_ext
17463 cat >>conftest.$ac_ext <<_ACEOF
17464 /* end confdefs.h. */
17465 $ac_includes_default
17466 int
17467 main ()
17468 {
17469 if ((ssize_t *) 0)
17470 return 0;
17471 if (sizeof (ssize_t))
17472 return 0;
17473 ;
17474 return 0;
17475 }
17476 _ACEOF
17477 rm -f conftest.$ac_objext
17478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17479 (eval $ac_compile) 2>conftest.er1
17480 ac_status=$?
17481 grep -v '^ *+' conftest.er1 >conftest.err
17482 rm -f conftest.er1
17483 cat conftest.err >&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } &&
17486 { ac_try='test -z "$ac_c_werror_flag"
17487 || test ! -s conftest.err'
17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17490 ac_status=$?
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; } &&
17493 { ac_try='test -s conftest.$ac_objext'
17494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17495 (eval $ac_try) 2>&5
17496 ac_status=$?
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); }; }; then
17499 ac_cv_type_ssize_t=yes
17500 else
17501 echo "$as_me: failed program was:" >&5
17502 sed 's/^/| /' conftest.$ac_ext >&5
17503
17504 ac_cv_type_ssize_t=no
17505 fi
17506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17507 fi
17508 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17509 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17510 if test $ac_cv_type_ssize_t = yes; then
17511 :
17512 else
17513
17514 cat >>confdefs.h <<_ACEOF
17515 @%:@define ssize_t int
17516 _ACEOF
17517
17518 fi
17519
17520 echo "$as_me:$LINENO: checking for time_t" >&5
17521 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
17522 if test "${ac_cv_type_time_t+set}" = set; then
17523 echo $ECHO_N "(cached) $ECHO_C" >&6
17524 else
17525 cat >conftest.$ac_ext <<_ACEOF
17526 /* confdefs.h. */
17527 _ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17531 $ac_includes_default
17532 int
17533 main ()
17534 {
17535 if ((time_t *) 0)
17536 return 0;
17537 if (sizeof (time_t))
17538 return 0;
17539 ;
17540 return 0;
17541 }
17542 _ACEOF
17543 rm -f conftest.$ac_objext
17544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17545 (eval $ac_compile) 2>conftest.er1
17546 ac_status=$?
17547 grep -v '^ *+' conftest.er1 >conftest.err
17548 rm -f conftest.er1
17549 cat conftest.err >&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } &&
17552 { ac_try='test -z "$ac_c_werror_flag"
17553 || test ! -s conftest.err'
17554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555 (eval $ac_try) 2>&5
17556 ac_status=$?
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; } &&
17559 { ac_try='test -s conftest.$ac_objext'
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17562 ac_status=$?
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; }; then
17565 ac_cv_type_time_t=yes
17566 else
17567 echo "$as_me: failed program was:" >&5
17568 sed 's/^/| /' conftest.$ac_ext >&5
17569
17570 ac_cv_type_time_t=no
17571 fi
17572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17573 fi
17574 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
17575 echo "${ECHO_T}$ac_cv_type_time_t" >&6
17576 if test $ac_cv_type_time_t = yes; then
17577 :
17578 else
17579
17580 cat >>confdefs.h <<_ACEOF
17581 @%:@define time_t long
17582 _ACEOF
17583
17584 fi
17585
17586
17587
17588 echo "$as_me:$LINENO: checking for long long" >&5
17589 echo $ECHO_N "checking for long long... $ECHO_C" >&6
17590 if test "${bash_cv_type_long_long+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17592 else
17593 cat >conftest.$ac_ext <<_ACEOF
17594 /* confdefs.h. */
17595 _ACEOF
17596 cat confdefs.h >>conftest.$ac_ext
17597 cat >>conftest.$ac_ext <<_ACEOF
17598 /* end confdefs.h. */
17599
17600 long long ll = 1; int i = 63;
17601 int
17602 main ()
17603 {
17604
17605 long long llm = (long long) -1;
17606 return ll << i | ll >> i | llm / ll | llm % ll;
17607
17608 ;
17609 return 0;
17610 }
17611 _ACEOF
17612 rm -f conftest.$ac_objext conftest$ac_exeext
17613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17614 (eval $ac_link) 2>conftest.er1
17615 ac_status=$?
17616 grep -v '^ *+' conftest.er1 >conftest.err
17617 rm -f conftest.er1
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } &&
17621 { ac_try='test -z "$ac_c_werror_flag"
17622 || test ! -s conftest.err'
17623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17624 (eval $ac_try) 2>&5
17625 ac_status=$?
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); }; } &&
17628 { ac_try='test -s conftest$ac_exeext'
17629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17630 (eval $ac_try) 2>&5
17631 ac_status=$?
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; }; then
17634 bash_cv_type_long_long='long long'
17635 else
17636 echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.$ac_ext >&5
17638
17639 bash_cv_type_long_long='long'
17640 fi
17641 rm -f conftest.err conftest.$ac_objext \
17642 conftest$ac_exeext conftest.$ac_ext
17643 fi
17644 echo "$as_me:$LINENO: result: $bash_cv_type_long_long" >&5
17645 echo "${ECHO_T}$bash_cv_type_long_long" >&6
17646 if test "$bash_cv_type_long_long" = 'long long'; then
17647 cat >>confdefs.h <<\_ACEOF
17648 @%:@define HAVE_LONG_LONG 1
17649 _ACEOF
17650
17651 fi
17652
17653
17654 echo "$as_me:$LINENO: checking for unsigned long long" >&5
17655 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
17656 if test "${bash_cv_type_unsigned_long_long+set}" = set; then
17657 echo $ECHO_N "(cached) $ECHO_C" >&6
17658 else
17659 cat >conftest.$ac_ext <<_ACEOF
17660 /* confdefs.h. */
17661 _ACEOF
17662 cat confdefs.h >>conftest.$ac_ext
17663 cat >>conftest.$ac_ext <<_ACEOF
17664 /* end confdefs.h. */
17665
17666 unsigned long long ull = 1; int i = 63;
17667 int
17668 main ()
17669 {
17670
17671 unsigned long long ullmax = (unsigned long long) -1;
17672 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
17673
17674 ;
17675 return 0;
17676 }
17677 _ACEOF
17678 rm -f conftest.$ac_objext conftest$ac_exeext
17679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17680 (eval $ac_link) 2>conftest.er1
17681 ac_status=$?
17682 grep -v '^ *+' conftest.er1 >conftest.err
17683 rm -f conftest.er1
17684 cat conftest.err >&5
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); } &&
17687 { ac_try='test -z "$ac_c_werror_flag"
17688 || test ! -s conftest.err'
17689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17690 (eval $ac_try) 2>&5
17691 ac_status=$?
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); }; } &&
17694 { ac_try='test -s conftest$ac_exeext'
17695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696 (eval $ac_try) 2>&5
17697 ac_status=$?
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; }; then
17700 bash_cv_type_unsigned_long_long='unsigned long long'
17701 else
17702 echo "$as_me: failed program was:" >&5
17703 sed 's/^/| /' conftest.$ac_ext >&5
17704
17705 bash_cv_type_unsigned_long_long='unsigned long'
17706 fi
17707 rm -f conftest.err conftest.$ac_objext \
17708 conftest$ac_exeext conftest.$ac_ext
17709 fi
17710 echo "$as_me:$LINENO: result: $bash_cv_type_unsigned_long_long" >&5
17711 echo "${ECHO_T}$bash_cv_type_unsigned_long_long" >&6
17712 if test "$bash_cv_type_unsigned_long_long" = 'unsigned long long'; then
17713 cat >>confdefs.h <<\_ACEOF
17714 @%:@define HAVE_UNSIGNED_LONG_LONG 1
17715 _ACEOF
17716
17717 fi
17718
17719
17720 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
17721 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
17722 if test "${ac_cv_type_signal+set}" = set; then
17723 echo $ECHO_N "(cached) $ECHO_C" >&6
17724 else
17725 cat >conftest.$ac_ext <<_ACEOF
17726 /* confdefs.h. */
17727 _ACEOF
17728 cat confdefs.h >>conftest.$ac_ext
17729 cat >>conftest.$ac_ext <<_ACEOF
17730 /* end confdefs.h. */
17731 #include <sys/types.h>
17732 #include <signal.h>
17733 #ifdef signal
17734 # undef signal
17735 #endif
17736 #ifdef __cplusplus
17737 extern "C" void (*signal (int, void (*)(int)))(int);
17738 #else
17739 void (*signal ()) ();
17740 #endif
17741
17742 int
17743 main ()
17744 {
17745 int i;
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>conftest.er1
17753 ac_status=$?
17754 grep -v '^ *+' conftest.er1 >conftest.err
17755 rm -f conftest.er1
17756 cat conftest.err >&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } &&
17759 { ac_try='test -z "$ac_c_werror_flag"
17760 || test ! -s conftest.err'
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17763 ac_status=$?
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; } &&
17766 { ac_try='test -s conftest.$ac_objext'
17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768 (eval $ac_try) 2>&5
17769 ac_status=$?
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; }; then
17772 ac_cv_type_signal=void
17773 else
17774 echo "$as_me: failed program was:" >&5
17775 sed 's/^/| /' conftest.$ac_ext >&5
17776
17777 ac_cv_type_signal=int
17778 fi
17779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17780 fi
17781 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
17782 echo "${ECHO_T}$ac_cv_type_signal" >&6
17783
17784 cat >>confdefs.h <<_ACEOF
17785 @%:@define RETSIGTYPE $ac_cv_type_signal
17786 _ACEOF
17787
17788
17789
17790 echo "$as_me:$LINENO: checking for char" >&5
17791 echo $ECHO_N "checking for char... $ECHO_C" >&6
17792 if test "${ac_cv_type_char+set}" = set; then
17793 echo $ECHO_N "(cached) $ECHO_C" >&6
17794 else
17795 cat >conftest.$ac_ext <<_ACEOF
17796 /* confdefs.h. */
17797 _ACEOF
17798 cat confdefs.h >>conftest.$ac_ext
17799 cat >>conftest.$ac_ext <<_ACEOF
17800 /* end confdefs.h. */
17801 $ac_includes_default
17802 int
17803 main ()
17804 {
17805 if ((char *) 0)
17806 return 0;
17807 if (sizeof (char))
17808 return 0;
17809 ;
17810 return 0;
17811 }
17812 _ACEOF
17813 rm -f conftest.$ac_objext
17814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17815 (eval $ac_compile) 2>conftest.er1
17816 ac_status=$?
17817 grep -v '^ *+' conftest.er1 >conftest.err
17818 rm -f conftest.er1
17819 cat conftest.err >&5
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); } &&
17822 { ac_try='test -z "$ac_c_werror_flag"
17823 || test ! -s conftest.err'
17824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825 (eval $ac_try) 2>&5
17826 ac_status=$?
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); }; } &&
17829 { ac_try='test -s conftest.$ac_objext'
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17832 ac_status=$?
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; }; then
17835 ac_cv_type_char=yes
17836 else
17837 echo "$as_me: failed program was:" >&5
17838 sed 's/^/| /' conftest.$ac_ext >&5
17839
17840 ac_cv_type_char=no
17841 fi
17842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17843 fi
17844 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17845 echo "${ECHO_T}$ac_cv_type_char" >&6
17846
17847 echo "$as_me:$LINENO: checking size of char" >&5
17848 echo $ECHO_N "checking size of char... $ECHO_C" >&6
17849 if test "${ac_cv_sizeof_char+set}" = set; then
17850 echo $ECHO_N "(cached) $ECHO_C" >&6
17851 else
17852 if test "$ac_cv_type_char" = yes; then
17853 # The cast to unsigned long works around a bug in the HP C Compiler
17854 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17855 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17856 # This bug is HP SR number 8606223364.
17857 if test "$cross_compiling" = yes; then
17858 # Depending upon the size, compute the lo and hi bounds.
17859 cat >conftest.$ac_ext <<_ACEOF
17860 /* confdefs.h. */
17861 _ACEOF
17862 cat confdefs.h >>conftest.$ac_ext
17863 cat >>conftest.$ac_ext <<_ACEOF
17864 /* end confdefs.h. */
17865 $ac_includes_default
17866 int
17867 main ()
17868 {
17869 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= 0)@:>@;
17870 test_array @<:@0@:>@ = 0
17871
17872 ;
17873 return 0;
17874 }
17875 _ACEOF
17876 rm -f conftest.$ac_objext
17877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17878 (eval $ac_compile) 2>conftest.er1
17879 ac_status=$?
17880 grep -v '^ *+' conftest.er1 >conftest.err
17881 rm -f conftest.er1
17882 cat conftest.err >&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); } &&
17885 { ac_try='test -z "$ac_c_werror_flag"
17886 || test ! -s conftest.err'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17889 ac_status=$?
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; } &&
17892 { ac_try='test -s conftest.$ac_objext'
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17895 ac_status=$?
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; }; then
17898 ac_lo=0 ac_mid=0
17899 while :; do
17900 cat >conftest.$ac_ext <<_ACEOF
17901 /* confdefs.h. */
17902 _ACEOF
17903 cat confdefs.h >>conftest.$ac_ext
17904 cat >>conftest.$ac_ext <<_ACEOF
17905 /* end confdefs.h. */
17906 $ac_includes_default
17907 int
17908 main ()
17909 {
17910 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@;
17911 test_array @<:@0@:>@ = 0
17912
17913 ;
17914 return 0;
17915 }
17916 _ACEOF
17917 rm -f conftest.$ac_objext
17918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17919 (eval $ac_compile) 2>conftest.er1
17920 ac_status=$?
17921 grep -v '^ *+' conftest.er1 >conftest.err
17922 rm -f conftest.er1
17923 cat conftest.err >&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); } &&
17926 { ac_try='test -z "$ac_c_werror_flag"
17927 || test ! -s conftest.err'
17928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17929 (eval $ac_try) 2>&5
17930 ac_status=$?
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); }; } &&
17933 { ac_try='test -s conftest.$ac_objext'
17934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17935 (eval $ac_try) 2>&5
17936 ac_status=$?
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); }; }; then
17939 ac_hi=$ac_mid; break
17940 else
17941 echo "$as_me: failed program was:" >&5
17942 sed 's/^/| /' conftest.$ac_ext >&5
17943
17944 ac_lo=`expr $ac_mid + 1`
17945 if test $ac_lo -le $ac_mid; then
17946 ac_lo= ac_hi=
17947 break
17948 fi
17949 ac_mid=`expr 2 '*' $ac_mid + 1`
17950 fi
17951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17952 done
17953 else
17954 echo "$as_me: failed program was:" >&5
17955 sed 's/^/| /' conftest.$ac_ext >&5
17956
17957 cat >conftest.$ac_ext <<_ACEOF
17958 /* confdefs.h. */
17959 _ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h. */
17963 $ac_includes_default
17964 int
17965 main ()
17966 {
17967 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) < 0)@:>@;
17968 test_array @<:@0@:>@ = 0
17969
17970 ;
17971 return 0;
17972 }
17973 _ACEOF
17974 rm -f conftest.$ac_objext
17975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17976 (eval $ac_compile) 2>conftest.er1
17977 ac_status=$?
17978 grep -v '^ *+' conftest.er1 >conftest.err
17979 rm -f conftest.er1
17980 cat conftest.err >&5
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); } &&
17983 { ac_try='test -z "$ac_c_werror_flag"
17984 || test ! -s conftest.err'
17985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17986 (eval $ac_try) 2>&5
17987 ac_status=$?
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); }; } &&
17990 { ac_try='test -s conftest.$ac_objext'
17991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17992 (eval $ac_try) 2>&5
17993 ac_status=$?
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); }; }; then
17996 ac_hi=-1 ac_mid=-1
17997 while :; do
17998 cat >conftest.$ac_ext <<_ACEOF
17999 /* confdefs.h. */
18000 _ACEOF
18001 cat confdefs.h >>conftest.$ac_ext
18002 cat >>conftest.$ac_ext <<_ACEOF
18003 /* end confdefs.h. */
18004 $ac_includes_default
18005 int
18006 main ()
18007 {
18008 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)@:>@;
18009 test_array @<:@0@:>@ = 0
18010
18011 ;
18012 return 0;
18013 }
18014 _ACEOF
18015 rm -f conftest.$ac_objext
18016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18017 (eval $ac_compile) 2>conftest.er1
18018 ac_status=$?
18019 grep -v '^ *+' conftest.er1 >conftest.err
18020 rm -f conftest.er1
18021 cat conftest.err >&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); } &&
18024 { ac_try='test -z "$ac_c_werror_flag"
18025 || test ! -s conftest.err'
18026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18027 (eval $ac_try) 2>&5
18028 ac_status=$?
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); }; } &&
18031 { ac_try='test -s conftest.$ac_objext'
18032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18033 (eval $ac_try) 2>&5
18034 ac_status=$?
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); }; }; then
18037 ac_lo=$ac_mid; break
18038 else
18039 echo "$as_me: failed program was:" >&5
18040 sed 's/^/| /' conftest.$ac_ext >&5
18041
18042 ac_hi=`expr '(' $ac_mid ')' - 1`
18043 if test $ac_mid -le $ac_hi; then
18044 ac_lo= ac_hi=
18045 break
18046 fi
18047 ac_mid=`expr 2 '*' $ac_mid`
18048 fi
18049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18050 done
18051 else
18052 echo "$as_me: failed program was:" >&5
18053 sed 's/^/| /' conftest.$ac_ext >&5
18054
18055 ac_lo= ac_hi=
18056 fi
18057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18058 fi
18059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18060 # Binary search between lo and hi bounds.
18061 while test "x$ac_lo" != "x$ac_hi"; do
18062 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18063 cat >conftest.$ac_ext <<_ACEOF
18064 /* confdefs.h. */
18065 _ACEOF
18066 cat confdefs.h >>conftest.$ac_ext
18067 cat >>conftest.$ac_ext <<_ACEOF
18068 /* end confdefs.h. */
18069 $ac_includes_default
18070 int
18071 main ()
18072 {
18073 static int test_array @<:@1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)@:>@;
18074 test_array @<:@0@:>@ = 0
18075
18076 ;
18077 return 0;
18078 }
18079 _ACEOF
18080 rm -f conftest.$ac_objext
18081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18082 (eval $ac_compile) 2>conftest.er1
18083 ac_status=$?
18084 grep -v '^ *+' conftest.er1 >conftest.err
18085 rm -f conftest.er1
18086 cat conftest.err >&5
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); } &&
18089 { ac_try='test -z "$ac_c_werror_flag"
18090 || test ! -s conftest.err'
18091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18092 (eval $ac_try) 2>&5
18093 ac_status=$?
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); }; } &&
18096 { ac_try='test -s conftest.$ac_objext'
18097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098 (eval $ac_try) 2>&5
18099 ac_status=$?
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; }; then
18102 ac_hi=$ac_mid
18103 else
18104 echo "$as_me: failed program was:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18106
18107 ac_lo=`expr '(' $ac_mid ')' + 1`
18108 fi
18109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18110 done
18111 case $ac_lo in
18112 ?*) ac_cv_sizeof_char=$ac_lo;;
18113 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18114 See \`config.log' for more details." >&5
18115 echo "$as_me: error: cannot compute sizeof (char), 77
18116 See \`config.log' for more details." >&2;}
18117 { (exit 1); exit 1; }; } ;;
18118 esac
18119 else
18120 if test "$cross_compiling" = yes; then
18121 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18122 See \`config.log' for more details." >&5
18123 echo "$as_me: error: cannot run test program while cross compiling
18124 See \`config.log' for more details." >&2;}
18125 { (exit 1); exit 1; }; }
18126 else
18127 cat >conftest.$ac_ext <<_ACEOF
18128 /* confdefs.h. */
18129 _ACEOF
18130 cat confdefs.h >>conftest.$ac_ext
18131 cat >>conftest.$ac_ext <<_ACEOF
18132 /* end confdefs.h. */
18133 $ac_includes_default
18134 long longval () { return (long) (sizeof (char)); }
18135 unsigned long ulongval () { return (long) (sizeof (char)); }
18136 @%:@include <stdio.h>
18137 @%:@include <stdlib.h>
18138 int
18139 main ()
18140 {
18141
18142 FILE *f = fopen ("conftest.val", "w");
18143 if (! f)
18144 exit (1);
18145 if (((long) (sizeof (char))) < 0)
18146 {
18147 long i = longval ();
18148 if (i != ((long) (sizeof (char))))
18149 exit (1);
18150 fprintf (f, "%ld\n", i);
18151 }
18152 else
18153 {
18154 unsigned long i = ulongval ();
18155 if (i != ((long) (sizeof (char))))
18156 exit (1);
18157 fprintf (f, "%lu\n", i);
18158 }
18159 exit (ferror (f) || fclose (f) != 0);
18160
18161 ;
18162 return 0;
18163 }
18164 _ACEOF
18165 rm -f conftest$ac_exeext
18166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18167 (eval $ac_link) 2>&5
18168 ac_status=$?
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18172 (eval $ac_try) 2>&5
18173 ac_status=$?
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); }; }; then
18176 ac_cv_sizeof_char=`cat conftest.val`
18177 else
18178 echo "$as_me: program exited with status $ac_status" >&5
18179 echo "$as_me: failed program was:" >&5
18180 sed 's/^/| /' conftest.$ac_ext >&5
18181
18182 ( exit $ac_status )
18183 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18184 See \`config.log' for more details." >&5
18185 echo "$as_me: error: cannot compute sizeof (char), 77
18186 See \`config.log' for more details." >&2;}
18187 { (exit 1); exit 1; }; }
18188 fi
18189 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18190 fi
18191 fi
18192 rm -f conftest.val
18193 else
18194 ac_cv_sizeof_char=0
18195 fi
18196 fi
18197 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18198 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18199 cat >>confdefs.h <<_ACEOF
18200 @%:@define SIZEOF_CHAR $ac_cv_sizeof_char
18201 _ACEOF
18202
18203
18204 echo "$as_me:$LINENO: checking for short" >&5
18205 echo $ECHO_N "checking for short... $ECHO_C" >&6
18206 if test "${ac_cv_type_short+set}" = set; then
18207 echo $ECHO_N "(cached) $ECHO_C" >&6
18208 else
18209 cat >conftest.$ac_ext <<_ACEOF
18210 /* confdefs.h. */
18211 _ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h. */
18215 $ac_includes_default
18216 int
18217 main ()
18218 {
18219 if ((short *) 0)
18220 return 0;
18221 if (sizeof (short))
18222 return 0;
18223 ;
18224 return 0;
18225 }
18226 _ACEOF
18227 rm -f conftest.$ac_objext
18228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18229 (eval $ac_compile) 2>conftest.er1
18230 ac_status=$?
18231 grep -v '^ *+' conftest.er1 >conftest.err
18232 rm -f conftest.er1
18233 cat conftest.err >&5
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); } &&
18236 { ac_try='test -z "$ac_c_werror_flag"
18237 || test ! -s conftest.err'
18238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239 (eval $ac_try) 2>&5
18240 ac_status=$?
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; } &&
18243 { ac_try='test -s conftest.$ac_objext'
18244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18245 (eval $ac_try) 2>&5
18246 ac_status=$?
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); }; }; then
18249 ac_cv_type_short=yes
18250 else
18251 echo "$as_me: failed program was:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18253
18254 ac_cv_type_short=no
18255 fi
18256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18257 fi
18258 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18259 echo "${ECHO_T}$ac_cv_type_short" >&6
18260
18261 echo "$as_me:$LINENO: checking size of short" >&5
18262 echo $ECHO_N "checking size of short... $ECHO_C" >&6
18263 if test "${ac_cv_sizeof_short+set}" = set; then
18264 echo $ECHO_N "(cached) $ECHO_C" >&6
18265 else
18266 if test "$ac_cv_type_short" = yes; then
18267 # The cast to unsigned long works around a bug in the HP C Compiler
18268 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18269 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18270 # This bug is HP SR number 8606223364.
18271 if test "$cross_compiling" = yes; then
18272 # Depending upon the size, compute the lo and hi bounds.
18273 cat >conftest.$ac_ext <<_ACEOF
18274 /* confdefs.h. */
18275 _ACEOF
18276 cat confdefs.h >>conftest.$ac_ext
18277 cat >>conftest.$ac_ext <<_ACEOF
18278 /* end confdefs.h. */
18279 $ac_includes_default
18280 int
18281 main ()
18282 {
18283 static int test_array @<:@1 - 2 * !(((long) (sizeof (short))) >= 0)@:>@;
18284 test_array @<:@0@:>@ = 0
18285
18286 ;
18287 return 0;
18288 }
18289 _ACEOF
18290 rm -f conftest.$ac_objext
18291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18292 (eval $ac_compile) 2>conftest.er1
18293 ac_status=$?
18294 grep -v '^ *+' conftest.er1 >conftest.err
18295 rm -f conftest.er1
18296 cat conftest.err >&5
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); } &&
18299 { ac_try='test -z "$ac_c_werror_flag"
18300 || test ! -s conftest.err'
18301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302 (eval $ac_try) 2>&5
18303 ac_status=$?
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; } &&
18306 { ac_try='test -s conftest.$ac_objext'
18307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18308 (eval $ac_try) 2>&5
18309 ac_status=$?
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); }; }; then
18312 ac_lo=0 ac_mid=0
18313 while :; do
18314 cat >conftest.$ac_ext <<_ACEOF
18315 /* confdefs.h. */
18316 _ACEOF
18317 cat confdefs.h >>conftest.$ac_ext
18318 cat >>conftest.$ac_ext <<_ACEOF
18319 /* end confdefs.h. */
18320 $ac_includes_default
18321 int
18322 main ()
18323 {
18324 static int test_array @<:@1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)@:>@;
18325 test_array @<:@0@:>@ = 0
18326
18327 ;
18328 return 0;
18329 }
18330 _ACEOF
18331 rm -f conftest.$ac_objext
18332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18333 (eval $ac_compile) 2>conftest.er1
18334 ac_status=$?
18335 grep -v '^ *+' conftest.er1 >conftest.err
18336 rm -f conftest.er1
18337 cat conftest.err >&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } &&
18340 { ac_try='test -z "$ac_c_werror_flag"
18341 || test ! -s conftest.err'
18342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18343 (eval $ac_try) 2>&5
18344 ac_status=$?
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; } &&
18347 { ac_try='test -s conftest.$ac_objext'
18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18350 ac_status=$?
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; }; then
18353 ac_hi=$ac_mid; break
18354 else
18355 echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18357
18358 ac_lo=`expr $ac_mid + 1`
18359 if test $ac_lo -le $ac_mid; then
18360 ac_lo= ac_hi=
18361 break
18362 fi
18363 ac_mid=`expr 2 '*' $ac_mid + 1`
18364 fi
18365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18366 done
18367 else
18368 echo "$as_me: failed program was:" >&5
18369 sed 's/^/| /' conftest.$ac_ext >&5
18370
18371 cat >conftest.$ac_ext <<_ACEOF
18372 /* confdefs.h. */
18373 _ACEOF
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h. */
18377 $ac_includes_default
18378 int
18379 main ()
18380 {
18381 static int test_array @<:@1 - 2 * !(((long) (sizeof (short))) < 0)@:>@;
18382 test_array @<:@0@:>@ = 0
18383
18384 ;
18385 return 0;
18386 }
18387 _ACEOF
18388 rm -f conftest.$ac_objext
18389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18390 (eval $ac_compile) 2>conftest.er1
18391 ac_status=$?
18392 grep -v '^ *+' conftest.er1 >conftest.err
18393 rm -f conftest.er1
18394 cat conftest.err >&5
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); } &&
18397 { ac_try='test -z "$ac_c_werror_flag"
18398 || test ! -s conftest.err'
18399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18400 (eval $ac_try) 2>&5
18401 ac_status=$?
18402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403 (exit $ac_status); }; } &&
18404 { ac_try='test -s conftest.$ac_objext'
18405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18406 (eval $ac_try) 2>&5
18407 ac_status=$?
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); }; }; then
18410 ac_hi=-1 ac_mid=-1
18411 while :; do
18412 cat >conftest.$ac_ext <<_ACEOF
18413 /* confdefs.h. */
18414 _ACEOF
18415 cat confdefs.h >>conftest.$ac_ext
18416 cat >>conftest.$ac_ext <<_ACEOF
18417 /* end confdefs.h. */
18418 $ac_includes_default
18419 int
18420 main ()
18421 {
18422 static int test_array @<:@1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)@:>@;
18423 test_array @<:@0@:>@ = 0
18424
18425 ;
18426 return 0;
18427 }
18428 _ACEOF
18429 rm -f conftest.$ac_objext
18430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18431 (eval $ac_compile) 2>conftest.er1
18432 ac_status=$?
18433 grep -v '^ *+' conftest.er1 >conftest.err
18434 rm -f conftest.er1
18435 cat conftest.err >&5
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } &&
18438 { ac_try='test -z "$ac_c_werror_flag"
18439 || test ! -s conftest.err'
18440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18441 (eval $ac_try) 2>&5
18442 ac_status=$?
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); }; } &&
18445 { ac_try='test -s conftest.$ac_objext'
18446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18447 (eval $ac_try) 2>&5
18448 ac_status=$?
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; }; then
18451 ac_lo=$ac_mid; break
18452 else
18453 echo "$as_me: failed program was:" >&5
18454 sed 's/^/| /' conftest.$ac_ext >&5
18455
18456 ac_hi=`expr '(' $ac_mid ')' - 1`
18457 if test $ac_mid -le $ac_hi; then
18458 ac_lo= ac_hi=
18459 break
18460 fi
18461 ac_mid=`expr 2 '*' $ac_mid`
18462 fi
18463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18464 done
18465 else
18466 echo "$as_me: failed program was:" >&5
18467 sed 's/^/| /' conftest.$ac_ext >&5
18468
18469 ac_lo= ac_hi=
18470 fi
18471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18472 fi
18473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18474 # Binary search between lo and hi bounds.
18475 while test "x$ac_lo" != "x$ac_hi"; do
18476 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18477 cat >conftest.$ac_ext <<_ACEOF
18478 /* confdefs.h. */
18479 _ACEOF
18480 cat confdefs.h >>conftest.$ac_ext
18481 cat >>conftest.$ac_ext <<_ACEOF
18482 /* end confdefs.h. */
18483 $ac_includes_default
18484 int
18485 main ()
18486 {
18487 static int test_array @<:@1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)@:>@;
18488 test_array @<:@0@:>@ = 0
18489
18490 ;
18491 return 0;
18492 }
18493 _ACEOF
18494 rm -f conftest.$ac_objext
18495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18496 (eval $ac_compile) 2>conftest.er1
18497 ac_status=$?
18498 grep -v '^ *+' conftest.er1 >conftest.err
18499 rm -f conftest.er1
18500 cat conftest.err >&5
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); } &&
18503 { ac_try='test -z "$ac_c_werror_flag"
18504 || test ! -s conftest.err'
18505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18506 (eval $ac_try) 2>&5
18507 ac_status=$?
18508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18509 (exit $ac_status); }; } &&
18510 { ac_try='test -s conftest.$ac_objext'
18511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18512 (eval $ac_try) 2>&5
18513 ac_status=$?
18514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515 (exit $ac_status); }; }; then
18516 ac_hi=$ac_mid
18517 else
18518 echo "$as_me: failed program was:" >&5
18519 sed 's/^/| /' conftest.$ac_ext >&5
18520
18521 ac_lo=`expr '(' $ac_mid ')' + 1`
18522 fi
18523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18524 done
18525 case $ac_lo in
18526 ?*) ac_cv_sizeof_short=$ac_lo;;
18527 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18528 See \`config.log' for more details." >&5
18529 echo "$as_me: error: cannot compute sizeof (short), 77
18530 See \`config.log' for more details." >&2;}
18531 { (exit 1); exit 1; }; } ;;
18532 esac
18533 else
18534 if test "$cross_compiling" = yes; then
18535 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18536 See \`config.log' for more details." >&5
18537 echo "$as_me: error: cannot run test program while cross compiling
18538 See \`config.log' for more details." >&2;}
18539 { (exit 1); exit 1; }; }
18540 else
18541 cat >conftest.$ac_ext <<_ACEOF
18542 /* confdefs.h. */
18543 _ACEOF
18544 cat confdefs.h >>conftest.$ac_ext
18545 cat >>conftest.$ac_ext <<_ACEOF
18546 /* end confdefs.h. */
18547 $ac_includes_default
18548 long longval () { return (long) (sizeof (short)); }
18549 unsigned long ulongval () { return (long) (sizeof (short)); }
18550 @%:@include <stdio.h>
18551 @%:@include <stdlib.h>
18552 int
18553 main ()
18554 {
18555
18556 FILE *f = fopen ("conftest.val", "w");
18557 if (! f)
18558 exit (1);
18559 if (((long) (sizeof (short))) < 0)
18560 {
18561 long i = longval ();
18562 if (i != ((long) (sizeof (short))))
18563 exit (1);
18564 fprintf (f, "%ld\n", i);
18565 }
18566 else
18567 {
18568 unsigned long i = ulongval ();
18569 if (i != ((long) (sizeof (short))))
18570 exit (1);
18571 fprintf (f, "%lu\n", i);
18572 }
18573 exit (ferror (f) || fclose (f) != 0);
18574
18575 ;
18576 return 0;
18577 }
18578 _ACEOF
18579 rm -f conftest$ac_exeext
18580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18581 (eval $ac_link) 2>&5
18582 ac_status=$?
18583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18586 (eval $ac_try) 2>&5
18587 ac_status=$?
18588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589 (exit $ac_status); }; }; then
18590 ac_cv_sizeof_short=`cat conftest.val`
18591 else
18592 echo "$as_me: program exited with status $ac_status" >&5
18593 echo "$as_me: failed program was:" >&5
18594 sed 's/^/| /' conftest.$ac_ext >&5
18595
18596 ( exit $ac_status )
18597 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18598 See \`config.log' for more details." >&5
18599 echo "$as_me: error: cannot compute sizeof (short), 77
18600 See \`config.log' for more details." >&2;}
18601 { (exit 1); exit 1; }; }
18602 fi
18603 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18604 fi
18605 fi
18606 rm -f conftest.val
18607 else
18608 ac_cv_sizeof_short=0
18609 fi
18610 fi
18611 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18612 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18613 cat >>confdefs.h <<_ACEOF
18614 @%:@define SIZEOF_SHORT $ac_cv_sizeof_short
18615 _ACEOF
18616
18617
18618 echo "$as_me:$LINENO: checking for int" >&5
18619 echo $ECHO_N "checking for int... $ECHO_C" >&6
18620 if test "${ac_cv_type_int+set}" = set; then
18621 echo $ECHO_N "(cached) $ECHO_C" >&6
18622 else
18623 cat >conftest.$ac_ext <<_ACEOF
18624 /* confdefs.h. */
18625 _ACEOF
18626 cat confdefs.h >>conftest.$ac_ext
18627 cat >>conftest.$ac_ext <<_ACEOF
18628 /* end confdefs.h. */
18629 $ac_includes_default
18630 int
18631 main ()
18632 {
18633 if ((int *) 0)
18634 return 0;
18635 if (sizeof (int))
18636 return 0;
18637 ;
18638 return 0;
18639 }
18640 _ACEOF
18641 rm -f conftest.$ac_objext
18642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18643 (eval $ac_compile) 2>conftest.er1
18644 ac_status=$?
18645 grep -v '^ *+' conftest.er1 >conftest.err
18646 rm -f conftest.er1
18647 cat conftest.err >&5
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); } &&
18650 { ac_try='test -z "$ac_c_werror_flag"
18651 || test ! -s conftest.err'
18652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18653 (eval $ac_try) 2>&5
18654 ac_status=$?
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; } &&
18657 { ac_try='test -s conftest.$ac_objext'
18658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18659 (eval $ac_try) 2>&5
18660 ac_status=$?
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); }; }; then
18663 ac_cv_type_int=yes
18664 else
18665 echo "$as_me: failed program was:" >&5
18666 sed 's/^/| /' conftest.$ac_ext >&5
18667
18668 ac_cv_type_int=no
18669 fi
18670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18671 fi
18672 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18673 echo "${ECHO_T}$ac_cv_type_int" >&6
18674
18675 echo "$as_me:$LINENO: checking size of int" >&5
18676 echo $ECHO_N "checking size of int... $ECHO_C" >&6
18677 if test "${ac_cv_sizeof_int+set}" = set; then
18678 echo $ECHO_N "(cached) $ECHO_C" >&6
18679 else
18680 if test "$ac_cv_type_int" = yes; then
18681 # The cast to unsigned long works around a bug in the HP C Compiler
18682 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18683 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18684 # This bug is HP SR number 8606223364.
18685 if test "$cross_compiling" = yes; then
18686 # Depending upon the size, compute the lo and hi bounds.
18687 cat >conftest.$ac_ext <<_ACEOF
18688 /* confdefs.h. */
18689 _ACEOF
18690 cat confdefs.h >>conftest.$ac_ext
18691 cat >>conftest.$ac_ext <<_ACEOF
18692 /* end confdefs.h. */
18693 $ac_includes_default
18694 int
18695 main ()
18696 {
18697 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= 0)@:>@;
18698 test_array @<:@0@:>@ = 0
18699
18700 ;
18701 return 0;
18702 }
18703 _ACEOF
18704 rm -f conftest.$ac_objext
18705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18706 (eval $ac_compile) 2>conftest.er1
18707 ac_status=$?
18708 grep -v '^ *+' conftest.er1 >conftest.err
18709 rm -f conftest.er1
18710 cat conftest.err >&5
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); } &&
18713 { ac_try='test -z "$ac_c_werror_flag"
18714 || test ! -s conftest.err'
18715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18716 (eval $ac_try) 2>&5
18717 ac_status=$?
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); }; } &&
18720 { ac_try='test -s conftest.$ac_objext'
18721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18722 (eval $ac_try) 2>&5
18723 ac_status=$?
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); }; }; then
18726 ac_lo=0 ac_mid=0
18727 while :; do
18728 cat >conftest.$ac_ext <<_ACEOF
18729 /* confdefs.h. */
18730 _ACEOF
18731 cat confdefs.h >>conftest.$ac_ext
18732 cat >>conftest.$ac_ext <<_ACEOF
18733 /* end confdefs.h. */
18734 $ac_includes_default
18735 int
18736 main ()
18737 {
18738 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@;
18739 test_array @<:@0@:>@ = 0
18740
18741 ;
18742 return 0;
18743 }
18744 _ACEOF
18745 rm -f conftest.$ac_objext
18746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18747 (eval $ac_compile) 2>conftest.er1
18748 ac_status=$?
18749 grep -v '^ *+' conftest.er1 >conftest.err
18750 rm -f conftest.er1
18751 cat conftest.err >&5
18752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18753 (exit $ac_status); } &&
18754 { ac_try='test -z "$ac_c_werror_flag"
18755 || test ! -s conftest.err'
18756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18757 (eval $ac_try) 2>&5
18758 ac_status=$?
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; } &&
18761 { ac_try='test -s conftest.$ac_objext'
18762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763 (eval $ac_try) 2>&5
18764 ac_status=$?
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }; }; then
18767 ac_hi=$ac_mid; break
18768 else
18769 echo "$as_me: failed program was:" >&5
18770 sed 's/^/| /' conftest.$ac_ext >&5
18771
18772 ac_lo=`expr $ac_mid + 1`
18773 if test $ac_lo -le $ac_mid; then
18774 ac_lo= ac_hi=
18775 break
18776 fi
18777 ac_mid=`expr 2 '*' $ac_mid + 1`
18778 fi
18779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18780 done
18781 else
18782 echo "$as_me: failed program was:" >&5
18783 sed 's/^/| /' conftest.$ac_ext >&5
18784
18785 cat >conftest.$ac_ext <<_ACEOF
18786 /* confdefs.h. */
18787 _ACEOF
18788 cat confdefs.h >>conftest.$ac_ext
18789 cat >>conftest.$ac_ext <<_ACEOF
18790 /* end confdefs.h. */
18791 $ac_includes_default
18792 int
18793 main ()
18794 {
18795 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) < 0)@:>@;
18796 test_array @<:@0@:>@ = 0
18797
18798 ;
18799 return 0;
18800 }
18801 _ACEOF
18802 rm -f conftest.$ac_objext
18803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18804 (eval $ac_compile) 2>conftest.er1
18805 ac_status=$?
18806 grep -v '^ *+' conftest.er1 >conftest.err
18807 rm -f conftest.er1
18808 cat conftest.err >&5
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); } &&
18811 { ac_try='test -z "$ac_c_werror_flag"
18812 || test ! -s conftest.err'
18813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18814 (eval $ac_try) 2>&5
18815 ac_status=$?
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); }; } &&
18818 { ac_try='test -s conftest.$ac_objext'
18819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820 (eval $ac_try) 2>&5
18821 ac_status=$?
18822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823 (exit $ac_status); }; }; then
18824 ac_hi=-1 ac_mid=-1
18825 while :; do
18826 cat >conftest.$ac_ext <<_ACEOF
18827 /* confdefs.h. */
18828 _ACEOF
18829 cat confdefs.h >>conftest.$ac_ext
18830 cat >>conftest.$ac_ext <<_ACEOF
18831 /* end confdefs.h. */
18832 $ac_includes_default
18833 int
18834 main ()
18835 {
18836 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)@:>@;
18837 test_array @<:@0@:>@ = 0
18838
18839 ;
18840 return 0;
18841 }
18842 _ACEOF
18843 rm -f conftest.$ac_objext
18844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18845 (eval $ac_compile) 2>conftest.er1
18846 ac_status=$?
18847 grep -v '^ *+' conftest.er1 >conftest.err
18848 rm -f conftest.er1
18849 cat conftest.err >&5
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); } &&
18852 { ac_try='test -z "$ac_c_werror_flag"
18853 || test ! -s conftest.err'
18854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18855 (eval $ac_try) 2>&5
18856 ac_status=$?
18857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858 (exit $ac_status); }; } &&
18859 { ac_try='test -s conftest.$ac_objext'
18860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18861 (eval $ac_try) 2>&5
18862 ac_status=$?
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); }; }; then
18865 ac_lo=$ac_mid; break
18866 else
18867 echo "$as_me: failed program was:" >&5
18868 sed 's/^/| /' conftest.$ac_ext >&5
18869
18870 ac_hi=`expr '(' $ac_mid ')' - 1`
18871 if test $ac_mid -le $ac_hi; then
18872 ac_lo= ac_hi=
18873 break
18874 fi
18875 ac_mid=`expr 2 '*' $ac_mid`
18876 fi
18877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18878 done
18879 else
18880 echo "$as_me: failed program was:" >&5
18881 sed 's/^/| /' conftest.$ac_ext >&5
18882
18883 ac_lo= ac_hi=
18884 fi
18885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18886 fi
18887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18888 # Binary search between lo and hi bounds.
18889 while test "x$ac_lo" != "x$ac_hi"; do
18890 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18891 cat >conftest.$ac_ext <<_ACEOF
18892 /* confdefs.h. */
18893 _ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h. */
18897 $ac_includes_default
18898 int
18899 main ()
18900 {
18901 static int test_array @<:@1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)@:>@;
18902 test_array @<:@0@:>@ = 0
18903
18904 ;
18905 return 0;
18906 }
18907 _ACEOF
18908 rm -f conftest.$ac_objext
18909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18910 (eval $ac_compile) 2>conftest.er1
18911 ac_status=$?
18912 grep -v '^ *+' conftest.er1 >conftest.err
18913 rm -f conftest.er1
18914 cat conftest.err >&5
18915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916 (exit $ac_status); } &&
18917 { ac_try='test -z "$ac_c_werror_flag"
18918 || test ! -s conftest.err'
18919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18920 (eval $ac_try) 2>&5
18921 ac_status=$?
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); }; } &&
18924 { ac_try='test -s conftest.$ac_objext'
18925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18926 (eval $ac_try) 2>&5
18927 ac_status=$?
18928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18929 (exit $ac_status); }; }; then
18930 ac_hi=$ac_mid
18931 else
18932 echo "$as_me: failed program was:" >&5
18933 sed 's/^/| /' conftest.$ac_ext >&5
18934
18935 ac_lo=`expr '(' $ac_mid ')' + 1`
18936 fi
18937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18938 done
18939 case $ac_lo in
18940 ?*) ac_cv_sizeof_int=$ac_lo;;
18941 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18942 See \`config.log' for more details." >&5
18943 echo "$as_me: error: cannot compute sizeof (int), 77
18944 See \`config.log' for more details." >&2;}
18945 { (exit 1); exit 1; }; } ;;
18946 esac
18947 else
18948 if test "$cross_compiling" = yes; then
18949 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18950 See \`config.log' for more details." >&5
18951 echo "$as_me: error: cannot run test program while cross compiling
18952 See \`config.log' for more details." >&2;}
18953 { (exit 1); exit 1; }; }
18954 else
18955 cat >conftest.$ac_ext <<_ACEOF
18956 /* confdefs.h. */
18957 _ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h. */
18961 $ac_includes_default
18962 long longval () { return (long) (sizeof (int)); }
18963 unsigned long ulongval () { return (long) (sizeof (int)); }
18964 @%:@include <stdio.h>
18965 @%:@include <stdlib.h>
18966 int
18967 main ()
18968 {
18969
18970 FILE *f = fopen ("conftest.val", "w");
18971 if (! f)
18972 exit (1);
18973 if (((long) (sizeof (int))) < 0)
18974 {
18975 long i = longval ();
18976 if (i != ((long) (sizeof (int))))
18977 exit (1);
18978 fprintf (f, "%ld\n", i);
18979 }
18980 else
18981 {
18982 unsigned long i = ulongval ();
18983 if (i != ((long) (sizeof (int))))
18984 exit (1);
18985 fprintf (f, "%lu\n", i);
18986 }
18987 exit (ferror (f) || fclose (f) != 0);
18988
18989 ;
18990 return 0;
18991 }
18992 _ACEOF
18993 rm -f conftest$ac_exeext
18994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18995 (eval $ac_link) 2>&5
18996 ac_status=$?
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19000 (eval $ac_try) 2>&5
19001 ac_status=$?
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); }; }; then
19004 ac_cv_sizeof_int=`cat conftest.val`
19005 else
19006 echo "$as_me: program exited with status $ac_status" >&5
19007 echo "$as_me: failed program was:" >&5
19008 sed 's/^/| /' conftest.$ac_ext >&5
19009
19010 ( exit $ac_status )
19011 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19012 See \`config.log' for more details." >&5
19013 echo "$as_me: error: cannot compute sizeof (int), 77
19014 See \`config.log' for more details." >&2;}
19015 { (exit 1); exit 1; }; }
19016 fi
19017 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19018 fi
19019 fi
19020 rm -f conftest.val
19021 else
19022 ac_cv_sizeof_int=0
19023 fi
19024 fi
19025 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19026 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19027 cat >>confdefs.h <<_ACEOF
19028 @%:@define SIZEOF_INT $ac_cv_sizeof_int
19029 _ACEOF
19030
19031
19032 echo "$as_me:$LINENO: checking for long" >&5
19033 echo $ECHO_N "checking for long... $ECHO_C" >&6
19034 if test "${ac_cv_type_long+set}" = set; then
19035 echo $ECHO_N "(cached) $ECHO_C" >&6
19036 else
19037 cat >conftest.$ac_ext <<_ACEOF
19038 /* confdefs.h. */
19039 _ACEOF
19040 cat confdefs.h >>conftest.$ac_ext
19041 cat >>conftest.$ac_ext <<_ACEOF
19042 /* end confdefs.h. */
19043 $ac_includes_default
19044 int
19045 main ()
19046 {
19047 if ((long *) 0)
19048 return 0;
19049 if (sizeof (long))
19050 return 0;
19051 ;
19052 return 0;
19053 }
19054 _ACEOF
19055 rm -f conftest.$ac_objext
19056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19057 (eval $ac_compile) 2>conftest.er1
19058 ac_status=$?
19059 grep -v '^ *+' conftest.er1 >conftest.err
19060 rm -f conftest.er1
19061 cat conftest.err >&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); } &&
19064 { ac_try='test -z "$ac_c_werror_flag"
19065 || test ! -s conftest.err'
19066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19067 (eval $ac_try) 2>&5
19068 ac_status=$?
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); }; } &&
19071 { ac_try='test -s conftest.$ac_objext'
19072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19073 (eval $ac_try) 2>&5
19074 ac_status=$?
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); }; }; then
19077 ac_cv_type_long=yes
19078 else
19079 echo "$as_me: failed program was:" >&5
19080 sed 's/^/| /' conftest.$ac_ext >&5
19081
19082 ac_cv_type_long=no
19083 fi
19084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19085 fi
19086 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19087 echo "${ECHO_T}$ac_cv_type_long" >&6
19088
19089 echo "$as_me:$LINENO: checking size of long" >&5
19090 echo $ECHO_N "checking size of long... $ECHO_C" >&6
19091 if test "${ac_cv_sizeof_long+set}" = set; then
19092 echo $ECHO_N "(cached) $ECHO_C" >&6
19093 else
19094 if test "$ac_cv_type_long" = yes; then
19095 # The cast to unsigned long works around a bug in the HP C Compiler
19096 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19097 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19098 # This bug is HP SR number 8606223364.
19099 if test "$cross_compiling" = yes; then
19100 # Depending upon the size, compute the lo and hi bounds.
19101 cat >conftest.$ac_ext <<_ACEOF
19102 /* confdefs.h. */
19103 _ACEOF
19104 cat confdefs.h >>conftest.$ac_ext
19105 cat >>conftest.$ac_ext <<_ACEOF
19106 /* end confdefs.h. */
19107 $ac_includes_default
19108 int
19109 main ()
19110 {
19111 static int test_array @<:@1 - 2 * !(((long) (sizeof (long))) >= 0)@:>@;
19112 test_array @<:@0@:>@ = 0
19113
19114 ;
19115 return 0;
19116 }
19117 _ACEOF
19118 rm -f conftest.$ac_objext
19119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19120 (eval $ac_compile) 2>conftest.er1
19121 ac_status=$?
19122 grep -v '^ *+' conftest.er1 >conftest.err
19123 rm -f conftest.er1
19124 cat conftest.err >&5
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); } &&
19127 { ac_try='test -z "$ac_c_werror_flag"
19128 || test ! -s conftest.err'
19129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19130 (eval $ac_try) 2>&5
19131 ac_status=$?
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); }; } &&
19134 { ac_try='test -s conftest.$ac_objext'
19135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19136 (eval $ac_try) 2>&5
19137 ac_status=$?
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; }; then
19140 ac_lo=0 ac_mid=0
19141 while :; do
19142 cat >conftest.$ac_ext <<_ACEOF
19143 /* confdefs.h. */
19144 _ACEOF
19145 cat confdefs.h >>conftest.$ac_ext
19146 cat >>conftest.$ac_ext <<_ACEOF
19147 /* end confdefs.h. */
19148 $ac_includes_default
19149 int
19150 main ()
19151 {
19152 static int test_array @<:@1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)@:>@;
19153 test_array @<:@0@:>@ = 0
19154
19155 ;
19156 return 0;
19157 }
19158 _ACEOF
19159 rm -f conftest.$ac_objext
19160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19161 (eval $ac_compile) 2>conftest.er1
19162 ac_status=$?
19163 grep -v '^ *+' conftest.er1 >conftest.err
19164 rm -f conftest.er1
19165 cat conftest.err >&5
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); } &&
19168 { ac_try='test -z "$ac_c_werror_flag"
19169 || test ! -s conftest.err'
19170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19171 (eval $ac_try) 2>&5
19172 ac_status=$?
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); }; } &&
19175 { ac_try='test -s conftest.$ac_objext'
19176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19177 (eval $ac_try) 2>&5
19178 ac_status=$?
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); }; }; then
19181 ac_hi=$ac_mid; break
19182 else
19183 echo "$as_me: failed program was:" >&5
19184 sed 's/^/| /' conftest.$ac_ext >&5
19185
19186 ac_lo=`expr $ac_mid + 1`
19187 if test $ac_lo -le $ac_mid; then
19188 ac_lo= ac_hi=
19189 break
19190 fi
19191 ac_mid=`expr 2 '*' $ac_mid + 1`
19192 fi
19193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19194 done
19195 else
19196 echo "$as_me: failed program was:" >&5
19197 sed 's/^/| /' conftest.$ac_ext >&5
19198
19199 cat >conftest.$ac_ext <<_ACEOF
19200 /* confdefs.h. */
19201 _ACEOF
19202 cat confdefs.h >>conftest.$ac_ext
19203 cat >>conftest.$ac_ext <<_ACEOF
19204 /* end confdefs.h. */
19205 $ac_includes_default
19206 int
19207 main ()
19208 {
19209 static int test_array @<:@1 - 2 * !(((long) (sizeof (long))) < 0)@:>@;
19210 test_array @<:@0@:>@ = 0
19211
19212 ;
19213 return 0;
19214 }
19215 _ACEOF
19216 rm -f conftest.$ac_objext
19217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19218 (eval $ac_compile) 2>conftest.er1
19219 ac_status=$?
19220 grep -v '^ *+' conftest.er1 >conftest.err
19221 rm -f conftest.er1
19222 cat conftest.err >&5
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); } &&
19225 { ac_try='test -z "$ac_c_werror_flag"
19226 || test ! -s conftest.err'
19227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19228 (eval $ac_try) 2>&5
19229 ac_status=$?
19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); }; } &&
19232 { ac_try='test -s conftest.$ac_objext'
19233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19234 (eval $ac_try) 2>&5
19235 ac_status=$?
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; }; then
19238 ac_hi=-1 ac_mid=-1
19239 while :; do
19240 cat >conftest.$ac_ext <<_ACEOF
19241 /* confdefs.h. */
19242 _ACEOF
19243 cat confdefs.h >>conftest.$ac_ext
19244 cat >>conftest.$ac_ext <<_ACEOF
19245 /* end confdefs.h. */
19246 $ac_includes_default
19247 int
19248 main ()
19249 {
19250 static int test_array @<:@1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)@:>@;
19251 test_array @<:@0@:>@ = 0
19252
19253 ;
19254 return 0;
19255 }
19256 _ACEOF
19257 rm -f conftest.$ac_objext
19258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19259 (eval $ac_compile) 2>conftest.er1
19260 ac_status=$?
19261 grep -v '^ *+' conftest.er1 >conftest.err
19262 rm -f conftest.er1
19263 cat conftest.err >&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } &&
19266 { ac_try='test -z "$ac_c_werror_flag"
19267 || test ! -s conftest.err'
19268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19269 (eval $ac_try) 2>&5
19270 ac_status=$?
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); }; } &&
19273 { ac_try='test -s conftest.$ac_objext'
19274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19275 (eval $ac_try) 2>&5
19276 ac_status=$?
19277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19278 (exit $ac_status); }; }; then
19279 ac_lo=$ac_mid; break
19280 else
19281 echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19283
19284 ac_hi=`expr '(' $ac_mid ')' - 1`
19285 if test $ac_mid -le $ac_hi; then
19286 ac_lo= ac_hi=
19287 break
19288 fi
19289 ac_mid=`expr 2 '*' $ac_mid`
19290 fi
19291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19292 done
19293 else
19294 echo "$as_me: failed program was:" >&5
19295 sed 's/^/| /' conftest.$ac_ext >&5
19296
19297 ac_lo= ac_hi=
19298 fi
19299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19300 fi
19301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19302 # Binary search between lo and hi bounds.
19303 while test "x$ac_lo" != "x$ac_hi"; do
19304 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19305 cat >conftest.$ac_ext <<_ACEOF
19306 /* confdefs.h. */
19307 _ACEOF
19308 cat confdefs.h >>conftest.$ac_ext
19309 cat >>conftest.$ac_ext <<_ACEOF
19310 /* end confdefs.h. */
19311 $ac_includes_default
19312 int
19313 main ()
19314 {
19315 static int test_array @<:@1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)@:>@;
19316 test_array @<:@0@:>@ = 0
19317
19318 ;
19319 return 0;
19320 }
19321 _ACEOF
19322 rm -f conftest.$ac_objext
19323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19324 (eval $ac_compile) 2>conftest.er1
19325 ac_status=$?
19326 grep -v '^ *+' conftest.er1 >conftest.err
19327 rm -f conftest.er1
19328 cat conftest.err >&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); } &&
19331 { ac_try='test -z "$ac_c_werror_flag"
19332 || test ! -s conftest.err'
19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19335 ac_status=$?
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; } &&
19338 { ac_try='test -s conftest.$ac_objext'
19339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340 (eval $ac_try) 2>&5
19341 ac_status=$?
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; }; then
19344 ac_hi=$ac_mid
19345 else
19346 echo "$as_me: failed program was:" >&5
19347 sed 's/^/| /' conftest.$ac_ext >&5
19348
19349 ac_lo=`expr '(' $ac_mid ')' + 1`
19350 fi
19351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19352 done
19353 case $ac_lo in
19354 ?*) ac_cv_sizeof_long=$ac_lo;;
19355 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19356 See \`config.log' for more details." >&5
19357 echo "$as_me: error: cannot compute sizeof (long), 77
19358 See \`config.log' for more details." >&2;}
19359 { (exit 1); exit 1; }; } ;;
19360 esac
19361 else
19362 if test "$cross_compiling" = yes; then
19363 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19364 See \`config.log' for more details." >&5
19365 echo "$as_me: error: cannot run test program while cross compiling
19366 See \`config.log' for more details." >&2;}
19367 { (exit 1); exit 1; }; }
19368 else
19369 cat >conftest.$ac_ext <<_ACEOF
19370 /* confdefs.h. */
19371 _ACEOF
19372 cat confdefs.h >>conftest.$ac_ext
19373 cat >>conftest.$ac_ext <<_ACEOF
19374 /* end confdefs.h. */
19375 $ac_includes_default
19376 long longval () { return (long) (sizeof (long)); }
19377 unsigned long ulongval () { return (long) (sizeof (long)); }
19378 @%:@include <stdio.h>
19379 @%:@include <stdlib.h>
19380 int
19381 main ()
19382 {
19383
19384 FILE *f = fopen ("conftest.val", "w");
19385 if (! f)
19386 exit (1);
19387 if (((long) (sizeof (long))) < 0)
19388 {
19389 long i = longval ();
19390 if (i != ((long) (sizeof (long))))
19391 exit (1);
19392 fprintf (f, "%ld\n", i);
19393 }
19394 else
19395 {
19396 unsigned long i = ulongval ();
19397 if (i != ((long) (sizeof (long))))
19398 exit (1);
19399 fprintf (f, "%lu\n", i);
19400 }
19401 exit (ferror (f) || fclose (f) != 0);
19402
19403 ;
19404 return 0;
19405 }
19406 _ACEOF
19407 rm -f conftest$ac_exeext
19408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19409 (eval $ac_link) 2>&5
19410 ac_status=$?
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414 (eval $ac_try) 2>&5
19415 ac_status=$?
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); }; }; then
19418 ac_cv_sizeof_long=`cat conftest.val`
19419 else
19420 echo "$as_me: program exited with status $ac_status" >&5
19421 echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.$ac_ext >&5
19423
19424 ( exit $ac_status )
19425 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19426 See \`config.log' for more details." >&5
19427 echo "$as_me: error: cannot compute sizeof (long), 77
19428 See \`config.log' for more details." >&2;}
19429 { (exit 1); exit 1; }; }
19430 fi
19431 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19432 fi
19433 fi
19434 rm -f conftest.val
19435 else
19436 ac_cv_sizeof_long=0
19437 fi
19438 fi
19439 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19440 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19441 cat >>confdefs.h <<_ACEOF
19442 @%:@define SIZEOF_LONG $ac_cv_sizeof_long
19443 _ACEOF
19444
19445
19446 echo "$as_me:$LINENO: checking for char *" >&5
19447 echo $ECHO_N "checking for char *... $ECHO_C" >&6
19448 if test "${ac_cv_type_char_p+set}" = set; then
19449 echo $ECHO_N "(cached) $ECHO_C" >&6
19450 else
19451 cat >conftest.$ac_ext <<_ACEOF
19452 /* confdefs.h. */
19453 _ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19457 $ac_includes_default
19458 int
19459 main ()
19460 {
19461 if ((char * *) 0)
19462 return 0;
19463 if (sizeof (char *))
19464 return 0;
19465 ;
19466 return 0;
19467 }
19468 _ACEOF
19469 rm -f conftest.$ac_objext
19470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19471 (eval $ac_compile) 2>conftest.er1
19472 ac_status=$?
19473 grep -v '^ *+' conftest.er1 >conftest.err
19474 rm -f conftest.er1
19475 cat conftest.err >&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); } &&
19478 { ac_try='test -z "$ac_c_werror_flag"
19479 || test ! -s conftest.err'
19480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481 (eval $ac_try) 2>&5
19482 ac_status=$?
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; } &&
19485 { ac_try='test -s conftest.$ac_objext'
19486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19487 (eval $ac_try) 2>&5
19488 ac_status=$?
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); }; }; then
19491 ac_cv_type_char_p=yes
19492 else
19493 echo "$as_me: failed program was:" >&5
19494 sed 's/^/| /' conftest.$ac_ext >&5
19495
19496 ac_cv_type_char_p=no
19497 fi
19498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19499 fi
19500 echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
19501 echo "${ECHO_T}$ac_cv_type_char_p" >&6
19502
19503 echo "$as_me:$LINENO: checking size of char *" >&5
19504 echo $ECHO_N "checking size of char *... $ECHO_C" >&6
19505 if test "${ac_cv_sizeof_char_p+set}" = set; then
19506 echo $ECHO_N "(cached) $ECHO_C" >&6
19507 else
19508 if test "$ac_cv_type_char_p" = yes; then
19509 # The cast to unsigned long works around a bug in the HP C Compiler
19510 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19511 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19512 # This bug is HP SR number 8606223364.
19513 if test "$cross_compiling" = yes; then
19514 # Depending upon the size, compute the lo and hi bounds.
19515 cat >conftest.$ac_ext <<_ACEOF
19516 /* confdefs.h. */
19517 _ACEOF
19518 cat confdefs.h >>conftest.$ac_ext
19519 cat >>conftest.$ac_ext <<_ACEOF
19520 /* end confdefs.h. */
19521 $ac_includes_default
19522 int
19523 main ()
19524 {
19525 static int test_array @<:@1 - 2 * !(((long) (sizeof (char *))) >= 0)@:>@;
19526 test_array @<:@0@:>@ = 0
19527
19528 ;
19529 return 0;
19530 }
19531 _ACEOF
19532 rm -f conftest.$ac_objext
19533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19534 (eval $ac_compile) 2>conftest.er1
19535 ac_status=$?
19536 grep -v '^ *+' conftest.er1 >conftest.err
19537 rm -f conftest.er1
19538 cat conftest.err >&5
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); } &&
19541 { ac_try='test -z "$ac_c_werror_flag"
19542 || test ! -s conftest.err'
19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544 (eval $ac_try) 2>&5
19545 ac_status=$?
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; } &&
19548 { ac_try='test -s conftest.$ac_objext'
19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550 (eval $ac_try) 2>&5
19551 ac_status=$?
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; }; then
19554 ac_lo=0 ac_mid=0
19555 while :; do
19556 cat >conftest.$ac_ext <<_ACEOF
19557 /* confdefs.h. */
19558 _ACEOF
19559 cat confdefs.h >>conftest.$ac_ext
19560 cat >>conftest.$ac_ext <<_ACEOF
19561 /* end confdefs.h. */
19562 $ac_includes_default
19563 int
19564 main ()
19565 {
19566 static int test_array @<:@1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)@:>@;
19567 test_array @<:@0@:>@ = 0
19568
19569 ;
19570 return 0;
19571 }
19572 _ACEOF
19573 rm -f conftest.$ac_objext
19574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19575 (eval $ac_compile) 2>conftest.er1
19576 ac_status=$?
19577 grep -v '^ *+' conftest.er1 >conftest.err
19578 rm -f conftest.er1
19579 cat conftest.err >&5
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); } &&
19582 { ac_try='test -z "$ac_c_werror_flag"
19583 || test ! -s conftest.err'
19584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19585 (eval $ac_try) 2>&5
19586 ac_status=$?
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); }; } &&
19589 { ac_try='test -s conftest.$ac_objext'
19590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591 (eval $ac_try) 2>&5
19592 ac_status=$?
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); }; }; then
19595 ac_hi=$ac_mid; break
19596 else
19597 echo "$as_me: failed program was:" >&5
19598 sed 's/^/| /' conftest.$ac_ext >&5
19599
19600 ac_lo=`expr $ac_mid + 1`
19601 if test $ac_lo -le $ac_mid; then
19602 ac_lo= ac_hi=
19603 break
19604 fi
19605 ac_mid=`expr 2 '*' $ac_mid + 1`
19606 fi
19607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19608 done
19609 else
19610 echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.$ac_ext >&5
19612
19613 cat >conftest.$ac_ext <<_ACEOF
19614 /* confdefs.h. */
19615 _ACEOF
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h. */
19619 $ac_includes_default
19620 int
19621 main ()
19622 {
19623 static int test_array @<:@1 - 2 * !(((long) (sizeof (char *))) < 0)@:>@;
19624 test_array @<:@0@:>@ = 0
19625
19626 ;
19627 return 0;
19628 }
19629 _ACEOF
19630 rm -f conftest.$ac_objext
19631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19632 (eval $ac_compile) 2>conftest.er1
19633 ac_status=$?
19634 grep -v '^ *+' conftest.er1 >conftest.err
19635 rm -f conftest.er1
19636 cat conftest.err >&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } &&
19639 { ac_try='test -z "$ac_c_werror_flag"
19640 || test ! -s conftest.err'
19641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642 (eval $ac_try) 2>&5
19643 ac_status=$?
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; } &&
19646 { ac_try='test -s conftest.$ac_objext'
19647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19649 ac_status=$?
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; }; then
19652 ac_hi=-1 ac_mid=-1
19653 while :; do
19654 cat >conftest.$ac_ext <<_ACEOF
19655 /* confdefs.h. */
19656 _ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h. */
19660 $ac_includes_default
19661 int
19662 main ()
19663 {
19664 static int test_array @<:@1 - 2 * !(((long) (sizeof (char *))) >= $ac_mid)@:>@;
19665 test_array @<:@0@:>@ = 0
19666
19667 ;
19668 return 0;
19669 }
19670 _ACEOF
19671 rm -f conftest.$ac_objext
19672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19673 (eval $ac_compile) 2>conftest.er1
19674 ac_status=$?
19675 grep -v '^ *+' conftest.er1 >conftest.err
19676 rm -f conftest.er1
19677 cat conftest.err >&5
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); } &&
19680 { ac_try='test -z "$ac_c_werror_flag"
19681 || test ! -s conftest.err'
19682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19683 (eval $ac_try) 2>&5
19684 ac_status=$?
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); }; } &&
19687 { ac_try='test -s conftest.$ac_objext'
19688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19689 (eval $ac_try) 2>&5
19690 ac_status=$?
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); }; }; then
19693 ac_lo=$ac_mid; break
19694 else
19695 echo "$as_me: failed program was:" >&5
19696 sed 's/^/| /' conftest.$ac_ext >&5
19697
19698 ac_hi=`expr '(' $ac_mid ')' - 1`
19699 if test $ac_mid -le $ac_hi; then
19700 ac_lo= ac_hi=
19701 break
19702 fi
19703 ac_mid=`expr 2 '*' $ac_mid`
19704 fi
19705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19706 done
19707 else
19708 echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19710
19711 ac_lo= ac_hi=
19712 fi
19713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19714 fi
19715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19716 # Binary search between lo and hi bounds.
19717 while test "x$ac_lo" != "x$ac_hi"; do
19718 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19719 cat >conftest.$ac_ext <<_ACEOF
19720 /* confdefs.h. */
19721 _ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h. */
19725 $ac_includes_default
19726 int
19727 main ()
19728 {
19729 static int test_array @<:@1 - 2 * !(((long) (sizeof (char *))) <= $ac_mid)@:>@;
19730 test_array @<:@0@:>@ = 0
19731
19732 ;
19733 return 0;
19734 }
19735 _ACEOF
19736 rm -f conftest.$ac_objext
19737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19738 (eval $ac_compile) 2>conftest.er1
19739 ac_status=$?
19740 grep -v '^ *+' conftest.er1 >conftest.err
19741 rm -f conftest.er1
19742 cat conftest.err >&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); } &&
19745 { ac_try='test -z "$ac_c_werror_flag"
19746 || test ! -s conftest.err'
19747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748 (eval $ac_try) 2>&5
19749 ac_status=$?
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; } &&
19752 { ac_try='test -s conftest.$ac_objext'
19753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19754 (eval $ac_try) 2>&5
19755 ac_status=$?
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); }; }; then
19758 ac_hi=$ac_mid
19759 else
19760 echo "$as_me: failed program was:" >&5
19761 sed 's/^/| /' conftest.$ac_ext >&5
19762
19763 ac_lo=`expr '(' $ac_mid ')' + 1`
19764 fi
19765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19766 done
19767 case $ac_lo in
19768 ?*) ac_cv_sizeof_char_p=$ac_lo;;
19769 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
19770 See \`config.log' for more details." >&5
19771 echo "$as_me: error: cannot compute sizeof (char *), 77
19772 See \`config.log' for more details." >&2;}
19773 { (exit 1); exit 1; }; } ;;
19774 esac
19775 else
19776 if test "$cross_compiling" = yes; then
19777 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19778 See \`config.log' for more details." >&5
19779 echo "$as_me: error: cannot run test program while cross compiling
19780 See \`config.log' for more details." >&2;}
19781 { (exit 1); exit 1; }; }
19782 else
19783 cat >conftest.$ac_ext <<_ACEOF
19784 /* confdefs.h. */
19785 _ACEOF
19786 cat confdefs.h >>conftest.$ac_ext
19787 cat >>conftest.$ac_ext <<_ACEOF
19788 /* end confdefs.h. */
19789 $ac_includes_default
19790 long longval () { return (long) (sizeof (char *)); }
19791 unsigned long ulongval () { return (long) (sizeof (char *)); }
19792 @%:@include <stdio.h>
19793 @%:@include <stdlib.h>
19794 int
19795 main ()
19796 {
19797
19798 FILE *f = fopen ("conftest.val", "w");
19799 if (! f)
19800 exit (1);
19801 if (((long) (sizeof (char *))) < 0)
19802 {
19803 long i = longval ();
19804 if (i != ((long) (sizeof (char *))))
19805 exit (1);
19806 fprintf (f, "%ld\n", i);
19807 }
19808 else
19809 {
19810 unsigned long i = ulongval ();
19811 if (i != ((long) (sizeof (char *))))
19812 exit (1);
19813 fprintf (f, "%lu\n", i);
19814 }
19815 exit (ferror (f) || fclose (f) != 0);
19816
19817 ;
19818 return 0;
19819 }
19820 _ACEOF
19821 rm -f conftest$ac_exeext
19822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19823 (eval $ac_link) 2>&5
19824 ac_status=$?
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19828 (eval $ac_try) 2>&5
19829 ac_status=$?
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; }; then
19832 ac_cv_sizeof_char_p=`cat conftest.val`
19833 else
19834 echo "$as_me: program exited with status $ac_status" >&5
19835 echo "$as_me: failed program was:" >&5
19836 sed 's/^/| /' conftest.$ac_ext >&5
19837
19838 ( exit $ac_status )
19839 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char *), 77
19840 See \`config.log' for more details." >&5
19841 echo "$as_me: error: cannot compute sizeof (char *), 77
19842 See \`config.log' for more details." >&2;}
19843 { (exit 1); exit 1; }; }
19844 fi
19845 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19846 fi
19847 fi
19848 rm -f conftest.val
19849 else
19850 ac_cv_sizeof_char_p=0
19851 fi
19852 fi
19853 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
19854 echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6
19855 cat >>confdefs.h <<_ACEOF
19856 @%:@define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
19857 _ACEOF
19858
19859
19860 echo "$as_me:$LINENO: checking for double" >&5
19861 echo $ECHO_N "checking for double... $ECHO_C" >&6
19862 if test "${ac_cv_type_double+set}" = set; then
19863 echo $ECHO_N "(cached) $ECHO_C" >&6
19864 else
19865 cat >conftest.$ac_ext <<_ACEOF
19866 /* confdefs.h. */
19867 _ACEOF
19868 cat confdefs.h >>conftest.$ac_ext
19869 cat >>conftest.$ac_ext <<_ACEOF
19870 /* end confdefs.h. */
19871 $ac_includes_default
19872 int
19873 main ()
19874 {
19875 if ((double *) 0)
19876 return 0;
19877 if (sizeof (double))
19878 return 0;
19879 ;
19880 return 0;
19881 }
19882 _ACEOF
19883 rm -f conftest.$ac_objext
19884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19885 (eval $ac_compile) 2>conftest.er1
19886 ac_status=$?
19887 grep -v '^ *+' conftest.er1 >conftest.err
19888 rm -f conftest.er1
19889 cat conftest.err >&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); } &&
19892 { ac_try='test -z "$ac_c_werror_flag"
19893 || test ! -s conftest.err'
19894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19895 (eval $ac_try) 2>&5
19896 ac_status=$?
19897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19898 (exit $ac_status); }; } &&
19899 { ac_try='test -s conftest.$ac_objext'
19900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19901 (eval $ac_try) 2>&5
19902 ac_status=$?
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); }; }; then
19905 ac_cv_type_double=yes
19906 else
19907 echo "$as_me: failed program was:" >&5
19908 sed 's/^/| /' conftest.$ac_ext >&5
19909
19910 ac_cv_type_double=no
19911 fi
19912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19913 fi
19914 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
19915 echo "${ECHO_T}$ac_cv_type_double" >&6
19916
19917 echo "$as_me:$LINENO: checking size of double" >&5
19918 echo $ECHO_N "checking size of double... $ECHO_C" >&6
19919 if test "${ac_cv_sizeof_double+set}" = set; then
19920 echo $ECHO_N "(cached) $ECHO_C" >&6
19921 else
19922 if test "$ac_cv_type_double" = yes; then
19923 # The cast to unsigned long works around a bug in the HP C Compiler
19924 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19925 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19926 # This bug is HP SR number 8606223364.
19927 if test "$cross_compiling" = yes; then
19928 # Depending upon the size, compute the lo and hi bounds.
19929 cat >conftest.$ac_ext <<_ACEOF
19930 /* confdefs.h. */
19931 _ACEOF
19932 cat confdefs.h >>conftest.$ac_ext
19933 cat >>conftest.$ac_ext <<_ACEOF
19934 /* end confdefs.h. */
19935 $ac_includes_default
19936 int
19937 main ()
19938 {
19939 static int test_array @<:@1 - 2 * !(((long) (sizeof (double))) >= 0)@:>@;
19940 test_array @<:@0@:>@ = 0
19941
19942 ;
19943 return 0;
19944 }
19945 _ACEOF
19946 rm -f conftest.$ac_objext
19947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19948 (eval $ac_compile) 2>conftest.er1
19949 ac_status=$?
19950 grep -v '^ *+' conftest.er1 >conftest.err
19951 rm -f conftest.er1
19952 cat conftest.err >&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } &&
19955 { ac_try='test -z "$ac_c_werror_flag"
19956 || test ! -s conftest.err'
19957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19958 (eval $ac_try) 2>&5
19959 ac_status=$?
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); }; } &&
19962 { ac_try='test -s conftest.$ac_objext'
19963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19964 (eval $ac_try) 2>&5
19965 ac_status=$?
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); }; }; then
19968 ac_lo=0 ac_mid=0
19969 while :; do
19970 cat >conftest.$ac_ext <<_ACEOF
19971 /* confdefs.h. */
19972 _ACEOF
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h. */
19976 $ac_includes_default
19977 int
19978 main ()
19979 {
19980 static int test_array @<:@1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)@:>@;
19981 test_array @<:@0@:>@ = 0
19982
19983 ;
19984 return 0;
19985 }
19986 _ACEOF
19987 rm -f conftest.$ac_objext
19988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19989 (eval $ac_compile) 2>conftest.er1
19990 ac_status=$?
19991 grep -v '^ *+' conftest.er1 >conftest.err
19992 rm -f conftest.er1
19993 cat conftest.err >&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); } &&
19996 { ac_try='test -z "$ac_c_werror_flag"
19997 || test ! -s conftest.err'
19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999 (eval $ac_try) 2>&5
20000 ac_status=$?
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; } &&
20003 { ac_try='test -s conftest.$ac_objext'
20004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005 (eval $ac_try) 2>&5
20006 ac_status=$?
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); }; }; then
20009 ac_hi=$ac_mid; break
20010 else
20011 echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.$ac_ext >&5
20013
20014 ac_lo=`expr $ac_mid + 1`
20015 if test $ac_lo -le $ac_mid; then
20016 ac_lo= ac_hi=
20017 break
20018 fi
20019 ac_mid=`expr 2 '*' $ac_mid + 1`
20020 fi
20021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20022 done
20023 else
20024 echo "$as_me: failed program was:" >&5
20025 sed 's/^/| /' conftest.$ac_ext >&5
20026
20027 cat >conftest.$ac_ext <<_ACEOF
20028 /* confdefs.h. */
20029 _ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h. */
20033 $ac_includes_default
20034 int
20035 main ()
20036 {
20037 static int test_array @<:@1 - 2 * !(((long) (sizeof (double))) < 0)@:>@;
20038 test_array @<:@0@:>@ = 0
20039
20040 ;
20041 return 0;
20042 }
20043 _ACEOF
20044 rm -f conftest.$ac_objext
20045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20046 (eval $ac_compile) 2>conftest.er1
20047 ac_status=$?
20048 grep -v '^ *+' conftest.er1 >conftest.err
20049 rm -f conftest.er1
20050 cat conftest.err >&5
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); } &&
20053 { ac_try='test -z "$ac_c_werror_flag"
20054 || test ! -s conftest.err'
20055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20056 (eval $ac_try) 2>&5
20057 ac_status=$?
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); }; } &&
20060 { ac_try='test -s conftest.$ac_objext'
20061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20062 (eval $ac_try) 2>&5
20063 ac_status=$?
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); }; }; then
20066 ac_hi=-1 ac_mid=-1
20067 while :; do
20068 cat >conftest.$ac_ext <<_ACEOF
20069 /* confdefs.h. */
20070 _ACEOF
20071 cat confdefs.h >>conftest.$ac_ext
20072 cat >>conftest.$ac_ext <<_ACEOF
20073 /* end confdefs.h. */
20074 $ac_includes_default
20075 int
20076 main ()
20077 {
20078 static int test_array @<:@1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)@:>@;
20079 test_array @<:@0@:>@ = 0
20080
20081 ;
20082 return 0;
20083 }
20084 _ACEOF
20085 rm -f conftest.$ac_objext
20086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20087 (eval $ac_compile) 2>conftest.er1
20088 ac_status=$?
20089 grep -v '^ *+' conftest.er1 >conftest.err
20090 rm -f conftest.er1
20091 cat conftest.err >&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); } &&
20094 { ac_try='test -z "$ac_c_werror_flag"
20095 || test ! -s conftest.err'
20096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20097 (eval $ac_try) 2>&5
20098 ac_status=$?
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); }; } &&
20101 { ac_try='test -s conftest.$ac_objext'
20102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20103 (eval $ac_try) 2>&5
20104 ac_status=$?
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); }; }; then
20107 ac_lo=$ac_mid; break
20108 else
20109 echo "$as_me: failed program was:" >&5
20110 sed 's/^/| /' conftest.$ac_ext >&5
20111
20112 ac_hi=`expr '(' $ac_mid ')' - 1`
20113 if test $ac_mid -le $ac_hi; then
20114 ac_lo= ac_hi=
20115 break
20116 fi
20117 ac_mid=`expr 2 '*' $ac_mid`
20118 fi
20119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20120 done
20121 else
20122 echo "$as_me: failed program was:" >&5
20123 sed 's/^/| /' conftest.$ac_ext >&5
20124
20125 ac_lo= ac_hi=
20126 fi
20127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20128 fi
20129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20130 # Binary search between lo and hi bounds.
20131 while test "x$ac_lo" != "x$ac_hi"; do
20132 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20133 cat >conftest.$ac_ext <<_ACEOF
20134 /* confdefs.h. */
20135 _ACEOF
20136 cat confdefs.h >>conftest.$ac_ext
20137 cat >>conftest.$ac_ext <<_ACEOF
20138 /* end confdefs.h. */
20139 $ac_includes_default
20140 int
20141 main ()
20142 {
20143 static int test_array @<:@1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)@:>@;
20144 test_array @<:@0@:>@ = 0
20145
20146 ;
20147 return 0;
20148 }
20149 _ACEOF
20150 rm -f conftest.$ac_objext
20151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20152 (eval $ac_compile) 2>conftest.er1
20153 ac_status=$?
20154 grep -v '^ *+' conftest.er1 >conftest.err
20155 rm -f conftest.er1
20156 cat conftest.err >&5
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); } &&
20159 { ac_try='test -z "$ac_c_werror_flag"
20160 || test ! -s conftest.err'
20161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162 (eval $ac_try) 2>&5
20163 ac_status=$?
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); }; } &&
20166 { ac_try='test -s conftest.$ac_objext'
20167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168 (eval $ac_try) 2>&5
20169 ac_status=$?
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; }; then
20172 ac_hi=$ac_mid
20173 else
20174 echo "$as_me: failed program was:" >&5
20175 sed 's/^/| /' conftest.$ac_ext >&5
20176
20177 ac_lo=`expr '(' $ac_mid ')' + 1`
20178 fi
20179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20180 done
20181 case $ac_lo in
20182 ?*) ac_cv_sizeof_double=$ac_lo;;
20183 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
20184 See \`config.log' for more details." >&5
20185 echo "$as_me: error: cannot compute sizeof (double), 77
20186 See \`config.log' for more details." >&2;}
20187 { (exit 1); exit 1; }; } ;;
20188 esac
20189 else
20190 if test "$cross_compiling" = yes; then
20191 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20192 See \`config.log' for more details." >&5
20193 echo "$as_me: error: cannot run test program while cross compiling
20194 See \`config.log' for more details." >&2;}
20195 { (exit 1); exit 1; }; }
20196 else
20197 cat >conftest.$ac_ext <<_ACEOF
20198 /* confdefs.h. */
20199 _ACEOF
20200 cat confdefs.h >>conftest.$ac_ext
20201 cat >>conftest.$ac_ext <<_ACEOF
20202 /* end confdefs.h. */
20203 $ac_includes_default
20204 long longval () { return (long) (sizeof (double)); }
20205 unsigned long ulongval () { return (long) (sizeof (double)); }
20206 @%:@include <stdio.h>
20207 @%:@include <stdlib.h>
20208 int
20209 main ()
20210 {
20211
20212 FILE *f = fopen ("conftest.val", "w");
20213 if (! f)
20214 exit (1);
20215 if (((long) (sizeof (double))) < 0)
20216 {
20217 long i = longval ();
20218 if (i != ((long) (sizeof (double))))
20219 exit (1);
20220 fprintf (f, "%ld\n", i);
20221 }
20222 else
20223 {
20224 unsigned long i = ulongval ();
20225 if (i != ((long) (sizeof (double))))
20226 exit (1);
20227 fprintf (f, "%lu\n", i);
20228 }
20229 exit (ferror (f) || fclose (f) != 0);
20230
20231 ;
20232 return 0;
20233 }
20234 _ACEOF
20235 rm -f conftest$ac_exeext
20236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20237 (eval $ac_link) 2>&5
20238 ac_status=$?
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20243 ac_status=$?
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; }; then
20246 ac_cv_sizeof_double=`cat conftest.val`
20247 else
20248 echo "$as_me: program exited with status $ac_status" >&5
20249 echo "$as_me: failed program was:" >&5
20250 sed 's/^/| /' conftest.$ac_ext >&5
20251
20252 ( exit $ac_status )
20253 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
20254 See \`config.log' for more details." >&5
20255 echo "$as_me: error: cannot compute sizeof (double), 77
20256 See \`config.log' for more details." >&2;}
20257 { (exit 1); exit 1; }; }
20258 fi
20259 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20260 fi
20261 fi
20262 rm -f conftest.val
20263 else
20264 ac_cv_sizeof_double=0
20265 fi
20266 fi
20267 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
20268 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
20269 cat >>confdefs.h <<_ACEOF
20270 @%:@define SIZEOF_DOUBLE $ac_cv_sizeof_double
20271 _ACEOF
20272
20273
20274 echo "$as_me:$LINENO: checking for long long" >&5
20275 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20276 if test "${ac_cv_type_long_long+set}" = set; then
20277 echo $ECHO_N "(cached) $ECHO_C" >&6
20278 else
20279 cat >conftest.$ac_ext <<_ACEOF
20280 /* confdefs.h. */
20281 _ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h. */
20285 $ac_includes_default
20286 int
20287 main ()
20288 {
20289 if ((long long *) 0)
20290 return 0;
20291 if (sizeof (long long))
20292 return 0;
20293 ;
20294 return 0;
20295 }
20296 _ACEOF
20297 rm -f conftest.$ac_objext
20298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20299 (eval $ac_compile) 2>conftest.er1
20300 ac_status=$?
20301 grep -v '^ *+' conftest.er1 >conftest.err
20302 rm -f conftest.er1
20303 cat conftest.err >&5
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); } &&
20306 { ac_try='test -z "$ac_c_werror_flag"
20307 || test ! -s conftest.err'
20308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309 (eval $ac_try) 2>&5
20310 ac_status=$?
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); }; } &&
20313 { ac_try='test -s conftest.$ac_objext'
20314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20315 (eval $ac_try) 2>&5
20316 ac_status=$?
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); }; }; then
20319 ac_cv_type_long_long=yes
20320 else
20321 echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20323
20324 ac_cv_type_long_long=no
20325 fi
20326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20327 fi
20328 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20329 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20330
20331 echo "$as_me:$LINENO: checking size of long long" >&5
20332 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20333 if test "${ac_cv_sizeof_long_long+set}" = set; then
20334 echo $ECHO_N "(cached) $ECHO_C" >&6
20335 else
20336 if test "$ac_cv_type_long_long" = yes; then
20337 # The cast to unsigned long works around a bug in the HP C Compiler
20338 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20339 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20340 # This bug is HP SR number 8606223364.
20341 if test "$cross_compiling" = yes; then
20342 # Depending upon the size, compute the lo and hi bounds.
20343 cat >conftest.$ac_ext <<_ACEOF
20344 /* confdefs.h. */
20345 _ACEOF
20346 cat confdefs.h >>conftest.$ac_ext
20347 cat >>conftest.$ac_ext <<_ACEOF
20348 /* end confdefs.h. */
20349 $ac_includes_default
20350 int
20351 main ()
20352 {
20353 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long))) >= 0)@:>@;
20354 test_array @<:@0@:>@ = 0
20355
20356 ;
20357 return 0;
20358 }
20359 _ACEOF
20360 rm -f conftest.$ac_objext
20361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20362 (eval $ac_compile) 2>conftest.er1
20363 ac_status=$?
20364 grep -v '^ *+' conftest.er1 >conftest.err
20365 rm -f conftest.er1
20366 cat conftest.err >&5
20367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368 (exit $ac_status); } &&
20369 { ac_try='test -z "$ac_c_werror_flag"
20370 || test ! -s conftest.err'
20371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20372 (eval $ac_try) 2>&5
20373 ac_status=$?
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); }; } &&
20376 { ac_try='test -s conftest.$ac_objext'
20377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378 (eval $ac_try) 2>&5
20379 ac_status=$?
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); }; }; then
20382 ac_lo=0 ac_mid=0
20383 while :; do
20384 cat >conftest.$ac_ext <<_ACEOF
20385 /* confdefs.h. */
20386 _ACEOF
20387 cat confdefs.h >>conftest.$ac_ext
20388 cat >>conftest.$ac_ext <<_ACEOF
20389 /* end confdefs.h. */
20390 $ac_includes_default
20391 int
20392 main ()
20393 {
20394 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)@:>@;
20395 test_array @<:@0@:>@ = 0
20396
20397 ;
20398 return 0;
20399 }
20400 _ACEOF
20401 rm -f conftest.$ac_objext
20402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20403 (eval $ac_compile) 2>conftest.er1
20404 ac_status=$?
20405 grep -v '^ *+' conftest.er1 >conftest.err
20406 rm -f conftest.er1
20407 cat conftest.err >&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } &&
20410 { ac_try='test -z "$ac_c_werror_flag"
20411 || test ! -s conftest.err'
20412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413 (eval $ac_try) 2>&5
20414 ac_status=$?
20415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416 (exit $ac_status); }; } &&
20417 { ac_try='test -s conftest.$ac_objext'
20418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20419 (eval $ac_try) 2>&5
20420 ac_status=$?
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; }; then
20423 ac_hi=$ac_mid; break
20424 else
20425 echo "$as_me: failed program was:" >&5
20426 sed 's/^/| /' conftest.$ac_ext >&5
20427
20428 ac_lo=`expr $ac_mid + 1`
20429 if test $ac_lo -le $ac_mid; then
20430 ac_lo= ac_hi=
20431 break
20432 fi
20433 ac_mid=`expr 2 '*' $ac_mid + 1`
20434 fi
20435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20436 done
20437 else
20438 echo "$as_me: failed program was:" >&5
20439 sed 's/^/| /' conftest.$ac_ext >&5
20440
20441 cat >conftest.$ac_ext <<_ACEOF
20442 /* confdefs.h. */
20443 _ACEOF
20444 cat confdefs.h >>conftest.$ac_ext
20445 cat >>conftest.$ac_ext <<_ACEOF
20446 /* end confdefs.h. */
20447 $ac_includes_default
20448 int
20449 main ()
20450 {
20451 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long))) < 0)@:>@;
20452 test_array @<:@0@:>@ = 0
20453
20454 ;
20455 return 0;
20456 }
20457 _ACEOF
20458 rm -f conftest.$ac_objext
20459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20460 (eval $ac_compile) 2>conftest.er1
20461 ac_status=$?
20462 grep -v '^ *+' conftest.er1 >conftest.err
20463 rm -f conftest.er1
20464 cat conftest.err >&5
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } &&
20467 { ac_try='test -z "$ac_c_werror_flag"
20468 || test ! -s conftest.err'
20469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470 (eval $ac_try) 2>&5
20471 ac_status=$?
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); }; } &&
20474 { ac_try='test -s conftest.$ac_objext'
20475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20476 (eval $ac_try) 2>&5
20477 ac_status=$?
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); }; }; then
20480 ac_hi=-1 ac_mid=-1
20481 while :; do
20482 cat >conftest.$ac_ext <<_ACEOF
20483 /* confdefs.h. */
20484 _ACEOF
20485 cat confdefs.h >>conftest.$ac_ext
20486 cat >>conftest.$ac_ext <<_ACEOF
20487 /* end confdefs.h. */
20488 $ac_includes_default
20489 int
20490 main ()
20491 {
20492 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)@:>@;
20493 test_array @<:@0@:>@ = 0
20494
20495 ;
20496 return 0;
20497 }
20498 _ACEOF
20499 rm -f conftest.$ac_objext
20500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20501 (eval $ac_compile) 2>conftest.er1
20502 ac_status=$?
20503 grep -v '^ *+' conftest.er1 >conftest.err
20504 rm -f conftest.er1
20505 cat conftest.err >&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); } &&
20508 { ac_try='test -z "$ac_c_werror_flag"
20509 || test ! -s conftest.err'
20510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20511 (eval $ac_try) 2>&5
20512 ac_status=$?
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); }; } &&
20515 { ac_try='test -s conftest.$ac_objext'
20516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20517 (eval $ac_try) 2>&5
20518 ac_status=$?
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); }; }; then
20521 ac_lo=$ac_mid; break
20522 else
20523 echo "$as_me: failed program was:" >&5
20524 sed 's/^/| /' conftest.$ac_ext >&5
20525
20526 ac_hi=`expr '(' $ac_mid ')' - 1`
20527 if test $ac_mid -le $ac_hi; then
20528 ac_lo= ac_hi=
20529 break
20530 fi
20531 ac_mid=`expr 2 '*' $ac_mid`
20532 fi
20533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20534 done
20535 else
20536 echo "$as_me: failed program was:" >&5
20537 sed 's/^/| /' conftest.$ac_ext >&5
20538
20539 ac_lo= ac_hi=
20540 fi
20541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20542 fi
20543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20544 # Binary search between lo and hi bounds.
20545 while test "x$ac_lo" != "x$ac_hi"; do
20546 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20547 cat >conftest.$ac_ext <<_ACEOF
20548 /* confdefs.h. */
20549 _ACEOF
20550 cat confdefs.h >>conftest.$ac_ext
20551 cat >>conftest.$ac_ext <<_ACEOF
20552 /* end confdefs.h. */
20553 $ac_includes_default
20554 int
20555 main ()
20556 {
20557 static int test_array @<:@1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)@:>@;
20558 test_array @<:@0@:>@ = 0
20559
20560 ;
20561 return 0;
20562 }
20563 _ACEOF
20564 rm -f conftest.$ac_objext
20565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20566 (eval $ac_compile) 2>conftest.er1
20567 ac_status=$?
20568 grep -v '^ *+' conftest.er1 >conftest.err
20569 rm -f conftest.er1
20570 cat conftest.err >&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); } &&
20573 { ac_try='test -z "$ac_c_werror_flag"
20574 || test ! -s conftest.err'
20575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20576 (eval $ac_try) 2>&5
20577 ac_status=$?
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); }; } &&
20580 { ac_try='test -s conftest.$ac_objext'
20581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20582 (eval $ac_try) 2>&5
20583 ac_status=$?
20584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20585 (exit $ac_status); }; }; then
20586 ac_hi=$ac_mid
20587 else
20588 echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20590
20591 ac_lo=`expr '(' $ac_mid ')' + 1`
20592 fi
20593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20594 done
20595 case $ac_lo in
20596 ?*) ac_cv_sizeof_long_long=$ac_lo;;
20597 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20598 See \`config.log' for more details." >&5
20599 echo "$as_me: error: cannot compute sizeof (long long), 77
20600 See \`config.log' for more details." >&2;}
20601 { (exit 1); exit 1; }; } ;;
20602 esac
20603 else
20604 if test "$cross_compiling" = yes; then
20605 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20606 See \`config.log' for more details." >&5
20607 echo "$as_me: error: cannot run test program while cross compiling
20608 See \`config.log' for more details." >&2;}
20609 { (exit 1); exit 1; }; }
20610 else
20611 cat >conftest.$ac_ext <<_ACEOF
20612 /* confdefs.h. */
20613 _ACEOF
20614 cat confdefs.h >>conftest.$ac_ext
20615 cat >>conftest.$ac_ext <<_ACEOF
20616 /* end confdefs.h. */
20617 $ac_includes_default
20618 long longval () { return (long) (sizeof (long long)); }
20619 unsigned long ulongval () { return (long) (sizeof (long long)); }
20620 @%:@include <stdio.h>
20621 @%:@include <stdlib.h>
20622 int
20623 main ()
20624 {
20625
20626 FILE *f = fopen ("conftest.val", "w");
20627 if (! f)
20628 exit (1);
20629 if (((long) (sizeof (long long))) < 0)
20630 {
20631 long i = longval ();
20632 if (i != ((long) (sizeof (long long))))
20633 exit (1);
20634 fprintf (f, "%ld\n", i);
20635 }
20636 else
20637 {
20638 unsigned long i = ulongval ();
20639 if (i != ((long) (sizeof (long long))))
20640 exit (1);
20641 fprintf (f, "%lu\n", i);
20642 }
20643 exit (ferror (f) || fclose (f) != 0);
20644
20645 ;
20646 return 0;
20647 }
20648 _ACEOF
20649 rm -f conftest$ac_exeext
20650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20651 (eval $ac_link) 2>&5
20652 ac_status=$?
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656 (eval $ac_try) 2>&5
20657 ac_status=$?
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); }; }; then
20660 ac_cv_sizeof_long_long=`cat conftest.val`
20661 else
20662 echo "$as_me: program exited with status $ac_status" >&5
20663 echo "$as_me: failed program was:" >&5
20664 sed 's/^/| /' conftest.$ac_ext >&5
20665
20666 ( exit $ac_status )
20667 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20668 See \`config.log' for more details." >&5
20669 echo "$as_me: error: cannot compute sizeof (long long), 77
20670 See \`config.log' for more details." >&2;}
20671 { (exit 1); exit 1; }; }
20672 fi
20673 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20674 fi
20675 fi
20676 rm -f conftest.val
20677 else
20678 ac_cv_sizeof_long_long=0
20679 fi
20680 fi
20681 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20682 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20683 cat >>confdefs.h <<_ACEOF
20684 @%:@define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20685 _ACEOF
20686
20687
20688
20689 echo "$as_me:$LINENO: checking for u_int" >&5
20690 echo $ECHO_N "checking for u_int... $ECHO_C" >&6
20691 if test "${ac_cv_type_u_int+set}" = set; then
20692 echo $ECHO_N "(cached) $ECHO_C" >&6
20693 else
20694 cat >conftest.$ac_ext <<_ACEOF
20695 /* confdefs.h. */
20696 _ACEOF
20697 cat confdefs.h >>conftest.$ac_ext
20698 cat >>conftest.$ac_ext <<_ACEOF
20699 /* end confdefs.h. */
20700 $ac_includes_default
20701 int
20702 main ()
20703 {
20704 if ((u_int *) 0)
20705 return 0;
20706 if (sizeof (u_int))
20707 return 0;
20708 ;
20709 return 0;
20710 }
20711 _ACEOF
20712 rm -f conftest.$ac_objext
20713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20714 (eval $ac_compile) 2>conftest.er1
20715 ac_status=$?
20716 grep -v '^ *+' conftest.er1 >conftest.err
20717 rm -f conftest.er1
20718 cat conftest.err >&5
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); } &&
20721 { ac_try='test -z "$ac_c_werror_flag"
20722 || test ! -s conftest.err'
20723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20724 (eval $ac_try) 2>&5
20725 ac_status=$?
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); }; } &&
20728 { ac_try='test -s conftest.$ac_objext'
20729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20730 (eval $ac_try) 2>&5
20731 ac_status=$?
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); }; }; then
20734 ac_cv_type_u_int=yes
20735 else
20736 echo "$as_me: failed program was:" >&5
20737 sed 's/^/| /' conftest.$ac_ext >&5
20738
20739 ac_cv_type_u_int=no
20740 fi
20741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20742 fi
20743 echo "$as_me:$LINENO: result: $ac_cv_type_u_int" >&5
20744 echo "${ECHO_T}$ac_cv_type_u_int" >&6
20745 if test $ac_cv_type_u_int = yes; then
20746 :
20747 else
20748
20749 cat >>confdefs.h <<_ACEOF
20750 @%:@define u_int unsigned int
20751 _ACEOF
20752
20753 fi
20754
20755 echo "$as_me:$LINENO: checking for u_long" >&5
20756 echo $ECHO_N "checking for u_long... $ECHO_C" >&6
20757 if test "${ac_cv_type_u_long+set}" = set; then
20758 echo $ECHO_N "(cached) $ECHO_C" >&6
20759 else
20760 cat >conftest.$ac_ext <<_ACEOF
20761 /* confdefs.h. */
20762 _ACEOF
20763 cat confdefs.h >>conftest.$ac_ext
20764 cat >>conftest.$ac_ext <<_ACEOF
20765 /* end confdefs.h. */
20766 $ac_includes_default
20767 int
20768 main ()
20769 {
20770 if ((u_long *) 0)
20771 return 0;
20772 if (sizeof (u_long))
20773 return 0;
20774 ;
20775 return 0;
20776 }
20777 _ACEOF
20778 rm -f conftest.$ac_objext
20779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20780 (eval $ac_compile) 2>conftest.er1
20781 ac_status=$?
20782 grep -v '^ *+' conftest.er1 >conftest.err
20783 rm -f conftest.er1
20784 cat conftest.err >&5
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); } &&
20787 { ac_try='test -z "$ac_c_werror_flag"
20788 || test ! -s conftest.err'
20789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790 (eval $ac_try) 2>&5
20791 ac_status=$?
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; } &&
20794 { ac_try='test -s conftest.$ac_objext'
20795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20796 (eval $ac_try) 2>&5
20797 ac_status=$?
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); }; }; then
20800 ac_cv_type_u_long=yes
20801 else
20802 echo "$as_me: failed program was:" >&5
20803 sed 's/^/| /' conftest.$ac_ext >&5
20804
20805 ac_cv_type_u_long=no
20806 fi
20807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20808 fi
20809 echo "$as_me:$LINENO: result: $ac_cv_type_u_long" >&5
20810 echo "${ECHO_T}$ac_cv_type_u_long" >&6
20811 if test $ac_cv_type_u_long = yes; then
20812 :
20813 else
20814
20815 cat >>confdefs.h <<_ACEOF
20816 @%:@define u_long unsigned long
20817 _ACEOF
20818
20819 fi
20820
20821
20822
20823 if test "$ac_cv_sizeof_short" = 2; then
20824 echo "$as_me:$LINENO: checking for bits16_t" >&5
20825 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
20826 if test "${ac_cv_type_bits16_t+set}" = set; then
20827 echo $ECHO_N "(cached) $ECHO_C" >&6
20828 else
20829 cat >conftest.$ac_ext <<_ACEOF
20830 /* confdefs.h. */
20831 _ACEOF
20832 cat confdefs.h >>conftest.$ac_ext
20833 cat >>conftest.$ac_ext <<_ACEOF
20834 /* end confdefs.h. */
20835 $ac_includes_default
20836 int
20837 main ()
20838 {
20839 if ((bits16_t *) 0)
20840 return 0;
20841 if (sizeof (bits16_t))
20842 return 0;
20843 ;
20844 return 0;
20845 }
20846 _ACEOF
20847 rm -f conftest.$ac_objext
20848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20849 (eval $ac_compile) 2>conftest.er1
20850 ac_status=$?
20851 grep -v '^ *+' conftest.er1 >conftest.err
20852 rm -f conftest.er1
20853 cat conftest.err >&5
20854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20855 (exit $ac_status); } &&
20856 { ac_try='test -z "$ac_c_werror_flag"
20857 || test ! -s conftest.err'
20858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20859 (eval $ac_try) 2>&5
20860 ac_status=$?
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); }; } &&
20863 { ac_try='test -s conftest.$ac_objext'
20864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20865 (eval $ac_try) 2>&5
20866 ac_status=$?
20867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20868 (exit $ac_status); }; }; then
20869 ac_cv_type_bits16_t=yes
20870 else
20871 echo "$as_me: failed program was:" >&5
20872 sed 's/^/| /' conftest.$ac_ext >&5
20873
20874 ac_cv_type_bits16_t=no
20875 fi
20876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20877 fi
20878 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
20879 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
20880 if test $ac_cv_type_bits16_t = yes; then
20881 :
20882 else
20883
20884 cat >>confdefs.h <<_ACEOF
20885 @%:@define bits16_t short
20886 _ACEOF
20887
20888 fi
20889
20890 elif test "$ac_cv_sizeof_char" = 2; then
20891 echo "$as_me:$LINENO: checking for bits16_t" >&5
20892 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
20893 if test "${ac_cv_type_bits16_t+set}" = set; then
20894 echo $ECHO_N "(cached) $ECHO_C" >&6
20895 else
20896 cat >conftest.$ac_ext <<_ACEOF
20897 /* confdefs.h. */
20898 _ACEOF
20899 cat confdefs.h >>conftest.$ac_ext
20900 cat >>conftest.$ac_ext <<_ACEOF
20901 /* end confdefs.h. */
20902 $ac_includes_default
20903 int
20904 main ()
20905 {
20906 if ((bits16_t *) 0)
20907 return 0;
20908 if (sizeof (bits16_t))
20909 return 0;
20910 ;
20911 return 0;
20912 }
20913 _ACEOF
20914 rm -f conftest.$ac_objext
20915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20916 (eval $ac_compile) 2>conftest.er1
20917 ac_status=$?
20918 grep -v '^ *+' conftest.er1 >conftest.err
20919 rm -f conftest.er1
20920 cat conftest.err >&5
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); } &&
20923 { ac_try='test -z "$ac_c_werror_flag"
20924 || test ! -s conftest.err'
20925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20926 (eval $ac_try) 2>&5
20927 ac_status=$?
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); }; } &&
20930 { ac_try='test -s conftest.$ac_objext'
20931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20932 (eval $ac_try) 2>&5
20933 ac_status=$?
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); }; }; then
20936 ac_cv_type_bits16_t=yes
20937 else
20938 echo "$as_me: failed program was:" >&5
20939 sed 's/^/| /' conftest.$ac_ext >&5
20940
20941 ac_cv_type_bits16_t=no
20942 fi
20943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20944 fi
20945 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
20946 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
20947 if test $ac_cv_type_bits16_t = yes; then
20948 :
20949 else
20950
20951 cat >>confdefs.h <<_ACEOF
20952 @%:@define bits16_t char
20953 _ACEOF
20954
20955 fi
20956
20957 else
20958 echo "$as_me:$LINENO: checking for bits16_t" >&5
20959 echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6
20960 if test "${ac_cv_type_bits16_t+set}" = set; then
20961 echo $ECHO_N "(cached) $ECHO_C" >&6
20962 else
20963 cat >conftest.$ac_ext <<_ACEOF
20964 /* confdefs.h. */
20965 _ACEOF
20966 cat confdefs.h >>conftest.$ac_ext
20967 cat >>conftest.$ac_ext <<_ACEOF
20968 /* end confdefs.h. */
20969 $ac_includes_default
20970 int
20971 main ()
20972 {
20973 if ((bits16_t *) 0)
20974 return 0;
20975 if (sizeof (bits16_t))
20976 return 0;
20977 ;
20978 return 0;
20979 }
20980 _ACEOF
20981 rm -f conftest.$ac_objext
20982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20983 (eval $ac_compile) 2>conftest.er1
20984 ac_status=$?
20985 grep -v '^ *+' conftest.er1 >conftest.err
20986 rm -f conftest.er1
20987 cat conftest.err >&5
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); } &&
20990 { ac_try='test -z "$ac_c_werror_flag"
20991 || test ! -s conftest.err'
20992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20993 (eval $ac_try) 2>&5
20994 ac_status=$?
20995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20996 (exit $ac_status); }; } &&
20997 { ac_try='test -s conftest.$ac_objext'
20998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20999 (eval $ac_try) 2>&5
21000 ac_status=$?
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); }; }; then
21003 ac_cv_type_bits16_t=yes
21004 else
21005 echo "$as_me: failed program was:" >&5
21006 sed 's/^/| /' conftest.$ac_ext >&5
21007
21008 ac_cv_type_bits16_t=no
21009 fi
21010 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21011 fi
21012 echo "$as_me:$LINENO: result: $ac_cv_type_bits16_t" >&5
21013 echo "${ECHO_T}$ac_cv_type_bits16_t" >&6
21014 if test $ac_cv_type_bits16_t = yes; then
21015 :
21016 else
21017
21018 cat >>confdefs.h <<_ACEOF
21019 @%:@define bits16_t short
21020 _ACEOF
21021
21022 fi
21023
21024 fi
21025
21026
21027 if test "$ac_cv_sizeof_short" = 2; then
21028 echo "$as_me:$LINENO: checking for u_bits16_t" >&5
21029 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
21030 if test "${ac_cv_type_u_bits16_t+set}" = set; then
21031 echo $ECHO_N "(cached) $ECHO_C" >&6
21032 else
21033 cat >conftest.$ac_ext <<_ACEOF
21034 /* confdefs.h. */
21035 _ACEOF
21036 cat confdefs.h >>conftest.$ac_ext
21037 cat >>conftest.$ac_ext <<_ACEOF
21038 /* end confdefs.h. */
21039 $ac_includes_default
21040 int
21041 main ()
21042 {
21043 if ((u_bits16_t *) 0)
21044 return 0;
21045 if (sizeof (u_bits16_t))
21046 return 0;
21047 ;
21048 return 0;
21049 }
21050 _ACEOF
21051 rm -f conftest.$ac_objext
21052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21053 (eval $ac_compile) 2>conftest.er1
21054 ac_status=$?
21055 grep -v '^ *+' conftest.er1 >conftest.err
21056 rm -f conftest.er1
21057 cat conftest.err >&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); } &&
21060 { ac_try='test -z "$ac_c_werror_flag"
21061 || test ! -s conftest.err'
21062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21063 (eval $ac_try) 2>&5
21064 ac_status=$?
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); }; } &&
21067 { ac_try='test -s conftest.$ac_objext'
21068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21069 (eval $ac_try) 2>&5
21070 ac_status=$?
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); }; }; then
21073 ac_cv_type_u_bits16_t=yes
21074 else
21075 echo "$as_me: failed program was:" >&5
21076 sed 's/^/| /' conftest.$ac_ext >&5
21077
21078 ac_cv_type_u_bits16_t=no
21079 fi
21080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21081 fi
21082 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
21083 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
21084 if test $ac_cv_type_u_bits16_t = yes; then
21085 :
21086 else
21087
21088 cat >>confdefs.h <<_ACEOF
21089 @%:@define u_bits16_t unsigned short
21090 _ACEOF
21091
21092 fi
21093
21094 elif test "$ac_cv_sizeof_char" = 2; then
21095 echo "$as_me:$LINENO: checking for u_bits16_t" >&5
21096 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
21097 if test "${ac_cv_type_u_bits16_t+set}" = set; then
21098 echo $ECHO_N "(cached) $ECHO_C" >&6
21099 else
21100 cat >conftest.$ac_ext <<_ACEOF
21101 /* confdefs.h. */
21102 _ACEOF
21103 cat confdefs.h >>conftest.$ac_ext
21104 cat >>conftest.$ac_ext <<_ACEOF
21105 /* end confdefs.h. */
21106 $ac_includes_default
21107 int
21108 main ()
21109 {
21110 if ((u_bits16_t *) 0)
21111 return 0;
21112 if (sizeof (u_bits16_t))
21113 return 0;
21114 ;
21115 return 0;
21116 }
21117 _ACEOF
21118 rm -f conftest.$ac_objext
21119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21120 (eval $ac_compile) 2>conftest.er1
21121 ac_status=$?
21122 grep -v '^ *+' conftest.er1 >conftest.err
21123 rm -f conftest.er1
21124 cat conftest.err >&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); } &&
21127 { ac_try='test -z "$ac_c_werror_flag"
21128 || test ! -s conftest.err'
21129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21130 (eval $ac_try) 2>&5
21131 ac_status=$?
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); }; } &&
21134 { ac_try='test -s conftest.$ac_objext'
21135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21136 (eval $ac_try) 2>&5
21137 ac_status=$?
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); }; }; then
21140 ac_cv_type_u_bits16_t=yes
21141 else
21142 echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21144
21145 ac_cv_type_u_bits16_t=no
21146 fi
21147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21148 fi
21149 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
21150 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
21151 if test $ac_cv_type_u_bits16_t = yes; then
21152 :
21153 else
21154
21155 cat >>confdefs.h <<_ACEOF
21156 @%:@define u_bits16_t unsigned char
21157 _ACEOF
21158
21159 fi
21160
21161 else
21162 echo "$as_me:$LINENO: checking for u_bits16_t" >&5
21163 echo $ECHO_N "checking for u_bits16_t... $ECHO_C" >&6
21164 if test "${ac_cv_type_u_bits16_t+set}" = set; then
21165 echo $ECHO_N "(cached) $ECHO_C" >&6
21166 else
21167 cat >conftest.$ac_ext <<_ACEOF
21168 /* confdefs.h. */
21169 _ACEOF
21170 cat confdefs.h >>conftest.$ac_ext
21171 cat >>conftest.$ac_ext <<_ACEOF
21172 /* end confdefs.h. */
21173 $ac_includes_default
21174 int
21175 main ()
21176 {
21177 if ((u_bits16_t *) 0)
21178 return 0;
21179 if (sizeof (u_bits16_t))
21180 return 0;
21181 ;
21182 return 0;
21183 }
21184 _ACEOF
21185 rm -f conftest.$ac_objext
21186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21187 (eval $ac_compile) 2>conftest.er1
21188 ac_status=$?
21189 grep -v '^ *+' conftest.er1 >conftest.err
21190 rm -f conftest.er1
21191 cat conftest.err >&5
21192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193 (exit $ac_status); } &&
21194 { ac_try='test -z "$ac_c_werror_flag"
21195 || test ! -s conftest.err'
21196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21197 (eval $ac_try) 2>&5
21198 ac_status=$?
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); }; } &&
21201 { ac_try='test -s conftest.$ac_objext'
21202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203 (eval $ac_try) 2>&5
21204 ac_status=$?
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); }; }; then
21207 ac_cv_type_u_bits16_t=yes
21208 else
21209 echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.$ac_ext >&5
21211
21212 ac_cv_type_u_bits16_t=no
21213 fi
21214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21215 fi
21216 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits16_t" >&5
21217 echo "${ECHO_T}$ac_cv_type_u_bits16_t" >&6
21218 if test $ac_cv_type_u_bits16_t = yes; then
21219 :
21220 else
21221
21222 cat >>confdefs.h <<_ACEOF
21223 @%:@define u_bits16_t unsigned short
21224 _ACEOF
21225
21226 fi
21227
21228 fi
21229
21230
21231 if test "$ac_cv_sizeof_int" = 4; then
21232 echo "$as_me:$LINENO: checking for bits32_t" >&5
21233 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
21234 if test "${ac_cv_type_bits32_t+set}" = set; then
21235 echo $ECHO_N "(cached) $ECHO_C" >&6
21236 else
21237 cat >conftest.$ac_ext <<_ACEOF
21238 /* confdefs.h. */
21239 _ACEOF
21240 cat confdefs.h >>conftest.$ac_ext
21241 cat >>conftest.$ac_ext <<_ACEOF
21242 /* end confdefs.h. */
21243 $ac_includes_default
21244 int
21245 main ()
21246 {
21247 if ((bits32_t *) 0)
21248 return 0;
21249 if (sizeof (bits32_t))
21250 return 0;
21251 ;
21252 return 0;
21253 }
21254 _ACEOF
21255 rm -f conftest.$ac_objext
21256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21257 (eval $ac_compile) 2>conftest.er1
21258 ac_status=$?
21259 grep -v '^ *+' conftest.er1 >conftest.err
21260 rm -f conftest.er1
21261 cat conftest.err >&5
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); } &&
21264 { ac_try='test -z "$ac_c_werror_flag"
21265 || test ! -s conftest.err'
21266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267 (eval $ac_try) 2>&5
21268 ac_status=$?
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); }; } &&
21271 { ac_try='test -s conftest.$ac_objext'
21272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21273 (eval $ac_try) 2>&5
21274 ac_status=$?
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); }; }; then
21277 ac_cv_type_bits32_t=yes
21278 else
21279 echo "$as_me: failed program was:" >&5
21280 sed 's/^/| /' conftest.$ac_ext >&5
21281
21282 ac_cv_type_bits32_t=no
21283 fi
21284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21285 fi
21286 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
21287 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
21288 if test $ac_cv_type_bits32_t = yes; then
21289 :
21290 else
21291
21292 cat >>confdefs.h <<_ACEOF
21293 @%:@define bits32_t int
21294 _ACEOF
21295
21296 fi
21297
21298 elif test "$ac_cv_sizeof_long" = 4; then
21299 echo "$as_me:$LINENO: checking for bits32_t" >&5
21300 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
21301 if test "${ac_cv_type_bits32_t+set}" = set; then
21302 echo $ECHO_N "(cached) $ECHO_C" >&6
21303 else
21304 cat >conftest.$ac_ext <<_ACEOF
21305 /* confdefs.h. */
21306 _ACEOF
21307 cat confdefs.h >>conftest.$ac_ext
21308 cat >>conftest.$ac_ext <<_ACEOF
21309 /* end confdefs.h. */
21310 $ac_includes_default
21311 int
21312 main ()
21313 {
21314 if ((bits32_t *) 0)
21315 return 0;
21316 if (sizeof (bits32_t))
21317 return 0;
21318 ;
21319 return 0;
21320 }
21321 _ACEOF
21322 rm -f conftest.$ac_objext
21323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21324 (eval $ac_compile) 2>conftest.er1
21325 ac_status=$?
21326 grep -v '^ *+' conftest.er1 >conftest.err
21327 rm -f conftest.er1
21328 cat conftest.err >&5
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); } &&
21331 { ac_try='test -z "$ac_c_werror_flag"
21332 || test ! -s conftest.err'
21333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21334 (eval $ac_try) 2>&5
21335 ac_status=$?
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); }; } &&
21338 { ac_try='test -s conftest.$ac_objext'
21339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21340 (eval $ac_try) 2>&5
21341 ac_status=$?
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); }; }; then
21344 ac_cv_type_bits32_t=yes
21345 else
21346 echo "$as_me: failed program was:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21348
21349 ac_cv_type_bits32_t=no
21350 fi
21351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21352 fi
21353 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
21354 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
21355 if test $ac_cv_type_bits32_t = yes; then
21356 :
21357 else
21358
21359 cat >>confdefs.h <<_ACEOF
21360 @%:@define bits32_t long
21361 _ACEOF
21362
21363 fi
21364
21365 else
21366 echo "$as_me:$LINENO: checking for bits32_t" >&5
21367 echo $ECHO_N "checking for bits32_t... $ECHO_C" >&6
21368 if test "${ac_cv_type_bits32_t+set}" = set; then
21369 echo $ECHO_N "(cached) $ECHO_C" >&6
21370 else
21371 cat >conftest.$ac_ext <<_ACEOF
21372 /* confdefs.h. */
21373 _ACEOF
21374 cat confdefs.h >>conftest.$ac_ext
21375 cat >>conftest.$ac_ext <<_ACEOF
21376 /* end confdefs.h. */
21377 $ac_includes_default
21378 int
21379 main ()
21380 {
21381 if ((bits32_t *) 0)
21382 return 0;
21383 if (sizeof (bits32_t))
21384 return 0;
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>conftest.er1
21392 ac_status=$?
21393 grep -v '^ *+' conftest.er1 >conftest.err
21394 rm -f conftest.er1
21395 cat conftest.err >&5
21396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); } &&
21398 { ac_try='test -z "$ac_c_werror_flag"
21399 || test ! -s conftest.err'
21400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21401 (eval $ac_try) 2>&5
21402 ac_status=$?
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); }; } &&
21405 { ac_try='test -s conftest.$ac_objext'
21406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21407 (eval $ac_try) 2>&5
21408 ac_status=$?
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); }; }; then
21411 ac_cv_type_bits32_t=yes
21412 else
21413 echo "$as_me: failed program was:" >&5
21414 sed 's/^/| /' conftest.$ac_ext >&5
21415
21416 ac_cv_type_bits32_t=no
21417 fi
21418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21419 fi
21420 echo "$as_me:$LINENO: result: $ac_cv_type_bits32_t" >&5
21421 echo "${ECHO_T}$ac_cv_type_bits32_t" >&6
21422 if test $ac_cv_type_bits32_t = yes; then
21423 :
21424 else
21425
21426 cat >>confdefs.h <<_ACEOF
21427 @%:@define bits32_t int
21428 _ACEOF
21429
21430 fi
21431
21432 fi
21433
21434
21435 if test "$ac_cv_sizeof_int" = 4; then
21436 echo "$as_me:$LINENO: checking for u_bits32_t" >&5
21437 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
21438 if test "${ac_cv_type_u_bits32_t+set}" = set; then
21439 echo $ECHO_N "(cached) $ECHO_C" >&6
21440 else
21441 cat >conftest.$ac_ext <<_ACEOF
21442 /* confdefs.h. */
21443 _ACEOF
21444 cat confdefs.h >>conftest.$ac_ext
21445 cat >>conftest.$ac_ext <<_ACEOF
21446 /* end confdefs.h. */
21447 $ac_includes_default
21448 int
21449 main ()
21450 {
21451 if ((u_bits32_t *) 0)
21452 return 0;
21453 if (sizeof (u_bits32_t))
21454 return 0;
21455 ;
21456 return 0;
21457 }
21458 _ACEOF
21459 rm -f conftest.$ac_objext
21460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21461 (eval $ac_compile) 2>conftest.er1
21462 ac_status=$?
21463 grep -v '^ *+' conftest.er1 >conftest.err
21464 rm -f conftest.er1
21465 cat conftest.err >&5
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); } &&
21468 { ac_try='test -z "$ac_c_werror_flag"
21469 || test ! -s conftest.err'
21470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21471 (eval $ac_try) 2>&5
21472 ac_status=$?
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); }; } &&
21475 { ac_try='test -s conftest.$ac_objext'
21476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477 (eval $ac_try) 2>&5
21478 ac_status=$?
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); }; }; then
21481 ac_cv_type_u_bits32_t=yes
21482 else
21483 echo "$as_me: failed program was:" >&5
21484 sed 's/^/| /' conftest.$ac_ext >&5
21485
21486 ac_cv_type_u_bits32_t=no
21487 fi
21488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21489 fi
21490 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
21491 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
21492 if test $ac_cv_type_u_bits32_t = yes; then
21493 :
21494 else
21495
21496 cat >>confdefs.h <<_ACEOF
21497 @%:@define u_bits32_t unsigned int
21498 _ACEOF
21499
21500 fi
21501
21502 elif test "$ac_cv_sizeof_long" = 4; then
21503 echo "$as_me:$LINENO: checking for u_bits32_t" >&5
21504 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
21505 if test "${ac_cv_type_u_bits32_t+set}" = set; then
21506 echo $ECHO_N "(cached) $ECHO_C" >&6
21507 else
21508 cat >conftest.$ac_ext <<_ACEOF
21509 /* confdefs.h. */
21510 _ACEOF
21511 cat confdefs.h >>conftest.$ac_ext
21512 cat >>conftest.$ac_ext <<_ACEOF
21513 /* end confdefs.h. */
21514 $ac_includes_default
21515 int
21516 main ()
21517 {
21518 if ((u_bits32_t *) 0)
21519 return 0;
21520 if (sizeof (u_bits32_t))
21521 return 0;
21522 ;
21523 return 0;
21524 }
21525 _ACEOF
21526 rm -f conftest.$ac_objext
21527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21528 (eval $ac_compile) 2>conftest.er1
21529 ac_status=$?
21530 grep -v '^ *+' conftest.er1 >conftest.err
21531 rm -f conftest.er1
21532 cat conftest.err >&5
21533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); } &&
21535 { ac_try='test -z "$ac_c_werror_flag"
21536 || test ! -s conftest.err'
21537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21538 (eval $ac_try) 2>&5
21539 ac_status=$?
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); }; } &&
21542 { ac_try='test -s conftest.$ac_objext'
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21545 ac_status=$?
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; }; then
21548 ac_cv_type_u_bits32_t=yes
21549 else
21550 echo "$as_me: failed program was:" >&5
21551 sed 's/^/| /' conftest.$ac_ext >&5
21552
21553 ac_cv_type_u_bits32_t=no
21554 fi
21555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21556 fi
21557 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
21558 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
21559 if test $ac_cv_type_u_bits32_t = yes; then
21560 :
21561 else
21562
21563 cat >>confdefs.h <<_ACEOF
21564 @%:@define u_bits32_t unsigned long
21565 _ACEOF
21566
21567 fi
21568
21569 else
21570 echo "$as_me:$LINENO: checking for u_bits32_t" >&5
21571 echo $ECHO_N "checking for u_bits32_t... $ECHO_C" >&6
21572 if test "${ac_cv_type_u_bits32_t+set}" = set; then
21573 echo $ECHO_N "(cached) $ECHO_C" >&6
21574 else
21575 cat >conftest.$ac_ext <<_ACEOF
21576 /* confdefs.h. */
21577 _ACEOF
21578 cat confdefs.h >>conftest.$ac_ext
21579 cat >>conftest.$ac_ext <<_ACEOF
21580 /* end confdefs.h. */
21581 $ac_includes_default
21582 int
21583 main ()
21584 {
21585 if ((u_bits32_t *) 0)
21586 return 0;
21587 if (sizeof (u_bits32_t))
21588 return 0;
21589 ;
21590 return 0;
21591 }
21592 _ACEOF
21593 rm -f conftest.$ac_objext
21594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21595 (eval $ac_compile) 2>conftest.er1
21596 ac_status=$?
21597 grep -v '^ *+' conftest.er1 >conftest.err
21598 rm -f conftest.er1
21599 cat conftest.err >&5
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); } &&
21602 { ac_try='test -z "$ac_c_werror_flag"
21603 || test ! -s conftest.err'
21604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21605 (eval $ac_try) 2>&5
21606 ac_status=$?
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); }; } &&
21609 { ac_try='test -s conftest.$ac_objext'
21610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21611 (eval $ac_try) 2>&5
21612 ac_status=$?
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); }; }; then
21615 ac_cv_type_u_bits32_t=yes
21616 else
21617 echo "$as_me: failed program was:" >&5
21618 sed 's/^/| /' conftest.$ac_ext >&5
21619
21620 ac_cv_type_u_bits32_t=no
21621 fi
21622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21623 fi
21624 echo "$as_me:$LINENO: result: $ac_cv_type_u_bits32_t" >&5
21625 echo "${ECHO_T}$ac_cv_type_u_bits32_t" >&6
21626 if test $ac_cv_type_u_bits32_t = yes; then
21627 :
21628 else
21629
21630 cat >>confdefs.h <<_ACEOF
21631 @%:@define u_bits32_t unsigned int
21632 _ACEOF
21633
21634 fi
21635
21636 fi
21637
21638
21639 if test "$ac_cv_sizeof_char_p" = 8; then
21640 echo "$as_me:$LINENO: checking for bits64_t" >&5
21641 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21642 if test "${ac_cv_type_bits64_t+set}" = set; then
21643 echo $ECHO_N "(cached) $ECHO_C" >&6
21644 else
21645 cat >conftest.$ac_ext <<_ACEOF
21646 /* confdefs.h. */
21647 _ACEOF
21648 cat confdefs.h >>conftest.$ac_ext
21649 cat >>conftest.$ac_ext <<_ACEOF
21650 /* end confdefs.h. */
21651 $ac_includes_default
21652 int
21653 main ()
21654 {
21655 if ((bits64_t *) 0)
21656 return 0;
21657 if (sizeof (bits64_t))
21658 return 0;
21659 ;
21660 return 0;
21661 }
21662 _ACEOF
21663 rm -f conftest.$ac_objext
21664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21665 (eval $ac_compile) 2>conftest.er1
21666 ac_status=$?
21667 grep -v '^ *+' conftest.er1 >conftest.err
21668 rm -f conftest.er1
21669 cat conftest.err >&5
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); } &&
21672 { ac_try='test -z "$ac_c_werror_flag"
21673 || test ! -s conftest.err'
21674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21675 (eval $ac_try) 2>&5
21676 ac_status=$?
21677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678 (exit $ac_status); }; } &&
21679 { ac_try='test -s conftest.$ac_objext'
21680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21681 (eval $ac_try) 2>&5
21682 ac_status=$?
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); }; }; then
21685 ac_cv_type_bits64_t=yes
21686 else
21687 echo "$as_me: failed program was:" >&5
21688 sed 's/^/| /' conftest.$ac_ext >&5
21689
21690 ac_cv_type_bits64_t=no
21691 fi
21692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21693 fi
21694 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
21695 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21696 if test $ac_cv_type_bits64_t = yes; then
21697 :
21698 else
21699
21700 cat >>confdefs.h <<_ACEOF
21701 @%:@define bits64_t char *
21702 _ACEOF
21703
21704 fi
21705
21706 elif test "$ac_cv_sizeof_double" = 8; then
21707 echo "$as_me:$LINENO: checking for bits64_t" >&5
21708 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21709 if test "${ac_cv_type_bits64_t+set}" = set; then
21710 echo $ECHO_N "(cached) $ECHO_C" >&6
21711 else
21712 cat >conftest.$ac_ext <<_ACEOF
21713 /* confdefs.h. */
21714 _ACEOF
21715 cat confdefs.h >>conftest.$ac_ext
21716 cat >>conftest.$ac_ext <<_ACEOF
21717 /* end confdefs.h. */
21718 $ac_includes_default
21719 int
21720 main ()
21721 {
21722 if ((bits64_t *) 0)
21723 return 0;
21724 if (sizeof (bits64_t))
21725 return 0;
21726 ;
21727 return 0;
21728 }
21729 _ACEOF
21730 rm -f conftest.$ac_objext
21731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21732 (eval $ac_compile) 2>conftest.er1
21733 ac_status=$?
21734 grep -v '^ *+' conftest.er1 >conftest.err
21735 rm -f conftest.er1
21736 cat conftest.err >&5
21737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738 (exit $ac_status); } &&
21739 { ac_try='test -z "$ac_c_werror_flag"
21740 || test ! -s conftest.err'
21741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21742 (eval $ac_try) 2>&5
21743 ac_status=$?
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); }; } &&
21746 { ac_try='test -s conftest.$ac_objext'
21747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21748 (eval $ac_try) 2>&5
21749 ac_status=$?
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); }; }; then
21752 ac_cv_type_bits64_t=yes
21753 else
21754 echo "$as_me: failed program was:" >&5
21755 sed 's/^/| /' conftest.$ac_ext >&5
21756
21757 ac_cv_type_bits64_t=no
21758 fi
21759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21760 fi
21761 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
21762 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21763 if test $ac_cv_type_bits64_t = yes; then
21764 :
21765 else
21766
21767 cat >>confdefs.h <<_ACEOF
21768 @%:@define bits64_t double
21769 _ACEOF
21770
21771 fi
21772
21773 elif test -n "$ac_cv_type_long_long" && test "$ac_cv_sizeof_long_long" = 8; then
21774 echo "$as_me:$LINENO: checking for bits64_t" >&5
21775 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21776 if test "${ac_cv_type_bits64_t+set}" = set; then
21777 echo $ECHO_N "(cached) $ECHO_C" >&6
21778 else
21779 cat >conftest.$ac_ext <<_ACEOF
21780 /* confdefs.h. */
21781 _ACEOF
21782 cat confdefs.h >>conftest.$ac_ext
21783 cat >>conftest.$ac_ext <<_ACEOF
21784 /* end confdefs.h. */
21785 $ac_includes_default
21786 int
21787 main ()
21788 {
21789 if ((bits64_t *) 0)
21790 return 0;
21791 if (sizeof (bits64_t))
21792 return 0;
21793 ;
21794 return 0;
21795 }
21796 _ACEOF
21797 rm -f conftest.$ac_objext
21798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21799 (eval $ac_compile) 2>conftest.er1
21800 ac_status=$?
21801 grep -v '^ *+' conftest.er1 >conftest.err
21802 rm -f conftest.er1
21803 cat conftest.err >&5
21804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); } &&
21806 { ac_try='test -z "$ac_c_werror_flag"
21807 || test ! -s conftest.err'
21808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21809 (eval $ac_try) 2>&5
21810 ac_status=$?
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); }; } &&
21813 { ac_try='test -s conftest.$ac_objext'
21814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21815 (eval $ac_try) 2>&5
21816 ac_status=$?
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); }; }; then
21819 ac_cv_type_bits64_t=yes
21820 else
21821 echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21823
21824 ac_cv_type_bits64_t=no
21825 fi
21826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21827 fi
21828 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
21829 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21830 if test $ac_cv_type_bits64_t = yes; then
21831 :
21832 else
21833
21834 cat >>confdefs.h <<_ACEOF
21835 @%:@define bits64_t long long
21836 _ACEOF
21837
21838 fi
21839
21840 elif test "$ac_cv_sizeof_long" = 8; then
21841 echo "$as_me:$LINENO: checking for bits64_t" >&5
21842 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21843 if test "${ac_cv_type_bits64_t+set}" = set; then
21844 echo $ECHO_N "(cached) $ECHO_C" >&6
21845 else
21846 cat >conftest.$ac_ext <<_ACEOF
21847 /* confdefs.h. */
21848 _ACEOF
21849 cat confdefs.h >>conftest.$ac_ext
21850 cat >>conftest.$ac_ext <<_ACEOF
21851 /* end confdefs.h. */
21852 $ac_includes_default
21853 int
21854 main ()
21855 {
21856 if ((bits64_t *) 0)
21857 return 0;
21858 if (sizeof (bits64_t))
21859 return 0;
21860 ;
21861 return 0;
21862 }
21863 _ACEOF
21864 rm -f conftest.$ac_objext
21865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21866 (eval $ac_compile) 2>conftest.er1
21867 ac_status=$?
21868 grep -v '^ *+' conftest.er1 >conftest.err
21869 rm -f conftest.er1
21870 cat conftest.err >&5
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); } &&
21873 { ac_try='test -z "$ac_c_werror_flag"
21874 || test ! -s conftest.err'
21875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21876 (eval $ac_try) 2>&5
21877 ac_status=$?
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); }; } &&
21880 { ac_try='test -s conftest.$ac_objext'
21881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21882 (eval $ac_try) 2>&5
21883 ac_status=$?
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); }; }; then
21886 ac_cv_type_bits64_t=yes
21887 else
21888 echo "$as_me: failed program was:" >&5
21889 sed 's/^/| /' conftest.$ac_ext >&5
21890
21891 ac_cv_type_bits64_t=no
21892 fi
21893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21894 fi
21895 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
21896 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21897 if test $ac_cv_type_bits64_t = yes; then
21898 :
21899 else
21900
21901 cat >>confdefs.h <<_ACEOF
21902 @%:@define bits64_t long
21903 _ACEOF
21904
21905 fi
21906
21907 else
21908 echo "$as_me:$LINENO: checking for bits64_t" >&5
21909 echo $ECHO_N "checking for bits64_t... $ECHO_C" >&6
21910 if test "${ac_cv_type_bits64_t+set}" = set; then
21911 echo $ECHO_N "(cached) $ECHO_C" >&6
21912 else
21913 cat >conftest.$ac_ext <<_ACEOF
21914 /* confdefs.h. */
21915 _ACEOF
21916 cat confdefs.h >>conftest.$ac_ext
21917 cat >>conftest.$ac_ext <<_ACEOF
21918 /* end confdefs.h. */
21919 $ac_includes_default
21920 int
21921 main ()
21922 {
21923 if ((bits64_t *) 0)
21924 return 0;
21925 if (sizeof (bits64_t))
21926 return 0;
21927 ;
21928 return 0;
21929 }
21930 _ACEOF
21931 rm -f conftest.$ac_objext
21932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21933 (eval $ac_compile) 2>conftest.er1
21934 ac_status=$?
21935 grep -v '^ *+' conftest.er1 >conftest.err
21936 rm -f conftest.er1
21937 cat conftest.err >&5
21938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939 (exit $ac_status); } &&
21940 { ac_try='test -z "$ac_c_werror_flag"
21941 || test ! -s conftest.err'
21942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21943 (eval $ac_try) 2>&5
21944 ac_status=$?
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); }; } &&
21947 { ac_try='test -s conftest.$ac_objext'
21948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21949 (eval $ac_try) 2>&5
21950 ac_status=$?
21951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952 (exit $ac_status); }; }; then
21953 ac_cv_type_bits64_t=yes
21954 else
21955 echo "$as_me: failed program was:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21957
21958 ac_cv_type_bits64_t=no
21959 fi
21960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21961 fi
21962 echo "$as_me:$LINENO: result: $ac_cv_type_bits64_t" >&5
21963 echo "${ECHO_T}$ac_cv_type_bits64_t" >&6
21964 if test $ac_cv_type_bits64_t = yes; then
21965 :
21966 else
21967
21968 cat >>confdefs.h <<_ACEOF
21969 @%:@define bits64_t double
21970 _ACEOF
21971
21972 fi
21973
21974 fi
21975
21976
21977
21978 if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_char_p"; then
21979 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21980 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
21981 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21982 echo $ECHO_N "(cached) $ECHO_C" >&6
21983 else
21984 cat >conftest.$ac_ext <<_ACEOF
21985 /* confdefs.h. */
21986 _ACEOF
21987 cat confdefs.h >>conftest.$ac_ext
21988 cat >>conftest.$ac_ext <<_ACEOF
21989 /* end confdefs.h. */
21990 $ac_includes_default
21991 int
21992 main ()
21993 {
21994 if ((ptrdiff_t *) 0)
21995 return 0;
21996 if (sizeof (ptrdiff_t))
21997 return 0;
21998 ;
21999 return 0;
22000 }
22001 _ACEOF
22002 rm -f conftest.$ac_objext
22003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22004 (eval $ac_compile) 2>conftest.er1
22005 ac_status=$?
22006 grep -v '^ *+' conftest.er1 >conftest.err
22007 rm -f conftest.er1
22008 cat conftest.err >&5
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); } &&
22011 { ac_try='test -z "$ac_c_werror_flag"
22012 || test ! -s conftest.err'
22013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22014 (eval $ac_try) 2>&5
22015 ac_status=$?
22016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22017 (exit $ac_status); }; } &&
22018 { ac_try='test -s conftest.$ac_objext'
22019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22020 (eval $ac_try) 2>&5
22021 ac_status=$?
22022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); }; }; then
22024 ac_cv_type_ptrdiff_t=yes
22025 else
22026 echo "$as_me: failed program was:" >&5
22027 sed 's/^/| /' conftest.$ac_ext >&5
22028
22029 ac_cv_type_ptrdiff_t=no
22030 fi
22031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22032 fi
22033 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22034 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
22035 if test $ac_cv_type_ptrdiff_t = yes; then
22036 :
22037 else
22038
22039 cat >>confdefs.h <<_ACEOF
22040 @%:@define ptrdiff_t int
22041 _ACEOF
22042
22043 fi
22044
22045 elif test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_char_p"; then
22046 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22047 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
22048 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22049 echo $ECHO_N "(cached) $ECHO_C" >&6
22050 else
22051 cat >conftest.$ac_ext <<_ACEOF
22052 /* confdefs.h. */
22053 _ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h. */
22057 $ac_includes_default
22058 int
22059 main ()
22060 {
22061 if ((ptrdiff_t *) 0)
22062 return 0;
22063 if (sizeof (ptrdiff_t))
22064 return 0;
22065 ;
22066 return 0;
22067 }
22068 _ACEOF
22069 rm -f conftest.$ac_objext
22070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22071 (eval $ac_compile) 2>conftest.er1
22072 ac_status=$?
22073 grep -v '^ *+' conftest.er1 >conftest.err
22074 rm -f conftest.er1
22075 cat conftest.err >&5
22076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); } &&
22078 { ac_try='test -z "$ac_c_werror_flag"
22079 || test ! -s conftest.err'
22080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22081 (eval $ac_try) 2>&5
22082 ac_status=$?
22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); }; } &&
22085 { ac_try='test -s conftest.$ac_objext'
22086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22087 (eval $ac_try) 2>&5
22088 ac_status=$?
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); }; }; then
22091 ac_cv_type_ptrdiff_t=yes
22092 else
22093 echo "$as_me: failed program was:" >&5
22094 sed 's/^/| /' conftest.$ac_ext >&5
22095
22096 ac_cv_type_ptrdiff_t=no
22097 fi
22098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22099 fi
22100 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22101 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
22102 if test $ac_cv_type_ptrdiff_t = yes; then
22103 :
22104 else
22105
22106 cat >>confdefs.h <<_ACEOF
22107 @%:@define ptrdiff_t long
22108 _ACEOF
22109
22110 fi
22111
22112 elif test "$ac_cv_type_long_long" = yes && test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_char_p"; then
22113 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22114 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
22115 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22116 echo $ECHO_N "(cached) $ECHO_C" >&6
22117 else
22118 cat >conftest.$ac_ext <<_ACEOF
22119 /* confdefs.h. */
22120 _ACEOF
22121 cat confdefs.h >>conftest.$ac_ext
22122 cat >>conftest.$ac_ext <<_ACEOF
22123 /* end confdefs.h. */
22124 $ac_includes_default
22125 int
22126 main ()
22127 {
22128 if ((ptrdiff_t *) 0)
22129 return 0;
22130 if (sizeof (ptrdiff_t))
22131 return 0;
22132 ;
22133 return 0;
22134 }
22135 _ACEOF
22136 rm -f conftest.$ac_objext
22137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22138 (eval $ac_compile) 2>conftest.er1
22139 ac_status=$?
22140 grep -v '^ *+' conftest.er1 >conftest.err
22141 rm -f conftest.er1
22142 cat conftest.err >&5
22143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144 (exit $ac_status); } &&
22145 { ac_try='test -z "$ac_c_werror_flag"
22146 || test ! -s conftest.err'
22147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22148 (eval $ac_try) 2>&5
22149 ac_status=$?
22150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); }; } &&
22152 { ac_try='test -s conftest.$ac_objext'
22153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22154 (eval $ac_try) 2>&5
22155 ac_status=$?
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); }; }; then
22158 ac_cv_type_ptrdiff_t=yes
22159 else
22160 echo "$as_me: failed program was:" >&5
22161 sed 's/^/| /' conftest.$ac_ext >&5
22162
22163 ac_cv_type_ptrdiff_t=no
22164 fi
22165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22166 fi
22167 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22168 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
22169 if test $ac_cv_type_ptrdiff_t = yes; then
22170 :
22171 else
22172
22173 cat >>confdefs.h <<_ACEOF
22174 @%:@define ptrdiff_t long long
22175 _ACEOF
22176
22177 fi
22178
22179 else
22180 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
22181 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
22182 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
22183 echo $ECHO_N "(cached) $ECHO_C" >&6
22184 else
22185 cat >conftest.$ac_ext <<_ACEOF
22186 /* confdefs.h. */
22187 _ACEOF
22188 cat confdefs.h >>conftest.$ac_ext
22189 cat >>conftest.$ac_ext <<_ACEOF
22190 /* end confdefs.h. */
22191 $ac_includes_default
22192 int
22193 main ()
22194 {
22195 if ((ptrdiff_t *) 0)
22196 return 0;
22197 if (sizeof (ptrdiff_t))
22198 return 0;
22199 ;
22200 return 0;
22201 }
22202 _ACEOF
22203 rm -f conftest.$ac_objext
22204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22205 (eval $ac_compile) 2>conftest.er1
22206 ac_status=$?
22207 grep -v '^ *+' conftest.er1 >conftest.err
22208 rm -f conftest.er1
22209 cat conftest.err >&5
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); } &&
22212 { ac_try='test -z "$ac_c_werror_flag"
22213 || test ! -s conftest.err'
22214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22215 (eval $ac_try) 2>&5
22216 ac_status=$?
22217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); }; } &&
22219 { ac_try='test -s conftest.$ac_objext'
22220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22221 (eval $ac_try) 2>&5
22222 ac_status=$?
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); }; }; then
22225 ac_cv_type_ptrdiff_t=yes
22226 else
22227 echo "$as_me: failed program was:" >&5
22228 sed 's/^/| /' conftest.$ac_ext >&5
22229
22230 ac_cv_type_ptrdiff_t=no
22231 fi
22232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22233 fi
22234 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22235 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
22236 if test $ac_cv_type_ptrdiff_t = yes; then
22237 :
22238 else
22239
22240 cat >>confdefs.h <<_ACEOF
22241 @%:@define ptrdiff_t int
22242 _ACEOF
22243
22244 fi
22245
22246 fi
22247
22248
22249 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22250 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
22251 if test "${ac_cv_header_stat_broken+set}" = set; then
22252 echo $ECHO_N "(cached) $ECHO_C" >&6
22253 else
22254 cat >conftest.$ac_ext <<_ACEOF
22255 /* confdefs.h. */
22256 _ACEOF
22257 cat confdefs.h >>conftest.$ac_ext
22258 cat >>conftest.$ac_ext <<_ACEOF
22259 /* end confdefs.h. */
22260 #include <sys/types.h>
22261 #include <sys/stat.h>
22262
22263 #if defined(S_ISBLK) && defined(S_IFDIR)
22264 # if S_ISBLK (S_IFDIR)
22265 You lose.
22266 # endif
22267 #endif
22268
22269 #if defined(S_ISBLK) && defined(S_IFCHR)
22270 # if S_ISBLK (S_IFCHR)
22271 You lose.
22272 # endif
22273 #endif
22274
22275 #if defined(S_ISLNK) && defined(S_IFREG)
22276 # if S_ISLNK (S_IFREG)
22277 You lose.
22278 # endif
22279 #endif
22280
22281 #if defined(S_ISSOCK) && defined(S_IFREG)
22282 # if S_ISSOCK (S_IFREG)
22283 You lose.
22284 # endif
22285 #endif
22286
22287 _ACEOF
22288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22289 $EGREP "You lose" >/dev/null 2>&1; then
22290 ac_cv_header_stat_broken=yes
22291 else
22292 ac_cv_header_stat_broken=no
22293 fi
22294 rm -f conftest*
22295
22296 fi
22297 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
22298 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
22299 if test $ac_cv_header_stat_broken = yes; then
22300
22301 cat >>confdefs.h <<\_ACEOF
22302 @%:@define STAT_MACROS_BROKEN 1
22303 _ACEOF
22304
22305 fi
22306
22307
22308 echo "$as_me:$LINENO: checking whether @%:@! works in shell scripts" >&5
22309 echo $ECHO_N "checking whether @%:@! works in shell scripts... $ECHO_C" >&6
22310 if test "${ac_cv_sys_interpreter+set}" = set; then
22311 echo $ECHO_N "(cached) $ECHO_C" >&6
22312 else
22313 echo '#! /bin/cat
22314 exit 69
22315 ' >conftest
22316 chmod u+x conftest
22317 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
22318 if test $? -ne 69; then
22319 ac_cv_sys_interpreter=yes
22320 else
22321 ac_cv_sys_interpreter=no
22322 fi
22323 rm -f conftest
22324 fi
22325 echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
22326 echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
22327 interpval=$ac_cv_sys_interpreter
22328
22329 if test $ac_cv_sys_interpreter = yes; then
22330 cat >>confdefs.h <<\_ACEOF
22331 @%:@define HAVE_HASH_BANG_EXEC 1
22332 _ACEOF
22333
22334 fi
22335
22336 if test "$ac_cv_func_lstat" = "no"; then
22337 echo "$as_me:$LINENO: checking for lstat" >&5
22338 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
22339 if test "${bash_cv_func_lstat+set}" = set; then
22340 echo $ECHO_N "(cached) $ECHO_C" >&6
22341 else
22342 cat >conftest.$ac_ext <<_ACEOF
22343 /* confdefs.h. */
22344 _ACEOF
22345 cat confdefs.h >>conftest.$ac_ext
22346 cat >>conftest.$ac_ext <<_ACEOF
22347 /* end confdefs.h. */
22348
22349 #include <sys/types.h>
22350 #include <sys/stat.h>
22351
22352 int
22353 main ()
22354 {
22355 lstat(".",(struct stat *)0);
22356 ;
22357 return 0;
22358 }
22359 _ACEOF
22360 rm -f conftest.$ac_objext conftest$ac_exeext
22361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22362 (eval $ac_link) 2>conftest.er1
22363 ac_status=$?
22364 grep -v '^ *+' conftest.er1 >conftest.err
22365 rm -f conftest.er1
22366 cat conftest.err >&5
22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); } &&
22369 { ac_try='test -z "$ac_c_werror_flag"
22370 || test ! -s conftest.err'
22371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22372 (eval $ac_try) 2>&5
22373 ac_status=$?
22374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375 (exit $ac_status); }; } &&
22376 { ac_try='test -s conftest$ac_exeext'
22377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22378 (eval $ac_try) 2>&5
22379 ac_status=$?
22380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381 (exit $ac_status); }; }; then
22382 bash_cv_func_lstat=yes
22383 else
22384 echo "$as_me: failed program was:" >&5
22385 sed 's/^/| /' conftest.$ac_ext >&5
22386
22387 bash_cv_func_lstat=no
22388 fi
22389 rm -f conftest.err conftest.$ac_objext \
22390 conftest$ac_exeext conftest.$ac_ext
22391 fi
22392 echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
22393 echo "${ECHO_T}$bash_cv_func_lstat" >&6
22394 if test $bash_cv_func_lstat = yes; then
22395 cat >>confdefs.h <<\_ACEOF
22396 @%:@define HAVE_LSTAT 1
22397 _ACEOF
22398
22399 fi
22400
22401 fi
22402
22403
22404 echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
22405 echo $ECHO_N "checking whether the ctype macros accept non-ascii characters... $ECHO_C" >&6
22406 if test "${bash_cv_func_ctype_nonascii+set}" = set; then
22407 echo $ECHO_N "(cached) $ECHO_C" >&6
22408 else
22409 if test "$cross_compiling" = yes; then
22410 { echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
22411 echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
22412 bash_cv_func_ctype_nonascii=no
22413
22414 else
22415 cat >conftest.$ac_ext <<_ACEOF
22416 /* confdefs.h. */
22417 _ACEOF
22418 cat confdefs.h >>conftest.$ac_ext
22419 cat >>conftest.$ac_ext <<_ACEOF
22420 /* end confdefs.h. */
22421
22422 #ifdef HAVE_LOCALE_H
22423 #include <locale.h>
22424 #endif
22425 #include <stdio.h>
22426 #include <ctype.h>
22427
22428 main(c, v)
22429 int c;
22430 char *v[];
22431 {
22432 char *deflocale;
22433 unsigned char x;
22434 int r1, r2;
22435
22436 #ifdef HAVE_SETLOCALE
22437 /* We take a shot here. If that locale is not known, try the
22438 system default. We try this one because '\342' (226) is
22439 known to be a printable character in that locale. */
22440 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
22441 if (deflocale == 0)
22442 deflocale = setlocale(LC_ALL, "");
22443 #endif
22444
22445 x = '\342';
22446 r1 = isprint(x);
22447 x -= 128;
22448 r2 = isprint(x);
22449 exit (r1 == 0 || r2 == 0);
22450 }
22451
22452 _ACEOF
22453 rm -f conftest$ac_exeext
22454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22455 (eval $ac_link) 2>&5
22456 ac_status=$?
22457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22460 (eval $ac_try) 2>&5
22461 ac_status=$?
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); }; }; then
22464 bash_cv_func_ctype_nonascii=yes
22465 else
22466 echo "$as_me: program exited with status $ac_status" >&5
22467 echo "$as_me: failed program was:" >&5
22468 sed 's/^/| /' conftest.$ac_ext >&5
22469
22470 ( exit $ac_status )
22471 bash_cv_func_ctype_nonascii=no
22472 fi
22473 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22474 fi
22475 fi
22476
22477 echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
22478 echo "${ECHO_T}$bash_cv_func_ctype_nonascii" >&6
22479 if test $bash_cv_func_ctype_nonascii = yes; then
22480 cat >>confdefs.h <<\_ACEOF
22481 @%:@define CTYPE_NON_ASCII 1
22482 _ACEOF
22483
22484 fi
22485
22486 echo "$as_me:$LINENO: checking if dup2 fails to clear the close-on-exec flag" >&5
22487 echo $ECHO_N "checking if dup2 fails to clear the close-on-exec flag... $ECHO_C" >&6
22488 if test "${bash_cv_dup2_broken+set}" = set; then
22489 echo $ECHO_N "(cached) $ECHO_C" >&6
22490 else
22491 if test "$cross_compiling" = yes; then
22492 { echo "$as_me:$LINENO: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&5
22493 echo "$as_me: WARNING: cannot check dup2 if cross compiling -- defaulting to no" >&2;}
22494 bash_cv_dup2_broken=no
22495 else
22496 cat >conftest.$ac_ext <<_ACEOF
22497 /* confdefs.h. */
22498 _ACEOF
22499 cat confdefs.h >>conftest.$ac_ext
22500 cat >>conftest.$ac_ext <<_ACEOF
22501 /* end confdefs.h. */
22502
22503 #include <sys/types.h>
22504 #include <fcntl.h>
22505 main()
22506 {
22507 int fd1, fd2, fl;
22508 fd1 = open("/dev/null", 2);
22509 if (fcntl(fd1, 2, 1) < 0)
22510 exit(1);
22511 fd2 = dup2(fd1, 1);
22512 if (fd2 < 0)
22513 exit(2);
22514 fl = fcntl(fd2, 1, 0);
22515 /* fl will be 1 if dup2 did not reset the close-on-exec flag. */
22516 exit(fl != 1);
22517 }
22518
22519 _ACEOF
22520 rm -f conftest$ac_exeext
22521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22522 (eval $ac_link) 2>&5
22523 ac_status=$?
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22527 (eval $ac_try) 2>&5
22528 ac_status=$?
22529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); }; }; then
22531 bash_cv_dup2_broken=yes
22532 else
22533 echo "$as_me: program exited with status $ac_status" >&5
22534 echo "$as_me: failed program was:" >&5
22535 sed 's/^/| /' conftest.$ac_ext >&5
22536
22537 ( exit $ac_status )
22538 bash_cv_dup2_broken=no
22539 fi
22540 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22541 fi
22542
22543 fi
22544
22545 echo "$as_me:$LINENO: result: $bash_cv_dup2_broken" >&5
22546 echo "${ECHO_T}$bash_cv_dup2_broken" >&6
22547 if test $bash_cv_dup2_broken = yes; then
22548 cat >>confdefs.h <<\_ACEOF
22549 @%:@define DUP2_BROKEN 1
22550 _ACEOF
22551
22552 fi
22553
22554
22555 echo "$as_me:$LINENO: checking whether pgrps need synchronization" >&5
22556 echo $ECHO_N "checking whether pgrps need synchronization... $ECHO_C" >&6
22557 if test "${bash_cv_pgrp_pipe+set}" = set; then
22558 echo $ECHO_N "(cached) $ECHO_C" >&6
22559 else
22560 if test "$cross_compiling" = yes; then
22561 { echo "$as_me:$LINENO: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&5
22562 echo "$as_me: WARNING: cannot check pgrp synchronization if cross compiling -- defaulting to no" >&2;}
22563 bash_cv_pgrp_pipe=no
22564 else
22565 cat >conftest.$ac_ext <<_ACEOF
22566 /* confdefs.h. */
22567 _ACEOF
22568 cat confdefs.h >>conftest.$ac_ext
22569 cat >>conftest.$ac_ext <<_ACEOF
22570 /* end confdefs.h. */
22571
22572 #ifdef HAVE_UNISTD_H
22573 # include <unistd.h>
22574 #endif
22575 main()
22576 {
22577 # ifdef GETPGRP_VOID
22578 # define getpgID() getpgrp()
22579 # else
22580 # define getpgID() getpgrp(0)
22581 # define setpgid(x,y) setpgrp(x,y)
22582 # endif
22583 int pid1, pid2, fds[2];
22584 int status;
22585 char ok;
22586
22587 switch (pid1 = fork()) {
22588 case -1:
22589 exit(1);
22590 case 0:
22591 setpgid(0, getpid());
22592 exit(0);
22593 }
22594 setpgid(pid1, pid1);
22595
22596 sleep(2); /* let first child die */
22597
22598 if (pipe(fds) < 0)
22599 exit(2);
22600
22601 switch (pid2 = fork()) {
22602 case -1:
22603 exit(3);
22604 case 0:
22605 setpgid(0, pid1);
22606 ok = getpgID() == pid1;
22607 write(fds[1], &ok, 1);
22608 exit(0);
22609 }
22610 setpgid(pid2, pid1);
22611
22612 close(fds[1]);
22613 if (read(fds[0], &ok, 1) != 1)
22614 exit(4);
22615 wait(&status);
22616 wait(&status);
22617 exit(ok ? 0 : 5);
22618 }
22619
22620 _ACEOF
22621 rm -f conftest$ac_exeext
22622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22623 (eval $ac_link) 2>&5
22624 ac_status=$?
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22628 (eval $ac_try) 2>&5
22629 ac_status=$?
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); }; }; then
22632 bash_cv_pgrp_pipe=no
22633 else
22634 echo "$as_me: program exited with status $ac_status" >&5
22635 echo "$as_me: failed program was:" >&5
22636 sed 's/^/| /' conftest.$ac_ext >&5
22637
22638 ( exit $ac_status )
22639 bash_cv_pgrp_pipe=yes
22640 fi
22641 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22642 fi
22643
22644 fi
22645
22646 echo "$as_me:$LINENO: result: $bash_cv_pgrp_pipe" >&5
22647 echo "${ECHO_T}$bash_cv_pgrp_pipe" >&6
22648 if test $bash_cv_pgrp_pipe = yes; then
22649 cat >>confdefs.h <<\_ACEOF
22650 @%:@define PGRP_PIPE 1
22651 _ACEOF
22652
22653 fi
22654
22655
22656 echo "$as_me:$LINENO: checking for type of signal functions" >&5
22657 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
22658 if test "${bash_cv_signal_vintage+set}" = set; then
22659 echo $ECHO_N "(cached) $ECHO_C" >&6
22660 else
22661
22662 cat >conftest.$ac_ext <<_ACEOF
22663 /* confdefs.h. */
22664 _ACEOF
22665 cat confdefs.h >>conftest.$ac_ext
22666 cat >>conftest.$ac_ext <<_ACEOF
22667 /* end confdefs.h. */
22668 #include <signal.h>
22669 int
22670 main ()
22671 {
22672
22673 sigset_t ss;
22674 struct sigaction sa;
22675 sigemptyset(&ss); sigsuspend(&ss);
22676 sigaction(SIGINT, &sa, (struct sigaction *) 0);
22677 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
22678
22679 ;
22680 return 0;
22681 }
22682 _ACEOF
22683 rm -f conftest.$ac_objext conftest$ac_exeext
22684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22685 (eval $ac_link) 2>conftest.er1
22686 ac_status=$?
22687 grep -v '^ *+' conftest.er1 >conftest.err
22688 rm -f conftest.er1
22689 cat conftest.err >&5
22690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691 (exit $ac_status); } &&
22692 { ac_try='test -z "$ac_c_werror_flag"
22693 || test ! -s conftest.err'
22694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22695 (eval $ac_try) 2>&5
22696 ac_status=$?
22697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698 (exit $ac_status); }; } &&
22699 { ac_try='test -s conftest$ac_exeext'
22700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22701 (eval $ac_try) 2>&5
22702 ac_status=$?
22703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22704 (exit $ac_status); }; }; then
22705 bash_cv_signal_vintage=posix
22706 else
22707 echo "$as_me: failed program was:" >&5
22708 sed 's/^/| /' conftest.$ac_ext >&5
22709
22710
22711 cat >conftest.$ac_ext <<_ACEOF
22712 /* confdefs.h. */
22713 _ACEOF
22714 cat confdefs.h >>conftest.$ac_ext
22715 cat >>conftest.$ac_ext <<_ACEOF
22716 /* end confdefs.h. */
22717 #include <signal.h>
22718 int
22719 main ()
22720 {
22721
22722 int mask = sigmask(SIGINT);
22723 sigsetmask(mask); sigblock(mask); sigpause(mask);
22724
22725 ;
22726 return 0;
22727 }
22728 _ACEOF
22729 rm -f conftest.$ac_objext conftest$ac_exeext
22730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22731 (eval $ac_link) 2>conftest.er1
22732 ac_status=$?
22733 grep -v '^ *+' conftest.er1 >conftest.err
22734 rm -f conftest.er1
22735 cat conftest.err >&5
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); } &&
22738 { ac_try='test -z "$ac_c_werror_flag"
22739 || test ! -s conftest.err'
22740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22741 (eval $ac_try) 2>&5
22742 ac_status=$?
22743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744 (exit $ac_status); }; } &&
22745 { ac_try='test -s conftest$ac_exeext'
22746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22747 (eval $ac_try) 2>&5
22748 ac_status=$?
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); }; }; then
22751 bash_cv_signal_vintage=4.2bsd
22752 else
22753 echo "$as_me: failed program was:" >&5
22754 sed 's/^/| /' conftest.$ac_ext >&5
22755
22756
22757 cat >conftest.$ac_ext <<_ACEOF
22758 /* confdefs.h. */
22759 _ACEOF
22760 cat confdefs.h >>conftest.$ac_ext
22761 cat >>conftest.$ac_ext <<_ACEOF
22762 /* end confdefs.h. */
22763
22764 #include <signal.h>
22765 RETSIGTYPE foo() { }
22766 int
22767 main ()
22768 {
22769
22770 int mask = sigmask(SIGINT);
22771 sigset(SIGINT, foo); sigrelse(SIGINT);
22772 sighold(SIGINT); sigpause(SIGINT);
22773
22774 ;
22775 return 0;
22776 }
22777 _ACEOF
22778 rm -f conftest.$ac_objext conftest$ac_exeext
22779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22780 (eval $ac_link) 2>conftest.er1
22781 ac_status=$?
22782 grep -v '^ *+' conftest.er1 >conftest.err
22783 rm -f conftest.er1
22784 cat conftest.err >&5
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); } &&
22787 { ac_try='test -z "$ac_c_werror_flag"
22788 || test ! -s conftest.err'
22789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22790 (eval $ac_try) 2>&5
22791 ac_status=$?
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); }; } &&
22794 { ac_try='test -s conftest$ac_exeext'
22795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22796 (eval $ac_try) 2>&5
22797 ac_status=$?
22798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799 (exit $ac_status); }; }; then
22800 bash_cv_signal_vintage=svr3
22801 else
22802 echo "$as_me: failed program was:" >&5
22803 sed 's/^/| /' conftest.$ac_ext >&5
22804
22805 bash_cv_signal_vintage=v7
22806
22807 fi
22808 rm -f conftest.err conftest.$ac_objext \
22809 conftest$ac_exeext conftest.$ac_ext
22810
22811 fi
22812 rm -f conftest.err conftest.$ac_objext \
22813 conftest$ac_exeext conftest.$ac_ext
22814
22815 fi
22816 rm -f conftest.err conftest.$ac_objext \
22817 conftest$ac_exeext conftest.$ac_ext
22818
22819 fi
22820
22821 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22822 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
22823 if test "$bash_cv_signal_vintage" = posix; then
22824 cat >>confdefs.h <<\_ACEOF
22825 @%:@define HAVE_POSIX_SIGNALS 1
22826 _ACEOF
22827
22828 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22829 cat >>confdefs.h <<\_ACEOF
22830 @%:@define HAVE_BSD_SIGNALS 1
22831 _ACEOF
22832
22833 elif test "$bash_cv_signal_vintage" = svr3; then
22834 cat >>confdefs.h <<\_ACEOF
22835 @%:@define HAVE_USG_SIGHOLD 1
22836 _ACEOF
22837
22838 fi
22839
22840
22841 echo "$as_me:$LINENO: checking for sys_errlist and sys_nerr" >&5
22842 echo $ECHO_N "checking for sys_errlist and sys_nerr... $ECHO_C" >&6
22843 if test "${bash_cv_sys_errlist+set}" = set; then
22844 echo $ECHO_N "(cached) $ECHO_C" >&6
22845 else
22846 cat >conftest.$ac_ext <<_ACEOF
22847 /* confdefs.h. */
22848 _ACEOF
22849 cat confdefs.h >>conftest.$ac_ext
22850 cat >>conftest.$ac_ext <<_ACEOF
22851 /* end confdefs.h. */
22852 #include <errno.h>
22853 int
22854 main ()
22855 {
22856 extern char *sys_errlist[];
22857 extern int sys_nerr;
22858 char *msg = sys_errlist[sys_nerr - 1];
22859 ;
22860 return 0;
22861 }
22862 _ACEOF
22863 rm -f conftest.$ac_objext conftest$ac_exeext
22864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22865 (eval $ac_link) 2>conftest.er1
22866 ac_status=$?
22867 grep -v '^ *+' conftest.er1 >conftest.err
22868 rm -f conftest.er1
22869 cat conftest.err >&5
22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); } &&
22872 { ac_try='test -z "$ac_c_werror_flag"
22873 || test ! -s conftest.err'
22874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22875 (eval $ac_try) 2>&5
22876 ac_status=$?
22877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878 (exit $ac_status); }; } &&
22879 { ac_try='test -s conftest$ac_exeext'
22880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22881 (eval $ac_try) 2>&5
22882 ac_status=$?
22883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22884 (exit $ac_status); }; }; then
22885 bash_cv_sys_errlist=yes
22886 else
22887 echo "$as_me: failed program was:" >&5
22888 sed 's/^/| /' conftest.$ac_ext >&5
22889
22890 bash_cv_sys_errlist=no
22891 fi
22892 rm -f conftest.err conftest.$ac_objext \
22893 conftest$ac_exeext conftest.$ac_ext
22894 fi
22895 echo "$as_me:$LINENO: result: $bash_cv_sys_errlist" >&5
22896 echo "${ECHO_T}$bash_cv_sys_errlist" >&6
22897 if test $bash_cv_sys_errlist = yes; then
22898 cat >>confdefs.h <<\_ACEOF
22899 @%:@define HAVE_SYS_ERRLIST 1
22900 _ACEOF
22901
22902 fi
22903
22904
22905 echo "$as_me:$LINENO: checking for sys_siglist in system C library" >&5
22906 echo $ECHO_N "checking for sys_siglist in system C library... $ECHO_C" >&6
22907 if test "${bash_cv_sys_siglist+set}" = set; then
22908 echo $ECHO_N "(cached) $ECHO_C" >&6
22909 else
22910 if test "$cross_compiling" = yes; then
22911 { echo "$as_me:$LINENO: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&5
22912 echo "$as_me: WARNING: cannot check for sys_siglist if cross compiling -- defaulting to no" >&2;}
22913 bash_cv_sys_siglist=no
22914 else
22915 cat >conftest.$ac_ext <<_ACEOF
22916 /* confdefs.h. */
22917 _ACEOF
22918 cat confdefs.h >>conftest.$ac_ext
22919 cat >>conftest.$ac_ext <<_ACEOF
22920 /* end confdefs.h. */
22921
22922 #include <sys/types.h>
22923 #include <signal.h>
22924 #ifdef HAVE_UNISTD_H
22925 #include <unistd.h>
22926 #endif
22927 #ifndef SYS_SIGLIST_DECLARED
22928 extern char *sys_siglist[];
22929 #endif
22930 main()
22931 {
22932 char *msg = sys_siglist[2];
22933 exit(msg == 0);
22934 }
22935 _ACEOF
22936 rm -f conftest$ac_exeext
22937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22938 (eval $ac_link) 2>&5
22939 ac_status=$?
22940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22943 (eval $ac_try) 2>&5
22944 ac_status=$?
22945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); }; }; then
22947 bash_cv_sys_siglist=yes
22948 else
22949 echo "$as_me: program exited with status $ac_status" >&5
22950 echo "$as_me: failed program was:" >&5
22951 sed 's/^/| /' conftest.$ac_ext >&5
22952
22953 ( exit $ac_status )
22954 bash_cv_sys_siglist=no
22955 fi
22956 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22957 fi
22958 fi
22959
22960 echo "$as_me:$LINENO: result: $bash_cv_sys_siglist" >&5
22961 echo "${ECHO_T}$bash_cv_sys_siglist" >&6
22962 if test $bash_cv_sys_siglist = yes; then
22963 cat >>confdefs.h <<\_ACEOF
22964 @%:@define HAVE_SYS_SIGLIST 1
22965 _ACEOF
22966
22967 fi
22968
22969 echo "$as_me:$LINENO: checking for _sys_siglist in signal.h or unistd.h" >&5
22970 echo $ECHO_N "checking for _sys_siglist in signal.h or unistd.h... $ECHO_C" >&6
22971 if test "${bash_cv_decl_under_sys_siglist+set}" = set; then
22972 echo $ECHO_N "(cached) $ECHO_C" >&6
22973 else
22974 cat >conftest.$ac_ext <<_ACEOF
22975 /* confdefs.h. */
22976 _ACEOF
22977 cat confdefs.h >>conftest.$ac_ext
22978 cat >>conftest.$ac_ext <<_ACEOF
22979 /* end confdefs.h. */
22980
22981 #include <sys/types.h>
22982 #include <signal.h>
22983 #ifdef HAVE_UNISTD_H
22984 #include <unistd.h>
22985 #endif
22986 int
22987 main ()
22988 {
22989 char *msg = _sys_siglist[2];
22990 ;
22991 return 0;
22992 }
22993 _ACEOF
22994 rm -f conftest.$ac_objext
22995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22996 (eval $ac_compile) 2>conftest.er1
22997 ac_status=$?
22998 grep -v '^ *+' conftest.er1 >conftest.err
22999 rm -f conftest.er1
23000 cat conftest.err >&5
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); } &&
23003 { ac_try='test -z "$ac_c_werror_flag"
23004 || test ! -s conftest.err'
23005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23006 (eval $ac_try) 2>&5
23007 ac_status=$?
23008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009 (exit $ac_status); }; } &&
23010 { ac_try='test -s conftest.$ac_objext'
23011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23012 (eval $ac_try) 2>&5
23013 ac_status=$?
23014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015 (exit $ac_status); }; }; then
23016 bash_cv_decl_under_sys_siglist=yes
23017 else
23018 echo "$as_me: failed program was:" >&5
23019 sed 's/^/| /' conftest.$ac_ext >&5
23020
23021 bash_cv_decl_under_sys_siglist=no
23022 fi
23023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23024 fi
23025 echo "$as_me:$LINENO: result: $bash_cv_decl_under_sys_siglist" >&5
23026 echo "${ECHO_T}$bash_cv_decl_under_sys_siglist" >&6
23027 if test $bash_cv_decl_under_sys_siglist = yes; then
23028 cat >>confdefs.h <<\_ACEOF
23029 @%:@define UNDER_SYS_SIGLIST_DECLARED 1
23030 _ACEOF
23031
23032 fi
23033
23034
23035 echo "$as_me:$LINENO: checking for _sys_siglist in system C library" >&5
23036 echo $ECHO_N "checking for _sys_siglist in system C library... $ECHO_C" >&6
23037 if test "${bash_cv_under_sys_siglist+set}" = set; then
23038 echo $ECHO_N "(cached) $ECHO_C" >&6
23039 else
23040 if test "$cross_compiling" = yes; then
23041 { echo "$as_me:$LINENO: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&5
23042 echo "$as_me: WARNING: cannot check for _sys_siglist if cross compiling -- defaulting to no" >&2;}
23043 bash_cv_under_sys_siglist=no
23044 else
23045 cat >conftest.$ac_ext <<_ACEOF
23046 /* confdefs.h. */
23047 _ACEOF
23048 cat confdefs.h >>conftest.$ac_ext
23049 cat >>conftest.$ac_ext <<_ACEOF
23050 /* end confdefs.h. */
23051
23052 #include <sys/types.h>
23053 #include <signal.h>
23054 #ifdef HAVE_UNISTD_H
23055 #include <unistd.h>
23056 #endif
23057 #ifndef UNDER_SYS_SIGLIST_DECLARED
23058 extern char *_sys_siglist[];
23059 #endif
23060 main()
23061 {
23062 char *msg = (char *)_sys_siglist[2];
23063 exit(msg == 0);
23064 }
23065 _ACEOF
23066 rm -f conftest$ac_exeext
23067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23068 (eval $ac_link) 2>&5
23069 ac_status=$?
23070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23073 (eval $ac_try) 2>&5
23074 ac_status=$?
23075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); }; }; then
23077 bash_cv_under_sys_siglist=yes
23078 else
23079 echo "$as_me: program exited with status $ac_status" >&5
23080 echo "$as_me: failed program was:" >&5
23081 sed 's/^/| /' conftest.$ac_ext >&5
23082
23083 ( exit $ac_status )
23084 bash_cv_under_sys_siglist=no
23085 fi
23086 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23087 fi
23088 fi
23089
23090 echo "$as_me:$LINENO: result: $bash_cv_under_sys_siglist" >&5
23091 echo "${ECHO_T}$bash_cv_under_sys_siglist" >&6
23092 if test $bash_cv_under_sys_siglist = yes; then
23093 cat >>confdefs.h <<\_ACEOF
23094 @%:@define HAVE_UNDER_SYS_SIGLIST 1
23095 _ACEOF
23096
23097 fi
23098
23099
23100 echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
23101 echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
23102 if test "${bash_cv_void_sighandler+set}" = set; then
23103 echo $ECHO_N "(cached) $ECHO_C" >&6
23104 else
23105 cat >conftest.$ac_ext <<_ACEOF
23106 /* confdefs.h. */
23107 _ACEOF
23108 cat confdefs.h >>conftest.$ac_ext
23109 cat >>conftest.$ac_ext <<_ACEOF
23110 /* end confdefs.h. */
23111 #include <sys/types.h>
23112 #include <signal.h>
23113 #ifdef signal
23114 #undef signal
23115 #endif
23116 #ifdef __cplusplus
23117 extern "C"
23118 #endif
23119 void (*signal ()) ();
23120 int
23121 main ()
23122 {
23123 int i;
23124 ;
23125 return 0;
23126 }
23127 _ACEOF
23128 rm -f conftest.$ac_objext
23129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23130 (eval $ac_compile) 2>conftest.er1
23131 ac_status=$?
23132 grep -v '^ *+' conftest.er1 >conftest.err
23133 rm -f conftest.er1
23134 cat conftest.err >&5
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); } &&
23137 { ac_try='test -z "$ac_c_werror_flag"
23138 || test ! -s conftest.err'
23139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23140 (eval $ac_try) 2>&5
23141 ac_status=$?
23142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); }; } &&
23144 { ac_try='test -s conftest.$ac_objext'
23145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23146 (eval $ac_try) 2>&5
23147 ac_status=$?
23148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149 (exit $ac_status); }; }; then
23150 bash_cv_void_sighandler=yes
23151 else
23152 echo "$as_me: failed program was:" >&5
23153 sed 's/^/| /' conftest.$ac_ext >&5
23154
23155 bash_cv_void_sighandler=no
23156 fi
23157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23158 fi
23159 echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
23160 echo "${ECHO_T}$bash_cv_void_sighandler" >&6
23161 if test $bash_cv_void_sighandler = yes; then
23162 cat >>confdefs.h <<\_ACEOF
23163 @%:@define VOID_SIGHANDLER 1
23164 _ACEOF
23165
23166 fi
23167
23168
23169
23170 echo "$as_me:$LINENO: checking for clock_t" >&5
23171 echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
23172 if test "${bash_cv_type_clock_t+set}" = set; then
23173 echo $ECHO_N "(cached) $ECHO_C" >&6
23174 else
23175 cat >conftest.$ac_ext <<_ACEOF
23176 /* confdefs.h. */
23177 _ACEOF
23178 cat confdefs.h >>conftest.$ac_ext
23179 cat >>conftest.$ac_ext <<_ACEOF
23180 /* end confdefs.h. */
23181 #include <sys/types.h>
23182 #if STDC_HEADERS
23183 #include <stdlib.h>
23184 #include <stddef.h>
23185 #endif
23186 #if HAVE_INTTYPES_H
23187 #include <inttypes.h>
23188 #endif
23189 #include <sys/times.h>
23190
23191 _ACEOF
23192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23193 $EGREP "clock_t" >/dev/null 2>&1; then
23194 bash_cv_type_clock_t=yes
23195 else
23196 bash_cv_type_clock_t=no
23197 fi
23198 rm -f conftest*
23199
23200 fi
23201
23202 echo "$as_me:$LINENO: result: $bash_cv_type_clock_t" >&5
23203 echo "${ECHO_T}$bash_cv_type_clock_t" >&6
23204
23205 if test $bash_cv_type_clock_t = no; then
23206 cat >>confdefs.h <<_ACEOF
23207 @%:@define clock_t long
23208 _ACEOF
23209
23210 fi
23211
23212
23213
23214 echo "$as_me:$LINENO: checking for sigset_t" >&5
23215 echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
23216 if test "${bash_cv_type_sigset_t+set}" = set; then
23217 echo $ECHO_N "(cached) $ECHO_C" >&6
23218 else
23219 cat >conftest.$ac_ext <<_ACEOF
23220 /* confdefs.h. */
23221 _ACEOF
23222 cat confdefs.h >>conftest.$ac_ext
23223 cat >>conftest.$ac_ext <<_ACEOF
23224 /* end confdefs.h. */
23225 #include <sys/types.h>
23226 #if STDC_HEADERS
23227 #include <stdlib.h>
23228 #include <stddef.h>
23229 #endif
23230 #if HAVE_INTTYPES_H
23231 #include <inttypes.h>
23232 #endif
23233 #include <signal.h>
23234
23235 _ACEOF
23236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23237 $EGREP "sigset_t" >/dev/null 2>&1; then
23238 bash_cv_type_sigset_t=yes
23239 else
23240 bash_cv_type_sigset_t=no
23241 fi
23242 rm -f conftest*
23243
23244 fi
23245
23246 echo "$as_me:$LINENO: result: $bash_cv_type_sigset_t" >&5
23247 echo "${ECHO_T}$bash_cv_type_sigset_t" >&6
23248
23249 if test $bash_cv_type_sigset_t = no; then
23250 cat >>confdefs.h <<_ACEOF
23251 @%:@define sigset_t int
23252 _ACEOF
23253
23254 fi
23255
23256
23257
23258 echo "$as_me:$LINENO: checking for quad_t" >&5
23259 echo $ECHO_N "checking for quad_t... $ECHO_C" >&6
23260 if test "${bash_cv_type_quad_t+set}" = set; then
23261 echo $ECHO_N "(cached) $ECHO_C" >&6
23262 else
23263 cat >conftest.$ac_ext <<_ACEOF
23264 /* confdefs.h. */
23265 _ACEOF
23266 cat confdefs.h >>conftest.$ac_ext
23267 cat >>conftest.$ac_ext <<_ACEOF
23268 /* end confdefs.h. */
23269 #include <sys/types.h>
23270 #if STDC_HEADERS
23271 #include <stdlib.h>
23272 #include <stddef.h>
23273 #endif
23274 #if HAVE_INTTYPES_H
23275 #include <inttypes.h>
23276 #endif
23277
23278
23279 _ACEOF
23280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23281 $EGREP "quad_t" >/dev/null 2>&1; then
23282 bash_cv_type_quad_t=yes
23283 else
23284 bash_cv_type_quad_t=no
23285 fi
23286 rm -f conftest*
23287
23288 fi
23289
23290 echo "$as_me:$LINENO: result: $bash_cv_type_quad_t" >&5
23291 echo "${ECHO_T}$bash_cv_type_quad_t" >&6
23292 if test $bash_cv_type_quad_t = yes; then
23293 cat >>confdefs.h <<\_ACEOF
23294 @%:@define HAVE_QUAD_T 1
23295 _ACEOF
23296
23297 fi
23298 if test $bash_cv_type_quad_t = no; then
23299 cat >>confdefs.h <<_ACEOF
23300 @%:@define quad_t long
23301 _ACEOF
23302
23303 fi
23304
23305
23306
23307 echo "$as_me:$LINENO: checking for intmax_t" >&5
23308 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
23309 if test "${bash_cv_type_intmax_t+set}" = set; then
23310 echo $ECHO_N "(cached) $ECHO_C" >&6
23311 else
23312 cat >conftest.$ac_ext <<_ACEOF
23313 /* confdefs.h. */
23314 _ACEOF
23315 cat confdefs.h >>conftest.$ac_ext
23316 cat >>conftest.$ac_ext <<_ACEOF
23317 /* end confdefs.h. */
23318 #include <sys/types.h>
23319 #if STDC_HEADERS
23320 #include <stdlib.h>
23321 #include <stddef.h>
23322 #endif
23323 #if HAVE_INTTYPES_H
23324 #include <inttypes.h>
23325 #endif
23326
23327
23328 _ACEOF
23329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23330 $EGREP "intmax_t" >/dev/null 2>&1; then
23331 bash_cv_type_intmax_t=yes
23332 else
23333 bash_cv_type_intmax_t=no
23334 fi
23335 rm -f conftest*
23336
23337 fi
23338
23339 echo "$as_me:$LINENO: result: $bash_cv_type_intmax_t" >&5
23340 echo "${ECHO_T}$bash_cv_type_intmax_t" >&6
23341
23342 if test $bash_cv_type_intmax_t = no; then
23343 cat >>confdefs.h <<_ACEOF
23344 @%:@define intmax_t $bash_cv_type_long_long
23345 _ACEOF
23346
23347 fi
23348
23349
23350
23351 echo "$as_me:$LINENO: checking for uintmax_t" >&5
23352 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
23353 if test "${bash_cv_type_uintmax_t+set}" = set; then
23354 echo $ECHO_N "(cached) $ECHO_C" >&6
23355 else
23356 cat >conftest.$ac_ext <<_ACEOF
23357 /* confdefs.h. */
23358 _ACEOF
23359 cat confdefs.h >>conftest.$ac_ext
23360 cat >>conftest.$ac_ext <<_ACEOF
23361 /* end confdefs.h. */
23362 #include <sys/types.h>
23363 #if STDC_HEADERS
23364 #include <stdlib.h>
23365 #include <stddef.h>
23366 #endif
23367 #if HAVE_INTTYPES_H
23368 #include <inttypes.h>
23369 #endif
23370
23371
23372 _ACEOF
23373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23374 $EGREP "uintmax_t" >/dev/null 2>&1; then
23375 bash_cv_type_uintmax_t=yes
23376 else
23377 bash_cv_type_uintmax_t=no
23378 fi
23379 rm -f conftest*
23380
23381 fi
23382
23383 echo "$as_me:$LINENO: result: $bash_cv_type_uintmax_t" >&5
23384 echo "${ECHO_T}$bash_cv_type_uintmax_t" >&6
23385
23386 if test $bash_cv_type_uintmax_t = no; then
23387 cat >>confdefs.h <<_ACEOF
23388 @%:@define uintmax_t $bash_cv_type_unsigned_long_long
23389 _ACEOF
23390
23391 fi
23392
23393 if test "$ac_cv_header_sys_socket_h" = "yes"; then
23394
23395
23396 echo "$as_me:$LINENO: checking for socklen_t" >&5
23397 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
23398 if test "${bash_cv_type_socklen_t+set}" = set; then
23399 echo $ECHO_N "(cached) $ECHO_C" >&6
23400 else
23401 cat >conftest.$ac_ext <<_ACEOF
23402 /* confdefs.h. */
23403 _ACEOF
23404 cat confdefs.h >>conftest.$ac_ext
23405 cat >>conftest.$ac_ext <<_ACEOF
23406 /* end confdefs.h. */
23407 #include <sys/types.h>
23408 #if STDC_HEADERS
23409 #include <stdlib.h>
23410 #include <stddef.h>
23411 #endif
23412 #if HAVE_INTTYPES_H
23413 #include <inttypes.h>
23414 #endif
23415 #include <sys/socket.h>
23416
23417 _ACEOF
23418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23419 $EGREP "socklen_t" >/dev/null 2>&1; then
23420 bash_cv_type_socklen_t=yes
23421 else
23422 bash_cv_type_socklen_t=no
23423 fi
23424 rm -f conftest*
23425
23426 fi
23427
23428 echo "$as_me:$LINENO: result: $bash_cv_type_socklen_t" >&5
23429 echo "${ECHO_T}$bash_cv_type_socklen_t" >&6
23430 if test $bash_cv_type_socklen_t = yes; then
23431 cat >>confdefs.h <<\_ACEOF
23432 @%:@define HAVE_SOCKLEN_T 1
23433 _ACEOF
23434
23435 fi
23436 if test $bash_cv_type_socklen_t = no; then
23437 cat >>confdefs.h <<_ACEOF
23438 @%:@define socklen_t int
23439 _ACEOF
23440
23441 fi
23442
23443 fi
23444 echo "$as_me:$LINENO: checking for size and type of struct rlimit fields" >&5
23445 echo $ECHO_N "checking for size and type of struct rlimit fields... $ECHO_C" >&6
23446 if test "${bash_cv_type_rlimit+set}" = set; then
23447 echo $ECHO_N "(cached) $ECHO_C" >&6
23448 else
23449 cat >conftest.$ac_ext <<_ACEOF
23450 /* confdefs.h. */
23451 _ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h. */
23455 #include <sys/types.h>
23456 #include <sys/resource.h>
23457 int
23458 main ()
23459 {
23460 rlim_t xxx;
23461 ;
23462 return 0;
23463 }
23464 _ACEOF
23465 rm -f conftest.$ac_objext
23466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23467 (eval $ac_compile) 2>conftest.er1
23468 ac_status=$?
23469 grep -v '^ *+' conftest.er1 >conftest.err
23470 rm -f conftest.er1
23471 cat conftest.err >&5
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); } &&
23474 { ac_try='test -z "$ac_c_werror_flag"
23475 || test ! -s conftest.err'
23476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23477 (eval $ac_try) 2>&5
23478 ac_status=$?
23479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480 (exit $ac_status); }; } &&
23481 { ac_try='test -s conftest.$ac_objext'
23482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23483 (eval $ac_try) 2>&5
23484 ac_status=$?
23485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486 (exit $ac_status); }; }; then
23487 bash_cv_type_rlimit=rlim_t
23488 else
23489 echo "$as_me: failed program was:" >&5
23490 sed 's/^/| /' conftest.$ac_ext >&5
23491
23492
23493 if test "$cross_compiling" = yes; then
23494 { echo "$as_me:$LINENO: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&5
23495 echo "$as_me: WARNING: cannot check quad_t if cross compiling -- defaulting to long" >&2;}
23496 bash_cv_type_rlimit=long
23497 else
23498 cat >conftest.$ac_ext <<_ACEOF
23499 /* confdefs.h. */
23500 _ACEOF
23501 cat confdefs.h >>conftest.$ac_ext
23502 cat >>conftest.$ac_ext <<_ACEOF
23503 /* end confdefs.h. */
23504
23505 #include <sys/types.h>
23506 #include <sys/time.h>
23507 #include <sys/resource.h>
23508 main()
23509 {
23510 #ifdef HAVE_QUAD_T
23511 struct rlimit rl;
23512 if (sizeof(rl.rlim_cur) == sizeof(quad_t))
23513 exit(0);
23514 #endif
23515 exit(1);
23516 }
23517 _ACEOF
23518 rm -f conftest$ac_exeext
23519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23520 (eval $ac_link) 2>&5
23521 ac_status=$?
23522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23525 (eval $ac_try) 2>&5
23526 ac_status=$?
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); }; }; then
23529 bash_cv_type_rlimit=quad_t
23530 else
23531 echo "$as_me: program exited with status $ac_status" >&5
23532 echo "$as_me: failed program was:" >&5
23533 sed 's/^/| /' conftest.$ac_ext >&5
23534
23535 ( exit $ac_status )
23536 bash_cv_type_rlimit=long
23537 fi
23538 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23539 fi
23540 fi
23541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23542
23543 fi
23544
23545 echo "$as_me:$LINENO: result: $bash_cv_type_rlimit" >&5
23546 echo "${ECHO_T}$bash_cv_type_rlimit" >&6
23547 if test $bash_cv_type_rlimit = quad_t; then
23548 cat >>confdefs.h <<\_ACEOF
23549 @%:@define RLIMTYPE quad_t
23550 _ACEOF
23551
23552 elif test $bash_cv_type_rlimit = rlim_t; then
23553 cat >>confdefs.h <<\_ACEOF
23554 @%:@define RLIMTYPE rlim_t
23555 _ACEOF
23556
23557 fi
23558
23559
23560
23561 echo "$as_me:$LINENO: checking for struct termios.c_line" >&5
23562 echo $ECHO_N "checking for struct termios.c_line... $ECHO_C" >&6
23563 if test "${ac_cv_member_struct_termios_c_line+set}" = set; then
23564 echo $ECHO_N "(cached) $ECHO_C" >&6
23565 else
23566 cat >conftest.$ac_ext <<_ACEOF
23567 /* confdefs.h. */
23568 _ACEOF
23569 cat confdefs.h >>conftest.$ac_ext
23570 cat >>conftest.$ac_ext <<_ACEOF
23571 /* end confdefs.h. */
23572
23573 #include <sys/types.h>
23574 #include <termios.h>
23575
23576
23577 int
23578 main ()
23579 {
23580 static struct termios ac_aggr;
23581 if (ac_aggr.c_line)
23582 return 0;
23583 ;
23584 return 0;
23585 }
23586 _ACEOF
23587 rm -f conftest.$ac_objext
23588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23589 (eval $ac_compile) 2>conftest.er1
23590 ac_status=$?
23591 grep -v '^ *+' conftest.er1 >conftest.err
23592 rm -f conftest.er1
23593 cat conftest.err >&5
23594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595 (exit $ac_status); } &&
23596 { ac_try='test -z "$ac_c_werror_flag"
23597 || test ! -s conftest.err'
23598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23599 (eval $ac_try) 2>&5
23600 ac_status=$?
23601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602 (exit $ac_status); }; } &&
23603 { ac_try='test -s conftest.$ac_objext'
23604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23605 (eval $ac_try) 2>&5
23606 ac_status=$?
23607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608 (exit $ac_status); }; }; then
23609 ac_cv_member_struct_termios_c_line=yes
23610 else
23611 echo "$as_me: failed program was:" >&5
23612 sed 's/^/| /' conftest.$ac_ext >&5
23613
23614 cat >conftest.$ac_ext <<_ACEOF
23615 /* confdefs.h. */
23616 _ACEOF
23617 cat confdefs.h >>conftest.$ac_ext
23618 cat >>conftest.$ac_ext <<_ACEOF
23619 /* end confdefs.h. */
23620
23621 #include <sys/types.h>
23622 #include <termios.h>
23623
23624
23625 int
23626 main ()
23627 {
23628 static struct termios ac_aggr;
23629 if (sizeof ac_aggr.c_line)
23630 return 0;
23631 ;
23632 return 0;
23633 }
23634 _ACEOF
23635 rm -f conftest.$ac_objext
23636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23637 (eval $ac_compile) 2>conftest.er1
23638 ac_status=$?
23639 grep -v '^ *+' conftest.er1 >conftest.err
23640 rm -f conftest.er1
23641 cat conftest.err >&5
23642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643 (exit $ac_status); } &&
23644 { ac_try='test -z "$ac_c_werror_flag"
23645 || test ! -s conftest.err'
23646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23647 (eval $ac_try) 2>&5
23648 ac_status=$?
23649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650 (exit $ac_status); }; } &&
23651 { ac_try='test -s conftest.$ac_objext'
23652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23653 (eval $ac_try) 2>&5
23654 ac_status=$?
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); }; }; then
23657 ac_cv_member_struct_termios_c_line=yes
23658 else
23659 echo "$as_me: failed program was:" >&5
23660 sed 's/^/| /' conftest.$ac_ext >&5
23661
23662 ac_cv_member_struct_termios_c_line=no
23663 fi
23664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23665 fi
23666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23667 fi
23668 echo "$as_me:$LINENO: result: $ac_cv_member_struct_termios_c_line" >&5
23669 echo "${ECHO_T}$ac_cv_member_struct_termios_c_line" >&6
23670 if test $ac_cv_member_struct_termios_c_line = yes; then
23671 cat >>confdefs.h <<\_ACEOF
23672 @%:@define TERMIOS_LDISC 1
23673 _ACEOF
23674
23675 fi
23676
23677
23678
23679 echo "$as_me:$LINENO: checking for struct termio.c_line" >&5
23680 echo $ECHO_N "checking for struct termio.c_line... $ECHO_C" >&6
23681 if test "${ac_cv_member_struct_termio_c_line+set}" = set; then
23682 echo $ECHO_N "(cached) $ECHO_C" >&6
23683 else
23684 cat >conftest.$ac_ext <<_ACEOF
23685 /* confdefs.h. */
23686 _ACEOF
23687 cat confdefs.h >>conftest.$ac_ext
23688 cat >>conftest.$ac_ext <<_ACEOF
23689 /* end confdefs.h. */
23690
23691 #include <sys/types.h>
23692 #include <termio.h>
23693
23694
23695 int
23696 main ()
23697 {
23698 static struct termio ac_aggr;
23699 if (ac_aggr.c_line)
23700 return 0;
23701 ;
23702 return 0;
23703 }
23704 _ACEOF
23705 rm -f conftest.$ac_objext
23706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23707 (eval $ac_compile) 2>conftest.er1
23708 ac_status=$?
23709 grep -v '^ *+' conftest.er1 >conftest.err
23710 rm -f conftest.er1
23711 cat conftest.err >&5
23712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713 (exit $ac_status); } &&
23714 { ac_try='test -z "$ac_c_werror_flag"
23715 || test ! -s conftest.err'
23716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23717 (eval $ac_try) 2>&5
23718 ac_status=$?
23719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23720 (exit $ac_status); }; } &&
23721 { ac_try='test -s conftest.$ac_objext'
23722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23723 (eval $ac_try) 2>&5
23724 ac_status=$?
23725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726 (exit $ac_status); }; }; then
23727 ac_cv_member_struct_termio_c_line=yes
23728 else
23729 echo "$as_me: failed program was:" >&5
23730 sed 's/^/| /' conftest.$ac_ext >&5
23731
23732 cat >conftest.$ac_ext <<_ACEOF
23733 /* confdefs.h. */
23734 _ACEOF
23735 cat confdefs.h >>conftest.$ac_ext
23736 cat >>conftest.$ac_ext <<_ACEOF
23737 /* end confdefs.h. */
23738
23739 #include <sys/types.h>
23740 #include <termio.h>
23741
23742
23743 int
23744 main ()
23745 {
23746 static struct termio ac_aggr;
23747 if (sizeof ac_aggr.c_line)
23748 return 0;
23749 ;
23750 return 0;
23751 }
23752 _ACEOF
23753 rm -f conftest.$ac_objext
23754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23755 (eval $ac_compile) 2>conftest.er1
23756 ac_status=$?
23757 grep -v '^ *+' conftest.er1 >conftest.err
23758 rm -f conftest.er1
23759 cat conftest.err >&5
23760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761 (exit $ac_status); } &&
23762 { ac_try='test -z "$ac_c_werror_flag"
23763 || test ! -s conftest.err'
23764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23765 (eval $ac_try) 2>&5
23766 ac_status=$?
23767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23768 (exit $ac_status); }; } &&
23769 { ac_try='test -s conftest.$ac_objext'
23770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23771 (eval $ac_try) 2>&5
23772 ac_status=$?
23773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23774 (exit $ac_status); }; }; then
23775 ac_cv_member_struct_termio_c_line=yes
23776 else
23777 echo "$as_me: failed program was:" >&5
23778 sed 's/^/| /' conftest.$ac_ext >&5
23779
23780 ac_cv_member_struct_termio_c_line=no
23781 fi
23782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23783 fi
23784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23785 fi
23786 echo "$as_me:$LINENO: result: $ac_cv_member_struct_termio_c_line" >&5
23787 echo "${ECHO_T}$ac_cv_member_struct_termio_c_line" >&6
23788 if test $ac_cv_member_struct_termio_c_line = yes; then
23789 cat >>confdefs.h <<\_ACEOF
23790 @%:@define TERMIO_LDISC 1
23791 _ACEOF
23792
23793 fi
23794
23795
23796
23797 echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
23798 echo $ECHO_N "checking for struct dirent.d_ino... $ECHO_C" >&6
23799 if test "${bash_cv_dirent_has_dino+set}" = set; then
23800 echo $ECHO_N "(cached) $ECHO_C" >&6
23801 else
23802 cat >conftest.$ac_ext <<_ACEOF
23803 /* confdefs.h. */
23804 _ACEOF
23805 cat confdefs.h >>conftest.$ac_ext
23806 cat >>conftest.$ac_ext <<_ACEOF
23807 /* end confdefs.h. */
23808
23809 #include <stdio.h>
23810 #include <sys/types.h>
23811 #ifdef HAVE_UNISTD_H
23812 # include <unistd.h>
23813 #endif /* HAVE_UNISTD_H */
23814 #if defined(HAVE_DIRENT_H)
23815 # include <dirent.h>
23816 #else
23817 # define dirent direct
23818 # ifdef HAVE_SYS_NDIR_H
23819 # include <sys/ndir.h>
23820 # endif /* SYSNDIR */
23821 # ifdef HAVE_SYS_DIR_H
23822 # include <sys/dir.h>
23823 # endif /* SYSDIR */
23824 # ifdef HAVE_NDIR_H
23825 # include <ndir.h>
23826 # endif
23827 #endif /* HAVE_DIRENT_H */
23828
23829 int
23830 main ()
23831 {
23832
23833 struct dirent d; int z; z = d.d_ino;
23834
23835 ;
23836 return 0;
23837 }
23838 _ACEOF
23839 rm -f conftest.$ac_objext
23840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23841 (eval $ac_compile) 2>conftest.er1
23842 ac_status=$?
23843 grep -v '^ *+' conftest.er1 >conftest.err
23844 rm -f conftest.er1
23845 cat conftest.err >&5
23846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847 (exit $ac_status); } &&
23848 { ac_try='test -z "$ac_c_werror_flag"
23849 || test ! -s conftest.err'
23850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23851 (eval $ac_try) 2>&5
23852 ac_status=$?
23853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23854 (exit $ac_status); }; } &&
23855 { ac_try='test -s conftest.$ac_objext'
23856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23857 (eval $ac_try) 2>&5
23858 ac_status=$?
23859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860 (exit $ac_status); }; }; then
23861 bash_cv_dirent_has_dino=yes
23862 else
23863 echo "$as_me: failed program was:" >&5
23864 sed 's/^/| /' conftest.$ac_ext >&5
23865
23866 bash_cv_dirent_has_dino=no
23867 fi
23868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23869 fi
23870
23871 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
23872 echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6
23873 if test $bash_cv_dirent_has_dino = yes; then
23874 cat >>confdefs.h <<\_ACEOF
23875 @%:@define HAVE_STRUCT_DIRENT_D_INO 1
23876 _ACEOF
23877
23878 fi
23879
23880
23881 echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
23882 echo $ECHO_N "checking for struct dirent.d_fileno... $ECHO_C" >&6
23883 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
23884 echo $ECHO_N "(cached) $ECHO_C" >&6
23885 else
23886 cat >conftest.$ac_ext <<_ACEOF
23887 /* confdefs.h. */
23888 _ACEOF
23889 cat confdefs.h >>conftest.$ac_ext
23890 cat >>conftest.$ac_ext <<_ACEOF
23891 /* end confdefs.h. */
23892
23893 #include <stdio.h>
23894 #include <sys/types.h>
23895 #ifdef HAVE_UNISTD_H
23896 # include <unistd.h>
23897 #endif /* HAVE_UNISTD_H */
23898 #if defined(HAVE_DIRENT_H)
23899 # include <dirent.h>
23900 #else
23901 # define dirent direct
23902 # ifdef HAVE_SYS_NDIR_H
23903 # include <sys/ndir.h>
23904 # endif /* SYSNDIR */
23905 # ifdef HAVE_SYS_DIR_H
23906 # include <sys/dir.h>
23907 # endif /* SYSDIR */
23908 # ifdef HAVE_NDIR_H
23909 # include <ndir.h>
23910 # endif
23911 #endif /* HAVE_DIRENT_H */
23912
23913 int
23914 main ()
23915 {
23916
23917 struct dirent d; int z; z = d.d_fileno;
23918
23919 ;
23920 return 0;
23921 }
23922 _ACEOF
23923 rm -f conftest.$ac_objext
23924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23925 (eval $ac_compile) 2>conftest.er1
23926 ac_status=$?
23927 grep -v '^ *+' conftest.er1 >conftest.err
23928 rm -f conftest.er1
23929 cat conftest.err >&5
23930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931 (exit $ac_status); } &&
23932 { ac_try='test -z "$ac_c_werror_flag"
23933 || test ! -s conftest.err'
23934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23935 (eval $ac_try) 2>&5
23936 ac_status=$?
23937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938 (exit $ac_status); }; } &&
23939 { ac_try='test -s conftest.$ac_objext'
23940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23941 (eval $ac_try) 2>&5
23942 ac_status=$?
23943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944 (exit $ac_status); }; }; then
23945 bash_cv_dirent_has_d_fileno=yes
23946 else
23947 echo "$as_me: failed program was:" >&5
23948 sed 's/^/| /' conftest.$ac_ext >&5
23949
23950 bash_cv_dirent_has_d_fileno=no
23951 fi
23952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23953 fi
23954
23955 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
23956 echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
23957 if test $bash_cv_dirent_has_d_fileno = yes; then
23958 cat >>confdefs.h <<\_ACEOF
23959 @%:@define HAVE_STRUCT_DIRENT_D_FILENO 1
23960 _ACEOF
23961
23962 fi
23963
23964
23965 echo "$as_me:$LINENO: checking for struct dirent.d_namlen" >&5
23966 echo $ECHO_N "checking for struct dirent.d_namlen... $ECHO_C" >&6
23967 if test "${bash_cv_dirent_has_d_namlen+set}" = set; then
23968 echo $ECHO_N "(cached) $ECHO_C" >&6
23969 else
23970 cat >conftest.$ac_ext <<_ACEOF
23971 /* confdefs.h. */
23972 _ACEOF
23973 cat confdefs.h >>conftest.$ac_ext
23974 cat >>conftest.$ac_ext <<_ACEOF
23975 /* end confdefs.h. */
23976
23977 #include <stdio.h>
23978 #include <sys/types.h>
23979 #ifdef HAVE_UNISTD_H
23980 # include <unistd.h>
23981 #endif /* HAVE_UNISTD_H */
23982 #if defined(HAVE_DIRENT_H)
23983 # include <dirent.h>
23984 #else
23985 # define dirent direct
23986 # ifdef HAVE_SYS_NDIR_H
23987 # include <sys/ndir.h>
23988 # endif /* SYSNDIR */
23989 # ifdef HAVE_SYS_DIR_H
23990 # include <sys/dir.h>
23991 # endif /* SYSDIR */
23992 # ifdef HAVE_NDIR_H
23993 # include <ndir.h>
23994 # endif
23995 #endif /* HAVE_DIRENT_H */
23996
23997 int
23998 main ()
23999 {
24000
24001 struct dirent d; int z; z = d.d_namlen;
24002
24003 ;
24004 return 0;
24005 }
24006 _ACEOF
24007 rm -f conftest.$ac_objext
24008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24009 (eval $ac_compile) 2>conftest.er1
24010 ac_status=$?
24011 grep -v '^ *+' conftest.er1 >conftest.err
24012 rm -f conftest.er1
24013 cat conftest.err >&5
24014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015 (exit $ac_status); } &&
24016 { ac_try='test -z "$ac_c_werror_flag"
24017 || test ! -s conftest.err'
24018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24019 (eval $ac_try) 2>&5
24020 ac_status=$?
24021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022 (exit $ac_status); }; } &&
24023 { ac_try='test -s conftest.$ac_objext'
24024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24025 (eval $ac_try) 2>&5
24026 ac_status=$?
24027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028 (exit $ac_status); }; }; then
24029 bash_cv_dirent_has_d_namlen=yes
24030 else
24031 echo "$as_me: failed program was:" >&5
24032 sed 's/^/| /' conftest.$ac_ext >&5
24033
24034 bash_cv_dirent_has_d_namlen=no
24035 fi
24036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24037 fi
24038
24039 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_namlen" >&5
24040 echo "${ECHO_T}$bash_cv_dirent_has_d_namlen" >&6
24041 if test $bash_cv_dirent_has_d_namlen = yes; then
24042 cat >>confdefs.h <<\_ACEOF
24043 @%:@define HAVE_STRUCT_DIRENT_D_NAMLEN 1
24044 _ACEOF
24045
24046 fi
24047
24048 echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
24049 echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
24050 if test "${bash_cv_struct_winsize_header+set}" = set; then
24051 echo $ECHO_N "(cached) $ECHO_C" >&6
24052 else
24053 cat >conftest.$ac_ext <<_ACEOF
24054 /* confdefs.h. */
24055 _ACEOF
24056 cat confdefs.h >>conftest.$ac_ext
24057 cat >>conftest.$ac_ext <<_ACEOF
24058 /* end confdefs.h. */
24059 #include <sys/types.h>
24060 #include <sys/ioctl.h>
24061 int
24062 main ()
24063 {
24064 struct winsize x;
24065 ;
24066 return 0;
24067 }
24068 _ACEOF
24069 rm -f conftest.$ac_objext
24070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24071 (eval $ac_compile) 2>conftest.er1
24072 ac_status=$?
24073 grep -v '^ *+' conftest.er1 >conftest.err
24074 rm -f conftest.er1
24075 cat conftest.err >&5
24076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077 (exit $ac_status); } &&
24078 { ac_try='test -z "$ac_c_werror_flag"
24079 || test ! -s conftest.err'
24080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24081 (eval $ac_try) 2>&5
24082 ac_status=$?
24083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084 (exit $ac_status); }; } &&
24085 { ac_try='test -s conftest.$ac_objext'
24086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24087 (eval $ac_try) 2>&5
24088 ac_status=$?
24089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24090 (exit $ac_status); }; }; then
24091 bash_cv_struct_winsize_header=ioctl_h
24092 else
24093 echo "$as_me: failed program was:" >&5
24094 sed 's/^/| /' conftest.$ac_ext >&5
24095
24096 cat >conftest.$ac_ext <<_ACEOF
24097 /* confdefs.h. */
24098 _ACEOF
24099 cat confdefs.h >>conftest.$ac_ext
24100 cat >>conftest.$ac_ext <<_ACEOF
24101 /* end confdefs.h. */
24102 #include <sys/types.h>
24103 #include <termios.h>
24104 int
24105 main ()
24106 {
24107 struct winsize x;
24108 ;
24109 return 0;
24110 }
24111 _ACEOF
24112 rm -f conftest.$ac_objext
24113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24114 (eval $ac_compile) 2>conftest.er1
24115 ac_status=$?
24116 grep -v '^ *+' conftest.er1 >conftest.err
24117 rm -f conftest.er1
24118 cat conftest.err >&5
24119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120 (exit $ac_status); } &&
24121 { ac_try='test -z "$ac_c_werror_flag"
24122 || test ! -s conftest.err'
24123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24124 (eval $ac_try) 2>&5
24125 ac_status=$?
24126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127 (exit $ac_status); }; } &&
24128 { ac_try='test -s conftest.$ac_objext'
24129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24130 (eval $ac_try) 2>&5
24131 ac_status=$?
24132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133 (exit $ac_status); }; }; then
24134 bash_cv_struct_winsize_header=termios_h
24135 else
24136 echo "$as_me: failed program was:" >&5
24137 sed 's/^/| /' conftest.$ac_ext >&5
24138
24139 bash_cv_struct_winsize_header=other
24140 fi
24141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24142
24143 fi
24144 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24145 fi
24146
24147 if test $bash_cv_struct_winsize_header = ioctl_h; then
24148 echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
24149 echo "${ECHO_T}sys/ioctl.h" >&6
24150 cat >>confdefs.h <<\_ACEOF
24151 @%:@define STRUCT_WINSIZE_IN_SYS_IOCTL 1
24152 _ACEOF
24153
24154 elif test $bash_cv_struct_winsize_header = termios_h; then
24155 echo "$as_me:$LINENO: result: termios.h" >&5
24156 echo "${ECHO_T}termios.h" >&6
24157 cat >>confdefs.h <<\_ACEOF
24158 @%:@define STRUCT_WINSIZE_IN_TERMIOS 1
24159 _ACEOF
24160
24161 else
24162 echo "$as_me:$LINENO: result: not found" >&5
24163 echo "${ECHO_T}not found" >&6
24164 fi
24165
24166 echo "$as_me:$LINENO: checking for struct timeval in sys/time.h and time.h" >&5
24167 echo $ECHO_N "checking for struct timeval in sys/time.h and time.h... $ECHO_C" >&6
24168 if test "${bash_cv_struct_timeval+set}" = set; then
24169 echo $ECHO_N "(cached) $ECHO_C" >&6
24170 else
24171
24172 cat >conftest.$ac_ext <<_ACEOF
24173 /* confdefs.h. */
24174 _ACEOF
24175 cat confdefs.h >>conftest.$ac_ext
24176 cat >>conftest.$ac_ext <<_ACEOF
24177 /* end confdefs.h. */
24178 #include <sys/time.h>
24179
24180 _ACEOF
24181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24182 $EGREP "struct timeval" >/dev/null 2>&1; then
24183 bash_cv_struct_timeval=yes
24184 else
24185 cat >conftest.$ac_ext <<_ACEOF
24186 /* confdefs.h. */
24187 _ACEOF
24188 cat confdefs.h >>conftest.$ac_ext
24189 cat >>conftest.$ac_ext <<_ACEOF
24190 /* end confdefs.h. */
24191 #include <time.h>
24192
24193 _ACEOF
24194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24195 $EGREP "struct timeval" >/dev/null 2>&1; then
24196 bash_cv_struct_timeval=yes
24197 else
24198 bash_cv_struct_timeval=no
24199 fi
24200 rm -f conftest*
24201
24202 fi
24203 rm -f conftest*
24204
24205
24206 fi
24207
24208 echo "$as_me:$LINENO: result: $bash_cv_struct_timeval" >&5
24209 echo "${ECHO_T}$bash_cv_struct_timeval" >&6
24210 if test $bash_cv_struct_timeval = yes; then
24211 cat >>confdefs.h <<\_ACEOF
24212 @%:@define HAVE_TIMEVAL 1
24213 _ACEOF
24214
24215 fi
24216
24217 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
24218 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
24219 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
24220 echo $ECHO_N "(cached) $ECHO_C" >&6
24221 else
24222 cat >conftest.$ac_ext <<_ACEOF
24223 /* confdefs.h. */
24224 _ACEOF
24225 cat confdefs.h >>conftest.$ac_ext
24226 cat >>conftest.$ac_ext <<_ACEOF
24227 /* end confdefs.h. */
24228 $ac_includes_default
24229 int
24230 main ()
24231 {
24232 static struct stat ac_aggr;
24233 if (ac_aggr.st_blocks)
24234 return 0;
24235 ;
24236 return 0;
24237 }
24238 _ACEOF
24239 rm -f conftest.$ac_objext
24240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24241 (eval $ac_compile) 2>conftest.er1
24242 ac_status=$?
24243 grep -v '^ *+' conftest.er1 >conftest.err
24244 rm -f conftest.er1
24245 cat conftest.err >&5
24246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247 (exit $ac_status); } &&
24248 { ac_try='test -z "$ac_c_werror_flag"
24249 || test ! -s conftest.err'
24250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24251 (eval $ac_try) 2>&5
24252 ac_status=$?
24253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254 (exit $ac_status); }; } &&
24255 { ac_try='test -s conftest.$ac_objext'
24256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24257 (eval $ac_try) 2>&5
24258 ac_status=$?
24259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 (exit $ac_status); }; }; then
24261 ac_cv_member_struct_stat_st_blocks=yes
24262 else
24263 echo "$as_me: failed program was:" >&5
24264 sed 's/^/| /' conftest.$ac_ext >&5
24265
24266 cat >conftest.$ac_ext <<_ACEOF
24267 /* confdefs.h. */
24268 _ACEOF
24269 cat confdefs.h >>conftest.$ac_ext
24270 cat >>conftest.$ac_ext <<_ACEOF
24271 /* end confdefs.h. */
24272 $ac_includes_default
24273 int
24274 main ()
24275 {
24276 static struct stat ac_aggr;
24277 if (sizeof ac_aggr.st_blocks)
24278 return 0;
24279 ;
24280 return 0;
24281 }
24282 _ACEOF
24283 rm -f conftest.$ac_objext
24284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24285 (eval $ac_compile) 2>conftest.er1
24286 ac_status=$?
24287 grep -v '^ *+' conftest.er1 >conftest.err
24288 rm -f conftest.er1
24289 cat conftest.err >&5
24290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291 (exit $ac_status); } &&
24292 { ac_try='test -z "$ac_c_werror_flag"
24293 || test ! -s conftest.err'
24294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24295 (eval $ac_try) 2>&5
24296 ac_status=$?
24297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); }; } &&
24299 { ac_try='test -s conftest.$ac_objext'
24300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24301 (eval $ac_try) 2>&5
24302 ac_status=$?
24303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304 (exit $ac_status); }; }; then
24305 ac_cv_member_struct_stat_st_blocks=yes
24306 else
24307 echo "$as_me: failed program was:" >&5
24308 sed 's/^/| /' conftest.$ac_ext >&5
24309
24310 ac_cv_member_struct_stat_st_blocks=no
24311 fi
24312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24313 fi
24314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24315 fi
24316 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
24317 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
24318 if test $ac_cv_member_struct_stat_st_blocks = yes; then
24319
24320 cat >>confdefs.h <<_ACEOF
24321 @%:@define HAVE_STRUCT_STAT_ST_BLOCKS 1
24322 _ACEOF
24323
24324
24325 fi
24326
24327 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
24328 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
24329 if test "${ac_cv_struct_tm+set}" = set; then
24330 echo $ECHO_N "(cached) $ECHO_C" >&6
24331 else
24332 cat >conftest.$ac_ext <<_ACEOF
24333 /* confdefs.h. */
24334 _ACEOF
24335 cat confdefs.h >>conftest.$ac_ext
24336 cat >>conftest.$ac_ext <<_ACEOF
24337 /* end confdefs.h. */
24338 #include <sys/types.h>
24339 #include <time.h>
24340
24341 int
24342 main ()
24343 {
24344 struct tm *tp; tp->tm_sec;
24345 ;
24346 return 0;
24347 }
24348 _ACEOF
24349 rm -f conftest.$ac_objext
24350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24351 (eval $ac_compile) 2>conftest.er1
24352 ac_status=$?
24353 grep -v '^ *+' conftest.er1 >conftest.err
24354 rm -f conftest.er1
24355 cat conftest.err >&5
24356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); } &&
24358 { ac_try='test -z "$ac_c_werror_flag"
24359 || test ! -s conftest.err'
24360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24361 (eval $ac_try) 2>&5
24362 ac_status=$?
24363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364 (exit $ac_status); }; } &&
24365 { ac_try='test -s conftest.$ac_objext'
24366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24367 (eval $ac_try) 2>&5
24368 ac_status=$?
24369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370 (exit $ac_status); }; }; then
24371 ac_cv_struct_tm=time.h
24372 else
24373 echo "$as_me: failed program was:" >&5
24374 sed 's/^/| /' conftest.$ac_ext >&5
24375
24376 ac_cv_struct_tm=sys/time.h
24377 fi
24378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24379 fi
24380 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
24381 echo "${ECHO_T}$ac_cv_struct_tm" >&6
24382 if test $ac_cv_struct_tm = sys/time.h; then
24383
24384 cat >>confdefs.h <<\_ACEOF
24385 @%:@define TM_IN_SYS_TIME 1
24386 _ACEOF
24387
24388 fi
24389
24390 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
24391 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
24392 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
24393 echo $ECHO_N "(cached) $ECHO_C" >&6
24394 else
24395 cat >conftest.$ac_ext <<_ACEOF
24396 /* confdefs.h. */
24397 _ACEOF
24398 cat confdefs.h >>conftest.$ac_ext
24399 cat >>conftest.$ac_ext <<_ACEOF
24400 /* end confdefs.h. */
24401 #include <sys/types.h>
24402 #include <$ac_cv_struct_tm>
24403
24404
24405 int
24406 main ()
24407 {
24408 static struct tm ac_aggr;
24409 if (ac_aggr.tm_zone)
24410 return 0;
24411 ;
24412 return 0;
24413 }
24414 _ACEOF
24415 rm -f conftest.$ac_objext
24416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24417 (eval $ac_compile) 2>conftest.er1
24418 ac_status=$?
24419 grep -v '^ *+' conftest.er1 >conftest.err
24420 rm -f conftest.er1
24421 cat conftest.err >&5
24422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423 (exit $ac_status); } &&
24424 { ac_try='test -z "$ac_c_werror_flag"
24425 || test ! -s conftest.err'
24426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24427 (eval $ac_try) 2>&5
24428 ac_status=$?
24429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24430 (exit $ac_status); }; } &&
24431 { ac_try='test -s conftest.$ac_objext'
24432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24433 (eval $ac_try) 2>&5
24434 ac_status=$?
24435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24436 (exit $ac_status); }; }; then
24437 ac_cv_member_struct_tm_tm_zone=yes
24438 else
24439 echo "$as_me: failed program was:" >&5
24440 sed 's/^/| /' conftest.$ac_ext >&5
24441
24442 cat >conftest.$ac_ext <<_ACEOF
24443 /* confdefs.h. */
24444 _ACEOF
24445 cat confdefs.h >>conftest.$ac_ext
24446 cat >>conftest.$ac_ext <<_ACEOF
24447 /* end confdefs.h. */
24448 #include <sys/types.h>
24449 #include <$ac_cv_struct_tm>
24450
24451
24452 int
24453 main ()
24454 {
24455 static struct tm ac_aggr;
24456 if (sizeof ac_aggr.tm_zone)
24457 return 0;
24458 ;
24459 return 0;
24460 }
24461 _ACEOF
24462 rm -f conftest.$ac_objext
24463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24464 (eval $ac_compile) 2>conftest.er1
24465 ac_status=$?
24466 grep -v '^ *+' conftest.er1 >conftest.err
24467 rm -f conftest.er1
24468 cat conftest.err >&5
24469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470 (exit $ac_status); } &&
24471 { ac_try='test -z "$ac_c_werror_flag"
24472 || test ! -s conftest.err'
24473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24474 (eval $ac_try) 2>&5
24475 ac_status=$?
24476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24477 (exit $ac_status); }; } &&
24478 { ac_try='test -s conftest.$ac_objext'
24479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24480 (eval $ac_try) 2>&5
24481 ac_status=$?
24482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483 (exit $ac_status); }; }; then
24484 ac_cv_member_struct_tm_tm_zone=yes
24485 else
24486 echo "$as_me: failed program was:" >&5
24487 sed 's/^/| /' conftest.$ac_ext >&5
24488
24489 ac_cv_member_struct_tm_tm_zone=no
24490 fi
24491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24492 fi
24493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24494 fi
24495 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
24496 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
24497 if test $ac_cv_member_struct_tm_tm_zone = yes; then
24498
24499 cat >>confdefs.h <<_ACEOF
24500 @%:@define HAVE_STRUCT_TM_TM_ZONE 1
24501 _ACEOF
24502
24503
24504 fi
24505
24506 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24507
24508 cat >>confdefs.h <<\_ACEOF
24509 @%:@define HAVE_TM_ZONE 1
24510 _ACEOF
24511
24512 else
24513 echo "$as_me:$LINENO: checking for tzname" >&5
24514 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
24515 if test "${ac_cv_var_tzname+set}" = set; then
24516 echo $ECHO_N "(cached) $ECHO_C" >&6
24517 else
24518 cat >conftest.$ac_ext <<_ACEOF
24519 /* confdefs.h. */
24520 _ACEOF
24521 cat confdefs.h >>conftest.$ac_ext
24522 cat >>conftest.$ac_ext <<_ACEOF
24523 /* end confdefs.h. */
24524 #include <time.h>
24525 #ifndef tzname /* For SGI. */
24526 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
24527 #endif
24528
24529 int
24530 main ()
24531 {
24532 atoi(*tzname);
24533 ;
24534 return 0;
24535 }
24536 _ACEOF
24537 rm -f conftest.$ac_objext conftest$ac_exeext
24538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24539 (eval $ac_link) 2>conftest.er1
24540 ac_status=$?
24541 grep -v '^ *+' conftest.er1 >conftest.err
24542 rm -f conftest.er1
24543 cat conftest.err >&5
24544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24545 (exit $ac_status); } &&
24546 { ac_try='test -z "$ac_c_werror_flag"
24547 || test ! -s conftest.err'
24548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24549 (eval $ac_try) 2>&5
24550 ac_status=$?
24551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24552 (exit $ac_status); }; } &&
24553 { ac_try='test -s conftest$ac_exeext'
24554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24555 (eval $ac_try) 2>&5
24556 ac_status=$?
24557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558 (exit $ac_status); }; }; then
24559 ac_cv_var_tzname=yes
24560 else
24561 echo "$as_me: failed program was:" >&5
24562 sed 's/^/| /' conftest.$ac_ext >&5
24563
24564 ac_cv_var_tzname=no
24565 fi
24566 rm -f conftest.err conftest.$ac_objext \
24567 conftest$ac_exeext conftest.$ac_ext
24568 fi
24569 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
24570 echo "${ECHO_T}$ac_cv_var_tzname" >&6
24571 if test $ac_cv_var_tzname = yes; then
24572
24573 cat >>confdefs.h <<\_ACEOF
24574 @%:@define HAVE_TZNAME 1
24575 _ACEOF
24576
24577 fi
24578 fi
24579
24580 echo "$as_me:$LINENO: checking for struct timezone in sys/time.h and time.h" >&5
24581 echo $ECHO_N "checking for struct timezone in sys/time.h and time.h... $ECHO_C" >&6
24582 if test "${bash_cv_struct_timezone+set}" = set; then
24583 echo $ECHO_N "(cached) $ECHO_C" >&6
24584 else
24585
24586 cat >conftest.$ac_ext <<_ACEOF
24587 /* confdefs.h. */
24588 _ACEOF
24589 cat confdefs.h >>conftest.$ac_ext
24590 cat >>conftest.$ac_ext <<_ACEOF
24591 /* end confdefs.h. */
24592 #include <sys/time.h>
24593
24594 _ACEOF
24595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24596 $EGREP "struct timezone" >/dev/null 2>&1; then
24597 bash_cv_struct_timezone=yes
24598 else
24599 cat >conftest.$ac_ext <<_ACEOF
24600 /* confdefs.h. */
24601 _ACEOF
24602 cat confdefs.h >>conftest.$ac_ext
24603 cat >>conftest.$ac_ext <<_ACEOF
24604 /* end confdefs.h. */
24605 #include <time.h>
24606
24607 _ACEOF
24608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24609 $EGREP "struct timezone" >/dev/null 2>&1; then
24610 bash_cv_struct_timezone=yes
24611 else
24612 bash_cv_struct_timezone=no
24613 fi
24614 rm -f conftest*
24615
24616 fi
24617 rm -f conftest*
24618
24619
24620 fi
24621
24622 echo "$as_me:$LINENO: result: $bash_cv_struct_timezone" >&5
24623 echo "${ECHO_T}$bash_cv_struct_timezone" >&6
24624 if test $bash_cv_struct_timezone = yes; then
24625 cat >>confdefs.h <<\_ACEOF
24626 @%:@define HAVE_STRUCT_TIMEZONE 1
24627 _ACEOF
24628
24629 fi
24630
24631
24632 echo "$as_me:$LINENO: checking for the existence of strsignal" >&5
24633 echo $ECHO_N "checking for the existence of strsignal... $ECHO_C" >&6
24634 if test "${bash_cv_have_strsignal+set}" = set; then
24635 echo $ECHO_N "(cached) $ECHO_C" >&6
24636 else
24637 cat >conftest.$ac_ext <<_ACEOF
24638 /* confdefs.h. */
24639 _ACEOF
24640 cat confdefs.h >>conftest.$ac_ext
24641 cat >>conftest.$ac_ext <<_ACEOF
24642 /* end confdefs.h. */
24643 #include <sys/types.h>
24644 #include <signal.h>
24645 int
24646 main ()
24647 {
24648 char *s = (char *)strsignal(2);
24649 ;
24650 return 0;
24651 }
24652 _ACEOF
24653 rm -f conftest.$ac_objext conftest$ac_exeext
24654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24655 (eval $ac_link) 2>conftest.er1
24656 ac_status=$?
24657 grep -v '^ *+' conftest.er1 >conftest.err
24658 rm -f conftest.er1
24659 cat conftest.err >&5
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); } &&
24662 { ac_try='test -z "$ac_c_werror_flag"
24663 || test ! -s conftest.err'
24664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24665 (eval $ac_try) 2>&5
24666 ac_status=$?
24667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668 (exit $ac_status); }; } &&
24669 { ac_try='test -s conftest$ac_exeext'
24670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24671 (eval $ac_try) 2>&5
24672 ac_status=$?
24673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674 (exit $ac_status); }; }; then
24675 bash_cv_have_strsignal=yes
24676 else
24677 echo "$as_me: failed program was:" >&5
24678 sed 's/^/| /' conftest.$ac_ext >&5
24679
24680 bash_cv_have_strsignal=no
24681 fi
24682 rm -f conftest.err conftest.$ac_objext \
24683 conftest$ac_exeext conftest.$ac_ext
24684 fi
24685
24686 echo "$as_me:$LINENO: result: $bash_cv_have_strsignal" >&5
24687 echo "${ECHO_T}$bash_cv_have_strsignal" >&6
24688 if test $bash_cv_have_strsignal = yes; then
24689 cat >>confdefs.h <<\_ACEOF
24690 @%:@define HAVE_STRSIGNAL 1
24691 _ACEOF
24692
24693 fi
24694
24695 echo "$as_me:$LINENO: checking if opendir() opens non-directories" >&5
24696 echo $ECHO_N "checking if opendir() opens non-directories... $ECHO_C" >&6
24697 if test "${bash_cv_opendir_not_robust+set}" = set; then
24698 echo $ECHO_N "(cached) $ECHO_C" >&6
24699 else
24700 if test "$cross_compiling" = yes; then
24701 { echo "$as_me:$LINENO: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&5
24702 echo "$as_me: WARNING: cannot check opendir if cross compiling -- defaulting to no" >&2;}
24703 bash_cv_opendir_not_robust=no
24704
24705 else
24706 cat >conftest.$ac_ext <<_ACEOF
24707 /* confdefs.h. */
24708 _ACEOF
24709 cat confdefs.h >>conftest.$ac_ext
24710 cat >>conftest.$ac_ext <<_ACEOF
24711 /* end confdefs.h. */
24712
24713 #include <stdio.h>
24714 #include <sys/types.h>
24715 #include <fcntl.h>
24716 #ifdef HAVE_UNISTD_H
24717 # include <unistd.h>
24718 #endif /* HAVE_UNISTD_H */
24719 #if defined(HAVE_DIRENT_H)
24720 # include <dirent.h>
24721 #else
24722 # define dirent direct
24723 # ifdef HAVE_SYS_NDIR_H
24724 # include <sys/ndir.h>
24725 # endif /* SYSNDIR */
24726 # ifdef HAVE_SYS_DIR_H
24727 # include <sys/dir.h>
24728 # endif /* SYSDIR */
24729 # ifdef HAVE_NDIR_H
24730 # include <ndir.h>
24731 # endif
24732 #endif /* HAVE_DIRENT_H */
24733 main()
24734 {
24735 DIR *dir;
24736 int fd, err;
24737 err = mkdir("/tmp/bash-aclocal", 0700);
24738 if (err < 0) {
24739 perror("mkdir");
24740 exit(1);
24741 }
24742 unlink("/tmp/bash-aclocal/not_a_directory");
24743 fd = open("/tmp/bash-aclocal/not_a_directory", O_WRONLY|O_CREAT|O_EXCL, 0666);
24744 write(fd, "\n", 1);
24745 close(fd);
24746 dir = opendir("/tmp/bash-aclocal/not_a_directory");
24747 unlink("/tmp/bash-aclocal/not_a_directory");
24748 rmdir("/tmp/bash-aclocal");
24749 exit (dir == 0);
24750 }
24751 _ACEOF
24752 rm -f conftest$ac_exeext
24753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24754 (eval $ac_link) 2>&5
24755 ac_status=$?
24756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24759 (eval $ac_try) 2>&5
24760 ac_status=$?
24761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24762 (exit $ac_status); }; }; then
24763 bash_cv_opendir_not_robust=yes
24764 else
24765 echo "$as_me: program exited with status $ac_status" >&5
24766 echo "$as_me: failed program was:" >&5
24767 sed 's/^/| /' conftest.$ac_ext >&5
24768
24769 ( exit $ac_status )
24770 bash_cv_opendir_not_robust=no
24771 fi
24772 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24773 fi
24774 fi
24775
24776 echo "$as_me:$LINENO: result: $bash_cv_opendir_not_robust" >&5
24777 echo "${ECHO_T}$bash_cv_opendir_not_robust" >&6
24778 if test $bash_cv_opendir_not_robust = yes; then
24779 cat >>confdefs.h <<\_ACEOF
24780 @%:@define OPENDIR_NOT_ROBUST 1
24781 _ACEOF
24782
24783 fi
24784
24785 echo "$as_me:$LINENO: checking whether ulimit can substitute for getdtablesize" >&5
24786 echo $ECHO_N "checking whether ulimit can substitute for getdtablesize... $ECHO_C" >&6
24787 if test "${bash_cv_ulimit_maxfds+set}" = set; then
24788 echo $ECHO_N "(cached) $ECHO_C" >&6
24789 else
24790 if test "$cross_compiling" = yes; then
24791 { echo "$as_me:$LINENO: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&5
24792 echo "$as_me: WARNING: cannot check ulimit if cross compiling -- defaulting to no" >&2;}
24793 bash_cv_ulimit_maxfds=no
24794
24795 else
24796 cat >conftest.$ac_ext <<_ACEOF
24797 /* confdefs.h. */
24798 _ACEOF
24799 cat confdefs.h >>conftest.$ac_ext
24800 cat >>conftest.$ac_ext <<_ACEOF
24801 /* end confdefs.h. */
24802
24803 main()
24804 {
24805 long maxfds = ulimit(4, 0L);
24806 exit (maxfds == -1L);
24807 }
24808
24809 _ACEOF
24810 rm -f conftest$ac_exeext
24811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24812 (eval $ac_link) 2>&5
24813 ac_status=$?
24814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24817 (eval $ac_try) 2>&5
24818 ac_status=$?
24819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820 (exit $ac_status); }; }; then
24821 bash_cv_ulimit_maxfds=yes
24822 else
24823 echo "$as_me: program exited with status $ac_status" >&5
24824 echo "$as_me: failed program was:" >&5
24825 sed 's/^/| /' conftest.$ac_ext >&5
24826
24827 ( exit $ac_status )
24828 bash_cv_ulimit_maxfds=no
24829 fi
24830 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24831 fi
24832 fi
24833
24834 echo "$as_me:$LINENO: result: $bash_cv_ulimit_maxfds" >&5
24835 echo "${ECHO_T}$bash_cv_ulimit_maxfds" >&6
24836 if test $bash_cv_ulimit_maxfds = yes; then
24837 cat >>confdefs.h <<\_ACEOF
24838 @%:@define ULIMIT_MAXFDS 1
24839 _ACEOF
24840
24841 fi
24842
24843 echo "$as_me:$LINENO: checking to see if getenv can be redefined" >&5
24844 echo $ECHO_N "checking to see if getenv can be redefined... $ECHO_C" >&6
24845 if test "${bash_cv_getenv_redef+set}" = set; then
24846 echo $ECHO_N "(cached) $ECHO_C" >&6
24847 else
24848 if test "$cross_compiling" = yes; then
24849 { echo "$as_me:$LINENO: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&5
24850 echo "$as_me: WARNING: cannot check getenv redefinition if cross compiling -- defaulting to yes" >&2;}
24851 bash_cv_getenv_redef=yes
24852
24853 else
24854 cat >conftest.$ac_ext <<_ACEOF
24855 /* confdefs.h. */
24856 _ACEOF
24857 cat confdefs.h >>conftest.$ac_ext
24858 cat >>conftest.$ac_ext <<_ACEOF
24859 /* end confdefs.h. */
24860
24861 #ifdef HAVE_UNISTD_H
24862 # include <unistd.h>
24863 #endif
24864 #ifndef __STDC__
24865 # ifndef const
24866 # define const
24867 # endif
24868 #endif
24869 char *
24870 getenv (name)
24871 #if defined (__linux__) || defined (__bsdi__) || defined (convex)
24872 const char *name;
24873 #else
24874 char const *name;
24875 #endif /* !__linux__ && !__bsdi__ && !convex */
24876 {
24877 return "42";
24878 }
24879 main()
24880 {
24881 char *s;
24882 /* The next allows this program to run, but does not allow bash to link
24883 when it redefines getenv. I'm not really interested in figuring out
24884 why not. */
24885 #if defined (NeXT)
24886 exit(1);
24887 #endif
24888 s = getenv("ABCDE");
24889 exit(s == 0); /* force optimizer to leave getenv in */
24890 }
24891
24892 _ACEOF
24893 rm -f conftest$ac_exeext
24894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24895 (eval $ac_link) 2>&5
24896 ac_status=$?
24897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24898 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24900 (eval $ac_try) 2>&5
24901 ac_status=$?
24902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903 (exit $ac_status); }; }; then
24904 bash_cv_getenv_redef=yes
24905 else
24906 echo "$as_me: program exited with status $ac_status" >&5
24907 echo "$as_me: failed program was:" >&5
24908 sed 's/^/| /' conftest.$ac_ext >&5
24909
24910 ( exit $ac_status )
24911 bash_cv_getenv_redef=no
24912 fi
24913 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24914 fi
24915 fi
24916
24917 echo "$as_me:$LINENO: result: $bash_cv_getenv_redef" >&5
24918 echo "${ECHO_T}$bash_cv_getenv_redef" >&6
24919 if test $bash_cv_getenv_redef = yes; then
24920 cat >>confdefs.h <<\_ACEOF
24921 @%:@define CAN_REDEFINE_GETENV 1
24922 _ACEOF
24923
24924 fi
24925
24926 if test "$ac_cv_func_getcwd" = "yes"; then
24927 echo "$as_me:$LINENO: checking if getcwd() will dynamically allocate memory" >&5
24928 echo $ECHO_N "checking if getcwd() will dynamically allocate memory... $ECHO_C" >&6
24929 if test "${bash_cv_getcwd_malloc+set}" = set; then
24930 echo $ECHO_N "(cached) $ECHO_C" >&6
24931 else
24932 if test "$cross_compiling" = yes; then
24933 { echo "$as_me:$LINENO: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&5
24934 echo "$as_me: WARNING: cannot check whether getcwd allocates memory when cross-compiling -- defaulting to no" >&2;}
24935 bash_cv_getcwd_malloc=no
24936
24937 else
24938 cat >conftest.$ac_ext <<_ACEOF
24939 /* confdefs.h. */
24940 _ACEOF
24941 cat confdefs.h >>conftest.$ac_ext
24942 cat >>conftest.$ac_ext <<_ACEOF
24943 /* end confdefs.h. */
24944
24945 #include <stdio.h>
24946 #ifdef HAVE_UNISTD_H
24947 #include <unistd.h>
24948 #endif
24949
24950 main()
24951 {
24952 char *xpwd;
24953 xpwd = getcwd(0, 0);
24954 exit (xpwd == 0);
24955 }
24956
24957 _ACEOF
24958 rm -f conftest$ac_exeext
24959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24960 (eval $ac_link) 2>&5
24961 ac_status=$?
24962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24965 (eval $ac_try) 2>&5
24966 ac_status=$?
24967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968 (exit $ac_status); }; }; then
24969 bash_cv_getcwd_malloc=yes
24970 else
24971 echo "$as_me: program exited with status $ac_status" >&5
24972 echo "$as_me: failed program was:" >&5
24973 sed 's/^/| /' conftest.$ac_ext >&5
24974
24975 ( exit $ac_status )
24976 bash_cv_getcwd_malloc=no
24977 fi
24978 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24979 fi
24980 fi
24981
24982 echo "$as_me:$LINENO: result: $bash_cv_getcwd_malloc" >&5
24983 echo "${ECHO_T}$bash_cv_getcwd_malloc" >&6
24984 if test $bash_cv_getcwd_malloc = no; then
24985 cat >>confdefs.h <<\_ACEOF
24986 @%:@define GETCWD_BROKEN 1
24987 _ACEOF
24988
24989 case $LIB@&t@OBJS in
24990 "getcwd.$ac_objext" | \
24991 *" getcwd.$ac_objext" | \
24992 "getcwd.$ac_objext "* | \
24993 *" getcwd.$ac_objext "* ) ;;
24994 *) LIB@&t@OBJS="$LIB@&t@OBJS getcwd.$ac_objext" ;;
24995 esac
24996
24997 fi
24998
24999 fi
25000
25001 echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
25002 echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
25003 if test "${bash_cv_func_sigsetjmp+set}" = set; then
25004 echo $ECHO_N "(cached) $ECHO_C" >&6
25005 else
25006 if test "$cross_compiling" = yes; then
25007 { echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
25008 echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
25009 bash_cv_func_sigsetjmp=missing
25010
25011 else
25012 cat >conftest.$ac_ext <<_ACEOF
25013 /* confdefs.h. */
25014 _ACEOF
25015 cat confdefs.h >>conftest.$ac_ext
25016 cat >>conftest.$ac_ext <<_ACEOF
25017 /* end confdefs.h. */
25018
25019 #ifdef HAVE_UNISTD_H
25020 #include <unistd.h>
25021 #endif
25022 #include <sys/types.h>
25023 #include <signal.h>
25024 #include <setjmp.h>
25025
25026 main()
25027 {
25028 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
25029 exit (1);
25030 #else
25031
25032 int code;
25033 sigset_t set, oset;
25034 sigjmp_buf xx;
25035
25036 /* get the mask */
25037 sigemptyset(&set);
25038 sigemptyset(&oset);
25039 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
25040 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
25041
25042 /* save it */
25043 code = sigsetjmp(xx, 1);
25044 if (code)
25045 exit(0); /* could get sigmask and compare to oset here. */
25046
25047 /* change it */
25048 sigaddset(&set, SIGINT);
25049 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
25050
25051 /* and siglongjmp */
25052 siglongjmp(xx, 10);
25053 exit(1);
25054 #endif
25055 }
25056 _ACEOF
25057 rm -f conftest$ac_exeext
25058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25059 (eval $ac_link) 2>&5
25060 ac_status=$?
25061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25064 (eval $ac_try) 2>&5
25065 ac_status=$?
25066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067 (exit $ac_status); }; }; then
25068 bash_cv_func_sigsetjmp=present
25069 else
25070 echo "$as_me: program exited with status $ac_status" >&5
25071 echo "$as_me: failed program was:" >&5
25072 sed 's/^/| /' conftest.$ac_ext >&5
25073
25074 ( exit $ac_status )
25075 bash_cv_func_sigsetjmp=missing
25076 fi
25077 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25078 fi
25079 fi
25080
25081 echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
25082 echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
25083 if test $bash_cv_func_sigsetjmp = present; then
25084 cat >>confdefs.h <<\_ACEOF
25085 @%:@define HAVE_POSIX_SIGSETJMP 1
25086 _ACEOF
25087
25088 fi
25089
25090
25091 echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
25092 echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
25093 if test "${bash_cv_func_strcoll_broken+set}" = set; then
25094 echo $ECHO_N "(cached) $ECHO_C" >&6
25095 else
25096 if test "$cross_compiling" = yes; then
25097 { echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
25098 echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
25099 bash_cv_func_strcoll_broken=no
25100
25101 else
25102 cat >conftest.$ac_ext <<_ACEOF
25103 /* confdefs.h. */
25104 _ACEOF
25105 cat confdefs.h >>conftest.$ac_ext
25106 cat >>conftest.$ac_ext <<_ACEOF
25107 /* end confdefs.h. */
25108
25109 #include <stdio.h>
25110 #if defined (HAVE_LOCALE_H)
25111 #include <locale.h>
25112 #endif
25113
25114 main(c, v)
25115 int c;
25116 char *v[];
25117 {
25118 int r1, r2;
25119 char *deflocale, *defcoll;
25120
25121 #ifdef HAVE_SETLOCALE
25122 deflocale = setlocale(LC_ALL, "");
25123 defcoll = setlocale(LC_COLLATE, "");
25124 #endif
25125
25126 #ifdef HAVE_STRCOLL
25127 /* These two values are taken from tests/glob-test. */
25128 r1 = strcoll("abd", "aXd");
25129 #else
25130 r1 = 0;
25131 #endif
25132 r2 = strcmp("abd", "aXd");
25133
25134 /* These two should both be greater than 0. It is permissible for
25135 a system to return different values, as long as the sign is the
25136 same. */
25137
25138 /* Exit with 1 (failure) if these two values are both > 0, since
25139 this tests whether strcoll(3) is broken with respect to strcmp(3)
25140 in the default locale. */
25141 exit (r1 > 0 && r2 > 0);
25142 }
25143
25144 _ACEOF
25145 rm -f conftest$ac_exeext
25146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25147 (eval $ac_link) 2>&5
25148 ac_status=$?
25149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25152 (eval $ac_try) 2>&5
25153 ac_status=$?
25154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25155 (exit $ac_status); }; }; then
25156 bash_cv_func_strcoll_broken=yes
25157 else
25158 echo "$as_me: program exited with status $ac_status" >&5
25159 echo "$as_me: failed program was:" >&5
25160 sed 's/^/| /' conftest.$ac_ext >&5
25161
25162 ( exit $ac_status )
25163 bash_cv_func_strcoll_broken=no
25164 fi
25165 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25166 fi
25167 fi
25168
25169 echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
25170 echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
25171 if test $bash_cv_func_strcoll_broken = yes; then
25172 cat >>confdefs.h <<\_ACEOF
25173 @%:@define STRCOLL_BROKEN 1
25174 _ACEOF
25175
25176 fi
25177
25178
25179
25180 if test "$ac_cv_func_putenv" = "yes"; then
25181
25182
25183
25184 echo "$as_me:$LINENO: checking for standard-conformant putenv declaration" >&5
25185 echo $ECHO_N "checking for standard-conformant putenv declaration... $ECHO_C" >&6
25186 if test "${bash_cv_std_putenv+set}" = set; then
25187 echo $ECHO_N "(cached) $ECHO_C" >&6
25188 else
25189 cat >conftest.$ac_ext <<_ACEOF
25190 /* confdefs.h. */
25191 _ACEOF
25192 cat confdefs.h >>conftest.$ac_ext
25193 cat >>conftest.$ac_ext <<_ACEOF
25194 /* end confdefs.h. */
25195
25196 #if STDC_HEADERS
25197 #include <stdlib.h>
25198 #include <stddef.h>
25199 #endif
25200 #ifndef __STDC__
25201 # ifndef const
25202 # define const
25203 # endif
25204 #endif
25205 #ifdef PROTOTYPES
25206 extern int putenv (char *);
25207 #else
25208 extern int putenv ();
25209 #endif
25210
25211 int
25212 main ()
25213 {
25214 return (putenv == 0);
25215 ;
25216 return 0;
25217 }
25218 _ACEOF
25219 rm -f conftest.$ac_objext conftest$ac_exeext
25220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25221 (eval $ac_link) 2>conftest.er1
25222 ac_status=$?
25223 grep -v '^ *+' conftest.er1 >conftest.err
25224 rm -f conftest.er1
25225 cat conftest.err >&5
25226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227 (exit $ac_status); } &&
25228 { ac_try='test -z "$ac_c_werror_flag"
25229 || test ! -s conftest.err'
25230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25231 (eval $ac_try) 2>&5
25232 ac_status=$?
25233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234 (exit $ac_status); }; } &&
25235 { ac_try='test -s conftest$ac_exeext'
25236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25237 (eval $ac_try) 2>&5
25238 ac_status=$?
25239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); }; }; then
25241 bash_cv_std_putenv=yes
25242 else
25243 echo "$as_me: failed program was:" >&5
25244 sed 's/^/| /' conftest.$ac_ext >&5
25245
25246 bash_cv_std_putenv=no
25247
25248 fi
25249 rm -f conftest.err conftest.$ac_objext \
25250 conftest$ac_exeext conftest.$ac_ext
25251 fi
25252 echo "$as_me:$LINENO: result: $bash_cv_std_putenv" >&5
25253 echo "${ECHO_T}$bash_cv_std_putenv" >&6
25254 if test $bash_cv_std_putenv = yes; then
25255 cat >>confdefs.h <<\_ACEOF
25256 @%:@define HAVE_STD_PUTENV 1
25257 _ACEOF
25258
25259 fi
25260
25261 else
25262 cat >>confdefs.h <<\_ACEOF
25263 @%:@define HAVE_STD_PUTENV 1
25264 _ACEOF
25265
25266 fi
25267 if test "$ac_cv_func_unsetenv" = "yes"; then
25268
25269
25270
25271 echo "$as_me:$LINENO: checking for standard-conformant unsetenv declaration" >&5
25272 echo $ECHO_N "checking for standard-conformant unsetenv declaration... $ECHO_C" >&6
25273 if test "${bash_cv_std_unsetenv+set}" = set; then
25274 echo $ECHO_N "(cached) $ECHO_C" >&6
25275 else
25276 cat >conftest.$ac_ext <<_ACEOF
25277 /* confdefs.h. */
25278 _ACEOF
25279 cat confdefs.h >>conftest.$ac_ext
25280 cat >>conftest.$ac_ext <<_ACEOF
25281 /* end confdefs.h. */
25282
25283 #if STDC_HEADERS
25284 #include <stdlib.h>
25285 #include <stddef.h>
25286 #endif
25287 #ifndef __STDC__
25288 # ifndef const
25289 # define const
25290 # endif
25291 #endif
25292 #ifdef PROTOTYPES
25293 extern int unsetenv (const char *);
25294 #else
25295 extern int unsetenv ();
25296 #endif
25297
25298 int
25299 main ()
25300 {
25301 return (unsetenv == 0);
25302 ;
25303 return 0;
25304 }
25305 _ACEOF
25306 rm -f conftest.$ac_objext conftest$ac_exeext
25307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25308 (eval $ac_link) 2>conftest.er1
25309 ac_status=$?
25310 grep -v '^ *+' conftest.er1 >conftest.err
25311 rm -f conftest.er1
25312 cat conftest.err >&5
25313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314 (exit $ac_status); } &&
25315 { ac_try='test -z "$ac_c_werror_flag"
25316 || test ! -s conftest.err'
25317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25318 (eval $ac_try) 2>&5
25319 ac_status=$?
25320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25321 (exit $ac_status); }; } &&
25322 { ac_try='test -s conftest$ac_exeext'
25323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25324 (eval $ac_try) 2>&5
25325 ac_status=$?
25326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327 (exit $ac_status); }; }; then
25328 bash_cv_std_unsetenv=yes
25329 else
25330 echo "$as_me: failed program was:" >&5
25331 sed 's/^/| /' conftest.$ac_ext >&5
25332
25333 bash_cv_std_unsetenv=no
25334
25335 fi
25336 rm -f conftest.err conftest.$ac_objext \
25337 conftest$ac_exeext conftest.$ac_ext
25338 fi
25339 echo "$as_me:$LINENO: result: $bash_cv_std_unsetenv" >&5
25340 echo "${ECHO_T}$bash_cv_std_unsetenv" >&6
25341 if test $bash_cv_std_unsetenv = yes; then
25342 cat >>confdefs.h <<\_ACEOF
25343 @%:@define HAVE_STD_UNSETENV 1
25344 _ACEOF
25345
25346 fi
25347
25348 else
25349 cat >>confdefs.h <<\_ACEOF
25350 @%:@define HAVE_STD_UNSETENV 1
25351 _ACEOF
25352
25353 fi
25354
25355 echo "$as_me:$LINENO: checking for printf floating point output in hex notation" >&5
25356 echo $ECHO_N "checking for printf floating point output in hex notation... $ECHO_C" >&6
25357 if test "${bash_cv_printf_a_format+set}" = set; then
25358 echo $ECHO_N "(cached) $ECHO_C" >&6
25359 else
25360 if test "$cross_compiling" = yes; then
25361 { echo "$as_me:$LINENO: WARNING: cannot check printf if cross compiling -- defaulting to no" >&5
25362 echo "$as_me: WARNING: cannot check printf if cross compiling -- defaulting to no" >&2;}
25363 bash_cv_printf_a_format=no
25364
25365 else
25366 cat >conftest.$ac_ext <<_ACEOF
25367 /* confdefs.h. */
25368 _ACEOF
25369 cat confdefs.h >>conftest.$ac_ext
25370 cat >>conftest.$ac_ext <<_ACEOF
25371 /* end confdefs.h. */
25372
25373 #include <stdio.h>
25374 #include <string.h>
25375
25376 int
25377 main()
25378 {
25379 double y = 0.0;
25380 char abuf[1024];
25381
25382 sprintf(abuf, "%A", y);
25383 exit(strchr(abuf, 'P') == (char *)0);
25384 }
25385
25386 _ACEOF
25387 rm -f conftest$ac_exeext
25388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25389 (eval $ac_link) 2>&5
25390 ac_status=$?
25391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25394 (eval $ac_try) 2>&5
25395 ac_status=$?
25396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397 (exit $ac_status); }; }; then
25398 bash_cv_printf_a_format=yes
25399 else
25400 echo "$as_me: program exited with status $ac_status" >&5
25401 echo "$as_me: failed program was:" >&5
25402 sed 's/^/| /' conftest.$ac_ext >&5
25403
25404 ( exit $ac_status )
25405 bash_cv_printf_a_format=no
25406 fi
25407 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25408 fi
25409 fi
25410
25411 echo "$as_me:$LINENO: result: $bash_cv_printf_a_format" >&5
25412 echo "${ECHO_T}$bash_cv_printf_a_format" >&6
25413 if test $bash_cv_printf_a_format = yes; then
25414 cat >>confdefs.h <<\_ACEOF
25415 @%:@define HAVE_PRINTF_A_FORMAT 1
25416 _ACEOF
25417
25418 fi
25419
25420
25421
25422
25423 echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
25424 echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
25425 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
25426 echo $ECHO_N "(cached) $ECHO_C" >&6
25427 else
25428 if test "$cross_compiling" = yes; then
25429 { echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
25430 echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
25431 bash_cv_must_reinstall_sighandlers=no
25432
25433 else
25434 cat >conftest.$ac_ext <<_ACEOF
25435 /* confdefs.h. */
25436 _ACEOF
25437 cat confdefs.h >>conftest.$ac_ext
25438 cat >>conftest.$ac_ext <<_ACEOF
25439 /* end confdefs.h. */
25440
25441 #include <signal.h>
25442 #ifdef HAVE_UNISTD_H
25443 #include <unistd.h>
25444 #endif
25445
25446 typedef RETSIGTYPE sigfunc();
25447
25448 int nsigint;
25449
25450 #ifdef HAVE_POSIX_SIGNALS
25451 sigfunc *
25452 set_signal_handler(sig, handler)
25453 int sig;
25454 sigfunc *handler;
25455 {
25456 struct sigaction act, oact;
25457 act.sa_handler = handler;
25458 act.sa_flags = 0;
25459 sigemptyset (&act.sa_mask);
25460 sigemptyset (&oact.sa_mask);
25461 sigaction (sig, &act, &oact);
25462 return (oact.sa_handler);
25463 }
25464 #else
25465 #define set_signal_handler(s, h) signal(s, h)
25466 #endif
25467
25468 RETSIGTYPE
25469 sigint(s)
25470 int s;
25471 {
25472 nsigint++;
25473 }
25474
25475 main()
25476 {
25477 nsigint = 0;
25478 set_signal_handler(SIGINT, sigint);
25479 kill((int)getpid(), SIGINT);
25480 kill((int)getpid(), SIGINT);
25481 exit(nsigint != 2);
25482 }
25483
25484 _ACEOF
25485 rm -f conftest$ac_exeext
25486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25487 (eval $ac_link) 2>&5
25488 ac_status=$?
25489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25492 (eval $ac_try) 2>&5
25493 ac_status=$?
25494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495 (exit $ac_status); }; }; then
25496 bash_cv_must_reinstall_sighandlers=no
25497 else
25498 echo "$as_me: program exited with status $ac_status" >&5
25499 echo "$as_me: failed program was:" >&5
25500 sed 's/^/| /' conftest.$ac_ext >&5
25501
25502 ( exit $ac_status )
25503 bash_cv_must_reinstall_sighandlers=yes
25504 fi
25505 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25506 fi
25507 fi
25508
25509 echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
25510 echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
25511 if test $bash_cv_must_reinstall_sighandlers = yes; then
25512 cat >>confdefs.h <<\_ACEOF
25513 @%:@define MUST_REINSTALL_SIGHANDLERS 1
25514 _ACEOF
25515
25516 fi
25517
25518
25519 echo "$as_me:$LINENO: checking for presence of necessary job control definitions" >&5
25520 echo $ECHO_N "checking for presence of necessary job control definitions... $ECHO_C" >&6
25521 if test "${bash_cv_job_control_missing+set}" = set; then
25522 echo $ECHO_N "(cached) $ECHO_C" >&6
25523 else
25524 if test "$cross_compiling" = yes; then
25525 { echo "$as_me:$LINENO: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&5
25526 echo "$as_me: WARNING: cannot check job control if cross-compiling -- defaulting to missing" >&2;}
25527 bash_cv_job_control_missing=missing
25528
25529 else
25530 cat >conftest.$ac_ext <<_ACEOF
25531 /* confdefs.h. */
25532 _ACEOF
25533 cat confdefs.h >>conftest.$ac_ext
25534 cat >>conftest.$ac_ext <<_ACEOF
25535 /* end confdefs.h. */
25536
25537 #include <sys/types.h>
25538 #ifdef HAVE_SYS_WAIT_H
25539 #include <sys/wait.h>
25540 #endif
25541 #ifdef HAVE_UNISTD_H
25542 #include <unistd.h>
25543 #endif
25544 #include <signal.h>
25545
25546 /* Add more tests in here as appropriate. */
25547 main()
25548 {
25549 /* signal type */
25550 #if !defined (HAVE_POSIX_SIGNALS) && !defined (HAVE_BSD_SIGNALS)
25551 exit(1);
25552 #endif
25553
25554 /* signals and tty control. */
25555 #if !defined (SIGTSTP) || !defined (SIGSTOP) || !defined (SIGCONT)
25556 exit (1);
25557 #endif
25558
25559 /* process control */
25560 #if !defined (WNOHANG) || !defined (WUNTRACED)
25561 exit(1);
25562 #endif
25563
25564 /* Posix systems have tcgetpgrp and waitpid. */
25565 #if defined (_POSIX_VERSION) && !defined (HAVE_TCGETPGRP)
25566 exit(1);
25567 #endif
25568
25569 #if defined (_POSIX_VERSION) && !defined (HAVE_WAITPID)
25570 exit(1);
25571 #endif
25572
25573 /* Other systems have TIOCSPGRP/TIOCGPRGP and wait3. */
25574 #if !defined (_POSIX_VERSION) && !defined (HAVE_WAIT3)
25575 exit(1);
25576 #endif
25577
25578 exit(0);
25579 }
25580 _ACEOF
25581 rm -f conftest$ac_exeext
25582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25583 (eval $ac_link) 2>&5
25584 ac_status=$?
25585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25588 (eval $ac_try) 2>&5
25589 ac_status=$?
25590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591 (exit $ac_status); }; }; then
25592 bash_cv_job_control_missing=present
25593 else
25594 echo "$as_me: program exited with status $ac_status" >&5
25595 echo "$as_me: failed program was:" >&5
25596 sed 's/^/| /' conftest.$ac_ext >&5
25597
25598 ( exit $ac_status )
25599 bash_cv_job_control_missing=missing
25600 fi
25601 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25602 fi
25603 fi
25604
25605 echo "$as_me:$LINENO: result: $bash_cv_job_control_missing" >&5
25606 echo "${ECHO_T}$bash_cv_job_control_missing" >&6
25607 if test $bash_cv_job_control_missing = missing; then
25608 cat >>confdefs.h <<\_ACEOF
25609 @%:@define JOB_CONTROL_MISSING 1
25610 _ACEOF
25611
25612 fi
25613
25614 echo "$as_me:$LINENO: checking for presence of named pipes" >&5
25615 echo $ECHO_N "checking for presence of named pipes... $ECHO_C" >&6
25616 if test "${bash_cv_sys_named_pipes+set}" = set; then
25617 echo $ECHO_N "(cached) $ECHO_C" >&6
25618 else
25619 if test "$cross_compiling" = yes; then
25620 { echo "$as_me:$LINENO: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&5
25621 echo "$as_me: WARNING: cannot check for named pipes if cross-compiling -- defaulting to missing" >&2;}
25622 bash_cv_sys_named_pipes=missing
25623
25624 else
25625 cat >conftest.$ac_ext <<_ACEOF
25626 /* confdefs.h. */
25627 _ACEOF
25628 cat confdefs.h >>conftest.$ac_ext
25629 cat >>conftest.$ac_ext <<_ACEOF
25630 /* end confdefs.h. */
25631
25632 #include <sys/types.h>
25633 #include <sys/stat.h>
25634 #ifdef HAVE_UNISTD_H
25635 #include <unistd.h>
25636 #endif
25637
25638 /* Add more tests in here as appropriate. */
25639 main()
25640 {
25641 int fd, err;
25642
25643 #if defined (HAVE_MKFIFO)
25644 exit (0);
25645 #endif
25646
25647 #if !defined (S_IFIFO) && (defined (_POSIX_VERSION) && !defined (S_ISFIFO))
25648 exit (1);
25649 #endif
25650
25651 #if defined (NeXT)
25652 exit (1);
25653 #endif
25654 err = mkdir("/tmp/bash-aclocal", 0700);
25655 if (err < 0) {
25656 perror ("mkdir");
25657 exit(1);
25658 }
25659 fd = mknod ("/tmp/bash-aclocal/sh-np-autoconf", 0666 | S_IFIFO, 0);
25660 if (fd == -1) {
25661 rmdir ("/tmp/bash-aclocal");
25662 exit (1);
25663 }
25664 close(fd);
25665 unlink ("/tmp/bash-aclocal/sh-np-autoconf");
25666 rmdir ("/tmp/bash-aclocal");
25667 exit(0);
25668 }
25669 _ACEOF
25670 rm -f conftest$ac_exeext
25671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25672 (eval $ac_link) 2>&5
25673 ac_status=$?
25674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25677 (eval $ac_try) 2>&5
25678 ac_status=$?
25679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680 (exit $ac_status); }; }; then
25681 bash_cv_sys_named_pipes=present
25682 else
25683 echo "$as_me: program exited with status $ac_status" >&5
25684 echo "$as_me: failed program was:" >&5
25685 sed 's/^/| /' conftest.$ac_ext >&5
25686
25687 ( exit $ac_status )
25688 bash_cv_sys_named_pipes=missing
25689 fi
25690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25691 fi
25692 fi
25693
25694 echo "$as_me:$LINENO: result: $bash_cv_sys_named_pipes" >&5
25695 echo "${ECHO_T}$bash_cv_sys_named_pipes" >&6
25696 if test $bash_cv_sys_named_pipes = missing; then
25697 cat >>confdefs.h <<\_ACEOF
25698 @%:@define NAMED_PIPES_MISSING 1
25699 _ACEOF
25700
25701 fi
25702
25703
25704 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
25705 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
25706 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
25707 echo $ECHO_N "(cached) $ECHO_C" >&6
25708 else
25709 cat >conftest.$ac_ext <<_ACEOF
25710 /* confdefs.h. */
25711 _ACEOF
25712 cat confdefs.h >>conftest.$ac_ext
25713 cat >>conftest.$ac_ext <<_ACEOF
25714 /* end confdefs.h. */
25715 #include <sys/types.h>
25716 #include <termios.h>
25717 #ifdef TIOCGWINSZ
25718 yes
25719 #endif
25720
25721 _ACEOF
25722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25723 $EGREP "yes" >/dev/null 2>&1; then
25724 ac_cv_sys_tiocgwinsz_in_termios_h=yes
25725 else
25726 ac_cv_sys_tiocgwinsz_in_termios_h=no
25727 fi
25728 rm -f conftest*
25729
25730 fi
25731 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
25732 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
25733
25734 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
25735 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
25736 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
25737 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
25738 echo $ECHO_N "(cached) $ECHO_C" >&6
25739 else
25740 cat >conftest.$ac_ext <<_ACEOF
25741 /* confdefs.h. */
25742 _ACEOF
25743 cat confdefs.h >>conftest.$ac_ext
25744 cat >>conftest.$ac_ext <<_ACEOF
25745 /* end confdefs.h. */
25746 #include <sys/types.h>
25747 #include <sys/ioctl.h>
25748 #ifdef TIOCGWINSZ
25749 yes
25750 #endif
25751
25752 _ACEOF
25753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25754 $EGREP "yes" >/dev/null 2>&1; then
25755 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
25756 else
25757 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
25758 fi
25759 rm -f conftest*
25760
25761 fi
25762 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
25763 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
25764
25765 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
25766
25767 cat >>confdefs.h <<\_ACEOF
25768 @%:@define GWINSZ_IN_SYS_IOCTL 1
25769 _ACEOF
25770
25771 fi
25772 fi
25773
25774 echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
25775 echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
25776 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
25777 echo $ECHO_N "(cached) $ECHO_C" >&6
25778 else
25779 cat >conftest.$ac_ext <<_ACEOF
25780 /* confdefs.h. */
25781 _ACEOF
25782 cat confdefs.h >>conftest.$ac_ext
25783 cat >>conftest.$ac_ext <<_ACEOF
25784 /* end confdefs.h. */
25785 #include <sys/types.h>
25786 #include <sys/ioctl.h>
25787 int
25788 main ()
25789 {
25790 int x = TIOCSTAT;
25791 ;
25792 return 0;
25793 }
25794 _ACEOF
25795 rm -f conftest.$ac_objext
25796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25797 (eval $ac_compile) 2>conftest.er1
25798 ac_status=$?
25799 grep -v '^ *+' conftest.er1 >conftest.err
25800 rm -f conftest.er1
25801 cat conftest.err >&5
25802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803 (exit $ac_status); } &&
25804 { ac_try='test -z "$ac_c_werror_flag"
25805 || test ! -s conftest.err'
25806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25807 (eval $ac_try) 2>&5
25808 ac_status=$?
25809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25810 (exit $ac_status); }; } &&
25811 { ac_try='test -s conftest.$ac_objext'
25812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25813 (eval $ac_try) 2>&5
25814 ac_status=$?
25815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816 (exit $ac_status); }; }; then
25817 bash_cv_tiocstat_in_ioctl=yes
25818 else
25819 echo "$as_me: failed program was:" >&5
25820 sed 's/^/| /' conftest.$ac_ext >&5
25821
25822 bash_cv_tiocstat_in_ioctl=no
25823 fi
25824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25825 fi
25826
25827 echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
25828 echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
25829 if test $bash_cv_tiocstat_in_ioctl = yes; then
25830 cat >>confdefs.h <<\_ACEOF
25831 @%:@define TIOCSTAT_IN_SYS_IOCTL 1
25832 _ACEOF
25833
25834 fi
25835
25836 echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
25837 echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
25838 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
25839 echo $ECHO_N "(cached) $ECHO_C" >&6
25840 else
25841 cat >conftest.$ac_ext <<_ACEOF
25842 /* confdefs.h. */
25843 _ACEOF
25844 cat confdefs.h >>conftest.$ac_ext
25845 cat >>conftest.$ac_ext <<_ACEOF
25846 /* end confdefs.h. */
25847 #include <sys/types.h>
25848 #include <sys/ioctl.h>
25849 int
25850 main ()
25851 {
25852 int x = FIONREAD;
25853 ;
25854 return 0;
25855 }
25856 _ACEOF
25857 rm -f conftest.$ac_objext
25858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25859 (eval $ac_compile) 2>conftest.er1
25860 ac_status=$?
25861 grep -v '^ *+' conftest.er1 >conftest.err
25862 rm -f conftest.er1
25863 cat conftest.err >&5
25864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865 (exit $ac_status); } &&
25866 { ac_try='test -z "$ac_c_werror_flag"
25867 || test ! -s conftest.err'
25868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25869 (eval $ac_try) 2>&5
25870 ac_status=$?
25871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872 (exit $ac_status); }; } &&
25873 { ac_try='test -s conftest.$ac_objext'
25874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25875 (eval $ac_try) 2>&5
25876 ac_status=$?
25877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878 (exit $ac_status); }; }; then
25879 bash_cv_fionread_in_ioctl=yes
25880 else
25881 echo "$as_me: failed program was:" >&5
25882 sed 's/^/| /' conftest.$ac_ext >&5
25883
25884 bash_cv_fionread_in_ioctl=no
25885 fi
25886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25887 fi
25888
25889 echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
25890 echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
25891 if test $bash_cv_fionread_in_ioctl = yes; then
25892 cat >>confdefs.h <<\_ACEOF
25893 @%:@define FIONREAD_IN_SYS_IOCTL 1
25894 _ACEOF
25895
25896 fi
25897
25898
25899
25900 echo "$as_me:$LINENO: checking whether WCONTINUED flag to waitpid is unavailable or available but broken" >&5
25901 echo $ECHO_N "checking whether WCONTINUED flag to waitpid is unavailable or available but broken... $ECHO_C" >&6
25902 if test "${bash_cv_wcontinued_broken+set}" = set; then
25903 echo $ECHO_N "(cached) $ECHO_C" >&6
25904 else
25905 if test "$cross_compiling" = yes; then
25906 { echo "$as_me:$LINENO: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&5
25907 echo "$as_me: WARNING: cannot check WCONTINUED if cross compiling -- defaulting to no" >&2;}
25908 bash_cv_wcontinued_broken=no
25909
25910 else
25911 cat >conftest.$ac_ext <<_ACEOF
25912 /* confdefs.h. */
25913 _ACEOF
25914 cat confdefs.h >>conftest.$ac_ext
25915 cat >>conftest.$ac_ext <<_ACEOF
25916 /* end confdefs.h. */
25917
25918 #include <sys/types.h>
25919 #include <sys/wait.h>
25920 #include <unistd.h>
25921 #include <errno.h>
25922
25923 #ifndef errno
25924 extern int errno;
25925 #endif
25926 main()
25927 {
25928 int x;
25929
25930 x = waitpid(-1, (int *)0, WNOHANG|WCONTINUED);
25931 if (x == -1 && errno == EINVAL)
25932 exit (1);
25933 else
25934 exit (0);
25935 }
25936
25937 _ACEOF
25938 rm -f conftest$ac_exeext
25939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25940 (eval $ac_link) 2>&5
25941 ac_status=$?
25942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25945 (eval $ac_try) 2>&5
25946 ac_status=$?
25947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25948 (exit $ac_status); }; }; then
25949 bash_cv_wcontinued_broken=no
25950 else
25951 echo "$as_me: program exited with status $ac_status" >&5
25952 echo "$as_me: failed program was:" >&5
25953 sed 's/^/| /' conftest.$ac_ext >&5
25954
25955 ( exit $ac_status )
25956 bash_cv_wcontinued_broken=yes
25957 fi
25958 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25959 fi
25960 fi
25961
25962 echo "$as_me:$LINENO: result: $bash_cv_wcontinued_broken" >&5
25963 echo "${ECHO_T}$bash_cv_wcontinued_broken" >&6
25964 if test $bash_cv_wcontinued_broken = yes; then
25965 cat >>confdefs.h <<\_ACEOF
25966 @%:@define WCONTINUED_BROKEN 1
25967 _ACEOF
25968
25969 fi
25970
25971
25972 echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
25973 echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
25974 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
25975 echo $ECHO_N "(cached) $ECHO_C" >&6
25976 else
25977 cat >conftest.$ac_ext <<_ACEOF
25978 /* confdefs.h. */
25979 _ACEOF
25980 cat confdefs.h >>conftest.$ac_ext
25981 cat >>conftest.$ac_ext <<_ACEOF
25982 /* end confdefs.h. */
25983 #include <sys/types.h>
25984 int
25985 main ()
25986 {
25987 speed_t x;
25988 ;
25989 return 0;
25990 }
25991 _ACEOF
25992 rm -f conftest.$ac_objext
25993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25994 (eval $ac_compile) 2>conftest.er1
25995 ac_status=$?
25996 grep -v '^ *+' conftest.er1 >conftest.err
25997 rm -f conftest.er1
25998 cat conftest.err >&5
25999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000 (exit $ac_status); } &&
26001 { ac_try='test -z "$ac_c_werror_flag"
26002 || test ! -s conftest.err'
26003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26004 (eval $ac_try) 2>&5
26005 ac_status=$?
26006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007 (exit $ac_status); }; } &&
26008 { ac_try='test -s conftest.$ac_objext'
26009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26010 (eval $ac_try) 2>&5
26011 ac_status=$?
26012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013 (exit $ac_status); }; }; then
26014 bash_cv_speed_t_in_sys_types=yes
26015 else
26016 echo "$as_me: failed program was:" >&5
26017 sed 's/^/| /' conftest.$ac_ext >&5
26018
26019 bash_cv_speed_t_in_sys_types=no
26020 fi
26021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26022 fi
26023
26024 echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
26025 echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
26026 if test $bash_cv_speed_t_in_sys_types = yes; then
26027 cat >>confdefs.h <<\_ACEOF
26028 @%:@define SPEED_T_IN_SYS_TYPES 1
26029 _ACEOF
26030
26031 fi
26032
26033 echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
26034 echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
26035 if test "${bash_cv_getpw_declared+set}" = set; then
26036 echo $ECHO_N "(cached) $ECHO_C" >&6
26037 else
26038 cat >conftest.$ac_ext <<_ACEOF
26039 /* confdefs.h. */
26040 _ACEOF
26041 cat confdefs.h >>conftest.$ac_ext
26042 cat >>conftest.$ac_ext <<_ACEOF
26043 /* end confdefs.h. */
26044
26045 #include <sys/types.h>
26046 #ifdef HAVE_UNISTD_H
26047 # include <unistd.h>
26048 #endif
26049 #include <pwd.h>
26050
26051 _ACEOF
26052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26053 $EGREP "getpwuid" >/dev/null 2>&1; then
26054 bash_cv_getpw_declared=yes
26055 else
26056 bash_cv_getpw_declared=no
26057 fi
26058 rm -f conftest*
26059
26060 fi
26061
26062 echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
26063 echo "${ECHO_T}$bash_cv_getpw_declared" >&6
26064 if test $bash_cv_getpw_declared = yes; then
26065 cat >>confdefs.h <<\_ACEOF
26066 @%:@define HAVE_GETPW_DECLS 1
26067 _ACEOF
26068
26069 fi
26070
26071 echo "$as_me:$LINENO: checking for unusable real-time signals due to large values" >&5
26072 echo $ECHO_N "checking for unusable real-time signals due to large values... $ECHO_C" >&6
26073 if test "${bash_cv_unusable_rtsigs+set}" = set; then
26074 echo $ECHO_N "(cached) $ECHO_C" >&6
26075 else
26076 if test "$cross_compiling" = yes; then
26077 { echo "$as_me:$LINENO: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&5
26078 echo "$as_me: WARNING: cannot check real-time signals if cross compiling -- defaulting to yes" >&2;}
26079 bash_cv_unusable_rtsigs=yes
26080
26081 else
26082 cat >conftest.$ac_ext <<_ACEOF
26083 /* confdefs.h. */
26084 _ACEOF
26085 cat confdefs.h >>conftest.$ac_ext
26086 cat >>conftest.$ac_ext <<_ACEOF
26087 /* end confdefs.h. */
26088
26089 #include <sys/types.h>
26090 #include <signal.h>
26091
26092 #ifndef NSIG
26093 # define NSIG 64
26094 #endif
26095
26096 main ()
26097 {
26098 int n_sigs = 2 * NSIG;
26099 #ifdef SIGRTMIN
26100 int rtmin = SIGRTMIN;
26101 #else
26102 int rtmin = 0;
26103 #endif
26104
26105 exit(rtmin < n_sigs);
26106 }
26107 _ACEOF
26108 rm -f conftest$ac_exeext
26109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26110 (eval $ac_link) 2>&5
26111 ac_status=$?
26112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26113 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26115 (eval $ac_try) 2>&5
26116 ac_status=$?
26117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118 (exit $ac_status); }; }; then
26119 bash_cv_unusable_rtsigs=yes
26120 else
26121 echo "$as_me: program exited with status $ac_status" >&5
26122 echo "$as_me: failed program was:" >&5
26123 sed 's/^/| /' conftest.$ac_ext >&5
26124
26125 ( exit $ac_status )
26126 bash_cv_unusable_rtsigs=no
26127 fi
26128 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26129 fi
26130 fi
26131
26132 echo "$as_me:$LINENO: result: $bash_cv_unusable_rtsigs" >&5
26133 echo "${ECHO_T}$bash_cv_unusable_rtsigs" >&6
26134 if test $bash_cv_unusable_rtsigs = yes; then
26135 cat >>confdefs.h <<\_ACEOF
26136 @%:@define UNUSABLE_RT_SIGNALS 1
26137 _ACEOF
26138
26139 fi
26140
26141
26142
26143
26144
26145 if test "$bash_cv_sys_siglist" = no && test "$bash_cv_under_sys_siglist" = no && test "$bash_cv_have_strsignal" = no; then
26146 SIGLIST_O=siglist.o
26147 else
26148 SIGLIST_O=
26149 fi
26150
26151
26152
26153 case "$host_os" in
26154 hpux*) echo "$as_me:$LINENO: checking whether $host_os needs _KERNEL for RLIMIT defines" >&5
26155 echo $ECHO_N "checking whether $host_os needs _KERNEL for RLIMIT defines... $ECHO_C" >&6
26156 if test "${bash_cv_kernel_rlimit+set}" = set; then
26157 echo $ECHO_N "(cached) $ECHO_C" >&6
26158 else
26159 cat >conftest.$ac_ext <<_ACEOF
26160 /* confdefs.h. */
26161 _ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h. */
26165
26166 #include <sys/types.h>
26167 #include <sys/resource.h>
26168
26169 int
26170 main ()
26171 {
26172
26173 int f;
26174 f = RLIMIT_DATA;
26175
26176 ;
26177 return 0;
26178 }
26179 _ACEOF
26180 rm -f conftest.$ac_objext
26181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26182 (eval $ac_compile) 2>conftest.er1
26183 ac_status=$?
26184 grep -v '^ *+' conftest.er1 >conftest.err
26185 rm -f conftest.er1
26186 cat conftest.err >&5
26187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188 (exit $ac_status); } &&
26189 { ac_try='test -z "$ac_c_werror_flag"
26190 || test ! -s conftest.err'
26191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26192 (eval $ac_try) 2>&5
26193 ac_status=$?
26194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195 (exit $ac_status); }; } &&
26196 { ac_try='test -s conftest.$ac_objext'
26197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26198 (eval $ac_try) 2>&5
26199 ac_status=$?
26200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201 (exit $ac_status); }; }; then
26202 bash_cv_kernel_rlimit=no
26203 else
26204 echo "$as_me: failed program was:" >&5
26205 sed 's/^/| /' conftest.$ac_ext >&5
26206
26207 cat >conftest.$ac_ext <<_ACEOF
26208 /* confdefs.h. */
26209 _ACEOF
26210 cat confdefs.h >>conftest.$ac_ext
26211 cat >>conftest.$ac_ext <<_ACEOF
26212 /* end confdefs.h. */
26213
26214 #include <sys/types.h>
26215 #define _KERNEL
26216 #include <sys/resource.h>
26217 #undef _KERNEL
26218
26219 int
26220 main ()
26221 {
26222
26223 int f;
26224 f = RLIMIT_DATA;
26225
26226 ;
26227 return 0;
26228 }
26229 _ACEOF
26230 rm -f conftest.$ac_objext
26231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26232 (eval $ac_compile) 2>conftest.er1
26233 ac_status=$?
26234 grep -v '^ *+' conftest.er1 >conftest.err
26235 rm -f conftest.er1
26236 cat conftest.err >&5
26237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238 (exit $ac_status); } &&
26239 { ac_try='test -z "$ac_c_werror_flag"
26240 || test ! -s conftest.err'
26241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26242 (eval $ac_try) 2>&5
26243 ac_status=$?
26244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245 (exit $ac_status); }; } &&
26246 { ac_try='test -s conftest.$ac_objext'
26247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26248 (eval $ac_try) 2>&5
26249 ac_status=$?
26250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251 (exit $ac_status); }; }; then
26252 bash_cv_kernel_rlimit=yes
26253 else
26254 echo "$as_me: failed program was:" >&5
26255 sed 's/^/| /' conftest.$ac_ext >&5
26256
26257 bash_cv_kernel_rlimit=no
26258 fi
26259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26260
26261 fi
26262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26263 fi
26264
26265 echo "$as_me:$LINENO: result: $bash_cv_kernel_rlimit" >&5
26266 echo "${ECHO_T}$bash_cv_kernel_rlimit" >&6
26267 if test $bash_cv_kernel_rlimit = yes; then
26268 cat >>confdefs.h <<\_ACEOF
26269 @%:@define RLIMIT_NEEDS_KERNEL 1
26270 _ACEOF
26271
26272 fi
26273 ;;
26274 esac
26275
26276 if test "$opt_readline" = yes; then
26277 case "$host_os" in
26278 aix*) prefer_curses=yes ;;
26279 esac
26280
26281 if test "X$bash_cv_termcap_lib" = "X"; then
26282 _bash_needmsg=yes
26283 else
26284 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
26285 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
26286 _bash_needmsg=
26287 fi
26288 if test "${bash_cv_termcap_lib+set}" = set; then
26289 echo $ECHO_N "(cached) $ECHO_C" >&6
26290 else
26291 echo "$as_me:$LINENO: checking for tgetent" >&5
26292 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
26293 if test "${ac_cv_func_tgetent+set}" = set; then
26294 echo $ECHO_N "(cached) $ECHO_C" >&6
26295 else
26296 cat >conftest.$ac_ext <<_ACEOF
26297 /* confdefs.h. */
26298 _ACEOF
26299 cat confdefs.h >>conftest.$ac_ext
26300 cat >>conftest.$ac_ext <<_ACEOF
26301 /* end confdefs.h. */
26302 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
26303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26304 #define tgetent innocuous_tgetent
26305
26306 /* System header to define __stub macros and hopefully few prototypes,
26307 which can conflict with char tgetent (); below.
26308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26309 <limits.h> exists even on freestanding compilers. */
26310
26311 #ifdef __STDC__
26312 # include <limits.h>
26313 #else
26314 # include <assert.h>
26315 #endif
26316
26317 #undef tgetent
26318
26319 /* Override any gcc2 internal prototype to avoid an error. */
26320 #ifdef __cplusplus
26321 extern "C"
26322 {
26323 #endif
26324 /* We use char because int might match the return type of a gcc2
26325 builtin and then its argument prototype would still apply. */
26326 char tgetent ();
26327 /* The GNU C library defines this for functions which it implements
26328 to always fail with ENOSYS. Some functions are actually named
26329 something starting with __ and the normal name is an alias. */
26330 #if defined (__stub_tgetent) || defined (__stub___tgetent)
26331 choke me
26332 #else
26333 char (*f) () = tgetent;
26334 #endif
26335 #ifdef __cplusplus
26336 }
26337 #endif
26338
26339 int
26340 main ()
26341 {
26342 return f != tgetent;
26343 ;
26344 return 0;
26345 }
26346 _ACEOF
26347 rm -f conftest.$ac_objext conftest$ac_exeext
26348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26349 (eval $ac_link) 2>conftest.er1
26350 ac_status=$?
26351 grep -v '^ *+' conftest.er1 >conftest.err
26352 rm -f conftest.er1
26353 cat conftest.err >&5
26354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355 (exit $ac_status); } &&
26356 { ac_try='test -z "$ac_c_werror_flag"
26357 || test ! -s conftest.err'
26358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26359 (eval $ac_try) 2>&5
26360 ac_status=$?
26361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26362 (exit $ac_status); }; } &&
26363 { ac_try='test -s conftest$ac_exeext'
26364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26365 (eval $ac_try) 2>&5
26366 ac_status=$?
26367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368 (exit $ac_status); }; }; then
26369 ac_cv_func_tgetent=yes
26370 else
26371 echo "$as_me: failed program was:" >&5
26372 sed 's/^/| /' conftest.$ac_ext >&5
26373
26374 ac_cv_func_tgetent=no
26375 fi
26376 rm -f conftest.err conftest.$ac_objext \
26377 conftest$ac_exeext conftest.$ac_ext
26378 fi
26379 echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
26380 echo "${ECHO_T}$ac_cv_func_tgetent" >&6
26381 if test $ac_cv_func_tgetent = yes; then
26382 bash_cv_termcap_lib=libc
26383 else
26384 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
26385 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
26386 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
26387 echo $ECHO_N "(cached) $ECHO_C" >&6
26388 else
26389 ac_check_lib_save_LIBS=$LIBS
26390 LIBS="-ltermcap $LIBS"
26391 cat >conftest.$ac_ext <<_ACEOF
26392 /* confdefs.h. */
26393 _ACEOF
26394 cat confdefs.h >>conftest.$ac_ext
26395 cat >>conftest.$ac_ext <<_ACEOF
26396 /* end confdefs.h. */
26397
26398 /* Override any gcc2 internal prototype to avoid an error. */
26399 #ifdef __cplusplus
26400 extern "C"
26401 #endif
26402 /* We use char because int might match the return type of a gcc2
26403 builtin and then its argument prototype would still apply. */
26404 char tgetent ();
26405 int
26406 main ()
26407 {
26408 tgetent ();
26409 ;
26410 return 0;
26411 }
26412 _ACEOF
26413 rm -f conftest.$ac_objext conftest$ac_exeext
26414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26415 (eval $ac_link) 2>conftest.er1
26416 ac_status=$?
26417 grep -v '^ *+' conftest.er1 >conftest.err
26418 rm -f conftest.er1
26419 cat conftest.err >&5
26420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421 (exit $ac_status); } &&
26422 { ac_try='test -z "$ac_c_werror_flag"
26423 || test ! -s conftest.err'
26424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26425 (eval $ac_try) 2>&5
26426 ac_status=$?
26427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428 (exit $ac_status); }; } &&
26429 { ac_try='test -s conftest$ac_exeext'
26430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26431 (eval $ac_try) 2>&5
26432 ac_status=$?
26433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434 (exit $ac_status); }; }; then
26435 ac_cv_lib_termcap_tgetent=yes
26436 else
26437 echo "$as_me: failed program was:" >&5
26438 sed 's/^/| /' conftest.$ac_ext >&5
26439
26440 ac_cv_lib_termcap_tgetent=no
26441 fi
26442 rm -f conftest.err conftest.$ac_objext \
26443 conftest$ac_exeext conftest.$ac_ext
26444 LIBS=$ac_check_lib_save_LIBS
26445 fi
26446 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
26447 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
26448 if test $ac_cv_lib_termcap_tgetent = yes; then
26449 bash_cv_termcap_lib=libtermcap
26450 else
26451 echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
26452 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
26453 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
26454 echo $ECHO_N "(cached) $ECHO_C" >&6
26455 else
26456 ac_check_lib_save_LIBS=$LIBS
26457 LIBS="-ltinfo $LIBS"
26458 cat >conftest.$ac_ext <<_ACEOF
26459 /* confdefs.h. */
26460 _ACEOF
26461 cat confdefs.h >>conftest.$ac_ext
26462 cat >>conftest.$ac_ext <<_ACEOF
26463 /* end confdefs.h. */
26464
26465 /* Override any gcc2 internal prototype to avoid an error. */
26466 #ifdef __cplusplus
26467 extern "C"
26468 #endif
26469 /* We use char because int might match the return type of a gcc2
26470 builtin and then its argument prototype would still apply. */
26471 char tgetent ();
26472 int
26473 main ()
26474 {
26475 tgetent ();
26476 ;
26477 return 0;
26478 }
26479 _ACEOF
26480 rm -f conftest.$ac_objext conftest$ac_exeext
26481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26482 (eval $ac_link) 2>conftest.er1
26483 ac_status=$?
26484 grep -v '^ *+' conftest.er1 >conftest.err
26485 rm -f conftest.er1
26486 cat conftest.err >&5
26487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26488 (exit $ac_status); } &&
26489 { ac_try='test -z "$ac_c_werror_flag"
26490 || test ! -s conftest.err'
26491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26492 (eval $ac_try) 2>&5
26493 ac_status=$?
26494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26495 (exit $ac_status); }; } &&
26496 { ac_try='test -s conftest$ac_exeext'
26497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26498 (eval $ac_try) 2>&5
26499 ac_status=$?
26500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501 (exit $ac_status); }; }; then
26502 ac_cv_lib_tinfo_tgetent=yes
26503 else
26504 echo "$as_me: failed program was:" >&5
26505 sed 's/^/| /' conftest.$ac_ext >&5
26506
26507 ac_cv_lib_tinfo_tgetent=no
26508 fi
26509 rm -f conftest.err conftest.$ac_objext \
26510 conftest$ac_exeext conftest.$ac_ext
26511 LIBS=$ac_check_lib_save_LIBS
26512 fi
26513 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
26514 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
26515 if test $ac_cv_lib_tinfo_tgetent = yes; then
26516 bash_cv_termcap_lib=libtinfo
26517 else
26518 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
26519 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
26520 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
26521 echo $ECHO_N "(cached) $ECHO_C" >&6
26522 else
26523 ac_check_lib_save_LIBS=$LIBS
26524 LIBS="-lcurses $LIBS"
26525 cat >conftest.$ac_ext <<_ACEOF
26526 /* confdefs.h. */
26527 _ACEOF
26528 cat confdefs.h >>conftest.$ac_ext
26529 cat >>conftest.$ac_ext <<_ACEOF
26530 /* end confdefs.h. */
26531
26532 /* Override any gcc2 internal prototype to avoid an error. */
26533 #ifdef __cplusplus
26534 extern "C"
26535 #endif
26536 /* We use char because int might match the return type of a gcc2
26537 builtin and then its argument prototype would still apply. */
26538 char tgetent ();
26539 int
26540 main ()
26541 {
26542 tgetent ();
26543 ;
26544 return 0;
26545 }
26546 _ACEOF
26547 rm -f conftest.$ac_objext conftest$ac_exeext
26548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26549 (eval $ac_link) 2>conftest.er1
26550 ac_status=$?
26551 grep -v '^ *+' conftest.er1 >conftest.err
26552 rm -f conftest.er1
26553 cat conftest.err >&5
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); } &&
26556 { ac_try='test -z "$ac_c_werror_flag"
26557 || test ! -s conftest.err'
26558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26559 (eval $ac_try) 2>&5
26560 ac_status=$?
26561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562 (exit $ac_status); }; } &&
26563 { ac_try='test -s conftest$ac_exeext'
26564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26565 (eval $ac_try) 2>&5
26566 ac_status=$?
26567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26568 (exit $ac_status); }; }; then
26569 ac_cv_lib_curses_tgetent=yes
26570 else
26571 echo "$as_me: failed program was:" >&5
26572 sed 's/^/| /' conftest.$ac_ext >&5
26573
26574 ac_cv_lib_curses_tgetent=no
26575 fi
26576 rm -f conftest.err conftest.$ac_objext \
26577 conftest$ac_exeext conftest.$ac_ext
26578 LIBS=$ac_check_lib_save_LIBS
26579 fi
26580 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
26581 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
26582 if test $ac_cv_lib_curses_tgetent = yes; then
26583 bash_cv_termcap_lib=libcurses
26584 else
26585 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
26586 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
26587 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
26588 echo $ECHO_N "(cached) $ECHO_C" >&6
26589 else
26590 ac_check_lib_save_LIBS=$LIBS
26591 LIBS="-lncurses $LIBS"
26592 cat >conftest.$ac_ext <<_ACEOF
26593 /* confdefs.h. */
26594 _ACEOF
26595 cat confdefs.h >>conftest.$ac_ext
26596 cat >>conftest.$ac_ext <<_ACEOF
26597 /* end confdefs.h. */
26598
26599 /* Override any gcc2 internal prototype to avoid an error. */
26600 #ifdef __cplusplus
26601 extern "C"
26602 #endif
26603 /* We use char because int might match the return type of a gcc2
26604 builtin and then its argument prototype would still apply. */
26605 char tgetent ();
26606 int
26607 main ()
26608 {
26609 tgetent ();
26610 ;
26611 return 0;
26612 }
26613 _ACEOF
26614 rm -f conftest.$ac_objext conftest$ac_exeext
26615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26616 (eval $ac_link) 2>conftest.er1
26617 ac_status=$?
26618 grep -v '^ *+' conftest.er1 >conftest.err
26619 rm -f conftest.er1
26620 cat conftest.err >&5
26621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26622 (exit $ac_status); } &&
26623 { ac_try='test -z "$ac_c_werror_flag"
26624 || test ! -s conftest.err'
26625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26626 (eval $ac_try) 2>&5
26627 ac_status=$?
26628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26629 (exit $ac_status); }; } &&
26630 { ac_try='test -s conftest$ac_exeext'
26631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26632 (eval $ac_try) 2>&5
26633 ac_status=$?
26634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635 (exit $ac_status); }; }; then
26636 ac_cv_lib_ncurses_tgetent=yes
26637 else
26638 echo "$as_me: failed program was:" >&5
26639 sed 's/^/| /' conftest.$ac_ext >&5
26640
26641 ac_cv_lib_ncurses_tgetent=no
26642 fi
26643 rm -f conftest.err conftest.$ac_objext \
26644 conftest$ac_exeext conftest.$ac_ext
26645 LIBS=$ac_check_lib_save_LIBS
26646 fi
26647 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
26648 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
26649 if test $ac_cv_lib_ncurses_tgetent = yes; then
26650 bash_cv_termcap_lib=libncurses
26651 else
26652 bash_cv_termcap_lib=gnutermcap
26653 fi
26654
26655 fi
26656
26657 fi
26658
26659 fi
26660
26661 fi
26662
26663 fi
26664
26665 if test "X$_bash_needmsg" = "Xyes"; then
26666 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
26667 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
26668 fi
26669 echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
26670 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
26671 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
26672 LDFLAGS="$LDFLAGS -L./lib/termcap"
26673 TERMCAP_LIB="./lib/termcap/libtermcap.a"
26674 TERMCAP_DEP="./lib/termcap/libtermcap.a"
26675 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
26676 TERMCAP_LIB=-ltermcap
26677 TERMCAP_DEP=
26678 elif test $bash_cv_termcap_lib = libtinfo; then
26679 TERMCAP_LIB=-ltinfo
26680 TERMCAP_DEP=
26681 elif test $bash_cv_termcap_lib = libncurses; then
26682 TERMCAP_LIB=-lncurses
26683 TERMCAP_DEP=
26684 elif test $bash_cv_termcap_lib = libc; then
26685 TERMCAP_LIB=
26686 TERMCAP_DEP=
26687 else
26688 TERMCAP_LIB=-lcurses
26689 TERMCAP_DEP=
26690 fi
26691
26692 fi
26693
26694
26695
26696 echo "$as_me:$LINENO: checking whether /dev/fd is available" >&5
26697 echo $ECHO_N "checking whether /dev/fd is available... $ECHO_C" >&6
26698 if test "${bash_cv_dev_fd+set}" = set; then
26699 echo $ECHO_N "(cached) $ECHO_C" >&6
26700 else
26701 if test -d /dev/fd && test -r /dev/fd/0 < /dev/null; then
26702 # check for systems like FreeBSD 5 that only provide /dev/fd/[012]
26703 exec 3<&0
26704 if test -r /dev/fd/3; then
26705 bash_cv_dev_fd=standard
26706 else
26707 bash_cv_dev_fd=absent
26708 fi
26709 exec 3<&-
26710 elif test -d /proc/self/fd && test -r /proc/self/fd/0 < /dev/null; then
26711 bash_cv_dev_fd=whacky
26712 else
26713 bash_cv_dev_fd=absent
26714 fi
26715
26716 fi
26717
26718 echo "$as_me:$LINENO: result: $bash_cv_dev_fd" >&5
26719 echo "${ECHO_T}$bash_cv_dev_fd" >&6
26720 if test $bash_cv_dev_fd = "standard"; then
26721 cat >>confdefs.h <<\_ACEOF
26722 @%:@define HAVE_DEV_FD 1
26723 _ACEOF
26724
26725 cat >>confdefs.h <<\_ACEOF
26726 @%:@define DEV_FD_PREFIX "/dev/fd/"
26727 _ACEOF
26728
26729 elif test $bash_cv_dev_fd = "whacky"; then
26730 cat >>confdefs.h <<\_ACEOF
26731 @%:@define HAVE_DEV_FD 1
26732 _ACEOF
26733
26734 cat >>confdefs.h <<\_ACEOF
26735 @%:@define DEV_FD_PREFIX "/proc/self/fd/"
26736 _ACEOF
26737
26738 fi
26739
26740 echo "$as_me:$LINENO: checking whether /dev/stdin stdout stderr are available" >&5
26741 echo $ECHO_N "checking whether /dev/stdin stdout stderr are available... $ECHO_C" >&6
26742 if test "${bash_cv_dev_stdin+set}" = set; then
26743 echo $ECHO_N "(cached) $ECHO_C" >&6
26744 else
26745 if test -d /dev/fd && test -r /dev/stdin < /dev/null; then
26746 bash_cv_dev_stdin=present
26747 elif test -d /proc/self/fd && test -r /dev/stdin < /dev/null; then
26748 bash_cv_dev_stdin=present
26749 else
26750 bash_cv_dev_stdin=absent
26751 fi
26752
26753 fi
26754
26755 echo "$as_me:$LINENO: result: $bash_cv_dev_stdin" >&5
26756 echo "${ECHO_T}$bash_cv_dev_stdin" >&6
26757 if test $bash_cv_dev_stdin = "present"; then
26758 cat >>confdefs.h <<\_ACEOF
26759 @%:@define HAVE_DEV_STDIN 1
26760 _ACEOF
26761
26762 fi
26763
26764 echo "$as_me:$LINENO: checking for default mail directory" >&5
26765 echo $ECHO_N "checking for default mail directory... $ECHO_C" >&6
26766 if test "${bash_cv_mail_dir+set}" = set; then
26767 echo $ECHO_N "(cached) $ECHO_C" >&6
26768 else
26769 if test -d /var/mail; then
26770 bash_cv_mail_dir=/var/mail
26771 elif test -d /var/spool/mail; then
26772 bash_cv_mail_dir=/var/spool/mail
26773 elif test -d /usr/mail; then
26774 bash_cv_mail_dir=/usr/mail
26775 elif test -d /usr/spool/mail; then
26776 bash_cv_mail_dir=/usr/spool/mail
26777 else
26778 bash_cv_mail_dir=unknown
26779 fi
26780
26781 fi
26782
26783 echo "$as_me:$LINENO: result: $bash_cv_mail_dir" >&5
26784 echo "${ECHO_T}$bash_cv_mail_dir" >&6
26785 cat >>confdefs.h <<_ACEOF
26786 @%:@define DEFAULT_MAIL_DIRECTORY "$bash_cv_mail_dir"
26787 _ACEOF
26788
26789
26790
26791 if test "$bash_cv_job_control_missing" = missing; then
26792 opt_job_control=no
26793 fi
26794
26795 if test "$opt_job_control" = yes; then
26796 cat >>confdefs.h <<\_ACEOF
26797 @%:@define JOB_CONTROL 1
26798 _ACEOF
26799
26800 JOBS_O=jobs.o
26801 else
26802 JOBS_O=nojobs.o
26803 fi
26804
26805
26806
26807
26808 LOCAL_DEFS=-DSHELL
26809
26810
26811 case "${host_os}" in
26812 sysv4.2*) cat >>confdefs.h <<\_ACEOF
26813 @%:@define SVR4_2 1
26814 _ACEOF
26815
26816 cat >>confdefs.h <<\_ACEOF
26817 @%:@define SVR4 1
26818 _ACEOF
26819 ;;
26820 sysv4*) cat >>confdefs.h <<\_ACEOF
26821 @%:@define SVR4 1
26822 _ACEOF
26823 ;;
26824 sysv5*) cat >>confdefs.h <<\_ACEOF
26825 @%:@define SVR5 1
26826 _ACEOF
26827 ;;
26828 hpux9*) LOCAL_CFLAGS="-DHPUX9 -DHPUX" ;;
26829 hpux*) LOCAL_CFLAGS=-DHPUX ;;
26830 dgux*) LOCAL_CFLAGS=-D_DGUX_SOURCE; LOCAL_LIBS=-ldgc ;;
26831 isc*) LOCAL_CFLAGS=-Disc386 ;;
26832 rhapsody*) LOCAL_CFLAGS=-DRHAPSODY ;;
26833 darwin*) LOCAL_CFLAGS=-DMACOSX ;;
26834 sco3.2v5*) LOCAL_CFLAGS="-b elf -DWAITPID_BROKEN -DPATH_MAX=1024" ;;
26835 sco3.2v4*) LOCAL_CFLAGS="-DMUST_UNBLOCK_CHLD -DPATH_MAX=1024" ;;
26836 sco3.2*) LOCAL_CFLAGS=-DMUST_UNBLOCK_CHLD ;;
26837 sunos4*) LOCAL_CFLAGS=-DSunOS4 ;;
26838 solaris2.5*) LOCAL_CFLAGS=-DSunOS5 ;;
26839 lynxos*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
26840 linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
26841 case "`uname -r`" in
26842 2.[456789]*|3*) cat >>confdefs.h <<\_ACEOF
26843 @%:@define PGRP_PIPE 1
26844 _ACEOF
26845 ;;
26846 esac ;;
26847 *qnx6*) LOCAL_CFLAGS="-Dqnx -Dqnx6" LOCAL_LIBS="-lncurses" ;;
26848 *qnx*) LOCAL_CFLAGS="-Dqnx -F -3s" LOCAL_LDFLAGS="-3s" LOCAL_LIBS="-lunix -lncurses" ;;
26849 powerux*) LOCAL_LIBS="-lgen" ;;
26850 cygwin*) LOCAL_CFLAGS=-DRECYCLES_PIDS ;;
26851 opennt*|interix*) LOCAL_CFLAGS="-DNO_MAIN_ENV_ARG -DBROKEN_DIRENT_D_INO -D_POSIX_SOURCE" ;;
26852 esac
26853
26854 case "${host_os}-${CC}" in
26855 aix4.2*-*gcc*) LOCAL_LDFLAGS="-Xlinker -bexpall -Xlinker -brtl" ;;
26856 aix4.2*) LOCAL_LDFLAGS="-bexpall -brtl" ;;
26857 bsdi4*-*gcc*) LOCAL_LDFLAGS="-rdynamic" ;; # allow dynamic loading, like Linux
26858 esac
26859
26860 case "${host_os}" in
26861 freebsd[3-9]*)
26862 if test -x /usr/bin/objformat && test "`/usr/bin/objformat`" = "elf" ; then
26863 LOCAL_LDFLAGS=-rdynamic # allow dynamic loading
26864 fi ;;
26865 freebsdelf*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
26866 dragonfly*) LOCAL_LDFLAGS=-rdynamic ;; # allow dynamic loading
26867 esac
26868
26869 case "$host_cpu" in
26870 *cray*) LOCAL_CFLAGS="-DCRAY" ;; # shell var so config.h can use it
26871 esac
26872
26873 case "$host_cpu-$host_os" in
26874 ibmrt-*bsd4*) LOCAL_CFLAGS="-ma -U__STDC__" ;;
26875 esac
26876
26877 case "$host_cpu-$host_vendor-$host_os" in
26878 m88k-motorola-sysv3) LOCAL_CFLAGS=-DWAITPID_BROKEN ;;
26879 mips-pyramid-sysv4) LOCAL_CFLAGS=-Xa ;;
26880 esac
26881
26882 #
26883 # Shared object configuration section. These values are generated by
26884 # ${srcdir}/support/shobj-conf
26885 #
26886 if test "$ac_cv_func_dlopen" = "yes" && test -f ${srcdir}/support/shobj-conf
26887 then
26888 echo "$as_me:$LINENO: checking shared object configuration for loadable builtins" >&5
26889 echo $ECHO_N "checking shared object configuration for loadable builtins... $ECHO_C" >&6
26890 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c "${host_cpu}" -o "${host_os}" -v "${host_vendor}"`
26891
26892
26893
26894
26895
26896
26897
26898 echo "$as_me:$LINENO: result: $SHOBJ_STATUS" >&5
26899 echo "${ECHO_T}$SHOBJ_STATUS" >&6
26900 fi
26901
26902 # try to create a directory tree if the source is elsewhere
26903 # this should be packaged into a script accessible via ${srcdir}/support
26904 case "$srcdir" in
26905 .) ;;
26906 *) for d in doc tests support lib examples; do # dirs
26907 test -d $d || mkdir $d
26908 done
26909 for ld in readline glob tilde malloc sh termcap; do # libdirs
26910 test -d lib/$ld || mkdir lib/$ld
26911 done
26912 test -d examples/loadables || mkdir examples/loadables # loadable builtins
26913 test -d examples/loadables/perl || mkdir examples/loadables/perl
26914 ;;
26915 esac
26916
26917 BUILD_DIR=`pwd`
26918 case "$BUILD_DIR" in
26919 *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
26920 *) ;;
26921 esac
26922
26923
26924
26925
26926
26927
26928
26929
26930
26931
26932
26933
26934
26935
26936
26937
26938
26939
26940
26941
26942
26943
26944
26945
26946 #AC_SUBST(ALLOCA_SOURCE)
26947 #AC_SUBST(ALLOCA_OBJECT)
26948
26949 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"
26950 ac_config_commands="$ac_config_commands default"
26951 cat >confcache <<\_ACEOF
26952 # This file is a shell script that caches the results of configure
26953 # tests run on this system so they can be shared between configure
26954 # scripts and configure runs, see configure's option --config-cache.
26955 # It is not useful on other systems. If it contains results you don't
26956 # want to keep, you may remove or edit it.
26957 #
26958 # config.status only pays attention to the cache file if you give it
26959 # the --recheck option to rerun configure.
26960 #
26961 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26962 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26963 # following values.
26964
26965 _ACEOF
26966
26967 # The following way of writing the cache mishandles newlines in values,
26968 # but we know of no workaround that is simple, portable, and efficient.
26969 # So, don't put newlines in cache variables' values.
26970 # Ultrix sh set writes to stderr and can't be redirected directly,
26971 # and sets the high bit in the cache file unless we assign to the vars.
26972 {
26973 (set) 2>&1 |
26974 case `(ac_space=' '; set | grep ac_space) 2>&1` in
26975 *ac_space=\ *)
26976 # `set' does not quote correctly, so add quotes (double-quote
26977 # substitution turns \\\\ into \\, and sed turns \\ into \).
26978 sed -n \
26979 "s/'/'\\\\''/g;
26980 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26981 ;;
26982 *)
26983 # `set' quotes correctly as required by POSIX, so do not add quotes.
26984 sed -n \
26985 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26986 ;;
26987 esac;
26988 } |
26989 sed '
26990 t clear
26991 : clear
26992 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26993 t end
26994 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26995 : end' >>confcache
26996 if diff $cache_file confcache >/dev/null 2>&1; then :; else
26997 if test -w $cache_file; then
26998 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26999 cat confcache >$cache_file
27000 else
27001 echo "not updating unwritable cache $cache_file"
27002 fi
27003 fi
27004 rm -f confcache
27005
27006 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27007 # Let make expand exec_prefix.
27008 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27009
27010 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27011 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27012 # trailing colons and then remove the whole line if VPATH becomes empty
27013 # (actually we leave an empty line to preserve line numbers).
27014 if test "x$srcdir" = x.; then
27015 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27016 s/:*\$(srcdir):*/:/;
27017 s/:*\${srcdir}:*/:/;
27018 s/:*@srcdir@:*/:/;
27019 s/^\([^=]*=[ ]*\):*/\1/;
27020 s/:*$//;
27021 s/^[^=]*=[ ]*$//;
27022 }'
27023 fi
27024
27025 DEFS=-DHAVE_CONFIG_H
27026
27027 ac_libobjs=
27028 ac_ltlibobjs=
27029 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
27030 # 1. Remove the extension, and $U if already installed.
27031 ac_i=`echo "$ac_i" |
27032 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27033 # 2. Add them.
27034 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27035 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27036 done
27037 LIB@&t@OBJS=$ac_libobjs
27038
27039 LTLIBOBJS=$ac_ltlibobjs
27040
27041
27042
27043 : ${CONFIG_STATUS=./config.status}
27044 ac_clean_files_save=$ac_clean_files
27045 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27046 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27047 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27048 cat >$CONFIG_STATUS <<_ACEOF
27049 #! $SHELL
27050 # Generated by $as_me.
27051 # Run this file to recreate the current configuration.
27052 # Compiler output produced by configure, useful for debugging
27053 # configure, is in config.log if it exists.
27054
27055 debug=false
27056 ac_cs_recheck=false
27057 ac_cs_silent=false
27058 SHELL=\${CONFIG_SHELL-$SHELL}
27059 _ACEOF
27060
27061 cat >>$CONFIG_STATUS <<\_ACEOF
27062 ## --------------------- ##
27063 ## M4sh Initialization. ##
27064 ## --------------------- ##
27065
27066 # Be Bourne compatible
27067 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27068 emulate sh
27069 NULLCMD=:
27070 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27071 # is contrary to our usage. Disable this feature.
27072 alias -g '${1+"$@"}'='"$@"'
27073 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27074 set -o posix
27075 fi
27076 DUALCASE=1; export DUALCASE # for MKS sh
27077
27078 # Support unset when possible.
27079 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27080 as_unset=unset
27081 else
27082 as_unset=false
27083 fi
27084
27085
27086 # Work around bugs in pre-3.0 UWIN ksh.
27087 $as_unset ENV MAIL MAILPATH
27088 PS1='$ '
27089 PS2='> '
27090 PS4='+ '
27091
27092 # NLS nuisances.
27093 for as_var in \
27094 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27095 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27096 LC_TELEPHONE LC_TIME
27097 do
27098 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27099 eval $as_var=C; export $as_var
27100 else
27101 $as_unset $as_var
27102 fi
27103 done
27104
27105 # Required to use basename.
27106 if expr a : '\(a\)' >/dev/null 2>&1; then
27107 as_expr=expr
27108 else
27109 as_expr=false
27110 fi
27111
27112 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
27113 as_basename=basename
27114 else
27115 as_basename=false
27116 fi
27117
27118
27119 # Name of the executable.
27120 as_me=`$as_basename "$0" ||
27121 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27122 X"$0" : 'X\(//\)$' \| \
27123 X"$0" : 'X\(/\)$' \| \
27124 . : '\(.\)' 2>/dev/null ||
27125 echo X/"$0" |
27126 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
27127 /^X\/\(\/\/\)$/{ s//\1/; q; }
27128 /^X\/\(\/\).*/{ s//\1/; q; }
27129 s/.*/./; q'`
27130
27131
27132 # PATH needs CR, and LINENO needs CR and PATH.
27133 # Avoid depending upon Character Ranges.
27134 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27135 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27136 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27137 as_cr_digits='0123456789'
27138 as_cr_alnum=$as_cr_Letters$as_cr_digits
27139
27140 # The user is always right.
27141 if test "${PATH_SEPARATOR+set}" != set; then
27142 echo "#! /bin/sh" >conf$$.sh
27143 echo "exit 0" >>conf$$.sh
27144 chmod +x conf$$.sh
27145 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27146 PATH_SEPARATOR=';'
27147 else
27148 PATH_SEPARATOR=:
27149 fi
27150 rm -f conf$$.sh
27151 fi
27152
27153
27154 as_lineno_1=$LINENO
27155 as_lineno_2=$LINENO
27156 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27157 test "x$as_lineno_1" != "x$as_lineno_2" &&
27158 test "x$as_lineno_3" = "x$as_lineno_2" || {
27159 # Find who we are. Look in the path if we contain no path at all
27160 # relative or not.
27161 case $0 in
27162 *[\\/]* ) as_myself=$0 ;;
27163 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27164 for as_dir in $PATH
27165 do
27166 IFS=$as_save_IFS
27167 test -z "$as_dir" && as_dir=.
27168 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27169 done
27170
27171 ;;
27172 esac
27173 # We did not find ourselves, most probably we were run as `sh COMMAND'
27174 # in which case we are not to be found in the path.
27175 if test "x$as_myself" = x; then
27176 as_myself=$0
27177 fi
27178 if test ! -f "$as_myself"; then
27179 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
27180 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
27181 { (exit 1); exit 1; }; }
27182 fi
27183 case $CONFIG_SHELL in
27184 '')
27185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
27187 do
27188 IFS=$as_save_IFS
27189 test -z "$as_dir" && as_dir=.
27190 for as_base in sh bash ksh sh5; do
27191 case $as_dir in
27192 /*)
27193 if ("$as_dir/$as_base" -c '
27194 as_lineno_1=$LINENO
27195 as_lineno_2=$LINENO
27196 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27197 test "x$as_lineno_1" != "x$as_lineno_2" &&
27198 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
27199 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
27200 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
27201 CONFIG_SHELL=$as_dir/$as_base
27202 export CONFIG_SHELL
27203 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27204 fi;;
27205 esac
27206 done
27207 done
27208 ;;
27209 esac
27210
27211 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27212 # uniformly replaced by the line number. The first 'sed' inserts a
27213 # line-number line before each line; the second 'sed' does the real
27214 # work. The second script uses 'N' to pair each line-number line
27215 # with the numbered line, and appends trailing '-' during
27216 # substitution so that $LINENO is not a special case at line end.
27217 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27218 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
27219 sed '=' <$as_myself |
27220 sed '
27221 N
27222 s,$,-,
27223 : loop
27224 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
27225 t loop
27226 s,-$,,
27227 s,^['$as_cr_digits']*\n,,
27228 ' >$as_me.lineno &&
27229 chmod +x $as_me.lineno ||
27230 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
27231 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
27232 { (exit 1); exit 1; }; }
27233
27234 # Don't try to exec as it changes $[0], causing all sort of problems
27235 # (the dirname of $[0] is not the place where we might find the
27236 # original and so on. Autoconf is especially sensible to this).
27237 . ./$as_me.lineno
27238 # Exit status is that of the last command.
27239 exit
27240 }
27241
27242
27243 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
27244 *c*,-n*) ECHO_N= ECHO_C='
27245 ' ECHO_T=' ' ;;
27246 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
27247 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
27248 esac
27249
27250 if expr a : '\(a\)' >/dev/null 2>&1; then
27251 as_expr=expr
27252 else
27253 as_expr=false
27254 fi
27255
27256 rm -f conf$$ conf$$.exe conf$$.file
27257 echo >conf$$.file
27258 if ln -s conf$$.file conf$$ 2>/dev/null; then
27259 # We could just check for DJGPP; but this test a) works b) is more generic
27260 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27261 if test -f conf$$.exe; then
27262 # Don't use ln at all; we don't have any links
27263 as_ln_s='cp -p'
27264 else
27265 as_ln_s='ln -s'
27266 fi
27267 elif ln conf$$.file conf$$ 2>/dev/null; then
27268 as_ln_s=ln
27269 else
27270 as_ln_s='cp -p'
27271 fi
27272 rm -f conf$$ conf$$.exe conf$$.file
27273
27274 if mkdir -p . 2>/dev/null; then
27275 as_mkdir_p=:
27276 else
27277 test -d ./-p && rmdir ./-p
27278 as_mkdir_p=false
27279 fi
27280
27281 as_executable_p="test -f"
27282
27283 # Sed expression to map a string onto a valid CPP name.
27284 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27285
27286 # Sed expression to map a string onto a valid variable name.
27287 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27288
27289
27290 # IFS
27291 # We need space, tab and new line, in precisely that order.
27292 as_nl='
27293 '
27294 IFS=" $as_nl"
27295
27296 # CDPATH.
27297 $as_unset CDPATH
27298
27299 exec 6>&1
27300
27301 # Open the log real soon, to keep \$[0] and so on meaningful, and to
27302 # report actual input values of CONFIG_FILES etc. instead of their
27303 # values after options handling. Logging --version etc. is OK.
27304 exec 5>>config.log
27305 {
27306 echo
27307 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
27308 @%:@@%:@ Running $as_me. @%:@@%:@
27309 _ASBOX
27310 } >&5
27311 cat >&5 <<_CSEOF
27312
27313 This file was extended by bash $as_me 3.2-devel, which was
27314 generated by GNU Autoconf 2.59. Invocation command line was
27315
27316 CONFIG_FILES = $CONFIG_FILES
27317 CONFIG_HEADERS = $CONFIG_HEADERS
27318 CONFIG_LINKS = $CONFIG_LINKS
27319 CONFIG_COMMANDS = $CONFIG_COMMANDS
27320 $ $0 $@
27321
27322 _CSEOF
27323 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
27324 echo >&5
27325 _ACEOF
27326
27327 # Files that config.status was made for.
27328 if test -n "$ac_config_files"; then
27329 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27330 fi
27331
27332 if test -n "$ac_config_headers"; then
27333 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27334 fi
27335
27336 if test -n "$ac_config_links"; then
27337 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27338 fi
27339
27340 if test -n "$ac_config_commands"; then
27341 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27342 fi
27343
27344 cat >>$CONFIG_STATUS <<\_ACEOF
27345
27346 ac_cs_usage="\
27347 \`$as_me' instantiates files from templates according to the
27348 current configuration.
27349
27350 Usage: $0 [OPTIONS] [FILE]...
27351
27352 -h, --help print this help, then exit
27353 -V, --version print version number, then exit
27354 -q, --quiet do not print progress messages
27355 -d, --debug don't remove temporary files
27356 --recheck update $as_me by reconfiguring in the same conditions
27357 --file=FILE[:TEMPLATE]
27358 instantiate the configuration file FILE
27359 --header=FILE[:TEMPLATE]
27360 instantiate the configuration header FILE
27361
27362 Configuration files:
27363 $config_files
27364
27365 Configuration headers:
27366 $config_headers
27367
27368 Configuration commands:
27369 $config_commands
27370
27371 Report bugs to <bug-autoconf@gnu.org>."
27372 _ACEOF
27373
27374 cat >>$CONFIG_STATUS <<_ACEOF
27375 ac_cs_version="\\
27376 bash config.status 3.2-devel
27377 configured by $0, generated by GNU Autoconf 2.59,
27378 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
27379
27380 Copyright (C) 2003 Free Software Foundation, Inc.
27381 This config.status script is free software; the Free Software Foundation
27382 gives unlimited permission to copy, distribute and modify it."
27383 srcdir=$srcdir
27384 INSTALL="$INSTALL"
27385 _ACEOF
27386
27387 cat >>$CONFIG_STATUS <<\_ACEOF
27388 # If no file are specified by the user, then we need to provide default
27389 # value. By we need to know if files were specified by the user.
27390 ac_need_defaults=:
27391 while test $# != 0
27392 do
27393 case $1 in
27394 --*=*)
27395 ac_option=`expr "x$1" : 'x\([^=]*\)='`
27396 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
27397 ac_shift=:
27398 ;;
27399 -*)
27400 ac_option=$1
27401 ac_optarg=$2
27402 ac_shift=shift
27403 ;;
27404 *) # This is not an option, so the user has probably given explicit
27405 # arguments.
27406 ac_option=$1
27407 ac_need_defaults=false;;
27408 esac
27409
27410 case $ac_option in
27411 # Handling of the options.
27412 _ACEOF
27413 cat >>$CONFIG_STATUS <<\_ACEOF
27414 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27415 ac_cs_recheck=: ;;
27416 --version | --vers* | -V )
27417 echo "$ac_cs_version"; exit 0 ;;
27418 --he | --h)
27419 # Conflict between --help and --header
27420 { { echo "$as_me:$LINENO: error: ambiguous option: $1
27421 Try \`$0 --help' for more information." >&5
27422 echo "$as_me: error: ambiguous option: $1
27423 Try \`$0 --help' for more information." >&2;}
27424 { (exit 1); exit 1; }; };;
27425 --help | --hel | -h )
27426 echo "$ac_cs_usage"; exit 0 ;;
27427 --debug | --d* | -d )
27428 debug=: ;;
27429 --file | --fil | --fi | --f )
27430 $ac_shift
27431 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27432 ac_need_defaults=false;;
27433 --header | --heade | --head | --hea )
27434 $ac_shift
27435 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27436 ac_need_defaults=false;;
27437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27438 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27439 ac_cs_silent=: ;;
27440
27441 # This is an error.
27442 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
27443 Try \`$0 --help' for more information." >&5
27444 echo "$as_me: error: unrecognized option: $1
27445 Try \`$0 --help' for more information." >&2;}
27446 { (exit 1); exit 1; }; } ;;
27447
27448 *) ac_config_targets="$ac_config_targets $1" ;;
27449
27450 esac
27451 shift
27452 done
27453
27454 ac_configure_extra_args=
27455
27456 if $ac_cs_silent; then
27457 exec 6>/dev/null
27458 ac_configure_extra_args="$ac_configure_extra_args --silent"
27459 fi
27460
27461 _ACEOF
27462 cat >>$CONFIG_STATUS <<_ACEOF
27463 if \$ac_cs_recheck; then
27464 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27465 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27466 fi
27467
27468 _ACEOF
27469
27470 cat >>$CONFIG_STATUS <<_ACEOF
27471 #
27472 # INIT-COMMANDS section.
27473 #
27474
27475 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
27476 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
27477 # from automake.
27478 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
27479 # Capture the value of LINGUAS because we need it to compute CATALOGS.
27480 LINGUAS="${LINGUAS-%UNSET%}"
27481
27482
27483 _ACEOF
27484
27485
27486
27487 cat >>$CONFIG_STATUS <<\_ACEOF
27488 for ac_config_target in $ac_config_targets
27489 do
27490 case "$ac_config_target" in
27491 # Handling of arguments.
27492 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27493 "builtins/Makefile" ) CONFIG_FILES="$CONFIG_FILES builtins/Makefile" ;;
27494 "lib/readline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/readline/Makefile" ;;
27495 "lib/glob/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/glob/Makefile" ;;
27496 "lib/intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/intl/Makefile" ;;
27497 "lib/malloc/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/malloc/Makefile" ;;
27498 "lib/sh/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sh/Makefile" ;;
27499 "lib/termcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/termcap/Makefile" ;;
27500 "lib/tilde/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/tilde/Makefile" ;;
27501 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27502 "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
27503 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
27504 "examples/loadables/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/Makefile" ;;
27505 "examples/loadables/perl/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/loadables/perl/Makefile" ;;
27506 "pathnames.h" ) CONFIG_FILES="$CONFIG_FILES pathnames.h" ;;
27507 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27508 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27509 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27510 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27511 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27512 { (exit 1); exit 1; }; };;
27513 esac
27514 done
27515
27516 # If the user did not use the arguments to specify the items to instantiate,
27517 # then the envvar interface is used. Set only those that are not.
27518 # We use the long form for the default assignment because of an extremely
27519 # bizarre bug on SunOS 4.1.3.
27520 if $ac_need_defaults; then
27521 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27522 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27523 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27524 fi
27525
27526 # Have a temporary directory for convenience. Make it in the build tree
27527 # simply because there is no reason to put it here, and in addition,
27528 # creating and moving files from /tmp can sometimes cause problems.
27529 # Create a temporary directory, and hook for its removal unless debugging.
27530 $debug ||
27531 {
27532 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27533 trap '{ (exit 1); exit 1; }' 1 2 13 15
27534 }
27535
27536 # Create a (secure) tmp directory for tmp files.
27537
27538 {
27539 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
27540 test -n "$tmp" && test -d "$tmp"
27541 } ||
27542 {
27543 tmp=./confstat$$-$RANDOM
27544 (umask 077 && mkdir $tmp)
27545 } ||
27546 {
27547 echo "$me: cannot create a temporary directory in ." >&2
27548 { (exit 1); exit 1; }
27549 }
27550
27551 _ACEOF
27552
27553 cat >>$CONFIG_STATUS <<_ACEOF
27554
27555 #
27556 # CONFIG_FILES section.
27557 #
27558
27559 # No need to generate the scripts if there are no CONFIG_FILES.
27560 # This happens for instance when ./config.status config.h
27561 if test -n "\$CONFIG_FILES"; then
27562 # Protect against being on the right side of a sed subst in config.status.
27563 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27564 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27565 s,@SHELL@,$SHELL,;t t
27566 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27567 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27568 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27569 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27570 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27571 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27572 s,@exec_prefix@,$exec_prefix,;t t
27573 s,@prefix@,$prefix,;t t
27574 s,@program_transform_name@,$program_transform_name,;t t
27575 s,@bindir@,$bindir,;t t
27576 s,@sbindir@,$sbindir,;t t
27577 s,@libexecdir@,$libexecdir,;t t
27578 s,@datadir@,$datadir,;t t
27579 s,@sysconfdir@,$sysconfdir,;t t
27580 s,@sharedstatedir@,$sharedstatedir,;t t
27581 s,@localstatedir@,$localstatedir,;t t
27582 s,@libdir@,$libdir,;t t
27583 s,@includedir@,$includedir,;t t
27584 s,@oldincludedir@,$oldincludedir,;t t
27585 s,@infodir@,$infodir,;t t
27586 s,@mandir@,$mandir,;t t
27587 s,@build_alias@,$build_alias,;t t
27588 s,@host_alias@,$host_alias,;t t
27589 s,@target_alias@,$target_alias,;t t
27590 s,@DEFS@,$DEFS,;t t
27591 s,@ECHO_C@,$ECHO_C,;t t
27592 s,@ECHO_N@,$ECHO_N,;t t
27593 s,@ECHO_T@,$ECHO_T,;t t
27594 s,@LIBS@,$LIBS,;t t
27595 s,@build@,$build,;t t
27596 s,@build_cpu@,$build_cpu,;t t
27597 s,@build_vendor@,$build_vendor,;t t
27598 s,@build_os@,$build_os,;t t
27599 s,@host@,$host,;t t
27600 s,@host_cpu@,$host_cpu,;t t
27601 s,@host_vendor@,$host_vendor,;t t
27602 s,@host_os@,$host_os,;t t
27603 s,@EMACS@,$EMACS,;t t
27604 s,@lispdir@,$lispdir,;t t
27605 s,@DEBUGGER_START_FILE@,$DEBUGGER_START_FILE,;t t
27606 s,@TESTSCRIPT@,$TESTSCRIPT,;t t
27607 s,@PURIFY@,$PURIFY,;t t
27608 s,@MALLOC_TARGET@,$MALLOC_TARGET,;t t
27609 s,@MALLOC_SRC@,$MALLOC_SRC,;t t
27610 s,@MALLOC_LIB@,$MALLOC_LIB,;t t
27611 s,@MALLOC_LIBRARY@,$MALLOC_LIBRARY,;t t
27612 s,@MALLOC_LDFLAGS@,$MALLOC_LDFLAGS,;t t
27613 s,@MALLOC_DEP@,$MALLOC_DEP,;t t
27614 s,@htmldir@,$htmldir,;t t
27615 s,@HELPDIR@,$HELPDIR,;t t
27616 s,@HELPDIRDEFINE@,$HELPDIRDEFINE,;t t
27617 s,@HELPINSTALL@,$HELPINSTALL,;t t
27618 s,@HELPSTRINGS@,$HELPSTRINGS,;t t
27619 s,@CC@,$CC,;t t
27620 s,@CFLAGS@,$CFLAGS,;t t
27621 s,@LDFLAGS@,$LDFLAGS,;t t
27622 s,@CPPFLAGS@,$CPPFLAGS,;t t
27623 s,@ac_ct_CC@,$ac_ct_CC,;t t
27624 s,@EXEEXT@,$EXEEXT,;t t
27625 s,@OBJEXT@,$OBJEXT,;t t
27626 s,@CPP@,$CPP,;t t
27627 s,@EGREP@,$EGREP,;t t
27628 s,@CROSS_COMPILE@,$CROSS_COMPILE,;t t
27629 s,@SIGNAMES_H@,$SIGNAMES_H,;t t
27630 s,@SIGNAMES_O@,$SIGNAMES_O,;t t
27631 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
27632 s,@STATIC_LD@,$STATIC_LD,;t t
27633 s,@CFLAGS_FOR_BUILD@,$CFLAGS_FOR_BUILD,;t t
27634 s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
27635 s,@LDFLAGS_FOR_BUILD@,$LDFLAGS_FOR_BUILD,;t t
27636 s,@RL_VERSION@,$RL_VERSION,;t t
27637 s,@RL_MAJOR@,$RL_MAJOR,;t t
27638 s,@RL_MINOR@,$RL_MINOR,;t t
27639 s,@READLINE_LIB@,$READLINE_LIB,;t t
27640 s,@READLINE_DEP@,$READLINE_DEP,;t t
27641 s,@RL_LIBDIR@,$RL_LIBDIR,;t t
27642 s,@RL_INCLUDEDIR@,$RL_INCLUDEDIR,;t t
27643 s,@RL_INCLUDE@,$RL_INCLUDE,;t t
27644 s,@HISTORY_LIB@,$HISTORY_LIB,;t t
27645 s,@HISTORY_DEP@,$HISTORY_DEP,;t t
27646 s,@HIST_LIBDIR@,$HIST_LIBDIR,;t t
27647 s,@TILDE_LIB@,$TILDE_LIB,;t t
27648 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27649 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27650 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27651 s,@AR@,$AR,;t t
27652 s,@RANLIB@,$RANLIB,;t t
27653 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27654 s,@YACC@,$YACC,;t t
27655 s,@SET_MAKE@,$SET_MAKE,;t t
27656 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
27657 s,@SIZE@,$SIZE,;t t
27658 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
27659 s,@USE_NLS@,$USE_NLS,;t t
27660 s,@MSGFMT@,$MSGFMT,;t t
27661 s,@GMSGFMT@,$GMSGFMT,;t t
27662 s,@XGETTEXT@,$XGETTEXT,;t t
27663 s,@MSGMERGE@,$MSGMERGE,;t t
27664 s,@ALLOCA@,$ALLOCA,;t t
27665 s,@GLIBC21@,$GLIBC21,;t t
27666 s,@LIBICONV@,$LIBICONV,;t t
27667 s,@LTLIBICONV@,$LTLIBICONV,;t t
27668 s,@INTLBISON@,$INTLBISON,;t t
27669 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
27670 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
27671 s,@CATOBJEXT@,$CATOBJEXT,;t t
27672 s,@DATADIRNAME@,$DATADIRNAME,;t t
27673 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
27674 s,@GENCAT@,$GENCAT,;t t
27675 s,@INTLOBJS@,$INTLOBJS,;t t
27676 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
27677 s,@INTLLIBS@,$INTLLIBS,;t t
27678 s,@LIBINTL@,$LIBINTL,;t t
27679 s,@LTLIBINTL@,$LTLIBINTL,;t t
27680 s,@POSUB@,$POSUB,;t t
27681 s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
27682 s,@INTL_DEP@,$INTL_DEP,;t t
27683 s,@INTL_INC@,$INTL_INC,;t t
27684 s,@LIBINTL_H@,$LIBINTL_H,;t t
27685 s,@SIGLIST_O@,$SIGLIST_O,;t t
27686 s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
27687 s,@TERMCAP_DEP@,$TERMCAP_DEP,;t t
27688 s,@JOBS_O@,$JOBS_O,;t t
27689 s,@SHOBJ_CC@,$SHOBJ_CC,;t t
27690 s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
27691 s,@SHOBJ_LD@,$SHOBJ_LD,;t t
27692 s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
27693 s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
27694 s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
27695 s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
27696 s,@PROFILE_FLAGS@,$PROFILE_FLAGS,;t t
27697 s,@incdir@,$incdir,;t t
27698 s,@BUILD_DIR@,$BUILD_DIR,;t t
27699 s,@ARFLAGS@,$ARFLAGS,;t t
27700 s,@BASHVERS@,$BASHVERS,;t t
27701 s,@RELSTATUS@,$RELSTATUS,;t t
27702 s,@DEBUG@,$DEBUG,;t t
27703 s,@MALLOC_DEBUG@,$MALLOC_DEBUG,;t t
27704 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
27705 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
27706 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
27707 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
27708 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
27709 CEOF
27710
27711 _ACEOF
27712
27713 cat >>$CONFIG_STATUS <<\_ACEOF
27714 # Split the substitutions into bite-sized pieces for seds with
27715 # small command number limits, like on Digital OSF/1 and HP-UX.
27716 ac_max_sed_lines=48
27717 ac_sed_frag=1 # Number of current file.
27718 ac_beg=1 # First line for current file.
27719 ac_end=$ac_max_sed_lines # Line after last line for current file.
27720 ac_more_lines=:
27721 ac_sed_cmds=
27722 while $ac_more_lines; do
27723 if test $ac_beg -gt 1; then
27724 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27725 else
27726 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27727 fi
27728 if test ! -s $tmp/subs.frag; then
27729 ac_more_lines=false
27730 else
27731 # The purpose of the label and of the branching condition is to
27732 # speed up the sed processing (if there are no `@' at all, there
27733 # is no need to browse any of the substitutions).
27734 # These are the two extra sed commands mentioned above.
27735 (echo ':t
27736 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27737 if test -z "$ac_sed_cmds"; then
27738 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27739 else
27740 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27741 fi
27742 ac_sed_frag=`expr $ac_sed_frag + 1`
27743 ac_beg=$ac_end
27744 ac_end=`expr $ac_end + $ac_max_sed_lines`
27745 fi
27746 done
27747 if test -z "$ac_sed_cmds"; then
27748 ac_sed_cmds=cat
27749 fi
27750 fi # test -n "$CONFIG_FILES"
27751
27752 _ACEOF
27753 cat >>$CONFIG_STATUS <<\_ACEOF
27754 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27755 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27756 case $ac_file in
27757 - | *:- | *:-:* ) # input from stdin
27758 cat >$tmp/stdin
27759 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27760 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27761 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27762 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27763 * ) ac_file_in=$ac_file.in ;;
27764 esac
27765
27766 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27767 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27768 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27769 X"$ac_file" : 'X\(//\)[^/]' \| \
27770 X"$ac_file" : 'X\(//\)$' \| \
27771 X"$ac_file" : 'X\(/\)' \| \
27772 . : '\(.\)' 2>/dev/null ||
27773 echo X"$ac_file" |
27774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27775 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27776 /^X\(\/\/\)$/{ s//\1/; q; }
27777 /^X\(\/\).*/{ s//\1/; q; }
27778 s/.*/./; q'`
27779 { if $as_mkdir_p; then
27780 mkdir -p "$ac_dir"
27781 else
27782 as_dir="$ac_dir"
27783 as_dirs=
27784 while test ! -d "$as_dir"; do
27785 as_dirs="$as_dir $as_dirs"
27786 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27787 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27788 X"$as_dir" : 'X\(//\)[^/]' \| \
27789 X"$as_dir" : 'X\(//\)$' \| \
27790 X"$as_dir" : 'X\(/\)' \| \
27791 . : '\(.\)' 2>/dev/null ||
27792 echo X"$as_dir" |
27793 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27794 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27795 /^X\(\/\/\)$/{ s//\1/; q; }
27796 /^X\(\/\).*/{ s//\1/; q; }
27797 s/.*/./; q'`
27798 done
27799 test ! -n "$as_dirs" || mkdir $as_dirs
27800 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27801 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27802 { (exit 1); exit 1; }; }; }
27803
27804 ac_builddir=.
27805
27806 if test "$ac_dir" != .; then
27807 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27808 # A "../" for each directory in $ac_dir_suffix.
27809 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27810 else
27811 ac_dir_suffix= ac_top_builddir=
27812 fi
27813
27814 case $srcdir in
27815 .) # No --srcdir option. We are building in place.
27816 ac_srcdir=.
27817 if test -z "$ac_top_builddir"; then
27818 ac_top_srcdir=.
27819 else
27820 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27821 fi ;;
27822 [\\/]* | ?:[\\/]* ) # Absolute path.
27823 ac_srcdir=$srcdir$ac_dir_suffix;
27824 ac_top_srcdir=$srcdir ;;
27825 *) # Relative path.
27826 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27827 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27828 esac
27829
27830 # Do not use `cd foo && pwd` to compute absolute paths, because
27831 # the directories may not exist.
27832 case `pwd` in
27833 .) ac_abs_builddir="$ac_dir";;
27834 *)
27835 case "$ac_dir" in
27836 .) ac_abs_builddir=`pwd`;;
27837 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27838 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27839 esac;;
27840 esac
27841 case $ac_abs_builddir in
27842 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27843 *)
27844 case ${ac_top_builddir}. in
27845 .) ac_abs_top_builddir=$ac_abs_builddir;;
27846 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27847 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27848 esac;;
27849 esac
27850 case $ac_abs_builddir in
27851 .) ac_abs_srcdir=$ac_srcdir;;
27852 *)
27853 case $ac_srcdir in
27854 .) ac_abs_srcdir=$ac_abs_builddir;;
27855 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27856 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27857 esac;;
27858 esac
27859 case $ac_abs_builddir in
27860 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27861 *)
27862 case $ac_top_srcdir in
27863 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27864 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27865 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27866 esac;;
27867 esac
27868
27869
27870 case $INSTALL in
27871 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27872 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27873 esac
27874
27875 if test x"$ac_file" != x-; then
27876 { echo "$as_me:$LINENO: creating $ac_file" >&5
27877 echo "$as_me: creating $ac_file" >&6;}
27878 rm -f "$ac_file"
27879 fi
27880 # Let's still pretend it is `configure' which instantiates (i.e., don't
27881 # use $as_me), people would be surprised to read:
27882 # /* config.h. Generated by config.status. */
27883 if test x"$ac_file" = x-; then
27884 configure_input=
27885 else
27886 configure_input="$ac_file. "
27887 fi
27888 configure_input=$configure_input"Generated from `echo $ac_file_in |
27889 sed 's,.*/,,'` by configure."
27890
27891 # First look for the input files in the build tree, otherwise in the
27892 # src tree.
27893 ac_file_inputs=`IFS=:
27894 for f in $ac_file_in; do
27895 case $f in
27896 -) echo $tmp/stdin ;;
27897 [\\/$]*)
27898 # Absolute (can't be DOS-style, as IFS=:)
27899 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27900 echo "$as_me: error: cannot find input file: $f" >&2;}
27901 { (exit 1); exit 1; }; }
27902 echo "$f";;
27903 *) # Relative
27904 if test -f "$f"; then
27905 # Build tree
27906 echo "$f"
27907 elif test -f "$srcdir/$f"; then
27908 # Source tree
27909 echo "$srcdir/$f"
27910 else
27911 # /dev/null tree
27912 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27913 echo "$as_me: error: cannot find input file: $f" >&2;}
27914 { (exit 1); exit 1; }; }
27915 fi;;
27916 esac
27917 done` || { (exit 1); exit 1; }
27918 _ACEOF
27919 cat >>$CONFIG_STATUS <<_ACEOF
27920 sed "$ac_vpsub
27921 $extrasub
27922 _ACEOF
27923 cat >>$CONFIG_STATUS <<\_ACEOF
27924 :t
27925 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27926 s,@configure_input@,$configure_input,;t t
27927 s,@srcdir@,$ac_srcdir,;t t
27928 s,@abs_srcdir@,$ac_abs_srcdir,;t t
27929 s,@top_srcdir@,$ac_top_srcdir,;t t
27930 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27931 s,@builddir@,$ac_builddir,;t t
27932 s,@abs_builddir@,$ac_abs_builddir,;t t
27933 s,@top_builddir@,$ac_top_builddir,;t t
27934 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27935 s,@INSTALL@,$ac_INSTALL,;t t
27936 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27937 rm -f $tmp/stdin
27938 if test x"$ac_file" != x-; then
27939 mv $tmp/out $ac_file
27940 else
27941 cat $tmp/out
27942 rm -f $tmp/out
27943 fi
27944
27945 done
27946 _ACEOF
27947 cat >>$CONFIG_STATUS <<\_ACEOF
27948
27949 #
27950 # CONFIG_HEADER section.
27951 #
27952
27953 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27954 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27955 #
27956 # ac_d sets the value in "#define NAME VALUE" lines.
27957 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27958 ac_dB='[ ].*$,\1#\2'
27959 ac_dC=' '
27960 ac_dD=',;t'
27961 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27962 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27963 ac_uB='$,\1#\2define\3'
27964 ac_uC=' '
27965 ac_uD=',;t'
27966
27967 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27968 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27969 case $ac_file in
27970 - | *:- | *:-:* ) # input from stdin
27971 cat >$tmp/stdin
27972 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27973 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27974 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27975 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27976 * ) ac_file_in=$ac_file.in ;;
27977 esac
27978
27979 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27980 echo "$as_me: creating $ac_file" >&6;}
27981
27982 # First look for the input files in the build tree, otherwise in the
27983 # src tree.
27984 ac_file_inputs=`IFS=:
27985 for f in $ac_file_in; do
27986 case $f in
27987 -) echo $tmp/stdin ;;
27988 [\\/$]*)
27989 # Absolute (can't be DOS-style, as IFS=:)
27990 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27991 echo "$as_me: error: cannot find input file: $f" >&2;}
27992 { (exit 1); exit 1; }; }
27993 # Do quote $f, to prevent DOS paths from being IFS'd.
27994 echo "$f";;
27995 *) # Relative
27996 if test -f "$f"; then
27997 # Build tree
27998 echo "$f"
27999 elif test -f "$srcdir/$f"; then
28000 # Source tree
28001 echo "$srcdir/$f"
28002 else
28003 # /dev/null tree
28004 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28005 echo "$as_me: error: cannot find input file: $f" >&2;}
28006 { (exit 1); exit 1; }; }
28007 fi;;
28008 esac
28009 done` || { (exit 1); exit 1; }
28010 # Remove the trailing spaces.
28011 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
28012
28013 _ACEOF
28014
28015 # Transform confdefs.h into two sed scripts, `conftest.defines' and
28016 # `conftest.undefs', that substitutes the proper values into
28017 # config.h.in to produce config.h. The first handles `#define'
28018 # templates, and the second `#undef' templates.
28019 # And first: Protect against being on the right side of a sed subst in
28020 # config.status. Protect against being in an unquoted here document
28021 # in config.status.
28022 rm -f conftest.defines conftest.undefs
28023 # Using a here document instead of a string reduces the quoting nightmare.
28024 # Putting comments in sed scripts is not portable.
28025 #
28026 # `end' is used to avoid that the second main sed command (meant for
28027 # 0-ary CPP macros) applies to n-ary macro definitions.
28028 # See the Autoconf documentation for `clear'.
28029 cat >confdef2sed.sed <<\_ACEOF
28030 s/[\\&,]/\\&/g
28031 s,[\\$`],\\&,g
28032 t clear
28033 : clear
28034 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
28035 t end
28036 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
28037 : end
28038 _ACEOF
28039 # If some macros were called several times there might be several times
28040 # the same #defines, which is useless. Nevertheless, we may not want to
28041 # sort them, since we want the *last* AC-DEFINE to be honored.
28042 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
28043 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
28044 rm -f confdef2sed.sed
28045
28046 # This sed command replaces #undef with comments. This is necessary, for
28047 # example, in the case of _POSIX_SOURCE, which is predefined and required
28048 # on some systems where configure will not decide to define it.
28049 cat >>conftest.undefs <<\_ACEOF
28050 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
28051 _ACEOF
28052
28053 # Break up conftest.defines because some shells have a limit on the size
28054 # of here documents, and old seds have small limits too (100 cmds).
28055 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
28056 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
28057 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
28058 echo ' :' >>$CONFIG_STATUS
28059 rm -f conftest.tail
28060 while grep . conftest.defines >/dev/null
28061 do
28062 # Write a limited-size here document to $tmp/defines.sed.
28063 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
28064 # Speed up: don't consider the non `#define' lines.
28065 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
28066 # Work around the forget-to-reset-the-flag bug.
28067 echo 't clr' >>$CONFIG_STATUS
28068 echo ': clr' >>$CONFIG_STATUS
28069 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
28070 echo 'CEOF
28071 sed -f $tmp/defines.sed $tmp/in >$tmp/out
28072 rm -f $tmp/in
28073 mv $tmp/out $tmp/in
28074 ' >>$CONFIG_STATUS
28075 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
28076 rm -f conftest.defines
28077 mv conftest.tail conftest.defines
28078 done
28079 rm -f conftest.defines
28080 echo ' fi # grep' >>$CONFIG_STATUS
28081 echo >>$CONFIG_STATUS
28082
28083 # Break up conftest.undefs because some shells have a limit on the size
28084 # of here documents, and old seds have small limits too (100 cmds).
28085 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
28086 rm -f conftest.tail
28087 while grep . conftest.undefs >/dev/null
28088 do
28089 # Write a limited-size here document to $tmp/undefs.sed.
28090 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
28091 # Speed up: don't consider the non `#undef'
28092 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
28093 # Work around the forget-to-reset-the-flag bug.
28094 echo 't clr' >>$CONFIG_STATUS
28095 echo ': clr' >>$CONFIG_STATUS
28096 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
28097 echo 'CEOF
28098 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
28099 rm -f $tmp/in
28100 mv $tmp/out $tmp/in
28101 ' >>$CONFIG_STATUS
28102 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
28103 rm -f conftest.undefs
28104 mv conftest.tail conftest.undefs
28105 done
28106 rm -f conftest.undefs
28107
28108 cat >>$CONFIG_STATUS <<\_ACEOF
28109 # Let's still pretend it is `configure' which instantiates (i.e., don't
28110 # use $as_me), people would be surprised to read:
28111 # /* config.h. Generated by config.status. */
28112 if test x"$ac_file" = x-; then
28113 echo "/* Generated by configure. */" >$tmp/config.h
28114 else
28115 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
28116 fi
28117 cat $tmp/in >>$tmp/config.h
28118 rm -f $tmp/in
28119 if test x"$ac_file" != x-; then
28120 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
28121 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28122 echo "$as_me: $ac_file is unchanged" >&6;}
28123 else
28124 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28125 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28126 X"$ac_file" : 'X\(//\)[^/]' \| \
28127 X"$ac_file" : 'X\(//\)$' \| \
28128 X"$ac_file" : 'X\(/\)' \| \
28129 . : '\(.\)' 2>/dev/null ||
28130 echo X"$ac_file" |
28131 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28132 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28133 /^X\(\/\/\)$/{ s//\1/; q; }
28134 /^X\(\/\).*/{ s//\1/; q; }
28135 s/.*/./; q'`
28136 { if $as_mkdir_p; then
28137 mkdir -p "$ac_dir"
28138 else
28139 as_dir="$ac_dir"
28140 as_dirs=
28141 while test ! -d "$as_dir"; do
28142 as_dirs="$as_dir $as_dirs"
28143 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28144 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28145 X"$as_dir" : 'X\(//\)[^/]' \| \
28146 X"$as_dir" : 'X\(//\)$' \| \
28147 X"$as_dir" : 'X\(/\)' \| \
28148 . : '\(.\)' 2>/dev/null ||
28149 echo X"$as_dir" |
28150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28151 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28152 /^X\(\/\/\)$/{ s//\1/; q; }
28153 /^X\(\/\).*/{ s//\1/; q; }
28154 s/.*/./; q'`
28155 done
28156 test ! -n "$as_dirs" || mkdir $as_dirs
28157 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28158 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28159 { (exit 1); exit 1; }; }; }
28160
28161 rm -f $ac_file
28162 mv $tmp/config.h $ac_file
28163 fi
28164 else
28165 cat $tmp/config.h
28166 rm -f $tmp/config.h
28167 fi
28168 done
28169 _ACEOF
28170 cat >>$CONFIG_STATUS <<\_ACEOF
28171
28172 #
28173 # CONFIG_COMMANDS section.
28174 #
28175 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28176 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28177 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28178 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28179 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28180 X"$ac_dest" : 'X\(//\)[^/]' \| \
28181 X"$ac_dest" : 'X\(//\)$' \| \
28182 X"$ac_dest" : 'X\(/\)' \| \
28183 . : '\(.\)' 2>/dev/null ||
28184 echo X"$ac_dest" |
28185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28186 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28187 /^X\(\/\/\)$/{ s//\1/; q; }
28188 /^X\(\/\).*/{ s//\1/; q; }
28189 s/.*/./; q'`
28190 { if $as_mkdir_p; then
28191 mkdir -p "$ac_dir"
28192 else
28193 as_dir="$ac_dir"
28194 as_dirs=
28195 while test ! -d "$as_dir"; do
28196 as_dirs="$as_dir $as_dirs"
28197 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28198 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28199 X"$as_dir" : 'X\(//\)[^/]' \| \
28200 X"$as_dir" : 'X\(//\)$' \| \
28201 X"$as_dir" : 'X\(/\)' \| \
28202 . : '\(.\)' 2>/dev/null ||
28203 echo X"$as_dir" |
28204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28205 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28206 /^X\(\/\/\)$/{ s//\1/; q; }
28207 /^X\(\/\).*/{ s//\1/; q; }
28208 s/.*/./; q'`
28209 done
28210 test ! -n "$as_dirs" || mkdir $as_dirs
28211 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28212 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28213 { (exit 1); exit 1; }; }; }
28214
28215 ac_builddir=.
28216
28217 if test "$ac_dir" != .; then
28218 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28219 # A "../" for each directory in $ac_dir_suffix.
28220 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28221 else
28222 ac_dir_suffix= ac_top_builddir=
28223 fi
28224
28225 case $srcdir in
28226 .) # No --srcdir option. We are building in place.
28227 ac_srcdir=.
28228 if test -z "$ac_top_builddir"; then
28229 ac_top_srcdir=.
28230 else
28231 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28232 fi ;;
28233 [\\/]* | ?:[\\/]* ) # Absolute path.
28234 ac_srcdir=$srcdir$ac_dir_suffix;
28235 ac_top_srcdir=$srcdir ;;
28236 *) # Relative path.
28237 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28238 ac_top_srcdir=$ac_top_builddir$srcdir ;;
28239 esac
28240
28241 # Do not use `cd foo && pwd` to compute absolute paths, because
28242 # the directories may not exist.
28243 case `pwd` in
28244 .) ac_abs_builddir="$ac_dir";;
28245 *)
28246 case "$ac_dir" in
28247 .) ac_abs_builddir=`pwd`;;
28248 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28249 *) ac_abs_builddir=`pwd`/"$ac_dir";;
28250 esac;;
28251 esac
28252 case $ac_abs_builddir in
28253 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28254 *)
28255 case ${ac_top_builddir}. in
28256 .) ac_abs_top_builddir=$ac_abs_builddir;;
28257 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28258 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28259 esac;;
28260 esac
28261 case $ac_abs_builddir in
28262 .) ac_abs_srcdir=$ac_srcdir;;
28263 *)
28264 case $ac_srcdir in
28265 .) ac_abs_srcdir=$ac_abs_builddir;;
28266 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28267 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28268 esac;;
28269 esac
28270 case $ac_abs_builddir in
28271 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28272 *)
28273 case $ac_top_srcdir in
28274 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28275 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28276 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28277 esac;;
28278 esac
28279
28280
28281 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28282 echo "$as_me: executing $ac_dest commands" >&6;}
28283 case $ac_dest in
28284 default-1 )
28285 for ac_file in $CONFIG_FILES; do
28286 # Support "outfile[:infile[:infile...]]"
28287 case "$ac_file" in
28288 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
28289 esac
28290 # PO directories have a Makefile.in generated from Makefile.in.in.
28291 case "$ac_file" in */Makefile.in)
28292 # Adjust a relative srcdir.
28293 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
28294 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
28295 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
28296 # In autoconf-2.13 it is called $ac_given_srcdir.
28297 # In autoconf-2.50 it is called $srcdir.
28298 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
28299 case "$ac_given_srcdir" in
28300 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
28301 /*) top_srcdir="$ac_given_srcdir" ;;
28302 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
28303 esac
28304 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
28305 rm -f "$ac_dir/POTFILES"
28306 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
28307 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
28308 POMAKEFILEDEPS="POTFILES.in"
28309 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
28310 # on $ac_dir but don't depend on user-specified configuration
28311 # parameters.
28312 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
28313 # The LINGUAS file contains the set of available languages.
28314 if test -n "$OBSOLETE_ALL_LINGUAS"; then
28315 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
28316 fi
28317 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
28318 # Hide the ALL_LINGUAS assigment from automake.
28319 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
28320 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
28321 else
28322 # The set of available languages was given in configure.in.
28323 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
28324 fi
28325 case "$ac_given_srcdir" in
28326 .) srcdirpre= ;;
28327 *) srcdirpre='$(srcdir)/' ;;
28328 esac
28329 POFILES=
28330 GMOFILES=
28331 UPDATEPOFILES=
28332 DUMMYPOFILES=
28333 for lang in $ALL_LINGUAS; do
28334 POFILES="$POFILES $srcdirpre$lang.po"
28335 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
28336 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
28337 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
28338 done
28339 # CATALOGS depends on both $ac_dir and the user's LINGUAS
28340 # environment variable.
28341 INST_LINGUAS=
28342 if test -n "$ALL_LINGUAS"; then
28343 for presentlang in $ALL_LINGUAS; do
28344 useit=no
28345 if test "%UNSET%" != "$LINGUAS"; then
28346 desiredlanguages="$LINGUAS"
28347 else
28348 desiredlanguages="$ALL_LINGUAS"
28349 fi
28350 for desiredlang in $desiredlanguages; do
28351 # Use the presentlang catalog if desiredlang is
28352 # a. equal to presentlang, or
28353 # b. a variant of presentlang (because in this case,
28354 # presentlang can be used as a fallback for messages
28355 # which are not translated in the desiredlang catalog).
28356 case "$desiredlang" in
28357 "$presentlang"*) useit=yes;;
28358 esac
28359 done
28360 if test $useit = yes; then
28361 INST_LINGUAS="$INST_LINGUAS $presentlang"
28362 fi
28363 done
28364 fi
28365 CATALOGS=
28366 if test -n "$INST_LINGUAS"; then
28367 for lang in $INST_LINGUAS; do
28368 CATALOGS="$CATALOGS $lang.gmo"
28369 done
28370 fi
28371 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
28372 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"
28373 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
28374 if test -f "$f"; then
28375 case "$f" in
28376 *.orig | *.bak | *~) ;;
28377 *) cat "$f" >> "$ac_dir/Makefile" ;;
28378 esac
28379 fi
28380 done
28381 fi
28382 ;;
28383 esac
28384 done ;;
28385 default )
28386 # Makefile uses this timestamp file to record whether config.h is up to date.
28387 echo timestamp > stamp-h
28388 ;;
28389 esac
28390 done
28391 _ACEOF
28392
28393 cat >>$CONFIG_STATUS <<\_ACEOF
28394
28395 { (exit 0); exit 0; }
28396 _ACEOF
28397 chmod +x $CONFIG_STATUS
28398 ac_clean_files=$ac_clean_files_save
28399
28400
28401 # configure is writing to config.log, and then calls config.status.
28402 # config.status does its own redirection, appending to config.log.
28403 # Unfortunately, on DOS this fails, as config.log is still kept open
28404 # by configure, so config.status won't be able to write to it; its
28405 # output is simply discarded. So we exec the FD to /dev/null,
28406 # effectively closing config.log, so it can be properly (re)opened and
28407 # appended to by config.status. When coming back to configure, we
28408 # need to make the FD available again.
28409 if test "$no_create" != yes; then
28410 ac_cs_success=:
28411 ac_config_status_args=
28412 test "$silent" = yes &&
28413 ac_config_status_args="$ac_config_status_args --quiet"
28414 exec 5>/dev/null
28415 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28416 exec 5>>config.log
28417 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28418 # would make configure fail if this is the last instruction.
28419 $ac_cs_success || { (exit 1); exit 1; }
28420 fi
28421