Readline 5.1 import for HEAD.
[deliverable/binutils-gdb.git] / readline / configure
1 #! /bin/sh
2 # From configure.in for Readline 5.1, version 2.59.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for readline 5.1-release.
5 #
6 # Report bugs to <bug-readline@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='readline'
272 PACKAGE_TARNAME='readline'
273 PACKAGE_VERSION='5.1-release'
274 PACKAGE_STRING='readline 5.1-release'
275 PACKAGE_BUGREPORT='bug-readline@gnu.org'
276
277 ac_unique_file="readline.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 CROSS_COMPILE SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CC_FOR_BUILD INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR RANLIB ac_ct_RANLIB MAKE_SHELL WCWIDTH_OBJ SHOBJ_CC SHOBJ_CFLAGS SHOBJ_LD SHOBJ_LDFLAGS SHOBJ_XLDFLAGS SHOBJ_LIBS SHOBJ_STATUS SHLIB_STATUS SHLIB_XLDFLAGS SHLIB_DOT SHLIB_LIBPREF SHLIB_LIBSUFF SHLIB_LIBVERSION SHLIB_DLLVERSION SHLIB_LIBS SHLIB_MAJOR SHLIB_MINOR STATIC_TARGET SHARED_TARGET STATIC_INSTALL_TARGET SHARED_INSTALL_TARGET PURIFY BUILD_DIR LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS ARFLAGS LIBVERSION TERMCAP_LIB LIBOBJS 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_CC_set=${CC+set}
757 ac_env_CC_value=$CC
758 ac_cv_env_CC_set=${CC+set}
759 ac_cv_env_CC_value=$CC
760 ac_env_CFLAGS_set=${CFLAGS+set}
761 ac_env_CFLAGS_value=$CFLAGS
762 ac_cv_env_CFLAGS_set=${CFLAGS+set}
763 ac_cv_env_CFLAGS_value=$CFLAGS
764 ac_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_env_LDFLAGS_value=$LDFLAGS
766 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_cv_env_LDFLAGS_value=$LDFLAGS
768 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_env_CPPFLAGS_value=$CPPFLAGS
770 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772 ac_env_CPP_set=${CPP+set}
773 ac_env_CPP_value=$CPP
774 ac_cv_env_CPP_set=${CPP+set}
775 ac_cv_env_CPP_value=$CPP
776
777 #
778 # Report the --help message.
779 #
780 if test "$ac_init_help" = "long"; then
781 # Omit some internal or obsolete options to make the list less imposing.
782 # This message is too long to be a string in the A/UX 3.1 sh.
783 cat <<_ACEOF
784 \`configure' configures readline 5.1-release to adapt to many kinds of systems.
785
786 Usage: $0 [OPTION]... [VAR=VALUE]...
787
788 To assign environment variables (e.g., CC, CFLAGS...), specify them as
789 VAR=VALUE. See below for descriptions of some of the useful variables.
790
791 Defaults for the options are specified in brackets.
792
793 Configuration:
794 -h, --help display this help and exit
795 --help=short display options specific to this package
796 --help=recursive display the short help of all the included packages
797 -V, --version display version information and exit
798 -q, --quiet, --silent do not print \`checking...' messages
799 --cache-file=FILE cache test results in FILE [disabled]
800 -C, --config-cache alias for \`--cache-file=config.cache'
801 -n, --no-create do not create output files
802 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803
804 _ACEOF
805
806 cat <<_ACEOF
807 Installation directories:
808 --prefix=PREFIX install architecture-independent files in PREFIX
809 [$ac_default_prefix]
810 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 [PREFIX]
812
813 By default, \`make install' will install all the files in
814 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
815 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
816 for instance \`--prefix=\$HOME'.
817
818 For better control, use the options below.
819
820 Fine tuning of the installation directories:
821 --bindir=DIR user executables [EPREFIX/bin]
822 --sbindir=DIR system admin executables [EPREFIX/sbin]
823 --libexecdir=DIR program executables [EPREFIX/libexec]
824 --datadir=DIR read-only architecture-independent data [PREFIX/share]
825 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
826 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
827 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
828 --libdir=DIR object code libraries [EPREFIX/lib]
829 --includedir=DIR C header files [PREFIX/include]
830 --oldincludedir=DIR C header files for non-gcc [/usr/include]
831 --infodir=DIR info documentation [PREFIX/info]
832 --mandir=DIR man documentation [PREFIX/man]
833 _ACEOF
834
835 cat <<\_ACEOF
836
837 System types:
838 --build=BUILD configure for building on BUILD [guessed]
839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of readline 5.1-release:";;
846 esac
847 cat <<\_ACEOF
848
849 Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-multibyte enable multibyte characters if OS supports them
853 --enable-static build static libraries [default=YES]
854
855 Optional Packages:
856 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
857 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
858 --with-curses use the curses library instead of the termcap
859 library
860 --with-purify configure to postprocess with purify
861
862 Some influential environment variables:
863 CC C compiler command
864 CFLAGS C compiler flags
865 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
866 nonstandard directory <lib dir>
867 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
868 headers in a nonstandard directory <include dir>
869 CPP C preprocessor
870
871 Use these variables to override the choices made by `configure' or to help
872 it to find libraries and programs with nonstandard names/locations.
873
874 Report bugs to <bug-readline@gnu.org>.
875 _ACEOF
876 fi
877
878 if test "$ac_init_help" = "recursive"; then
879 # If there are subdirs, report their specific --help.
880 ac_popdir=`pwd`
881 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
882 test -d $ac_dir || continue
883 ac_builddir=.
884
885 if test "$ac_dir" != .; then
886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
887 # A "../" for each directory in $ac_dir_suffix.
888 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
889 else
890 ac_dir_suffix= ac_top_builddir=
891 fi
892
893 case $srcdir in
894 .) # No --srcdir option. We are building in place.
895 ac_srcdir=.
896 if test -z "$ac_top_builddir"; then
897 ac_top_srcdir=.
898 else
899 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
900 fi ;;
901 [\\/]* | ?:[\\/]* ) # Absolute path.
902 ac_srcdir=$srcdir$ac_dir_suffix;
903 ac_top_srcdir=$srcdir ;;
904 *) # Relative path.
905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
907 esac
908
909 # Do not use `cd foo && pwd` to compute absolute paths, because
910 # the directories may not exist.
911 case `pwd` in
912 .) ac_abs_builddir="$ac_dir";;
913 *)
914 case "$ac_dir" in
915 .) ac_abs_builddir=`pwd`;;
916 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
917 *) ac_abs_builddir=`pwd`/"$ac_dir";;
918 esac;;
919 esac
920 case $ac_abs_builddir in
921 .) ac_abs_top_builddir=${ac_top_builddir}.;;
922 *)
923 case ${ac_top_builddir}. in
924 .) ac_abs_top_builddir=$ac_abs_builddir;;
925 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
926 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
927 esac;;
928 esac
929 case $ac_abs_builddir in
930 .) ac_abs_srcdir=$ac_srcdir;;
931 *)
932 case $ac_srcdir in
933 .) ac_abs_srcdir=$ac_abs_builddir;;
934 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
935 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
936 esac;;
937 esac
938 case $ac_abs_builddir in
939 .) ac_abs_top_srcdir=$ac_top_srcdir;;
940 *)
941 case $ac_top_srcdir in
942 .) ac_abs_top_srcdir=$ac_abs_builddir;;
943 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
944 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
945 esac;;
946 esac
947
948 cd $ac_dir
949 # Check for guested configure; otherwise get Cygnus style configure.
950 if test -f $ac_srcdir/configure.gnu; then
951 echo
952 $SHELL $ac_srcdir/configure.gnu --help=recursive
953 elif test -f $ac_srcdir/configure; then
954 echo
955 $SHELL $ac_srcdir/configure --help=recursive
956 elif test -f $ac_srcdir/configure.ac ||
957 test -f $ac_srcdir/configure.in; then
958 echo
959 $ac_configure --help
960 else
961 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
962 fi
963 cd "$ac_popdir"
964 done
965 fi
966
967 test -n "$ac_init_help" && exit 0
968 if $ac_init_version; then
969 cat <<\_ACEOF
970 readline configure 5.1-release
971 generated by GNU Autoconf 2.59
972
973 Copyright (C) 2003 Free Software Foundation, Inc.
974 This configure script is free software; the Free Software Foundation
975 gives unlimited permission to copy, distribute and modify it.
976 _ACEOF
977 exit 0
978 fi
979 exec 5>config.log
980 cat >&5 <<_ACEOF
981 This file contains any messages produced by compilers while
982 running configure, to aid debugging if configure makes a mistake.
983
984 It was created by readline $as_me 5.1-release, which was
985 generated by GNU Autoconf 2.59. Invocation command line was
986
987 $ $0 $@
988
989 _ACEOF
990 {
991 cat <<_ASUNAME
992 ## --------- ##
993 ## Platform. ##
994 ## --------- ##
995
996 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
997 uname -m = `(uname -m) 2>/dev/null || echo unknown`
998 uname -r = `(uname -r) 2>/dev/null || echo unknown`
999 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1000 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1001
1002 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1003 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1004
1005 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1006 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1007 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1008 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1009 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1010 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1011 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1012
1013 _ASUNAME
1014
1015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1016 for as_dir in $PATH
1017 do
1018 IFS=$as_save_IFS
1019 test -z "$as_dir" && as_dir=.
1020 echo "PATH: $as_dir"
1021 done
1022
1023 } >&5
1024
1025 cat >&5 <<_ACEOF
1026
1027
1028 ## ----------- ##
1029 ## Core tests. ##
1030 ## ----------- ##
1031
1032 _ACEOF
1033
1034
1035 # Keep a trace of the command line.
1036 # Strip out --no-create and --no-recursion so they do not pile up.
1037 # Strip out --silent because we don't want to record it for future runs.
1038 # Also quote any args containing shell meta-characters.
1039 # Make two passes to allow for proper duplicate-argument suppression.
1040 ac_configure_args=
1041 ac_configure_args0=
1042 ac_configure_args1=
1043 ac_sep=
1044 ac_must_keep_next=false
1045 for ac_pass in 1 2
1046 do
1047 for ac_arg
1048 do
1049 case $ac_arg in
1050 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1051 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052 | -silent | --silent | --silen | --sile | --sil)
1053 continue ;;
1054 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1055 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1056 esac
1057 case $ac_pass in
1058 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1059 2)
1060 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1061 if test $ac_must_keep_next = true; then
1062 ac_must_keep_next=false # Got value, back to normal.
1063 else
1064 case $ac_arg in
1065 *=* | --config-cache | -C | -disable-* | --disable-* \
1066 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1067 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1068 | -with-* | --with-* | -without-* | --without-* | --x)
1069 case "$ac_configure_args0 " in
1070 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1071 esac
1072 ;;
1073 -* ) ac_must_keep_next=true ;;
1074 esac
1075 fi
1076 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1077 # Get rid of the leading space.
1078 ac_sep=" "
1079 ;;
1080 esac
1081 done
1082 done
1083 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1084 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1085
1086 # When interrupted or exit'd, cleanup temporary files, and complete
1087 # config.log. We remove comments because anyway the quotes in there
1088 # would cause problems or look ugly.
1089 # WARNING: Be sure not to use single quotes in there, as some shells,
1090 # such as our DU 5.0 friend, will then `close' the trap.
1091 trap 'exit_status=$?
1092 # Save into config.log some information that might help in debugging.
1093 {
1094 echo
1095
1096 cat <<\_ASBOX
1097 ## ---------------- ##
1098 ## Cache variables. ##
1099 ## ---------------- ##
1100 _ASBOX
1101 echo
1102 # The following way of writing the cache mishandles newlines in values,
1103 {
1104 (set) 2>&1 |
1105 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1106 *ac_space=\ *)
1107 sed -n \
1108 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1110 ;;
1111 *)
1112 sed -n \
1113 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1114 ;;
1115 esac;
1116 }
1117 echo
1118
1119 cat <<\_ASBOX
1120 ## ----------------- ##
1121 ## Output variables. ##
1122 ## ----------------- ##
1123 _ASBOX
1124 echo
1125 for ac_var in $ac_subst_vars
1126 do
1127 eval ac_val=$`echo $ac_var`
1128 echo "$ac_var='"'"'$ac_val'"'"'"
1129 done | sort
1130 echo
1131
1132 if test -n "$ac_subst_files"; then
1133 cat <<\_ASBOX
1134 ## ------------- ##
1135 ## Output files. ##
1136 ## ------------- ##
1137 _ASBOX
1138 echo
1139 for ac_var in $ac_subst_files
1140 do
1141 eval ac_val=$`echo $ac_var`
1142 echo "$ac_var='"'"'$ac_val'"'"'"
1143 done | sort
1144 echo
1145 fi
1146
1147 if test -s confdefs.h; then
1148 cat <<\_ASBOX
1149 ## ----------- ##
1150 ## confdefs.h. ##
1151 ## ----------- ##
1152 _ASBOX
1153 echo
1154 sed "/^$/d" confdefs.h | sort
1155 echo
1156 fi
1157 test "$ac_signal" != 0 &&
1158 echo "$as_me: caught signal $ac_signal"
1159 echo "$as_me: exit $exit_status"
1160 } >&5
1161 rm -f core *.core &&
1162 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1163 exit $exit_status
1164 ' 0
1165 for ac_signal in 1 2 13 15; do
1166 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1167 done
1168 ac_signal=0
1169
1170 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1171 rm -rf conftest* confdefs.h
1172 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1173 echo >confdefs.h
1174
1175 # Predefined preprocessor variables.
1176
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_NAME "$PACKAGE_NAME"
1179 _ACEOF
1180
1181
1182 cat >>confdefs.h <<_ACEOF
1183 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1184 _ACEOF
1185
1186
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1189 _ACEOF
1190
1191
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_STRING "$PACKAGE_STRING"
1194 _ACEOF
1195
1196
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1199 _ACEOF
1200
1201
1202 # Let the site file select an alternate cache file if it wants to.
1203 # Prefer explicitly selected file to automatically selected ones.
1204 if test -z "$CONFIG_SITE"; then
1205 if test "x$prefix" != xNONE; then
1206 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1207 else
1208 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1209 fi
1210 fi
1211 for ac_site_file in $CONFIG_SITE; do
1212 if test -r "$ac_site_file"; then
1213 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1214 echo "$as_me: loading site script $ac_site_file" >&6;}
1215 sed 's/^/| /' "$ac_site_file" >&5
1216 . "$ac_site_file"
1217 fi
1218 done
1219
1220 if test -r "$cache_file"; then
1221 # Some versions of bash will fail to source /dev/null (special
1222 # files actually), so we avoid doing that.
1223 if test -f "$cache_file"; then
1224 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1225 echo "$as_me: loading cache $cache_file" >&6;}
1226 case $cache_file in
1227 [\\/]* | ?:[\\/]* ) . $cache_file;;
1228 *) . ./$cache_file;;
1229 esac
1230 fi
1231 else
1232 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1233 echo "$as_me: creating cache $cache_file" >&6;}
1234 >$cache_file
1235 fi
1236
1237 # Check that the precious variables saved in the cache have kept the same
1238 # value.
1239 ac_cache_corrupted=false
1240 for ac_var in `(set) 2>&1 |
1241 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1242 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1243 eval ac_new_set=\$ac_env_${ac_var}_set
1244 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1245 eval ac_new_val="\$ac_env_${ac_var}_value"
1246 case $ac_old_set,$ac_new_set in
1247 set,)
1248 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1249 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1250 ac_cache_corrupted=: ;;
1251 ,set)
1252 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1253 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1254 ac_cache_corrupted=: ;;
1255 ,);;
1256 *)
1257 if test "x$ac_old_val" != "x$ac_new_val"; then
1258 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1259 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1260 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1261 echo "$as_me: former value: $ac_old_val" >&2;}
1262 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1263 echo "$as_me: current value: $ac_new_val" >&2;}
1264 ac_cache_corrupted=:
1265 fi;;
1266 esac
1267 # Pass precious variables to config.status.
1268 if test "$ac_new_set" = set; then
1269 case $ac_new_val in
1270 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1271 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1272 *) ac_arg=$ac_var=$ac_new_val ;;
1273 esac
1274 case " $ac_configure_args " in
1275 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1276 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1277 esac
1278 fi
1279 done
1280 if $ac_cache_corrupted; then
1281 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1282 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1283 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1284 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1285 { (exit 1); exit 1; }; }
1286 fi
1287
1288 ac_ext=c
1289 ac_cpp='$CPP $CPPFLAGS'
1290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324 ac_aux_dir=
1325 for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
1326 if test -f $ac_dir/install-sh; then
1327 ac_aux_dir=$ac_dir
1328 ac_install_sh="$ac_aux_dir/install-sh -c"
1329 break
1330 elif test -f $ac_dir/install.sh; then
1331 ac_aux_dir=$ac_dir
1332 ac_install_sh="$ac_aux_dir/install.sh -c"
1333 break
1334 elif test -f $ac_dir/shtool; then
1335 ac_aux_dir=$ac_dir
1336 ac_install_sh="$ac_aux_dir/shtool install -c"
1337 break
1338 fi
1339 done
1340 if test -z "$ac_aux_dir"; then
1341 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
1342 echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
1343 { (exit 1); exit 1; }; }
1344 fi
1345 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1346 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1347 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1348
1349 ac_config_headers="$ac_config_headers config.h"
1350
1351
1352 LIBVERSION=5.1
1353
1354 # Make sure we can run config.sub.
1355 $ac_config_sub sun4 >/dev/null 2>&1 ||
1356 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1357 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1358 { (exit 1); exit 1; }; }
1359
1360 echo "$as_me:$LINENO: checking build system type" >&5
1361 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1362 if test "${ac_cv_build+set}" = set; then
1363 echo $ECHO_N "(cached) $ECHO_C" >&6
1364 else
1365 ac_cv_build_alias=$build_alias
1366 test -z "$ac_cv_build_alias" &&
1367 ac_cv_build_alias=`$ac_config_guess`
1368 test -z "$ac_cv_build_alias" &&
1369 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1370 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1371 { (exit 1); exit 1; }; }
1372 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1373 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1374 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1375 { (exit 1); exit 1; }; }
1376
1377 fi
1378 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1379 echo "${ECHO_T}$ac_cv_build" >&6
1380 build=$ac_cv_build
1381 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1382 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1383 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1384
1385
1386 echo "$as_me:$LINENO: checking host system type" >&5
1387 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1388 if test "${ac_cv_host+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1390 else
1391 ac_cv_host_alias=$host_alias
1392 test -z "$ac_cv_host_alias" &&
1393 ac_cv_host_alias=$ac_cv_build_alias
1394 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1395 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1396 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1397 { (exit 1); exit 1; }; }
1398
1399 fi
1400 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1401 echo "${ECHO_T}$ac_cv_host" >&6
1402 host=$ac_cv_host
1403 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1404 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1405 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1406
1407
1408
1409 opt_curses=no
1410 opt_purify=no
1411
1412
1413 # Check whether --with-curses or --without-curses was given.
1414 if test "${with_curses+set}" = set; then
1415 withval="$with_curses"
1416 opt_curses=$withval
1417 fi;
1418
1419 # Check whether --with-purify or --without-purify was given.
1420 if test "${with_purify+set}" = set; then
1421 withval="$with_purify"
1422 opt_purify=$withval
1423 fi;
1424
1425 if test "$opt_curses" = "yes"; then
1426 prefer_curses=yes
1427 fi
1428
1429 if test "$opt_purify" = yes; then
1430 PURIFY="purify"
1431 else
1432 PURIFY=
1433 fi
1434
1435 opt_multibyte=yes
1436 opt_static_libs=yes
1437 opt_shared_libs=no
1438
1439 # Check whether --enable-multibyte or --disable-multibyte was given.
1440 if test "${enable_multibyte+set}" = set; then
1441 enableval="$enable_multibyte"
1442 opt_multibyte=$enableval
1443 fi;
1444 # Check whether --enable-static or --disable-static was given.
1445 if test "${enable_static+set}" = set; then
1446 enableval="$enable_static"
1447 opt_static_libs=$enableval
1448 fi;
1449
1450 if test $opt_multibyte = no; then
1451 cat >>confdefs.h <<\_ACEOF
1452 #define NO_MULTIBYTE_SUPPORT 1
1453 _ACEOF
1454
1455 fi
1456
1457
1458
1459 if test "x$cross_compiling" = "xyes"; then
1460 case "${host}" in
1461 *-cygwin*)
1462 cross_cache=${srcdir}/cross-build/cygwin.cache
1463 ;;
1464 *-mingw*)
1465 cross_cache=${srcdir}/cross-build/mingw.cache
1466 ;;
1467 i[3456]86-*-beos*)
1468 cross_cache=${srcdir}/cross-build/x86-beos.cache
1469 ;;
1470 *) echo "configure: cross-compiling for $host is not supported" >&2
1471 ;;
1472 esac
1473 if test -n "${cross_cache}" && test -r "${cross_cache}"; then
1474 echo "loading cross-build cache file ${cross_cache}"
1475 . ${cross_cache}
1476 fi
1477 unset cross_cache
1478 CROSS_COMPILE='-DCROSS_COMPILING'
1479
1480 fi
1481
1482 echo ""
1483 echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}"
1484 echo ""
1485
1486 # We want these before the checks, so the checks can modify their values.
1487 test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
1488
1489 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1490 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1491 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1492 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1494 else
1495 cat >conftest.make <<\_ACEOF
1496 all:
1497 @echo 'ac_maketemp="$(MAKE)"'
1498 _ACEOF
1499 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1500 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1501 if test -n "$ac_maketemp"; then
1502 eval ac_cv_prog_make_${ac_make}_set=yes
1503 else
1504 eval ac_cv_prog_make_${ac_make}_set=no
1505 fi
1506 rm -f conftest.make
1507 fi
1508 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1509 echo "$as_me:$LINENO: result: yes" >&5
1510 echo "${ECHO_T}yes" >&6
1511 SET_MAKE=
1512 else
1513 echo "$as_me:$LINENO: result: no" >&5
1514 echo "${ECHO_T}no" >&6
1515 SET_MAKE="MAKE=${MAKE-make}"
1516 fi
1517
1518 ac_ext=c
1519 ac_cpp='$CPP $CPPFLAGS'
1520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1523 if test -n "$ac_tool_prefix"; then
1524 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1525 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1526 echo "$as_me:$LINENO: checking for $ac_word" >&5
1527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528 if test "${ac_cv_prog_CC+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1530 else
1531 if test -n "$CC"; then
1532 ac_cv_prog_CC="$CC" # Let the user override the test.
1533 else
1534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1535 for as_dir in $PATH
1536 do
1537 IFS=$as_save_IFS
1538 test -z "$as_dir" && as_dir=.
1539 for ac_exec_ext in '' $ac_executable_extensions; do
1540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1541 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1543 break 2
1544 fi
1545 done
1546 done
1547
1548 fi
1549 fi
1550 CC=$ac_cv_prog_CC
1551 if test -n "$CC"; then
1552 echo "$as_me:$LINENO: result: $CC" >&5
1553 echo "${ECHO_T}$CC" >&6
1554 else
1555 echo "$as_me:$LINENO: result: no" >&5
1556 echo "${ECHO_T}no" >&6
1557 fi
1558
1559 fi
1560 if test -z "$ac_cv_prog_CC"; then
1561 ac_ct_CC=$CC
1562 # Extract the first word of "gcc", so it can be a program name with args.
1563 set dummy gcc; ac_word=$2
1564 echo "$as_me:$LINENO: checking for $ac_word" >&5
1565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1568 else
1569 if test -n "$ac_ct_CC"; then
1570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1571 else
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573 for as_dir in $PATH
1574 do
1575 IFS=$as_save_IFS
1576 test -z "$as_dir" && as_dir=.
1577 for ac_exec_ext in '' $ac_executable_extensions; do
1578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1579 ac_cv_prog_ac_ct_CC="gcc"
1580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581 break 2
1582 fi
1583 done
1584 done
1585
1586 fi
1587 fi
1588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1589 if test -n "$ac_ct_CC"; then
1590 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1591 echo "${ECHO_T}$ac_ct_CC" >&6
1592 else
1593 echo "$as_me:$LINENO: result: no" >&5
1594 echo "${ECHO_T}no" >&6
1595 fi
1596
1597 CC=$ac_ct_CC
1598 else
1599 CC="$ac_cv_prog_CC"
1600 fi
1601
1602 if test -z "$CC"; then
1603 if test -n "$ac_tool_prefix"; then
1604 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1605 set dummy ${ac_tool_prefix}cc; ac_word=$2
1606 echo "$as_me:$LINENO: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_CC+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1610 else
1611 if test -n "$CC"; then
1612 ac_cv_prog_CC="$CC" # Let the user override the test.
1613 else
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615 for as_dir in $PATH
1616 do
1617 IFS=$as_save_IFS
1618 test -z "$as_dir" && as_dir=.
1619 for ac_exec_ext in '' $ac_executable_extensions; do
1620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621 ac_cv_prog_CC="${ac_tool_prefix}cc"
1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623 break 2
1624 fi
1625 done
1626 done
1627
1628 fi
1629 fi
1630 CC=$ac_cv_prog_CC
1631 if test -n "$CC"; then
1632 echo "$as_me:$LINENO: result: $CC" >&5
1633 echo "${ECHO_T}$CC" >&6
1634 else
1635 echo "$as_me:$LINENO: result: no" >&5
1636 echo "${ECHO_T}no" >&6
1637 fi
1638
1639 fi
1640 if test -z "$ac_cv_prog_CC"; then
1641 ac_ct_CC=$CC
1642 # Extract the first word of "cc", so it can be a program name with args.
1643 set dummy cc; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1648 else
1649 if test -n "$ac_ct_CC"; then
1650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1651 else
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653 for as_dir in $PATH
1654 do
1655 IFS=$as_save_IFS
1656 test -z "$as_dir" && as_dir=.
1657 for ac_exec_ext in '' $ac_executable_extensions; do
1658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659 ac_cv_prog_ac_ct_CC="cc"
1660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1661 break 2
1662 fi
1663 done
1664 done
1665
1666 fi
1667 fi
1668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1669 if test -n "$ac_ct_CC"; then
1670 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1671 echo "${ECHO_T}$ac_ct_CC" >&6
1672 else
1673 echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1675 fi
1676
1677 CC=$ac_ct_CC
1678 else
1679 CC="$ac_cv_prog_CC"
1680 fi
1681
1682 fi
1683 if test -z "$CC"; then
1684 # Extract the first word of "cc", so it can be a program name with args.
1685 set dummy cc; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_CC+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1690 else
1691 if test -n "$CC"; then
1692 ac_cv_prog_CC="$CC" # Let the user override the test.
1693 else
1694 ac_prog_rejected=no
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1696 for as_dir in $PATH
1697 do
1698 IFS=$as_save_IFS
1699 test -z "$as_dir" && as_dir=.
1700 for ac_exec_ext in '' $ac_executable_extensions; do
1701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1703 ac_prog_rejected=yes
1704 continue
1705 fi
1706 ac_cv_prog_CC="cc"
1707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708 break 2
1709 fi
1710 done
1711 done
1712
1713 if test $ac_prog_rejected = yes; then
1714 # We found a bogon in the path, so make sure we never use it.
1715 set dummy $ac_cv_prog_CC
1716 shift
1717 if test $# != 0; then
1718 # We chose a different compiler from the bogus one.
1719 # However, it has the same basename, so the bogon will be chosen
1720 # first if we set CC to just the basename; use the full file name.
1721 shift
1722 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1723 fi
1724 fi
1725 fi
1726 fi
1727 CC=$ac_cv_prog_CC
1728 if test -n "$CC"; then
1729 echo "$as_me:$LINENO: result: $CC" >&5
1730 echo "${ECHO_T}$CC" >&6
1731 else
1732 echo "$as_me:$LINENO: result: no" >&5
1733 echo "${ECHO_T}no" >&6
1734 fi
1735
1736 fi
1737 if test -z "$CC"; then
1738 if test -n "$ac_tool_prefix"; then
1739 for ac_prog in cl
1740 do
1741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_CC+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1747 else
1748 if test -n "$CC"; then
1749 ac_cv_prog_CC="$CC" # Let the user override the test.
1750 else
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 for as_dir in $PATH
1753 do
1754 IFS=$as_save_IFS
1755 test -z "$as_dir" && as_dir=.
1756 for ac_exec_ext in '' $ac_executable_extensions; do
1757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1760 break 2
1761 fi
1762 done
1763 done
1764
1765 fi
1766 fi
1767 CC=$ac_cv_prog_CC
1768 if test -n "$CC"; then
1769 echo "$as_me:$LINENO: result: $CC" >&5
1770 echo "${ECHO_T}$CC" >&6
1771 else
1772 echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1774 fi
1775
1776 test -n "$CC" && break
1777 done
1778 fi
1779 if test -z "$CC"; then
1780 ac_ct_CC=$CC
1781 for ac_prog in cl
1782 do
1783 # Extract the first word of "$ac_prog", so it can be a program name with args.
1784 set dummy $ac_prog; ac_word=$2
1785 echo "$as_me:$LINENO: checking for $ac_word" >&5
1786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1789 else
1790 if test -n "$ac_ct_CC"; then
1791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1792 else
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794 for as_dir in $PATH
1795 do
1796 IFS=$as_save_IFS
1797 test -z "$as_dir" && as_dir=.
1798 for ac_exec_ext in '' $ac_executable_extensions; do
1799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800 ac_cv_prog_ac_ct_CC="$ac_prog"
1801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1802 break 2
1803 fi
1804 done
1805 done
1806
1807 fi
1808 fi
1809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1810 if test -n "$ac_ct_CC"; then
1811 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1812 echo "${ECHO_T}$ac_ct_CC" >&6
1813 else
1814 echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1816 fi
1817
1818 test -n "$ac_ct_CC" && break
1819 done
1820
1821 CC=$ac_ct_CC
1822 fi
1823
1824 fi
1825
1826
1827 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1828 See \`config.log' for more details." >&5
1829 echo "$as_me: error: no acceptable C compiler found in \$PATH
1830 See \`config.log' for more details." >&2;}
1831 { (exit 1); exit 1; }; }
1832
1833 # Provide some information about the compiler.
1834 echo "$as_me:$LINENO:" \
1835 "checking for C compiler version" >&5
1836 ac_compiler=`set X $ac_compile; echo $2`
1837 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1838 (eval $ac_compiler --version </dev/null >&5) 2>&5
1839 ac_status=$?
1840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841 (exit $ac_status); }
1842 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1843 (eval $ac_compiler -v </dev/null >&5) 2>&5
1844 ac_status=$?
1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846 (exit $ac_status); }
1847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1848 (eval $ac_compiler -V </dev/null >&5) 2>&5
1849 ac_status=$?
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }
1852
1853 cat >conftest.$ac_ext <<_ACEOF
1854 /* confdefs.h. */
1855 _ACEOF
1856 cat confdefs.h >>conftest.$ac_ext
1857 cat >>conftest.$ac_ext <<_ACEOF
1858 /* end confdefs.h. */
1859
1860 int
1861 main ()
1862 {
1863
1864 ;
1865 return 0;
1866 }
1867 _ACEOF
1868 ac_clean_files_save=$ac_clean_files
1869 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1870 # Try to create an executable without -o first, disregard a.out.
1871 # It will help us diagnose broken compilers, and finding out an intuition
1872 # of exeext.
1873 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1874 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1875 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1876 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1877 (eval $ac_link_default) 2>&5
1878 ac_status=$?
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; then
1881 # Find the output, starting from the most likely. This scheme is
1882 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1883 # resort.
1884
1885 # Be careful to initialize this variable, since it used to be cached.
1886 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1887 ac_cv_exeext=
1888 # b.out is created by i960 compilers.
1889 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1890 do
1891 test -f "$ac_file" || continue
1892 case $ac_file in
1893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1894 ;;
1895 conftest.$ac_ext )
1896 # This is the source file.
1897 ;;
1898 [ab].out )
1899 # We found the default executable, but exeext='' is most
1900 # certainly right.
1901 break;;
1902 *.* )
1903 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1904 # FIXME: I believe we export ac_cv_exeext for Libtool,
1905 # but it would be cool to find out if it's true. Does anybody
1906 # maintain Libtool? --akim.
1907 export ac_cv_exeext
1908 break;;
1909 * )
1910 break;;
1911 esac
1912 done
1913 else
1914 echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1916
1917 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1918 See \`config.log' for more details." >&5
1919 echo "$as_me: error: C compiler cannot create executables
1920 See \`config.log' for more details." >&2;}
1921 { (exit 77); exit 77; }; }
1922 fi
1923
1924 ac_exeext=$ac_cv_exeext
1925 echo "$as_me:$LINENO: result: $ac_file" >&5
1926 echo "${ECHO_T}$ac_file" >&6
1927
1928 # Check the compiler produces executables we can run. If not, either
1929 # the compiler is broken, or we cross compile.
1930 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1931 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1932 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1933 # If not cross compiling, check that we can run a simple program.
1934 if test "$cross_compiling" != yes; then
1935 if { ac_try='./$ac_file'
1936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1937 (eval $ac_try) 2>&5
1938 ac_status=$?
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; }; then
1941 cross_compiling=no
1942 else
1943 if test "$cross_compiling" = maybe; then
1944 cross_compiling=yes
1945 else
1946 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1947 If you meant to cross compile, use \`--host'.
1948 See \`config.log' for more details." >&5
1949 echo "$as_me: error: cannot run C compiled programs.
1950 If you meant to cross compile, use \`--host'.
1951 See \`config.log' for more details." >&2;}
1952 { (exit 1); exit 1; }; }
1953 fi
1954 fi
1955 fi
1956 echo "$as_me:$LINENO: result: yes" >&5
1957 echo "${ECHO_T}yes" >&6
1958
1959 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1960 ac_clean_files=$ac_clean_files_save
1961 # Check the compiler produces executables we can run. If not, either
1962 # the compiler is broken, or we cross compile.
1963 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1964 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1965 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1966 echo "${ECHO_T}$cross_compiling" >&6
1967
1968 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1969 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1971 (eval $ac_link) 2>&5
1972 ac_status=$?
1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974 (exit $ac_status); }; then
1975 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1976 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1977 # work properly (i.e., refer to `conftest.exe'), while it won't with
1978 # `rm'.
1979 for ac_file in conftest.exe conftest conftest.*; do
1980 test -f "$ac_file" || continue
1981 case $ac_file in
1982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1983 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1984 export ac_cv_exeext
1985 break;;
1986 * ) break;;
1987 esac
1988 done
1989 else
1990 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1991 See \`config.log' for more details." >&5
1992 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1993 See \`config.log' for more details." >&2;}
1994 { (exit 1); exit 1; }; }
1995 fi
1996
1997 rm -f conftest$ac_cv_exeext
1998 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1999 echo "${ECHO_T}$ac_cv_exeext" >&6
2000
2001 rm -f conftest.$ac_ext
2002 EXEEXT=$ac_cv_exeext
2003 ac_exeext=$EXEEXT
2004 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2005 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2006 if test "${ac_cv_objext+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 else
2009 cat >conftest.$ac_ext <<_ACEOF
2010 /* confdefs.h. */
2011 _ACEOF
2012 cat confdefs.h >>conftest.$ac_ext
2013 cat >>conftest.$ac_ext <<_ACEOF
2014 /* end confdefs.h. */
2015
2016 int
2017 main ()
2018 {
2019
2020 ;
2021 return 0;
2022 }
2023 _ACEOF
2024 rm -f conftest.o conftest.obj
2025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2026 (eval $ac_compile) 2>&5
2027 ac_status=$?
2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); }; then
2030 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2031 case $ac_file in
2032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2033 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2034 break;;
2035 esac
2036 done
2037 else
2038 echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2040
2041 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2042 See \`config.log' for more details." >&5
2043 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2044 See \`config.log' for more details." >&2;}
2045 { (exit 1); exit 1; }; }
2046 fi
2047
2048 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2049 fi
2050 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2051 echo "${ECHO_T}$ac_cv_objext" >&6
2052 OBJEXT=$ac_cv_objext
2053 ac_objext=$OBJEXT
2054 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2055 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2056 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 else
2059 cat >conftest.$ac_ext <<_ACEOF
2060 /* confdefs.h. */
2061 _ACEOF
2062 cat confdefs.h >>conftest.$ac_ext
2063 cat >>conftest.$ac_ext <<_ACEOF
2064 /* end confdefs.h. */
2065
2066 int
2067 main ()
2068 {
2069 #ifndef __GNUC__
2070 choke me
2071 #endif
2072
2073 ;
2074 return 0;
2075 }
2076 _ACEOF
2077 rm -f conftest.$ac_objext
2078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2079 (eval $ac_compile) 2>conftest.er1
2080 ac_status=$?
2081 grep -v '^ *+' conftest.er1 >conftest.err
2082 rm -f conftest.er1
2083 cat conftest.err >&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); } &&
2086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2088 (eval $ac_try) 2>&5
2089 ac_status=$?
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; } &&
2092 { ac_try='test -s conftest.$ac_objext'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094 (eval $ac_try) 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; }; then
2098 ac_compiler_gnu=yes
2099 else
2100 echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2102
2103 ac_compiler_gnu=no
2104 fi
2105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2106 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2107
2108 fi
2109 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2110 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2111 GCC=`test $ac_compiler_gnu = yes && echo yes`
2112 ac_test_CFLAGS=${CFLAGS+set}
2113 ac_save_CFLAGS=$CFLAGS
2114 CFLAGS="-g"
2115 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2116 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2117 if test "${ac_cv_prog_cc_g+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2119 else
2120 cat >conftest.$ac_ext <<_ACEOF
2121 /* confdefs.h. */
2122 _ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h. */
2126
2127 int
2128 main ()
2129 {
2130
2131 ;
2132 return 0;
2133 }
2134 _ACEOF
2135 rm -f conftest.$ac_objext
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137 (eval $ac_compile) 2>conftest.er1
2138 ac_status=$?
2139 grep -v '^ *+' conftest.er1 >conftest.err
2140 rm -f conftest.er1
2141 cat conftest.err >&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); } &&
2144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2146 (eval $ac_try) 2>&5
2147 ac_status=$?
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; } &&
2150 { ac_try='test -s conftest.$ac_objext'
2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152 (eval $ac_try) 2>&5
2153 ac_status=$?
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; }; then
2156 ac_cv_prog_cc_g=yes
2157 else
2158 echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.$ac_ext >&5
2160
2161 ac_cv_prog_cc_g=no
2162 fi
2163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2164 fi
2165 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2166 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2167 if test "$ac_test_CFLAGS" = set; then
2168 CFLAGS=$ac_save_CFLAGS
2169 elif test $ac_cv_prog_cc_g = yes; then
2170 if test "$GCC" = yes; then
2171 CFLAGS="-g -O2"
2172 else
2173 CFLAGS="-g"
2174 fi
2175 else
2176 if test "$GCC" = yes; then
2177 CFLAGS="-O2"
2178 else
2179 CFLAGS=
2180 fi
2181 fi
2182 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2183 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2184 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2186 else
2187 ac_cv_prog_cc_stdc=no
2188 ac_save_CC=$CC
2189 cat >conftest.$ac_ext <<_ACEOF
2190 /* confdefs.h. */
2191 _ACEOF
2192 cat confdefs.h >>conftest.$ac_ext
2193 cat >>conftest.$ac_ext <<_ACEOF
2194 /* end confdefs.h. */
2195 #include <stdarg.h>
2196 #include <stdio.h>
2197 #include <sys/types.h>
2198 #include <sys/stat.h>
2199 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2200 struct buf { int x; };
2201 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2202 static char *e (p, i)
2203 char **p;
2204 int i;
2205 {
2206 return p[i];
2207 }
2208 static char *f (char * (*g) (char **, int), char **p, ...)
2209 {
2210 char *s;
2211 va_list v;
2212 va_start (v,p);
2213 s = g (p, va_arg (v,int));
2214 va_end (v);
2215 return s;
2216 }
2217
2218 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2219 function prototypes and stuff, but not '\xHH' hex character constants.
2220 These don't provoke an error unfortunately, instead are silently treated
2221 as 'x'. The following induces an error, until -std1 is added to get
2222 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2223 array size at least. It's necessary to write '\x00'==0 to get something
2224 that's true only with -std1. */
2225 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2226
2227 int test (int i, double x);
2228 struct s1 {int (*f) (int a);};
2229 struct s2 {int (*f) (double a);};
2230 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2231 int argc;
2232 char **argv;
2233 int
2234 main ()
2235 {
2236 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2237 ;
2238 return 0;
2239 }
2240 _ACEOF
2241 # Don't try gcc -ansi; that turns off useful extensions and
2242 # breaks some systems' header files.
2243 # AIX -qlanglvl=ansi
2244 # Ultrix and OSF/1 -std1
2245 # HP-UX 10.20 and later -Ae
2246 # HP-UX older versions -Aa -D_HPUX_SOURCE
2247 # SVR4 -Xc -D__EXTENSIONS__
2248 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2249 do
2250 CC="$ac_save_CC $ac_arg"
2251 rm -f conftest.$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>conftest.er1
2254 ac_status=$?
2255 grep -v '^ *+' conftest.er1 >conftest.err
2256 rm -f conftest.er1
2257 cat conftest.err >&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
2260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2262 (eval $ac_try) 2>&5
2263 ac_status=$?
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; } &&
2266 { ac_try='test -s conftest.$ac_objext'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 (eval $ac_try) 2>&5
2269 ac_status=$?
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; }; then
2272 ac_cv_prog_cc_stdc=$ac_arg
2273 break
2274 else
2275 echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2277
2278 fi
2279 rm -f conftest.err conftest.$ac_objext
2280 done
2281 rm -f conftest.$ac_ext conftest.$ac_objext
2282 CC=$ac_save_CC
2283
2284 fi
2285
2286 case "x$ac_cv_prog_cc_stdc" in
2287 x|xno)
2288 echo "$as_me:$LINENO: result: none needed" >&5
2289 echo "${ECHO_T}none needed" >&6 ;;
2290 *)
2291 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2292 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2293 CC="$CC $ac_cv_prog_cc_stdc" ;;
2294 esac
2295
2296 # Some people use a C++ compiler to compile C. Since we use `exit',
2297 # in C++ we need to declare it. In case someone uses the same compiler
2298 # for both compiling C and C++ we need to have the C++ compiler decide
2299 # the declaration of exit, since it's the most demanding environment.
2300 cat >conftest.$ac_ext <<_ACEOF
2301 #ifndef __cplusplus
2302 choke me
2303 #endif
2304 _ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
2308 ac_status=$?
2309 grep -v '^ *+' conftest.er1 >conftest.err
2310 rm -f conftest.er1
2311 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316 (eval $ac_try) 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; } &&
2320 { ac_try='test -s conftest.$ac_objext'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 (eval $ac_try) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; }; then
2326 for ac_declaration in \
2327 '' \
2328 'extern "C" void std::exit (int) throw (); using std::exit;' \
2329 'extern "C" void std::exit (int); using std::exit;' \
2330 'extern "C" void exit (int) throw ();' \
2331 'extern "C" void exit (int);' \
2332 'void exit (int);'
2333 do
2334 cat >conftest.$ac_ext <<_ACEOF
2335 /* confdefs.h. */
2336 _ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h. */
2340 $ac_declaration
2341 #include <stdlib.h>
2342 int
2343 main ()
2344 {
2345 exit (42);
2346 ;
2347 return 0;
2348 }
2349 _ACEOF
2350 rm -f conftest.$ac_objext
2351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352 (eval $ac_compile) 2>conftest.er1
2353 ac_status=$?
2354 grep -v '^ *+' conftest.er1 >conftest.err
2355 rm -f conftest.er1
2356 cat conftest.err >&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); } &&
2359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 (eval $ac_try) 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; } &&
2365 { ac_try='test -s conftest.$ac_objext'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 (eval $ac_try) 2>&5
2368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; }; then
2371 :
2372 else
2373 echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2375
2376 continue
2377 fi
2378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2379 cat >conftest.$ac_ext <<_ACEOF
2380 /* confdefs.h. */
2381 _ACEOF
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h. */
2385 $ac_declaration
2386 int
2387 main ()
2388 {
2389 exit (42);
2390 ;
2391 return 0;
2392 }
2393 _ACEOF
2394 rm -f conftest.$ac_objext
2395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2396 (eval $ac_compile) 2>conftest.er1
2397 ac_status=$?
2398 grep -v '^ *+' conftest.er1 >conftest.err
2399 rm -f conftest.er1
2400 cat conftest.err >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } &&
2403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 (eval $ac_try) 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; } &&
2409 { ac_try='test -s conftest.$ac_objext'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 (eval $ac_try) 2>&5
2412 ac_status=$?
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
2415 break
2416 else
2417 echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2419
2420 fi
2421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2422 done
2423 rm -f conftest*
2424 if test -n "$ac_declaration"; then
2425 echo '#ifdef __cplusplus' >>confdefs.h
2426 echo $ac_declaration >>confdefs.h
2427 echo '#endif' >>confdefs.h
2428 fi
2429
2430 else
2431 echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2433
2434 fi
2435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2436 ac_ext=c
2437 ac_cpp='$CPP $CPPFLAGS'
2438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2441
2442
2443 ac_ext=c
2444 ac_cpp='$CPP $CPPFLAGS'
2445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2448 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2449 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2450 # On Suns, sometimes $CPP names a directory.
2451 if test -n "$CPP" && test -d "$CPP"; then
2452 CPP=
2453 fi
2454 if test -z "$CPP"; then
2455 if test "${ac_cv_prog_CPP+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 else
2458 # Double quotes because CPP needs to be expanded
2459 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2460 do
2461 ac_preproc_ok=false
2462 for ac_c_preproc_warn_flag in '' yes
2463 do
2464 # Use a header file that comes with gcc, so configuring glibc
2465 # with a fresh cross-compiler works.
2466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2467 # <limits.h> exists even on freestanding compilers.
2468 # On the NeXT, cc -E runs the code through the compiler's parser,
2469 # not just through cpp. "Syntax error" is here to catch this case.
2470 cat >conftest.$ac_ext <<_ACEOF
2471 /* confdefs.h. */
2472 _ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2476 #ifdef __STDC__
2477 # include <limits.h>
2478 #else
2479 # include <assert.h>
2480 #endif
2481 Syntax error
2482 _ACEOF
2483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2485 ac_status=$?
2486 grep -v '^ *+' conftest.er1 >conftest.err
2487 rm -f conftest.er1
2488 cat conftest.err >&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); } >/dev/null; then
2491 if test -s conftest.err; then
2492 ac_cpp_err=$ac_c_preproc_warn_flag
2493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2494 else
2495 ac_cpp_err=
2496 fi
2497 else
2498 ac_cpp_err=yes
2499 fi
2500 if test -z "$ac_cpp_err"; then
2501 :
2502 else
2503 echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.$ac_ext >&5
2505
2506 # Broken: fails on valid input.
2507 continue
2508 fi
2509 rm -f conftest.err conftest.$ac_ext
2510
2511 # OK, works on sane cases. Now check whether non-existent headers
2512 # can be detected and how.
2513 cat >conftest.$ac_ext <<_ACEOF
2514 /* confdefs.h. */
2515 _ACEOF
2516 cat confdefs.h >>conftest.$ac_ext
2517 cat >>conftest.$ac_ext <<_ACEOF
2518 /* end confdefs.h. */
2519 #include <ac_nonexistent.h>
2520 _ACEOF
2521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2523 ac_status=$?
2524 grep -v '^ *+' conftest.er1 >conftest.err
2525 rm -f conftest.er1
2526 cat conftest.err >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } >/dev/null; then
2529 if test -s conftest.err; then
2530 ac_cpp_err=$ac_c_preproc_warn_flag
2531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2532 else
2533 ac_cpp_err=
2534 fi
2535 else
2536 ac_cpp_err=yes
2537 fi
2538 if test -z "$ac_cpp_err"; then
2539 # Broken: success on invalid input.
2540 continue
2541 else
2542 echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2544
2545 # Passes both tests.
2546 ac_preproc_ok=:
2547 break
2548 fi
2549 rm -f conftest.err conftest.$ac_ext
2550
2551 done
2552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2553 rm -f conftest.err conftest.$ac_ext
2554 if $ac_preproc_ok; then
2555 break
2556 fi
2557
2558 done
2559 ac_cv_prog_CPP=$CPP
2560
2561 fi
2562 CPP=$ac_cv_prog_CPP
2563 else
2564 ac_cv_prog_CPP=$CPP
2565 fi
2566 echo "$as_me:$LINENO: result: $CPP" >&5
2567 echo "${ECHO_T}$CPP" >&6
2568 ac_preproc_ok=false
2569 for ac_c_preproc_warn_flag in '' yes
2570 do
2571 # Use a header file that comes with gcc, so configuring glibc
2572 # with a fresh cross-compiler works.
2573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2574 # <limits.h> exists even on freestanding compilers.
2575 # On the NeXT, cc -E runs the code through the compiler's parser,
2576 # not just through cpp. "Syntax error" is here to catch this case.
2577 cat >conftest.$ac_ext <<_ACEOF
2578 /* confdefs.h. */
2579 _ACEOF
2580 cat confdefs.h >>conftest.$ac_ext
2581 cat >>conftest.$ac_ext <<_ACEOF
2582 /* end confdefs.h. */
2583 #ifdef __STDC__
2584 # include <limits.h>
2585 #else
2586 # include <assert.h>
2587 #endif
2588 Syntax error
2589 _ACEOF
2590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2592 ac_status=$?
2593 grep -v '^ *+' conftest.er1 >conftest.err
2594 rm -f conftest.er1
2595 cat conftest.err >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); } >/dev/null; then
2598 if test -s conftest.err; then
2599 ac_cpp_err=$ac_c_preproc_warn_flag
2600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2601 else
2602 ac_cpp_err=
2603 fi
2604 else
2605 ac_cpp_err=yes
2606 fi
2607 if test -z "$ac_cpp_err"; then
2608 :
2609 else
2610 echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2612
2613 # Broken: fails on valid input.
2614 continue
2615 fi
2616 rm -f conftest.err conftest.$ac_ext
2617
2618 # OK, works on sane cases. Now check whether non-existent headers
2619 # can be detected and how.
2620 cat >conftest.$ac_ext <<_ACEOF
2621 /* confdefs.h. */
2622 _ACEOF
2623 cat confdefs.h >>conftest.$ac_ext
2624 cat >>conftest.$ac_ext <<_ACEOF
2625 /* end confdefs.h. */
2626 #include <ac_nonexistent.h>
2627 _ACEOF
2628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2630 ac_status=$?
2631 grep -v '^ *+' conftest.er1 >conftest.err
2632 rm -f conftest.er1
2633 cat conftest.err >&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); } >/dev/null; then
2636 if test -s conftest.err; then
2637 ac_cpp_err=$ac_c_preproc_warn_flag
2638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2639 else
2640 ac_cpp_err=
2641 fi
2642 else
2643 ac_cpp_err=yes
2644 fi
2645 if test -z "$ac_cpp_err"; then
2646 # Broken: success on invalid input.
2647 continue
2648 else
2649 echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2651
2652 # Passes both tests.
2653 ac_preproc_ok=:
2654 break
2655 fi
2656 rm -f conftest.err conftest.$ac_ext
2657
2658 done
2659 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2660 rm -f conftest.err conftest.$ac_ext
2661 if $ac_preproc_ok; then
2662 :
2663 else
2664 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2665 See \`config.log' for more details." >&5
2666 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2667 See \`config.log' for more details." >&2;}
2668 { (exit 1); exit 1; }; }
2669 fi
2670
2671 ac_ext=c
2672 ac_cpp='$CPP $CPPFLAGS'
2673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2676
2677
2678 echo "$as_me:$LINENO: checking for egrep" >&5
2679 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2680 if test "${ac_cv_prog_egrep+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2684 then ac_cv_prog_egrep='grep -E'
2685 else ac_cv_prog_egrep='egrep'
2686 fi
2687 fi
2688 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2689 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2690 EGREP=$ac_cv_prog_egrep
2691
2692
2693 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2694 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2695 if test "${ac_cv_header_stdc+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 else
2698 cat >conftest.$ac_ext <<_ACEOF
2699 /* confdefs.h. */
2700 _ACEOF
2701 cat confdefs.h >>conftest.$ac_ext
2702 cat >>conftest.$ac_ext <<_ACEOF
2703 /* end confdefs.h. */
2704 #include <stdlib.h>
2705 #include <stdarg.h>
2706 #include <string.h>
2707 #include <float.h>
2708
2709 int
2710 main ()
2711 {
2712
2713 ;
2714 return 0;
2715 }
2716 _ACEOF
2717 rm -f conftest.$ac_objext
2718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2719 (eval $ac_compile) 2>conftest.er1
2720 ac_status=$?
2721 grep -v '^ *+' conftest.er1 >conftest.err
2722 rm -f conftest.er1
2723 cat conftest.err >&5
2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725 (exit $ac_status); } &&
2726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 (eval $ac_try) 2>&5
2729 ac_status=$?
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; } &&
2732 { ac_try='test -s conftest.$ac_objext'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 (eval $ac_try) 2>&5
2735 ac_status=$?
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2738 ac_cv_header_stdc=yes
2739 else
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2742
2743 ac_cv_header_stdc=no
2744 fi
2745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2746
2747 if test $ac_cv_header_stdc = yes; then
2748 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2749 cat >conftest.$ac_ext <<_ACEOF
2750 /* confdefs.h. */
2751 _ACEOF
2752 cat confdefs.h >>conftest.$ac_ext
2753 cat >>conftest.$ac_ext <<_ACEOF
2754 /* end confdefs.h. */
2755 #include <string.h>
2756
2757 _ACEOF
2758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2759 $EGREP "memchr" >/dev/null 2>&1; then
2760 :
2761 else
2762 ac_cv_header_stdc=no
2763 fi
2764 rm -f conftest*
2765
2766 fi
2767
2768 if test $ac_cv_header_stdc = yes; then
2769 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2770 cat >conftest.$ac_ext <<_ACEOF
2771 /* confdefs.h. */
2772 _ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2776 #include <stdlib.h>
2777
2778 _ACEOF
2779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2780 $EGREP "free" >/dev/null 2>&1; then
2781 :
2782 else
2783 ac_cv_header_stdc=no
2784 fi
2785 rm -f conftest*
2786
2787 fi
2788
2789 if test $ac_cv_header_stdc = yes; then
2790 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2791 if test "$cross_compiling" = yes; then
2792 :
2793 else
2794 cat >conftest.$ac_ext <<_ACEOF
2795 /* confdefs.h. */
2796 _ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h. */
2800 #include <ctype.h>
2801 #if ((' ' & 0x0FF) == 0x020)
2802 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2803 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2804 #else
2805 # define ISLOWER(c) \
2806 (('a' <= (c) && (c) <= 'i') \
2807 || ('j' <= (c) && (c) <= 'r') \
2808 || ('s' <= (c) && (c) <= 'z'))
2809 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2810 #endif
2811
2812 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2813 int
2814 main ()
2815 {
2816 int i;
2817 for (i = 0; i < 256; i++)
2818 if (XOR (islower (i), ISLOWER (i))
2819 || toupper (i) != TOUPPER (i))
2820 exit(2);
2821 exit (0);
2822 }
2823 _ACEOF
2824 rm -f conftest$ac_exeext
2825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2826 (eval $ac_link) 2>&5
2827 ac_status=$?
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831 (eval $ac_try) 2>&5
2832 ac_status=$?
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; }; then
2835 :
2836 else
2837 echo "$as_me: program exited with status $ac_status" >&5
2838 echo "$as_me: failed program was:" >&5
2839 sed 's/^/| /' conftest.$ac_ext >&5
2840
2841 ( exit $ac_status )
2842 ac_cv_header_stdc=no
2843 fi
2844 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2845 fi
2846 fi
2847 fi
2848 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2849 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2850 if test $ac_cv_header_stdc = yes; then
2851
2852 cat >>confdefs.h <<\_ACEOF
2853 #define STDC_HEADERS 1
2854 _ACEOF
2855
2856 fi
2857
2858 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2869 inttypes.h stdint.h unistd.h
2870 do
2871 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2872 echo "$as_me:$LINENO: checking for $ac_header" >&5
2873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2875 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 else
2877 cat >conftest.$ac_ext <<_ACEOF
2878 /* confdefs.h. */
2879 _ACEOF
2880 cat confdefs.h >>conftest.$ac_ext
2881 cat >>conftest.$ac_ext <<_ACEOF
2882 /* end confdefs.h. */
2883 $ac_includes_default
2884
2885 #include <$ac_header>
2886 _ACEOF
2887 rm -f conftest.$ac_objext
2888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2889 (eval $ac_compile) 2>conftest.er1
2890 ac_status=$?
2891 grep -v '^ *+' conftest.er1 >conftest.err
2892 rm -f conftest.er1
2893 cat conftest.err >&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); } &&
2896 { ac_try='test -z "$ac_c_werror_flag" || 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 eval "$as_ac_Header=yes"
2909 else
2910 echo "$as_me: failed program was:" >&5
2911 sed 's/^/| /' conftest.$ac_ext >&5
2912
2913 eval "$as_ac_Header=no"
2914 fi
2915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2916 fi
2917 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2918 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2920 cat >>confdefs.h <<_ACEOF
2921 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2922 _ACEOF
2923
2924 fi
2925
2926 done
2927
2928
2929 if test "${ac_cv_header_minix_config_h+set}" = set; then
2930 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2931 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2932 if test "${ac_cv_header_minix_config_h+set}" = set; then
2933 echo $ECHO_N "(cached) $ECHO_C" >&6
2934 fi
2935 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2936 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2937 else
2938 # Is the header compilable?
2939 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2940 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2941 cat >conftest.$ac_ext <<_ACEOF
2942 /* confdefs.h. */
2943 _ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2947 $ac_includes_default
2948 #include <minix/config.h>
2949 _ACEOF
2950 rm -f conftest.$ac_objext
2951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2952 (eval $ac_compile) 2>conftest.er1
2953 ac_status=$?
2954 grep -v '^ *+' conftest.er1 >conftest.err
2955 rm -f conftest.er1
2956 cat conftest.err >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); } &&
2959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961 (eval $ac_try) 2>&5
2962 ac_status=$?
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; } &&
2965 { ac_try='test -s conftest.$ac_objext'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 (eval $ac_try) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2971 ac_header_compiler=yes
2972 else
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2975
2976 ac_header_compiler=no
2977 fi
2978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2979 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2980 echo "${ECHO_T}$ac_header_compiler" >&6
2981
2982 # Is the header present?
2983 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2984 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2985 cat >conftest.$ac_ext <<_ACEOF
2986 /* confdefs.h. */
2987 _ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
2991 #include <minix/config.h>
2992 _ACEOF
2993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2995 ac_status=$?
2996 grep -v '^ *+' conftest.er1 >conftest.err
2997 rm -f conftest.er1
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); } >/dev/null; then
3001 if test -s conftest.err; then
3002 ac_cpp_err=$ac_c_preproc_warn_flag
3003 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3004 else
3005 ac_cpp_err=
3006 fi
3007 else
3008 ac_cpp_err=yes
3009 fi
3010 if test -z "$ac_cpp_err"; then
3011 ac_header_preproc=yes
3012 else
3013 echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3015
3016 ac_header_preproc=no
3017 fi
3018 rm -f conftest.err conftest.$ac_ext
3019 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3020 echo "${ECHO_T}$ac_header_preproc" >&6
3021
3022 # So? What about this header?
3023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3024 yes:no: )
3025 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3026 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3027 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3028 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3029 ac_header_preproc=yes
3030 ;;
3031 no:yes:* )
3032 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3033 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3034 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3035 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3036 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3037 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3038 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3039 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3040 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3041 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3042 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3043 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3044 (
3045 cat <<\_ASBOX
3046 ## ----------------------------------- ##
3047 ## Report this to bug-readline@gnu.org ##
3048 ## ----------------------------------- ##
3049 _ASBOX
3050 ) |
3051 sed "s/^/$as_me: WARNING: /" >&2
3052 ;;
3053 esac
3054 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3055 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3056 if test "${ac_cv_header_minix_config_h+set}" = set; then
3057 echo $ECHO_N "(cached) $ECHO_C" >&6
3058 else
3059 ac_cv_header_minix_config_h=$ac_header_preproc
3060 fi
3061 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3062 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3063
3064 fi
3065 if test $ac_cv_header_minix_config_h = yes; then
3066 MINIX=yes
3067 else
3068 MINIX=
3069 fi
3070
3071
3072 if test "$MINIX" = yes; then
3073
3074 cat >>confdefs.h <<\_ACEOF
3075 #define _POSIX_SOURCE 1
3076 _ACEOF
3077
3078
3079 cat >>confdefs.h <<\_ACEOF
3080 #define _POSIX_1_SOURCE 2
3081 _ACEOF
3082
3083
3084 cat >>confdefs.h <<\_ACEOF
3085 #define _MINIX 1
3086 _ACEOF
3087
3088 fi
3089
3090
3091
3092 if test "x$cross_compiling" = "xyes"; then
3093 case "${host}" in
3094 *-cygwin*)
3095 cross_cache=${srcdir}/cross-build/cygwin.cache
3096 LOCAL_CFLAGS="$LOCAL_CFLAGS -I${srcdir}/../libtermcap"
3097 ;;
3098 *-mingw32*)
3099 cross_cache=${srcdir}/cross-build/mingw.cache
3100 ;;
3101 *) echo "configure: cross-compiling for a non-cygwin target is not supported" >&2
3102 ;;
3103 esac
3104
3105 if test "x$cross_cache" != "x"; then
3106 if test -r "${cross_cache}"; then
3107 echo "loading cross-build cache file ${cross_cache}"
3108 . ${cross_cache}
3109 fi
3110 unset cross_cache
3111 fi
3112 fi
3113
3114 if test -z "$CC_FOR_BUILD"; then
3115 if test "x$cross_compiling" = "xno"; then
3116 CC_FOR_BUILD='$(CC)'
3117 else
3118 CC_FOR_BUILD=gcc
3119 fi
3120 fi
3121
3122
3123
3124 # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
3125 test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
3126
3127 if test $ac_cv_c_compiler_gnu = yes; then
3128 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3129 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3130 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3131 echo $ECHO_N "(cached) $ECHO_C" >&6
3132 else
3133 ac_pattern="Autoconf.*'x'"
3134 cat >conftest.$ac_ext <<_ACEOF
3135 /* confdefs.h. */
3136 _ACEOF
3137 cat confdefs.h >>conftest.$ac_ext
3138 cat >>conftest.$ac_ext <<_ACEOF
3139 /* end confdefs.h. */
3140 #include <sgtty.h>
3141 Autoconf TIOCGETP
3142 _ACEOF
3143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3144 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3145 ac_cv_prog_gcc_traditional=yes
3146 else
3147 ac_cv_prog_gcc_traditional=no
3148 fi
3149 rm -f conftest*
3150
3151
3152 if test $ac_cv_prog_gcc_traditional = no; then
3153 cat >conftest.$ac_ext <<_ACEOF
3154 /* confdefs.h. */
3155 _ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3159 #include <termio.h>
3160 Autoconf TCGETA
3161 _ACEOF
3162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3163 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3164 ac_cv_prog_gcc_traditional=yes
3165 fi
3166 rm -f conftest*
3167
3168 fi
3169 fi
3170 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3171 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3172 if test $ac_cv_prog_gcc_traditional = yes; then
3173 CC="$CC -traditional"
3174 fi
3175 fi
3176
3177 # Find a good install program. We prefer a C program (faster),
3178 # so one script is as good as another. But avoid the broken or
3179 # incompatible versions:
3180 # SysV /etc/install, /usr/sbin/install
3181 # SunOS /usr/etc/install
3182 # IRIX /sbin/install
3183 # AIX /bin/install
3184 # AmigaOS /C/install, which installs bootblocks on floppy discs
3185 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3186 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3187 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3188 # OS/2's system install, which has a completely different semantic
3189 # ./install, which can be erroneously created by make from ./install.sh.
3190 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3191 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3192 if test -z "$INSTALL"; then
3193 if test "${ac_cv_path_install+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3198 do
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
3201 # Account for people who put trailing slashes in PATH elements.
3202 case $as_dir/ in
3203 ./ | .// | /cC/* | \
3204 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3205 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3206 /usr/ucb/* ) ;;
3207 *)
3208 # OSF1 and SCO ODT 3.0 have their own names for install.
3209 # Don't use installbsd from OSF since it installs stuff as root
3210 # by default.
3211 for ac_prog in ginstall scoinst install; do
3212 for ac_exec_ext in '' $ac_executable_extensions; do
3213 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3214 if test $ac_prog = install &&
3215 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3216 # AIX install. It has an incompatible calling convention.
3217 :
3218 elif test $ac_prog = install &&
3219 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3220 # program-specific install script used by HP pwplus--don't use.
3221 :
3222 else
3223 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3224 break 3
3225 fi
3226 fi
3227 done
3228 done
3229 ;;
3230 esac
3231 done
3232
3233
3234 fi
3235 if test "${ac_cv_path_install+set}" = set; then
3236 INSTALL=$ac_cv_path_install
3237 else
3238 # As a last resort, use the slow shell script. We don't cache a
3239 # path for INSTALL within a source directory, because that will
3240 # break other packages using the cache if that directory is
3241 # removed, or if the path is relative.
3242 INSTALL=$ac_install_sh
3243 fi
3244 fi
3245 echo "$as_me:$LINENO: result: $INSTALL" >&5
3246 echo "${ECHO_T}$INSTALL" >&6
3247
3248 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3249 # It thinks the first close brace ends the variable substitution.
3250 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3251
3252 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3253
3254 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3255
3256 # Extract the first word of "ar", so it can be a program name with args.
3257 set dummy ar; ac_word=$2
3258 echo "$as_me:$LINENO: checking for $ac_word" >&5
3259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3260 if test "${ac_cv_prog_AR+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3262 else
3263 if test -n "$AR"; then
3264 ac_cv_prog_AR="$AR" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269 IFS=$as_save_IFS
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3273 ac_cv_prog_AR=""
3274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3275 break 2
3276 fi
3277 done
3278 done
3279
3280 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3281 fi
3282 fi
3283 AR=$ac_cv_prog_AR
3284 if test -n "$AR"; then
3285 echo "$as_me:$LINENO: result: $AR" >&5
3286 echo "${ECHO_T}$AR" >&6
3287 else
3288 echo "$as_me:$LINENO: result: no" >&5
3289 echo "${ECHO_T}no" >&6
3290 fi
3291
3292 test -n "$ARFLAGS" || ARFLAGS="cr"
3293 if test -n "$ac_tool_prefix"; then
3294 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3295 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3296 echo "$as_me:$LINENO: checking for $ac_word" >&5
3297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3298 if test "${ac_cv_prog_RANLIB+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301 if test -n "$RANLIB"; then
3302 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3303 else
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 for as_dir in $PATH
3306 do
3307 IFS=$as_save_IFS
3308 test -z "$as_dir" && as_dir=.
3309 for ac_exec_ext in '' $ac_executable_extensions; do
3310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3311 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 break 2
3314 fi
3315 done
3316 done
3317
3318 fi
3319 fi
3320 RANLIB=$ac_cv_prog_RANLIB
3321 if test -n "$RANLIB"; then
3322 echo "$as_me:$LINENO: result: $RANLIB" >&5
3323 echo "${ECHO_T}$RANLIB" >&6
3324 else
3325 echo "$as_me:$LINENO: result: no" >&5
3326 echo "${ECHO_T}no" >&6
3327 fi
3328
3329 fi
3330 if test -z "$ac_cv_prog_RANLIB"; then
3331 ac_ct_RANLIB=$RANLIB
3332 # Extract the first word of "ranlib", so it can be a program name with args.
3333 set dummy ranlib; ac_word=$2
3334 echo "$as_me:$LINENO: checking for $ac_word" >&5
3335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3336 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339 if test -n "$ac_ct_RANLIB"; then
3340 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3341 else
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 for as_dir in $PATH
3344 do
3345 IFS=$as_save_IFS
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3349 ac_cv_prog_ac_ct_RANLIB="ranlib"
3350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 break 2
3352 fi
3353 done
3354 done
3355
3356 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3357 fi
3358 fi
3359 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3360 if test -n "$ac_ct_RANLIB"; then
3361 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3362 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3363 else
3364 echo "$as_me:$LINENO: result: no" >&5
3365 echo "${ECHO_T}no" >&6
3366 fi
3367
3368 RANLIB=$ac_ct_RANLIB
3369 else
3370 RANLIB="$ac_cv_prog_RANLIB"
3371 fi
3372
3373
3374 MAKE_SHELL=/bin/sh
3375
3376
3377 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3378 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3379 if test "${ac_cv_c_const+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382 cat >conftest.$ac_ext <<_ACEOF
3383 /* confdefs.h. */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3388
3389 int
3390 main ()
3391 {
3392 /* FIXME: Include the comments suggested by Paul. */
3393 #ifndef __cplusplus
3394 /* Ultrix mips cc rejects this. */
3395 typedef int charset[2];
3396 const charset x;
3397 /* SunOS 4.1.1 cc rejects this. */
3398 char const *const *ccp;
3399 char **p;
3400 /* NEC SVR4.0.2 mips cc rejects this. */
3401 struct point {int x, y;};
3402 static struct point const zero = {0,0};
3403 /* AIX XL C 1.02.0.0 rejects this.
3404 It does not let you subtract one const X* pointer from another in
3405 an arm of an if-expression whose if-part is not a constant
3406 expression */
3407 const char *g = "string";
3408 ccp = &g + (g ? g-g : 0);
3409 /* HPUX 7.0 cc rejects these. */
3410 ++ccp;
3411 p = (char**) ccp;
3412 ccp = (char const *const *) p;
3413 { /* SCO 3.2v4 cc rejects this. */
3414 char *t;
3415 char const *s = 0 ? (char *) 0 : (char const *) 0;
3416
3417 *t++ = 0;
3418 }
3419 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3420 int x[] = {25, 17};
3421 const int *foo = &x[0];
3422 ++foo;
3423 }
3424 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3425 typedef const int *iptr;
3426 iptr p = 0;
3427 ++p;
3428 }
3429 { /* AIX XL C 1.02.0.0 rejects this saying
3430 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3431 struct s { int j; const int *ap[3]; };
3432 struct s *b; b->j = 5;
3433 }
3434 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3435 const int foo = 10;
3436 }
3437 #endif
3438
3439 ;
3440 return 0;
3441 }
3442 _ACEOF
3443 rm -f conftest.$ac_objext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445 (eval $ac_compile) 2>conftest.er1
3446 ac_status=$?
3447 grep -v '^ *+' conftest.er1 >conftest.err
3448 rm -f conftest.er1
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454 (eval $ac_try) 2>&5
3455 ac_status=$?
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; } &&
3458 { ac_try='test -s conftest.$ac_objext'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460 (eval $ac_try) 2>&5
3461 ac_status=$?
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; }; then
3464 ac_cv_c_const=yes
3465 else
3466 echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3468
3469 ac_cv_c_const=no
3470 fi
3471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3472 fi
3473 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3474 echo "${ECHO_T}$ac_cv_c_const" >&6
3475 if test $ac_cv_c_const = no; then
3476
3477 cat >>confdefs.h <<\_ACEOF
3478 #define const
3479 _ACEOF
3480
3481 fi
3482
3483 echo "$as_me:$LINENO: checking for function prototypes" >&5
3484 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3485 if test "$ac_cv_prog_cc_stdc" != no; then
3486 echo "$as_me:$LINENO: result: yes" >&5
3487 echo "${ECHO_T}yes" >&6
3488
3489 cat >>confdefs.h <<\_ACEOF
3490 #define PROTOTYPES 1
3491 _ACEOF
3492
3493
3494 cat >>confdefs.h <<\_ACEOF
3495 #define __PROTOTYPES 1
3496 _ACEOF
3497
3498 else
3499 echo "$as_me:$LINENO: result: no" >&5
3500 echo "${ECHO_T}no" >&6
3501 fi
3502
3503
3504 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
3505 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
3506 if test "${ac_cv_c_char_unsigned+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509 cat >conftest.$ac_ext <<_ACEOF
3510 /* confdefs.h. */
3511 _ACEOF
3512 cat confdefs.h >>conftest.$ac_ext
3513 cat >>conftest.$ac_ext <<_ACEOF
3514 /* end confdefs.h. */
3515 $ac_includes_default
3516 int
3517 main ()
3518 {
3519 static int test_array [1 - 2 * !(((char) -1) < 0)];
3520 test_array [0] = 0
3521
3522 ;
3523 return 0;
3524 }
3525 _ACEOF
3526 rm -f conftest.$ac_objext
3527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3528 (eval $ac_compile) 2>conftest.er1
3529 ac_status=$?
3530 grep -v '^ *+' conftest.er1 >conftest.err
3531 rm -f conftest.er1
3532 cat conftest.err >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
3535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537 (eval $ac_try) 2>&5
3538 ac_status=$?
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }; } &&
3541 { ac_try='test -s conftest.$ac_objext'
3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543 (eval $ac_try) 2>&5
3544 ac_status=$?
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; }; then
3547 ac_cv_c_char_unsigned=no
3548 else
3549 echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3551
3552 ac_cv_c_char_unsigned=yes
3553 fi
3554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3555 fi
3556 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
3557 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
3558 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3559 cat >>confdefs.h <<\_ACEOF
3560 #define __CHAR_UNSIGNED__ 1
3561 _ACEOF
3562
3563 fi
3564
3565
3566 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3567 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3568 if test "${ac_cv_type_signal+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 else
3571 cat >conftest.$ac_ext <<_ACEOF
3572 /* confdefs.h. */
3573 _ACEOF
3574 cat confdefs.h >>conftest.$ac_ext
3575 cat >>conftest.$ac_ext <<_ACEOF
3576 /* end confdefs.h. */
3577 #include <sys/types.h>
3578 #include <signal.h>
3579 #ifdef signal
3580 # undef signal
3581 #endif
3582 #ifdef __cplusplus
3583 extern "C" void (*signal (int, void (*)(int)))(int);
3584 #else
3585 void (*signal ()) ();
3586 #endif
3587
3588 int
3589 main ()
3590 {
3591 int i;
3592 ;
3593 return 0;
3594 }
3595 _ACEOF
3596 rm -f conftest.$ac_objext
3597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3598 (eval $ac_compile) 2>conftest.er1
3599 ac_status=$?
3600 grep -v '^ *+' conftest.er1 >conftest.err
3601 rm -f conftest.er1
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } &&
3605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607 (eval $ac_try) 2>&5
3608 ac_status=$?
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }; } &&
3611 { ac_try='test -s conftest.$ac_objext'
3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613 (eval $ac_try) 2>&5
3614 ac_status=$?
3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616 (exit $ac_status); }; }; then
3617 ac_cv_type_signal=void
3618 else
3619 echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622 ac_cv_type_signal=int
3623 fi
3624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3625 fi
3626 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3627 echo "${ECHO_T}$ac_cv_type_signal" >&6
3628
3629 cat >>confdefs.h <<_ACEOF
3630 #define RETSIGTYPE $ac_cv_type_signal
3631 _ACEOF
3632
3633
3634
3635 echo "$as_me:$LINENO: checking for size_t" >&5
3636 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3637 if test "${ac_cv_type_size_t+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 else
3640 cat >conftest.$ac_ext <<_ACEOF
3641 /* confdefs.h. */
3642 _ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3646 $ac_includes_default
3647 int
3648 main ()
3649 {
3650 if ((size_t *) 0)
3651 return 0;
3652 if (sizeof (size_t))
3653 return 0;
3654 ;
3655 return 0;
3656 }
3657 _ACEOF
3658 rm -f conftest.$ac_objext
3659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3660 (eval $ac_compile) 2>conftest.er1
3661 ac_status=$?
3662 grep -v '^ *+' conftest.er1 >conftest.err
3663 rm -f conftest.er1
3664 cat conftest.err >&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } &&
3667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 (eval $ac_try) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; } &&
3673 { ac_try='test -s conftest.$ac_objext'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 (eval $ac_try) 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3679 ac_cv_type_size_t=yes
3680 else
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3683
3684 ac_cv_type_size_t=no
3685 fi
3686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3687 fi
3688 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3689 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3690 if test $ac_cv_type_size_t = yes; then
3691 :
3692 else
3693
3694 cat >>confdefs.h <<_ACEOF
3695 #define size_t unsigned
3696 _ACEOF
3697
3698 fi
3699
3700 echo "$as_me:$LINENO: checking for ssize_t" >&5
3701 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
3702 if test "${ac_cv_type_ssize_t+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705 cat >conftest.$ac_ext <<_ACEOF
3706 /* confdefs.h. */
3707 _ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h. */
3711 $ac_includes_default
3712 int
3713 main ()
3714 {
3715 if ((ssize_t *) 0)
3716 return 0;
3717 if (sizeof (ssize_t))
3718 return 0;
3719 ;
3720 return 0;
3721 }
3722 _ACEOF
3723 rm -f conftest.$ac_objext
3724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3725 (eval $ac_compile) 2>conftest.er1
3726 ac_status=$?
3727 grep -v '^ *+' conftest.er1 >conftest.err
3728 rm -f conftest.er1
3729 cat conftest.err >&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } &&
3732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3734 (eval $ac_try) 2>&5
3735 ac_status=$?
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); }; } &&
3738 { ac_try='test -s conftest.$ac_objext'
3739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3740 (eval $ac_try) 2>&5
3741 ac_status=$?
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); }; }; then
3744 ac_cv_type_ssize_t=yes
3745 else
3746 echo "$as_me: failed program was:" >&5
3747 sed 's/^/| /' conftest.$ac_ext >&5
3748
3749 ac_cv_type_ssize_t=no
3750 fi
3751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3752 fi
3753 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
3754 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
3755 if test $ac_cv_type_ssize_t = yes; then
3756 :
3757 else
3758
3759 cat >>confdefs.h <<_ACEOF
3760 #define ssize_t int
3761 _ACEOF
3762
3763 fi
3764
3765
3766 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3767 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3768 if test "${ac_cv_header_stdc+set}" = set; then
3769 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771 cat >conftest.$ac_ext <<_ACEOF
3772 /* confdefs.h. */
3773 _ACEOF
3774 cat confdefs.h >>conftest.$ac_ext
3775 cat >>conftest.$ac_ext <<_ACEOF
3776 /* end confdefs.h. */
3777 #include <stdlib.h>
3778 #include <stdarg.h>
3779 #include <string.h>
3780 #include <float.h>
3781
3782 int
3783 main ()
3784 {
3785
3786 ;
3787 return 0;
3788 }
3789 _ACEOF
3790 rm -f conftest.$ac_objext
3791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3792 (eval $ac_compile) 2>conftest.er1
3793 ac_status=$?
3794 grep -v '^ *+' conftest.er1 >conftest.err
3795 rm -f conftest.er1
3796 cat conftest.err >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } &&
3799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 (eval $ac_try) 2>&5
3802 ac_status=$?
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; } &&
3805 { ac_try='test -s conftest.$ac_objext'
3806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807 (eval $ac_try) 2>&5
3808 ac_status=$?
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; }; then
3811 ac_cv_header_stdc=yes
3812 else
3813 echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3815
3816 ac_cv_header_stdc=no
3817 fi
3818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3819
3820 if test $ac_cv_header_stdc = yes; then
3821 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3822 cat >conftest.$ac_ext <<_ACEOF
3823 /* confdefs.h. */
3824 _ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3828 #include <string.h>
3829
3830 _ACEOF
3831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3832 $EGREP "memchr" >/dev/null 2>&1; then
3833 :
3834 else
3835 ac_cv_header_stdc=no
3836 fi
3837 rm -f conftest*
3838
3839 fi
3840
3841 if test $ac_cv_header_stdc = yes; then
3842 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3843 cat >conftest.$ac_ext <<_ACEOF
3844 /* confdefs.h. */
3845 _ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3849 #include <stdlib.h>
3850
3851 _ACEOF
3852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3853 $EGREP "free" >/dev/null 2>&1; then
3854 :
3855 else
3856 ac_cv_header_stdc=no
3857 fi
3858 rm -f conftest*
3859
3860 fi
3861
3862 if test $ac_cv_header_stdc = yes; then
3863 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3864 if test "$cross_compiling" = yes; then
3865 :
3866 else
3867 cat >conftest.$ac_ext <<_ACEOF
3868 /* confdefs.h. */
3869 _ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h. */
3873 #include <ctype.h>
3874 #if ((' ' & 0x0FF) == 0x020)
3875 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3876 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3877 #else
3878 # define ISLOWER(c) \
3879 (('a' <= (c) && (c) <= 'i') \
3880 || ('j' <= (c) && (c) <= 'r') \
3881 || ('s' <= (c) && (c) <= 'z'))
3882 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3883 #endif
3884
3885 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3886 int
3887 main ()
3888 {
3889 int i;
3890 for (i = 0; i < 256; i++)
3891 if (XOR (islower (i), ISLOWER (i))
3892 || toupper (i) != TOUPPER (i))
3893 exit(2);
3894 exit (0);
3895 }
3896 _ACEOF
3897 rm -f conftest$ac_exeext
3898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3899 (eval $ac_link) 2>&5
3900 ac_status=$?
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
3908 :
3909 else
3910 echo "$as_me: program exited with status $ac_status" >&5
3911 echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.$ac_ext >&5
3913
3914 ( exit $ac_status )
3915 ac_cv_header_stdc=no
3916 fi
3917 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3918 fi
3919 fi
3920 fi
3921 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3922 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3923 if test $ac_cv_header_stdc = yes; then
3924
3925 cat >>confdefs.h <<\_ACEOF
3926 #define STDC_HEADERS 1
3927 _ACEOF
3928
3929 fi
3930
3931
3932 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
3933 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
3934 if test "${ac_cv_header_stat_broken+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937 cat >conftest.$ac_ext <<_ACEOF
3938 /* confdefs.h. */
3939 _ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3943 #include <sys/types.h>
3944 #include <sys/stat.h>
3945
3946 #if defined(S_ISBLK) && defined(S_IFDIR)
3947 # if S_ISBLK (S_IFDIR)
3948 You lose.
3949 # endif
3950 #endif
3951
3952 #if defined(S_ISBLK) && defined(S_IFCHR)
3953 # if S_ISBLK (S_IFCHR)
3954 You lose.
3955 # endif
3956 #endif
3957
3958 #if defined(S_ISLNK) && defined(S_IFREG)
3959 # if S_ISLNK (S_IFREG)
3960 You lose.
3961 # endif
3962 #endif
3963
3964 #if defined(S_ISSOCK) && defined(S_IFREG)
3965 # if S_ISSOCK (S_IFREG)
3966 You lose.
3967 # endif
3968 #endif
3969
3970 _ACEOF
3971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3972 $EGREP "You lose" >/dev/null 2>&1; then
3973 ac_cv_header_stat_broken=yes
3974 else
3975 ac_cv_header_stat_broken=no
3976 fi
3977 rm -f conftest*
3978
3979 fi
3980 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
3981 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
3982 if test $ac_cv_header_stat_broken = yes; then
3983
3984 cat >>confdefs.h <<\_ACEOF
3985 #define STAT_MACROS_BROKEN 1
3986 _ACEOF
3987
3988 fi
3989
3990
3991
3992
3993
3994
3995 ac_header_dirent=no
3996 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3997 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3998 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3999 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
4000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 else
4003 cat >conftest.$ac_ext <<_ACEOF
4004 /* confdefs.h. */
4005 _ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4009 #include <sys/types.h>
4010 #include <$ac_hdr>
4011
4012 int
4013 main ()
4014 {
4015 if ((DIR *) 0)
4016 return 0;
4017 ;
4018 return 0;
4019 }
4020 _ACEOF
4021 rm -f conftest.$ac_objext
4022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4023 (eval $ac_compile) 2>conftest.er1
4024 ac_status=$?
4025 grep -v '^ *+' conftest.er1 >conftest.err
4026 rm -f conftest.er1
4027 cat conftest.err >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032 (eval $ac_try) 2>&5
4033 ac_status=$?
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; } &&
4036 { ac_try='test -s conftest.$ac_objext'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 (eval $ac_try) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; }; then
4042 eval "$as_ac_Header=yes"
4043 else
4044 echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4046
4047 eval "$as_ac_Header=no"
4048 fi
4049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4050 fi
4051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4054 cat >>confdefs.h <<_ACEOF
4055 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4056 _ACEOF
4057
4058 ac_header_dirent=$ac_hdr; break
4059 fi
4060
4061 done
4062 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4063 if test $ac_header_dirent = dirent.h; then
4064 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4065 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4066 if test "${ac_cv_search_opendir+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4068 else
4069 ac_func_search_save_LIBS=$LIBS
4070 ac_cv_search_opendir=no
4071 cat >conftest.$ac_ext <<_ACEOF
4072 /* confdefs.h. */
4073 _ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h. */
4077
4078 /* Override any gcc2 internal prototype to avoid an error. */
4079 #ifdef __cplusplus
4080 extern "C"
4081 #endif
4082 /* We use char because int might match the return type of a gcc2
4083 builtin and then its argument prototype would still apply. */
4084 char opendir ();
4085 int
4086 main ()
4087 {
4088 opendir ();
4089 ;
4090 return 0;
4091 }
4092 _ACEOF
4093 rm -f conftest.$ac_objext conftest$ac_exeext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4095 (eval $ac_link) 2>conftest.er1
4096 ac_status=$?
4097 grep -v '^ *+' conftest.er1 >conftest.err
4098 rm -f conftest.er1
4099 cat conftest.err >&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } &&
4102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104 (eval $ac_try) 2>&5
4105 ac_status=$?
4106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); }; } &&
4108 { ac_try='test -s conftest$ac_exeext'
4109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110 (eval $ac_try) 2>&5
4111 ac_status=$?
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; }; then
4114 ac_cv_search_opendir="none required"
4115 else
4116 echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.$ac_ext >&5
4118
4119 fi
4120 rm -f conftest.err conftest.$ac_objext \
4121 conftest$ac_exeext conftest.$ac_ext
4122 if test "$ac_cv_search_opendir" = no; then
4123 for ac_lib in dir; do
4124 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4125 cat >conftest.$ac_ext <<_ACEOF
4126 /* confdefs.h. */
4127 _ACEOF
4128 cat confdefs.h >>conftest.$ac_ext
4129 cat >>conftest.$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4131
4132 /* Override any gcc2 internal prototype to avoid an error. */
4133 #ifdef __cplusplus
4134 extern "C"
4135 #endif
4136 /* We use char because int might match the return type of a gcc2
4137 builtin and then its argument prototype would still apply. */
4138 char opendir ();
4139 int
4140 main ()
4141 {
4142 opendir ();
4143 ;
4144 return 0;
4145 }
4146 _ACEOF
4147 rm -f conftest.$ac_objext conftest$ac_exeext
4148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4149 (eval $ac_link) 2>conftest.er1
4150 ac_status=$?
4151 grep -v '^ *+' conftest.er1 >conftest.err
4152 rm -f conftest.er1
4153 cat conftest.err >&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } &&
4156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4158 (eval $ac_try) 2>&5
4159 ac_status=$?
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; } &&
4162 { ac_try='test -s conftest$ac_exeext'
4163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164 (eval $ac_try) 2>&5
4165 ac_status=$?
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
4168 ac_cv_search_opendir="-l$ac_lib"
4169 break
4170 else
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4173
4174 fi
4175 rm -f conftest.err conftest.$ac_objext \
4176 conftest$ac_exeext conftest.$ac_ext
4177 done
4178 fi
4179 LIBS=$ac_func_search_save_LIBS
4180 fi
4181 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4182 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4183 if test "$ac_cv_search_opendir" != no; then
4184 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4185
4186 fi
4187
4188 else
4189 echo "$as_me:$LINENO: checking for library containing opendir" >&5
4190 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
4191 if test "${ac_cv_search_opendir+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 else
4194 ac_func_search_save_LIBS=$LIBS
4195 ac_cv_search_opendir=no
4196 cat >conftest.$ac_ext <<_ACEOF
4197 /* confdefs.h. */
4198 _ACEOF
4199 cat confdefs.h >>conftest.$ac_ext
4200 cat >>conftest.$ac_ext <<_ACEOF
4201 /* end confdefs.h. */
4202
4203 /* Override any gcc2 internal prototype to avoid an error. */
4204 #ifdef __cplusplus
4205 extern "C"
4206 #endif
4207 /* We use char because int might match the return type of a gcc2
4208 builtin and then its argument prototype would still apply. */
4209 char opendir ();
4210 int
4211 main ()
4212 {
4213 opendir ();
4214 ;
4215 return 0;
4216 }
4217 _ACEOF
4218 rm -f conftest.$ac_objext conftest$ac_exeext
4219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4220 (eval $ac_link) 2>conftest.er1
4221 ac_status=$?
4222 grep -v '^ *+' conftest.er1 >conftest.err
4223 rm -f conftest.er1
4224 cat conftest.err >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } &&
4227 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4229 (eval $ac_try) 2>&5
4230 ac_status=$?
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; } &&
4233 { ac_try='test -s conftest$ac_exeext'
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 (eval $ac_try) 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
4239 ac_cv_search_opendir="none required"
4240 else
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4243
4244 fi
4245 rm -f conftest.err conftest.$ac_objext \
4246 conftest$ac_exeext conftest.$ac_ext
4247 if test "$ac_cv_search_opendir" = no; then
4248 for ac_lib in x; do
4249 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4250 cat >conftest.$ac_ext <<_ACEOF
4251 /* confdefs.h. */
4252 _ACEOF
4253 cat confdefs.h >>conftest.$ac_ext
4254 cat >>conftest.$ac_ext <<_ACEOF
4255 /* end confdefs.h. */
4256
4257 /* Override any gcc2 internal prototype to avoid an error. */
4258 #ifdef __cplusplus
4259 extern "C"
4260 #endif
4261 /* We use char because int might match the return type of a gcc2
4262 builtin and then its argument prototype would still apply. */
4263 char opendir ();
4264 int
4265 main ()
4266 {
4267 opendir ();
4268 ;
4269 return 0;
4270 }
4271 _ACEOF
4272 rm -f conftest.$ac_objext conftest$ac_exeext
4273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4274 (eval $ac_link) 2>conftest.er1
4275 ac_status=$?
4276 grep -v '^ *+' conftest.er1 >conftest.err
4277 rm -f conftest.er1
4278 cat conftest.err >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } &&
4281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283 (eval $ac_try) 2>&5
4284 ac_status=$?
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; } &&
4287 { ac_try='test -s conftest$ac_exeext'
4288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289 (eval $ac_try) 2>&5
4290 ac_status=$?
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; }; then
4293 ac_cv_search_opendir="-l$ac_lib"
4294 break
4295 else
4296 echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4298
4299 fi
4300 rm -f conftest.err conftest.$ac_objext \
4301 conftest$ac_exeext conftest.$ac_ext
4302 done
4303 fi
4304 LIBS=$ac_func_search_save_LIBS
4305 fi
4306 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4307 echo "${ECHO_T}$ac_cv_search_opendir" >&6
4308 if test "$ac_cv_search_opendir" != no; then
4309 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
4310
4311 fi
4312
4313 fi
4314
4315
4316
4317
4318
4319 for ac_func in fcntl kill lstat
4320 do
4321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4322 echo "$as_me:$LINENO: checking for $ac_func" >&5
4323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4324 if eval "test \"\${$as_ac_var+set}\" = set"; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 else
4327 cat >conftest.$ac_ext <<_ACEOF
4328 /* confdefs.h. */
4329 _ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4335 #define $ac_func innocuous_$ac_func
4336
4337 /* System header to define __stub macros and hopefully few prototypes,
4338 which can conflict with char $ac_func (); below.
4339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4340 <limits.h> exists even on freestanding compilers. */
4341
4342 #ifdef __STDC__
4343 # include <limits.h>
4344 #else
4345 # include <assert.h>
4346 #endif
4347
4348 #undef $ac_func
4349
4350 /* Override any gcc2 internal prototype to avoid an error. */
4351 #ifdef __cplusplus
4352 extern "C"
4353 {
4354 #endif
4355 /* We use char because int might match the return type of a gcc2
4356 builtin and then its argument prototype would still apply. */
4357 char $ac_func ();
4358 /* The GNU C library defines this for functions which it implements
4359 to always fail with ENOSYS. Some functions are actually named
4360 something starting with __ and the normal name is an alias. */
4361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4362 choke me
4363 #else
4364 char (*f) () = $ac_func;
4365 #endif
4366 #ifdef __cplusplus
4367 }
4368 #endif
4369
4370 int
4371 main ()
4372 {
4373 return f != $ac_func;
4374 ;
4375 return 0;
4376 }
4377 _ACEOF
4378 rm -f conftest.$ac_objext conftest$ac_exeext
4379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4380 (eval $ac_link) 2>conftest.er1
4381 ac_status=$?
4382 grep -v '^ *+' conftest.er1 >conftest.err
4383 rm -f conftest.er1
4384 cat conftest.err >&5
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); } &&
4387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 (eval $ac_try) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; } &&
4393 { ac_try='test -s conftest$ac_exeext'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 (eval $ac_try) 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4399 eval "$as_ac_var=yes"
4400 else
4401 echo "$as_me: failed program was:" >&5
4402 sed 's/^/| /' conftest.$ac_ext >&5
4403
4404 eval "$as_ac_var=no"
4405 fi
4406 rm -f conftest.err conftest.$ac_objext \
4407 conftest$ac_exeext conftest.$ac_ext
4408 fi
4409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4411 if test `eval echo '${'$as_ac_var'}'` = yes; then
4412 cat >>confdefs.h <<_ACEOF
4413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4414 _ACEOF
4415
4416 fi
4417 done
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428 for ac_func in memmove putenv select setenv setlocale \
4429 strcasecmp strpbrk tcgetattr vsnprintf
4430 do
4431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4432 echo "$as_me:$LINENO: checking for $ac_func" >&5
4433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4434 if eval "test \"\${$as_ac_var+set}\" = set"; then
4435 echo $ECHO_N "(cached) $ECHO_C" >&6
4436 else
4437 cat >conftest.$ac_ext <<_ACEOF
4438 /* confdefs.h. */
4439 _ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4442 /* end confdefs.h. */
4443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4445 #define $ac_func innocuous_$ac_func
4446
4447 /* System header to define __stub macros and hopefully few prototypes,
4448 which can conflict with char $ac_func (); below.
4449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4450 <limits.h> exists even on freestanding compilers. */
4451
4452 #ifdef __STDC__
4453 # include <limits.h>
4454 #else
4455 # include <assert.h>
4456 #endif
4457
4458 #undef $ac_func
4459
4460 /* Override any gcc2 internal prototype to avoid an error. */
4461 #ifdef __cplusplus
4462 extern "C"
4463 {
4464 #endif
4465 /* We use char because int might match the return type of a gcc2
4466 builtin and then its argument prototype would still apply. */
4467 char $ac_func ();
4468 /* The GNU C library defines this for functions which it implements
4469 to always fail with ENOSYS. Some functions are actually named
4470 something starting with __ and the normal name is an alias. */
4471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4472 choke me
4473 #else
4474 char (*f) () = $ac_func;
4475 #endif
4476 #ifdef __cplusplus
4477 }
4478 #endif
4479
4480 int
4481 main ()
4482 {
4483 return f != $ac_func;
4484 ;
4485 return 0;
4486 }
4487 _ACEOF
4488 rm -f conftest.$ac_objext conftest$ac_exeext
4489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4490 (eval $ac_link) 2>conftest.er1
4491 ac_status=$?
4492 grep -v '^ *+' conftest.er1 >conftest.err
4493 rm -f conftest.er1
4494 cat conftest.err >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); } &&
4497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4499 (eval $ac_try) 2>&5
4500 ac_status=$?
4501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); }; } &&
4503 { ac_try='test -s conftest$ac_exeext'
4504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4505 (eval $ac_try) 2>&5
4506 ac_status=$?
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); }; }; then
4509 eval "$as_ac_var=yes"
4510 else
4511 echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4513
4514 eval "$as_ac_var=no"
4515 fi
4516 rm -f conftest.err conftest.$ac_objext \
4517 conftest$ac_exeext conftest.$ac_ext
4518 fi
4519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4520 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4521 if test `eval echo '${'$as_ac_var'}'` = yes; then
4522 cat >>confdefs.h <<_ACEOF
4523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4524 _ACEOF
4525
4526 fi
4527 done
4528
4529
4530
4531 for ac_func in isascii isxdigit
4532 do
4533 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4534 echo "$as_me:$LINENO: checking for $ac_func" >&5
4535 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4536 if eval "test \"\${$as_ac_var+set}\" = set"; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 else
4539 cat >conftest.$ac_ext <<_ACEOF
4540 /* confdefs.h. */
4541 _ACEOF
4542 cat confdefs.h >>conftest.$ac_ext
4543 cat >>conftest.$ac_ext <<_ACEOF
4544 /* end confdefs.h. */
4545 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4547 #define $ac_func innocuous_$ac_func
4548
4549 /* System header to define __stub macros and hopefully few prototypes,
4550 which can conflict with char $ac_func (); below.
4551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4552 <limits.h> exists even on freestanding compilers. */
4553
4554 #ifdef __STDC__
4555 # include <limits.h>
4556 #else
4557 # include <assert.h>
4558 #endif
4559
4560 #undef $ac_func
4561
4562 /* Override any gcc2 internal prototype to avoid an error. */
4563 #ifdef __cplusplus
4564 extern "C"
4565 {
4566 #endif
4567 /* We use char because int might match the return type of a gcc2
4568 builtin and then its argument prototype would still apply. */
4569 char $ac_func ();
4570 /* The GNU C library defines this for functions which it implements
4571 to always fail with ENOSYS. Some functions are actually named
4572 something starting with __ and the normal name is an alias. */
4573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4574 choke me
4575 #else
4576 char (*f) () = $ac_func;
4577 #endif
4578 #ifdef __cplusplus
4579 }
4580 #endif
4581
4582 int
4583 main ()
4584 {
4585 return f != $ac_func;
4586 ;
4587 return 0;
4588 }
4589 _ACEOF
4590 rm -f conftest.$ac_objext conftest$ac_exeext
4591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4592 (eval $ac_link) 2>conftest.er1
4593 ac_status=$?
4594 grep -v '^ *+' conftest.er1 >conftest.err
4595 rm -f conftest.er1
4596 cat conftest.err >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); } &&
4599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 (eval $ac_try) 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; } &&
4605 { ac_try='test -s conftest$ac_exeext'
4606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 (eval $ac_try) 2>&5
4608 ac_status=$?
4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610 (exit $ac_status); }; }; then
4611 eval "$as_ac_var=yes"
4612 else
4613 echo "$as_me: failed program was:" >&5
4614 sed 's/^/| /' conftest.$ac_ext >&5
4615
4616 eval "$as_ac_var=no"
4617 fi
4618 rm -f conftest.err conftest.$ac_objext \
4619 conftest$ac_exeext conftest.$ac_ext
4620 fi
4621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4623 if test `eval echo '${'$as_ac_var'}'` = yes; then
4624 cat >>confdefs.h <<_ACEOF
4625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4626 _ACEOF
4627
4628 fi
4629 done
4630
4631
4632
4633
4634 for ac_func in getpwent getpwnam getpwuid
4635 do
4636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4637 echo "$as_me:$LINENO: checking for $ac_func" >&5
4638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4639 if eval "test \"\${$as_ac_var+set}\" = set"; then
4640 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 else
4642 cat >conftest.$ac_ext <<_ACEOF
4643 /* confdefs.h. */
4644 _ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h. */
4648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4650 #define $ac_func innocuous_$ac_func
4651
4652 /* System header to define __stub macros and hopefully few prototypes,
4653 which can conflict with char $ac_func (); below.
4654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4655 <limits.h> exists even on freestanding compilers. */
4656
4657 #ifdef __STDC__
4658 # include <limits.h>
4659 #else
4660 # include <assert.h>
4661 #endif
4662
4663 #undef $ac_func
4664
4665 /* Override any gcc2 internal prototype to avoid an error. */
4666 #ifdef __cplusplus
4667 extern "C"
4668 {
4669 #endif
4670 /* We use char because int might match the return type of a gcc2
4671 builtin and then its argument prototype would still apply. */
4672 char $ac_func ();
4673 /* The GNU C library defines this for functions which it implements
4674 to always fail with ENOSYS. Some functions are actually named
4675 something starting with __ and the normal name is an alias. */
4676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4677 choke me
4678 #else
4679 char (*f) () = $ac_func;
4680 #endif
4681 #ifdef __cplusplus
4682 }
4683 #endif
4684
4685 int
4686 main ()
4687 {
4688 return f != $ac_func;
4689 ;
4690 return 0;
4691 }
4692 _ACEOF
4693 rm -f conftest.$ac_objext conftest$ac_exeext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4695 (eval $ac_link) 2>conftest.er1
4696 ac_status=$?
4697 grep -v '^ *+' conftest.er1 >conftest.err
4698 rm -f conftest.er1
4699 cat conftest.err >&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } &&
4702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 (eval $ac_try) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; } &&
4708 { ac_try='test -s conftest$ac_exeext'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 (eval $ac_try) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; }; then
4714 eval "$as_ac_var=yes"
4715 else
4716 echo "$as_me: failed program was:" >&5
4717 sed 's/^/| /' conftest.$ac_ext >&5
4718
4719 eval "$as_ac_var=no"
4720 fi
4721 rm -f conftest.err conftest.$ac_objext \
4722 conftest$ac_exeext conftest.$ac_ext
4723 fi
4724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4725 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4726 if test `eval echo '${'$as_ac_var'}'` = yes; then
4727 cat >>confdefs.h <<_ACEOF
4728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4729 _ACEOF
4730
4731 fi
4732 done
4733
4734
4735 echo "$as_me:$LINENO: checking for working strcoll" >&5
4736 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
4737 if test "${ac_cv_func_strcoll_works+set}" = set; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4739 else
4740 if test "$cross_compiling" = yes; then
4741 ac_cv_func_strcoll_works=no
4742 else
4743 cat >conftest.$ac_ext <<_ACEOF
4744 /* confdefs.h. */
4745 _ACEOF
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4749 $ac_includes_default
4750 int
4751 main ()
4752 {
4753 exit (strcoll ("abc", "def") >= 0 ||
4754 strcoll ("ABC", "DEF") >= 0 ||
4755 strcoll ("123", "456") >= 0)
4756 ;
4757 return 0;
4758 }
4759 _ACEOF
4760 rm -f conftest$ac_exeext
4761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4762 (eval $ac_link) 2>&5
4763 ac_status=$?
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4767 (eval $ac_try) 2>&5
4768 ac_status=$?
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 (exit $ac_status); }; }; then
4771 ac_cv_func_strcoll_works=yes
4772 else
4773 echo "$as_me: program exited with status $ac_status" >&5
4774 echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4776
4777 ( exit $ac_status )
4778 ac_cv_func_strcoll_works=no
4779 fi
4780 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4781 fi
4782 fi
4783 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
4784 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
4785 if test $ac_cv_func_strcoll_works = yes; then
4786
4787 cat >>confdefs.h <<\_ACEOF
4788 #define HAVE_STRCOLL 1
4789 _ACEOF
4790
4791 fi
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808 for ac_header in fcntl.h unistd.h stdlib.h varargs.h stdarg.h string.h strings.h \
4809 limits.h locale.h pwd.h memory.h termcap.h termios.h termio.h
4810 do
4811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4813 echo "$as_me:$LINENO: checking for $ac_header" >&5
4814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 fi
4818 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4819 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4820 else
4821 # Is the header compilable?
4822 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4824 cat >conftest.$ac_ext <<_ACEOF
4825 /* confdefs.h. */
4826 _ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4830 $ac_includes_default
4831 #include <$ac_header>
4832 _ACEOF
4833 rm -f conftest.$ac_objext
4834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4835 (eval $ac_compile) 2>conftest.er1
4836 ac_status=$?
4837 grep -v '^ *+' conftest.er1 >conftest.err
4838 rm -f conftest.er1
4839 cat conftest.err >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } &&
4842 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4844 (eval $ac_try) 2>&5
4845 ac_status=$?
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }; } &&
4848 { ac_try='test -s conftest.$ac_objext'
4849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4850 (eval $ac_try) 2>&5
4851 ac_status=$?
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); }; }; then
4854 ac_header_compiler=yes
4855 else
4856 echo "$as_me: failed program was:" >&5
4857 sed 's/^/| /' conftest.$ac_ext >&5
4858
4859 ac_header_compiler=no
4860 fi
4861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4862 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4863 echo "${ECHO_T}$ac_header_compiler" >&6
4864
4865 # Is the header present?
4866 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4868 cat >conftest.$ac_ext <<_ACEOF
4869 /* confdefs.h. */
4870 _ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4874 #include <$ac_header>
4875 _ACEOF
4876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4878 ac_status=$?
4879 grep -v '^ *+' conftest.er1 >conftest.err
4880 rm -f conftest.er1
4881 cat conftest.err >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); } >/dev/null; then
4884 if test -s conftest.err; then
4885 ac_cpp_err=$ac_c_preproc_warn_flag
4886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4887 else
4888 ac_cpp_err=
4889 fi
4890 else
4891 ac_cpp_err=yes
4892 fi
4893 if test -z "$ac_cpp_err"; then
4894 ac_header_preproc=yes
4895 else
4896 echo "$as_me: failed program was:" >&5
4897 sed 's/^/| /' conftest.$ac_ext >&5
4898
4899 ac_header_preproc=no
4900 fi
4901 rm -f conftest.err conftest.$ac_ext
4902 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4903 echo "${ECHO_T}$ac_header_preproc" >&6
4904
4905 # So? What about this header?
4906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4907 yes:no: )
4908 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4909 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4911 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4912 ac_header_preproc=yes
4913 ;;
4914 no:yes:* )
4915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4916 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4918 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4919 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4920 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4921 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4922 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4924 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4925 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4926 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4927 (
4928 cat <<\_ASBOX
4929 ## ----------------------------------- ##
4930 ## Report this to bug-readline@gnu.org ##
4931 ## ----------------------------------- ##
4932 _ASBOX
4933 ) |
4934 sed "s/^/$as_me: WARNING: /" >&2
4935 ;;
4936 esac
4937 echo "$as_me:$LINENO: checking for $ac_header" >&5
4938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942 eval "$as_ac_Header=\$ac_header_preproc"
4943 fi
4944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4946
4947 fi
4948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4949 cat >>confdefs.h <<_ACEOF
4950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4951 _ACEOF
4952
4953 fi
4954
4955 done
4956
4957
4958
4959
4960
4961 for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h
4962 do
4963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4965 echo "$as_me:$LINENO: checking for $ac_header" >&5
4966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4969 fi
4970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4972 else
4973 # Is the header compilable?
4974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4976 cat >conftest.$ac_ext <<_ACEOF
4977 /* confdefs.h. */
4978 _ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4982 $ac_includes_default
4983 #include <$ac_header>
4984 _ACEOF
4985 rm -f conftest.$ac_objext
4986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4987 (eval $ac_compile) 2>conftest.er1
4988 ac_status=$?
4989 grep -v '^ *+' conftest.er1 >conftest.err
4990 rm -f conftest.er1
4991 cat conftest.err >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); } &&
4994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996 (eval $ac_try) 2>&5
4997 ac_status=$?
4998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }; } &&
5000 { ac_try='test -s conftest.$ac_objext'
5001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002 (eval $ac_try) 2>&5
5003 ac_status=$?
5004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005 (exit $ac_status); }; }; then
5006 ac_header_compiler=yes
5007 else
5008 echo "$as_me: failed program was:" >&5
5009 sed 's/^/| /' conftest.$ac_ext >&5
5010
5011 ac_header_compiler=no
5012 fi
5013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5014 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5015 echo "${ECHO_T}$ac_header_compiler" >&6
5016
5017 # Is the header present?
5018 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5020 cat >conftest.$ac_ext <<_ACEOF
5021 /* confdefs.h. */
5022 _ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5026 #include <$ac_header>
5027 _ACEOF
5028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5030 ac_status=$?
5031 grep -v '^ *+' conftest.er1 >conftest.err
5032 rm -f conftest.er1
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } >/dev/null; then
5036 if test -s conftest.err; then
5037 ac_cpp_err=$ac_c_preproc_warn_flag
5038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5039 else
5040 ac_cpp_err=
5041 fi
5042 else
5043 ac_cpp_err=yes
5044 fi
5045 if test -z "$ac_cpp_err"; then
5046 ac_header_preproc=yes
5047 else
5048 echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5050
5051 ac_header_preproc=no
5052 fi
5053 rm -f conftest.err conftest.$ac_ext
5054 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5055 echo "${ECHO_T}$ac_header_preproc" >&6
5056
5057 # So? What about this header?
5058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5059 yes:no: )
5060 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5061 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5063 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5064 ac_header_preproc=yes
5065 ;;
5066 no:yes:* )
5067 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5068 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5069 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5070 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5071 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5072 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5073 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5074 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5076 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5077 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5078 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5079 (
5080 cat <<\_ASBOX
5081 ## ----------------------------------- ##
5082 ## Report this to bug-readline@gnu.org ##
5083 ## ----------------------------------- ##
5084 _ASBOX
5085 ) |
5086 sed "s/^/$as_me: WARNING: /" >&2
5087 ;;
5088 esac
5089 echo "$as_me:$LINENO: checking for $ac_header" >&5
5090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093 else
5094 eval "$as_ac_Header=\$ac_header_preproc"
5095 fi
5096 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5097 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5098
5099 fi
5100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5101 cat >>confdefs.h <<_ACEOF
5102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5103 _ACEOF
5104
5105 fi
5106
5107 done
5108
5109
5110
5111 for ac_header in sys/ptem.h
5112 do
5113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5114 echo "$as_me:$LINENO: checking for $ac_header" >&5
5115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5117 echo $ECHO_N "(cached) $ECHO_C" >&6
5118 else
5119 cat >conftest.$ac_ext <<_ACEOF
5120 /* confdefs.h. */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5125
5126 #if HAVE_SYS_STREAM_H
5127 # include <sys/stream.h>
5128 #endif
5129
5130
5131 #include <$ac_header>
5132 _ACEOF
5133 rm -f conftest.$ac_objext
5134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5135 (eval $ac_compile) 2>conftest.er1
5136 ac_status=$?
5137 grep -v '^ *+' conftest.er1 >conftest.err
5138 rm -f conftest.er1
5139 cat conftest.err >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } &&
5142 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144 (eval $ac_try) 2>&5
5145 ac_status=$?
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; } &&
5148 { ac_try='test -s conftest.$ac_objext'
5149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5150 (eval $ac_try) 2>&5
5151 ac_status=$?
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; }; then
5154 eval "$as_ac_Header=yes"
5155 else
5156 echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5158
5159 eval "$as_ac_Header=no"
5160 fi
5161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5162 fi
5163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5166 cat >>confdefs.h <<_ACEOF
5167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5168 _ACEOF
5169
5170 fi
5171
5172 done
5173
5174
5175
5176 echo "$as_me:$LINENO: checking for type of signal functions" >&5
5177 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
5178 if test "${bash_cv_signal_vintage+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 else
5181
5182 cat >conftest.$ac_ext <<_ACEOF
5183 /* confdefs.h. */
5184 _ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5188 #include <signal.h>
5189 int
5190 main ()
5191 {
5192
5193 sigset_t ss;
5194 struct sigaction sa;
5195 sigemptyset(&ss); sigsuspend(&ss);
5196 sigaction(SIGINT, &sa, (struct sigaction *) 0);
5197 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
5198
5199 ;
5200 return 0;
5201 }
5202 _ACEOF
5203 rm -f conftest.$ac_objext conftest$ac_exeext
5204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5205 (eval $ac_link) 2>conftest.er1
5206 ac_status=$?
5207 grep -v '^ *+' conftest.er1 >conftest.err
5208 rm -f conftest.er1
5209 cat conftest.err >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } &&
5212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214 (eval $ac_try) 2>&5
5215 ac_status=$?
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; } &&
5218 { ac_try='test -s conftest$ac_exeext'
5219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220 (eval $ac_try) 2>&5
5221 ac_status=$?
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }; }; then
5224 bash_cv_signal_vintage=posix
5225 else
5226 echo "$as_me: failed program was:" >&5
5227 sed 's/^/| /' conftest.$ac_ext >&5
5228
5229
5230 cat >conftest.$ac_ext <<_ACEOF
5231 /* confdefs.h. */
5232 _ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5236 #include <signal.h>
5237 int
5238 main ()
5239 {
5240
5241 int mask = sigmask(SIGINT);
5242 sigsetmask(mask); sigblock(mask); sigpause(mask);
5243
5244 ;
5245 return 0;
5246 }
5247 _ACEOF
5248 rm -f conftest.$ac_objext conftest$ac_exeext
5249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5250 (eval $ac_link) 2>conftest.er1
5251 ac_status=$?
5252 grep -v '^ *+' conftest.er1 >conftest.err
5253 rm -f conftest.er1
5254 cat conftest.err >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } &&
5257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259 (eval $ac_try) 2>&5
5260 ac_status=$?
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); }; } &&
5263 { ac_try='test -s conftest$ac_exeext'
5264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265 (eval $ac_try) 2>&5
5266 ac_status=$?
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); }; }; then
5269 bash_cv_signal_vintage=4.2bsd
5270 else
5271 echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.$ac_ext >&5
5273
5274
5275 cat >conftest.$ac_ext <<_ACEOF
5276 /* confdefs.h. */
5277 _ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5281
5282 #include <signal.h>
5283 RETSIGTYPE foo() { }
5284 int
5285 main ()
5286 {
5287
5288 int mask = sigmask(SIGINT);
5289 sigset(SIGINT, foo); sigrelse(SIGINT);
5290 sighold(SIGINT); sigpause(SIGINT);
5291
5292 ;
5293 return 0;
5294 }
5295 _ACEOF
5296 rm -f conftest.$ac_objext conftest$ac_exeext
5297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5298 (eval $ac_link) 2>conftest.er1
5299 ac_status=$?
5300 grep -v '^ *+' conftest.er1 >conftest.err
5301 rm -f conftest.er1
5302 cat conftest.err >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } &&
5305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5307 (eval $ac_try) 2>&5
5308 ac_status=$?
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); }; } &&
5311 { ac_try='test -s conftest$ac_exeext'
5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5313 (eval $ac_try) 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; }; then
5317 bash_cv_signal_vintage=svr3
5318 else
5319 echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5321
5322 bash_cv_signal_vintage=v7
5323
5324 fi
5325 rm -f conftest.err conftest.$ac_objext \
5326 conftest$ac_exeext conftest.$ac_ext
5327
5328 fi
5329 rm -f conftest.err conftest.$ac_objext \
5330 conftest$ac_exeext conftest.$ac_ext
5331
5332 fi
5333 rm -f conftest.err conftest.$ac_objext \
5334 conftest$ac_exeext conftest.$ac_ext
5335
5336 fi
5337
5338 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
5339 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
5340 if test "$bash_cv_signal_vintage" = posix; then
5341 cat >>confdefs.h <<\_ACEOF
5342 #define HAVE_POSIX_SIGNALS 1
5343 _ACEOF
5344
5345 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
5346 cat >>confdefs.h <<\_ACEOF
5347 #define HAVE_BSD_SIGNALS 1
5348 _ACEOF
5349
5350 elif test "$bash_cv_signal_vintage" = svr3; then
5351 cat >>confdefs.h <<\_ACEOF
5352 #define HAVE_USG_SIGHOLD 1
5353 _ACEOF
5354
5355 fi
5356
5357
5358
5359 echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
5360 echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
5361 if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
5362 echo $ECHO_N "(cached) $ECHO_C" >&6
5363 else
5364 if test "$cross_compiling" = yes; then
5365 { echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
5366 echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
5367 bash_cv_must_reinstall_sighandlers=no
5368
5369 else
5370 cat >conftest.$ac_ext <<_ACEOF
5371 /* confdefs.h. */
5372 _ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5376
5377 #include <signal.h>
5378 #ifdef HAVE_UNISTD_H
5379 #include <unistd.h>
5380 #endif
5381
5382 typedef RETSIGTYPE sigfunc();
5383
5384 int nsigint;
5385
5386 #ifdef HAVE_POSIX_SIGNALS
5387 sigfunc *
5388 set_signal_handler(sig, handler)
5389 int sig;
5390 sigfunc *handler;
5391 {
5392 struct sigaction act, oact;
5393 act.sa_handler = handler;
5394 act.sa_flags = 0;
5395 sigemptyset (&act.sa_mask);
5396 sigemptyset (&oact.sa_mask);
5397 sigaction (sig, &act, &oact);
5398 return (oact.sa_handler);
5399 }
5400 #else
5401 #define set_signal_handler(s, h) signal(s, h)
5402 #endif
5403
5404 RETSIGTYPE
5405 sigint(s)
5406 int s;
5407 {
5408 nsigint++;
5409 }
5410
5411 main()
5412 {
5413 nsigint = 0;
5414 set_signal_handler(SIGINT, sigint);
5415 kill((int)getpid(), SIGINT);
5416 kill((int)getpid(), SIGINT);
5417 exit(nsigint != 2);
5418 }
5419
5420 _ACEOF
5421 rm -f conftest$ac_exeext
5422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5423 (eval $ac_link) 2>&5
5424 ac_status=$?
5425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5428 (eval $ac_try) 2>&5
5429 ac_status=$?
5430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431 (exit $ac_status); }; }; then
5432 bash_cv_must_reinstall_sighandlers=no
5433 else
5434 echo "$as_me: program exited with status $ac_status" >&5
5435 echo "$as_me: failed program was:" >&5
5436 sed 's/^/| /' conftest.$ac_ext >&5
5437
5438 ( exit $ac_status )
5439 bash_cv_must_reinstall_sighandlers=yes
5440 fi
5441 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5442 fi
5443 fi
5444
5445 echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
5446 echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
5447 if test $bash_cv_must_reinstall_sighandlers = yes; then
5448 cat >>confdefs.h <<\_ACEOF
5449 #define MUST_REINSTALL_SIGHANDLERS 1
5450 _ACEOF
5451
5452 fi
5453
5454
5455
5456 echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
5457 echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
5458 if test "${bash_cv_func_sigsetjmp+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 else
5461 if test "$cross_compiling" = yes; then
5462 { echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
5463 echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
5464 bash_cv_func_sigsetjmp=missing
5465
5466 else
5467 cat >conftest.$ac_ext <<_ACEOF
5468 /* confdefs.h. */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5473
5474 #ifdef HAVE_UNISTD_H
5475 #include <unistd.h>
5476 #endif
5477 #include <sys/types.h>
5478 #include <signal.h>
5479 #include <setjmp.h>
5480
5481 main()
5482 {
5483 #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
5484 exit (1);
5485 #else
5486
5487 int code;
5488 sigset_t set, oset;
5489 sigjmp_buf xx;
5490
5491 /* get the mask */
5492 sigemptyset(&set);
5493 sigemptyset(&oset);
5494 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
5495 sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
5496
5497 /* save it */
5498 code = sigsetjmp(xx, 1);
5499 if (code)
5500 exit(0); /* could get sigmask and compare to oset here. */
5501
5502 /* change it */
5503 sigaddset(&set, SIGINT);
5504 sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
5505
5506 /* and siglongjmp */
5507 siglongjmp(xx, 10);
5508 exit(1);
5509 #endif
5510 }
5511 _ACEOF
5512 rm -f conftest$ac_exeext
5513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5514 (eval $ac_link) 2>&5
5515 ac_status=$?
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519 (eval $ac_try) 2>&5
5520 ac_status=$?
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); }; }; then
5523 bash_cv_func_sigsetjmp=present
5524 else
5525 echo "$as_me: program exited with status $ac_status" >&5
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5528
5529 ( exit $ac_status )
5530 bash_cv_func_sigsetjmp=missing
5531 fi
5532 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5533 fi
5534 fi
5535
5536 echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
5537 echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
5538 if test $bash_cv_func_sigsetjmp = present; then
5539 cat >>confdefs.h <<\_ACEOF
5540 #define HAVE_POSIX_SIGSETJMP 1
5541 _ACEOF
5542
5543 fi
5544
5545 echo "$as_me:$LINENO: checking for lstat" >&5
5546 echo $ECHO_N "checking for lstat... $ECHO_C" >&6
5547 if test "${bash_cv_func_lstat+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 else
5550 cat >conftest.$ac_ext <<_ACEOF
5551 /* confdefs.h. */
5552 _ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5556
5557 #include <sys/types.h>
5558 #include <sys/stat.h>
5559
5560 int
5561 main ()
5562 {
5563 lstat(".",(struct stat *)0);
5564 ;
5565 return 0;
5566 }
5567 _ACEOF
5568 rm -f conftest.$ac_objext conftest$ac_exeext
5569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5570 (eval $ac_link) 2>conftest.er1
5571 ac_status=$?
5572 grep -v '^ *+' conftest.er1 >conftest.err
5573 rm -f conftest.er1
5574 cat conftest.err >&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); } &&
5577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579 (eval $ac_try) 2>&5
5580 ac_status=$?
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); }; } &&
5583 { ac_try='test -s conftest$ac_exeext'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585 (eval $ac_try) 2>&5
5586 ac_status=$?
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; }; then
5589 bash_cv_func_lstat=yes
5590 else
5591 echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5593
5594 bash_cv_func_lstat=no
5595 fi
5596 rm -f conftest.err conftest.$ac_objext \
5597 conftest$ac_exeext conftest.$ac_ext
5598 fi
5599 echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
5600 echo "${ECHO_T}$bash_cv_func_lstat" >&6
5601 if test $bash_cv_func_lstat = yes; then
5602 cat >>confdefs.h <<\_ACEOF
5603 #define HAVE_LSTAT 1
5604 _ACEOF
5605
5606 fi
5607
5608
5609 echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
5610 echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
5611 if test "${bash_cv_func_strcoll_broken+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 else
5614 if test "$cross_compiling" = yes; then
5615 { echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
5616 echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
5617 bash_cv_func_strcoll_broken=no
5618
5619 else
5620 cat >conftest.$ac_ext <<_ACEOF
5621 /* confdefs.h. */
5622 _ACEOF
5623 cat confdefs.h >>conftest.$ac_ext
5624 cat >>conftest.$ac_ext <<_ACEOF
5625 /* end confdefs.h. */
5626
5627 #include <stdio.h>
5628 #if defined (HAVE_LOCALE_H)
5629 #include <locale.h>
5630 #endif
5631
5632 main(c, v)
5633 int c;
5634 char *v[];
5635 {
5636 int r1, r2;
5637 char *deflocale, *defcoll;
5638
5639 #ifdef HAVE_SETLOCALE
5640 deflocale = setlocale(LC_ALL, "");
5641 defcoll = setlocale(LC_COLLATE, "");
5642 #endif
5643
5644 #ifdef HAVE_STRCOLL
5645 /* These two values are taken from tests/glob-test. */
5646 r1 = strcoll("abd", "aXd");
5647 #else
5648 r1 = 0;
5649 #endif
5650 r2 = strcmp("abd", "aXd");
5651
5652 /* These two should both be greater than 0. It is permissible for
5653 a system to return different values, as long as the sign is the
5654 same. */
5655
5656 /* Exit with 1 (failure) if these two values are both > 0, since
5657 this tests whether strcoll(3) is broken with respect to strcmp(3)
5658 in the default locale. */
5659 exit (r1 > 0 && r2 > 0);
5660 }
5661
5662 _ACEOF
5663 rm -f conftest$ac_exeext
5664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5665 (eval $ac_link) 2>&5
5666 ac_status=$?
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5670 (eval $ac_try) 2>&5
5671 ac_status=$?
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); }; }; then
5674 bash_cv_func_strcoll_broken=yes
5675 else
5676 echo "$as_me: program exited with status $ac_status" >&5
5677 echo "$as_me: failed program was:" >&5
5678 sed 's/^/| /' conftest.$ac_ext >&5
5679
5680 ( exit $ac_status )
5681 bash_cv_func_strcoll_broken=no
5682 fi
5683 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5684 fi
5685 fi
5686
5687 echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
5688 echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
5689 if test $bash_cv_func_strcoll_broken = yes; then
5690 cat >>confdefs.h <<\_ACEOF
5691 #define STRCOLL_BROKEN 1
5692 _ACEOF
5693
5694 fi
5695
5696
5697 echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
5698 echo $ECHO_N "checking whether the ctype macros accept non-ascii characters... $ECHO_C" >&6
5699 if test "${bash_cv_func_ctype_nonascii+set}" = set; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5701 else
5702 if test "$cross_compiling" = yes; then
5703 { echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
5704 echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
5705 bash_cv_func_ctype_nonascii=no
5706
5707 else
5708 cat >conftest.$ac_ext <<_ACEOF
5709 /* confdefs.h. */
5710 _ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h. */
5714
5715 #ifdef HAVE_LOCALE_H
5716 #include <locale.h>
5717 #endif
5718 #include <stdio.h>
5719 #include <ctype.h>
5720
5721 main(c, v)
5722 int c;
5723 char *v[];
5724 {
5725 char *deflocale;
5726 unsigned char x;
5727 int r1, r2;
5728
5729 #ifdef HAVE_SETLOCALE
5730 /* We take a shot here. If that locale is not known, try the
5731 system default. We try this one because '\342' (226) is
5732 known to be a printable character in that locale. */
5733 deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
5734 if (deflocale == 0)
5735 deflocale = setlocale(LC_ALL, "");
5736 #endif
5737
5738 x = '\342';
5739 r1 = isprint(x);
5740 x -= 128;
5741 r2 = isprint(x);
5742 exit (r1 == 0 || r2 == 0);
5743 }
5744
5745 _ACEOF
5746 rm -f conftest$ac_exeext
5747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5748 (eval $ac_link) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753 (eval $ac_try) 2>&5
5754 ac_status=$?
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; }; then
5757 bash_cv_func_ctype_nonascii=yes
5758 else
5759 echo "$as_me: program exited with status $ac_status" >&5
5760 echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5762
5763 ( exit $ac_status )
5764 bash_cv_func_ctype_nonascii=no
5765 fi
5766 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5767 fi
5768 fi
5769
5770 echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
5771 echo "${ECHO_T}$bash_cv_func_ctype_nonascii" >&6
5772 if test $bash_cv_func_ctype_nonascii = yes; then
5773 cat >>confdefs.h <<\_ACEOF
5774 #define CTYPE_NON_ASCII 1
5775 _ACEOF
5776
5777 fi
5778
5779
5780 echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
5781 echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
5782 if test "${bash_cv_getpw_declared+set}" = set; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785 cat >conftest.$ac_ext <<_ACEOF
5786 /* confdefs.h. */
5787 _ACEOF
5788 cat confdefs.h >>conftest.$ac_ext
5789 cat >>conftest.$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791
5792 #include <sys/types.h>
5793 #ifdef HAVE_UNISTD_H
5794 # include <unistd.h>
5795 #endif
5796 #include <pwd.h>
5797
5798 _ACEOF
5799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5800 $EGREP "getpwuid" >/dev/null 2>&1; then
5801 bash_cv_getpw_declared=yes
5802 else
5803 bash_cv_getpw_declared=no
5804 fi
5805 rm -f conftest*
5806
5807 fi
5808
5809 echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
5810 echo "${ECHO_T}$bash_cv_getpw_declared" >&6
5811 if test $bash_cv_getpw_declared = yes; then
5812 cat >>confdefs.h <<\_ACEOF
5813 #define HAVE_GETPW_DECLS 1
5814 _ACEOF
5815
5816 fi
5817
5818
5819 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
5820 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
5821 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
5822 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 else
5824 cat >conftest.$ac_ext <<_ACEOF
5825 /* confdefs.h. */
5826 _ACEOF
5827 cat confdefs.h >>conftest.$ac_ext
5828 cat >>conftest.$ac_ext <<_ACEOF
5829 /* end confdefs.h. */
5830 #include <sys/types.h>
5831 #include <termios.h>
5832 #ifdef TIOCGWINSZ
5833 yes
5834 #endif
5835
5836 _ACEOF
5837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5838 $EGREP "yes" >/dev/null 2>&1; then
5839 ac_cv_sys_tiocgwinsz_in_termios_h=yes
5840 else
5841 ac_cv_sys_tiocgwinsz_in_termios_h=no
5842 fi
5843 rm -f conftest*
5844
5845 fi
5846 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
5847 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
5848
5849 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
5850 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
5851 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
5852 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855 cat >conftest.$ac_ext <<_ACEOF
5856 /* confdefs.h. */
5857 _ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h. */
5861 #include <sys/types.h>
5862 #include <sys/ioctl.h>
5863 #ifdef TIOCGWINSZ
5864 yes
5865 #endif
5866
5867 _ACEOF
5868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5869 $EGREP "yes" >/dev/null 2>&1; then
5870 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
5871 else
5872 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
5873 fi
5874 rm -f conftest*
5875
5876 fi
5877 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
5878 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
5879
5880 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
5881
5882 cat >>confdefs.h <<\_ACEOF
5883 #define GWINSZ_IN_SYS_IOCTL 1
5884 _ACEOF
5885
5886 fi
5887 fi
5888
5889
5890 echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
5891 echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
5892 if test "${bash_cv_void_sighandler+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5894 else
5895 cat >conftest.$ac_ext <<_ACEOF
5896 /* confdefs.h. */
5897 _ACEOF
5898 cat confdefs.h >>conftest.$ac_ext
5899 cat >>conftest.$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5901 #include <sys/types.h>
5902 #include <signal.h>
5903 #ifdef signal
5904 #undef signal
5905 #endif
5906 #ifdef __cplusplus
5907 extern "C"
5908 #endif
5909 void (*signal ()) ();
5910 int
5911 main ()
5912 {
5913 int i;
5914 ;
5915 return 0;
5916 }
5917 _ACEOF
5918 rm -f conftest.$ac_objext
5919 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5920 (eval $ac_compile) 2>conftest.er1
5921 ac_status=$?
5922 grep -v '^ *+' conftest.er1 >conftest.err
5923 rm -f conftest.er1
5924 cat conftest.err >&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); } &&
5927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929 (eval $ac_try) 2>&5
5930 ac_status=$?
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; } &&
5933 { ac_try='test -s conftest.$ac_objext'
5934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935 (eval $ac_try) 2>&5
5936 ac_status=$?
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; }; then
5939 bash_cv_void_sighandler=yes
5940 else
5941 echo "$as_me: failed program was:" >&5
5942 sed 's/^/| /' conftest.$ac_ext >&5
5943
5944 bash_cv_void_sighandler=no
5945 fi
5946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5947 fi
5948 echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
5949 echo "${ECHO_T}$bash_cv_void_sighandler" >&6
5950 if test $bash_cv_void_sighandler = yes; then
5951 cat >>confdefs.h <<\_ACEOF
5952 #define VOID_SIGHANDLER 1
5953 _ACEOF
5954
5955 fi
5956
5957 echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
5958 echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
5959 if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 else
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h. */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 #include <sys/types.h>
5969 #include <sys/ioctl.h>
5970 int
5971 main ()
5972 {
5973 int x = TIOCSTAT;
5974 ;
5975 return 0;
5976 }
5977 _ACEOF
5978 rm -f conftest.$ac_objext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5980 (eval $ac_compile) 2>conftest.er1
5981 ac_status=$?
5982 grep -v '^ *+' conftest.er1 >conftest.err
5983 rm -f conftest.er1
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } &&
5987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5989 (eval $ac_try) 2>&5
5990 ac_status=$?
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; } &&
5993 { ac_try='test -s conftest.$ac_objext'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 (eval $ac_try) 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; }; then
5999 bash_cv_tiocstat_in_ioctl=yes
6000 else
6001 echo "$as_me: failed program was:" >&5
6002 sed 's/^/| /' conftest.$ac_ext >&5
6003
6004 bash_cv_tiocstat_in_ioctl=no
6005 fi
6006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6007 fi
6008
6009 echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
6010 echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
6011 if test $bash_cv_tiocstat_in_ioctl = yes; then
6012 cat >>confdefs.h <<\_ACEOF
6013 #define TIOCSTAT_IN_SYS_IOCTL 1
6014 _ACEOF
6015
6016 fi
6017
6018 echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
6019 echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
6020 if test "${bash_cv_fionread_in_ioctl+set}" = set; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 else
6023 cat >conftest.$ac_ext <<_ACEOF
6024 /* confdefs.h. */
6025 _ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6029 #include <sys/types.h>
6030 #include <sys/ioctl.h>
6031 int
6032 main ()
6033 {
6034 int x = FIONREAD;
6035 ;
6036 return 0;
6037 }
6038 _ACEOF
6039 rm -f conftest.$ac_objext
6040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6041 (eval $ac_compile) 2>conftest.er1
6042 ac_status=$?
6043 grep -v '^ *+' conftest.er1 >conftest.err
6044 rm -f conftest.er1
6045 cat conftest.err >&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); } &&
6048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050 (eval $ac_try) 2>&5
6051 ac_status=$?
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; } &&
6054 { ac_try='test -s conftest.$ac_objext'
6055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6056 (eval $ac_try) 2>&5
6057 ac_status=$?
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; }; then
6060 bash_cv_fionread_in_ioctl=yes
6061 else
6062 echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6064
6065 bash_cv_fionread_in_ioctl=no
6066 fi
6067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6068 fi
6069
6070 echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
6071 echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
6072 if test $bash_cv_fionread_in_ioctl = yes; then
6073 cat >>confdefs.h <<\_ACEOF
6074 #define FIONREAD_IN_SYS_IOCTL 1
6075 _ACEOF
6076
6077 fi
6078
6079 echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
6080 echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
6081 if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
6082 echo $ECHO_N "(cached) $ECHO_C" >&6
6083 else
6084 cat >conftest.$ac_ext <<_ACEOF
6085 /* confdefs.h. */
6086 _ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h. */
6090 #include <sys/types.h>
6091 int
6092 main ()
6093 {
6094 speed_t x;
6095 ;
6096 return 0;
6097 }
6098 _ACEOF
6099 rm -f conftest.$ac_objext
6100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6101 (eval $ac_compile) 2>conftest.er1
6102 ac_status=$?
6103 grep -v '^ *+' conftest.er1 >conftest.err
6104 rm -f conftest.er1
6105 cat conftest.err >&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); } &&
6108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6110 (eval $ac_try) 2>&5
6111 ac_status=$?
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; } &&
6114 { ac_try='test -s conftest.$ac_objext'
6115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116 (eval $ac_try) 2>&5
6117 ac_status=$?
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }; }; then
6120 bash_cv_speed_t_in_sys_types=yes
6121 else
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6124
6125 bash_cv_speed_t_in_sys_types=no
6126 fi
6127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6128 fi
6129
6130 echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
6131 echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
6132 if test $bash_cv_speed_t_in_sys_types = yes; then
6133 cat >>confdefs.h <<\_ACEOF
6134 #define SPEED_T_IN_SYS_TYPES 1
6135 _ACEOF
6136
6137 fi
6138
6139 echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
6140 echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
6141 if test "${bash_cv_struct_winsize_header+set}" = set; then
6142 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 else
6144 cat >conftest.$ac_ext <<_ACEOF
6145 /* confdefs.h. */
6146 _ACEOF
6147 cat confdefs.h >>conftest.$ac_ext
6148 cat >>conftest.$ac_ext <<_ACEOF
6149 /* end confdefs.h. */
6150 #include <sys/types.h>
6151 #include <sys/ioctl.h>
6152 int
6153 main ()
6154 {
6155 struct winsize x;
6156 ;
6157 return 0;
6158 }
6159 _ACEOF
6160 rm -f conftest.$ac_objext
6161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6162 (eval $ac_compile) 2>conftest.er1
6163 ac_status=$?
6164 grep -v '^ *+' conftest.er1 >conftest.err
6165 rm -f conftest.er1
6166 cat conftest.err >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } &&
6169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6171 (eval $ac_try) 2>&5
6172 ac_status=$?
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; } &&
6175 { ac_try='test -s conftest.$ac_objext'
6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177 (eval $ac_try) 2>&5
6178 ac_status=$?
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; }; then
6181 bash_cv_struct_winsize_header=ioctl_h
6182 else
6183 echo "$as_me: failed program was:" >&5
6184 sed 's/^/| /' conftest.$ac_ext >&5
6185
6186 cat >conftest.$ac_ext <<_ACEOF
6187 /* confdefs.h. */
6188 _ACEOF
6189 cat confdefs.h >>conftest.$ac_ext
6190 cat >>conftest.$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6192 #include <sys/types.h>
6193 #include <termios.h>
6194 int
6195 main ()
6196 {
6197 struct winsize x;
6198 ;
6199 return 0;
6200 }
6201 _ACEOF
6202 rm -f conftest.$ac_objext
6203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6204 (eval $ac_compile) 2>conftest.er1
6205 ac_status=$?
6206 grep -v '^ *+' conftest.er1 >conftest.err
6207 rm -f conftest.er1
6208 cat conftest.err >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); } &&
6211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213 (eval $ac_try) 2>&5
6214 ac_status=$?
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; } &&
6217 { ac_try='test -s conftest.$ac_objext'
6218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 (eval $ac_try) 2>&5
6220 ac_status=$?
6221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); }; }; then
6223 bash_cv_struct_winsize_header=termios_h
6224 else
6225 echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.$ac_ext >&5
6227
6228 bash_cv_struct_winsize_header=other
6229 fi
6230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6231
6232 fi
6233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6234 fi
6235
6236 if test $bash_cv_struct_winsize_header = ioctl_h; then
6237 echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
6238 echo "${ECHO_T}sys/ioctl.h" >&6
6239 cat >>confdefs.h <<\_ACEOF
6240 #define STRUCT_WINSIZE_IN_SYS_IOCTL 1
6241 _ACEOF
6242
6243 elif test $bash_cv_struct_winsize_header = termios_h; then
6244 echo "$as_me:$LINENO: result: termios.h" >&5
6245 echo "${ECHO_T}termios.h" >&6
6246 cat >>confdefs.h <<\_ACEOF
6247 #define STRUCT_WINSIZE_IN_TERMIOS 1
6248 _ACEOF
6249
6250 else
6251 echo "$as_me:$LINENO: result: not found" >&5
6252 echo "${ECHO_T}not found" >&6
6253 fi
6254
6255
6256 echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
6257 echo $ECHO_N "checking for struct dirent.d_ino... $ECHO_C" >&6
6258 if test "${bash_cv_dirent_has_dino+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6260 else
6261 cat >conftest.$ac_ext <<_ACEOF
6262 /* confdefs.h. */
6263 _ACEOF
6264 cat confdefs.h >>conftest.$ac_ext
6265 cat >>conftest.$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267
6268 #include <stdio.h>
6269 #include <sys/types.h>
6270 #ifdef HAVE_UNISTD_H
6271 # include <unistd.h>
6272 #endif /* HAVE_UNISTD_H */
6273 #if defined(HAVE_DIRENT_H)
6274 # include <dirent.h>
6275 #else
6276 # define dirent direct
6277 # ifdef HAVE_SYS_NDIR_H
6278 # include <sys/ndir.h>
6279 # endif /* SYSNDIR */
6280 # ifdef HAVE_SYS_DIR_H
6281 # include <sys/dir.h>
6282 # endif /* SYSDIR */
6283 # ifdef HAVE_NDIR_H
6284 # include <ndir.h>
6285 # endif
6286 #endif /* HAVE_DIRENT_H */
6287
6288 int
6289 main ()
6290 {
6291
6292 struct dirent d; int z; z = d.d_ino;
6293
6294 ;
6295 return 0;
6296 }
6297 _ACEOF
6298 rm -f conftest.$ac_objext
6299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6300 (eval $ac_compile) 2>conftest.er1
6301 ac_status=$?
6302 grep -v '^ *+' conftest.er1 >conftest.err
6303 rm -f conftest.er1
6304 cat conftest.err >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); } &&
6307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6309 (eval $ac_try) 2>&5
6310 ac_status=$?
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); }; } &&
6313 { ac_try='test -s conftest.$ac_objext'
6314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6315 (eval $ac_try) 2>&5
6316 ac_status=$?
6317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6318 (exit $ac_status); }; }; then
6319 bash_cv_dirent_has_dino=yes
6320 else
6321 echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6323
6324 bash_cv_dirent_has_dino=no
6325 fi
6326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6327 fi
6328
6329 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
6330 echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6
6331 if test $bash_cv_dirent_has_dino = yes; then
6332 cat >>confdefs.h <<\_ACEOF
6333 #define HAVE_STRUCT_DIRENT_D_INO 1
6334 _ACEOF
6335
6336 fi
6337
6338
6339 echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
6340 echo $ECHO_N "checking for struct dirent.d_fileno... $ECHO_C" >&6
6341 if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
6342 echo $ECHO_N "(cached) $ECHO_C" >&6
6343 else
6344 cat >conftest.$ac_ext <<_ACEOF
6345 /* confdefs.h. */
6346 _ACEOF
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h. */
6350
6351 #include <stdio.h>
6352 #include <sys/types.h>
6353 #ifdef HAVE_UNISTD_H
6354 # include <unistd.h>
6355 #endif /* HAVE_UNISTD_H */
6356 #if defined(HAVE_DIRENT_H)
6357 # include <dirent.h>
6358 #else
6359 # define dirent direct
6360 # ifdef HAVE_SYS_NDIR_H
6361 # include <sys/ndir.h>
6362 # endif /* SYSNDIR */
6363 # ifdef HAVE_SYS_DIR_H
6364 # include <sys/dir.h>
6365 # endif /* SYSDIR */
6366 # ifdef HAVE_NDIR_H
6367 # include <ndir.h>
6368 # endif
6369 #endif /* HAVE_DIRENT_H */
6370
6371 int
6372 main ()
6373 {
6374
6375 struct dirent d; int z; z = d.d_fileno;
6376
6377 ;
6378 return 0;
6379 }
6380 _ACEOF
6381 rm -f conftest.$ac_objext
6382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6383 (eval $ac_compile) 2>conftest.er1
6384 ac_status=$?
6385 grep -v '^ *+' conftest.er1 >conftest.err
6386 rm -f conftest.er1
6387 cat conftest.err >&5
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); } &&
6390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392 (eval $ac_try) 2>&5
6393 ac_status=$?
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); }; } &&
6396 { ac_try='test -s conftest.$ac_objext'
6397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6398 (eval $ac_try) 2>&5
6399 ac_status=$?
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; }; then
6402 bash_cv_dirent_has_d_fileno=yes
6403 else
6404 echo "$as_me: failed program was:" >&5
6405 sed 's/^/| /' conftest.$ac_ext >&5
6406
6407 bash_cv_dirent_has_d_fileno=no
6408 fi
6409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6410 fi
6411
6412 echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
6413 echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
6414 if test $bash_cv_dirent_has_d_fileno = yes; then
6415 cat >>confdefs.h <<\_ACEOF
6416 #define HAVE_STRUCT_DIRENT_D_FILENO 1
6417 _ACEOF
6418
6419 fi
6420
6421
6422 case "$host_os" in
6423 aix*) prefer_curses=yes ;;
6424 esac
6425
6426 if test "X$bash_cv_termcap_lib" = "X"; then
6427 _bash_needmsg=yes
6428 else
6429 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
6430 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
6431 _bash_needmsg=
6432 fi
6433 if test "${bash_cv_termcap_lib+set}" = set; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6435 else
6436 echo "$as_me:$LINENO: checking for tgetent" >&5
6437 echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
6438 if test "${ac_cv_func_tgetent+set}" = set; then
6439 echo $ECHO_N "(cached) $ECHO_C" >&6
6440 else
6441 cat >conftest.$ac_ext <<_ACEOF
6442 /* confdefs.h. */
6443 _ACEOF
6444 cat confdefs.h >>conftest.$ac_ext
6445 cat >>conftest.$ac_ext <<_ACEOF
6446 /* end confdefs.h. */
6447 /* Define tgetent to an innocuous variant, in case <limits.h> declares tgetent.
6448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6449 #define tgetent innocuous_tgetent
6450
6451 /* System header to define __stub macros and hopefully few prototypes,
6452 which can conflict with char tgetent (); below.
6453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6454 <limits.h> exists even on freestanding compilers. */
6455
6456 #ifdef __STDC__
6457 # include <limits.h>
6458 #else
6459 # include <assert.h>
6460 #endif
6461
6462 #undef tgetent
6463
6464 /* Override any gcc2 internal prototype to avoid an error. */
6465 #ifdef __cplusplus
6466 extern "C"
6467 {
6468 #endif
6469 /* We use char because int might match the return type of a gcc2
6470 builtin and then its argument prototype would still apply. */
6471 char tgetent ();
6472 /* The GNU C library defines this for functions which it implements
6473 to always fail with ENOSYS. Some functions are actually named
6474 something starting with __ and the normal name is an alias. */
6475 #if defined (__stub_tgetent) || defined (__stub___tgetent)
6476 choke me
6477 #else
6478 char (*f) () = tgetent;
6479 #endif
6480 #ifdef __cplusplus
6481 }
6482 #endif
6483
6484 int
6485 main ()
6486 {
6487 return f != tgetent;
6488 ;
6489 return 0;
6490 }
6491 _ACEOF
6492 rm -f conftest.$ac_objext conftest$ac_exeext
6493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6494 (eval $ac_link) 2>conftest.er1
6495 ac_status=$?
6496 grep -v '^ *+' conftest.er1 >conftest.err
6497 rm -f conftest.er1
6498 cat conftest.err >&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); } &&
6501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6503 (eval $ac_try) 2>&5
6504 ac_status=$?
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); }; } &&
6507 { ac_try='test -s conftest$ac_exeext'
6508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6509 (eval $ac_try) 2>&5
6510 ac_status=$?
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); }; }; then
6513 ac_cv_func_tgetent=yes
6514 else
6515 echo "$as_me: failed program was:" >&5
6516 sed 's/^/| /' conftest.$ac_ext >&5
6517
6518 ac_cv_func_tgetent=no
6519 fi
6520 rm -f conftest.err conftest.$ac_objext \
6521 conftest$ac_exeext conftest.$ac_ext
6522 fi
6523 echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
6524 echo "${ECHO_T}$ac_cv_func_tgetent" >&6
6525 if test $ac_cv_func_tgetent = yes; then
6526 bash_cv_termcap_lib=libc
6527 else
6528 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
6529 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
6530 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 else
6533 ac_check_lib_save_LIBS=$LIBS
6534 LIBS="-ltermcap $LIBS"
6535 cat >conftest.$ac_ext <<_ACEOF
6536 /* confdefs.h. */
6537 _ACEOF
6538 cat confdefs.h >>conftest.$ac_ext
6539 cat >>conftest.$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6541
6542 /* Override any gcc2 internal prototype to avoid an error. */
6543 #ifdef __cplusplus
6544 extern "C"
6545 #endif
6546 /* We use char because int might match the return type of a gcc2
6547 builtin and then its argument prototype would still apply. */
6548 char tgetent ();
6549 int
6550 main ()
6551 {
6552 tgetent ();
6553 ;
6554 return 0;
6555 }
6556 _ACEOF
6557 rm -f conftest.$ac_objext conftest$ac_exeext
6558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6559 (eval $ac_link) 2>conftest.er1
6560 ac_status=$?
6561 grep -v '^ *+' conftest.er1 >conftest.err
6562 rm -f conftest.er1
6563 cat conftest.err >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } &&
6566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6568 (eval $ac_try) 2>&5
6569 ac_status=$?
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); }; } &&
6572 { ac_try='test -s conftest$ac_exeext'
6573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6574 (eval $ac_try) 2>&5
6575 ac_status=$?
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); }; }; then
6578 ac_cv_lib_termcap_tgetent=yes
6579 else
6580 echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6582
6583 ac_cv_lib_termcap_tgetent=no
6584 fi
6585 rm -f conftest.err conftest.$ac_objext \
6586 conftest$ac_exeext conftest.$ac_ext
6587 LIBS=$ac_check_lib_save_LIBS
6588 fi
6589 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
6590 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
6591 if test $ac_cv_lib_termcap_tgetent = yes; then
6592 bash_cv_termcap_lib=libtermcap
6593 else
6594 echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
6595 echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
6596 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6598 else
6599 ac_check_lib_save_LIBS=$LIBS
6600 LIBS="-ltinfo $LIBS"
6601 cat >conftest.$ac_ext <<_ACEOF
6602 /* confdefs.h. */
6603 _ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6607
6608 /* Override any gcc2 internal prototype to avoid an error. */
6609 #ifdef __cplusplus
6610 extern "C"
6611 #endif
6612 /* We use char because int might match the return type of a gcc2
6613 builtin and then its argument prototype would still apply. */
6614 char tgetent ();
6615 int
6616 main ()
6617 {
6618 tgetent ();
6619 ;
6620 return 0;
6621 }
6622 _ACEOF
6623 rm -f conftest.$ac_objext conftest$ac_exeext
6624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6625 (eval $ac_link) 2>conftest.er1
6626 ac_status=$?
6627 grep -v '^ *+' conftest.er1 >conftest.err
6628 rm -f conftest.er1
6629 cat conftest.err >&5
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); } &&
6632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634 (eval $ac_try) 2>&5
6635 ac_status=$?
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); }; } &&
6638 { ac_try='test -s conftest$ac_exeext'
6639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640 (eval $ac_try) 2>&5
6641 ac_status=$?
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); }; }; then
6644 ac_cv_lib_tinfo_tgetent=yes
6645 else
6646 echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6648
6649 ac_cv_lib_tinfo_tgetent=no
6650 fi
6651 rm -f conftest.err conftest.$ac_objext \
6652 conftest$ac_exeext conftest.$ac_ext
6653 LIBS=$ac_check_lib_save_LIBS
6654 fi
6655 echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
6656 echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
6657 if test $ac_cv_lib_tinfo_tgetent = yes; then
6658 bash_cv_termcap_lib=libtinfo
6659 else
6660 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
6661 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
6662 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6664 else
6665 ac_check_lib_save_LIBS=$LIBS
6666 LIBS="-lcurses $LIBS"
6667 cat >conftest.$ac_ext <<_ACEOF
6668 /* confdefs.h. */
6669 _ACEOF
6670 cat confdefs.h >>conftest.$ac_ext
6671 cat >>conftest.$ac_ext <<_ACEOF
6672 /* end confdefs.h. */
6673
6674 /* Override any gcc2 internal prototype to avoid an error. */
6675 #ifdef __cplusplus
6676 extern "C"
6677 #endif
6678 /* We use char because int might match the return type of a gcc2
6679 builtin and then its argument prototype would still apply. */
6680 char tgetent ();
6681 int
6682 main ()
6683 {
6684 tgetent ();
6685 ;
6686 return 0;
6687 }
6688 _ACEOF
6689 rm -f conftest.$ac_objext conftest$ac_exeext
6690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6691 (eval $ac_link) 2>conftest.er1
6692 ac_status=$?
6693 grep -v '^ *+' conftest.er1 >conftest.err
6694 rm -f conftest.er1
6695 cat conftest.err >&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } &&
6698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6700 (eval $ac_try) 2>&5
6701 ac_status=$?
6702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703 (exit $ac_status); }; } &&
6704 { ac_try='test -s conftest$ac_exeext'
6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706 (eval $ac_try) 2>&5
6707 ac_status=$?
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); }; }; then
6710 ac_cv_lib_curses_tgetent=yes
6711 else
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6714
6715 ac_cv_lib_curses_tgetent=no
6716 fi
6717 rm -f conftest.err conftest.$ac_objext \
6718 conftest$ac_exeext conftest.$ac_ext
6719 LIBS=$ac_check_lib_save_LIBS
6720 fi
6721 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
6722 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
6723 if test $ac_cv_lib_curses_tgetent = yes; then
6724 bash_cv_termcap_lib=libcurses
6725 else
6726 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
6727 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
6728 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
6730 else
6731 ac_check_lib_save_LIBS=$LIBS
6732 LIBS="-lncurses $LIBS"
6733 cat >conftest.$ac_ext <<_ACEOF
6734 /* confdefs.h. */
6735 _ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6739
6740 /* Override any gcc2 internal prototype to avoid an error. */
6741 #ifdef __cplusplus
6742 extern "C"
6743 #endif
6744 /* We use char because int might match the return type of a gcc2
6745 builtin and then its argument prototype would still apply. */
6746 char tgetent ();
6747 int
6748 main ()
6749 {
6750 tgetent ();
6751 ;
6752 return 0;
6753 }
6754 _ACEOF
6755 rm -f conftest.$ac_objext conftest$ac_exeext
6756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6757 (eval $ac_link) 2>conftest.er1
6758 ac_status=$?
6759 grep -v '^ *+' conftest.er1 >conftest.err
6760 rm -f conftest.er1
6761 cat conftest.err >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); } &&
6764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766 (eval $ac_try) 2>&5
6767 ac_status=$?
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; } &&
6770 { ac_try='test -s conftest$ac_exeext'
6771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772 (eval $ac_try) 2>&5
6773 ac_status=$?
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; }; then
6776 ac_cv_lib_ncurses_tgetent=yes
6777 else
6778 echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.$ac_ext >&5
6780
6781 ac_cv_lib_ncurses_tgetent=no
6782 fi
6783 rm -f conftest.err conftest.$ac_objext \
6784 conftest$ac_exeext conftest.$ac_ext
6785 LIBS=$ac_check_lib_save_LIBS
6786 fi
6787 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
6788 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
6789 if test $ac_cv_lib_ncurses_tgetent = yes; then
6790 bash_cv_termcap_lib=libncurses
6791 else
6792 bash_cv_termcap_lib=gnutermcap
6793 fi
6794
6795 fi
6796
6797 fi
6798
6799 fi
6800
6801 fi
6802
6803 fi
6804
6805 if test "X$_bash_needmsg" = "Xyes"; then
6806 echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
6807 echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
6808 fi
6809 echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
6810 echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
6811 if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
6812 LDFLAGS="$LDFLAGS -L./lib/termcap"
6813 TERMCAP_LIB="./lib/termcap/libtermcap.a"
6814 TERMCAP_DEP="./lib/termcap/libtermcap.a"
6815 elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
6816 TERMCAP_LIB=-ltermcap
6817 TERMCAP_DEP=
6818 elif test $bash_cv_termcap_lib = libtinfo; then
6819 TERMCAP_LIB=-ltinfo
6820 TERMCAP_DEP=
6821 elif test $bash_cv_termcap_lib = libncurses; then
6822 TERMCAP_LIB=-lncurses
6823 TERMCAP_DEP=
6824 elif test $bash_cv_termcap_lib = libc; then
6825 TERMCAP_LIB=
6826 TERMCAP_DEP=
6827 else
6828 TERMCAP_LIB=-lcurses
6829 TERMCAP_DEP=
6830 fi
6831
6832 if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then
6833 if test "$prefer_curses" = yes; then
6834 TERMCAP_LIB=-lcurses
6835 else
6836 TERMCAP_LIB=-ltermcap #default
6837 fi
6838 fi
6839
6840
6841
6842 for ac_header in wctype.h
6843 do
6844 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6846 echo "$as_me:$LINENO: checking for $ac_header" >&5
6847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6850 fi
6851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6853 else
6854 # Is the header compilable?
6855 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6857 cat >conftest.$ac_ext <<_ACEOF
6858 /* confdefs.h. */
6859 _ACEOF
6860 cat confdefs.h >>conftest.$ac_ext
6861 cat >>conftest.$ac_ext <<_ACEOF
6862 /* end confdefs.h. */
6863 $ac_includes_default
6864 #include <$ac_header>
6865 _ACEOF
6866 rm -f conftest.$ac_objext
6867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6868 (eval $ac_compile) 2>conftest.er1
6869 ac_status=$?
6870 grep -v '^ *+' conftest.er1 >conftest.err
6871 rm -f conftest.er1
6872 cat conftest.err >&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); } &&
6875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6877 (eval $ac_try) 2>&5
6878 ac_status=$?
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; } &&
6881 { ac_try='test -s conftest.$ac_objext'
6882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883 (eval $ac_try) 2>&5
6884 ac_status=$?
6885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; }; then
6887 ac_header_compiler=yes
6888 else
6889 echo "$as_me: failed program was:" >&5
6890 sed 's/^/| /' conftest.$ac_ext >&5
6891
6892 ac_header_compiler=no
6893 fi
6894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6895 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6896 echo "${ECHO_T}$ac_header_compiler" >&6
6897
6898 # Is the header present?
6899 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6900 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6901 cat >conftest.$ac_ext <<_ACEOF
6902 /* confdefs.h. */
6903 _ACEOF
6904 cat confdefs.h >>conftest.$ac_ext
6905 cat >>conftest.$ac_ext <<_ACEOF
6906 /* end confdefs.h. */
6907 #include <$ac_header>
6908 _ACEOF
6909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6911 ac_status=$?
6912 grep -v '^ *+' conftest.er1 >conftest.err
6913 rm -f conftest.er1
6914 cat conftest.err >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); } >/dev/null; then
6917 if test -s conftest.err; then
6918 ac_cpp_err=$ac_c_preproc_warn_flag
6919 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6920 else
6921 ac_cpp_err=
6922 fi
6923 else
6924 ac_cpp_err=yes
6925 fi
6926 if test -z "$ac_cpp_err"; then
6927 ac_header_preproc=yes
6928 else
6929 echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.$ac_ext >&5
6931
6932 ac_header_preproc=no
6933 fi
6934 rm -f conftest.err conftest.$ac_ext
6935 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6936 echo "${ECHO_T}$ac_header_preproc" >&6
6937
6938 # So? What about this header?
6939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6940 yes:no: )
6941 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6942 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6944 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6945 ac_header_preproc=yes
6946 ;;
6947 no:yes:* )
6948 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6949 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6950 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6951 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6952 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6953 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6954 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6955 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6957 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6958 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6959 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6960 (
6961 cat <<\_ASBOX
6962 ## ----------------------------------- ##
6963 ## Report this to bug-readline@gnu.org ##
6964 ## ----------------------------------- ##
6965 _ASBOX
6966 ) |
6967 sed "s/^/$as_me: WARNING: /" >&2
6968 ;;
6969 esac
6970 echo "$as_me:$LINENO: checking for $ac_header" >&5
6971 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6972 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6973 echo $ECHO_N "(cached) $ECHO_C" >&6
6974 else
6975 eval "$as_ac_Header=\$ac_header_preproc"
6976 fi
6977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6979
6980 fi
6981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6982 cat >>confdefs.h <<_ACEOF
6983 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6984 _ACEOF
6985
6986 fi
6987
6988 done
6989
6990
6991 for ac_header in wchar.h
6992 do
6993 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6994 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6995 echo "$as_me:$LINENO: checking for $ac_header" >&5
6996 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6998 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 fi
7000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7002 else
7003 # Is the header compilable?
7004 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7006 cat >conftest.$ac_ext <<_ACEOF
7007 /* confdefs.h. */
7008 _ACEOF
7009 cat confdefs.h >>conftest.$ac_ext
7010 cat >>conftest.$ac_ext <<_ACEOF
7011 /* end confdefs.h. */
7012 $ac_includes_default
7013 #include <$ac_header>
7014 _ACEOF
7015 rm -f conftest.$ac_objext
7016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7017 (eval $ac_compile) 2>conftest.er1
7018 ac_status=$?
7019 grep -v '^ *+' conftest.er1 >conftest.err
7020 rm -f conftest.er1
7021 cat conftest.err >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); } &&
7024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026 (eval $ac_try) 2>&5
7027 ac_status=$?
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; } &&
7030 { ac_try='test -s conftest.$ac_objext'
7031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032 (eval $ac_try) 2>&5
7033 ac_status=$?
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); }; }; then
7036 ac_header_compiler=yes
7037 else
7038 echo "$as_me: failed program was:" >&5
7039 sed 's/^/| /' conftest.$ac_ext >&5
7040
7041 ac_header_compiler=no
7042 fi
7043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7045 echo "${ECHO_T}$ac_header_compiler" >&6
7046
7047 # Is the header present?
7048 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7050 cat >conftest.$ac_ext <<_ACEOF
7051 /* confdefs.h. */
7052 _ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h. */
7056 #include <$ac_header>
7057 _ACEOF
7058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7060 ac_status=$?
7061 grep -v '^ *+' conftest.er1 >conftest.err
7062 rm -f conftest.er1
7063 cat conftest.err >&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } >/dev/null; then
7066 if test -s conftest.err; then
7067 ac_cpp_err=$ac_c_preproc_warn_flag
7068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7069 else
7070 ac_cpp_err=
7071 fi
7072 else
7073 ac_cpp_err=yes
7074 fi
7075 if test -z "$ac_cpp_err"; then
7076 ac_header_preproc=yes
7077 else
7078 echo "$as_me: failed program was:" >&5
7079 sed 's/^/| /' conftest.$ac_ext >&5
7080
7081 ac_header_preproc=no
7082 fi
7083 rm -f conftest.err conftest.$ac_ext
7084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7085 echo "${ECHO_T}$ac_header_preproc" >&6
7086
7087 # So? What about this header?
7088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7089 yes:no: )
7090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7093 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7094 ac_header_preproc=yes
7095 ;;
7096 no:yes:* )
7097 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7099 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7100 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7101 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7102 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7103 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7104 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7107 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7108 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7109 (
7110 cat <<\_ASBOX
7111 ## ----------------------------------- ##
7112 ## Report this to bug-readline@gnu.org ##
7113 ## ----------------------------------- ##
7114 _ASBOX
7115 ) |
7116 sed "s/^/$as_me: WARNING: /" >&2
7117 ;;
7118 esac
7119 echo "$as_me:$LINENO: checking for $ac_header" >&5
7120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7123 else
7124 eval "$as_ac_Header=\$ac_header_preproc"
7125 fi
7126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7128
7129 fi
7130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7131 cat >>confdefs.h <<_ACEOF
7132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7133 _ACEOF
7134
7135 fi
7136
7137 done
7138
7139
7140 for ac_header in langinfo.h
7141 do
7142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7144 echo "$as_me:$LINENO: checking for $ac_header" >&5
7145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 fi
7149 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7150 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7151 else
7152 # Is the header compilable?
7153 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7154 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7155 cat >conftest.$ac_ext <<_ACEOF
7156 /* confdefs.h. */
7157 _ACEOF
7158 cat confdefs.h >>conftest.$ac_ext
7159 cat >>conftest.$ac_ext <<_ACEOF
7160 /* end confdefs.h. */
7161 $ac_includes_default
7162 #include <$ac_header>
7163 _ACEOF
7164 rm -f conftest.$ac_objext
7165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7166 (eval $ac_compile) 2>conftest.er1
7167 ac_status=$?
7168 grep -v '^ *+' conftest.er1 >conftest.err
7169 rm -f conftest.er1
7170 cat conftest.err >&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } &&
7173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175 (eval $ac_try) 2>&5
7176 ac_status=$?
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }; } &&
7179 { ac_try='test -s conftest.$ac_objext'
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181 (eval $ac_try) 2>&5
7182 ac_status=$?
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; }; then
7185 ac_header_compiler=yes
7186 else
7187 echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.$ac_ext >&5
7189
7190 ac_header_compiler=no
7191 fi
7192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7193 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7194 echo "${ECHO_T}$ac_header_compiler" >&6
7195
7196 # Is the header present?
7197 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7199 cat >conftest.$ac_ext <<_ACEOF
7200 /* confdefs.h. */
7201 _ACEOF
7202 cat confdefs.h >>conftest.$ac_ext
7203 cat >>conftest.$ac_ext <<_ACEOF
7204 /* end confdefs.h. */
7205 #include <$ac_header>
7206 _ACEOF
7207 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7209 ac_status=$?
7210 grep -v '^ *+' conftest.er1 >conftest.err
7211 rm -f conftest.er1
7212 cat conftest.err >&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); } >/dev/null; then
7215 if test -s conftest.err; then
7216 ac_cpp_err=$ac_c_preproc_warn_flag
7217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7218 else
7219 ac_cpp_err=
7220 fi
7221 else
7222 ac_cpp_err=yes
7223 fi
7224 if test -z "$ac_cpp_err"; then
7225 ac_header_preproc=yes
7226 else
7227 echo "$as_me: failed program was:" >&5
7228 sed 's/^/| /' conftest.$ac_ext >&5
7229
7230 ac_header_preproc=no
7231 fi
7232 rm -f conftest.err conftest.$ac_ext
7233 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7234 echo "${ECHO_T}$ac_header_preproc" >&6
7235
7236 # So? What about this header?
7237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7238 yes:no: )
7239 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7240 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7241 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7243 ac_header_preproc=yes
7244 ;;
7245 no:yes:* )
7246 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7247 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7248 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7249 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7250 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7251 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7252 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7253 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7256 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7257 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7258 (
7259 cat <<\_ASBOX
7260 ## ----------------------------------- ##
7261 ## Report this to bug-readline@gnu.org ##
7262 ## ----------------------------------- ##
7263 _ASBOX
7264 ) |
7265 sed "s/^/$as_me: WARNING: /" >&2
7266 ;;
7267 esac
7268 echo "$as_me:$LINENO: checking for $ac_header" >&5
7269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7272 else
7273 eval "$as_ac_Header=\$ac_header_preproc"
7274 fi
7275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7277
7278 fi
7279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7280 cat >>confdefs.h <<_ACEOF
7281 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7282 _ACEOF
7283
7284 fi
7285
7286 done
7287
7288
7289 echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
7290 echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6
7291 if test "${ac_cv_func_mbsrtowcs+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 else
7294 cat >conftest.$ac_ext <<_ACEOF
7295 /* confdefs.h. */
7296 _ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h. */
7300 /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
7301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7302 #define mbsrtowcs innocuous_mbsrtowcs
7303
7304 /* System header to define __stub macros and hopefully few prototypes,
7305 which can conflict with char mbsrtowcs (); below.
7306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7307 <limits.h> exists even on freestanding compilers. */
7308
7309 #ifdef __STDC__
7310 # include <limits.h>
7311 #else
7312 # include <assert.h>
7313 #endif
7314
7315 #undef mbsrtowcs
7316
7317 /* Override any gcc2 internal prototype to avoid an error. */
7318 #ifdef __cplusplus
7319 extern "C"
7320 {
7321 #endif
7322 /* We use char because int might match the return type of a gcc2
7323 builtin and then its argument prototype would still apply. */
7324 char mbsrtowcs ();
7325 /* The GNU C library defines this for functions which it implements
7326 to always fail with ENOSYS. Some functions are actually named
7327 something starting with __ and the normal name is an alias. */
7328 #if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs)
7329 choke me
7330 #else
7331 char (*f) () = mbsrtowcs;
7332 #endif
7333 #ifdef __cplusplus
7334 }
7335 #endif
7336
7337 int
7338 main ()
7339 {
7340 return f != mbsrtowcs;
7341 ;
7342 return 0;
7343 }
7344 _ACEOF
7345 rm -f conftest.$ac_objext conftest$ac_exeext
7346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7347 (eval $ac_link) 2>conftest.er1
7348 ac_status=$?
7349 grep -v '^ *+' conftest.er1 >conftest.err
7350 rm -f conftest.er1
7351 cat conftest.err >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); } &&
7354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356 (eval $ac_try) 2>&5
7357 ac_status=$?
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; } &&
7360 { ac_try='test -s conftest$ac_exeext'
7361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362 (eval $ac_try) 2>&5
7363 ac_status=$?
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); }; }; then
7366 ac_cv_func_mbsrtowcs=yes
7367 else
7368 echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7370
7371 ac_cv_func_mbsrtowcs=no
7372 fi
7373 rm -f conftest.err conftest.$ac_objext \
7374 conftest$ac_exeext conftest.$ac_ext
7375 fi
7376 echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
7377 echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
7378 if test $ac_cv_func_mbsrtowcs = yes; then
7379 cat >>confdefs.h <<\_ACEOF
7380 #define HAVE_MBSRTOWCS 1
7381 _ACEOF
7382
7383 fi
7384
7385 echo "$as_me:$LINENO: checking for mbrtowc" >&5
7386 echo $ECHO_N "checking for mbrtowc... $ECHO_C" >&6
7387 if test "${ac_cv_func_mbrtowc+set}" = set; then
7388 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 else
7390 cat >conftest.$ac_ext <<_ACEOF
7391 /* confdefs.h. */
7392 _ACEOF
7393 cat confdefs.h >>conftest.$ac_ext
7394 cat >>conftest.$ac_ext <<_ACEOF
7395 /* end confdefs.h. */
7396 /* Define mbrtowc to an innocuous variant, in case <limits.h> declares mbrtowc.
7397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7398 #define mbrtowc innocuous_mbrtowc
7399
7400 /* System header to define __stub macros and hopefully few prototypes,
7401 which can conflict with char mbrtowc (); below.
7402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7403 <limits.h> exists even on freestanding compilers. */
7404
7405 #ifdef __STDC__
7406 # include <limits.h>
7407 #else
7408 # include <assert.h>
7409 #endif
7410
7411 #undef mbrtowc
7412
7413 /* Override any gcc2 internal prototype to avoid an error. */
7414 #ifdef __cplusplus
7415 extern "C"
7416 {
7417 #endif
7418 /* We use char because int might match the return type of a gcc2
7419 builtin and then its argument prototype would still apply. */
7420 char mbrtowc ();
7421 /* The GNU C library defines this for functions which it implements
7422 to always fail with ENOSYS. Some functions are actually named
7423 something starting with __ and the normal name is an alias. */
7424 #if defined (__stub_mbrtowc) || defined (__stub___mbrtowc)
7425 choke me
7426 #else
7427 char (*f) () = mbrtowc;
7428 #endif
7429 #ifdef __cplusplus
7430 }
7431 #endif
7432
7433 int
7434 main ()
7435 {
7436 return f != mbrtowc;
7437 ;
7438 return 0;
7439 }
7440 _ACEOF
7441 rm -f conftest.$ac_objext conftest$ac_exeext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7443 (eval $ac_link) 2>conftest.er1
7444 ac_status=$?
7445 grep -v '^ *+' conftest.er1 >conftest.err
7446 rm -f conftest.er1
7447 cat conftest.err >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } &&
7450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452 (eval $ac_try) 2>&5
7453 ac_status=$?
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); }; } &&
7456 { ac_try='test -s conftest$ac_exeext'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458 (eval $ac_try) 2>&5
7459 ac_status=$?
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; }; then
7462 ac_cv_func_mbrtowc=yes
7463 else
7464 echo "$as_me: failed program was:" >&5
7465 sed 's/^/| /' conftest.$ac_ext >&5
7466
7467 ac_cv_func_mbrtowc=no
7468 fi
7469 rm -f conftest.err conftest.$ac_objext \
7470 conftest$ac_exeext conftest.$ac_ext
7471 fi
7472 echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
7473 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
7474 if test $ac_cv_func_mbrtowc = yes; then
7475 cat >>confdefs.h <<\_ACEOF
7476 #define HAVE_MBRTOWC 1
7477 _ACEOF
7478
7479 fi
7480
7481 echo "$as_me:$LINENO: checking for mbrlen" >&5
7482 echo $ECHO_N "checking for mbrlen... $ECHO_C" >&6
7483 if test "${ac_cv_func_mbrlen+set}" = set; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
7485 else
7486 cat >conftest.$ac_ext <<_ACEOF
7487 /* confdefs.h. */
7488 _ACEOF
7489 cat confdefs.h >>conftest.$ac_ext
7490 cat >>conftest.$ac_ext <<_ACEOF
7491 /* end confdefs.h. */
7492 /* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
7493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7494 #define mbrlen innocuous_mbrlen
7495
7496 /* System header to define __stub macros and hopefully few prototypes,
7497 which can conflict with char mbrlen (); below.
7498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7499 <limits.h> exists even on freestanding compilers. */
7500
7501 #ifdef __STDC__
7502 # include <limits.h>
7503 #else
7504 # include <assert.h>
7505 #endif
7506
7507 #undef mbrlen
7508
7509 /* Override any gcc2 internal prototype to avoid an error. */
7510 #ifdef __cplusplus
7511 extern "C"
7512 {
7513 #endif
7514 /* We use char because int might match the return type of a gcc2
7515 builtin and then its argument prototype would still apply. */
7516 char mbrlen ();
7517 /* The GNU C library defines this for functions which it implements
7518 to always fail with ENOSYS. Some functions are actually named
7519 something starting with __ and the normal name is an alias. */
7520 #if defined (__stub_mbrlen) || defined (__stub___mbrlen)
7521 choke me
7522 #else
7523 char (*f) () = mbrlen;
7524 #endif
7525 #ifdef __cplusplus
7526 }
7527 #endif
7528
7529 int
7530 main ()
7531 {
7532 return f != mbrlen;
7533 ;
7534 return 0;
7535 }
7536 _ACEOF
7537 rm -f conftest.$ac_objext conftest$ac_exeext
7538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7539 (eval $ac_link) 2>conftest.er1
7540 ac_status=$?
7541 grep -v '^ *+' conftest.er1 >conftest.err
7542 rm -f conftest.er1
7543 cat conftest.err >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } &&
7546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548 (eval $ac_try) 2>&5
7549 ac_status=$?
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; } &&
7552 { ac_try='test -s conftest$ac_exeext'
7553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554 (eval $ac_try) 2>&5
7555 ac_status=$?
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); }; }; then
7558 ac_cv_func_mbrlen=yes
7559 else
7560 echo "$as_me: failed program was:" >&5
7561 sed 's/^/| /' conftest.$ac_ext >&5
7562
7563 ac_cv_func_mbrlen=no
7564 fi
7565 rm -f conftest.err conftest.$ac_objext \
7566 conftest$ac_exeext conftest.$ac_ext
7567 fi
7568 echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
7569 echo "${ECHO_T}$ac_cv_func_mbrlen" >&6
7570 if test $ac_cv_func_mbrlen = yes; then
7571 cat >>confdefs.h <<\_ACEOF
7572 #define HAVE_MBRLEN 1
7573 _ACEOF
7574
7575 fi
7576
7577 echo "$as_me:$LINENO: checking for wctomb" >&5
7578 echo $ECHO_N "checking for wctomb... $ECHO_C" >&6
7579 if test "${ac_cv_func_wctomb+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 else
7582 cat >conftest.$ac_ext <<_ACEOF
7583 /* confdefs.h. */
7584 _ACEOF
7585 cat confdefs.h >>conftest.$ac_ext
7586 cat >>conftest.$ac_ext <<_ACEOF
7587 /* end confdefs.h. */
7588 /* Define wctomb to an innocuous variant, in case <limits.h> declares wctomb.
7589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7590 #define wctomb innocuous_wctomb
7591
7592 /* System header to define __stub macros and hopefully few prototypes,
7593 which can conflict with char wctomb (); below.
7594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7595 <limits.h> exists even on freestanding compilers. */
7596
7597 #ifdef __STDC__
7598 # include <limits.h>
7599 #else
7600 # include <assert.h>
7601 #endif
7602
7603 #undef wctomb
7604
7605 /* Override any gcc2 internal prototype to avoid an error. */
7606 #ifdef __cplusplus
7607 extern "C"
7608 {
7609 #endif
7610 /* We use char because int might match the return type of a gcc2
7611 builtin and then its argument prototype would still apply. */
7612 char wctomb ();
7613 /* The GNU C library defines this for functions which it implements
7614 to always fail with ENOSYS. Some functions are actually named
7615 something starting with __ and the normal name is an alias. */
7616 #if defined (__stub_wctomb) || defined (__stub___wctomb)
7617 choke me
7618 #else
7619 char (*f) () = wctomb;
7620 #endif
7621 #ifdef __cplusplus
7622 }
7623 #endif
7624
7625 int
7626 main ()
7627 {
7628 return f != wctomb;
7629 ;
7630 return 0;
7631 }
7632 _ACEOF
7633 rm -f conftest.$ac_objext conftest$ac_exeext
7634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7635 (eval $ac_link) 2>conftest.er1
7636 ac_status=$?
7637 grep -v '^ *+' conftest.er1 >conftest.err
7638 rm -f conftest.er1
7639 cat conftest.err >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } &&
7642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 (eval $ac_try) 2>&5
7645 ac_status=$?
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); }; } &&
7648 { ac_try='test -s conftest$ac_exeext'
7649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7650 (eval $ac_try) 2>&5
7651 ac_status=$?
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; }; then
7654 ac_cv_func_wctomb=yes
7655 else
7656 echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7658
7659 ac_cv_func_wctomb=no
7660 fi
7661 rm -f conftest.err conftest.$ac_objext \
7662 conftest$ac_exeext conftest.$ac_ext
7663 fi
7664 echo "$as_me:$LINENO: result: $ac_cv_func_wctomb" >&5
7665 echo "${ECHO_T}$ac_cv_func_wctomb" >&6
7666 if test $ac_cv_func_wctomb = yes; then
7667 cat >>confdefs.h <<\_ACEOF
7668 #define HAVE_WCTOMB 1
7669 _ACEOF
7670
7671 fi
7672
7673 echo "$as_me:$LINENO: checking for wcwidth" >&5
7674 echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
7675 if test "${ac_cv_func_wcwidth+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 else
7678 cat >conftest.$ac_ext <<_ACEOF
7679 /* confdefs.h. */
7680 _ACEOF
7681 cat confdefs.h >>conftest.$ac_ext
7682 cat >>conftest.$ac_ext <<_ACEOF
7683 /* end confdefs.h. */
7684 /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
7685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7686 #define wcwidth innocuous_wcwidth
7687
7688 /* System header to define __stub macros and hopefully few prototypes,
7689 which can conflict with char wcwidth (); below.
7690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7691 <limits.h> exists even on freestanding compilers. */
7692
7693 #ifdef __STDC__
7694 # include <limits.h>
7695 #else
7696 # include <assert.h>
7697 #endif
7698
7699 #undef wcwidth
7700
7701 /* Override any gcc2 internal prototype to avoid an error. */
7702 #ifdef __cplusplus
7703 extern "C"
7704 {
7705 #endif
7706 /* We use char because int might match the return type of a gcc2
7707 builtin and then its argument prototype would still apply. */
7708 char wcwidth ();
7709 /* The GNU C library defines this for functions which it implements
7710 to always fail with ENOSYS. Some functions are actually named
7711 something starting with __ and the normal name is an alias. */
7712 #if defined (__stub_wcwidth) || defined (__stub___wcwidth)
7713 choke me
7714 #else
7715 char (*f) () = wcwidth;
7716 #endif
7717 #ifdef __cplusplus
7718 }
7719 #endif
7720
7721 int
7722 main ()
7723 {
7724 return f != wcwidth;
7725 ;
7726 return 0;
7727 }
7728 _ACEOF
7729 rm -f conftest.$ac_objext conftest$ac_exeext
7730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7731 (eval $ac_link) 2>conftest.er1
7732 ac_status=$?
7733 grep -v '^ *+' conftest.er1 >conftest.err
7734 rm -f conftest.er1
7735 cat conftest.err >&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } &&
7738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740 (eval $ac_try) 2>&5
7741 ac_status=$?
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); }; } &&
7744 { ac_try='test -s conftest$ac_exeext'
7745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7746 (eval $ac_try) 2>&5
7747 ac_status=$?
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; }; then
7750 ac_cv_func_wcwidth=yes
7751 else
7752 echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.$ac_ext >&5
7754
7755 ac_cv_func_wcwidth=no
7756 fi
7757 rm -f conftest.err conftest.$ac_objext \
7758 conftest$ac_exeext conftest.$ac_ext
7759 fi
7760 echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
7761 echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
7762 if test $ac_cv_func_wcwidth = yes; then
7763 cat >>confdefs.h <<\_ACEOF
7764 #define HAVE_WCWIDTH 1
7765 _ACEOF
7766
7767 fi
7768
7769 echo "$as_me:$LINENO: checking for wcsdup" >&5
7770 echo $ECHO_N "checking for wcsdup... $ECHO_C" >&6
7771 if test "${ac_cv_func_wcsdup+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 else
7774 cat >conftest.$ac_ext <<_ACEOF
7775 /* confdefs.h. */
7776 _ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h. */
7780 /* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
7781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7782 #define wcsdup innocuous_wcsdup
7783
7784 /* System header to define __stub macros and hopefully few prototypes,
7785 which can conflict with char wcsdup (); below.
7786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7787 <limits.h> exists even on freestanding compilers. */
7788
7789 #ifdef __STDC__
7790 # include <limits.h>
7791 #else
7792 # include <assert.h>
7793 #endif
7794
7795 #undef wcsdup
7796
7797 /* Override any gcc2 internal prototype to avoid an error. */
7798 #ifdef __cplusplus
7799 extern "C"
7800 {
7801 #endif
7802 /* We use char because int might match the return type of a gcc2
7803 builtin and then its argument prototype would still apply. */
7804 char wcsdup ();
7805 /* The GNU C library defines this for functions which it implements
7806 to always fail with ENOSYS. Some functions are actually named
7807 something starting with __ and the normal name is an alias. */
7808 #if defined (__stub_wcsdup) || defined (__stub___wcsdup)
7809 choke me
7810 #else
7811 char (*f) () = wcsdup;
7812 #endif
7813 #ifdef __cplusplus
7814 }
7815 #endif
7816
7817 int
7818 main ()
7819 {
7820 return f != wcsdup;
7821 ;
7822 return 0;
7823 }
7824 _ACEOF
7825 rm -f conftest.$ac_objext conftest$ac_exeext
7826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7827 (eval $ac_link) 2>conftest.er1
7828 ac_status=$?
7829 grep -v '^ *+' conftest.er1 >conftest.err
7830 rm -f conftest.er1
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } &&
7834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 (eval $ac_try) 2>&5
7837 ac_status=$?
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; } &&
7840 { ac_try='test -s conftest$ac_exeext'
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7842 (eval $ac_try) 2>&5
7843 ac_status=$?
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; }; then
7846 ac_cv_func_wcsdup=yes
7847 else
7848 echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7850
7851 ac_cv_func_wcsdup=no
7852 fi
7853 rm -f conftest.err conftest.$ac_objext \
7854 conftest$ac_exeext conftest.$ac_ext
7855 fi
7856 echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
7857 echo "${ECHO_T}$ac_cv_func_wcsdup" >&6
7858 if test $ac_cv_func_wcsdup = yes; then
7859 cat >>confdefs.h <<\_ACEOF
7860 #define HAVE_WCSDUP 1
7861 _ACEOF
7862
7863 fi
7864
7865
7866 if test "$ac_cv_func_wcwidth" = no && test "$ac_cv_header_wchar_h" = yes; then
7867 WCWIDTH_OBJ=wcwidth.o
7868 else
7869 WCWIDTH_OBJ=
7870 fi
7871
7872
7873 echo "$as_me:$LINENO: checking for mbstate_t" >&5
7874 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
7875 if test "${bash_cv_have_mbstate_t+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 else
7878 cat >conftest.$ac_ext <<_ACEOF
7879 /* confdefs.h. */
7880 _ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h. */
7884
7885 #include <wchar.h>
7886 int
7887 main ()
7888 {
7889
7890 mbstate_t ps;
7891 mbstate_t *psp;
7892 psp = (mbstate_t *)0;
7893
7894 ;
7895 return 0;
7896 }
7897 _ACEOF
7898 rm -f conftest.$ac_objext
7899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7900 (eval $ac_compile) 2>conftest.er1
7901 ac_status=$?
7902 grep -v '^ *+' conftest.er1 >conftest.err
7903 rm -f conftest.er1
7904 cat conftest.err >&5
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } &&
7907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7909 (eval $ac_try) 2>&5
7910 ac_status=$?
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); }; } &&
7913 { ac_try='test -s conftest.$ac_objext'
7914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7915 (eval $ac_try) 2>&5
7916 ac_status=$?
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); }; }; then
7919 bash_cv_have_mbstate_t=yes
7920 else
7921 echo "$as_me: failed program was:" >&5
7922 sed 's/^/| /' conftest.$ac_ext >&5
7923
7924 bash_cv_have_mbstate_t=no
7925 fi
7926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7927 fi
7928 echo "$as_me:$LINENO: result: $bash_cv_have_mbstate_t" >&5
7929 echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6
7930 if test $bash_cv_have_mbstate_t = yes; then
7931 cat >>confdefs.h <<\_ACEOF
7932 #define HAVE_MBSTATE_T 1
7933 _ACEOF
7934
7935 fi
7936
7937 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
7938 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
7939 if test "${bash_cv_langinfo_codeset+set}" = set; then
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7941 else
7942 cat >conftest.$ac_ext <<_ACEOF
7943 /* confdefs.h. */
7944 _ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7948 #include <langinfo.h>
7949 int
7950 main ()
7951 {
7952 char* cs = nl_langinfo(CODESET);
7953 ;
7954 return 0;
7955 }
7956 _ACEOF
7957 rm -f conftest.$ac_objext conftest$ac_exeext
7958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7959 (eval $ac_link) 2>conftest.er1
7960 ac_status=$?
7961 grep -v '^ *+' conftest.er1 >conftest.err
7962 rm -f conftest.er1
7963 cat conftest.err >&5
7964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); } &&
7966 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968 (eval $ac_try) 2>&5
7969 ac_status=$?
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; } &&
7972 { ac_try='test -s conftest$ac_exeext'
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974 (eval $ac_try) 2>&5
7975 ac_status=$?
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
7978 bash_cv_langinfo_codeset=yes
7979 else
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7982
7983 bash_cv_langinfo_codeset=no
7984 fi
7985 rm -f conftest.err conftest.$ac_objext \
7986 conftest$ac_exeext conftest.$ac_ext
7987 fi
7988 echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
7989 echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6
7990 if test $bash_cv_langinfo_codeset = yes; then
7991 cat >>confdefs.h <<\_ACEOF
7992 #define HAVE_LANGINFO_CODESET 1
7993 _ACEOF
7994
7995 fi
7996
7997
7998
7999 case "$host_cpu" in
8000 *cray*) LOCAL_CFLAGS=-DCRAY ;;
8001 *s390*) LOCAL_CFLAGS=-fsigned-char ;;
8002 esac
8003
8004 case "$host_os" in
8005 isc*) LOCAL_CFLAGS=-Disc386 ;;
8006 esac
8007
8008 # shared library configuration section
8009 #
8010 # Shared object configuration section. These values are generated by
8011 # ${srcdir}/support/shobj-conf
8012 #
8013 if test -f ${srcdir}/support/shobj-conf; then
8014 echo "$as_me:$LINENO: checking configuration for building shared libraries" >&5
8015 echo $ECHO_N "checking configuration for building shared libraries... $ECHO_C" >&6
8016 eval `TERMCAP_LIB=$TERMCAP_LIB ${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
8017
8018 # case "$SHLIB_LIBS" in
8019 # *curses*|*termcap*|*termlib*) ;;
8020 # *) SHLIB_LIBS="$SHLIB_LIBS $TERMCAP_LIB" ;;
8021 # esac
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038 echo "$as_me:$LINENO: result: $SHLIB_STATUS" >&5
8039 echo "${ECHO_T}$SHLIB_STATUS" >&6
8040
8041 # SHLIB_STATUS is either `supported' or `unsupported'. If it's
8042 # `unsupported', turn off any default shared library building
8043 if test "$SHLIB_STATUS" = 'unsupported'; then
8044 opt_shared_libs=no
8045 fi
8046
8047 # shared library versioning
8048 # quoted for m4 so I can use character classes
8049 SHLIB_MAJOR=`expr "$LIBVERSION" : '\([0-9]\)\..*'`
8050 SHLIB_MINOR=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'`
8051
8052
8053 fi
8054
8055 if test "$opt_static_libs" = "yes"; then
8056 STATIC_TARGET=static
8057 STATIC_INSTALL_TARGET=install-static
8058 fi
8059 if test "$opt_shared_libs" = "yes"; then
8060 SHARED_TARGET=shared
8061 SHARED_INSTALL_TARGET=install-shared
8062 fi
8063
8064
8065
8066
8067
8068
8069 case "$host_os" in
8070 msdosdjgpp*) BUILD_DIR=`pwd.exe` ;; # to prevent //d/path/file
8071 *) BUILD_DIR=`pwd` ;;
8072 esac
8073
8074 case "$BUILD_DIR" in
8075 *\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
8076 *) ;;
8077 esac
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097 ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile"
8098 ac_config_commands="$ac_config_commands default"
8099 cat >confcache <<\_ACEOF
8100 # This file is a shell script that caches the results of configure
8101 # tests run on this system so they can be shared between configure
8102 # scripts and configure runs, see configure's option --config-cache.
8103 # It is not useful on other systems. If it contains results you don't
8104 # want to keep, you may remove or edit it.
8105 #
8106 # config.status only pays attention to the cache file if you give it
8107 # the --recheck option to rerun configure.
8108 #
8109 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8110 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8111 # following values.
8112
8113 _ACEOF
8114
8115 # The following way of writing the cache mishandles newlines in values,
8116 # but we know of no workaround that is simple, portable, and efficient.
8117 # So, don't put newlines in cache variables' values.
8118 # Ultrix sh set writes to stderr and can't be redirected directly,
8119 # and sets the high bit in the cache file unless we assign to the vars.
8120 {
8121 (set) 2>&1 |
8122 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8123 *ac_space=\ *)
8124 # `set' does not quote correctly, so add quotes (double-quote
8125 # substitution turns \\\\ into \\, and sed turns \\ into \).
8126 sed -n \
8127 "s/'/'\\\\''/g;
8128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8129 ;;
8130 *)
8131 # `set' quotes correctly as required by POSIX, so do not add quotes.
8132 sed -n \
8133 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8134 ;;
8135 esac;
8136 } |
8137 sed '
8138 t clear
8139 : clear
8140 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8141 t end
8142 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8143 : end' >>confcache
8144 if diff $cache_file confcache >/dev/null 2>&1; then :; else
8145 if test -w $cache_file; then
8146 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8147 cat confcache >$cache_file
8148 else
8149 echo "not updating unwritable cache $cache_file"
8150 fi
8151 fi
8152 rm -f confcache
8153
8154 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8155 # Let make expand exec_prefix.
8156 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8157
8158 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8159 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8160 # trailing colons and then remove the whole line if VPATH becomes empty
8161 # (actually we leave an empty line to preserve line numbers).
8162 if test "x$srcdir" = x.; then
8163 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8164 s/:*\$(srcdir):*/:/;
8165 s/:*\${srcdir}:*/:/;
8166 s/:*@srcdir@:*/:/;
8167 s/^\([^=]*=[ ]*\):*/\1/;
8168 s/:*$//;
8169 s/^[^=]*=[ ]*$//;
8170 }'
8171 fi
8172
8173 DEFS=-DHAVE_CONFIG_H
8174
8175 ac_libobjs=
8176 ac_ltlibobjs=
8177 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8178 # 1. Remove the extension, and $U if already installed.
8179 ac_i=`echo "$ac_i" |
8180 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8181 # 2. Add them.
8182 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8183 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8184 done
8185 LIBOBJS=$ac_libobjs
8186
8187 LTLIBOBJS=$ac_ltlibobjs
8188
8189
8190
8191 : ${CONFIG_STATUS=./config.status}
8192 ac_clean_files_save=$ac_clean_files
8193 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8194 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8195 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8196 cat >$CONFIG_STATUS <<_ACEOF
8197 #! $SHELL
8198 # Generated by $as_me.
8199 # Run this file to recreate the current configuration.
8200 # Compiler output produced by configure, useful for debugging
8201 # configure, is in config.log if it exists.
8202
8203 debug=false
8204 ac_cs_recheck=false
8205 ac_cs_silent=false
8206 SHELL=\${CONFIG_SHELL-$SHELL}
8207 _ACEOF
8208
8209 cat >>$CONFIG_STATUS <<\_ACEOF
8210 ## --------------------- ##
8211 ## M4sh Initialization. ##
8212 ## --------------------- ##
8213
8214 # Be Bourne compatible
8215 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8216 emulate sh
8217 NULLCMD=:
8218 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8219 # is contrary to our usage. Disable this feature.
8220 alias -g '${1+"$@"}'='"$@"'
8221 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8222 set -o posix
8223 fi
8224 DUALCASE=1; export DUALCASE # for MKS sh
8225
8226 # Support unset when possible.
8227 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8228 as_unset=unset
8229 else
8230 as_unset=false
8231 fi
8232
8233
8234 # Work around bugs in pre-3.0 UWIN ksh.
8235 $as_unset ENV MAIL MAILPATH
8236 PS1='$ '
8237 PS2='> '
8238 PS4='+ '
8239
8240 # NLS nuisances.
8241 for as_var in \
8242 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8243 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8244 LC_TELEPHONE LC_TIME
8245 do
8246 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8247 eval $as_var=C; export $as_var
8248 else
8249 $as_unset $as_var
8250 fi
8251 done
8252
8253 # Required to use basename.
8254 if expr a : '\(a\)' >/dev/null 2>&1; then
8255 as_expr=expr
8256 else
8257 as_expr=false
8258 fi
8259
8260 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8261 as_basename=basename
8262 else
8263 as_basename=false
8264 fi
8265
8266
8267 # Name of the executable.
8268 as_me=`$as_basename "$0" ||
8269 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8270 X"$0" : 'X\(//\)$' \| \
8271 X"$0" : 'X\(/\)$' \| \
8272 . : '\(.\)' 2>/dev/null ||
8273 echo X/"$0" |
8274 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8275 /^X\/\(\/\/\)$/{ s//\1/; q; }
8276 /^X\/\(\/\).*/{ s//\1/; q; }
8277 s/.*/./; q'`
8278
8279
8280 # PATH needs CR, and LINENO needs CR and PATH.
8281 # Avoid depending upon Character Ranges.
8282 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8283 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8284 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8285 as_cr_digits='0123456789'
8286 as_cr_alnum=$as_cr_Letters$as_cr_digits
8287
8288 # The user is always right.
8289 if test "${PATH_SEPARATOR+set}" != set; then
8290 echo "#! /bin/sh" >conf$$.sh
8291 echo "exit 0" >>conf$$.sh
8292 chmod +x conf$$.sh
8293 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8294 PATH_SEPARATOR=';'
8295 else
8296 PATH_SEPARATOR=:
8297 fi
8298 rm -f conf$$.sh
8299 fi
8300
8301
8302 as_lineno_1=$LINENO
8303 as_lineno_2=$LINENO
8304 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8305 test "x$as_lineno_1" != "x$as_lineno_2" &&
8306 test "x$as_lineno_3" = "x$as_lineno_2" || {
8307 # Find who we are. Look in the path if we contain no path at all
8308 # relative or not.
8309 case $0 in
8310 *[\\/]* ) as_myself=$0 ;;
8311 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8312 for as_dir in $PATH
8313 do
8314 IFS=$as_save_IFS
8315 test -z "$as_dir" && as_dir=.
8316 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8317 done
8318
8319 ;;
8320 esac
8321 # We did not find ourselves, most probably we were run as `sh COMMAND'
8322 # in which case we are not to be found in the path.
8323 if test "x$as_myself" = x; then
8324 as_myself=$0
8325 fi
8326 if test ! -f "$as_myself"; then
8327 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8328 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8329 { (exit 1); exit 1; }; }
8330 fi
8331 case $CONFIG_SHELL in
8332 '')
8333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8334 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8335 do
8336 IFS=$as_save_IFS
8337 test -z "$as_dir" && as_dir=.
8338 for as_base in sh bash ksh sh5; do
8339 case $as_dir in
8340 /*)
8341 if ("$as_dir/$as_base" -c '
8342 as_lineno_1=$LINENO
8343 as_lineno_2=$LINENO
8344 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8345 test "x$as_lineno_1" != "x$as_lineno_2" &&
8346 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8347 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8348 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8349 CONFIG_SHELL=$as_dir/$as_base
8350 export CONFIG_SHELL
8351 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8352 fi;;
8353 esac
8354 done
8355 done
8356 ;;
8357 esac
8358
8359 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8360 # uniformly replaced by the line number. The first 'sed' inserts a
8361 # line-number line before each line; the second 'sed' does the real
8362 # work. The second script uses 'N' to pair each line-number line
8363 # with the numbered line, and appends trailing '-' during
8364 # substitution so that $LINENO is not a special case at line end.
8365 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8366 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8367 sed '=' <$as_myself |
8368 sed '
8369 N
8370 s,$,-,
8371 : loop
8372 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8373 t loop
8374 s,-$,,
8375 s,^['$as_cr_digits']*\n,,
8376 ' >$as_me.lineno &&
8377 chmod +x $as_me.lineno ||
8378 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8379 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8380 { (exit 1); exit 1; }; }
8381
8382 # Don't try to exec as it changes $[0], causing all sort of problems
8383 # (the dirname of $[0] is not the place where we might find the
8384 # original and so on. Autoconf is especially sensible to this).
8385 . ./$as_me.lineno
8386 # Exit status is that of the last command.
8387 exit
8388 }
8389
8390
8391 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8392 *c*,-n*) ECHO_N= ECHO_C='
8393 ' ECHO_T=' ' ;;
8394 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8395 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8396 esac
8397
8398 if expr a : '\(a\)' >/dev/null 2>&1; then
8399 as_expr=expr
8400 else
8401 as_expr=false
8402 fi
8403
8404 rm -f conf$$ conf$$.exe conf$$.file
8405 echo >conf$$.file
8406 if ln -s conf$$.file conf$$ 2>/dev/null; then
8407 # We could just check for DJGPP; but this test a) works b) is more generic
8408 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8409 if test -f conf$$.exe; then
8410 # Don't use ln at all; we don't have any links
8411 as_ln_s='cp -p'
8412 else
8413 as_ln_s='ln -s'
8414 fi
8415 elif ln conf$$.file conf$$ 2>/dev/null; then
8416 as_ln_s=ln
8417 else
8418 as_ln_s='cp -p'
8419 fi
8420 rm -f conf$$ conf$$.exe conf$$.file
8421
8422 if mkdir -p . 2>/dev/null; then
8423 as_mkdir_p=:
8424 else
8425 test -d ./-p && rmdir ./-p
8426 as_mkdir_p=false
8427 fi
8428
8429 as_executable_p="test -f"
8430
8431 # Sed expression to map a string onto a valid CPP name.
8432 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8433
8434 # Sed expression to map a string onto a valid variable name.
8435 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8436
8437
8438 # IFS
8439 # We need space, tab and new line, in precisely that order.
8440 as_nl='
8441 '
8442 IFS=" $as_nl"
8443
8444 # CDPATH.
8445 $as_unset CDPATH
8446
8447 exec 6>&1
8448
8449 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8450 # report actual input values of CONFIG_FILES etc. instead of their
8451 # values after options handling. Logging --version etc. is OK.
8452 exec 5>>config.log
8453 {
8454 echo
8455 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8456 ## Running $as_me. ##
8457 _ASBOX
8458 } >&5
8459 cat >&5 <<_CSEOF
8460
8461 This file was extended by readline $as_me 5.1-release, which was
8462 generated by GNU Autoconf 2.59. Invocation command line was
8463
8464 CONFIG_FILES = $CONFIG_FILES
8465 CONFIG_HEADERS = $CONFIG_HEADERS
8466 CONFIG_LINKS = $CONFIG_LINKS
8467 CONFIG_COMMANDS = $CONFIG_COMMANDS
8468 $ $0 $@
8469
8470 _CSEOF
8471 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8472 echo >&5
8473 _ACEOF
8474
8475 # Files that config.status was made for.
8476 if test -n "$ac_config_files"; then
8477 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8478 fi
8479
8480 if test -n "$ac_config_headers"; then
8481 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8482 fi
8483
8484 if test -n "$ac_config_links"; then
8485 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8486 fi
8487
8488 if test -n "$ac_config_commands"; then
8489 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8490 fi
8491
8492 cat >>$CONFIG_STATUS <<\_ACEOF
8493
8494 ac_cs_usage="\
8495 \`$as_me' instantiates files from templates according to the
8496 current configuration.
8497
8498 Usage: $0 [OPTIONS] [FILE]...
8499
8500 -h, --help print this help, then exit
8501 -V, --version print version number, then exit
8502 -q, --quiet do not print progress messages
8503 -d, --debug don't remove temporary files
8504 --recheck update $as_me by reconfiguring in the same conditions
8505 --file=FILE[:TEMPLATE]
8506 instantiate the configuration file FILE
8507 --header=FILE[:TEMPLATE]
8508 instantiate the configuration header FILE
8509
8510 Configuration files:
8511 $config_files
8512
8513 Configuration headers:
8514 $config_headers
8515
8516 Configuration commands:
8517 $config_commands
8518
8519 Report bugs to <bug-autoconf@gnu.org>."
8520 _ACEOF
8521
8522 cat >>$CONFIG_STATUS <<_ACEOF
8523 ac_cs_version="\\
8524 readline config.status 5.1-release
8525 configured by $0, generated by GNU Autoconf 2.59,
8526 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8527
8528 Copyright (C) 2003 Free Software Foundation, Inc.
8529 This config.status script is free software; the Free Software Foundation
8530 gives unlimited permission to copy, distribute and modify it."
8531 srcdir=$srcdir
8532 INSTALL="$INSTALL"
8533 _ACEOF
8534
8535 cat >>$CONFIG_STATUS <<\_ACEOF
8536 # If no file are specified by the user, then we need to provide default
8537 # value. By we need to know if files were specified by the user.
8538 ac_need_defaults=:
8539 while test $# != 0
8540 do
8541 case $1 in
8542 --*=*)
8543 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8544 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8545 ac_shift=:
8546 ;;
8547 -*)
8548 ac_option=$1
8549 ac_optarg=$2
8550 ac_shift=shift
8551 ;;
8552 *) # This is not an option, so the user has probably given explicit
8553 # arguments.
8554 ac_option=$1
8555 ac_need_defaults=false;;
8556 esac
8557
8558 case $ac_option in
8559 # Handling of the options.
8560 _ACEOF
8561 cat >>$CONFIG_STATUS <<\_ACEOF
8562 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8563 ac_cs_recheck=: ;;
8564 --version | --vers* | -V )
8565 echo "$ac_cs_version"; exit 0 ;;
8566 --he | --h)
8567 # Conflict between --help and --header
8568 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8569 Try \`$0 --help' for more information." >&5
8570 echo "$as_me: error: ambiguous option: $1
8571 Try \`$0 --help' for more information." >&2;}
8572 { (exit 1); exit 1; }; };;
8573 --help | --hel | -h )
8574 echo "$ac_cs_usage"; exit 0 ;;
8575 --debug | --d* | -d )
8576 debug=: ;;
8577 --file | --fil | --fi | --f )
8578 $ac_shift
8579 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8580 ac_need_defaults=false;;
8581 --header | --heade | --head | --hea )
8582 $ac_shift
8583 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8584 ac_need_defaults=false;;
8585 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8586 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8587 ac_cs_silent=: ;;
8588
8589 # This is an error.
8590 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8591 Try \`$0 --help' for more information." >&5
8592 echo "$as_me: error: unrecognized option: $1
8593 Try \`$0 --help' for more information." >&2;}
8594 { (exit 1); exit 1; }; } ;;
8595
8596 *) ac_config_targets="$ac_config_targets $1" ;;
8597
8598 esac
8599 shift
8600 done
8601
8602 ac_configure_extra_args=
8603
8604 if $ac_cs_silent; then
8605 exec 6>/dev/null
8606 ac_configure_extra_args="$ac_configure_extra_args --silent"
8607 fi
8608
8609 _ACEOF
8610 cat >>$CONFIG_STATUS <<_ACEOF
8611 if \$ac_cs_recheck; then
8612 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8613 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8614 fi
8615
8616 _ACEOF
8617
8618
8619
8620
8621
8622 cat >>$CONFIG_STATUS <<\_ACEOF
8623 for ac_config_target in $ac_config_targets
8624 do
8625 case "$ac_config_target" in
8626 # Handling of arguments.
8627 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8628 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8629 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
8630 "shlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES shlib/Makefile" ;;
8631 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8632 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8633 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8634 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8635 { (exit 1); exit 1; }; };;
8636 esac
8637 done
8638
8639 # If the user did not use the arguments to specify the items to instantiate,
8640 # then the envvar interface is used. Set only those that are not.
8641 # We use the long form for the default assignment because of an extremely
8642 # bizarre bug on SunOS 4.1.3.
8643 if $ac_need_defaults; then
8644 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8645 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8646 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8647 fi
8648
8649 # Have a temporary directory for convenience. Make it in the build tree
8650 # simply because there is no reason to put it here, and in addition,
8651 # creating and moving files from /tmp can sometimes cause problems.
8652 # Create a temporary directory, and hook for its removal unless debugging.
8653 $debug ||
8654 {
8655 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8656 trap '{ (exit 1); exit 1; }' 1 2 13 15
8657 }
8658
8659 # Create a (secure) tmp directory for tmp files.
8660
8661 {
8662 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8663 test -n "$tmp" && test -d "$tmp"
8664 } ||
8665 {
8666 tmp=./confstat$$-$RANDOM
8667 (umask 077 && mkdir $tmp)
8668 } ||
8669 {
8670 echo "$me: cannot create a temporary directory in ." >&2
8671 { (exit 1); exit 1; }
8672 }
8673
8674 _ACEOF
8675
8676 cat >>$CONFIG_STATUS <<_ACEOF
8677
8678 #
8679 # CONFIG_FILES section.
8680 #
8681
8682 # No need to generate the scripts if there are no CONFIG_FILES.
8683 # This happens for instance when ./config.status config.h
8684 if test -n "\$CONFIG_FILES"; then
8685 # Protect against being on the right side of a sed subst in config.status.
8686 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8687 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8688 s,@SHELL@,$SHELL,;t t
8689 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8690 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8691 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8692 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8693 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8694 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8695 s,@exec_prefix@,$exec_prefix,;t t
8696 s,@prefix@,$prefix,;t t
8697 s,@program_transform_name@,$program_transform_name,;t t
8698 s,@bindir@,$bindir,;t t
8699 s,@sbindir@,$sbindir,;t t
8700 s,@libexecdir@,$libexecdir,;t t
8701 s,@datadir@,$datadir,;t t
8702 s,@sysconfdir@,$sysconfdir,;t t
8703 s,@sharedstatedir@,$sharedstatedir,;t t
8704 s,@localstatedir@,$localstatedir,;t t
8705 s,@libdir@,$libdir,;t t
8706 s,@includedir@,$includedir,;t t
8707 s,@oldincludedir@,$oldincludedir,;t t
8708 s,@infodir@,$infodir,;t t
8709 s,@mandir@,$mandir,;t t
8710 s,@build_alias@,$build_alias,;t t
8711 s,@host_alias@,$host_alias,;t t
8712 s,@target_alias@,$target_alias,;t t
8713 s,@DEFS@,$DEFS,;t t
8714 s,@ECHO_C@,$ECHO_C,;t t
8715 s,@ECHO_N@,$ECHO_N,;t t
8716 s,@ECHO_T@,$ECHO_T,;t t
8717 s,@LIBS@,$LIBS,;t t
8718 s,@build@,$build,;t t
8719 s,@build_cpu@,$build_cpu,;t t
8720 s,@build_vendor@,$build_vendor,;t t
8721 s,@build_os@,$build_os,;t t
8722 s,@host@,$host,;t t
8723 s,@host_cpu@,$host_cpu,;t t
8724 s,@host_vendor@,$host_vendor,;t t
8725 s,@host_os@,$host_os,;t t
8726 s,@CROSS_COMPILE@,$CROSS_COMPILE,;t t
8727 s,@SET_MAKE@,$SET_MAKE,;t t
8728 s,@CC@,$CC,;t t
8729 s,@CFLAGS@,$CFLAGS,;t t
8730 s,@LDFLAGS@,$LDFLAGS,;t t
8731 s,@CPPFLAGS@,$CPPFLAGS,;t t
8732 s,@ac_ct_CC@,$ac_ct_CC,;t t
8733 s,@EXEEXT@,$EXEEXT,;t t
8734 s,@OBJEXT@,$OBJEXT,;t t
8735 s,@CPP@,$CPP,;t t
8736 s,@EGREP@,$EGREP,;t t
8737 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
8738 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8739 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8740 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8741 s,@AR@,$AR,;t t
8742 s,@RANLIB@,$RANLIB,;t t
8743 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8744 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
8745 s,@WCWIDTH_OBJ@,$WCWIDTH_OBJ,;t t
8746 s,@SHOBJ_CC@,$SHOBJ_CC,;t t
8747 s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
8748 s,@SHOBJ_LD@,$SHOBJ_LD,;t t
8749 s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
8750 s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
8751 s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
8752 s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
8753 s,@SHLIB_STATUS@,$SHLIB_STATUS,;t t
8754 s,@SHLIB_XLDFLAGS@,$SHLIB_XLDFLAGS,;t t
8755 s,@SHLIB_DOT@,$SHLIB_DOT,;t t
8756 s,@SHLIB_LIBPREF@,$SHLIB_LIBPREF,;t t
8757 s,@SHLIB_LIBSUFF@,$SHLIB_LIBSUFF,;t t
8758 s,@SHLIB_LIBVERSION@,$SHLIB_LIBVERSION,;t t
8759 s,@SHLIB_DLLVERSION@,$SHLIB_DLLVERSION,;t t
8760 s,@SHLIB_LIBS@,$SHLIB_LIBS,;t t
8761 s,@SHLIB_MAJOR@,$SHLIB_MAJOR,;t t
8762 s,@SHLIB_MINOR@,$SHLIB_MINOR,;t t
8763 s,@STATIC_TARGET@,$STATIC_TARGET,;t t
8764 s,@SHARED_TARGET@,$SHARED_TARGET,;t t
8765 s,@STATIC_INSTALL_TARGET@,$STATIC_INSTALL_TARGET,;t t
8766 s,@SHARED_INSTALL_TARGET@,$SHARED_INSTALL_TARGET,;t t
8767 s,@PURIFY@,$PURIFY,;t t
8768 s,@BUILD_DIR@,$BUILD_DIR,;t t
8769 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
8770 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
8771 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
8772 s,@ARFLAGS@,$ARFLAGS,;t t
8773 s,@LIBVERSION@,$LIBVERSION,;t t
8774 s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
8775 s,@LIBOBJS@,$LIBOBJS,;t t
8776 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8777 CEOF
8778
8779 _ACEOF
8780
8781 cat >>$CONFIG_STATUS <<\_ACEOF
8782 # Split the substitutions into bite-sized pieces for seds with
8783 # small command number limits, like on Digital OSF/1 and HP-UX.
8784 ac_max_sed_lines=48
8785 ac_sed_frag=1 # Number of current file.
8786 ac_beg=1 # First line for current file.
8787 ac_end=$ac_max_sed_lines # Line after last line for current file.
8788 ac_more_lines=:
8789 ac_sed_cmds=
8790 while $ac_more_lines; do
8791 if test $ac_beg -gt 1; then
8792 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8793 else
8794 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8795 fi
8796 if test ! -s $tmp/subs.frag; then
8797 ac_more_lines=false
8798 else
8799 # The purpose of the label and of the branching condition is to
8800 # speed up the sed processing (if there are no `@' at all, there
8801 # is no need to browse any of the substitutions).
8802 # These are the two extra sed commands mentioned above.
8803 (echo ':t
8804 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8805 if test -z "$ac_sed_cmds"; then
8806 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8807 else
8808 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8809 fi
8810 ac_sed_frag=`expr $ac_sed_frag + 1`
8811 ac_beg=$ac_end
8812 ac_end=`expr $ac_end + $ac_max_sed_lines`
8813 fi
8814 done
8815 if test -z "$ac_sed_cmds"; then
8816 ac_sed_cmds=cat
8817 fi
8818 fi # test -n "$CONFIG_FILES"
8819
8820 _ACEOF
8821 cat >>$CONFIG_STATUS <<\_ACEOF
8822 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8823 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8824 case $ac_file in
8825 - | *:- | *:-:* ) # input from stdin
8826 cat >$tmp/stdin
8827 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8828 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8829 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8830 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8831 * ) ac_file_in=$ac_file.in ;;
8832 esac
8833
8834 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8835 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8836 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8837 X"$ac_file" : 'X\(//\)[^/]' \| \
8838 X"$ac_file" : 'X\(//\)$' \| \
8839 X"$ac_file" : 'X\(/\)' \| \
8840 . : '\(.\)' 2>/dev/null ||
8841 echo X"$ac_file" |
8842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8843 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8844 /^X\(\/\/\)$/{ s//\1/; q; }
8845 /^X\(\/\).*/{ s//\1/; q; }
8846 s/.*/./; q'`
8847 { if $as_mkdir_p; then
8848 mkdir -p "$ac_dir"
8849 else
8850 as_dir="$ac_dir"
8851 as_dirs=
8852 while test ! -d "$as_dir"; do
8853 as_dirs="$as_dir $as_dirs"
8854 as_dir=`(dirname "$as_dir") 2>/dev/null ||
8855 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8856 X"$as_dir" : 'X\(//\)[^/]' \| \
8857 X"$as_dir" : 'X\(//\)$' \| \
8858 X"$as_dir" : 'X\(/\)' \| \
8859 . : '\(.\)' 2>/dev/null ||
8860 echo X"$as_dir" |
8861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8862 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8863 /^X\(\/\/\)$/{ s//\1/; q; }
8864 /^X\(\/\).*/{ s//\1/; q; }
8865 s/.*/./; q'`
8866 done
8867 test ! -n "$as_dirs" || mkdir $as_dirs
8868 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8869 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8870 { (exit 1); exit 1; }; }; }
8871
8872 ac_builddir=.
8873
8874 if test "$ac_dir" != .; then
8875 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8876 # A "../" for each directory in $ac_dir_suffix.
8877 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8878 else
8879 ac_dir_suffix= ac_top_builddir=
8880 fi
8881
8882 case $srcdir in
8883 .) # No --srcdir option. We are building in place.
8884 ac_srcdir=.
8885 if test -z "$ac_top_builddir"; then
8886 ac_top_srcdir=.
8887 else
8888 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8889 fi ;;
8890 [\\/]* | ?:[\\/]* ) # Absolute path.
8891 ac_srcdir=$srcdir$ac_dir_suffix;
8892 ac_top_srcdir=$srcdir ;;
8893 *) # Relative path.
8894 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8895 ac_top_srcdir=$ac_top_builddir$srcdir ;;
8896 esac
8897
8898 # Do not use `cd foo && pwd` to compute absolute paths, because
8899 # the directories may not exist.
8900 case `pwd` in
8901 .) ac_abs_builddir="$ac_dir";;
8902 *)
8903 case "$ac_dir" in
8904 .) ac_abs_builddir=`pwd`;;
8905 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8906 *) ac_abs_builddir=`pwd`/"$ac_dir";;
8907 esac;;
8908 esac
8909 case $ac_abs_builddir in
8910 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8911 *)
8912 case ${ac_top_builddir}. in
8913 .) ac_abs_top_builddir=$ac_abs_builddir;;
8914 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8915 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8916 esac;;
8917 esac
8918 case $ac_abs_builddir in
8919 .) ac_abs_srcdir=$ac_srcdir;;
8920 *)
8921 case $ac_srcdir in
8922 .) ac_abs_srcdir=$ac_abs_builddir;;
8923 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8924 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8925 esac;;
8926 esac
8927 case $ac_abs_builddir in
8928 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8929 *)
8930 case $ac_top_srcdir in
8931 .) ac_abs_top_srcdir=$ac_abs_builddir;;
8932 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8933 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8934 esac;;
8935 esac
8936
8937
8938 case $INSTALL in
8939 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8940 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8941 esac
8942
8943 # Let's still pretend it is `configure' which instantiates (i.e., don't
8944 # use $as_me), people would be surprised to read:
8945 # /* config.h. Generated by config.status. */
8946 if test x"$ac_file" = x-; then
8947 configure_input=
8948 else
8949 configure_input="$ac_file. "
8950 fi
8951 configure_input=$configure_input"Generated from `echo $ac_file_in |
8952 sed 's,.*/,,'` by configure."
8953
8954 # First look for the input files in the build tree, otherwise in the
8955 # src tree.
8956 ac_file_inputs=`IFS=:
8957 for f in $ac_file_in; do
8958 case $f in
8959 -) echo $tmp/stdin ;;
8960 [\\/$]*)
8961 # Absolute (can't be DOS-style, as IFS=:)
8962 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8963 echo "$as_me: error: cannot find input file: $f" >&2;}
8964 { (exit 1); exit 1; }; }
8965 echo "$f";;
8966 *) # Relative
8967 if test -f "$f"; then
8968 # Build tree
8969 echo "$f"
8970 elif test -f "$srcdir/$f"; then
8971 # Source tree
8972 echo "$srcdir/$f"
8973 else
8974 # /dev/null tree
8975 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8976 echo "$as_me: error: cannot find input file: $f" >&2;}
8977 { (exit 1); exit 1; }; }
8978 fi;;
8979 esac
8980 done` || { (exit 1); exit 1; }
8981
8982 if test x"$ac_file" != x-; then
8983 { echo "$as_me:$LINENO: creating $ac_file" >&5
8984 echo "$as_me: creating $ac_file" >&6;}
8985 rm -f "$ac_file"
8986 fi
8987 _ACEOF
8988 cat >>$CONFIG_STATUS <<_ACEOF
8989 sed "$ac_vpsub
8990 $extrasub
8991 _ACEOF
8992 cat >>$CONFIG_STATUS <<\_ACEOF
8993 :t
8994 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8995 s,@configure_input@,$configure_input,;t t
8996 s,@srcdir@,$ac_srcdir,;t t
8997 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8998 s,@top_srcdir@,$ac_top_srcdir,;t t
8999 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9000 s,@builddir@,$ac_builddir,;t t
9001 s,@abs_builddir@,$ac_abs_builddir,;t t
9002 s,@top_builddir@,$ac_top_builddir,;t t
9003 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9004 s,@INSTALL@,$ac_INSTALL,;t t
9005 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9006 rm -f $tmp/stdin
9007 if test x"$ac_file" != x-; then
9008 mv $tmp/out $ac_file
9009 else
9010 cat $tmp/out
9011 rm -f $tmp/out
9012 fi
9013
9014 done
9015 _ACEOF
9016 cat >>$CONFIG_STATUS <<\_ACEOF
9017
9018 #
9019 # CONFIG_HEADER section.
9020 #
9021
9022 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9023 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9024 #
9025 # ac_d sets the value in "#define NAME VALUE" lines.
9026 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9027 ac_dB='[ ].*$,\1#\2'
9028 ac_dC=' '
9029 ac_dD=',;t'
9030 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9031 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9032 ac_uB='$,\1#\2define\3'
9033 ac_uC=' '
9034 ac_uD=',;t'
9035
9036 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
9037 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9038 case $ac_file in
9039 - | *:- | *:-:* ) # input from stdin
9040 cat >$tmp/stdin
9041 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9042 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9043 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9044 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9045 * ) ac_file_in=$ac_file.in ;;
9046 esac
9047
9048 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9049 echo "$as_me: creating $ac_file" >&6;}
9050
9051 # First look for the input files in the build tree, otherwise in the
9052 # src tree.
9053 ac_file_inputs=`IFS=:
9054 for f in $ac_file_in; do
9055 case $f in
9056 -) echo $tmp/stdin ;;
9057 [\\/$]*)
9058 # Absolute (can't be DOS-style, as IFS=:)
9059 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9060 echo "$as_me: error: cannot find input file: $f" >&2;}
9061 { (exit 1); exit 1; }; }
9062 # Do quote $f, to prevent DOS paths from being IFS'd.
9063 echo "$f";;
9064 *) # Relative
9065 if test -f "$f"; then
9066 # Build tree
9067 echo "$f"
9068 elif test -f "$srcdir/$f"; then
9069 # Source tree
9070 echo "$srcdir/$f"
9071 else
9072 # /dev/null tree
9073 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9074 echo "$as_me: error: cannot find input file: $f" >&2;}
9075 { (exit 1); exit 1; }; }
9076 fi;;
9077 esac
9078 done` || { (exit 1); exit 1; }
9079 # Remove the trailing spaces.
9080 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
9081
9082 _ACEOF
9083
9084 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9085 # `conftest.undefs', that substitutes the proper values into
9086 # config.h.in to produce config.h. The first handles `#define'
9087 # templates, and the second `#undef' templates.
9088 # And first: Protect against being on the right side of a sed subst in
9089 # config.status. Protect against being in an unquoted here document
9090 # in config.status.
9091 rm -f conftest.defines conftest.undefs
9092 # Using a here document instead of a string reduces the quoting nightmare.
9093 # Putting comments in sed scripts is not portable.
9094 #
9095 # `end' is used to avoid that the second main sed command (meant for
9096 # 0-ary CPP macros) applies to n-ary macro definitions.
9097 # See the Autoconf documentation for `clear'.
9098 cat >confdef2sed.sed <<\_ACEOF
9099 s/[\\&,]/\\&/g
9100 s,[\\$`],\\&,g
9101 t clear
9102 : clear
9103 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9104 t end
9105 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9106 : end
9107 _ACEOF
9108 # If some macros were called several times there might be several times
9109 # the same #defines, which is useless. Nevertheless, we may not want to
9110 # sort them, since we want the *last* AC-DEFINE to be honored.
9111 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9112 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9113 rm -f confdef2sed.sed
9114
9115 # This sed command replaces #undef with comments. This is necessary, for
9116 # example, in the case of _POSIX_SOURCE, which is predefined and required
9117 # on some systems where configure will not decide to define it.
9118 cat >>conftest.undefs <<\_ACEOF
9119 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9120 _ACEOF
9121
9122 # Break up conftest.defines because some shells have a limit on the size
9123 # of here documents, and old seds have small limits too (100 cmds).
9124 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9125 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9126 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9127 echo ' :' >>$CONFIG_STATUS
9128 rm -f conftest.tail
9129 while grep . conftest.defines >/dev/null
9130 do
9131 # Write a limited-size here document to $tmp/defines.sed.
9132 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9133 # Speed up: don't consider the non `#define' lines.
9134 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
9135 # Work around the forget-to-reset-the-flag bug.
9136 echo 't clr' >>$CONFIG_STATUS
9137 echo ': clr' >>$CONFIG_STATUS
9138 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9139 echo 'CEOF
9140 sed -f $tmp/defines.sed $tmp/in >$tmp/out
9141 rm -f $tmp/in
9142 mv $tmp/out $tmp/in
9143 ' >>$CONFIG_STATUS
9144 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9145 rm -f conftest.defines
9146 mv conftest.tail conftest.defines
9147 done
9148 rm -f conftest.defines
9149 echo ' fi # grep' >>$CONFIG_STATUS
9150 echo >>$CONFIG_STATUS
9151
9152 # Break up conftest.undefs because some shells have a limit on the size
9153 # of here documents, and old seds have small limits too (100 cmds).
9154 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9155 rm -f conftest.tail
9156 while grep . conftest.undefs >/dev/null
9157 do
9158 # Write a limited-size here document to $tmp/undefs.sed.
9159 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9160 # Speed up: don't consider the non `#undef'
9161 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9162 # Work around the forget-to-reset-the-flag bug.
9163 echo 't clr' >>$CONFIG_STATUS
9164 echo ': clr' >>$CONFIG_STATUS
9165 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9166 echo 'CEOF
9167 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9168 rm -f $tmp/in
9169 mv $tmp/out $tmp/in
9170 ' >>$CONFIG_STATUS
9171 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9172 rm -f conftest.undefs
9173 mv conftest.tail conftest.undefs
9174 done
9175 rm -f conftest.undefs
9176
9177 cat >>$CONFIG_STATUS <<\_ACEOF
9178 # Let's still pretend it is `configure' which instantiates (i.e., don't
9179 # use $as_me), people would be surprised to read:
9180 # /* config.h. Generated by config.status. */
9181 if test x"$ac_file" = x-; then
9182 echo "/* Generated by configure. */" >$tmp/config.h
9183 else
9184 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9185 fi
9186 cat $tmp/in >>$tmp/config.h
9187 rm -f $tmp/in
9188 if test x"$ac_file" != x-; then
9189 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9190 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9191 echo "$as_me: $ac_file is unchanged" >&6;}
9192 else
9193 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9194 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9195 X"$ac_file" : 'X\(//\)[^/]' \| \
9196 X"$ac_file" : 'X\(//\)$' \| \
9197 X"$ac_file" : 'X\(/\)' \| \
9198 . : '\(.\)' 2>/dev/null ||
9199 echo X"$ac_file" |
9200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9201 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9202 /^X\(\/\/\)$/{ s//\1/; q; }
9203 /^X\(\/\).*/{ s//\1/; q; }
9204 s/.*/./; q'`
9205 { if $as_mkdir_p; then
9206 mkdir -p "$ac_dir"
9207 else
9208 as_dir="$ac_dir"
9209 as_dirs=
9210 while test ! -d "$as_dir"; do
9211 as_dirs="$as_dir $as_dirs"
9212 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9213 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9214 X"$as_dir" : 'X\(//\)[^/]' \| \
9215 X"$as_dir" : 'X\(//\)$' \| \
9216 X"$as_dir" : 'X\(/\)' \| \
9217 . : '\(.\)' 2>/dev/null ||
9218 echo X"$as_dir" |
9219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9220 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9221 /^X\(\/\/\)$/{ s//\1/; q; }
9222 /^X\(\/\).*/{ s//\1/; q; }
9223 s/.*/./; q'`
9224 done
9225 test ! -n "$as_dirs" || mkdir $as_dirs
9226 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9227 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9228 { (exit 1); exit 1; }; }; }
9229
9230 rm -f $ac_file
9231 mv $tmp/config.h $ac_file
9232 fi
9233 else
9234 cat $tmp/config.h
9235 rm -f $tmp/config.h
9236 fi
9237 done
9238 _ACEOF
9239 cat >>$CONFIG_STATUS <<\_ACEOF
9240
9241 #
9242 # CONFIG_COMMANDS section.
9243 #
9244 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9245 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9246 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9247 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9248 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9249 X"$ac_dest" : 'X\(//\)[^/]' \| \
9250 X"$ac_dest" : 'X\(//\)$' \| \
9251 X"$ac_dest" : 'X\(/\)' \| \
9252 . : '\(.\)' 2>/dev/null ||
9253 echo X"$ac_dest" |
9254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9255 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9256 /^X\(\/\/\)$/{ s//\1/; q; }
9257 /^X\(\/\).*/{ s//\1/; q; }
9258 s/.*/./; q'`
9259 { if $as_mkdir_p; then
9260 mkdir -p "$ac_dir"
9261 else
9262 as_dir="$ac_dir"
9263 as_dirs=
9264 while test ! -d "$as_dir"; do
9265 as_dirs="$as_dir $as_dirs"
9266 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9267 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9268 X"$as_dir" : 'X\(//\)[^/]' \| \
9269 X"$as_dir" : 'X\(//\)$' \| \
9270 X"$as_dir" : 'X\(/\)' \| \
9271 . : '\(.\)' 2>/dev/null ||
9272 echo X"$as_dir" |
9273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9274 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9275 /^X\(\/\/\)$/{ s//\1/; q; }
9276 /^X\(\/\).*/{ s//\1/; q; }
9277 s/.*/./; q'`
9278 done
9279 test ! -n "$as_dirs" || mkdir $as_dirs
9280 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9281 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9282 { (exit 1); exit 1; }; }; }
9283
9284 ac_builddir=.
9285
9286 if test "$ac_dir" != .; then
9287 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9288 # A "../" for each directory in $ac_dir_suffix.
9289 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9290 else
9291 ac_dir_suffix= ac_top_builddir=
9292 fi
9293
9294 case $srcdir in
9295 .) # No --srcdir option. We are building in place.
9296 ac_srcdir=.
9297 if test -z "$ac_top_builddir"; then
9298 ac_top_srcdir=.
9299 else
9300 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9301 fi ;;
9302 [\\/]* | ?:[\\/]* ) # Absolute path.
9303 ac_srcdir=$srcdir$ac_dir_suffix;
9304 ac_top_srcdir=$srcdir ;;
9305 *) # Relative path.
9306 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9307 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9308 esac
9309
9310 # Do not use `cd foo && pwd` to compute absolute paths, because
9311 # the directories may not exist.
9312 case `pwd` in
9313 .) ac_abs_builddir="$ac_dir";;
9314 *)
9315 case "$ac_dir" in
9316 .) ac_abs_builddir=`pwd`;;
9317 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9318 *) ac_abs_builddir=`pwd`/"$ac_dir";;
9319 esac;;
9320 esac
9321 case $ac_abs_builddir in
9322 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9323 *)
9324 case ${ac_top_builddir}. in
9325 .) ac_abs_top_builddir=$ac_abs_builddir;;
9326 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9327 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9328 esac;;
9329 esac
9330 case $ac_abs_builddir in
9331 .) ac_abs_srcdir=$ac_srcdir;;
9332 *)
9333 case $ac_srcdir in
9334 .) ac_abs_srcdir=$ac_abs_builddir;;
9335 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9336 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9337 esac;;
9338 esac
9339 case $ac_abs_builddir in
9340 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9341 *)
9342 case $ac_top_srcdir in
9343 .) ac_abs_top_srcdir=$ac_abs_builddir;;
9344 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9345 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9346 esac;;
9347 esac
9348
9349
9350 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9351 echo "$as_me: executing $ac_dest commands" >&6;}
9352 case $ac_dest in
9353 default )
9354 # Makefile uses this timestamp file to record whether config.h is up to date.
9355 echo > stamp-h
9356 ;;
9357 esac
9358 done
9359 _ACEOF
9360
9361 cat >>$CONFIG_STATUS <<\_ACEOF
9362
9363 { (exit 0); exit 0; }
9364 _ACEOF
9365 chmod +x $CONFIG_STATUS
9366 ac_clean_files=$ac_clean_files_save
9367
9368
9369 # configure is writing to config.log, and then calls config.status.
9370 # config.status does its own redirection, appending to config.log.
9371 # Unfortunately, on DOS this fails, as config.log is still kept open
9372 # by configure, so config.status won't be able to write to it; its
9373 # output is simply discarded. So we exec the FD to /dev/null,
9374 # effectively closing config.log, so it can be properly (re)opened and
9375 # appended to by config.status. When coming back to configure, we
9376 # need to make the FD available again.
9377 if test "$no_create" != yes; then
9378 ac_cs_success=:
9379 ac_config_status_args=
9380 test "$silent" = yes &&
9381 ac_config_status_args="$ac_config_status_args --quiet"
9382 exec 5>/dev/null
9383 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9384 exec 5>>config.log
9385 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9386 # would make configure fail if this is the last instruction.
9387 $ac_cs_success || { (exit 1); exit 1; }
9388 fi
9389
This page took 0.326843 seconds and 4 git commands to generate.