* aclocal.m4: Add check for mbrtowc.
[deliverable/binutils-gdb.git] / readline / configure
CommitLineData
d60d9f65 1#! /bin/sh
25ed0b71 2# From configure.in for Readline 4.3, version 2.45, from autoconf version AC_ACVERSION.
9255ee31 3# Guess values for system-dependent variables and create Makefiles.
25ed0b71 4# Generated by GNU Autoconf 2.57 for readline 4.3.
9255ee31
EZ
5#
6# Report bugs to <bug-readline@gnu.org>.
7#
25ed0b71 8# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9255ee31
EZ
9# Free Software Foundation, Inc.
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
25ed0b71
KW
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
d60d9f65 15
25ed0b71
KW
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
26
27# Support unset when possible.
28if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for 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
46do
47 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo 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.
9255ee31
EZ
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
d60d9f65 88
25ed0b71
KW
89# The user is always right.
90if 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
100fi
d60d9f65
SS
101
102
25ed0b71
KW
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
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
d60d9f65 119
25ed0b71
KW
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
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
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
155done
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
190case `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= ;;
195esac
d60d9f65 196
9255ee31
EZ
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
d60d9f65 202
9255ee31
EZ
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if 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
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
d60d9f65 220
25ed0b71
KW
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
9255ee31 223else
25ed0b71 224 as_mkdir_p=false
9255ee31 225fi
d60d9f65 226
25ed0b71
KW
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234
9255ee31
EZ
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
25ed0b71
KW
243$as_unset CDPATH
244
9255ee31
EZ
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
d60d9f65 252
d60d9f65 253#
9255ee31
EZ
254# Initializations.
255#
d60d9f65 256ac_default_prefix=/usr/local
25ed0b71 257ac_config_libobj_dir=.
9255ee31
EZ
258cross_compiling=no
259subdirs=
25ed0b71
KW
260MFLAGS=
261MAKEFLAGS=
9255ee31
EZ
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete. It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
25ed0b71
KW
269# Identity of this package.
270PACKAGE_NAME='readline'
271PACKAGE_TARNAME='readline'
272PACKAGE_VERSION='4.3'
273PACKAGE_STRING='readline 4.3'
274PACKAGE_BUGREPORT='bug-readline@gnu.org'
275
9255ee31
EZ
276ac_unique_file="readline.h"
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291# include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296# include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307# include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
d60d9f65 313
25ed0b71
KW
314ac_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 SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CROSS_COMPILING_FLAG 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_LIBSUFF SHLIB_LIBVERSION SHLIB_LIBS SHLIB_MAJOR SHLIB_MINOR STATIC_TARGET SHARED_TARGET STATIC_INSTALL_TARGET SHARED_INSTALL_TARGET BUILD_DIR LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS ARFLAGS LIBVERSION TERMCAP_LIB LIBOBJS LTLIBOBJS'
315ac_subst_files=''
316
d60d9f65 317# Initialize some variables set by options.
9255ee31
EZ
318ac_init_help=
319ac_init_version=false
d60d9f65
SS
320# The variables have the same names as the options, with
321# dashes changed to underlines.
9255ee31 322cache_file=/dev/null
d60d9f65 323exec_prefix=NONE
d60d9f65 324no_create=
d60d9f65
SS
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
d60d9f65
SS
333verbose=
334x_includes=NONE
335x_libraries=NONE
9255ee31
EZ
336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
d60d9f65
SS
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
354
d60d9f65
SS
355ac_prev=
356for ac_option
357do
d60d9f65
SS
358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
363 fi
364
9255ee31 365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
d60d9f65
SS
366
367 # Accept the important Cygnus configure options, so we can diagnose typos.
368
9255ee31 369 case $ac_option in
d60d9f65
SS
370
371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
9255ee31 374 bindir=$ac_optarg ;;
d60d9f65
SS
375
376 -build | --build | --buil | --bui | --bu)
9255ee31 377 ac_prev=build_alias ;;
d60d9f65 378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
9255ee31 379 build_alias=$ac_optarg ;;
d60d9f65
SS
380
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
9255ee31
EZ
386 cache_file=$ac_optarg ;;
387
388 --config-cache | -C)
389 cache_file=config.cache ;;
d60d9f65
SS
390
391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
9255ee31 395 datadir=$ac_optarg ;;
d60d9f65
SS
396
397 -disable-* | --disable-*)
9255ee31 398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
d60d9f65 399 # Reject names that are not valid shell variable names.
9255ee31
EZ
400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
d60d9f65
SS
405
406 -enable-* | --enable-*)
9255ee31 407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
d60d9f65 408 # Reject names that are not valid shell variable names.
9255ee31
EZ
409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
d60d9f65
SS
415 *) ac_optarg=yes ;;
416 esac
9255ee31 417 eval "enable_$ac_feature='$ac_optarg'" ;;
d60d9f65
SS
418
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
9255ee31 426 exec_prefix=$ac_optarg ;;
d60d9f65
SS
427
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
431
9255ee31
EZ
432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
d60d9f65
SS
438
439 -host | --host | --hos | --ho)
9255ee31 440 ac_prev=host_alias ;;
d60d9f65 441 -host=* | --host=* | --hos=* | --ho=*)
9255ee31 442 host_alias=$ac_optarg ;;
d60d9f65
SS
443
444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
9255ee31 449 includedir=$ac_optarg ;;
d60d9f65
SS
450
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
9255ee31 454 infodir=$ac_optarg ;;
d60d9f65
SS
455
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
9255ee31 459 libdir=$ac_optarg ;;
d60d9f65
SS
460
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
9255ee31 466 libexecdir=$ac_optarg ;;
d60d9f65
SS
467
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
9255ee31 475 localstatedir=$ac_optarg ;;
d60d9f65
SS
476
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
9255ee31 480 mandir=$ac_optarg ;;
d60d9f65
SS
481
482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
485
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
25ed0b71 487 | --no-cr | --no-c | -n)
d60d9f65
SS
488 no_create=yes ;;
489
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
493
494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
9255ee31 501 oldincludedir=$ac_optarg ;;
d60d9f65
SS
502
503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
9255ee31 506 prefix=$ac_optarg ;;
d60d9f65
SS
507
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
9255ee31 513 program_prefix=$ac_optarg ;;
d60d9f65
SS
514
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
9255ee31 520 program_suffix=$ac_optarg ;;
d60d9f65
SS
521
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
9255ee31 537 program_transform_name=$ac_optarg ;;
d60d9f65
SS
538
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
542
543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
9255ee31 547 sbindir=$ac_optarg ;;
d60d9f65
SS
548
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
9255ee31 558 sharedstatedir=$ac_optarg ;;
d60d9f65
SS
559
560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
9255ee31 563 site=$ac_optarg ;;
d60d9f65
SS
564
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
9255ee31 568 srcdir=$ac_optarg ;;
d60d9f65
SS
569
570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
9255ee31 575 sysconfdir=$ac_optarg ;;
d60d9f65
SS
576
577 -target | --target | --targe | --targ | --tar | --ta | --t)
9255ee31 578 ac_prev=target_alias ;;
d60d9f65 579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
9255ee31 580 target_alias=$ac_optarg ;;
d60d9f65
SS
581
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
584
9255ee31
EZ
585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
d60d9f65
SS
587
588 -with-* | --with-*)
9255ee31 589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
d60d9f65 590 # Reject names that are not valid shell variable names.
9255ee31
EZ
591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
d60d9f65 594 ac_package=`echo $ac_package| sed 's/-/_/g'`
9255ee31
EZ
595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
d60d9f65
SS
597 *) ac_optarg=yes ;;
598 esac
9255ee31 599 eval "with_$ac_package='$ac_optarg'" ;;
d60d9f65
SS
600
601 -without-* | --without-*)
9255ee31 602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
d60d9f65 603 # Reject names that are not valid shell variable names.
9255ee31
EZ
604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
d60d9f65
SS
609
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
613
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
9255ee31 619 x_includes=$ac_optarg ;;
d60d9f65
SS
620
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
9255ee31 626 x_libraries=$ac_optarg ;;
d60d9f65 627
9255ee31
EZ
628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
d60d9f65
SS
631 ;;
632
9255ee31
EZ
633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
642
d60d9f65 643 *)
9255ee31
EZ
644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
d60d9f65
SS
649 ;;
650
651 esac
652done
653
654if test -n "$ac_prev"; then
9255ee31
EZ
655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
d60d9f65 658fi
d60d9f65 659
9255ee31
EZ
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
25ed0b71 666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
9255ee31
EZ
667 { (exit 1); exit 1; }; };;
668 esac
669done
d60d9f65 670
9255ee31
EZ
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673 localstatedir libdir includedir oldincludedir infodir mandir
d60d9f65 674do
9255ee31
EZ
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
25ed0b71 678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
9255ee31 679 { (exit 1); exit 1; }; };;
d60d9f65
SS
680 esac
681done
682
9255ee31
EZ
683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
25ed0b71 685# FIXME: To remove some day.
9255ee31
EZ
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
25ed0b71 690# FIXME: To remove some day.
9255ee31
EZ
691if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
698 fi
699fi
d60d9f65 700
9255ee31
EZ
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
d60d9f65 703
9255ee31 704test "$silent" = yes && exec 6>/dev/null
d60d9f65 705
25ed0b71 706
d60d9f65
SS
707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
25ed0b71
KW
711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
717echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
d60d9f65
SS
723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
726 fi
727else
728 ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
25ed0b71 732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
9255ee31 733 { (exit 1); exit 1; }; }
1b17e766 734 else
25ed0b71 735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
9255ee31 736 { (exit 1); exit 1; }; }
d60d9f65
SS
737 fi
738fi
25ed0b71
KW
739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
9255ee31
EZ
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CC_set=${CC+set}
756ac_env_CC_value=$CC
757ac_cv_env_CC_set=${CC+set}
758ac_cv_env_CC_value=$CC
759ac_env_CFLAGS_set=${CFLAGS+set}
760ac_env_CFLAGS_value=$CFLAGS
761ac_cv_env_CFLAGS_set=${CFLAGS+set}
762ac_cv_env_CFLAGS_value=$CFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CPP_set=${CPP+set}
772ac_env_CPP_value=$CPP
773ac_cv_env_CPP_set=${CPP+set}
774ac_cv_env_CPP_value=$CPP
d60d9f65 775
9255ee31
EZ
776#
777# Report the --help message.
778#
779if test "$ac_init_help" = "long"; then
780 # Omit some internal or obsolete options to make the list less imposing.
781 # This message is too long to be a string in the A/UX 3.1 sh.
25ed0b71 782 cat <<_ACEOF
9255ee31 783\`configure' configures readline 4.3 to adapt to many kinds of systems.
d60d9f65 784
9255ee31 785Usage: $0 [OPTION]... [VAR=VALUE]...
d60d9f65 786
9255ee31
EZ
787To assign environment variables (e.g., CC, CFLAGS...), specify them as
788VAR=VALUE. See below for descriptions of some of the useful variables.
d60d9f65 789
9255ee31 790Defaults for the options are specified in brackets.
d60d9f65 791
9255ee31
EZ
792Configuration:
793 -h, --help display this help and exit
794 --help=short display options specific to this package
795 --help=recursive display the short help of all the included packages
796 -V, --version display version information and exit
797 -q, --quiet, --silent do not print \`checking...' messages
798 --cache-file=FILE cache test results in FILE [disabled]
799 -C, --config-cache alias for \`--cache-file=config.cache'
800 -n, --no-create do not create output files
801 --srcdir=DIR find the sources in DIR [configure dir or \`..']
d60d9f65 802
25ed0b71 803_ACEOF
d60d9f65 804
25ed0b71 805 cat <<_ACEOF
9255ee31
EZ
806Installation directories:
807 --prefix=PREFIX install architecture-independent files in PREFIX
808 [$ac_default_prefix]
809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 [PREFIX]
811
812By default, \`make install' will install all the files in
813\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815for instance \`--prefix=\$HOME'.
816
817For better control, use the options below.
818
819Fine tuning of the installation directories:
820 --bindir=DIR user executables [EPREFIX/bin]
821 --sbindir=DIR system admin executables [EPREFIX/sbin]
822 --libexecdir=DIR program executables [EPREFIX/libexec]
823 --datadir=DIR read-only architecture-independent data [PREFIX/share]
824 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
827 --libdir=DIR object code libraries [EPREFIX/lib]
828 --includedir=DIR C header files [PREFIX/include]
829 --oldincludedir=DIR C header files for non-gcc [/usr/include]
830 --infodir=DIR info documentation [PREFIX/info]
831 --mandir=DIR man documentation [PREFIX/man]
25ed0b71 832_ACEOF
d60d9f65 833
25ed0b71 834 cat <<\_ACEOF
d60d9f65 835
9255ee31
EZ
836System types:
837 --build=BUILD configure for building on BUILD [guessed]
25ed0b71
KW
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839_ACEOF
d60d9f65 840fi
d60d9f65 841
9255ee31
EZ
842if test -n "$ac_init_help"; then
843 case $ac_init_help in
844 short | recursive ) echo "Configuration of readline 4.3:";;
845 esac
25ed0b71 846 cat <<\_ACEOF
d60d9f65 847
9255ee31
EZ
848Optional Features:
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
9255ee31 851 --enable-static build static libraries [default=YES]
d60d9f65 852
9255ee31
EZ
853Optional Packages:
854 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
855 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
856 --with-curses use the curses library instead of the termcap
857 library
858
859Some influential environment variables:
860 CC C compiler command
861 CFLAGS C compiler flags
862 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
863 nonstandard directory <lib dir>
864 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
865 headers in a nonstandard directory <include dir>
866 CPP C preprocessor
867
868Use these variables to override the choices made by `configure' or to help
869it to find libraries and programs with nonstandard names/locations.
870
871Report bugs to <bug-readline@gnu.org>.
25ed0b71 872_ACEOF
9255ee31 873fi
d60d9f65 874
9255ee31
EZ
875if test "$ac_init_help" = "recursive"; then
876 # If there are subdirs, report their specific --help.
877 ac_popdir=`pwd`
25ed0b71
KW
878 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
879 test -d $ac_dir || continue
880 ac_builddir=.
881
882if test "$ac_dir" != .; then
883 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
884 # A "../" for each directory in $ac_dir_suffix.
885 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886else
887 ac_dir_suffix= ac_top_builddir=
888fi
d60d9f65 889
25ed0b71
KW
890case $srcdir in
891 .) # No --srcdir option. We are building in place.
892 ac_srcdir=.
893 if test -z "$ac_top_builddir"; then
894 ac_top_srcdir=.
895 else
896 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897 fi ;;
898 [\\/]* | ?:[\\/]* ) # Absolute path.
899 ac_srcdir=$srcdir$ac_dir_suffix;
900 ac_top_srcdir=$srcdir ;;
901 *) # Relative path.
902 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
903 ac_top_srcdir=$ac_top_builddir$srcdir ;;
904esac
905# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
906# absolute.
907ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
908ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
909ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
910ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
911
912 cd $ac_dir
9255ee31 913 # Check for guested configure; otherwise get Cygnus style configure.
25ed0b71 914 if test -f $ac_srcdir/configure.gnu; then
9255ee31 915 echo
25ed0b71
KW
916 $SHELL $ac_srcdir/configure.gnu --help=recursive
917 elif test -f $ac_srcdir/configure; then
9255ee31 918 echo
25ed0b71
KW
919 $SHELL $ac_srcdir/configure --help=recursive
920 elif test -f $ac_srcdir/configure.ac ||
921 test -f $ac_srcdir/configure.in; then
9255ee31
EZ
922 echo
923 $ac_configure --help
924 else
25ed0b71 925 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
9255ee31
EZ
926 fi
927 cd $ac_popdir
928 done
d60d9f65
SS
929fi
930
9255ee31
EZ
931test -n "$ac_init_help" && exit 0
932if $ac_init_version; then
25ed0b71 933 cat <<\_ACEOF
9255ee31 934readline configure 4.3
25ed0b71 935generated by GNU Autoconf 2.57
d60d9f65 936
25ed0b71 937Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9255ee31
EZ
938Free Software Foundation, Inc.
939This configure script is free software; the Free Software Foundation
940gives unlimited permission to copy, distribute and modify it.
25ed0b71 941_ACEOF
9255ee31 942 exit 0
d60d9f65 943fi
9255ee31 944exec 5>config.log
25ed0b71 945cat >&5 <<_ACEOF
9255ee31
EZ
946This file contains any messages produced by compilers while
947running configure, to aid debugging if configure makes a mistake.
d60d9f65 948
9255ee31 949It was created by readline $as_me 4.3, which was
25ed0b71 950generated by GNU Autoconf 2.57. Invocation command line was
d60d9f65 951
9255ee31
EZ
952 $ $0 $@
953
25ed0b71 954_ACEOF
9255ee31
EZ
955{
956cat <<_ASUNAME
25ed0b71
KW
957## --------- ##
958## Platform. ##
959## --------- ##
9255ee31
EZ
960
961hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
962uname -m = `(uname -m) 2>/dev/null || echo unknown`
963uname -r = `(uname -r) 2>/dev/null || echo unknown`
964uname -s = `(uname -s) 2>/dev/null || echo unknown`
965uname -v = `(uname -v) 2>/dev/null || echo unknown`
966
967/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
968/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
969
970/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
971/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
972/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
973hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
974/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
975/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
976/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
977
9255ee31 978_ASUNAME
25ed0b71
KW
979
980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
981for as_dir in $PATH
982do
983 IFS=$as_save_IFS
984 test -z "$as_dir" && as_dir=.
985 echo "PATH: $as_dir"
986done
987
9255ee31
EZ
988} >&5
989
25ed0b71
KW
990cat >&5 <<_ACEOF
991
992
993## ----------- ##
994## Core tests. ##
995## ----------- ##
996
997_ACEOF
9255ee31 998
9255ee31
EZ
999
1000# Keep a trace of the command line.
1001# Strip out --no-create and --no-recursion so they do not pile up.
25ed0b71 1002# Strip out --silent because we don't want to record it for future runs.
9255ee31 1003# Also quote any args containing shell meta-characters.
25ed0b71 1004# Make two passes to allow for proper duplicate-argument suppression.
9255ee31 1005ac_configure_args=
25ed0b71
KW
1006ac_configure_args0=
1007ac_configure_args1=
9255ee31 1008ac_sep=
25ed0b71
KW
1009ac_must_keep_next=false
1010for ac_pass in 1 2
9255ee31 1011do
25ed0b71
KW
1012 for ac_arg
1013 do
1014 case $ac_arg in
1015 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1017 | -silent | --silent | --silen | --sile | --sil)
1018 continue ;;
1019 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1020 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1021 esac
1022 case $ac_pass in
1023 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1024 2)
1025 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1026 if test $ac_must_keep_next = true; then
1027 ac_must_keep_next=false # Got value, back to normal.
1028 else
1029 case $ac_arg in
1030 *=* | --config-cache | -C | -disable-* | --disable-* \
1031 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1032 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1033 | -with-* | --with-* | -without-* | --without-* | --x)
1034 case "$ac_configure_args0 " in
1035 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1036 esac
1037 ;;
1038 -* ) ac_must_keep_next=true ;;
1039 esac
1040 fi
1041 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1042 # Get rid of the leading space.
1043 ac_sep=" "
1044 ;;
1045 esac
1046 done
9255ee31 1047done
25ed0b71
KW
1048$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1049$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
9255ee31
EZ
1050
1051# When interrupted or exit'd, cleanup temporary files, and complete
1052# config.log. We remove comments because anyway the quotes in there
1053# would cause problems or look ugly.
25ed0b71
KW
1054# WARNING: Be sure not to use single quotes in there, as some shells,
1055# such as our DU 5.0 friend, will then `close' the trap.
9255ee31
EZ
1056trap 'exit_status=$?
1057 # Save into config.log some information that might help in debugging.
25ed0b71
KW
1058 {
1059 echo
1060
1061 cat <<\_ASBOX
1062## ---------------- ##
1063## Cache variables. ##
1064## ---------------- ##
1065_ASBOX
1066 echo
1067 # The following way of writing the cache mishandles newlines in values,
9255ee31
EZ
1068{
1069 (set) 2>&1 |
1070 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1071 *ac_space=\ *)
1072 sed -n \
1073 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1074 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1075 ;;
1076 *)
1077 sed -n \
1078 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1079 ;;
1080 esac;
25ed0b71
KW
1081}
1082 echo
1083
1084 cat <<\_ASBOX
1085## ----------------- ##
1086## Output variables. ##
1087## ----------------- ##
1088_ASBOX
1089 echo
1090 for ac_var in $ac_subst_vars
1091 do
1092 eval ac_val=$`echo $ac_var`
1093 echo "$ac_var='"'"'$ac_val'"'"'"
1094 done | sort
1095 echo
1096
1097 if test -n "$ac_subst_files"; then
1098 cat <<\_ASBOX
1099## ------------- ##
1100## Output files. ##
1101## ------------- ##
1102_ASBOX
1103 echo
1104 for ac_var in $ac_subst_files
1105 do
1106 eval ac_val=$`echo $ac_var`
1107 echo "$ac_var='"'"'$ac_val'"'"'"
1108 done | sort
1109 echo
1110 fi
1111
1112 if test -s confdefs.h; then
1113 cat <<\_ASBOX
1114## ----------- ##
1115## confdefs.h. ##
1116## ----------- ##
1117_ASBOX
1118 echo
1119 sed "/^$/d" confdefs.h | sort
1120 echo
1121 fi
1122 test "$ac_signal" != 0 &&
1123 echo "$as_me: caught signal $ac_signal"
1124 echo "$as_me: exit $exit_status"
1125 } >&5
1126 rm -f core core.* *.core &&
1127 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
9255ee31
EZ
1128 exit $exit_status
1129 ' 0
1130for ac_signal in 1 2 13 15; do
1131 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1132done
1133ac_signal=0
1134
1135# confdefs.h avoids OS command line length limits that DEFS can exceed.
1136rm -rf conftest* confdefs.h
1137# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1138echo >confdefs.h
1139
25ed0b71
KW
1140# Predefined preprocessor variables.
1141
1142cat >>confdefs.h <<_ACEOF
1143#define PACKAGE_NAME "$PACKAGE_NAME"
1144_ACEOF
1145
1146
1147cat >>confdefs.h <<_ACEOF
1148#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1149_ACEOF
1150
1151
1152cat >>confdefs.h <<_ACEOF
1153#define PACKAGE_VERSION "$PACKAGE_VERSION"
1154_ACEOF
1155
1156
1157cat >>confdefs.h <<_ACEOF
1158#define PACKAGE_STRING "$PACKAGE_STRING"
1159_ACEOF
1160
1161
1162cat >>confdefs.h <<_ACEOF
1163#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1164_ACEOF
1165
1166
9255ee31
EZ
1167# Let the site file select an alternate cache file if it wants to.
1168# Prefer explicitly selected file to automatically selected ones.
1169if test -z "$CONFIG_SITE"; then
1170 if test "x$prefix" != xNONE; then
1171 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1172 else
1173 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1174 fi
1175fi
1176for ac_site_file in $CONFIG_SITE; do
1177 if test -r "$ac_site_file"; then
25ed0b71 1178 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
9255ee31 1179echo "$as_me: loading site script $ac_site_file" >&6;}
25ed0b71 1180 sed 's/^/| /' "$ac_site_file" >&5
9255ee31
EZ
1181 . "$ac_site_file"
1182 fi
1183done
1184
1185if test -r "$cache_file"; then
1186 # Some versions of bash will fail to source /dev/null (special
1187 # files actually), so we avoid doing that.
1188 if test -f "$cache_file"; then
25ed0b71 1189 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
9255ee31
EZ
1190echo "$as_me: loading cache $cache_file" >&6;}
1191 case $cache_file in
1192 [\\/]* | ?:[\\/]* ) . $cache_file;;
1193 *) . ./$cache_file;;
1194 esac
1195 fi
1196else
25ed0b71 1197 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
9255ee31
EZ
1198echo "$as_me: creating cache $cache_file" >&6;}
1199 >$cache_file
1200fi
1201
1202# Check that the precious variables saved in the cache have kept the same
1203# value.
1204ac_cache_corrupted=false
1205for ac_var in `(set) 2>&1 |
1206 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1207 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1208 eval ac_new_set=\$ac_env_${ac_var}_set
1209 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1210 eval ac_new_val="\$ac_env_${ac_var}_value"
1211 case $ac_old_set,$ac_new_set in
1212 set,)
25ed0b71 1213 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
9255ee31
EZ
1214echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1215 ac_cache_corrupted=: ;;
1216 ,set)
25ed0b71 1217 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
9255ee31
EZ
1218echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1219 ac_cache_corrupted=: ;;
1220 ,);;
1221 *)
1222 if test "x$ac_old_val" != "x$ac_new_val"; then
25ed0b71 1223 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
9255ee31 1224echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
25ed0b71 1225 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
9255ee31 1226echo "$as_me: former value: $ac_old_val" >&2;}
25ed0b71 1227 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
9255ee31
EZ
1228echo "$as_me: current value: $ac_new_val" >&2;}
1229 ac_cache_corrupted=:
1230 fi;;
1231 esac
25ed0b71 1232 # Pass precious variables to config.status.
9255ee31
EZ
1233 if test "$ac_new_set" = set; then
1234 case $ac_new_val in
1235 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
25ed0b71
KW
1236 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1237 *) ac_arg=$ac_var=$ac_new_val ;;
1238 esac
1239 case " $ac_configure_args " in
1240 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1241 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
9255ee31
EZ
1242 esac
1243 fi
1244done
1245if $ac_cache_corrupted; then
25ed0b71 1246 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
9255ee31 1247echo "$as_me: error: changes in the environment can compromise the build" >&2;}
25ed0b71 1248 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
9255ee31
EZ
1249echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1250 { (exit 1); exit 1; }; }
1251fi
1252
1253ac_ext=c
1254ac_cpp='$CPP $CPPFLAGS'
1255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1257ac_compiler_gnu=$ac_cv_c_compiler_gnu
1258
9255ee31 1259
25ed0b71
KW
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289 ac_config_headers="$ac_config_headers config.h"
1290
9255ee31
EZ
1291
1292LIBVERSION=4.3
1293
1294ac_aux_dir=
1295for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1296 if test -f $ac_dir/install-sh; then
1297 ac_aux_dir=$ac_dir
1298 ac_install_sh="$ac_aux_dir/install-sh -c"
1299 break
1300 elif test -f $ac_dir/install.sh; then
1301 ac_aux_dir=$ac_dir
1302 ac_install_sh="$ac_aux_dir/install.sh -c"
1303 break
1304 elif test -f $ac_dir/shtool; then
1305 ac_aux_dir=$ac_dir
1306 ac_install_sh="$ac_aux_dir/shtool install -c"
1307 break
1308 fi
1309done
1310if test -z "$ac_aux_dir"; then
25ed0b71 1311 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
9255ee31
EZ
1312echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1313 { (exit 1); exit 1; }; }
1314fi
1315ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1316ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1317ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1318
1319# Make sure we can run config.sub.
1320$ac_config_sub sun4 >/dev/null 2>&1 ||
25ed0b71 1321 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
9255ee31
EZ
1322echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1323 { (exit 1); exit 1; }; }
1324
25ed0b71 1325echo "$as_me:$LINENO: checking build system type" >&5
9255ee31
EZ
1326echo $ECHO_N "checking build system type... $ECHO_C" >&6
1327if test "${ac_cv_build+set}" = set; then
1328 echo $ECHO_N "(cached) $ECHO_C" >&6
1329else
1330 ac_cv_build_alias=$build_alias
1331test -z "$ac_cv_build_alias" &&
1332 ac_cv_build_alias=`$ac_config_guess`
1333test -z "$ac_cv_build_alias" &&
25ed0b71 1334 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
9255ee31
EZ
1335echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1336 { (exit 1); exit 1; }; }
1337ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
25ed0b71
KW
1338 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1339echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
9255ee31
EZ
1340 { (exit 1); exit 1; }; }
1341
1342fi
25ed0b71 1343echo "$as_me:$LINENO: result: $ac_cv_build" >&5
9255ee31
EZ
1344echo "${ECHO_T}$ac_cv_build" >&6
1345build=$ac_cv_build
1346build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1347build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1348build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1349
25ed0b71
KW
1350
1351echo "$as_me:$LINENO: checking host system type" >&5
9255ee31
EZ
1352echo $ECHO_N "checking host system type... $ECHO_C" >&6
1353if test "${ac_cv_host+set}" = set; then
1354 echo $ECHO_N "(cached) $ECHO_C" >&6
1355else
1356 ac_cv_host_alias=$host_alias
1357test -z "$ac_cv_host_alias" &&
1358 ac_cv_host_alias=$ac_cv_build_alias
1359ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
25ed0b71 1360 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
9255ee31
EZ
1361echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1362 { (exit 1); exit 1; }; }
1363
1364fi
25ed0b71 1365echo "$as_me:$LINENO: result: $ac_cv_host" >&5
9255ee31
EZ
1366echo "${ECHO_T}$ac_cv_host" >&6
1367host=$ac_cv_host
1368host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1369host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1370host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1371
25ed0b71
KW
1372
1373
9255ee31
EZ
1374opt_curses=no
1375
25ed0b71 1376
9255ee31
EZ
1377# Check whether --with-curses or --without-curses was given.
1378if test "${with_curses+set}" = set; then
1379 withval="$with_curses"
1380 opt_curses=$withval
1381fi;
1382
1383if test "$opt_curses" = "yes"; then
1384 prefer_curses=yes
1385fi
1386
1387opt_static_libs=yes
d7d4a3d1 1388opt_shared_libs=no
9255ee31 1389
9255ee31
EZ
1390# Check whether --enable-static or --disable-static was given.
1391if test "${enable_static+set}" = set; then
1392 enableval="$enable_static"
1393 opt_static_libs=$enableval
1394fi;
1395
1396echo ""
1397echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}"
1398echo ""
1399
1400# We want these before the checks, so the checks can modify their values.
1401test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
1402
25ed0b71
KW
1403echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1404echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
9255ee31
EZ
1405set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1406if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1408else
25ed0b71 1409 cat >conftest.make <<\_ACEOF
9255ee31 1410all:
25ed0b71
KW
1411 @echo 'ac_maketemp="$(MAKE)"'
1412_ACEOF
9255ee31
EZ
1413# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1414eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1415if test -n "$ac_maketemp"; then
1416 eval ac_cv_prog_make_${ac_make}_set=yes
1417else
1418 eval ac_cv_prog_make_${ac_make}_set=no
1419fi
1420rm -f conftest.make
1421fi
1422if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
25ed0b71 1423 echo "$as_me:$LINENO: result: yes" >&5
9255ee31
EZ
1424echo "${ECHO_T}yes" >&6
1425 SET_MAKE=
1426else
25ed0b71 1427 echo "$as_me:$LINENO: result: no" >&5
9255ee31
EZ
1428echo "${ECHO_T}no" >&6
1429 SET_MAKE="MAKE=${MAKE-make}"
1430fi
1431
1432ac_ext=c
1433ac_cpp='$CPP $CPPFLAGS'
1434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1436ac_compiler_gnu=$ac_cv_c_compiler_gnu
1437if test -n "$ac_tool_prefix"; then
1438 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1439set dummy ${ac_tool_prefix}gcc; ac_word=$2
25ed0b71 1440echo "$as_me:$LINENO: checking for $ac_word" >&5
9255ee31
EZ
1441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442if test "${ac_cv_prog_CC+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1444else
1445 if test -n "$CC"; then
1446 ac_cv_prog_CC="$CC" # Let the user override the test.
1447else
25ed0b71
KW
1448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449for as_dir in $PATH
1450do
1451 IFS=$as_save_IFS
1452 test -z "$as_dir" && as_dir=.
1453 for ac_exec_ext in '' $ac_executable_extensions; do
1454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457 break 2
1458 fi
1459done
9255ee31
EZ
1460done
1461
d60d9f65 1462fi
9255ee31
EZ
1463fi
1464CC=$ac_cv_prog_CC
d60d9f65 1465if test -n "$CC"; then
25ed0b71 1466 echo "$as_me:$LINENO: result: $CC" >&5
9255ee31
EZ
1467echo "${ECHO_T}$CC" >&6
1468else
25ed0b71 1469 echo "$as_me:$LINENO: result: no" >&5
9255ee31
EZ
1470echo "${ECHO_T}no" >&6
1471fi
1472
1473fi
1474if test -z "$ac_cv_prog_CC"; then
1475 ac_ct_CC=$CC
1476 # Extract the first word of "gcc", so it can be a program name with args.
1477set dummy gcc; ac_word=$2
25ed0b71 1478echo "$as_me:$LINENO: checking for $ac_word" >&5
9255ee31
EZ
1479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1480if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1481 echo $ECHO_N "(cached) $ECHO_C" >&6
1482else
1483 if test -n "$ac_ct_CC"; then
1484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1485else
25ed0b71
KW
1486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487for as_dir in $PATH
1488do
1489 IFS=$as_save_IFS
1490 test -z "$as_dir" && as_dir=.
1491 for ac_exec_ext in '' $ac_executable_extensions; do
1492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1493 ac_cv_prog_ac_ct_CC="gcc"
1494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495 break 2
1496 fi
1497done
9255ee31
EZ
1498done
1499
1500fi
1501fi
1502ac_ct_CC=$ac_cv_prog_ac_ct_CC
1503if test -n "$ac_ct_CC"; then
25ed0b71 1504 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9255ee31
EZ
1505echo "${ECHO_T}$ac_ct_CC" >&6
1506else
25ed0b71 1507 echo "$as_me:$LINENO: result: no" >&5
9255ee31
EZ
1508echo "${ECHO_T}no" >&6
1509fi
1510
1511 CC=$ac_ct_CC
d60d9f65 1512else
9255ee31 1513 CC="$ac_cv_prog_CC"
d60d9f65
SS
1514fi
1515
1516if test -z "$CC"; then
9255ee31
EZ
1517 if test -n "$ac_tool_prefix"; then
1518 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1519set dummy ${ac_tool_prefix}cc; ac_word=$2
25ed0b71 1520echo "$as_me:$LINENO: checking for $ac_word" >&5
9255ee31
EZ
1521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522if test "${ac_cv_prog_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524else
1525 if test -n "$CC"; then
1526 ac_cv_prog_CC="$CC" # Let the user override the test.
1527else
25ed0b71
KW
1528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529for as_dir in $PATH
1530do
1531 IFS=$as_save_IFS
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_CC="${ac_tool_prefix}cc"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537 break 2
1538 fi
1539done
9255ee31
EZ
1540done
1541
1542fi
1543fi
1544CC=$ac_cv_prog_CC
1545if test -n "$CC"; then
25ed0b71 1546 echo "$as_me:$LINENO: result: $CC" >&5
9255ee31
EZ
1547echo "${ECHO_T}$CC" >&6
1548else
25ed0b71 1549 echo "$as_me:$LINENO: result: no" >&5
9255ee31
EZ
1550echo "${ECHO_T}no" >&6
1551fi
1552
1553fi
1554if test -z "$ac_cv_prog_CC"; then
1555 ac_ct_CC=$CC
d60d9f65
SS
1556 # Extract the first word of "cc", so it can be a program name with args.
1557set dummy cc; ac_word=$2
25ed0b71 1558echo "$as_me:$LINENO: checking for $ac_word" >&5
9255ee31
EZ
1559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562else
1563 if test -n "$ac_ct_CC"; then
1564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1565else
25ed0b71
KW
1566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567for as_dir in $PATH
1568do
1569 IFS=$as_save_IFS
1570 test -z "$as_dir" && as_dir=.
1571 for ac_exec_ext in '' $ac_executable_extensions; do
1572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573 ac_cv_prog_ac_ct_CC="cc"
1574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1575 break 2
1576 fi
1577done
9255ee31
EZ
1578done
1579
1580fi
1581fi
1582ac_ct_CC=$ac_cv_prog_ac_ct_CC
1583if test -n "$ac_ct_CC"; then
25ed0b71 1584 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9255ee31
EZ
1585echo "${ECHO_T}$ac_ct_CC" >&6
1586else
25ed0b71 1587 echo "$as_me:$LINENO: result: no" >&5
9255ee31
EZ
1588echo "${ECHO_T}no" >&6
1589fi
1590
1591 CC=$ac_ct_CC
1592else
1593 CC="$ac_cv_prog_CC"
1594fi
1595
1596fi
1597if test -z "$CC"; then
1598 # Extract the first word of "cc", so it can be a program name with args.
1599set dummy cc; ac_word=$2
25ed0b71 1600echo "$as_me:$LINENO: checking for $ac_word" >&5
9255ee31
EZ
1601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602if test "${ac_cv_prog_CC+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65
SS
1604else
1605 if test -n "$CC"; then
1606 ac_cv_prog_CC="$CC" # Let the user override the test.
1607else
d60d9f65 1608 ac_prog_rejected=no
25ed0b71
KW
1609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610for as_dir in $PATH
1611do
1612 IFS=$as_save_IFS
1613 test -z "$as_dir" && as_dir=.
1614 for ac_exec_ext in '' $ac_executable_extensions; do
1615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1616 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1617 ac_prog_rejected=yes
1618 continue
1619 fi
1620 ac_cv_prog_CC="cc"
1621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 break 2
1623 fi
1624done
9255ee31
EZ
1625done
1626
d60d9f65
SS
1627if test $ac_prog_rejected = yes; then
1628 # We found a bogon in the path, so make sure we never use it.
1629 set dummy $ac_cv_prog_CC
1630 shift
9255ee31 1631 if test $# != 0; then
d60d9f65
SS
1632 # We chose a different compiler from the bogus one.
1633 # However, it has the same basename, so the bogon will be chosen
1634 # first if we set CC to just the basename; use the full file name.
1635 shift
25ed0b71 1636 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
d60d9f65
SS
1637 fi
1638fi
1639fi
1640fi
9255ee31 1641CC=$ac_cv_prog_CC
d60d9f65 1642if test -n "$CC"; then
25ed0b71 1643 echo "$as_me:$LINENO: result: $CC" >&5
9255ee31 1644echo "${ECHO_T}$CC" >&6
d60d9f65 1645else
25ed0b71 1646 echo "$as_me:$LINENO: result: no" >&5
9255ee31 1647echo "${ECHO_T}no" >&6
d60d9f65
SS
1648fi
1649
9255ee31
EZ
1650fi
1651if test -z "$CC"; then
1652 if test -n "$ac_tool_prefix"; then
1653 for ac_prog in cl
1654 do
1655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1656set dummy $ac_tool_prefix$ac_prog; ac_word=$2
25ed0b71 1657echo "$as_me:$LINENO: checking for $ac_word" >&5
9255ee31
EZ
1658echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1659if test "${ac_cv_prog_CC+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65
SS
1661else
1662 if test -n "$CC"; then
1663 ac_cv_prog_CC="$CC" # Let the user override the test.
1664else
25ed0b71
KW
1665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666for as_dir in $PATH
1667do
1668 IFS=$as_save_IFS
1669 test -z "$as_dir" && as_dir=.
1670 for ac_exec_ext in '' $ac_executable_extensions; do
1671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1672 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674 break 2
1675 fi
1676done
9255ee31
EZ
1677done
1678
d60d9f65
SS
1679fi
1680fi
9255ee31 1681CC=$ac_cv_prog_CC
d60d9f65 1682if test -n "$CC"; then
25ed0b71 1683 echo "$as_me:$LINENO: result: $CC" >&5
9255ee31 1684echo "${ECHO_T}$CC" >&6
d60d9f65 1685else
25ed0b71 1686 echo "$as_me:$LINENO: result: no" >&5
9255ee31 1687echo "${ECHO_T}no" >&6
d60d9f65
SS
1688fi
1689
9255ee31
EZ
1690 test -n "$CC" && break
1691 done
1692fi
1693if test -z "$CC"; then
1694 ac_ct_CC=$CC
1695 for ac_prog in cl
1696do
1697 # Extract the first word of "$ac_prog", so it can be a program name with args.
1698set dummy $ac_prog; ac_word=$2
25ed0b71 1699echo "$as_me:$LINENO: checking for $ac_word" >&5
9255ee31
EZ
1700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1701if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1702 echo $ECHO_N "(cached) $ECHO_C" >&6
1703else
1704 if test -n "$ac_ct_CC"; then
1705 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1706else
25ed0b71
KW
1707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708for as_dir in $PATH
1709do
1710 IFS=$as_save_IFS
1711 test -z "$as_dir" && as_dir=.
1712 for ac_exec_ext in '' $ac_executable_extensions; do
1713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714 ac_cv_prog_ac_ct_CC="$ac_prog"
1715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716 break 2
1717 fi
1718done
9255ee31 1719done
d60d9f65 1720
9255ee31
EZ
1721fi
1722fi
1723ac_ct_CC=$ac_cv_prog_ac_ct_CC
1724if test -n "$ac_ct_CC"; then
25ed0b71 1725 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
9255ee31
EZ
1726echo "${ECHO_T}$ac_ct_CC" >&6
1727else
25ed0b71 1728 echo "$as_me:$LINENO: result: no" >&5
9255ee31
EZ
1729echo "${ECHO_T}no" >&6
1730fi
d60d9f65 1731
9255ee31
EZ
1732 test -n "$ac_ct_CC" && break
1733done
c862e87b 1734
9255ee31
EZ
1735 CC=$ac_ct_CC
1736fi
1737
1738fi
1739
25ed0b71
KW
1740
1741test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1742See \`config.log' for more details." >&5
1743echo "$as_me: error: no acceptable C compiler found in \$PATH
1744See \`config.log' for more details." >&2;}
9255ee31
EZ
1745 { (exit 1); exit 1; }; }
1746
1747# Provide some information about the compiler.
25ed0b71 1748echo "$as_me:$LINENO:" \
9255ee31
EZ
1749 "checking for C compiler version" >&5
1750ac_compiler=`set X $ac_compile; echo $2`
25ed0b71 1751{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
9255ee31
EZ
1752 (eval $ac_compiler --version </dev/null >&5) 2>&5
1753 ac_status=$?
25ed0b71 1754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31 1755 (exit $ac_status); }
25ed0b71 1756{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
9255ee31
EZ
1757 (eval $ac_compiler -v </dev/null >&5) 2>&5
1758 ac_status=$?
25ed0b71 1759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31 1760 (exit $ac_status); }
25ed0b71 1761{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
9255ee31
EZ
1762 (eval $ac_compiler -V </dev/null >&5) 2>&5
1763 ac_status=$?
25ed0b71 1764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
1765 (exit $ac_status); }
1766
1767cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
1768#line $LINENO "configure"
1769/* confdefs.h. */
1770_ACEOF
1771cat confdefs.h >>conftest.$ac_ext
1772cat >>conftest.$ac_ext <<_ACEOF
1773/* end confdefs.h. */
c862e87b 1774
9255ee31
EZ
1775int
1776main ()
1777{
1778
1779 ;
1780 return 0;
1781}
1782_ACEOF
1783ac_clean_files_save=$ac_clean_files
25ed0b71 1784ac_clean_files="$ac_clean_files a.out a.exe b.out"
9255ee31
EZ
1785# Try to create an executable without -o first, disregard a.out.
1786# It will help us diagnose broken compilers, and finding out an intuition
1787# of exeext.
25ed0b71 1788echo "$as_me:$LINENO: checking for C compiler default output" >&5
9255ee31
EZ
1789echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1790ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
25ed0b71 1791if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
9255ee31
EZ
1792 (eval $ac_link_default) 2>&5
1793 ac_status=$?
25ed0b71 1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
1795 (exit $ac_status); }; then
1796 # Find the output, starting from the most likely. This scheme is
1797# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1798# resort.
25ed0b71
KW
1799
1800# Be careful to initialize this variable, since it used to be cached.
1801# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1802ac_cv_exeext=
1803# b.out is created by i960 compilers.
1804for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1805do
1806 test -f "$ac_file" || continue
9255ee31 1807 case $ac_file in
25ed0b71
KW
1808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1809 ;;
1810 conftest.$ac_ext )
1811 # This is the source file.
1812 ;;
1813 [ab].out )
1814 # We found the default executable, but exeext='' is most
1815 # certainly right.
1816 break;;
1817 *.* )
1818 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1819 # FIXME: I believe we export ac_cv_exeext for Libtool,
1820 # but it would be cool to find out if it's true. Does anybody
1821 # maintain Libtool? --akim.
1822 export ac_cv_exeext
1823 break;;
1824 * )
1825 break;;
9255ee31
EZ
1826 esac
1827done
1828else
1829 echo "$as_me: failed program was:" >&5
25ed0b71
KW
1830sed 's/^/| /' conftest.$ac_ext >&5
1831
1832{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1833See \`config.log' for more details." >&5
1834echo "$as_me: error: C compiler cannot create executables
1835See \`config.log' for more details." >&2;}
9255ee31
EZ
1836 { (exit 77); exit 77; }; }
1837fi
1838
1839ac_exeext=$ac_cv_exeext
25ed0b71 1840echo "$as_me:$LINENO: result: $ac_file" >&5
9255ee31
EZ
1841echo "${ECHO_T}$ac_file" >&6
1842
1843# Check the compiler produces executables we can run. If not, either
1844# the compiler is broken, or we cross compile.
25ed0b71 1845echo "$as_me:$LINENO: checking whether the C compiler works" >&5
9255ee31
EZ
1846echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1847# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1848# If not cross compiling, check that we can run a simple program.
1849if test "$cross_compiling" != yes; then
1850 if { ac_try='./$ac_file'
25ed0b71 1851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
1852 (eval $ac_try) 2>&5
1853 ac_status=$?
25ed0b71 1854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
1855 (exit $ac_status); }; }; then
1856 cross_compiling=no
d60d9f65 1857 else
9255ee31
EZ
1858 if test "$cross_compiling" = maybe; then
1859 cross_compiling=yes
1860 else
25ed0b71
KW
1861 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1862If you meant to cross compile, use \`--host'.
1863See \`config.log' for more details." >&5
9255ee31 1864echo "$as_me: error: cannot run C compiled programs.
25ed0b71
KW
1865If you meant to cross compile, use \`--host'.
1866See \`config.log' for more details." >&2;}
9255ee31
EZ
1867 { (exit 1); exit 1; }; }
1868 fi
d60d9f65 1869 fi
d60d9f65 1870fi
25ed0b71 1871echo "$as_me:$LINENO: result: yes" >&5
9255ee31
EZ
1872echo "${ECHO_T}yes" >&6
1873
25ed0b71 1874rm -f a.out a.exe conftest$ac_cv_exeext b.out
9255ee31
EZ
1875ac_clean_files=$ac_clean_files_save
1876# Check the compiler produces executables we can run. If not, either
1877# the compiler is broken, or we cross compile.
25ed0b71 1878echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
9255ee31 1879echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
25ed0b71 1880echo "$as_me:$LINENO: result: $cross_compiling" >&5
9255ee31
EZ
1881echo "${ECHO_T}$cross_compiling" >&6
1882
25ed0b71
KW
1883echo "$as_me:$LINENO: checking for suffix of executables" >&5
1884echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9255ee31
EZ
1886 (eval $ac_link) 2>&5
1887 ac_status=$?
25ed0b71 1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
1889 (exit $ac_status); }; then
1890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1891# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1892# work properly (i.e., refer to `conftest.exe'), while it won't with
1893# `rm'.
25ed0b71
KW
1894for ac_file in conftest.exe conftest conftest.*; do
1895 test -f "$ac_file" || continue
9255ee31 1896 case $ac_file in
25ed0b71 1897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
9255ee31
EZ
1898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1899 export ac_cv_exeext
1900 break;;
1901 * ) break;;
1902 esac
1903done
d60d9f65 1904else
25ed0b71
KW
1905 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1906See \`config.log' for more details." >&5
1907echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1908See \`config.log' for more details." >&2;}
9255ee31
EZ
1909 { (exit 1); exit 1; }; }
1910fi
1911
1912rm -f conftest$ac_cv_exeext
25ed0b71 1913echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
9255ee31
EZ
1914echo "${ECHO_T}$ac_cv_exeext" >&6
1915
1916rm -f conftest.$ac_ext
1917EXEEXT=$ac_cv_exeext
1918ac_exeext=$EXEEXT
25ed0b71
KW
1919echo "$as_me:$LINENO: checking for suffix of object files" >&5
1920echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
9255ee31
EZ
1921if test "${ac_cv_objext+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1923else
1924 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
1925#line $LINENO "configure"
1926/* confdefs.h. */
1927_ACEOF
1928cat confdefs.h >>conftest.$ac_ext
1929cat >>conftest.$ac_ext <<_ACEOF
1930/* end confdefs.h. */
d60d9f65 1931
9255ee31
EZ
1932int
1933main ()
1934{
d60d9f65 1935
9255ee31
EZ
1936 ;
1937 return 0;
1938}
1939_ACEOF
1940rm -f conftest.o conftest.obj
25ed0b71 1941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9255ee31
EZ
1942 (eval $ac_compile) 2>&5
1943 ac_status=$?
25ed0b71 1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
1945 (exit $ac_status); }; then
1946 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1947 case $ac_file in
25ed0b71 1948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
9255ee31
EZ
1949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1950 break;;
1951 esac
1952done
d60d9f65 1953else
9255ee31 1954 echo "$as_me: failed program was:" >&5
25ed0b71
KW
1955sed 's/^/| /' conftest.$ac_ext >&5
1956
1957{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1958See \`config.log' for more details." >&5
1959echo "$as_me: error: cannot compute suffix of object files: cannot compile
1960See \`config.log' for more details." >&2;}
9255ee31
EZ
1961 { (exit 1); exit 1; }; }
1962fi
1963
1964rm -f conftest.$ac_cv_objext conftest.$ac_ext
1965fi
25ed0b71 1966echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
9255ee31
EZ
1967echo "${ECHO_T}$ac_cv_objext" >&6
1968OBJEXT=$ac_cv_objext
1969ac_objext=$OBJEXT
25ed0b71 1970echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
9255ee31
EZ
1971echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1972if test "${ac_cv_c_compiler_gnu+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1974else
1975 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
1976#line $LINENO "configure"
1977/* confdefs.h. */
1978_ACEOF
1979cat confdefs.h >>conftest.$ac_ext
1980cat >>conftest.$ac_ext <<_ACEOF
1981/* end confdefs.h. */
9255ee31
EZ
1982
1983int
1984main ()
1985{
1986#ifndef __GNUC__
1987 choke me
1988#endif
d60d9f65 1989
9255ee31
EZ
1990 ;
1991 return 0;
1992}
1993_ACEOF
1994rm -f conftest.$ac_objext
25ed0b71 1995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9255ee31
EZ
1996 (eval $ac_compile) 2>&5
1997 ac_status=$?
25ed0b71 1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
1999 (exit $ac_status); } &&
2000 { ac_try='test -s conftest.$ac_objext'
25ed0b71 2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
2002 (eval $ac_try) 2>&5
2003 ac_status=$?
25ed0b71 2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
2005 (exit $ac_status); }; }; then
2006 ac_compiler_gnu=yes
2007else
2008 echo "$as_me: failed program was:" >&5
25ed0b71
KW
2009sed 's/^/| /' conftest.$ac_ext >&5
2010
9255ee31
EZ
2011ac_compiler_gnu=no
2012fi
2013rm -f conftest.$ac_objext conftest.$ac_ext
2014ac_cv_c_compiler_gnu=$ac_compiler_gnu
2015
2016fi
25ed0b71 2017echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
9255ee31
EZ
2018echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2019GCC=`test $ac_compiler_gnu = yes && echo yes`
2020ac_test_CFLAGS=${CFLAGS+set}
2021ac_save_CFLAGS=$CFLAGS
2022CFLAGS="-g"
25ed0b71 2023echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
9255ee31
EZ
2024echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2025if test "${ac_cv_prog_cc_g+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65 2027else
9255ee31 2028 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
2029#line $LINENO "configure"
2030/* confdefs.h. */
2031_ACEOF
2032cat confdefs.h >>conftest.$ac_ext
2033cat >>conftest.$ac_ext <<_ACEOF
2034/* end confdefs.h. */
9255ee31
EZ
2035
2036int
2037main ()
2038{
2039
2040 ;
2041 return 0;
2042}
2043_ACEOF
2044rm -f conftest.$ac_objext
25ed0b71 2045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9255ee31
EZ
2046 (eval $ac_compile) 2>&5
2047 ac_status=$?
25ed0b71 2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
2049 (exit $ac_status); } &&
2050 { ac_try='test -s conftest.$ac_objext'
25ed0b71 2051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
2052 (eval $ac_try) 2>&5
2053 ac_status=$?
25ed0b71 2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31 2055 (exit $ac_status); }; }; then
d60d9f65
SS
2056 ac_cv_prog_cc_g=yes
2057else
9255ee31 2058 echo "$as_me: failed program was:" >&5
25ed0b71
KW
2059sed 's/^/| /' conftest.$ac_ext >&5
2060
9255ee31 2061ac_cv_prog_cc_g=no
d60d9f65 2062fi
9255ee31 2063rm -f conftest.$ac_objext conftest.$ac_ext
d60d9f65 2064fi
25ed0b71 2065echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
9255ee31 2066echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
d60d9f65 2067if test "$ac_test_CFLAGS" = set; then
9255ee31 2068 CFLAGS=$ac_save_CFLAGS
d60d9f65
SS
2069elif test $ac_cv_prog_cc_g = yes; then
2070 if test "$GCC" = yes; then
2071 CFLAGS="-g -O2"
2072 else
2073 CFLAGS="-g"
2074 fi
2075else
2076 if test "$GCC" = yes; then
2077 CFLAGS="-O2"
2078 else
2079 CFLAGS=
2080 fi
2081fi
25ed0b71
KW
2082echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2083echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2084if test "${ac_cv_prog_cc_stdc+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2086else
2087 ac_cv_prog_cc_stdc=no
2088ac_save_CC=$CC
2089cat >conftest.$ac_ext <<_ACEOF
2090#line $LINENO "configure"
2091/* confdefs.h. */
2092_ACEOF
2093cat confdefs.h >>conftest.$ac_ext
2094cat >>conftest.$ac_ext <<_ACEOF
2095/* end confdefs.h. */
2096#include <stdarg.h>
2097#include <stdio.h>
2098#include <sys/types.h>
2099#include <sys/stat.h>
2100/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2101struct buf { int x; };
2102FILE * (*rcsopen) (struct buf *, struct stat *, int);
2103static char *e (p, i)
2104 char **p;
2105 int i;
2106{
2107 return p[i];
2108}
2109static char *f (char * (*g) (char **, int), char **p, ...)
2110{
2111 char *s;
2112 va_list v;
2113 va_start (v,p);
2114 s = g (p, va_arg (v,int));
2115 va_end (v);
2116 return s;
2117}
2118int test (int i, double x);
2119struct s1 {int (*f) (int a);};
2120struct s2 {int (*f) (double a);};
2121int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2122int argc;
2123char **argv;
2124int
2125main ()
2126{
2127return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2128 ;
2129 return 0;
2130}
2131_ACEOF
2132# Don't try gcc -ansi; that turns off useful extensions and
2133# breaks some systems' header files.
2134# AIX -qlanglvl=ansi
2135# Ultrix and OSF/1 -std1
2136# HP-UX 10.20 and later -Ae
2137# HP-UX older versions -Aa -D_HPUX_SOURCE
2138# SVR4 -Xc -D__EXTENSIONS__
2139for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2140do
2141 CC="$ac_save_CC $ac_arg"
2142 rm -f conftest.$ac_objext
2143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2144 (eval $ac_compile) 2>&5
2145 ac_status=$?
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); } &&
2148 { ac_try='test -s conftest.$ac_objext'
2149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2150 (eval $ac_try) 2>&5
2151 ac_status=$?
2152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153 (exit $ac_status); }; }; then
2154 ac_cv_prog_cc_stdc=$ac_arg
2155break
2156else
2157 echo "$as_me: failed program was:" >&5
2158sed 's/^/| /' conftest.$ac_ext >&5
2159
2160fi
2161rm -f conftest.$ac_objext
2162done
2163rm -f conftest.$ac_ext conftest.$ac_objext
2164CC=$ac_save_CC
2165
2166fi
2167
2168case "x$ac_cv_prog_cc_stdc" in
2169 x|xno)
2170 echo "$as_me:$LINENO: result: none needed" >&5
2171echo "${ECHO_T}none needed" >&6 ;;
2172 *)
2173 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2174echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2175 CC="$CC $ac_cv_prog_cc_stdc" ;;
2176esac
2177
9255ee31
EZ
2178# Some people use a C++ compiler to compile C. Since we use `exit',
2179# in C++ we need to declare it. In case someone uses the same compiler
2180# for both compiling C and C++ we need to have the C++ compiler decide
2181# the declaration of exit, since it's the most demanding environment.
2182cat >conftest.$ac_ext <<_ACEOF
2183#ifndef __cplusplus
2184 choke me
2185#endif
2186_ACEOF
2187rm -f conftest.$ac_objext
25ed0b71 2188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9255ee31
EZ
2189 (eval $ac_compile) 2>&5
2190 ac_status=$?
25ed0b71 2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
2192 (exit $ac_status); } &&
2193 { ac_try='test -s conftest.$ac_objext'
25ed0b71 2194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
2195 (eval $ac_try) 2>&5
2196 ac_status=$?
25ed0b71 2197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
2198 (exit $ac_status); }; }; then
2199 for ac_declaration in \
2200 ''\
2201 '#include <stdlib.h>' \
2202 'extern "C" void std::exit (int) throw (); using std::exit;' \
2203 'extern "C" void std::exit (int); using std::exit;' \
2204 'extern "C" void exit (int) throw ();' \
2205 'extern "C" void exit (int);' \
2206 'void exit (int);'
2207do
2208 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
2209#line $LINENO "configure"
2210/* confdefs.h. */
2211_ACEOF
2212cat confdefs.h >>conftest.$ac_ext
2213cat >>conftest.$ac_ext <<_ACEOF
2214/* end confdefs.h. */
9255ee31
EZ
2215#include <stdlib.h>
2216$ac_declaration
2217int
2218main ()
2219{
2220exit (42);
2221 ;
2222 return 0;
2223}
2224_ACEOF
2225rm -f conftest.$ac_objext
25ed0b71 2226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9255ee31
EZ
2227 (eval $ac_compile) 2>&5
2228 ac_status=$?
25ed0b71 2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
2230 (exit $ac_status); } &&
2231 { ac_try='test -s conftest.$ac_objext'
25ed0b71 2232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
2233 (eval $ac_try) 2>&5
2234 ac_status=$?
25ed0b71 2235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
2236 (exit $ac_status); }; }; then
2237 :
2238else
2239 echo "$as_me: failed program was:" >&5
25ed0b71
KW
2240sed 's/^/| /' conftest.$ac_ext >&5
2241
9255ee31
EZ
2242continue
2243fi
2244rm -f conftest.$ac_objext conftest.$ac_ext
2245 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
2246#line $LINENO "configure"
2247/* confdefs.h. */
2248_ACEOF
2249cat confdefs.h >>conftest.$ac_ext
2250cat >>conftest.$ac_ext <<_ACEOF
2251/* end confdefs.h. */
9255ee31
EZ
2252$ac_declaration
2253int
2254main ()
2255{
2256exit (42);
2257 ;
2258 return 0;
2259}
2260_ACEOF
2261rm -f conftest.$ac_objext
25ed0b71 2262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9255ee31
EZ
2263 (eval $ac_compile) 2>&5
2264 ac_status=$?
25ed0b71 2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
2266 (exit $ac_status); } &&
2267 { ac_try='test -s conftest.$ac_objext'
25ed0b71 2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
2269 (eval $ac_try) 2>&5
2270 ac_status=$?
25ed0b71 2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
2272 (exit $ac_status); }; }; then
2273 break
2274else
2275 echo "$as_me: failed program was:" >&5
25ed0b71
KW
2276sed 's/^/| /' conftest.$ac_ext >&5
2277
9255ee31
EZ
2278fi
2279rm -f conftest.$ac_objext conftest.$ac_ext
2280done
2281rm -f conftest*
2282if test -n "$ac_declaration"; then
2283 echo '#ifdef __cplusplus' >>confdefs.h
2284 echo $ac_declaration >>confdefs.h
2285 echo '#endif' >>confdefs.h
2286fi
d60d9f65 2287
9255ee31
EZ
2288else
2289 echo "$as_me: failed program was:" >&5
25ed0b71
KW
2290sed 's/^/| /' conftest.$ac_ext >&5
2291
9255ee31
EZ
2292fi
2293rm -f conftest.$ac_objext conftest.$ac_ext
2294ac_ext=c
2295ac_cpp='$CPP $CPPFLAGS'
2296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2298ac_compiler_gnu=$ac_cv_c_compiler_gnu
2299
25ed0b71 2300
9255ee31
EZ
2301ac_ext=c
2302ac_cpp='$CPP $CPPFLAGS'
2303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2305ac_compiler_gnu=$ac_cv_c_compiler_gnu
25ed0b71 2306echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
9255ee31 2307echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
d60d9f65
SS
2308# On Suns, sometimes $CPP names a directory.
2309if test -n "$CPP" && test -d "$CPP"; then
2310 CPP=
2311fi
2312if test -z "$CPP"; then
9255ee31
EZ
2313 if test "${ac_cv_prog_CPP+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65 2315else
9255ee31
EZ
2316 # Double quotes because CPP needs to be expanded
2317 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2318 do
2319 ac_preproc_ok=false
2320for ac_c_preproc_warn_flag in '' yes
2321do
2322 # Use a header file that comes with gcc, so configuring glibc
2323 # with a fresh cross-compiler works.
25ed0b71
KW
2324 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2325 # <limits.h> exists even on freestanding compilers.
d60d9f65 2326 # On the NeXT, cc -E runs the code through the compiler's parser,
9255ee31
EZ
2327 # not just through cpp. "Syntax error" is here to catch this case.
2328 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
2329#line $LINENO "configure"
2330/* confdefs.h. */
2331_ACEOF
2332cat confdefs.h >>conftest.$ac_ext
2333cat >>conftest.$ac_ext <<_ACEOF
2334/* end confdefs.h. */
2335#ifdef __STDC__
2336# include <limits.h>
2337#else
2338# include <assert.h>
2339#endif
9255ee31
EZ
2340 Syntax error
2341_ACEOF
25ed0b71 2342if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9255ee31
EZ
2343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2344 ac_status=$?
25ed0b71 2345 grep -v '^ *+' conftest.er1 >conftest.err
9255ee31
EZ
2346 rm -f conftest.er1
2347 cat conftest.err >&5
25ed0b71 2348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
2349 (exit $ac_status); } >/dev/null; then
2350 if test -s conftest.err; then
2351 ac_cpp_err=$ac_c_preproc_warn_flag
2352 else
2353 ac_cpp_err=
2354 fi
2355else
2356 ac_cpp_err=yes
2357fi
2358if test -z "$ac_cpp_err"; then
d60d9f65
SS
2359 :
2360else
9255ee31 2361 echo "$as_me: failed program was:" >&5
25ed0b71
KW
2362sed 's/^/| /' conftest.$ac_ext >&5
2363
9255ee31
EZ
2364 # Broken: fails on valid input.
2365continue
2366fi
2367rm -f conftest.err conftest.$ac_ext
2368
2369 # OK, works on sane cases. Now check whether non-existent headers
2370 # can be detected and how.
2371 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
2372#line $LINENO "configure"
2373/* confdefs.h. */
2374_ACEOF
2375cat confdefs.h >>conftest.$ac_ext
2376cat >>conftest.$ac_ext <<_ACEOF
2377/* end confdefs.h. */
9255ee31
EZ
2378#include <ac_nonexistent.h>
2379_ACEOF
25ed0b71 2380if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9255ee31
EZ
2381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2382 ac_status=$?
25ed0b71 2383 grep -v '^ *+' conftest.er1 >conftest.err
9255ee31
EZ
2384 rm -f conftest.er1
2385 cat conftest.err >&5
25ed0b71 2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
2387 (exit $ac_status); } >/dev/null; then
2388 if test -s conftest.err; then
2389 ac_cpp_err=$ac_c_preproc_warn_flag
2390 else
2391 ac_cpp_err=
2392 fi
2393else
2394 ac_cpp_err=yes
2395fi
2396if test -z "$ac_cpp_err"; then
2397 # Broken: success on invalid input.
2398continue
d60d9f65 2399else
9255ee31 2400 echo "$as_me: failed program was:" >&5
25ed0b71
KW
2401sed 's/^/| /' conftest.$ac_ext >&5
2402
9255ee31
EZ
2403 # Passes both tests.
2404ac_preproc_ok=:
2405break
2406fi
2407rm -f conftest.err conftest.$ac_ext
2408
2409done
2410# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2411rm -f conftest.err conftest.$ac_ext
2412if $ac_preproc_ok; then
2413 break
2414fi
2415
2416 done
2417 ac_cv_prog_CPP=$CPP
2418
2419fi
2420 CPP=$ac_cv_prog_CPP
2421else
2422 ac_cv_prog_CPP=$CPP
2423fi
25ed0b71 2424echo "$as_me:$LINENO: result: $CPP" >&5
9255ee31
EZ
2425echo "${ECHO_T}$CPP" >&6
2426ac_preproc_ok=false
2427for ac_c_preproc_warn_flag in '' yes
2428do
2429 # Use a header file that comes with gcc, so configuring glibc
2430 # with a fresh cross-compiler works.
25ed0b71
KW
2431 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2432 # <limits.h> exists even on freestanding compilers.
9255ee31
EZ
2433 # On the NeXT, cc -E runs the code through the compiler's parser,
2434 # not just through cpp. "Syntax error" is here to catch this case.
2435 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
2436#line $LINENO "configure"
2437/* confdefs.h. */
2438_ACEOF
2439cat confdefs.h >>conftest.$ac_ext
2440cat >>conftest.$ac_ext <<_ACEOF
2441/* end confdefs.h. */
2442#ifdef __STDC__
2443# include <limits.h>
2444#else
2445# include <assert.h>
2446#endif
9255ee31
EZ
2447 Syntax error
2448_ACEOF
25ed0b71 2449if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9255ee31
EZ
2450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2451 ac_status=$?
25ed0b71 2452 grep -v '^ *+' conftest.er1 >conftest.err
9255ee31
EZ
2453 rm -f conftest.er1
2454 cat conftest.err >&5
25ed0b71 2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
2456 (exit $ac_status); } >/dev/null; then
2457 if test -s conftest.err; then
2458 ac_cpp_err=$ac_c_preproc_warn_flag
2459 else
2460 ac_cpp_err=
2461 fi
2462else
2463 ac_cpp_err=yes
2464fi
2465if test -z "$ac_cpp_err"; then
d60d9f65
SS
2466 :
2467else
9255ee31 2468 echo "$as_me: failed program was:" >&5
25ed0b71
KW
2469sed 's/^/| /' conftest.$ac_ext >&5
2470
9255ee31
EZ
2471 # Broken: fails on valid input.
2472continue
d60d9f65 2473fi
9255ee31
EZ
2474rm -f conftest.err conftest.$ac_ext
2475
2476 # OK, works on sane cases. Now check whether non-existent headers
2477 # can be detected and how.
2478 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
2479#line $LINENO "configure"
2480/* confdefs.h. */
2481_ACEOF
2482cat confdefs.h >>conftest.$ac_ext
2483cat >>conftest.$ac_ext <<_ACEOF
2484/* end confdefs.h. */
9255ee31
EZ
2485#include <ac_nonexistent.h>
2486_ACEOF
25ed0b71 2487if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9255ee31
EZ
2488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2489 ac_status=$?
25ed0b71 2490 grep -v '^ *+' conftest.er1 >conftest.err
9255ee31
EZ
2491 rm -f conftest.er1
2492 cat conftest.err >&5
25ed0b71 2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
2494 (exit $ac_status); } >/dev/null; then
2495 if test -s conftest.err; then
2496 ac_cpp_err=$ac_c_preproc_warn_flag
2497 else
2498 ac_cpp_err=
2499 fi
2500else
2501 ac_cpp_err=yes
d60d9f65 2502fi
9255ee31
EZ
2503if test -z "$ac_cpp_err"; then
2504 # Broken: success on invalid input.
2505continue
2506else
2507 echo "$as_me: failed program was:" >&5
25ed0b71
KW
2508sed 's/^/| /' conftest.$ac_ext >&5
2509
9255ee31
EZ
2510 # Passes both tests.
2511ac_preproc_ok=:
2512break
d60d9f65 2513fi
9255ee31
EZ
2514rm -f conftest.err conftest.$ac_ext
2515
2516done
2517# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2518rm -f conftest.err conftest.$ac_ext
2519if $ac_preproc_ok; then
2520 :
d60d9f65 2521else
25ed0b71
KW
2522 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2523See \`config.log' for more details." >&5
2524echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2525See \`config.log' for more details." >&2;}
9255ee31 2526 { (exit 1); exit 1; }; }
d60d9f65 2527fi
d60d9f65 2528
9255ee31
EZ
2529ac_ext=c
2530ac_cpp='$CPP $CPPFLAGS'
2531ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2532ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2533ac_compiler_gnu=$ac_cv_c_compiler_gnu
2534
25ed0b71
KW
2535
2536echo "$as_me:$LINENO: checking for egrep" >&5
2537echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2538if test "${ac_cv_prog_egrep+set}" = set; then
9255ee31 2539 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65 2540else
25ed0b71
KW
2541 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2542 then ac_cv_prog_egrep='grep -E'
2543 else ac_cv_prog_egrep='egrep'
2544 fi
d60d9f65 2545fi
25ed0b71
KW
2546echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2547echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2548 EGREP=$ac_cv_prog_egrep
d60d9f65 2549
9255ee31 2550
25ed0b71
KW
2551echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2552echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2553if test "${ac_cv_header_stdc+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2555else
2556 cat >conftest.$ac_ext <<_ACEOF
2557#line $LINENO "configure"
2558/* confdefs.h. */
2559_ACEOF
2560cat confdefs.h >>conftest.$ac_ext
2561cat >>conftest.$ac_ext <<_ACEOF
2562/* end confdefs.h. */
2563#include <stdlib.h>
2564#include <stdarg.h>
2565#include <string.h>
2566#include <float.h>
d60d9f65 2567
25ed0b71
KW
2568int
2569main ()
2570{
d60d9f65 2571
25ed0b71
KW
2572 ;
2573 return 0;
2574}
2575_ACEOF
2576rm -f conftest.$ac_objext
2577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2578 (eval $ac_compile) 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); } &&
2582 { ac_try='test -s conftest.$ac_objext'
2583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 (eval $ac_try) 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; }; then
2588 ac_cv_header_stdc=yes
2589else
2590 echo "$as_me: failed program was:" >&5
2591sed 's/^/| /' conftest.$ac_ext >&5
d60d9f65 2592
25ed0b71 2593ac_cv_header_stdc=no
d60d9f65 2594fi
25ed0b71 2595rm -f conftest.$ac_objext conftest.$ac_ext
d60d9f65 2596
25ed0b71
KW
2597if test $ac_cv_header_stdc = yes; then
2598 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2599 cat >conftest.$ac_ext <<_ACEOF
2600#line $LINENO "configure"
2601/* confdefs.h. */
2602_ACEOF
2603cat confdefs.h >>conftest.$ac_ext
2604cat >>conftest.$ac_ext <<_ACEOF
2605/* end confdefs.h. */
2606#include <string.h>
9255ee31 2607
25ed0b71
KW
2608_ACEOF
2609if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2610 $EGREP "memchr" >/dev/null 2>&1; then
2611 :
d60d9f65 2612else
25ed0b71 2613 ac_cv_header_stdc=no
d60d9f65 2614fi
25ed0b71 2615rm -f conftest*
d60d9f65 2616
d60d9f65
SS
2617fi
2618
25ed0b71
KW
2619if test $ac_cv_header_stdc = yes; then
2620 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9255ee31 2621 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
2622#line $LINENO "configure"
2623/* confdefs.h. */
9255ee31 2624_ACEOF
25ed0b71
KW
2625cat confdefs.h >>conftest.$ac_ext
2626cat >>conftest.$ac_ext <<_ACEOF
2627/* end confdefs.h. */
2628#include <stdlib.h>
d60d9f65 2629
9255ee31 2630_ACEOF
d60d9f65 2631if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25ed0b71
KW
2632 $EGREP "free" >/dev/null 2>&1; then
2633 :
2634else
2635 ac_cv_header_stdc=no
d60d9f65
SS
2636fi
2637rm -f conftest*
2638
d60d9f65
SS
2639fi
2640
25ed0b71
KW
2641if test $ac_cv_header_stdc = yes; then
2642 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2643 if test "$cross_compiling" = yes; then
2644 :
2645else
2646 cat >conftest.$ac_ext <<_ACEOF
2647#line $LINENO "configure"
2648/* confdefs.h. */
2649_ACEOF
2650cat confdefs.h >>conftest.$ac_ext
2651cat >>conftest.$ac_ext <<_ACEOF
2652/* end confdefs.h. */
2653#include <ctype.h>
2654#if ((' ' & 0x0FF) == 0x020)
2655# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2656# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2657#else
2658# define ISLOWER(c) \
2659 (('a' <= (c) && (c) <= 'i') \
2660 || ('j' <= (c) && (c) <= 'r') \
2661 || ('s' <= (c) && (c) <= 'z'))
2662# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2663#endif
2664
2665#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2666int
2667main ()
2668{
2669 int i;
2670 for (i = 0; i < 256; i++)
2671 if (XOR (islower (i), ISLOWER (i))
2672 || toupper (i) != TOUPPER (i))
2673 exit(2);
2674 exit (0);
2675}
2676_ACEOF
2677rm -f conftest$ac_exeext
2678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2679 (eval $ac_link) 2>&5
2680 ac_status=$?
2681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 (eval $ac_try) 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; }; then
2688 :
2689else
2690 echo "$as_me: program exited with status $ac_status" >&5
2691echo "$as_me: failed program was:" >&5
2692sed 's/^/| /' conftest.$ac_ext >&5
2693
2694( exit $ac_status )
2695ac_cv_header_stdc=no
2696fi
2697rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2698fi
2699fi
2700fi
2701echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2702echo "${ECHO_T}$ac_cv_header_stdc" >&6
2703if test $ac_cv_header_stdc = yes; then
2704
2705cat >>confdefs.h <<\_ACEOF
2706#define STDC_HEADERS 1
2707_ACEOF
2708
2709fi
2710
2711# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2722 inttypes.h stdint.h unistd.h
2723do
2724as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2725echo "$as_me:$LINENO: checking for $ac_header" >&5
2726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2727if eval "test \"\${$as_ac_Header+set}\" = set"; then
9255ee31 2728 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65 2729else
25ed0b71
KW
2730 cat >conftest.$ac_ext <<_ACEOF
2731#line $LINENO "configure"
2732/* confdefs.h. */
2733_ACEOF
2734cat confdefs.h >>conftest.$ac_ext
2735cat >>conftest.$ac_ext <<_ACEOF
2736/* end confdefs.h. */
2737$ac_includes_default
2738
2739#include <$ac_header>
2740_ACEOF
2741rm -f conftest.$ac_objext
2742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2743 (eval $ac_compile) 2>&5
2744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); } &&
2747 { ac_try='test -s conftest.$ac_objext'
2748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 (eval $ac_try) 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2753 eval "$as_ac_Header=yes"
2754else
2755 echo "$as_me: failed program was:" >&5
2756sed 's/^/| /' conftest.$ac_ext >&5
2757
2758eval "$as_ac_Header=no"
2759fi
2760rm -f conftest.$ac_objext conftest.$ac_ext
2761fi
2762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2763echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2764if test `eval echo '${'$as_ac_Header'}'` = yes; then
2765 cat >>confdefs.h <<_ACEOF
2766#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2767_ACEOF
2768
2769fi
2770
2771done
2772
2773
2774if test "${ac_cv_header_minix_config_h+set}" = set; then
2775 echo "$as_me:$LINENO: checking for minix/config.h" >&5
2776echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2777if test "${ac_cv_header_minix_config_h+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2779fi
2780echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2781echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2782else
2783 # Is the header compilable?
2784echo "$as_me:$LINENO: checking minix/config.h usability" >&5
2785echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
2786cat >conftest.$ac_ext <<_ACEOF
2787#line $LINENO "configure"
2788/* confdefs.h. */
2789_ACEOF
2790cat confdefs.h >>conftest.$ac_ext
2791cat >>conftest.$ac_ext <<_ACEOF
2792/* end confdefs.h. */
2793$ac_includes_default
2794#include <minix/config.h>
2795_ACEOF
2796rm -f conftest.$ac_objext
2797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2798 (eval $ac_compile) 2>&5
2799 ac_status=$?
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
2802 { ac_try='test -s conftest.$ac_objext'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804 (eval $ac_try) 2>&5
2805 ac_status=$?
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; }; then
2808 ac_header_compiler=yes
2809else
2810 echo "$as_me: failed program was:" >&5
2811sed 's/^/| /' conftest.$ac_ext >&5
2812
2813ac_header_compiler=no
2814fi
2815rm -f conftest.$ac_objext conftest.$ac_ext
2816echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2817echo "${ECHO_T}$ac_header_compiler" >&6
2818
2819# Is the header present?
2820echo "$as_me:$LINENO: checking minix/config.h presence" >&5
2821echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
2822cat >conftest.$ac_ext <<_ACEOF
2823#line $LINENO "configure"
2824/* confdefs.h. */
2825_ACEOF
2826cat confdefs.h >>conftest.$ac_ext
2827cat >>conftest.$ac_ext <<_ACEOF
2828/* end confdefs.h. */
2829#include <minix/config.h>
2830_ACEOF
2831if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2833 ac_status=$?
2834 grep -v '^ *+' conftest.er1 >conftest.err
2835 rm -f conftest.er1
2836 cat conftest.err >&5
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); } >/dev/null; then
2839 if test -s conftest.err; then
2840 ac_cpp_err=$ac_c_preproc_warn_flag
2841 else
2842 ac_cpp_err=
2843 fi
2844else
2845 ac_cpp_err=yes
2846fi
2847if test -z "$ac_cpp_err"; then
2848 ac_header_preproc=yes
2849else
2850 echo "$as_me: failed program was:" >&5
2851sed 's/^/| /' conftest.$ac_ext >&5
2852
2853 ac_header_preproc=no
2854fi
2855rm -f conftest.err conftest.$ac_ext
2856echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2857echo "${ECHO_T}$ac_header_preproc" >&6
2858
2859# So? What about this header?
2860case $ac_header_compiler:$ac_header_preproc in
2861 yes:no )
2862 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
2863echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
2864 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2865echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
2866 (
2867 cat <<\_ASBOX
2868## ------------------------------------ ##
2869## Report this to bug-autoconf@gnu.org. ##
2870## ------------------------------------ ##
2871_ASBOX
2872 ) |
2873 sed "s/^/$as_me: WARNING: /" >&2
2874 ;;
2875 no:yes )
2876 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
2877echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
2878 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
2879echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
2880 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
2881echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
2882 (
2883 cat <<\_ASBOX
2884## ------------------------------------ ##
2885## Report this to bug-autoconf@gnu.org. ##
2886## ------------------------------------ ##
2887_ASBOX
2888 ) |
2889 sed "s/^/$as_me: WARNING: /" >&2
2890 ;;
2891esac
2892echo "$as_me:$LINENO: checking for minix/config.h" >&5
2893echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
2894if test "${ac_cv_header_minix_config_h+set}" = set; then
2895 echo $ECHO_N "(cached) $ECHO_C" >&6
2896else
2897 ac_cv_header_minix_config_h=$ac_header_preproc
2898fi
2899echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
2900echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
2901
2902fi
2903if test $ac_cv_header_minix_config_h = yes; then
2904 MINIX=yes
2905else
2906 MINIX=
2907fi
2908
2909
2910if test "$MINIX" = yes; then
2911
2912cat >>confdefs.h <<\_ACEOF
2913#define _POSIX_SOURCE 1
2914_ACEOF
2915
2916
2917cat >>confdefs.h <<\_ACEOF
2918#define _POSIX_1_SOURCE 2
2919_ACEOF
2920
2921
2922cat >>confdefs.h <<\_ACEOF
2923#define _MINIX 1
2924_ACEOF
2925
2926fi
2927
2928
2929
2930if test "x$cross_compiling" = "xyes"; then
2931 case "${host}" in
2932 *-cygwin*)
2933 cross_cache=${srcdir}/cross-build/cygwin.cache
2934 if test -r "${cross_cache}"; then
2935 echo "loading cross-build cache file ${cross_cache}"
2936 . ${cross_cache}
d60d9f65 2937 fi
25ed0b71
KW
2938 LOCAL_CFLAGS="$LOCAL_CFLAGS -I${srcdir}/../libtermcap"
2939 unset cross_cache
2940 ;;
2941 *) echo "configure: cross-compiling for a non-cygwin target is not supported" >&2
2942 ;;
d60d9f65 2943 esac
25ed0b71
KW
2944fi
2945
2946if test "x$cross_compiling" = "xyes"; then
2947 CROSS_COMPILING_FLAG=-DCROSS_COMPILING
2948else
2949 CROSS_COMPILING_FLAG=
2950fi
2951
2952
2953if test -z "$CC_FOR_BUILD"; then
2954 if test "x$cross_compiling" = "xno"; then
2955 CC_FOR_BUILD='$(CC)'
2956 else
2957 CC_FOR_BUILD=gcc
2958 fi
2959fi
2960
2961
2962
2963# If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
2964test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
2965
2966if test $ac_cv_c_compiler_gnu = yes; then
2967 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2968echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2969if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2971else
2972 ac_pattern="Autoconf.*'x'"
2973 cat >conftest.$ac_ext <<_ACEOF
2974#line $LINENO "configure"
2975/* confdefs.h. */
2976_ACEOF
2977cat confdefs.h >>conftest.$ac_ext
2978cat >>conftest.$ac_ext <<_ACEOF
2979/* end confdefs.h. */
2980#include <sgtty.h>
2981Autoconf TIOCGETP
2982_ACEOF
2983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2984 $EGREP "$ac_pattern" >/dev/null 2>&1; then
2985 ac_cv_prog_gcc_traditional=yes
2986else
2987 ac_cv_prog_gcc_traditional=no
2988fi
2989rm -f conftest*
2990
2991
2992 if test $ac_cv_prog_gcc_traditional = no; then
2993 cat >conftest.$ac_ext <<_ACEOF
2994#line $LINENO "configure"
2995/* confdefs.h. */
2996_ACEOF
2997cat confdefs.h >>conftest.$ac_ext
2998cat >>conftest.$ac_ext <<_ACEOF
2999/* end confdefs.h. */
3000#include <termio.h>
3001Autoconf TCGETA
3002_ACEOF
3003if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3004 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3005 ac_cv_prog_gcc_traditional=yes
3006fi
3007rm -f conftest*
3008
3009 fi
3010fi
3011echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3012echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3013 if test $ac_cv_prog_gcc_traditional = yes; then
3014 CC="$CC -traditional"
3015 fi
3016fi
3017
3018# Find a good install program. We prefer a C program (faster),
3019# so one script is as good as another. But avoid the broken or
3020# incompatible versions:
3021# SysV /etc/install, /usr/sbin/install
3022# SunOS /usr/etc/install
3023# IRIX /sbin/install
3024# AIX /bin/install
3025# AmigaOS /C/install, which installs bootblocks on floppy discs
3026# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3027# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3028# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3029# ./install, which can be erroneously created by make from ./install.sh.
3030echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3031echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3032if test -z "$INSTALL"; then
3033if test "${ac_cv_path_install+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3035else
3036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037for as_dir in $PATH
3038do
3039 IFS=$as_save_IFS
3040 test -z "$as_dir" && as_dir=.
3041 # Account for people who put trailing slashes in PATH elements.
3042case $as_dir/ in
3043 ./ | .// | /cC/* | \
3044 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3045 /usr/ucb/* ) ;;
3046 *)
3047 # OSF1 and SCO ODT 3.0 have their own names for install.
3048 # Don't use installbsd from OSF since it installs stuff as root
3049 # by default.
3050 for ac_prog in ginstall scoinst install; do
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3053 if test $ac_prog = install &&
3054 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3055 # AIX install. It has an incompatible calling convention.
3056 :
3057 elif test $ac_prog = install &&
3058 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3059 # program-specific install script used by HP pwplus--don't use.
3060 :
3061 else
3062 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3063 break 3
3064 fi
3065 fi
3066 done
3067 done
3068 ;;
3069esac
3070done
3071
d60d9f65
SS
3072
3073fi
3074 if test "${ac_cv_path_install+set}" = set; then
9255ee31 3075 INSTALL=$ac_cv_path_install
d60d9f65
SS
3076 else
3077 # As a last resort, use the slow shell script. We don't cache a
3078 # path for INSTALL within a source directory, because that will
3079 # break other packages using the cache if that directory is
3080 # removed, or if the path is relative.
9255ee31 3081 INSTALL=$ac_install_sh
d60d9f65
SS
3082 fi
3083fi
25ed0b71 3084echo "$as_me:$LINENO: result: $INSTALL" >&5
9255ee31 3085echo "${ECHO_T}$INSTALL" >&6
d60d9f65
SS
3086
3087# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3088# It thinks the first close brace ends the variable substitution.
3089test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3090
9255ee31 3091test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
c862e87b 3092
d60d9f65
SS
3093test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3094
c862e87b
JM
3095# Extract the first word of "ar", so it can be a program name with args.
3096set dummy ar; ac_word=$2
25ed0b71 3097echo "$as_me:$LINENO: checking for $ac_word" >&5
9255ee31
EZ
3098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3099if test "${ac_cv_prog_AR+set}" = set; then
3100 echo $ECHO_N "(cached) $ECHO_C" >&6
c862e87b
JM
3101else
3102 if test -n "$AR"; then
3103 ac_cv_prog_AR="$AR" # Let the user override the test.
3104else
25ed0b71
KW
3105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106for as_dir in $PATH
3107do
3108 IFS=$as_save_IFS
3109 test -z "$as_dir" && as_dir=.
3110 for ac_exec_ext in '' $ac_executable_extensions; do
3111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3112 ac_cv_prog_AR=""
3113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 break 2
3115 fi
3116done
9255ee31
EZ
3117done
3118
3119 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3120fi
3121fi
3122AR=$ac_cv_prog_AR
3123if test -n "$AR"; then
25ed0b71 3124 echo "$as_me:$LINENO: result: $AR" >&5
9255ee31
EZ
3125echo "${ECHO_T}$AR" >&6
3126else
25ed0b71 3127 echo "$as_me:$LINENO: result: no" >&5
9255ee31
EZ
3128echo "${ECHO_T}no" >&6
3129fi
3130
3131test -n "$ARFLAGS" || ARFLAGS="cr"
3132if test -n "$ac_tool_prefix"; then
3133 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3134set dummy ${ac_tool_prefix}ranlib; ac_word=$2
25ed0b71 3135echo "$as_me:$LINENO: checking for $ac_word" >&5
9255ee31
EZ
3136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3137if test "${ac_cv_prog_RANLIB+set}" = set; then
3138 echo $ECHO_N "(cached) $ECHO_C" >&6
3139else
3140 if test -n "$RANLIB"; then
3141 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3142else
25ed0b71
KW
3143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144for as_dir in $PATH
3145do
3146 IFS=$as_save_IFS
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3150 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 break 2
3153 fi
3154done
9255ee31
EZ
3155done
3156
3157fi
3158fi
3159RANLIB=$ac_cv_prog_RANLIB
3160if test -n "$RANLIB"; then
25ed0b71 3161 echo "$as_me:$LINENO: result: $RANLIB" >&5
9255ee31
EZ
3162echo "${ECHO_T}$RANLIB" >&6
3163else
25ed0b71 3164 echo "$as_me:$LINENO: result: no" >&5
9255ee31
EZ
3165echo "${ECHO_T}no" >&6
3166fi
3167
3168fi
3169if test -z "$ac_cv_prog_RANLIB"; then
3170 ac_ct_RANLIB=$RANLIB
3171 # Extract the first word of "ranlib", so it can be a program name with args.
3172set dummy ranlib; ac_word=$2
25ed0b71 3173echo "$as_me:$LINENO: checking for $ac_word" >&5
9255ee31
EZ
3174echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3175if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
3177else
3178 if test -n "$ac_ct_RANLIB"; then
3179 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3180else
25ed0b71
KW
3181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182for as_dir in $PATH
3183do
3184 IFS=$as_save_IFS
3185 test -z "$as_dir" && as_dir=.
3186 for ac_exec_ext in '' $ac_executable_extensions; do
3187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3188 ac_cv_prog_ac_ct_RANLIB="ranlib"
3189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 break 2
3191 fi
3192done
9255ee31
EZ
3193done
3194
3195 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3196fi
3197fi
3198ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3199if test -n "$ac_ct_RANLIB"; then
25ed0b71 3200 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9255ee31
EZ
3201echo "${ECHO_T}$ac_ct_RANLIB" >&6
3202else
25ed0b71 3203 echo "$as_me:$LINENO: result: no" >&5
9255ee31
EZ
3204echo "${ECHO_T}no" >&6
3205fi
3206
3207 RANLIB=$ac_ct_RANLIB
3208else
3209 RANLIB="$ac_cv_prog_RANLIB"
3210fi
3211
9255ee31 3212
25ed0b71 3213MAKE_SHELL=/bin/sh
9255ee31 3214
9255ee31 3215
25ed0b71 3216echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9255ee31
EZ
3217echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3218if test "${ac_cv_c_const+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220else
3221 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
3222#line $LINENO "configure"
3223/* confdefs.h. */
3224_ACEOF
3225cat confdefs.h >>conftest.$ac_ext
3226cat >>conftest.$ac_ext <<_ACEOF
3227/* end confdefs.h. */
9255ee31
EZ
3228
3229int
3230main ()
3231{
3232/* FIXME: Include the comments suggested by Paul. */
3233#ifndef __cplusplus
3234 /* Ultrix mips cc rejects this. */
3235 typedef int charset[2];
3236 const charset x;
3237 /* SunOS 4.1.1 cc rejects this. */
3238 char const *const *ccp;
3239 char **p;
3240 /* NEC SVR4.0.2 mips cc rejects this. */
3241 struct point {int x, y;};
3242 static struct point const zero = {0,0};
3243 /* AIX XL C 1.02.0.0 rejects this.
3244 It does not let you subtract one const X* pointer from another in
3245 an arm of an if-expression whose if-part is not a constant
3246 expression */
3247 const char *g = "string";
3248 ccp = &g + (g ? g-g : 0);
3249 /* HPUX 7.0 cc rejects these. */
3250 ++ccp;
3251 p = (char**) ccp;
3252 ccp = (char const *const *) p;
3253 { /* SCO 3.2v4 cc rejects this. */
3254 char *t;
3255 char const *s = 0 ? (char *) 0 : (char const *) 0;
3256
25ed0b71
KW
3257 *t++ = 0;
3258 }
3259 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3260 int x[] = {25, 17};
3261 const int *foo = &x[0];
3262 ++foo;
3263 }
3264 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3265 typedef const int *iptr;
3266 iptr p = 0;
3267 ++p;
3268 }
3269 { /* AIX XL C 1.02.0.0 rejects this saying
3270 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3271 struct s { int j; const int *ap[3]; };
3272 struct s *b; b->j = 5;
3273 }
3274 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3275 const int foo = 10;
3276 }
3277#endif
9255ee31 3278
25ed0b71
KW
3279 ;
3280 return 0;
3281}
9255ee31
EZ
3282_ACEOF
3283rm -f conftest.$ac_objext
25ed0b71 3284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9255ee31
EZ
3285 (eval $ac_compile) 2>&5
3286 ac_status=$?
25ed0b71 3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
3288 (exit $ac_status); } &&
3289 { ac_try='test -s conftest.$ac_objext'
25ed0b71 3290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
3291 (eval $ac_try) 2>&5
3292 ac_status=$?
25ed0b71 3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31 3294 (exit $ac_status); }; }; then
25ed0b71 3295 ac_cv_c_const=yes
9255ee31
EZ
3296else
3297 echo "$as_me: failed program was:" >&5
25ed0b71
KW
3298sed 's/^/| /' conftest.$ac_ext >&5
3299
3300ac_cv_c_const=no
c862e87b 3301fi
9255ee31 3302rm -f conftest.$ac_objext conftest.$ac_ext
c862e87b 3303fi
25ed0b71
KW
3304echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3305echo "${ECHO_T}$ac_cv_c_const" >&6
3306if test $ac_cv_c_const = no; then
3307
3308cat >>confdefs.h <<\_ACEOF
3309#define const
3310_ACEOF
9255ee31 3311
c862e87b
JM
3312fi
3313
25ed0b71
KW
3314echo "$as_me:$LINENO: checking for function prototypes" >&5
3315echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3316if test "$ac_cv_prog_cc_stdc" != no; then
3317 echo "$as_me:$LINENO: result: yes" >&5
3318echo "${ECHO_T}yes" >&6
3319
3320cat >>confdefs.h <<\_ACEOF
3321#define PROTOTYPES 1
3322_ACEOF
3323
3324
3325cat >>confdefs.h <<\_ACEOF
3326#define __PROTOTYPES 1
3327_ACEOF
3328
3329else
3330 echo "$as_me:$LINENO: result: no" >&5
3331echo "${ECHO_T}no" >&6
3332fi
3333
3334
3335echo "$as_me:$LINENO: checking whether char is unsigned" >&5
9255ee31
EZ
3336echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
3337if test "${ac_cv_c_char_unsigned+set}" = set; then
3338 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65 3339else
9255ee31 3340 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
3341#line $LINENO "configure"
3342/* confdefs.h. */
3343_ACEOF
3344cat confdefs.h >>conftest.$ac_ext
3345cat >>conftest.$ac_ext <<_ACEOF
3346/* end confdefs.h. */
9255ee31
EZ
3347$ac_includes_default
3348int
3349main ()
3350{
25ed0b71
KW
3351static int test_array [1 - 2 * !(((char) -1) < 0)];
3352test_array [0] = 0
3353
9255ee31
EZ
3354 ;
3355 return 0;
3356}
3357_ACEOF
3358rm -f conftest.$ac_objext
25ed0b71 3359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9255ee31
EZ
3360 (eval $ac_compile) 2>&5
3361 ac_status=$?
25ed0b71 3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
3363 (exit $ac_status); } &&
3364 { ac_try='test -s conftest.$ac_objext'
25ed0b71 3365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
3366 (eval $ac_try) 2>&5
3367 ac_status=$?
25ed0b71 3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
3369 (exit $ac_status); }; }; then
3370 ac_cv_c_char_unsigned=no
d60d9f65 3371else
9255ee31 3372 echo "$as_me: failed program was:" >&5
25ed0b71
KW
3373sed 's/^/| /' conftest.$ac_ext >&5
3374
9255ee31 3375ac_cv_c_char_unsigned=yes
d60d9f65 3376fi
9255ee31 3377rm -f conftest.$ac_objext conftest.$ac_ext
d60d9f65 3378fi
25ed0b71 3379echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
9255ee31
EZ
3380echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
3381if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
25ed0b71 3382 cat >>confdefs.h <<\_ACEOF
9255ee31 3383#define __CHAR_UNSIGNED__ 1
25ed0b71 3384_ACEOF
d60d9f65 3385
9255ee31 3386fi
d60d9f65 3387
25ed0b71
KW
3388
3389echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9255ee31
EZ
3390echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3391if test "${ac_cv_type_signal+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65 3393else
9255ee31 3394 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
3395#line $LINENO "configure"
3396/* confdefs.h. */
3397_ACEOF
3398cat confdefs.h >>conftest.$ac_ext
3399cat >>conftest.$ac_ext <<_ACEOF
3400/* end confdefs.h. */
d60d9f65
SS
3401#include <sys/types.h>
3402#include <signal.h>
3403#ifdef signal
9255ee31 3404# undef signal
d60d9f65
SS
3405#endif
3406#ifdef __cplusplus
3407extern "C" void (*signal (int, void (*)(int)))(int);
3408#else
3409void (*signal ()) ();
3410#endif
3411
9255ee31
EZ
3412int
3413main ()
3414{
d60d9f65 3415int i;
9255ee31
EZ
3416 ;
3417 return 0;
3418}
3419_ACEOF
3420rm -f conftest.$ac_objext
25ed0b71 3421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9255ee31
EZ
3422 (eval $ac_compile) 2>&5
3423 ac_status=$?
25ed0b71 3424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
3425 (exit $ac_status); } &&
3426 { ac_try='test -s conftest.$ac_objext'
25ed0b71 3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
3428 (eval $ac_try) 2>&5
3429 ac_status=$?
25ed0b71 3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31 3431 (exit $ac_status); }; }; then
d60d9f65
SS
3432 ac_cv_type_signal=void
3433else
9255ee31 3434 echo "$as_me: failed program was:" >&5
25ed0b71
KW
3435sed 's/^/| /' conftest.$ac_ext >&5
3436
9255ee31 3437ac_cv_type_signal=int
d60d9f65 3438fi
9255ee31 3439rm -f conftest.$ac_objext conftest.$ac_ext
d60d9f65 3440fi
25ed0b71 3441echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9255ee31 3442echo "${ECHO_T}$ac_cv_type_signal" >&6
d60d9f65 3443
25ed0b71 3444cat >>confdefs.h <<_ACEOF
d60d9f65 3445#define RETSIGTYPE $ac_cv_type_signal
25ed0b71
KW
3446_ACEOF
3447
d60d9f65 3448
25ed0b71
KW
3449
3450echo "$as_me:$LINENO: checking for size_t" >&5
9255ee31
EZ
3451echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3452if test "${ac_cv_type_size_t+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3454else
3455 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
3456#line $LINENO "configure"
3457/* confdefs.h. */
3458_ACEOF
3459cat confdefs.h >>conftest.$ac_ext
3460cat >>conftest.$ac_ext <<_ACEOF
3461/* end confdefs.h. */
9255ee31
EZ
3462$ac_includes_default
3463int
3464main ()
3465{
3466if ((size_t *) 0)
3467 return 0;
3468if (sizeof (size_t))
3469 return 0;
3470 ;
3471 return 0;
3472}
3473_ACEOF
3474rm -f conftest.$ac_objext
25ed0b71 3475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9255ee31
EZ
3476 (eval $ac_compile) 2>&5
3477 ac_status=$?
25ed0b71 3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
3479 (exit $ac_status); } &&
3480 { ac_try='test -s conftest.$ac_objext'
25ed0b71 3481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
3482 (eval $ac_try) 2>&5
3483 ac_status=$?
25ed0b71 3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
3485 (exit $ac_status); }; }; then
3486 ac_cv_type_size_t=yes
3487else
3488 echo "$as_me: failed program was:" >&5
25ed0b71
KW
3489sed 's/^/| /' conftest.$ac_ext >&5
3490
9255ee31
EZ
3491ac_cv_type_size_t=no
3492fi
3493rm -f conftest.$ac_objext conftest.$ac_ext
3494fi
25ed0b71 3495echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9255ee31
EZ
3496echo "${ECHO_T}$ac_cv_type_size_t" >&6
3497if test $ac_cv_type_size_t = yes; then
3498 :
3499else
3500
25ed0b71 3501cat >>confdefs.h <<_ACEOF
9255ee31 3502#define size_t unsigned
25ed0b71 3503_ACEOF
9255ee31
EZ
3504
3505fi
3506
25ed0b71 3507echo "$as_me:$LINENO: checking for ssize_t" >&5
9255ee31
EZ
3508echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
3509if test "${ac_cv_type_ssize_t+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3511else
3512 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
3513#line $LINENO "configure"
3514/* confdefs.h. */
3515_ACEOF
3516cat confdefs.h >>conftest.$ac_ext
3517cat >>conftest.$ac_ext <<_ACEOF
3518/* end confdefs.h. */
9255ee31
EZ
3519$ac_includes_default
3520int
3521main ()
3522{
3523if ((ssize_t *) 0)
3524 return 0;
3525if (sizeof (ssize_t))
3526 return 0;
3527 ;
3528 return 0;
3529}
3530_ACEOF
3531rm -f conftest.$ac_objext
25ed0b71 3532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9255ee31
EZ
3533 (eval $ac_compile) 2>&5
3534 ac_status=$?
25ed0b71 3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
3536 (exit $ac_status); } &&
3537 { ac_try='test -s conftest.$ac_objext'
25ed0b71 3538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
3539 (eval $ac_try) 2>&5
3540 ac_status=$?
25ed0b71 3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
3542 (exit $ac_status); }; }; then
3543 ac_cv_type_ssize_t=yes
3544else
3545 echo "$as_me: failed program was:" >&5
25ed0b71
KW
3546sed 's/^/| /' conftest.$ac_ext >&5
3547
9255ee31
EZ
3548ac_cv_type_ssize_t=no
3549fi
3550rm -f conftest.$ac_objext conftest.$ac_ext
3551fi
25ed0b71 3552echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
9255ee31
EZ
3553echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
3554if test $ac_cv_type_ssize_t = yes; then
3555 :
3556else
3557
25ed0b71 3558cat >>confdefs.h <<_ACEOF
9255ee31 3559#define ssize_t int
25ed0b71 3560_ACEOF
d60d9f65 3561
9255ee31 3562fi
d60d9f65 3563
25ed0b71
KW
3564
3565echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9255ee31
EZ
3566echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
3567if test "${ac_cv_header_stat_broken+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65 3569else
9255ee31 3570 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
3571#line $LINENO "configure"
3572/* confdefs.h. */
3573_ACEOF
3574cat confdefs.h >>conftest.$ac_ext
3575cat >>conftest.$ac_ext <<_ACEOF
3576/* end confdefs.h. */
d60d9f65
SS
3577#include <sys/types.h>
3578#include <sys/stat.h>
3579
3580#if defined(S_ISBLK) && defined(S_IFDIR)
3581# if S_ISBLK (S_IFDIR)
3582You lose.
3583# endif
3584#endif
3585
3586#if defined(S_ISBLK) && defined(S_IFCHR)
3587# if S_ISBLK (S_IFCHR)
3588You lose.
3589# endif
3590#endif
3591
3592#if defined(S_ISLNK) && defined(S_IFREG)
3593# if S_ISLNK (S_IFREG)
3594You lose.
3595# endif
3596#endif
3597
3598#if defined(S_ISSOCK) && defined(S_IFREG)
3599# if S_ISSOCK (S_IFREG)
3600You lose.
3601# endif
3602#endif
3603
9255ee31 3604_ACEOF
d60d9f65 3605if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25ed0b71 3606 $EGREP "You lose" >/dev/null 2>&1; then
d60d9f65
SS
3607 ac_cv_header_stat_broken=yes
3608else
d60d9f65
SS
3609 ac_cv_header_stat_broken=no
3610fi
3611rm -f conftest*
3612
3613fi
25ed0b71 3614echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
9255ee31 3615echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
d60d9f65 3616if test $ac_cv_header_stat_broken = yes; then
9255ee31 3617
25ed0b71 3618cat >>confdefs.h <<\_ACEOF
d60d9f65 3619#define STAT_MACROS_BROKEN 1
25ed0b71 3620_ACEOF
d60d9f65
SS
3621
3622fi
3623
25ed0b71
KW
3624
3625
3626
3627
3628
d60d9f65 3629ac_header_dirent=no
9255ee31
EZ
3630for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3631 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25ed0b71 3632echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9255ee31
EZ
3633echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3634if eval "test \"\${$as_ac_Header+set}\" = set"; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3636else
3637 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
3638#line $LINENO "configure"
3639/* confdefs.h. */
3640_ACEOF
3641cat confdefs.h >>conftest.$ac_ext
3642cat >>conftest.$ac_ext <<_ACEOF
3643/* end confdefs.h. */
d60d9f65
SS
3644#include <sys/types.h>
3645#include <$ac_hdr>
9255ee31
EZ
3646
3647int
3648main ()
3649{
3650if ((DIR *) 0)
3651return 0;
3652 ;
3653 return 0;
3654}
3655_ACEOF
3656rm -f conftest.$ac_objext
25ed0b71 3657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9255ee31
EZ
3658 (eval $ac_compile) 2>&5
3659 ac_status=$?
25ed0b71 3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
3661 (exit $ac_status); } &&
3662 { ac_try='test -s conftest.$ac_objext'
25ed0b71 3663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
3664 (eval $ac_try) 2>&5
3665 ac_status=$?
25ed0b71 3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
3667 (exit $ac_status); }; }; then
3668 eval "$as_ac_Header=yes"
d60d9f65 3669else
9255ee31 3670 echo "$as_me: failed program was:" >&5
25ed0b71
KW
3671sed 's/^/| /' conftest.$ac_ext >&5
3672
9255ee31 3673eval "$as_ac_Header=no"
d60d9f65 3674fi
9255ee31 3675rm -f conftest.$ac_objext conftest.$ac_ext
d60d9f65 3676fi
25ed0b71 3677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9255ee31
EZ
3678echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3679if test `eval echo '${'$as_ac_Header'}'` = yes; then
25ed0b71 3680 cat >>confdefs.h <<_ACEOF
9255ee31 3681#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25ed0b71 3682_ACEOF
9255ee31
EZ
3683
3684ac_header_dirent=$ac_hdr; break
d60d9f65 3685fi
9255ee31 3686
d60d9f65
SS
3687done
3688# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3689if test $ac_header_dirent = dirent.h; then
25ed0b71
KW
3690 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3691echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3692if test "${ac_cv_search_opendir+set}" = set; then
9255ee31 3693 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65 3694else
25ed0b71
KW
3695 ac_func_search_save_LIBS=$LIBS
3696ac_cv_search_opendir=no
9255ee31 3697cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
3698#line $LINENO "configure"
3699/* confdefs.h. */
3700_ACEOF
3701cat confdefs.h >>conftest.$ac_ext
3702cat >>conftest.$ac_ext <<_ACEOF
3703/* end confdefs.h. */
9255ee31 3704
d60d9f65 3705/* Override any gcc2 internal prototype to avoid an error. */
9255ee31
EZ
3706#ifdef __cplusplus
3707extern "C"
3708#endif
d60d9f65 3709/* We use char because int might match the return type of a gcc2
9255ee31
EZ
3710 builtin and then its argument prototype would still apply. */
3711char opendir ();
3712int
3713main ()
3714{
3715opendir ();
3716 ;
3717 return 0;
3718}
3719_ACEOF
3720rm -f conftest.$ac_objext conftest$ac_exeext
25ed0b71 3721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9255ee31
EZ
3722 (eval $ac_link) 2>&5
3723 ac_status=$?
25ed0b71 3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
3725 (exit $ac_status); } &&
3726 { ac_try='test -s conftest$ac_exeext'
25ed0b71 3727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
3728 (eval $ac_try) 2>&5
3729 ac_status=$?
25ed0b71 3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31 3731 (exit $ac_status); }; }; then
25ed0b71 3732 ac_cv_search_opendir="none required"
d60d9f65 3733else
9255ee31 3734 echo "$as_me: failed program was:" >&5
25ed0b71
KW
3735sed 's/^/| /' conftest.$ac_ext >&5
3736
d60d9f65 3737fi
9255ee31 3738rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25ed0b71
KW
3739if test "$ac_cv_search_opendir" = no; then
3740 for ac_lib in dir; do
3741 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3742 cat >conftest.$ac_ext <<_ACEOF
3743#line $LINENO "configure"
3744/* confdefs.h. */
3745_ACEOF
3746cat confdefs.h >>conftest.$ac_ext
3747cat >>conftest.$ac_ext <<_ACEOF
3748/* end confdefs.h. */
3749
3750/* Override any gcc2 internal prototype to avoid an error. */
3751#ifdef __cplusplus
3752extern "C"
3753#endif
3754/* We use char because int might match the return type of a gcc2
3755 builtin and then its argument prototype would still apply. */
3756char opendir ();
3757int
3758main ()
3759{
3760opendir ();
3761 ;
3762 return 0;
3763}
3764_ACEOF
3765rm -f conftest.$ac_objext conftest$ac_exeext
3766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3767 (eval $ac_link) 2>&5
3768 ac_status=$?
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } &&
3771 { ac_try='test -s conftest$ac_exeext'
3772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773 (eval $ac_try) 2>&5
3774 ac_status=$?
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }; }; then
3777 ac_cv_search_opendir="-l$ac_lib"
3778break
3779else
3780 echo "$as_me: failed program was:" >&5
3781sed 's/^/| /' conftest.$ac_ext >&5
3782
3783fi
3784rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3785 done
3786fi
3787LIBS=$ac_func_search_save_LIBS
d60d9f65 3788fi
25ed0b71
KW
3789echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3790echo "${ECHO_T}$ac_cv_search_opendir" >&6
3791if test "$ac_cv_search_opendir" != no; then
3792 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3793
d60d9f65
SS
3794fi
3795
3796else
25ed0b71
KW
3797 echo "$as_me:$LINENO: checking for library containing opendir" >&5
3798echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3799if test "${ac_cv_search_opendir+set}" = set; then
9255ee31 3800 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65 3801else
25ed0b71
KW
3802 ac_func_search_save_LIBS=$LIBS
3803ac_cv_search_opendir=no
9255ee31 3804cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
3805#line $LINENO "configure"
3806/* confdefs.h. */
3807_ACEOF
3808cat confdefs.h >>conftest.$ac_ext
3809cat >>conftest.$ac_ext <<_ACEOF
3810/* end confdefs.h. */
9255ee31 3811
d60d9f65 3812/* Override any gcc2 internal prototype to avoid an error. */
9255ee31
EZ
3813#ifdef __cplusplus
3814extern "C"
3815#endif
d60d9f65 3816/* We use char because int might match the return type of a gcc2
9255ee31
EZ
3817 builtin and then its argument prototype would still apply. */
3818char opendir ();
3819int
3820main ()
3821{
3822opendir ();
3823 ;
3824 return 0;
3825}
3826_ACEOF
3827rm -f conftest.$ac_objext conftest$ac_exeext
25ed0b71 3828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9255ee31
EZ
3829 (eval $ac_link) 2>&5
3830 ac_status=$?
25ed0b71 3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
3832 (exit $ac_status); } &&
3833 { ac_try='test -s conftest$ac_exeext'
25ed0b71 3834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
3835 (eval $ac_try) 2>&5
3836 ac_status=$?
25ed0b71 3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31 3838 (exit $ac_status); }; }; then
25ed0b71 3839 ac_cv_search_opendir="none required"
d60d9f65 3840else
9255ee31 3841 echo "$as_me: failed program was:" >&5
25ed0b71
KW
3842sed 's/^/| /' conftest.$ac_ext >&5
3843
d60d9f65 3844fi
9255ee31 3845rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
25ed0b71
KW
3846if test "$ac_cv_search_opendir" = no; then
3847 for ac_lib in x; do
3848 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3849 cat >conftest.$ac_ext <<_ACEOF
3850#line $LINENO "configure"
3851/* confdefs.h. */
3852_ACEOF
3853cat confdefs.h >>conftest.$ac_ext
3854cat >>conftest.$ac_ext <<_ACEOF
3855/* end confdefs.h. */
3856
3857/* Override any gcc2 internal prototype to avoid an error. */
3858#ifdef __cplusplus
3859extern "C"
3860#endif
3861/* We use char because int might match the return type of a gcc2
3862 builtin and then its argument prototype would still apply. */
3863char opendir ();
3864int
3865main ()
3866{
3867opendir ();
3868 ;
3869 return 0;
3870}
3871_ACEOF
3872rm -f conftest.$ac_objext conftest$ac_exeext
3873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3874 (eval $ac_link) 2>&5
3875 ac_status=$?
3876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3877 (exit $ac_status); } &&
3878 { ac_try='test -s conftest$ac_exeext'
3879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3880 (eval $ac_try) 2>&5
3881 ac_status=$?
3882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 (exit $ac_status); }; }; then
3884 ac_cv_search_opendir="-l$ac_lib"
3885break
3886else
3887 echo "$as_me: failed program was:" >&5
3888sed 's/^/| /' conftest.$ac_ext >&5
3889
3890fi
3891rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3892 done
d60d9f65 3893fi
25ed0b71 3894LIBS=$ac_func_search_save_LIBS
d60d9f65 3895fi
25ed0b71
KW
3896echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3897echo "${ECHO_T}$ac_cv_search_opendir" >&6
3898if test "$ac_cv_search_opendir" != no; then
3899 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d60d9f65
SS
3900
3901fi
3902
25ed0b71
KW
3903fi
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
1b17e766 3918for ac_func in lstat memmove putenv select setenv setlocale \
9255ee31 3919 strcasecmp strpbrk tcgetattr vsnprintf isascii isxdigit
d60d9f65 3920do
9255ee31 3921as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25ed0b71 3922echo "$as_me:$LINENO: checking for $ac_func" >&5
9255ee31
EZ
3923echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3924if eval "test \"\${$as_ac_var+set}\" = set"; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65 3926else
9255ee31 3927 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
3928#line $LINENO "configure"
3929/* confdefs.h. */
3930_ACEOF
3931cat confdefs.h >>conftest.$ac_ext
3932cat >>conftest.$ac_ext <<_ACEOF
3933/* end confdefs.h. */
d60d9f65 3934/* System header to define __stub macros and hopefully few prototypes,
25ed0b71
KW
3935 which can conflict with char $ac_func (); below.
3936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3937 <limits.h> exists even on freestanding compilers. */
3938#ifdef __STDC__
3939# include <limits.h>
3940#else
3941# include <assert.h>
3942#endif
d60d9f65 3943/* Override any gcc2 internal prototype to avoid an error. */
9255ee31
EZ
3944#ifdef __cplusplus
3945extern "C"
25ed0b71 3946{
9255ee31 3947#endif
d60d9f65 3948/* We use char because int might match the return type of a gcc2
9255ee31
EZ
3949 builtin and then its argument prototype would still apply. */
3950char $ac_func ();
d60d9f65
SS
3951/* The GNU C library defines this for functions which it implements
3952 to always fail with ENOSYS. Some functions are actually named
3953 something starting with __ and the normal name is an alias. */
3954#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3955choke me
3956#else
25ed0b71
KW
3957char (*f) () = $ac_func;
3958#endif
3959#ifdef __cplusplus
3960}
d60d9f65
SS
3961#endif
3962
25ed0b71
KW
3963int
3964main ()
3965{
3966return f != $ac_func;
9255ee31
EZ
3967 ;
3968 return 0;
3969}
3970_ACEOF
3971rm -f conftest.$ac_objext conftest$ac_exeext
25ed0b71 3972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9255ee31
EZ
3973 (eval $ac_link) 2>&5
3974 ac_status=$?
25ed0b71 3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
3976 (exit $ac_status); } &&
3977 { ac_try='test -s conftest$ac_exeext'
25ed0b71 3978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
3979 (eval $ac_try) 2>&5
3980 ac_status=$?
25ed0b71 3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
3982 (exit $ac_status); }; }; then
3983 eval "$as_ac_var=yes"
d60d9f65 3984else
9255ee31 3985 echo "$as_me: failed program was:" >&5
25ed0b71
KW
3986sed 's/^/| /' conftest.$ac_ext >&5
3987
9255ee31 3988eval "$as_ac_var=no"
d60d9f65 3989fi
9255ee31 3990rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d60d9f65 3991fi
25ed0b71 3992echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9255ee31
EZ
3993echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3994if test `eval echo '${'$as_ac_var'}'` = yes; then
25ed0b71 3995 cat >>confdefs.h <<_ACEOF
9255ee31 3996#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25ed0b71 3997_ACEOF
9255ee31 3998
d60d9f65
SS
3999fi
4000done
4001
25ed0b71
KW
4002
4003echo "$as_me:$LINENO: checking for working strcoll" >&5
9255ee31
EZ
4004echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
4005if test "${ac_cv_func_strcoll_works+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65
SS
4007else
4008 if test "$cross_compiling" = yes; then
4009 ac_cv_func_strcoll_works=no
4010else
9255ee31 4011 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
4012#line $LINENO "configure"
4013/* confdefs.h. */
4014_ACEOF
4015cat confdefs.h >>conftest.$ac_ext
4016cat >>conftest.$ac_ext <<_ACEOF
4017/* end confdefs.h. */
9255ee31
EZ
4018$ac_includes_default
4019int
d60d9f65
SS
4020main ()
4021{
9255ee31
EZ
4022exit (strcoll ("abc", "def") >= 0 ||
4023 strcoll ("ABC", "DEF") >= 0 ||
4024 strcoll ("123", "456") >= 0)
4025 ;
4026 return 0;
d60d9f65 4027}
9255ee31
EZ
4028_ACEOF
4029rm -f conftest$ac_exeext
25ed0b71 4030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9255ee31
EZ
4031 (eval $ac_link) 2>&5
4032 ac_status=$?
25ed0b71 4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31 4034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25ed0b71 4035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
4036 (eval $ac_try) 2>&5
4037 ac_status=$?
25ed0b71 4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31 4039 (exit $ac_status); }; }; then
d60d9f65
SS
4040 ac_cv_func_strcoll_works=yes
4041else
9255ee31
EZ
4042 echo "$as_me: program exited with status $ac_status" >&5
4043echo "$as_me: failed program was:" >&5
25ed0b71
KW
4044sed 's/^/| /' conftest.$ac_ext >&5
4045
4046( exit $ac_status )
9255ee31 4047ac_cv_func_strcoll_works=no
d60d9f65 4048fi
25ed0b71 4049rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d60d9f65 4050fi
d60d9f65 4051fi
25ed0b71 4052echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
9255ee31 4053echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
d60d9f65 4054if test $ac_cv_func_strcoll_works = yes; then
9255ee31 4055
25ed0b71 4056cat >>confdefs.h <<\_ACEOF
d60d9f65 4057#define HAVE_STRCOLL 1
25ed0b71 4058_ACEOF
d60d9f65
SS
4059
4060fi
4061
25ed0b71
KW
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
9255ee31
EZ
4080for ac_header in unistd.h stdlib.h varargs.h stdarg.h string.h strings.h \
4081 limits.h sys/ptem.h sys/pte.h sys/stream.h sys/select.h \
4082 termcap.h termios.h termio.h sys/file.h locale.h memory.h
d60d9f65 4083do
9255ee31 4084as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25ed0b71
KW
4085if eval "test \"\${$as_ac_Header+set}\" = set"; then
4086 echo "$as_me:$LINENO: checking for $ac_header" >&5
9255ee31
EZ
4087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4088if eval "test \"\${$as_ac_Header+set}\" = set"; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
25ed0b71
KW
4090fi
4091echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4092echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9255ee31 4093else
25ed0b71
KW
4094 # Is the header compilable?
4095echo "$as_me:$LINENO: checking $ac_header usability" >&5
4096echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4097cat >conftest.$ac_ext <<_ACEOF
4098#line $LINENO "configure"
4099/* confdefs.h. */
4100_ACEOF
4101cat confdefs.h >>conftest.$ac_ext
4102cat >>conftest.$ac_ext <<_ACEOF
4103/* end confdefs.h. */
4104$ac_includes_default
4105#include <$ac_header>
4106_ACEOF
4107rm -f conftest.$ac_objext
4108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4109 (eval $ac_compile) 2>&5
4110 ac_status=$?
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
4113 { ac_try='test -s conftest.$ac_objext'
4114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4115 (eval $ac_try) 2>&5
4116 ac_status=$?
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; }; then
4119 ac_header_compiler=yes
4120else
4121 echo "$as_me: failed program was:" >&5
4122sed 's/^/| /' conftest.$ac_ext >&5
4123
4124ac_header_compiler=no
4125fi
4126rm -f conftest.$ac_objext conftest.$ac_ext
4127echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4128echo "${ECHO_T}$ac_header_compiler" >&6
4129
4130# Is the header present?
4131echo "$as_me:$LINENO: checking $ac_header presence" >&5
4132echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4133cat >conftest.$ac_ext <<_ACEOF
4134#line $LINENO "configure"
4135/* confdefs.h. */
4136_ACEOF
4137cat confdefs.h >>conftest.$ac_ext
4138cat >>conftest.$ac_ext <<_ACEOF
4139/* end confdefs.h. */
9255ee31
EZ
4140#include <$ac_header>
4141_ACEOF
25ed0b71 4142if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9255ee31
EZ
4143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4144 ac_status=$?
25ed0b71 4145 grep -v '^ *+' conftest.er1 >conftest.err
9255ee31
EZ
4146 rm -f conftest.er1
4147 cat conftest.err >&5
25ed0b71 4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
4149 (exit $ac_status); } >/dev/null; then
4150 if test -s conftest.err; then
4151 ac_cpp_err=$ac_c_preproc_warn_flag
4152 else
4153 ac_cpp_err=
4154 fi
4155else
4156 ac_cpp_err=yes
4157fi
4158if test -z "$ac_cpp_err"; then
25ed0b71
KW
4159 ac_header_preproc=yes
4160else
4161 echo "$as_me: failed program was:" >&5
4162sed 's/^/| /' conftest.$ac_ext >&5
4163
4164 ac_header_preproc=no
4165fi
4166rm -f conftest.err conftest.$ac_ext
4167echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4168echo "${ECHO_T}$ac_header_preproc" >&6
4169
4170# So? What about this header?
4171case $ac_header_compiler:$ac_header_preproc in
4172 yes:no )
4173 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4174echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4176echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4177 (
4178 cat <<\_ASBOX
4179## ------------------------------------ ##
4180## Report this to bug-autoconf@gnu.org. ##
4181## ------------------------------------ ##
4182_ASBOX
4183 ) |
4184 sed "s/^/$as_me: WARNING: /" >&2
4185 ;;
4186 no:yes )
4187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4188echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4190echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4192echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4193 (
4194 cat <<\_ASBOX
4195## ------------------------------------ ##
4196## Report this to bug-autoconf@gnu.org. ##
4197## ------------------------------------ ##
4198_ASBOX
4199 ) |
4200 sed "s/^/$as_me: WARNING: /" >&2
4201 ;;
4202esac
4203echo "$as_me:$LINENO: checking for $ac_header" >&5
4204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4205if eval "test \"\${$as_ac_Header+set}\" = set"; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65 4207else
25ed0b71 4208 eval "$as_ac_Header=$ac_header_preproc"
d60d9f65 4209fi
25ed0b71 4210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9255ee31 4211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25ed0b71
KW
4212
4213fi
9255ee31 4214if test `eval echo '${'$as_ac_Header'}'` = yes; then
25ed0b71 4215 cat >>confdefs.h <<_ACEOF
9255ee31 4216#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25ed0b71 4217_ACEOF
9255ee31 4218
d60d9f65 4219fi
25ed0b71 4220
d60d9f65
SS
4221done
4222
25ed0b71
KW
4223
4224
4225echo "$as_me:$LINENO: checking for type of signal functions" >&5
9255ee31
EZ
4226echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
4227if test "${bash_cv_signal_vintage+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65 4229else
9255ee31
EZ
4230
4231 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
4232#line $LINENO "configure"
4233/* confdefs.h. */
4234_ACEOF
4235cat confdefs.h >>conftest.$ac_ext
4236cat >>conftest.$ac_ext <<_ACEOF
4237/* end confdefs.h. */
d60d9f65 4238#include <signal.h>
9255ee31
EZ
4239int
4240main ()
4241{
d60d9f65
SS
4242
4243 sigset_t ss;
4244 struct sigaction sa;
4245 sigemptyset(&ss); sigsuspend(&ss);
4246 sigaction(SIGINT, &sa, (struct sigaction *) 0);
4247 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
9255ee31
EZ
4248
4249 ;
4250 return 0;
4251}
4252_ACEOF
4253rm -f conftest.$ac_objext conftest$ac_exeext
25ed0b71 4254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9255ee31
EZ
4255 (eval $ac_link) 2>&5
4256 ac_status=$?
25ed0b71 4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
4258 (exit $ac_status); } &&
4259 { ac_try='test -s conftest$ac_exeext'
25ed0b71 4260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
4261 (eval $ac_try) 2>&5
4262 ac_status=$?
25ed0b71 4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31 4264 (exit $ac_status); }; }; then
d60d9f65
SS
4265 bash_cv_signal_vintage=posix
4266else
9255ee31 4267 echo "$as_me: failed program was:" >&5
25ed0b71
KW
4268sed 's/^/| /' conftest.$ac_ext >&5
4269
9255ee31
EZ
4270
4271 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
4272#line $LINENO "configure"
4273/* confdefs.h. */
4274_ACEOF
4275cat confdefs.h >>conftest.$ac_ext
4276cat >>conftest.$ac_ext <<_ACEOF
4277/* end confdefs.h. */
d60d9f65 4278#include <signal.h>
9255ee31
EZ
4279int
4280main ()
4281{
d60d9f65
SS
4282
4283 int mask = sigmask(SIGINT);
4284 sigsetmask(mask); sigblock(mask); sigpause(mask);
9255ee31
EZ
4285
4286 ;
4287 return 0;
4288}
4289_ACEOF
4290rm -f conftest.$ac_objext conftest$ac_exeext
25ed0b71 4291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9255ee31
EZ
4292 (eval $ac_link) 2>&5
4293 ac_status=$?
25ed0b71 4294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
4295 (exit $ac_status); } &&
4296 { ac_try='test -s conftest$ac_exeext'
25ed0b71 4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
4298 (eval $ac_try) 2>&5
4299 ac_status=$?
25ed0b71 4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31 4301 (exit $ac_status); }; }; then
d60d9f65
SS
4302 bash_cv_signal_vintage=4.2bsd
4303else
9255ee31 4304 echo "$as_me: failed program was:" >&5
25ed0b71
KW
4305sed 's/^/| /' conftest.$ac_ext >&5
4306
9255ee31
EZ
4307
4308 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
4309#line $LINENO "configure"
4310/* confdefs.h. */
4311_ACEOF
4312cat confdefs.h >>conftest.$ac_ext
4313cat >>conftest.$ac_ext <<_ACEOF
4314/* end confdefs.h. */
d60d9f65
SS
4315
4316 #include <signal.h>
4317 RETSIGTYPE foo() { }
9255ee31
EZ
4318int
4319main ()
4320{
d60d9f65
SS
4321
4322 int mask = sigmask(SIGINT);
4323 sigset(SIGINT, foo); sigrelse(SIGINT);
4324 sighold(SIGINT); sigpause(SIGINT);
9255ee31
EZ
4325
4326 ;
4327 return 0;
4328}
4329_ACEOF
4330rm -f conftest.$ac_objext conftest$ac_exeext
25ed0b71 4331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9255ee31
EZ
4332 (eval $ac_link) 2>&5
4333 ac_status=$?
25ed0b71 4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
4335 (exit $ac_status); } &&
4336 { ac_try='test -s conftest$ac_exeext'
25ed0b71 4337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
4338 (eval $ac_try) 2>&5
4339 ac_status=$?
25ed0b71 4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31 4341 (exit $ac_status); }; }; then
d60d9f65
SS
4342 bash_cv_signal_vintage=svr3
4343else
9255ee31 4344 echo "$as_me: failed program was:" >&5
25ed0b71
KW
4345sed 's/^/| /' conftest.$ac_ext >&5
4346
9255ee31
EZ
4347bash_cv_signal_vintage=v7
4348
d60d9f65 4349fi
9255ee31
EZ
4350rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4351
d60d9f65 4352fi
9255ee31 4353rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d60d9f65
SS
4354
4355fi
9255ee31 4356rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d60d9f65
SS
4357
4358fi
4359
25ed0b71 4360echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
9255ee31 4361echo "${ECHO_T}$bash_cv_signal_vintage" >&6
d60d9f65 4362if test "$bash_cv_signal_vintage" = posix; then
25ed0b71 4363cat >>confdefs.h <<\_ACEOF
d60d9f65 4364#define HAVE_POSIX_SIGNALS 1
25ed0b71 4365_ACEOF
d60d9f65
SS
4366
4367elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
25ed0b71 4368cat >>confdefs.h <<\_ACEOF
d60d9f65 4369#define HAVE_BSD_SIGNALS 1
25ed0b71 4370_ACEOF
d60d9f65
SS
4371
4372elif test "$bash_cv_signal_vintage" = svr3; then
25ed0b71 4373cat >>confdefs.h <<\_ACEOF
d60d9f65 4374#define HAVE_USG_SIGHOLD 1
25ed0b71 4375_ACEOF
d60d9f65
SS
4376
4377fi
4378
25ed0b71
KW
4379
4380
4381echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
9255ee31
EZ
4382echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
4383if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65
SS
4385else
4386 if test "$cross_compiling" = yes; then
25ed0b71 4387 { echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
9255ee31 4388echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
d60d9f65
SS
4389 bash_cv_must_reinstall_sighandlers=no
4390
4391else
9255ee31 4392 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
4393#line $LINENO "configure"
4394/* confdefs.h. */
4395_ACEOF
4396cat confdefs.h >>conftest.$ac_ext
4397cat >>conftest.$ac_ext <<_ACEOF
4398/* end confdefs.h. */
d60d9f65
SS
4399
4400#include <signal.h>
4401#ifdef HAVE_UNISTD_H
4402#include <unistd.h>
4403#endif
4404
4405typedef RETSIGTYPE sigfunc();
4406
4407int nsigint;
4408
4409#ifdef HAVE_POSIX_SIGNALS
4410sigfunc *
4411set_signal_handler(sig, handler)
4412 int sig;
4413 sigfunc *handler;
4414{
4415 struct sigaction act, oact;
4416 act.sa_handler = handler;
4417 act.sa_flags = 0;
4418 sigemptyset (&act.sa_mask);
4419 sigemptyset (&oact.sa_mask);
4420 sigaction (sig, &act, &oact);
4421 return (oact.sa_handler);
4422}
4423#else
4424#define set_signal_handler(s, h) signal(s, h)
4425#endif
4426
4427RETSIGTYPE
4428sigint(s)
4429int s;
4430{
4431 nsigint++;
4432}
4433
4434main()
4435{
4436 nsigint = 0;
4437 set_signal_handler(SIGINT, sigint);
4438 kill((int)getpid(), SIGINT);
4439 kill((int)getpid(), SIGINT);
4440 exit(nsigint != 2);
4441}
4442
9255ee31
EZ
4443_ACEOF
4444rm -f conftest$ac_exeext
25ed0b71 4445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9255ee31
EZ
4446 (eval $ac_link) 2>&5
4447 ac_status=$?
25ed0b71 4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31 4449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25ed0b71 4450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
4451 (eval $ac_try) 2>&5
4452 ac_status=$?
25ed0b71 4453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31 4454 (exit $ac_status); }; }; then
d60d9f65
SS
4455 bash_cv_must_reinstall_sighandlers=no
4456else
9255ee31
EZ
4457 echo "$as_me: program exited with status $ac_status" >&5
4458echo "$as_me: failed program was:" >&5
25ed0b71
KW
4459sed 's/^/| /' conftest.$ac_ext >&5
4460
4461( exit $ac_status )
9255ee31 4462bash_cv_must_reinstall_sighandlers=yes
d60d9f65 4463fi
25ed0b71 4464rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d60d9f65 4465fi
d60d9f65
SS
4466fi
4467
25ed0b71 4468echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
9255ee31 4469echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
d60d9f65 4470if test $bash_cv_must_reinstall_sighandlers = yes; then
25ed0b71 4471cat >>confdefs.h <<\_ACEOF
d60d9f65 4472#define MUST_REINSTALL_SIGHANDLERS 1
25ed0b71 4473_ACEOF
d60d9f65
SS
4474
4475fi
4476
25ed0b71
KW
4477
4478
4479echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
9255ee31
EZ
4480echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
4481if test "${bash_cv_func_sigsetjmp+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65
SS
4483else
4484 if test "$cross_compiling" = yes; then
25ed0b71 4485 { echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
9255ee31 4486echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
d60d9f65
SS
4487 bash_cv_func_sigsetjmp=missing
4488
4489else
9255ee31 4490 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
4491#line $LINENO "configure"
4492/* confdefs.h. */
4493_ACEOF
4494cat confdefs.h >>conftest.$ac_ext
4495cat >>conftest.$ac_ext <<_ACEOF
4496/* end confdefs.h. */
d60d9f65
SS
4497
4498#ifdef HAVE_UNISTD_H
4499#include <unistd.h>
4500#endif
4501#include <sys/types.h>
4502#include <signal.h>
4503#include <setjmp.h>
4504
4505main()
4506{
4507#if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
4508exit (1);
4509#else
4510
4511int code;
4512sigset_t set, oset;
4513sigjmp_buf xx;
4514
4515/* get the mask */
4516sigemptyset(&set);
4517sigemptyset(&oset);
4518sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
4519sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
4520
4521/* save it */
4522code = sigsetjmp(xx, 1);
4523if (code)
4524 exit(0); /* could get sigmask and compare to oset here. */
4525
4526/* change it */
4527sigaddset(&set, SIGINT);
4528sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
4529
4530/* and siglongjmp */
4531siglongjmp(xx, 10);
4532exit(1);
4533#endif
4534}
9255ee31
EZ
4535_ACEOF
4536rm -f conftest$ac_exeext
25ed0b71 4537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9255ee31
EZ
4538 (eval $ac_link) 2>&5
4539 ac_status=$?
25ed0b71 4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31 4541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25ed0b71 4542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
4543 (eval $ac_try) 2>&5
4544 ac_status=$?
25ed0b71 4545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31 4546 (exit $ac_status); }; }; then
d60d9f65
SS
4547 bash_cv_func_sigsetjmp=present
4548else
9255ee31
EZ
4549 echo "$as_me: program exited with status $ac_status" >&5
4550echo "$as_me: failed program was:" >&5
25ed0b71
KW
4551sed 's/^/| /' conftest.$ac_ext >&5
4552
4553( exit $ac_status )
9255ee31 4554bash_cv_func_sigsetjmp=missing
d60d9f65 4555fi
25ed0b71 4556rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d60d9f65 4557fi
d60d9f65
SS
4558fi
4559
25ed0b71 4560echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
9255ee31 4561echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
d60d9f65 4562if test $bash_cv_func_sigsetjmp = present; then
25ed0b71 4563cat >>confdefs.h <<\_ACEOF
d60d9f65 4564#define HAVE_POSIX_SIGSETJMP 1
25ed0b71 4565_ACEOF
d60d9f65
SS
4566
4567fi
4568
25ed0b71 4569echo "$as_me:$LINENO: checking for lstat" >&5
9255ee31
EZ
4570echo $ECHO_N "checking for lstat... $ECHO_C" >&6
4571if test "${bash_cv_func_lstat+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65 4573else
9255ee31 4574 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
4575#line $LINENO "configure"
4576/* confdefs.h. */
4577_ACEOF
4578cat confdefs.h >>conftest.$ac_ext
4579cat >>conftest.$ac_ext <<_ACEOF
4580/* end confdefs.h. */
d60d9f65
SS
4581
4582#include <sys/types.h>
4583#include <sys/stat.h>
4584
9255ee31
EZ
4585int
4586main ()
4587{
4588 lstat(".",(struct stat *)0);
4589 ;
4590 return 0;
4591}
4592_ACEOF
4593rm -f conftest.$ac_objext conftest$ac_exeext
25ed0b71 4594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9255ee31
EZ
4595 (eval $ac_link) 2>&5
4596 ac_status=$?
25ed0b71 4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
4598 (exit $ac_status); } &&
4599 { ac_try='test -s conftest$ac_exeext'
25ed0b71 4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
4601 (eval $ac_try) 2>&5
4602 ac_status=$?
25ed0b71 4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31 4604 (exit $ac_status); }; }; then
d60d9f65
SS
4605 bash_cv_func_lstat=yes
4606else
9255ee31 4607 echo "$as_me: failed program was:" >&5
25ed0b71
KW
4608sed 's/^/| /' conftest.$ac_ext >&5
4609
9255ee31 4610bash_cv_func_lstat=no
d60d9f65 4611fi
9255ee31 4612rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d60d9f65 4613fi
25ed0b71 4614echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
9255ee31 4615echo "${ECHO_T}$bash_cv_func_lstat" >&6
d60d9f65 4616if test $bash_cv_func_lstat = yes; then
25ed0b71 4617 cat >>confdefs.h <<\_ACEOF
d60d9f65 4618#define HAVE_LSTAT 1
25ed0b71 4619_ACEOF
d60d9f65
SS
4620
4621fi
4622
25ed0b71
KW
4623
4624echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
9255ee31
EZ
4625echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
4626if test "${bash_cv_func_strcoll_broken+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65
SS
4628else
4629 if test "$cross_compiling" = yes; then
25ed0b71 4630 { echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
9255ee31 4631echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
d60d9f65
SS
4632 bash_cv_func_strcoll_broken=no
4633
4634else
9255ee31 4635 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
4636#line $LINENO "configure"
4637/* confdefs.h. */
4638_ACEOF
4639cat confdefs.h >>conftest.$ac_ext
4640cat >>conftest.$ac_ext <<_ACEOF
4641/* end confdefs.h. */
d60d9f65
SS
4642
4643#include <stdio.h>
4644#if defined (HAVE_LOCALE_H)
4645#include <locale.h>
4646#endif
4647
4648main(c, v)
4649int c;
4650char *v[];
4651{
4652 int r1, r2;
4653 char *deflocale, *defcoll;
4654
4655#ifdef HAVE_SETLOCALE
4656 deflocale = setlocale(LC_ALL, "");
4657 defcoll = setlocale(LC_COLLATE, "");
4658#endif
4659
4660#ifdef HAVE_STRCOLL
4661 /* These two values are taken from tests/glob-test. */
4662 r1 = strcoll("abd", "aXd");
4663#else
4664 r1 = 0;
4665#endif
9255ee31
EZ
4666 r2 = strcmp("abd", "aXd");
4667
4668 /* These two should both be greater than 0. It is permissible for
4669 a system to return different values, as long as the sign is the
4670 same. */
4671
4672 /* Exit with 1 (failure) if these two values are both > 0, since
4673 this tests whether strcoll(3) is broken with respect to strcmp(3)
4674 in the default locale. */
4675 exit (r1 > 0 && r2 > 0);
4676}
4677
4678_ACEOF
4679rm -f conftest$ac_exeext
25ed0b71 4680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9255ee31
EZ
4681 (eval $ac_link) 2>&5
4682 ac_status=$?
25ed0b71 4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31 4684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25ed0b71 4685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
4686 (eval $ac_try) 2>&5
4687 ac_status=$?
25ed0b71 4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
4689 (exit $ac_status); }; }; then
4690 bash_cv_func_strcoll_broken=yes
4691else
4692 echo "$as_me: program exited with status $ac_status" >&5
4693echo "$as_me: failed program was:" >&5
25ed0b71
KW
4694sed 's/^/| /' conftest.$ac_ext >&5
4695
4696( exit $ac_status )
9255ee31
EZ
4697bash_cv_func_strcoll_broken=no
4698fi
25ed0b71 4699rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9255ee31
EZ
4700fi
4701fi
4702
25ed0b71 4703echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
9255ee31
EZ
4704echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
4705if test $bash_cv_func_strcoll_broken = yes; then
25ed0b71 4706cat >>confdefs.h <<\_ACEOF
9255ee31 4707#define STRCOLL_BROKEN 1
25ed0b71 4708_ACEOF
9255ee31
EZ
4709
4710fi
4711
25ed0b71
KW
4712
4713echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
9255ee31
EZ
4714echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
4715if test "${bash_cv_getpw_declared+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4717else
4718 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
4719#line $LINENO "configure"
4720/* confdefs.h. */
4721_ACEOF
4722cat confdefs.h >>conftest.$ac_ext
4723cat >>conftest.$ac_ext <<_ACEOF
4724/* end confdefs.h. */
9255ee31
EZ
4725
4726#include <sys/types.h>
4727#ifdef HAVE_UNISTD_H
4728# include <unistd.h>
4729#endif
4730#include <pwd.h>
4731
4732_ACEOF
4733if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25ed0b71 4734 $EGREP "getpwuid" >/dev/null 2>&1; then
9255ee31
EZ
4735 bash_cv_getpw_declared=yes
4736else
4737 bash_cv_getpw_declared=no
4738fi
4739rm -f conftest*
4740
4741fi
4742
25ed0b71 4743echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
9255ee31
EZ
4744echo "${ECHO_T}$bash_cv_getpw_declared" >&6
4745if test $bash_cv_getpw_declared = yes; then
25ed0b71 4746cat >>confdefs.h <<\_ACEOF
9255ee31 4747#define HAVE_GETPW_DECLS 1
25ed0b71 4748_ACEOF
9255ee31
EZ
4749
4750fi
4751
9255ee31 4752
25ed0b71 4753echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
9255ee31
EZ
4754echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
4755if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
4756 echo $ECHO_N "(cached) $ECHO_C" >&6
4757else
4758 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
4759#line $LINENO "configure"
4760/* confdefs.h. */
4761_ACEOF
4762cat confdefs.h >>conftest.$ac_ext
4763cat >>conftest.$ac_ext <<_ACEOF
4764/* end confdefs.h. */
9255ee31
EZ
4765#include <sys/types.h>
4766#include <termios.h>
4767#ifdef TIOCGWINSZ
4768 yes
4769#endif
d60d9f65 4770
9255ee31
EZ
4771_ACEOF
4772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25ed0b71 4773 $EGREP "yes" >/dev/null 2>&1; then
9255ee31
EZ
4774 ac_cv_sys_tiocgwinsz_in_termios_h=yes
4775else
4776 ac_cv_sys_tiocgwinsz_in_termios_h=no
4777fi
4778rm -f conftest*
d60d9f65 4779
9255ee31 4780fi
25ed0b71 4781echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
9255ee31 4782echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
d60d9f65 4783
9255ee31 4784if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
25ed0b71 4785 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
9255ee31
EZ
4786echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
4787if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4789else
4790 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
4791#line $LINENO "configure"
4792/* confdefs.h. */
4793_ACEOF
4794cat confdefs.h >>conftest.$ac_ext
4795cat >>conftest.$ac_ext <<_ACEOF
4796/* end confdefs.h. */
9255ee31
EZ
4797#include <sys/types.h>
4798#include <sys/ioctl.h>
4799#ifdef TIOCGWINSZ
4800 yes
4801#endif
4802
4803_ACEOF
4804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25ed0b71 4805 $EGREP "yes" >/dev/null 2>&1; then
9255ee31
EZ
4806 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
4807else
4808 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
d60d9f65 4809fi
9255ee31 4810rm -f conftest*
d60d9f65
SS
4811
4812fi
25ed0b71 4813echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
9255ee31 4814echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
d60d9f65 4815
9255ee31
EZ
4816 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
4817
25ed0b71 4818cat >>confdefs.h <<\_ACEOF
9255ee31 4819#define GWINSZ_IN_SYS_IOCTL 1
25ed0b71 4820_ACEOF
d60d9f65 4821
9255ee31 4822 fi
d60d9f65
SS
4823fi
4824
25ed0b71
KW
4825
4826echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
9255ee31
EZ
4827echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
4828if test "${bash_cv_void_sighandler+set}" = set; then
4829 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65 4830else
9255ee31 4831 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
4832#line $LINENO "configure"
4833/* confdefs.h. */
4834_ACEOF
4835cat confdefs.h >>conftest.$ac_ext
4836cat >>conftest.$ac_ext <<_ACEOF
4837/* end confdefs.h. */
d60d9f65
SS
4838#include <sys/types.h>
4839#include <signal.h>
4840#ifdef signal
4841#undef signal
4842#endif
4843#ifdef __cplusplus
4844extern "C"
4845#endif
4846void (*signal ()) ();
9255ee31
EZ
4847int
4848main ()
4849{
d60d9f65 4850int i;
9255ee31
EZ
4851 ;
4852 return 0;
4853}
4854_ACEOF
4855rm -f conftest.$ac_objext
25ed0b71 4856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9255ee31
EZ
4857 (eval $ac_compile) 2>&5
4858 ac_status=$?
25ed0b71 4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
4860 (exit $ac_status); } &&
4861 { ac_try='test -s conftest.$ac_objext'
25ed0b71 4862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
4863 (eval $ac_try) 2>&5
4864 ac_status=$?
25ed0b71 4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31 4866 (exit $ac_status); }; }; then
d60d9f65
SS
4867 bash_cv_void_sighandler=yes
4868else
9255ee31 4869 echo "$as_me: failed program was:" >&5
25ed0b71
KW
4870sed 's/^/| /' conftest.$ac_ext >&5
4871
9255ee31 4872bash_cv_void_sighandler=no
d60d9f65 4873fi
9255ee31 4874rm -f conftest.$ac_objext conftest.$ac_ext
d60d9f65 4875fi
25ed0b71 4876echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
9255ee31 4877echo "${ECHO_T}$bash_cv_void_sighandler" >&6
d60d9f65 4878if test $bash_cv_void_sighandler = yes; then
25ed0b71 4879cat >>confdefs.h <<\_ACEOF
d60d9f65 4880#define VOID_SIGHANDLER 1
25ed0b71 4881_ACEOF
d60d9f65
SS
4882
4883fi
4884
25ed0b71 4885echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
9255ee31
EZ
4886echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
4887if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65 4889else
9255ee31 4890 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
4891#line $LINENO "configure"
4892/* confdefs.h. */
4893_ACEOF
4894cat confdefs.h >>conftest.$ac_ext
4895cat >>conftest.$ac_ext <<_ACEOF
4896/* end confdefs.h. */
d60d9f65
SS
4897#include <sys/types.h>
4898#include <sys/ioctl.h>
9255ee31
EZ
4899int
4900main ()
4901{
d60d9f65 4902int x = TIOCSTAT;
9255ee31
EZ
4903 ;
4904 return 0;
4905}
4906_ACEOF
4907rm -f conftest.$ac_objext
25ed0b71 4908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9255ee31
EZ
4909 (eval $ac_compile) 2>&5
4910 ac_status=$?
25ed0b71 4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
4912 (exit $ac_status); } &&
4913 { ac_try='test -s conftest.$ac_objext'
25ed0b71 4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
4915 (eval $ac_try) 2>&5
4916 ac_status=$?
25ed0b71 4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31 4918 (exit $ac_status); }; }; then
d60d9f65
SS
4919 bash_cv_tiocstat_in_ioctl=yes
4920else
9255ee31 4921 echo "$as_me: failed program was:" >&5
25ed0b71
KW
4922sed 's/^/| /' conftest.$ac_ext >&5
4923
9255ee31 4924bash_cv_tiocstat_in_ioctl=no
d60d9f65 4925fi
9255ee31 4926rm -f conftest.$ac_objext conftest.$ac_ext
d60d9f65
SS
4927fi
4928
25ed0b71 4929echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
9255ee31
EZ
4930echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
4931if test $bash_cv_tiocstat_in_ioctl = yes; then
25ed0b71 4932cat >>confdefs.h <<\_ACEOF
d60d9f65 4933#define TIOCSTAT_IN_SYS_IOCTL 1
25ed0b71 4934_ACEOF
d60d9f65
SS
4935
4936fi
4937
25ed0b71 4938echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
9255ee31
EZ
4939echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
4940if test "${bash_cv_fionread_in_ioctl+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65 4942else
9255ee31 4943 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
4944#line $LINENO "configure"
4945/* confdefs.h. */
4946_ACEOF
4947cat confdefs.h >>conftest.$ac_ext
4948cat >>conftest.$ac_ext <<_ACEOF
4949/* end confdefs.h. */
d60d9f65
SS
4950#include <sys/types.h>
4951#include <sys/ioctl.h>
9255ee31
EZ
4952int
4953main ()
4954{
d60d9f65 4955int x = FIONREAD;
9255ee31
EZ
4956 ;
4957 return 0;
4958}
4959_ACEOF
4960rm -f conftest.$ac_objext
25ed0b71 4961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9255ee31
EZ
4962 (eval $ac_compile) 2>&5
4963 ac_status=$?
25ed0b71 4964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
4965 (exit $ac_status); } &&
4966 { ac_try='test -s conftest.$ac_objext'
25ed0b71 4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
4968 (eval $ac_try) 2>&5
4969 ac_status=$?
25ed0b71 4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31 4971 (exit $ac_status); }; }; then
d60d9f65
SS
4972 bash_cv_fionread_in_ioctl=yes
4973else
9255ee31 4974 echo "$as_me: failed program was:" >&5
25ed0b71
KW
4975sed 's/^/| /' conftest.$ac_ext >&5
4976
9255ee31 4977bash_cv_fionread_in_ioctl=no
d60d9f65 4978fi
9255ee31 4979rm -f conftest.$ac_objext conftest.$ac_ext
d60d9f65
SS
4980fi
4981
25ed0b71 4982echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
9255ee31
EZ
4983echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
4984if test $bash_cv_fionread_in_ioctl = yes; then
25ed0b71 4985cat >>confdefs.h <<\_ACEOF
d60d9f65 4986#define FIONREAD_IN_SYS_IOCTL 1
25ed0b71 4987_ACEOF
d60d9f65
SS
4988
4989fi
4990
25ed0b71 4991echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
9255ee31
EZ
4992echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
4993if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65 4995else
9255ee31 4996 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
4997#line $LINENO "configure"
4998/* confdefs.h. */
4999_ACEOF
5000cat confdefs.h >>conftest.$ac_ext
5001cat >>conftest.$ac_ext <<_ACEOF
5002/* end confdefs.h. */
d60d9f65 5003#include <sys/types.h>
9255ee31
EZ
5004int
5005main ()
5006{
d60d9f65 5007speed_t x;
9255ee31
EZ
5008 ;
5009 return 0;
5010}
5011_ACEOF
5012rm -f conftest.$ac_objext
25ed0b71 5013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9255ee31
EZ
5014 (eval $ac_compile) 2>&5
5015 ac_status=$?
25ed0b71 5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
5017 (exit $ac_status); } &&
5018 { ac_try='test -s conftest.$ac_objext'
25ed0b71 5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
25ed0b71 5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31 5023 (exit $ac_status); }; }; then
d60d9f65
SS
5024 bash_cv_speed_t_in_sys_types=yes
5025else
9255ee31 5026 echo "$as_me: failed program was:" >&5
25ed0b71
KW
5027sed 's/^/| /' conftest.$ac_ext >&5
5028
9255ee31 5029bash_cv_speed_t_in_sys_types=no
d60d9f65 5030fi
9255ee31 5031rm -f conftest.$ac_objext conftest.$ac_ext
d60d9f65
SS
5032fi
5033
25ed0b71 5034echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
9255ee31
EZ
5035echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
5036if test $bash_cv_speed_t_in_sys_types = yes; then
25ed0b71 5037cat >>confdefs.h <<\_ACEOF
d60d9f65 5038#define SPEED_T_IN_SYS_TYPES 1
25ed0b71 5039_ACEOF
d60d9f65
SS
5040
5041fi
5042
25ed0b71 5043echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
9255ee31
EZ
5044echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
5045if test "${bash_cv_struct_winsize_header+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65 5047else
9255ee31 5048 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
5049#line $LINENO "configure"
5050/* confdefs.h. */
5051_ACEOF
5052cat confdefs.h >>conftest.$ac_ext
5053cat >>conftest.$ac_ext <<_ACEOF
5054/* end confdefs.h. */
d60d9f65
SS
5055#include <sys/types.h>
5056#include <sys/ioctl.h>
9255ee31
EZ
5057int
5058main ()
5059{
d60d9f65 5060struct winsize x;
9255ee31
EZ
5061 ;
5062 return 0;
5063}
5064_ACEOF
5065rm -f conftest.$ac_objext
25ed0b71 5066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9255ee31
EZ
5067 (eval $ac_compile) 2>&5
5068 ac_status=$?
25ed0b71 5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
5070 (exit $ac_status); } &&
5071 { ac_try='test -s conftest.$ac_objext'
25ed0b71 5072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
5073 (eval $ac_try) 2>&5
5074 ac_status=$?
25ed0b71 5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31 5076 (exit $ac_status); }; }; then
d60d9f65
SS
5077 bash_cv_struct_winsize_header=ioctl_h
5078else
9255ee31 5079 echo "$as_me: failed program was:" >&5
25ed0b71
KW
5080sed 's/^/| /' conftest.$ac_ext >&5
5081
9255ee31 5082cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
5083#line $LINENO "configure"
5084/* confdefs.h. */
5085_ACEOF
5086cat confdefs.h >>conftest.$ac_ext
5087cat >>conftest.$ac_ext <<_ACEOF
5088/* end confdefs.h. */
d60d9f65
SS
5089#include <sys/types.h>
5090#include <termios.h>
9255ee31
EZ
5091int
5092main ()
5093{
d60d9f65 5094struct winsize x;
9255ee31
EZ
5095 ;
5096 return 0;
5097}
5098_ACEOF
5099rm -f conftest.$ac_objext
25ed0b71 5100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9255ee31
EZ
5101 (eval $ac_compile) 2>&5
5102 ac_status=$?
25ed0b71 5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
5104 (exit $ac_status); } &&
5105 { ac_try='test -s conftest.$ac_objext'
25ed0b71 5106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
5107 (eval $ac_try) 2>&5
5108 ac_status=$?
25ed0b71 5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31 5110 (exit $ac_status); }; }; then
d60d9f65
SS
5111 bash_cv_struct_winsize_header=termios_h
5112else
9255ee31 5113 echo "$as_me: failed program was:" >&5
25ed0b71
KW
5114sed 's/^/| /' conftest.$ac_ext >&5
5115
9255ee31 5116bash_cv_struct_winsize_header=other
d60d9f65 5117fi
9255ee31 5118rm -f conftest.$ac_objext conftest.$ac_ext
d60d9f65
SS
5119
5120fi
9255ee31 5121rm -f conftest.$ac_objext conftest.$ac_ext
d60d9f65
SS
5122fi
5123
5124if test $bash_cv_struct_winsize_header = ioctl_h; then
25ed0b71 5125 echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
9255ee31 5126echo "${ECHO_T}sys/ioctl.h" >&6
25ed0b71 5127 cat >>confdefs.h <<\_ACEOF
d60d9f65 5128#define STRUCT_WINSIZE_IN_SYS_IOCTL 1
25ed0b71 5129_ACEOF
d60d9f65
SS
5130
5131elif test $bash_cv_struct_winsize_header = termios_h; then
25ed0b71 5132 echo "$as_me:$LINENO: result: termios.h" >&5
9255ee31 5133echo "${ECHO_T}termios.h" >&6
25ed0b71 5134 cat >>confdefs.h <<\_ACEOF
d60d9f65 5135#define STRUCT_WINSIZE_IN_TERMIOS 1
25ed0b71 5136_ACEOF
d60d9f65
SS
5137
5138else
25ed0b71 5139 echo "$as_me:$LINENO: result: not found" >&5
9255ee31 5140echo "${ECHO_T}not found" >&6
d60d9f65
SS
5141fi
5142
25ed0b71
KW
5143
5144echo "$as_me:$LINENO: checking if struct dirent has a d_ino member" >&5
9255ee31
EZ
5145echo $ECHO_N "checking if struct dirent has a d_ino member... $ECHO_C" >&6
5146if test "${bash_cv_dirent_has_dino+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65 5148else
9255ee31 5149 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
5150#line $LINENO "configure"
5151/* confdefs.h. */
5152_ACEOF
5153cat confdefs.h >>conftest.$ac_ext
5154cat >>conftest.$ac_ext <<_ACEOF
5155/* end confdefs.h. */
d60d9f65
SS
5156
5157#include <stdio.h>
5158#include <sys/types.h>
5159#ifdef HAVE_UNISTD_H
5160# include <unistd.h>
5161#endif /* HAVE_UNISTD_H */
5162#if defined(HAVE_DIRENT_H)
5163# include <dirent.h>
5164#else
5165# define dirent direct
5166# ifdef HAVE_SYS_NDIR_H
5167# include <sys/ndir.h>
5168# endif /* SYSNDIR */
5169# ifdef HAVE_SYS_DIR_H
5170# include <sys/dir.h>
5171# endif /* SYSDIR */
5172# ifdef HAVE_NDIR_H
5173# include <ndir.h>
5174# endif
5175#endif /* HAVE_DIRENT_H */
5176
9255ee31
EZ
5177int
5178main ()
5179{
d60d9f65
SS
5180
5181struct dirent d; int z; z = d.d_ino;
5182
9255ee31
EZ
5183 ;
5184 return 0;
5185}
5186_ACEOF
5187rm -f conftest.$ac_objext
25ed0b71 5188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9255ee31
EZ
5189 (eval $ac_compile) 2>&5
5190 ac_status=$?
25ed0b71 5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
5192 (exit $ac_status); } &&
5193 { ac_try='test -s conftest.$ac_objext'
25ed0b71 5194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
5195 (eval $ac_try) 2>&5
5196 ac_status=$?
25ed0b71 5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31 5198 (exit $ac_status); }; }; then
d60d9f65
SS
5199 bash_cv_dirent_has_dino=yes
5200else
9255ee31 5201 echo "$as_me: failed program was:" >&5
25ed0b71
KW
5202sed 's/^/| /' conftest.$ac_ext >&5
5203
9255ee31 5204bash_cv_dirent_has_dino=no
d60d9f65 5205fi
9255ee31 5206rm -f conftest.$ac_objext conftest.$ac_ext
d60d9f65
SS
5207fi
5208
25ed0b71 5209echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
9255ee31 5210echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6
d60d9f65 5211if test $bash_cv_dirent_has_dino = yes; then
25ed0b71 5212cat >>confdefs.h <<\_ACEOF
d60d9f65 5213#define STRUCT_DIRENT_HAS_D_INO 1
25ed0b71 5214_ACEOF
d60d9f65
SS
5215
5216fi
5217
25ed0b71
KW
5218
5219echo "$as_me:$LINENO: checking if struct dirent has a d_fileno member" >&5
9255ee31
EZ
5220echo $ECHO_N "checking if struct dirent has a d_fileno member... $ECHO_C" >&6
5221if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65 5223else
9255ee31 5224 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
5225#line $LINENO "configure"
5226/* confdefs.h. */
5227_ACEOF
5228cat confdefs.h >>conftest.$ac_ext
5229cat >>conftest.$ac_ext <<_ACEOF
5230/* end confdefs.h. */
d60d9f65
SS
5231
5232#include <stdio.h>
5233#include <sys/types.h>
5234#ifdef HAVE_UNISTD_H
5235# include <unistd.h>
5236#endif /* HAVE_UNISTD_H */
5237#if defined(HAVE_DIRENT_H)
5238# include <dirent.h>
5239#else
5240# define dirent direct
5241# ifdef HAVE_SYS_NDIR_H
5242# include <sys/ndir.h>
5243# endif /* SYSNDIR */
5244# ifdef HAVE_SYS_DIR_H
5245# include <sys/dir.h>
5246# endif /* SYSDIR */
5247# ifdef HAVE_NDIR_H
5248# include <ndir.h>
5249# endif
5250#endif /* HAVE_DIRENT_H */
5251
9255ee31
EZ
5252int
5253main ()
5254{
d60d9f65
SS
5255
5256struct dirent d; int z; z = d.d_fileno;
5257
9255ee31
EZ
5258 ;
5259 return 0;
5260}
5261_ACEOF
5262rm -f conftest.$ac_objext
25ed0b71 5263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9255ee31
EZ
5264 (eval $ac_compile) 2>&5
5265 ac_status=$?
25ed0b71 5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
5267 (exit $ac_status); } &&
5268 { ac_try='test -s conftest.$ac_objext'
25ed0b71 5269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
5270 (eval $ac_try) 2>&5
5271 ac_status=$?
25ed0b71 5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31 5273 (exit $ac_status); }; }; then
d60d9f65
SS
5274 bash_cv_dirent_has_d_fileno=yes
5275else
9255ee31 5276 echo "$as_me: failed program was:" >&5
25ed0b71
KW
5277sed 's/^/| /' conftest.$ac_ext >&5
5278
9255ee31 5279bash_cv_dirent_has_d_fileno=no
d60d9f65 5280fi
9255ee31 5281rm -f conftest.$ac_objext conftest.$ac_ext
d60d9f65
SS
5282fi
5283
25ed0b71 5284echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
9255ee31 5285echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
d60d9f65 5286if test $bash_cv_dirent_has_d_fileno = yes; then
25ed0b71 5287cat >>confdefs.h <<\_ACEOF
d60d9f65 5288#define STRUCT_DIRENT_HAS_D_FILENO 1
25ed0b71 5289_ACEOF
d60d9f65
SS
5290
5291fi
5292
25ed0b71 5293
d60d9f65
SS
5294case "$host_os" in
5295aix*) prefer_curses=yes ;;
5296esac
5297
5298if test "X$bash_cv_termcap_lib" = "X"; then
5299_bash_needmsg=yes
5300else
25ed0b71 5301echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
9255ee31 5302echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
d60d9f65
SS
5303_bash_needmsg=
5304fi
9255ee31
EZ
5305if test "${bash_cv_termcap_lib+set}" = set; then
5306 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65 5307else
25ed0b71 5308 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
9255ee31
EZ
5309echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5310if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5311 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65 5312else
9255ee31 5313 ac_check_lib_save_LIBS=$LIBS
d60d9f65 5314LIBS="-ltermcap $LIBS"
9255ee31 5315cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
5316#line $LINENO "configure"
5317/* confdefs.h. */
5318_ACEOF
5319cat confdefs.h >>conftest.$ac_ext
5320cat >>conftest.$ac_ext <<_ACEOF
5321/* end confdefs.h. */
9255ee31
EZ
5322
5323/* Override any gcc2 internal prototype to avoid an error. */
5324#ifdef __cplusplus
5325extern "C"
5326#endif
5327/* We use char because int might match the return type of a gcc2
5328 builtin and then its argument prototype would still apply. */
5329char tgetent ();
5330int
5331main ()
5332{
5333tgetent ();
5334 ;
5335 return 0;
5336}
5337_ACEOF
5338rm -f conftest.$ac_objext conftest$ac_exeext
25ed0b71 5339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9255ee31
EZ
5340 (eval $ac_link) 2>&5
5341 ac_status=$?
25ed0b71 5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
5343 (exit $ac_status); } &&
5344 { ac_try='test -s conftest$ac_exeext'
25ed0b71 5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
5346 (eval $ac_try) 2>&5
5347 ac_status=$?
25ed0b71 5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
5349 (exit $ac_status); }; }; then
5350 ac_cv_lib_termcap_tgetent=yes
5351else
5352 echo "$as_me: failed program was:" >&5
25ed0b71
KW
5353sed 's/^/| /' conftest.$ac_ext >&5
5354
9255ee31
EZ
5355ac_cv_lib_termcap_tgetent=no
5356fi
5357rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5358LIBS=$ac_check_lib_save_LIBS
5359fi
25ed0b71 5360echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
9255ee31
EZ
5361echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5362if test $ac_cv_lib_termcap_tgetent = yes; then
5363 bash_cv_termcap_lib=libtermcap
5364else
25ed0b71 5365 echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
9255ee31
EZ
5366echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
5367if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5369else
5370 ac_check_lib_save_LIBS=$LIBS
5371LIBS="-ltinfo $LIBS"
5372cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
5373#line $LINENO "configure"
5374/* confdefs.h. */
5375_ACEOF
5376cat confdefs.h >>conftest.$ac_ext
5377cat >>conftest.$ac_ext <<_ACEOF
5378/* end confdefs.h. */
9255ee31
EZ
5379
5380/* Override any gcc2 internal prototype to avoid an error. */
5381#ifdef __cplusplus
5382extern "C"
5383#endif
5384/* We use char because int might match the return type of a gcc2
5385 builtin and then its argument prototype would still apply. */
5386char tgetent ();
5387int
5388main ()
5389{
5390tgetent ();
5391 ;
5392 return 0;
5393}
5394_ACEOF
5395rm -f conftest.$ac_objext conftest$ac_exeext
25ed0b71 5396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9255ee31
EZ
5397 (eval $ac_link) 2>&5
5398 ac_status=$?
25ed0b71 5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
5400 (exit $ac_status); } &&
5401 { ac_try='test -s conftest$ac_exeext'
25ed0b71 5402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
5403 (eval $ac_try) 2>&5
5404 ac_status=$?
25ed0b71 5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
5406 (exit $ac_status); }; }; then
5407 ac_cv_lib_tinfo_tgetent=yes
5408else
5409 echo "$as_me: failed program was:" >&5
25ed0b71
KW
5410sed 's/^/| /' conftest.$ac_ext >&5
5411
9255ee31
EZ
5412ac_cv_lib_tinfo_tgetent=no
5413fi
5414rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5415LIBS=$ac_check_lib_save_LIBS
5416fi
25ed0b71 5417echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
9255ee31
EZ
5418echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
5419if test $ac_cv_lib_tinfo_tgetent = yes; then
5420 bash_cv_termcap_lib=libtinfo
5421else
25ed0b71 5422 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
9255ee31
EZ
5423echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5424if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5426else
5427 ac_check_lib_save_LIBS=$LIBS
5428LIBS="-lcurses $LIBS"
5429cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
5430#line $LINENO "configure"
5431/* confdefs.h. */
5432_ACEOF
5433cat confdefs.h >>conftest.$ac_ext
5434cat >>conftest.$ac_ext <<_ACEOF
5435/* end confdefs.h. */
9255ee31
EZ
5436
5437/* Override any gcc2 internal prototype to avoid an error. */
5438#ifdef __cplusplus
5439extern "C"
5440#endif
5441/* We use char because int might match the return type of a gcc2
5442 builtin and then its argument prototype would still apply. */
5443char tgetent ();
5444int
5445main ()
5446{
5447tgetent ();
5448 ;
5449 return 0;
5450}
5451_ACEOF
5452rm -f conftest.$ac_objext conftest$ac_exeext
25ed0b71 5453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9255ee31
EZ
5454 (eval $ac_link) 2>&5
5455 ac_status=$?
25ed0b71 5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
5457 (exit $ac_status); } &&
5458 { ac_try='test -s conftest$ac_exeext'
25ed0b71 5459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
5460 (eval $ac_try) 2>&5
5461 ac_status=$?
25ed0b71 5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
5463 (exit $ac_status); }; }; then
5464 ac_cv_lib_curses_tgetent=yes
5465else
5466 echo "$as_me: failed program was:" >&5
25ed0b71
KW
5467sed 's/^/| /' conftest.$ac_ext >&5
5468
9255ee31
EZ
5469ac_cv_lib_curses_tgetent=no
5470fi
5471rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5472LIBS=$ac_check_lib_save_LIBS
5473fi
25ed0b71 5474echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
9255ee31
EZ
5475echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5476if test $ac_cv_lib_curses_tgetent = yes; then
5477 bash_cv_termcap_lib=libcurses
5478else
25ed0b71 5479 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
9255ee31
EZ
5480echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5481if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5483else
5484 ac_check_lib_save_LIBS=$LIBS
5485LIBS="-lncurses $LIBS"
5486cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
5487#line $LINENO "configure"
5488/* confdefs.h. */
5489_ACEOF
5490cat confdefs.h >>conftest.$ac_ext
5491cat >>conftest.$ac_ext <<_ACEOF
5492/* end confdefs.h. */
9255ee31
EZ
5493
5494/* Override any gcc2 internal prototype to avoid an error. */
5495#ifdef __cplusplus
5496extern "C"
5497#endif
5498/* We use char because int might match the return type of a gcc2
5499 builtin and then its argument prototype would still apply. */
5500char tgetent ();
5501int
5502main ()
5503{
5504tgetent ();
5505 ;
5506 return 0;
5507}
5508_ACEOF
5509rm -f conftest.$ac_objext conftest$ac_exeext
25ed0b71 5510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9255ee31
EZ
5511 (eval $ac_link) 2>&5
5512 ac_status=$?
25ed0b71 5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
5514 (exit $ac_status); } &&
5515 { ac_try='test -s conftest$ac_exeext'
25ed0b71 5516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
5517 (eval $ac_try) 2>&5
5518 ac_status=$?
25ed0b71 5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
5520 (exit $ac_status); }; }; then
5521 ac_cv_lib_ncurses_tgetent=yes
5522else
5523 echo "$as_me: failed program was:" >&5
25ed0b71
KW
5524sed 's/^/| /' conftest.$ac_ext >&5
5525
9255ee31
EZ
5526ac_cv_lib_ncurses_tgetent=no
5527fi
5528rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5529LIBS=$ac_check_lib_save_LIBS
5530fi
25ed0b71 5531echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
9255ee31
EZ
5532echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5533if test $ac_cv_lib_ncurses_tgetent = yes; then
5534 bash_cv_termcap_lib=libncurses
5535else
5536 bash_cv_termcap_lib=gnutermcap
5537fi
5538
5539fi
5540
5541fi
5542
5543fi
5544
5545fi
5546
5547if test "X$_bash_needmsg" = "Xyes"; then
25ed0b71 5548echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
9255ee31
EZ
5549echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
5550fi
25ed0b71 5551echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
9255ee31
EZ
5552echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
5553if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
5554LDFLAGS="$LDFLAGS -L./lib/termcap"
5555TERMCAP_LIB="./lib/termcap/libtermcap.a"
5556TERMCAP_DEP="./lib/termcap/libtermcap.a"
5557elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
5558TERMCAP_LIB=-ltermcap
5559TERMCAP_DEP=
5560elif test $bash_cv_termcap_lib = libtinfo; then
5561TERMCAP_LIB=-ltinfo
5562TERMCAP_DEP=
5563elif test $bash_cv_termcap_lib = libncurses; then
5564TERMCAP_LIB=-lncurses
5565TERMCAP_DEP=
5566else
5567TERMCAP_LIB=-lcurses
5568TERMCAP_DEP=
5569fi
5570
5571if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then
5572 if test "$prefer_curses" = yes; then
5573 TERMCAP_LIB=-lcurses
5574 else
5575 TERMCAP_LIB=-ltermcap #default
5576 fi
5577fi
5578
25ed0b71
KW
5579
5580
9255ee31
EZ
5581for ac_header in wctype.h
5582do
5583as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25ed0b71
KW
5584if eval "test \"\${$as_ac_Header+set}\" = set"; then
5585 echo "$as_me:$LINENO: checking for $ac_header" >&5
9255ee31
EZ
5586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5587if eval "test \"\${$as_ac_Header+set}\" = set"; then
5588 echo $ECHO_N "(cached) $ECHO_C" >&6
25ed0b71
KW
5589fi
5590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5591echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9255ee31 5592else
25ed0b71
KW
5593 # Is the header compilable?
5594echo "$as_me:$LINENO: checking $ac_header usability" >&5
5595echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5596cat >conftest.$ac_ext <<_ACEOF
5597#line $LINENO "configure"
5598/* confdefs.h. */
5599_ACEOF
5600cat confdefs.h >>conftest.$ac_ext
5601cat >>conftest.$ac_ext <<_ACEOF
5602/* end confdefs.h. */
5603$ac_includes_default
5604#include <$ac_header>
5605_ACEOF
5606rm -f conftest.$ac_objext
5607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5608 (eval $ac_compile) 2>&5
5609 ac_status=$?
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } &&
5612 { ac_try='test -s conftest.$ac_objext'
5613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5614 (eval $ac_try) 2>&5
5615 ac_status=$?
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); }; }; then
5618 ac_header_compiler=yes
5619else
5620 echo "$as_me: failed program was:" >&5
5621sed 's/^/| /' conftest.$ac_ext >&5
5622
5623ac_header_compiler=no
5624fi
5625rm -f conftest.$ac_objext conftest.$ac_ext
5626echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5627echo "${ECHO_T}$ac_header_compiler" >&6
5628
5629# Is the header present?
5630echo "$as_me:$LINENO: checking $ac_header presence" >&5
5631echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5632cat >conftest.$ac_ext <<_ACEOF
5633#line $LINENO "configure"
5634/* confdefs.h. */
5635_ACEOF
5636cat confdefs.h >>conftest.$ac_ext
5637cat >>conftest.$ac_ext <<_ACEOF
5638/* end confdefs.h. */
9255ee31
EZ
5639#include <$ac_header>
5640_ACEOF
25ed0b71 5641if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9255ee31
EZ
5642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5643 ac_status=$?
25ed0b71 5644 grep -v '^ *+' conftest.er1 >conftest.err
9255ee31
EZ
5645 rm -f conftest.er1
5646 cat conftest.err >&5
25ed0b71 5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
5648 (exit $ac_status); } >/dev/null; then
5649 if test -s conftest.err; then
5650 ac_cpp_err=$ac_c_preproc_warn_flag
5651 else
5652 ac_cpp_err=
5653 fi
5654else
5655 ac_cpp_err=yes
5656fi
5657if test -z "$ac_cpp_err"; then
25ed0b71 5658 ac_header_preproc=yes
9255ee31
EZ
5659else
5660 echo "$as_me: failed program was:" >&5
25ed0b71
KW
5661sed 's/^/| /' conftest.$ac_ext >&5
5662
5663 ac_header_preproc=no
9255ee31
EZ
5664fi
5665rm -f conftest.err conftest.$ac_ext
25ed0b71
KW
5666echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5667echo "${ECHO_T}$ac_header_preproc" >&6
5668
5669# So? What about this header?
5670case $ac_header_compiler:$ac_header_preproc in
5671 yes:no )
5672 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5673echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5675echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5676 (
5677 cat <<\_ASBOX
5678## ------------------------------------ ##
5679## Report this to bug-autoconf@gnu.org. ##
5680## ------------------------------------ ##
5681_ASBOX
5682 ) |
5683 sed "s/^/$as_me: WARNING: /" >&2
5684 ;;
5685 no:yes )
5686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5687echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5689echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5691echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5692 (
5693 cat <<\_ASBOX
5694## ------------------------------------ ##
5695## Report this to bug-autoconf@gnu.org. ##
5696## ------------------------------------ ##
5697_ASBOX
5698 ) |
5699 sed "s/^/$as_me: WARNING: /" >&2
5700 ;;
5701esac
5702echo "$as_me:$LINENO: checking for $ac_header" >&5
5703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5704if eval "test \"\${$as_ac_Header+set}\" = set"; then
5705 echo $ECHO_N "(cached) $ECHO_C" >&6
5706else
5707 eval "$as_ac_Header=$ac_header_preproc"
9255ee31 5708fi
25ed0b71 5709echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9255ee31 5710echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25ed0b71
KW
5711
5712fi
9255ee31 5713if test `eval echo '${'$as_ac_Header'}'` = yes; then
25ed0b71 5714 cat >>confdefs.h <<_ACEOF
9255ee31 5715#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25ed0b71 5716_ACEOF
9255ee31
EZ
5717
5718fi
25ed0b71 5719
9255ee31
EZ
5720done
5721
25ed0b71 5722
9255ee31
EZ
5723for ac_header in wchar.h
5724do
5725as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25ed0b71
KW
5726if eval "test \"\${$as_ac_Header+set}\" = set"; then
5727 echo "$as_me:$LINENO: checking for $ac_header" >&5
9255ee31
EZ
5728echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5729if eval "test \"\${$as_ac_Header+set}\" = set"; then
5730 echo $ECHO_N "(cached) $ECHO_C" >&6
25ed0b71
KW
5731fi
5732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5733echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9255ee31 5734else
25ed0b71
KW
5735 # Is the header compilable?
5736echo "$as_me:$LINENO: checking $ac_header usability" >&5
5737echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5738cat >conftest.$ac_ext <<_ACEOF
5739#line $LINENO "configure"
5740/* confdefs.h. */
5741_ACEOF
5742cat confdefs.h >>conftest.$ac_ext
5743cat >>conftest.$ac_ext <<_ACEOF
5744/* end confdefs.h. */
5745$ac_includes_default
5746#include <$ac_header>
5747_ACEOF
5748rm -f conftest.$ac_objext
5749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5750 (eval $ac_compile) 2>&5
5751 ac_status=$?
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); } &&
5754 { ac_try='test -s conftest.$ac_objext'
5755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756 (eval $ac_try) 2>&5
5757 ac_status=$?
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); }; }; then
5760 ac_header_compiler=yes
5761else
5762 echo "$as_me: failed program was:" >&5
5763sed 's/^/| /' conftest.$ac_ext >&5
5764
5765ac_header_compiler=no
5766fi
5767rm -f conftest.$ac_objext conftest.$ac_ext
5768echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5769echo "${ECHO_T}$ac_header_compiler" >&6
5770
5771# Is the header present?
5772echo "$as_me:$LINENO: checking $ac_header presence" >&5
5773echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5774cat >conftest.$ac_ext <<_ACEOF
5775#line $LINENO "configure"
5776/* confdefs.h. */
5777_ACEOF
5778cat confdefs.h >>conftest.$ac_ext
5779cat >>conftest.$ac_ext <<_ACEOF
5780/* end confdefs.h. */
9255ee31
EZ
5781#include <$ac_header>
5782_ACEOF
25ed0b71 5783if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9255ee31
EZ
5784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5785 ac_status=$?
25ed0b71 5786 grep -v '^ *+' conftest.er1 >conftest.err
9255ee31
EZ
5787 rm -f conftest.er1
5788 cat conftest.err >&5
25ed0b71 5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
5790 (exit $ac_status); } >/dev/null; then
5791 if test -s conftest.err; then
5792 ac_cpp_err=$ac_c_preproc_warn_flag
5793 else
5794 ac_cpp_err=
5795 fi
5796else
5797 ac_cpp_err=yes
5798fi
5799if test -z "$ac_cpp_err"; then
25ed0b71 5800 ac_header_preproc=yes
9255ee31
EZ
5801else
5802 echo "$as_me: failed program was:" >&5
25ed0b71
KW
5803sed 's/^/| /' conftest.$ac_ext >&5
5804
5805 ac_header_preproc=no
9255ee31
EZ
5806fi
5807rm -f conftest.err conftest.$ac_ext
25ed0b71
KW
5808echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5809echo "${ECHO_T}$ac_header_preproc" >&6
5810
5811# So? What about this header?
5812case $ac_header_compiler:$ac_header_preproc in
5813 yes:no )
5814 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5815echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5817echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5818 (
5819 cat <<\_ASBOX
5820## ------------------------------------ ##
5821## Report this to bug-autoconf@gnu.org. ##
5822## ------------------------------------ ##
5823_ASBOX
5824 ) |
5825 sed "s/^/$as_me: WARNING: /" >&2
5826 ;;
5827 no:yes )
5828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5829echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5831echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5833echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5834 (
5835 cat <<\_ASBOX
5836## ------------------------------------ ##
5837## Report this to bug-autoconf@gnu.org. ##
5838## ------------------------------------ ##
5839_ASBOX
5840 ) |
5841 sed "s/^/$as_me: WARNING: /" >&2
5842 ;;
5843esac
5844echo "$as_me:$LINENO: checking for $ac_header" >&5
5845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5846if eval "test \"\${$as_ac_Header+set}\" = set"; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5848else
5849 eval "$as_ac_Header=$ac_header_preproc"
9255ee31 5850fi
25ed0b71 5851echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9255ee31 5852echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25ed0b71
KW
5853
5854fi
9255ee31 5855if test `eval echo '${'$as_ac_Header'}'` = yes; then
25ed0b71 5856 cat >>confdefs.h <<_ACEOF
9255ee31 5857#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25ed0b71 5858_ACEOF
9255ee31
EZ
5859
5860fi
25ed0b71 5861
9255ee31
EZ
5862done
5863
25ed0b71 5864
9255ee31
EZ
5865for ac_header in langinfo.h
5866do
5867as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25ed0b71
KW
5868if eval "test \"\${$as_ac_Header+set}\" = set"; then
5869 echo "$as_me:$LINENO: checking for $ac_header" >&5
9255ee31
EZ
5870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5871if eval "test \"\${$as_ac_Header+set}\" = set"; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
25ed0b71
KW
5873fi
5874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5875echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9255ee31 5876else
25ed0b71
KW
5877 # Is the header compilable?
5878echo "$as_me:$LINENO: checking $ac_header usability" >&5
5879echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5880cat >conftest.$ac_ext <<_ACEOF
5881#line $LINENO "configure"
5882/* confdefs.h. */
5883_ACEOF
5884cat confdefs.h >>conftest.$ac_ext
5885cat >>conftest.$ac_ext <<_ACEOF
5886/* end confdefs.h. */
5887$ac_includes_default
5888#include <$ac_header>
5889_ACEOF
5890rm -f conftest.$ac_objext
5891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5892 (eval $ac_compile) 2>&5
5893 ac_status=$?
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } &&
5896 { ac_try='test -s conftest.$ac_objext'
5897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898 (eval $ac_try) 2>&5
5899 ac_status=$?
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); }; }; then
5902 ac_header_compiler=yes
5903else
5904 echo "$as_me: failed program was:" >&5
5905sed 's/^/| /' conftest.$ac_ext >&5
5906
5907ac_header_compiler=no
5908fi
5909rm -f conftest.$ac_objext conftest.$ac_ext
5910echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5911echo "${ECHO_T}$ac_header_compiler" >&6
5912
5913# Is the header present?
5914echo "$as_me:$LINENO: checking $ac_header presence" >&5
5915echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5916cat >conftest.$ac_ext <<_ACEOF
5917#line $LINENO "configure"
5918/* confdefs.h. */
5919_ACEOF
5920cat confdefs.h >>conftest.$ac_ext
5921cat >>conftest.$ac_ext <<_ACEOF
5922/* end confdefs.h. */
9255ee31
EZ
5923#include <$ac_header>
5924_ACEOF
25ed0b71 5925if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9255ee31
EZ
5926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5927 ac_status=$?
25ed0b71 5928 grep -v '^ *+' conftest.er1 >conftest.err
9255ee31
EZ
5929 rm -f conftest.er1
5930 cat conftest.err >&5
25ed0b71 5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
5932 (exit $ac_status); } >/dev/null; then
5933 if test -s conftest.err; then
5934 ac_cpp_err=$ac_c_preproc_warn_flag
5935 else
5936 ac_cpp_err=
5937 fi
5938else
5939 ac_cpp_err=yes
5940fi
5941if test -z "$ac_cpp_err"; then
25ed0b71 5942 ac_header_preproc=yes
9255ee31
EZ
5943else
5944 echo "$as_me: failed program was:" >&5
25ed0b71
KW
5945sed 's/^/| /' conftest.$ac_ext >&5
5946
5947 ac_header_preproc=no
9255ee31
EZ
5948fi
5949rm -f conftest.err conftest.$ac_ext
25ed0b71
KW
5950echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5951echo "${ECHO_T}$ac_header_preproc" >&6
5952
5953# So? What about this header?
5954case $ac_header_compiler:$ac_header_preproc in
5955 yes:no )
5956 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5957echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5959echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5960 (
5961 cat <<\_ASBOX
5962## ------------------------------------ ##
5963## Report this to bug-autoconf@gnu.org. ##
5964## ------------------------------------ ##
5965_ASBOX
5966 ) |
5967 sed "s/^/$as_me: WARNING: /" >&2
5968 ;;
5969 no:yes )
5970 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5971echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5972 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5973echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5975echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5976 (
5977 cat <<\_ASBOX
5978## ------------------------------------ ##
5979## Report this to bug-autoconf@gnu.org. ##
5980## ------------------------------------ ##
5981_ASBOX
5982 ) |
5983 sed "s/^/$as_me: WARNING: /" >&2
5984 ;;
5985esac
5986echo "$as_me:$LINENO: checking for $ac_header" >&5
5987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5988if eval "test \"\${$as_ac_Header+set}\" = set"; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5990else
5991 eval "$as_ac_Header=$ac_header_preproc"
9255ee31 5992fi
25ed0b71 5993echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9255ee31 5994echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25ed0b71
KW
5995
5996fi
9255ee31 5997if test `eval echo '${'$as_ac_Header'}'` = yes; then
25ed0b71 5998 cat >>confdefs.h <<_ACEOF
9255ee31 5999#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25ed0b71 6000_ACEOF
9255ee31
EZ
6001
6002fi
25ed0b71 6003
9255ee31
EZ
6004done
6005
25ed0b71 6006
832a9484
JB
6007echo "$as_me:$LINENO: checking for mbrtowc" >&5
6008echo $ECHO_N "checking for mbrtowc... $ECHO_C" >&6
6009if test "${ac_cv_func_mbrtowc+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6011else
6012 cat >conftest.$ac_ext <<_ACEOF
6013#line $LINENO "configure"
6014/* confdefs.h. */
6015_ACEOF
6016cat confdefs.h >>conftest.$ac_ext
6017cat >>conftest.$ac_ext <<_ACEOF
6018/* end confdefs.h. */
6019/* System header to define __stub macros and hopefully few prototypes,
6020 which can conflict with char mbrtowc (); below.
6021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6022 <limits.h> exists even on freestanding compilers. */
6023#ifdef __STDC__
6024# include <limits.h>
6025#else
6026# include <assert.h>
6027#endif
6028/* Override any gcc2 internal prototype to avoid an error. */
6029#ifdef __cplusplus
6030extern "C"
6031{
6032#endif
6033/* We use char because int might match the return type of a gcc2
6034 builtin and then its argument prototype would still apply. */
6035char mbrtowc ();
6036/* The GNU C library defines this for functions which it implements
6037 to always fail with ENOSYS. Some functions are actually named
6038 something starting with __ and the normal name is an alias. */
6039#if defined (__stub_mbrtowc) || defined (__stub___mbrtowc)
6040choke me
6041#else
6042char (*f) () = mbrtowc;
6043#endif
6044#ifdef __cplusplus
6045}
6046#endif
6047
6048int
6049main ()
6050{
6051return f != mbrtowc;
6052 ;
6053 return 0;
6054}
6055_ACEOF
6056rm -f conftest.$ac_objext conftest$ac_exeext
6057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6058 (eval $ac_link) 2>&5
6059 ac_status=$?
6060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061 (exit $ac_status); } &&
6062 { ac_try='test -s conftest$ac_exeext'
6063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6064 (eval $ac_try) 2>&5
6065 ac_status=$?
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); }; }; then
6068 ac_cv_func_mbrtowc=yes
6069else
6070 echo "$as_me: failed program was:" >&5
6071sed 's/^/| /' conftest.$ac_ext >&5
6072
6073ac_cv_func_mbrtowc=no
6074fi
6075rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6076fi
6077echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
6078echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
6079if test $ac_cv_func_mbrtowc = yes; then
6080 cat >>confdefs.h <<\_ACEOF
6081#define HAVE_MBRTOWC 1
6082_ACEOF
6083
6084fi
6085
25ed0b71 6086echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
9255ee31
EZ
6087echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6
6088if test "${ac_cv_func_mbsrtowcs+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6090else
6091 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
6092#line $LINENO "configure"
6093/* confdefs.h. */
6094_ACEOF
6095cat confdefs.h >>conftest.$ac_ext
6096cat >>conftest.$ac_ext <<_ACEOF
6097/* end confdefs.h. */
9255ee31 6098/* System header to define __stub macros and hopefully few prototypes,
25ed0b71
KW
6099 which can conflict with char mbsrtowcs (); below.
6100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6101 <limits.h> exists even on freestanding compilers. */
6102#ifdef __STDC__
6103# include <limits.h>
6104#else
6105# include <assert.h>
6106#endif
d60d9f65 6107/* Override any gcc2 internal prototype to avoid an error. */
9255ee31
EZ
6108#ifdef __cplusplus
6109extern "C"
25ed0b71 6110{
9255ee31 6111#endif
d60d9f65 6112/* We use char because int might match the return type of a gcc2
9255ee31
EZ
6113 builtin and then its argument prototype would still apply. */
6114char mbsrtowcs ();
9255ee31
EZ
6115/* The GNU C library defines this for functions which it implements
6116 to always fail with ENOSYS. Some functions are actually named
6117 something starting with __ and the normal name is an alias. */
6118#if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs)
6119choke me
6120#else
25ed0b71
KW
6121char (*f) () = mbsrtowcs;
6122#endif
6123#ifdef __cplusplus
6124}
9255ee31 6125#endif
d60d9f65 6126
25ed0b71
KW
6127int
6128main ()
6129{
6130return f != mbsrtowcs;
9255ee31
EZ
6131 ;
6132 return 0;
6133}
6134_ACEOF
6135rm -f conftest.$ac_objext conftest$ac_exeext
25ed0b71 6136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9255ee31
EZ
6137 (eval $ac_link) 2>&5
6138 ac_status=$?
25ed0b71 6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
6140 (exit $ac_status); } &&
6141 { ac_try='test -s conftest$ac_exeext'
25ed0b71 6142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
6143 (eval $ac_try) 2>&5
6144 ac_status=$?
25ed0b71 6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
6146 (exit $ac_status); }; }; then
6147 ac_cv_func_mbsrtowcs=yes
d60d9f65 6148else
9255ee31 6149 echo "$as_me: failed program was:" >&5
25ed0b71
KW
6150sed 's/^/| /' conftest.$ac_ext >&5
6151
9255ee31 6152ac_cv_func_mbsrtowcs=no
d60d9f65 6153fi
9255ee31
EZ
6154rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6155fi
25ed0b71 6156echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
9255ee31
EZ
6157echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
6158if test $ac_cv_func_mbsrtowcs = yes; then
25ed0b71 6159 cat >>confdefs.h <<\_ACEOF
9255ee31 6160#define HAVE_MBSRTOWCS 1
25ed0b71 6161_ACEOF
d60d9f65
SS
6162
6163fi
9255ee31 6164
25ed0b71 6165echo "$as_me:$LINENO: checking for wcwidth" >&5
9255ee31
EZ
6166echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
6167if test "${ac_cv_func_wcwidth+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65 6169else
9255ee31 6170 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
6171#line $LINENO "configure"
6172/* confdefs.h. */
6173_ACEOF
6174cat confdefs.h >>conftest.$ac_ext
6175cat >>conftest.$ac_ext <<_ACEOF
6176/* end confdefs.h. */
9255ee31 6177/* System header to define __stub macros and hopefully few prototypes,
25ed0b71
KW
6178 which can conflict with char wcwidth (); below.
6179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6180 <limits.h> exists even on freestanding compilers. */
6181#ifdef __STDC__
6182# include <limits.h>
6183#else
6184# include <assert.h>
6185#endif
d60d9f65 6186/* Override any gcc2 internal prototype to avoid an error. */
9255ee31
EZ
6187#ifdef __cplusplus
6188extern "C"
25ed0b71 6189{
9255ee31 6190#endif
d60d9f65 6191/* We use char because int might match the return type of a gcc2
9255ee31
EZ
6192 builtin and then its argument prototype would still apply. */
6193char wcwidth ();
9255ee31
EZ
6194/* The GNU C library defines this for functions which it implements
6195 to always fail with ENOSYS. Some functions are actually named
6196 something starting with __ and the normal name is an alias. */
6197#if defined (__stub_wcwidth) || defined (__stub___wcwidth)
6198choke me
6199#else
25ed0b71
KW
6200char (*f) () = wcwidth;
6201#endif
6202#ifdef __cplusplus
6203}
9255ee31
EZ
6204#endif
6205
25ed0b71
KW
6206int
6207main ()
6208{
6209return f != wcwidth;
9255ee31
EZ
6210 ;
6211 return 0;
6212}
6213_ACEOF
6214rm -f conftest.$ac_objext conftest$ac_exeext
25ed0b71 6215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9255ee31
EZ
6216 (eval $ac_link) 2>&5
6217 ac_status=$?
25ed0b71 6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
6219 (exit $ac_status); } &&
6220 { ac_try='test -s conftest$ac_exeext'
25ed0b71 6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
6222 (eval $ac_try) 2>&5
6223 ac_status=$?
25ed0b71 6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
6225 (exit $ac_status); }; }; then
6226 ac_cv_func_wcwidth=yes
d60d9f65 6227else
9255ee31 6228 echo "$as_me: failed program was:" >&5
25ed0b71
KW
6229sed 's/^/| /' conftest.$ac_ext >&5
6230
9255ee31 6231ac_cv_func_wcwidth=no
d60d9f65 6232fi
9255ee31
EZ
6233rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6234fi
25ed0b71 6235echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
9255ee31
EZ
6236echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
6237if test $ac_cv_func_wcwidth = yes; then
25ed0b71
KW
6238 have_wcwidth=yes
6239fi
6240
6241if test "$have_wcwidth" = yes; then
6242 cat >>confdefs.h <<\_ACEOF
9255ee31 6243#define HAVE_WCWIDTH 1
25ed0b71
KW
6244_ACEOF
6245
6246
6247else
6248 WCWIDTH_OBJ=wcwidth.o
d60d9f65
SS
6249
6250fi
9255ee31 6251
25ed0b71 6252echo "$as_me:$LINENO: checking for mbstate_t" >&5
9255ee31
EZ
6253echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
6254if test "${bash_cv_have_mbstate_t+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65 6256else
9255ee31 6257 if test "$cross_compiling" = yes; then
25ed0b71
KW
6258 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6259See \`config.log' for more details." >&5
6260echo "$as_me: error: cannot run test program while cross compiling
6261See \`config.log' for more details." >&2;}
9255ee31 6262 { (exit 1); exit 1; }; }
d60d9f65 6263else
9255ee31 6264 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
6265#line $LINENO "configure"
6266/* confdefs.h. */
6267_ACEOF
6268cat confdefs.h >>conftest.$ac_ext
6269cat >>conftest.$ac_ext <<_ACEOF
6270/* end confdefs.h. */
d60d9f65 6271
9255ee31
EZ
6272#include <wchar.h>
6273int
6274main ()
6275{
6276 mbstate_t ps;
6277 return 0;
6278}
6279_ACEOF
6280rm -f conftest$ac_exeext
25ed0b71 6281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9255ee31
EZ
6282 (eval $ac_link) 2>&5
6283 ac_status=$?
25ed0b71 6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31 6285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25ed0b71 6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
6287 (eval $ac_try) 2>&5
6288 ac_status=$?
25ed0b71 6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
6290 (exit $ac_status); }; }; then
6291 bash_cv_have_mbstate_t=yes
d60d9f65 6292else
9255ee31
EZ
6293 echo "$as_me: program exited with status $ac_status" >&5
6294echo "$as_me: failed program was:" >&5
25ed0b71
KW
6295sed 's/^/| /' conftest.$ac_ext >&5
6296
6297( exit $ac_status )
9255ee31 6298bash_cv_have_mbstate_t=no
d60d9f65 6299fi
25ed0b71 6300rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d60d9f65 6301fi
d60d9f65 6302fi
25ed0b71 6303echo "$as_me:$LINENO: result: $bash_cv_have_mbstate_t" >&5
9255ee31
EZ
6304echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6
6305if test $bash_cv_have_mbstate_t = yes; then
25ed0b71 6306 cat >>confdefs.h <<\_ACEOF
9255ee31 6307#define HAVE_MBSTATE_T 1
25ed0b71 6308_ACEOF
d60d9f65
SS
6309
6310fi
6311
25ed0b71 6312echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9255ee31
EZ
6313echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6314if test "${bash_cv_langinfo_codeset+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
d60d9f65 6316else
9255ee31 6317 cat >conftest.$ac_ext <<_ACEOF
25ed0b71
KW
6318#line $LINENO "configure"
6319/* confdefs.h. */
6320_ACEOF
6321cat confdefs.h >>conftest.$ac_ext
6322cat >>conftest.$ac_ext <<_ACEOF
6323/* end confdefs.h. */
9255ee31
EZ
6324#include <langinfo.h>
6325int
6326main ()
6327{
6328char* cs = nl_langinfo(CODESET);
6329 ;
6330 return 0;
6331}
6332_ACEOF
6333rm -f conftest.$ac_objext conftest$ac_exeext
25ed0b71 6334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9255ee31
EZ
6335 (eval $ac_link) 2>&5
6336 ac_status=$?
25ed0b71 6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
6338 (exit $ac_status); } &&
6339 { ac_try='test -s conftest$ac_exeext'
25ed0b71 6340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255ee31
EZ
6341 (eval $ac_try) 2>&5
6342 ac_status=$?
25ed0b71 6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255ee31
EZ
6344 (exit $ac_status); }; }; then
6345 bash_cv_langinfo_codeset=yes
6346else
6347 echo "$as_me: failed program was:" >&5
25ed0b71
KW
6348sed 's/^/| /' conftest.$ac_ext >&5
6349
9255ee31
EZ
6350bash_cv_langinfo_codeset=no
6351fi
6352rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
d60d9f65 6353fi
25ed0b71 6354echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
9255ee31
EZ
6355echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6
6356if test $bash_cv_langinfo_codeset = yes; then
25ed0b71 6357 cat >>confdefs.h <<\_ACEOF
9255ee31 6358#define HAVE_LANGINFO_CODESET 1
25ed0b71 6359_ACEOF
d60d9f65 6360
d60d9f65
SS
6361fi
6362
25ed0b71
KW
6363
6364
d60d9f65
SS
6365case "$host_cpu" in
6366*cray*) LOCAL_CFLAGS=-DCRAY ;;
9255ee31 6367*s390*) LOCAL_CFLAGS=-fsigned-char ;;
d60d9f65
SS
6368esac
6369
6370case "$host_os" in
6371isc*) LOCAL_CFLAGS=-Disc386 ;;
6372esac
6373
c862e87b
JM
6374# shared library configuration section
6375#
6376# Shared object configuration section. These values are generated by
6377# ${srcdir}/support/shobj-conf
6378#
6379if test -f ${srcdir}/support/shobj-conf; then
25ed0b71 6380 echo "$as_me:$LINENO: checking configuration for building shared libraries" >&5
9255ee31 6381echo $ECHO_N "checking configuration for building shared libraries... $ECHO_C" >&6
1b17e766 6382 eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
9255ee31 6383
25ed0b71
KW
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395 echo "$as_me:$LINENO: result: $SHLIB_STATUS" >&5
9255ee31
EZ
6396echo "${ECHO_T}$SHLIB_STATUS" >&6
6397
6398 # SHLIB_STATUS is either `supported' or `unsupported'. If it's
6399 # `unsupported', turn off any default shared library building
6400 if test "$SHLIB_STATUS" = 'unsupported'; then
6401 opt_shared_libs=no
6402 fi
1b17e766
EZ
6403
6404 # shared library versioning
6405 # quoted for m4 so I can use character classes
6406 SHLIB_MAJOR=`expr "$LIBVERSION" : '\([0-9]\)\..*'`
6407 SHLIB_MINOR=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'`
9255ee31 6408
25ed0b71 6409
9255ee31
EZ
6410fi
6411
6412if test "$opt_static_libs" = "yes"; then
6413 STATIC_TARGET=static
6414 STATIC_INSTALL_TARGET=install-static
6415fi
6416if test "$opt_shared_libs" = "yes"; then
6417 SHARED_TARGET=shared
6418 SHARED_INSTALL_TARGET=install-shared
c862e87b
JM
6419fi
6420
25ed0b71
KW
6421
6422
6423
6424
6425
1b17e766
EZ
6426case "$host_os" in
6427msdosdjgpp*) BUILD_DIR=`pwd.exe` ;; # to prevent //d/path/file
6428*) BUILD_DIR=`pwd` ;;
6429esac
6430
25ed0b71
KW
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448 ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile"
6449 ac_config_commands="$ac_config_commands default"
9255ee31 6450cat >confcache <<\_ACEOF
d60d9f65
SS
6451# This file is a shell script that caches the results of configure
6452# tests run on this system so they can be shared between configure
9255ee31
EZ
6453# scripts and configure runs, see configure's option --config-cache.
6454# It is not useful on other systems. If it contains results you don't
6455# want to keep, you may remove or edit it.
d60d9f65 6456#
9255ee31
EZ
6457# config.status only pays attention to the cache file if you give it
6458# the --recheck option to rerun configure.
d60d9f65 6459#
25ed0b71 6460# `ac_cv_env_foo' variables (set or unset) will be overridden when
9255ee31
EZ
6461# loading this file, other *unset* `ac_cv_foo' will be assigned the
6462# following values.
6463
6464_ACEOF
6465
d60d9f65
SS
6466# The following way of writing the cache mishandles newlines in values,
6467# but we know of no workaround that is simple, portable, and efficient.
6468# So, don't put newlines in cache variables' values.
6469# Ultrix sh set writes to stderr and can't be redirected directly,
6470# and sets the high bit in the cache file unless we assign to the vars.
9255ee31
EZ
6471{
6472 (set) 2>&1 |
6473 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6474 *ac_space=\ *)
6475 # `set' does not quote correctly, so add quotes (double-quote
6476 # substitution turns \\\\ into \\, and sed turns \\ into \).
6477 sed -n \
6478 "s/'/'\\\\''/g;
6479 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6480 ;;
6481 *)
6482 # `set' quotes correctly as required by POSIX, so do not add quotes.
6483 sed -n \
6484 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6485 ;;
6486 esac;
6487} |
6488 sed '
6489 t clear
6490 : clear
6491 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6492 t end
6493 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6494 : end' >>confcache
25ed0b71 6495if diff $cache_file confcache >/dev/null 2>&1; then :; else
d60d9f65 6496 if test -w $cache_file; then
9255ee31
EZ
6497 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6498 cat confcache >$cache_file
d60d9f65
SS
6499 else
6500 echo "not updating unwritable cache $cache_file"
6501 fi
6502fi
6503rm -f confcache
6504
d60d9f65
SS
6505test "x$prefix" = xNONE && prefix=$ac_default_prefix
6506# Let make expand exec_prefix.
6507test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6508
9255ee31
EZ
6509# VPATH may cause trouble with some makes, so we remove $(srcdir),
6510# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6511# trailing colons and then remove the whole line if VPATH becomes empty
6512# (actually we leave an empty line to preserve line numbers).
d60d9f65 6513if test "x$srcdir" = x.; then
9255ee31
EZ
6514 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6515s/:*\$(srcdir):*/:/;
6516s/:*\${srcdir}:*/:/;
6517s/:*@srcdir@:*/:/;
6518s/^\([^=]*=[ ]*\):*/\1/;
6519s/:*$//;
6520s/^[^=]*=[ ]*$//;
6521}'
d60d9f65
SS
6522fi
6523
d60d9f65
SS
6524DEFS=-DHAVE_CONFIG_H
6525
25ed0b71
KW
6526ac_libobjs=
6527ac_ltlibobjs=
6528for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6529 # 1. Remove the extension, and $U if already installed.
6530 ac_i=`echo "$ac_i" |
6531 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6532 # 2. Add them.
6533 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6534 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6535done
6536LIBOBJS=$ac_libobjs
6537
6538LTLIBOBJS=$ac_ltlibobjs
6539
6540
6541
d60d9f65 6542: ${CONFIG_STATUS=./config.status}
9255ee31
EZ
6543ac_clean_files_save=$ac_clean_files
6544ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25ed0b71 6545{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9255ee31
EZ
6546echo "$as_me: creating $CONFIG_STATUS" >&6;}
6547cat >$CONFIG_STATUS <<_ACEOF
6548#! $SHELL
25ed0b71 6549# Generated by $as_me.
d60d9f65 6550# Run this file to recreate the current configuration.
d60d9f65 6551# Compiler output produced by configure, useful for debugging
9255ee31 6552# configure, is in config.log if it exists.
d60d9f65 6553
9255ee31 6554debug=false
25ed0b71
KW
6555ac_cs_recheck=false
6556ac_cs_silent=false
9255ee31 6557SHELL=\${CONFIG_SHELL-$SHELL}
9255ee31
EZ
6558_ACEOF
6559
6560cat >>$CONFIG_STATUS <<\_ACEOF
25ed0b71
KW
6561## --------------------- ##
6562## M4sh Initialization. ##
6563## --------------------- ##
6564
9255ee31
EZ
6565# Be Bourne compatible
6566if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6567 emulate sh
6568 NULLCMD=:
25ed0b71
KW
6569 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6570 # is contrary to our usage. Disable this feature.
6571 alias -g '${1+"$@"}'='"$@"'
9255ee31
EZ
6572elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6573 set -o posix
6574fi
6575
25ed0b71
KW
6576# Support unset when possible.
6577if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6578 as_unset=unset
6579else
6580 as_unset=false
6581fi
6582
6583
6584# Work around bugs in pre-3.0 UWIN ksh.
6585$as_unset ENV MAIL MAILPATH
6586PS1='$ '
6587PS2='> '
6588PS4='+ '
6589
6590# NLS nuisances.
6591for as_var in \
6592 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6593 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6594 LC_TELEPHONE LC_TIME
6595do
6596 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
6597 eval $as_var=C; export $as_var
6598 else
6599 $as_unset $as_var
6600 fi
6601done
6602
6603# Required to use basename.
6604if expr a : '\(a\)' >/dev/null 2>&1; then
6605 as_expr=expr
6606else
6607 as_expr=false
6608fi
6609
6610if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6611 as_basename=basename
6612else
6613 as_basename=false
6614fi
6615
6616
9255ee31 6617# Name of the executable.
25ed0b71
KW
6618as_me=`$as_basename "$0" ||
6619$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6620 X"$0" : 'X\(//\)$' \| \
6621 X"$0" : 'X\(/\)$' \| \
6622 . : '\(.\)' 2>/dev/null ||
6623echo X/"$0" |
6624 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6625 /^X\/\(\/\/\)$/{ s//\1/; q; }
6626 /^X\/\(\/\).*/{ s//\1/; q; }
6627 s/.*/./; q'`
6628
6629
6630# PATH needs CR, and LINENO needs CR and PATH.
6631# Avoid depending upon Character Ranges.
6632as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6633as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6634as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6635as_cr_digits='0123456789'
6636as_cr_alnum=$as_cr_Letters$as_cr_digits
6637
6638# The user is always right.
6639if test "${PATH_SEPARATOR+set}" != set; then
6640 echo "#! /bin/sh" >conf$$.sh
6641 echo "exit 0" >>conf$$.sh
6642 chmod +x conf$$.sh
6643 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6644 PATH_SEPARATOR=';'
6645 else
6646 PATH_SEPARATOR=:
6647 fi
6648 rm -f conf$$.sh
6649fi
6650
6651
6652 as_lineno_1=$LINENO
6653 as_lineno_2=$LINENO
6654 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6655 test "x$as_lineno_1" != "x$as_lineno_2" &&
6656 test "x$as_lineno_3" = "x$as_lineno_2" || {
6657 # Find who we are. Look in the path if we contain no path at all
6658 # relative or not.
6659 case $0 in
6660 *[\\/]* ) as_myself=$0 ;;
6661 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662for as_dir in $PATH
6663do
6664 IFS=$as_save_IFS
6665 test -z "$as_dir" && as_dir=.
6666 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6667done
6668
6669 ;;
6670 esac
6671 # We did not find ourselves, most probably we were run as `sh COMMAND'
6672 # in which case we are not to be found in the path.
6673 if test "x$as_myself" = x; then
6674 as_myself=$0
6675 fi
6676 if test ! -f "$as_myself"; then
6677 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6678echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6679 { (exit 1); exit 1; }; }
6680 fi
6681 case $CONFIG_SHELL in
6682 '')
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6685do
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
6688 for as_base in sh bash ksh sh5; do
6689 case $as_dir in
6690 /*)
6691 if ("$as_dir/$as_base" -c '
6692 as_lineno_1=$LINENO
6693 as_lineno_2=$LINENO
6694 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6695 test "x$as_lineno_1" != "x$as_lineno_2" &&
6696 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6697 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6698 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6699 CONFIG_SHELL=$as_dir/$as_base
6700 export CONFIG_SHELL
6701 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6702 fi;;
6703 esac
6704 done
6705done
6706;;
6707 esac
6708
6709 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6710 # uniformly replaced by the line number. The first 'sed' inserts a
6711 # line-number line before each line; the second 'sed' does the real
6712 # work. The second script uses 'N' to pair each line-number line
6713 # with the numbered line, and appends trailing '-' during
6714 # substitution so that $LINENO is not a special case at line end.
6715 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6716 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6717 sed '=' <$as_myself |
6718 sed '
6719 N
6720 s,$,-,
6721 : loop
6722 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6723 t loop
6724 s,-$,,
6725 s,^['$as_cr_digits']*\n,,
6726 ' >$as_me.lineno &&
6727 chmod +x $as_me.lineno ||
6728 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6729echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6730 { (exit 1); exit 1; }; }
6731
6732 # Don't try to exec as it changes $[0], causing all sort of problems
6733 # (the dirname of $[0] is not the place where we might find the
6734 # original and so on. Autoconf is especially sensible to this).
6735 . ./$as_me.lineno
6736 # Exit status is that of the last command.
6737 exit
6738}
6739
6740
6741case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6742 *c*,-n*) ECHO_N= ECHO_C='
6743' ECHO_T=' ' ;;
6744 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6745 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6746esac
9255ee31
EZ
6747
6748if expr a : '\(a\)' >/dev/null 2>&1; then
6749 as_expr=expr
6750else
6751 as_expr=false
6752fi
6753
6754rm -f conf$$ conf$$.exe conf$$.file
6755echo >conf$$.file
6756if ln -s conf$$.file conf$$ 2>/dev/null; then
6757 # We could just check for DJGPP; but this test a) works b) is more generic
6758 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6759 if test -f conf$$.exe; then
6760 # Don't use ln at all; we don't have any links
6761 as_ln_s='cp -p'
6762 else
6763 as_ln_s='ln -s'
6764 fi
6765elif ln conf$$.file conf$$ 2>/dev/null; then
6766 as_ln_s=ln
6767else
6768 as_ln_s='cp -p'
6769fi
6770rm -f conf$$ conf$$.exe conf$$.file
6771
25ed0b71
KW
6772if mkdir -p . 2>/dev/null; then
6773 as_mkdir_p=:
9255ee31 6774else
25ed0b71 6775 as_mkdir_p=false
9255ee31
EZ
6776fi
6777
25ed0b71
KW
6778as_executable_p="test -f"
6779
6780# Sed expression to map a string onto a valid CPP name.
6781as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6782
6783# Sed expression to map a string onto a valid variable name.
6784as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6785
9255ee31
EZ
6786
6787# IFS
6788# We need space, tab and new line, in precisely that order.
6789as_nl='
6790'
6791IFS=" $as_nl"
6792
6793# CDPATH.
25ed0b71 6794$as_unset CDPATH
9255ee31
EZ
6795
6796exec 6>&1
6797
25ed0b71
KW
6798# Open the log real soon, to keep \$[0] and so on meaningful, and to
6799# report actual input values of CONFIG_FILES etc. instead of their
6800# values after options handling. Logging --version etc. is OK.
6801exec 5>>config.log
6802{
6803 echo
6804 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6805## Running $as_me. ##
6806_ASBOX
6807} >&5
6808cat >&5 <<_CSEOF
6809
6810This file was extended by readline $as_me 4.3, which was
6811generated by GNU Autoconf 2.57. Invocation command line was
6812
6813 CONFIG_FILES = $CONFIG_FILES
6814 CONFIG_HEADERS = $CONFIG_HEADERS
6815 CONFIG_LINKS = $CONFIG_LINKS
6816 CONFIG_COMMANDS = $CONFIG_COMMANDS
6817 $ $0 $@
6818
6819_CSEOF
6820echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6821echo >&5
9255ee31
EZ
6822_ACEOF
6823
6824# Files that config.status was made for.
6825if test -n "$ac_config_files"; then
6826 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6827fi
6828
6829if test -n "$ac_config_headers"; then
6830 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6831fi
6832
6833if test -n "$ac_config_links"; then
6834 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6835fi
6836
6837if test -n "$ac_config_commands"; then
6838 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6839fi
6840
25ed0b71 6841cat >>$CONFIG_STATUS <<\_ACEOF
9255ee31
EZ
6842
6843ac_cs_usage="\
6844\`$as_me' instantiates files from templates according to the
6845current configuration.
6846
6847Usage: $0 [OPTIONS] [FILE]...
6848
6849 -h, --help print this help, then exit
6850 -V, --version print version number, then exit
25ed0b71 6851 -q, --quiet do not print progress messages
9255ee31
EZ
6852 -d, --debug don't remove temporary files
6853 --recheck update $as_me by reconfiguring in the same conditions
6854 --file=FILE[:TEMPLATE]
6855 instantiate the configuration file FILE
6856 --header=FILE[:TEMPLATE]
6857 instantiate the configuration header FILE
6858
6859Configuration files:
6860$config_files
6861
6862Configuration headers:
6863$config_headers
6864
6865Configuration commands:
6866$config_commands
6867
6868Report bugs to <bug-autoconf@gnu.org>."
25ed0b71 6869_ACEOF
9255ee31 6870
25ed0b71 6871cat >>$CONFIG_STATUS <<_ACEOF
9255ee31
EZ
6872ac_cs_version="\\
6873readline config.status 4.3
25ed0b71 6874configured by $0, generated by GNU Autoconf 2.57,
9255ee31
EZ
6875 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6876
6877Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6878Free Software Foundation, Inc.
6879This config.status script is free software; the Free Software Foundation
6880gives unlimited permission to copy, distribute and modify it."
6881srcdir=$srcdir
6882INSTALL="$INSTALL"
25ed0b71 6883_ACEOF
9255ee31 6884
25ed0b71 6885cat >>$CONFIG_STATUS <<\_ACEOF
9255ee31
EZ
6886# If no file are specified by the user, then we need to provide default
6887# value. By we need to know if files were specified by the user.
6888ac_need_defaults=:
6889while test $# != 0
d60d9f65 6890do
9255ee31
EZ
6891 case $1 in
6892 --*=*)
6893 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6894 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25ed0b71
KW
6895 ac_shift=:
6896 ;;
6897 -*)
6898 ac_option=$1
6899 ac_optarg=$2
6900 ac_shift=shift
9255ee31 6901 ;;
9255ee31
EZ
6902 *) # This is not an option, so the user has probably given explicit
6903 # arguments.
25ed0b71 6904 ac_option=$1
9255ee31
EZ
6905 ac_need_defaults=false;;
6906 esac
6907
25ed0b71 6908 case $ac_option in
9255ee31 6909 # Handling of the options.
25ed0b71
KW
6910_ACEOF
6911cat >>$CONFIG_STATUS <<\_ACEOF
d60d9f65 6912 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25ed0b71 6913 ac_cs_recheck=: ;;
9255ee31
EZ
6914 --version | --vers* | -V )
6915 echo "$ac_cs_version"; exit 0 ;;
6916 --he | --h)
6917 # Conflict between --help and --header
25ed0b71 6918 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9255ee31
EZ
6919Try \`$0 --help' for more information." >&5
6920echo "$as_me: error: ambiguous option: $1
6921Try \`$0 --help' for more information." >&2;}
6922 { (exit 1); exit 1; }; };;
6923 --help | --hel | -h )
6924 echo "$ac_cs_usage"; exit 0 ;;
6925 --debug | --d* | -d )
6926 debug=: ;;
6927 --file | --fil | --fi | --f )
25ed0b71
KW
6928 $ac_shift
6929 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9255ee31
EZ
6930 ac_need_defaults=false;;
6931 --header | --heade | --head | --hea )
25ed0b71
KW
6932 $ac_shift
6933 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9255ee31 6934 ac_need_defaults=false;;
25ed0b71
KW
6935 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6936 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6937 ac_cs_silent=: ;;
9255ee31
EZ
6938
6939 # This is an error.
25ed0b71 6940 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9255ee31
EZ
6941Try \`$0 --help' for more information." >&5
6942echo "$as_me: error: unrecognized option: $1
6943Try \`$0 --help' for more information." >&2;}
6944 { (exit 1); exit 1; }; } ;;
6945
6946 *) ac_config_targets="$ac_config_targets $1" ;;
6947
d60d9f65 6948 esac
9255ee31 6949 shift
d60d9f65
SS
6950done
6951
25ed0b71 6952ac_configure_extra_args=
9255ee31 6953
25ed0b71
KW
6954if $ac_cs_silent; then
6955 exec 6>/dev/null
6956 ac_configure_extra_args="$ac_configure_extra_args --silent"
6957fi
9255ee31 6958
25ed0b71
KW
6959_ACEOF
6960cat >>$CONFIG_STATUS <<_ACEOF
6961if \$ac_cs_recheck; then
6962 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6963 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6964fi
d60d9f65 6965
9255ee31 6966_ACEOF
d60d9f65 6967
25ed0b71
KW
6968
6969
6970
6971
6972cat >>$CONFIG_STATUS <<\_ACEOF
9255ee31
EZ
6973for ac_config_target in $ac_config_targets
6974do
6975 case "$ac_config_target" in
6976 # Handling of arguments.
6977 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6978 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
6979 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
6980 "shlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES shlib/Makefile" ;;
6981 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6982 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
25ed0b71 6983 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9255ee31
EZ
6984echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6985 { (exit 1); exit 1; }; };;
6986 esac
6987done
6988
6989# If the user did not use the arguments to specify the items to instantiate,
6990# then the envvar interface is used. Set only those that are not.
6991# We use the long form for the default assignment because of an extremely
6992# bizarre bug on SunOS 4.1.3.
6993if $ac_need_defaults; then
6994 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6995 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6996 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6997fi
6998
25ed0b71
KW
6999# Have a temporary directory for convenience. Make it in the build tree
7000# simply because there is no reason to put it here, and in addition,
7001# creating and moving files from /tmp can sometimes cause problems.
9255ee31
EZ
7002# Create a temporary directory, and hook for its removal unless debugging.
7003$debug ||
7004{
7005 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7006 trap '{ (exit 1); exit 1; }' 1 2 13 15
7007}
7008
7009# Create a (secure) tmp directory for tmp files.
25ed0b71 7010
9255ee31 7011{
25ed0b71 7012 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9255ee31
EZ
7013 test -n "$tmp" && test -d "$tmp"
7014} ||
7015{
25ed0b71 7016 tmp=./confstat$$-$RANDOM
9255ee31
EZ
7017 (umask 077 && mkdir $tmp)
7018} ||
7019{
25ed0b71 7020 echo "$me: cannot create a temporary directory in ." >&2
9255ee31
EZ
7021 { (exit 1); exit 1; }
7022}
d60d9f65 7023
25ed0b71 7024_ACEOF
d60d9f65 7025
25ed0b71 7026cat >>$CONFIG_STATUS <<_ACEOF
d60d9f65 7027
9255ee31
EZ
7028#
7029# CONFIG_FILES section.
7030#
7031
7032# No need to generate the scripts if there are no CONFIG_FILES.
7033# This happens for instance when ./config.status config.h
7034if test -n "\$CONFIG_FILES"; then
7035 # Protect against being on the right side of a sed subst in config.status.
7036 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7037 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7038s,@SHELL@,$SHELL,;t t
25ed0b71
KW
7039s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7040s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7041s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7042s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7043s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7044s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9255ee31
EZ
7045s,@exec_prefix@,$exec_prefix,;t t
7046s,@prefix@,$prefix,;t t
7047s,@program_transform_name@,$program_transform_name,;t t
7048s,@bindir@,$bindir,;t t
7049s,@sbindir@,$sbindir,;t t
7050s,@libexecdir@,$libexecdir,;t t
7051s,@datadir@,$datadir,;t t
7052s,@sysconfdir@,$sysconfdir,;t t
7053s,@sharedstatedir@,$sharedstatedir,;t t
7054s,@localstatedir@,$localstatedir,;t t
7055s,@libdir@,$libdir,;t t
7056s,@includedir@,$includedir,;t t
7057s,@oldincludedir@,$oldincludedir,;t t
7058s,@infodir@,$infodir,;t t
7059s,@mandir@,$mandir,;t t
9255ee31
EZ
7060s,@build_alias@,$build_alias,;t t
7061s,@host_alias@,$host_alias,;t t
7062s,@target_alias@,$target_alias,;t t
25ed0b71 7063s,@DEFS@,$DEFS,;t t
9255ee31
EZ
7064s,@ECHO_C@,$ECHO_C,;t t
7065s,@ECHO_N@,$ECHO_N,;t t
7066s,@ECHO_T@,$ECHO_T,;t t
9255ee31
EZ
7067s,@LIBS@,$LIBS,;t t
7068s,@build@,$build,;t t
7069s,@build_cpu@,$build_cpu,;t t
7070s,@build_vendor@,$build_vendor,;t t
7071s,@build_os@,$build_os,;t t
7072s,@host@,$host,;t t
7073s,@host_cpu@,$host_cpu,;t t
7074s,@host_vendor@,$host_vendor,;t t
7075s,@host_os@,$host_os,;t t
7076s,@SET_MAKE@,$SET_MAKE,;t t
7077s,@CC@,$CC,;t t
7078s,@CFLAGS@,$CFLAGS,;t t
7079s,@LDFLAGS@,$LDFLAGS,;t t
7080s,@CPPFLAGS@,$CPPFLAGS,;t t
7081s,@ac_ct_CC@,$ac_ct_CC,;t t
7082s,@EXEEXT@,$EXEEXT,;t t
7083s,@OBJEXT@,$OBJEXT,;t t
7084s,@CPP@,$CPP,;t t
25ed0b71 7085s,@EGREP@,$EGREP,;t t
9255ee31
EZ
7086s,@CROSS_COMPILING_FLAG@,$CROSS_COMPILING_FLAG,;t t
7087s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
7088s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7089s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7090s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7091s,@AR@,$AR,;t t
7092s,@RANLIB@,$RANLIB,;t t
7093s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7094s,@MAKE_SHELL@,$MAKE_SHELL,;t t
25ed0b71 7095s,@WCWIDTH_OBJ@,$WCWIDTH_OBJ,;t t
9255ee31
EZ
7096s,@SHOBJ_CC@,$SHOBJ_CC,;t t
7097s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
7098s,@SHOBJ_LD@,$SHOBJ_LD,;t t
7099s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
7100s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
7101s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
7102s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
7103s,@SHLIB_STATUS@,$SHLIB_STATUS,;t t
7104s,@SHLIB_XLDFLAGS@,$SHLIB_XLDFLAGS,;t t
7105s,@SHLIB_LIBSUFF@,$SHLIB_LIBSUFF,;t t
7106s,@SHLIB_LIBVERSION@,$SHLIB_LIBVERSION,;t t
7107s,@SHLIB_LIBS@,$SHLIB_LIBS,;t t
7108s,@SHLIB_MAJOR@,$SHLIB_MAJOR,;t t
7109s,@SHLIB_MINOR@,$SHLIB_MINOR,;t t
7110s,@STATIC_TARGET@,$STATIC_TARGET,;t t
7111s,@SHARED_TARGET@,$SHARED_TARGET,;t t
7112s,@STATIC_INSTALL_TARGET@,$STATIC_INSTALL_TARGET,;t t
7113s,@SHARED_INSTALL_TARGET@,$SHARED_INSTALL_TARGET,;t t
7114s,@BUILD_DIR@,$BUILD_DIR,;t t
7115s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
7116s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
7117s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
7118s,@ARFLAGS@,$ARFLAGS,;t t
7119s,@LIBVERSION@,$LIBVERSION,;t t
7120s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
25ed0b71
KW
7121s,@LIBOBJS@,$LIBOBJS,;t t
7122s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9255ee31
EZ
7123CEOF
7124
25ed0b71 7125_ACEOF
9255ee31 7126
25ed0b71 7127 cat >>$CONFIG_STATUS <<\_ACEOF
9255ee31
EZ
7128 # Split the substitutions into bite-sized pieces for seds with
7129 # small command number limits, like on Digital OSF/1 and HP-UX.
7130 ac_max_sed_lines=48
7131 ac_sed_frag=1 # Number of current file.
7132 ac_beg=1 # First line for current file.
7133 ac_end=$ac_max_sed_lines # Line after last line for current file.
7134 ac_more_lines=:
7135 ac_sed_cmds=
7136 while $ac_more_lines; do
7137 if test $ac_beg -gt 1; then
7138 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7139 else
7140 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7141 fi
7142 if test ! -s $tmp/subs.frag; then
7143 ac_more_lines=false
d60d9f65 7144 else
9255ee31
EZ
7145 # The purpose of the label and of the branching condition is to
7146 # speed up the sed processing (if there are no `@' at all, there
7147 # is no need to browse any of the substitutions).
7148 # These are the two extra sed commands mentioned above.
7149 (echo ':t
7150 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7151 if test -z "$ac_sed_cmds"; then
7152 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7153 else
7154 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7155 fi
7156 ac_sed_frag=`expr $ac_sed_frag + 1`
7157 ac_beg=$ac_end
7158 ac_end=`expr $ac_end + $ac_max_sed_lines`
d60d9f65 7159 fi
9255ee31
EZ
7160 done
7161 if test -z "$ac_sed_cmds"; then
7162 ac_sed_cmds=cat
d60d9f65 7163 fi
9255ee31 7164fi # test -n "$CONFIG_FILES"
d60d9f65 7165
25ed0b71
KW
7166_ACEOF
7167cat >>$CONFIG_STATUS <<\_ACEOF
9255ee31 7168for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
d60d9f65 7169 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9255ee31
EZ
7170 case $ac_file in
7171 - | *:- | *:-:* ) # input from stdin
7172 cat >$tmp/stdin
7173 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7174 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7175 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7176 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7177 * ) ac_file_in=$ac_file.in ;;
d60d9f65
SS
7178 esac
7179
9255ee31 7180 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25ed0b71
KW
7181 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7182$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9255ee31
EZ
7183 X"$ac_file" : 'X\(//\)[^/]' \| \
7184 X"$ac_file" : 'X\(//\)$' \| \
7185 X"$ac_file" : 'X\(/\)' \| \
7186 . : '\(.\)' 2>/dev/null ||
7187echo X"$ac_file" |
7188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7189 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7190 /^X\(\/\/\)$/{ s//\1/; q; }
7191 /^X\(\/\).*/{ s//\1/; q; }
7192 s/.*/./; q'`
25ed0b71
KW
7193 { if $as_mkdir_p; then
7194 mkdir -p "$ac_dir"
d60d9f65 7195 else
25ed0b71
KW
7196 as_dir="$ac_dir"
7197 as_dirs=
7198 while test ! -d "$as_dir"; do
7199 as_dirs="$as_dir $as_dirs"
7200 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7201$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7202 X"$as_dir" : 'X\(//\)[^/]' \| \
7203 X"$as_dir" : 'X\(//\)$' \| \
7204 X"$as_dir" : 'X\(/\)' \| \
7205 . : '\(.\)' 2>/dev/null ||
7206echo X"$as_dir" |
7207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7208 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7209 /^X\(\/\/\)$/{ s//\1/; q; }
7210 /^X\(\/\).*/{ s//\1/; q; }
7211 s/.*/./; q'`
7212 done
7213 test ! -n "$as_dirs" || mkdir $as_dirs
7214 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7215echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7216 { (exit 1); exit 1; }; }; }
d60d9f65 7217
25ed0b71
KW
7218 ac_builddir=.
7219
7220if test "$ac_dir" != .; then
7221 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7222 # A "../" for each directory in $ac_dir_suffix.
7223 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7224else
7225 ac_dir_suffix= ac_top_builddir=
7226fi
7227
7228case $srcdir in
7229 .) # No --srcdir option. We are building in place.
7230 ac_srcdir=.
7231 if test -z "$ac_top_builddir"; then
7232 ac_top_srcdir=.
7233 else
7234 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7235 fi ;;
7236 [\\/]* | ?:[\\/]* ) # Absolute path.
7237 ac_srcdir=$srcdir$ac_dir_suffix;
7238 ac_top_srcdir=$srcdir ;;
d60d9f65 7239 *) # Relative path.
25ed0b71
KW
7240 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7241 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7242esac
7243# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7244# absolute.
7245ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7246ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7247ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7248ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7249
d60d9f65 7250
9255ee31
EZ
7251 case $INSTALL in
7252 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25ed0b71 7253 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
d60d9f65
SS
7254 esac
7255
9255ee31 7256 if test x"$ac_file" != x-; then
25ed0b71 7257 { echo "$as_me:$LINENO: creating $ac_file" >&5
9255ee31
EZ
7258echo "$as_me: creating $ac_file" >&6;}
7259 rm -f "$ac_file"
7260 fi
7261 # Let's still pretend it is `configure' which instantiates (i.e., don't
7262 # use $as_me), people would be surprised to read:
25ed0b71
KW
7263 # /* config.h. Generated by config.status. */
7264 if test x"$ac_file" = x-; then
7265 configure_input=
7266 else
7267 configure_input="$ac_file. "
7268 fi
7269 configure_input=$configure_input"Generated from `echo $ac_file_in |
7270 sed 's,.*/,,'` by configure."
9255ee31
EZ
7271
7272 # First look for the input files in the build tree, otherwise in the
7273 # src tree.
7274 ac_file_inputs=`IFS=:
7275 for f in $ac_file_in; do
7276 case $f in
7277 -) echo $tmp/stdin ;;
7278 [\\/$]*)
7279 # Absolute (can't be DOS-style, as IFS=:)
25ed0b71 7280 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9255ee31
EZ
7281echo "$as_me: error: cannot find input file: $f" >&2;}
7282 { (exit 1); exit 1; }; }
7283 echo $f;;
7284 *) # Relative
7285 if test -f "$f"; then
7286 # Build tree
7287 echo $f
7288 elif test -f "$srcdir/$f"; then
7289 # Source tree
7290 echo $srcdir/$f
7291 else
7292 # /dev/null tree
25ed0b71 7293 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9255ee31
EZ
7294echo "$as_me: error: cannot find input file: $f" >&2;}
7295 { (exit 1); exit 1; }; }
7296 fi;;
7297 esac
7298 done` || { (exit 1); exit 1; }
25ed0b71
KW
7299_ACEOF
7300cat >>$CONFIG_STATUS <<_ACEOF
9255ee31
EZ
7301 sed "$ac_vpsub
7302$extrasub
25ed0b71
KW
7303_ACEOF
7304cat >>$CONFIG_STATUS <<\_ACEOF
9255ee31
EZ
7305:t
7306/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7307s,@configure_input@,$configure_input,;t t
7308s,@srcdir@,$ac_srcdir,;t t
25ed0b71 7309s,@abs_srcdir@,$ac_abs_srcdir,;t t
9255ee31 7310s,@top_srcdir@,$ac_top_srcdir,;t t
25ed0b71
KW
7311s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7312s,@builddir@,$ac_builddir,;t t
7313s,@abs_builddir@,$ac_abs_builddir,;t t
7314s,@top_builddir@,$ac_top_builddir,;t t
7315s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9255ee31
EZ
7316s,@INSTALL@,$ac_INSTALL,;t t
7317" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7318 rm -f $tmp/stdin
7319 if test x"$ac_file" != x-; then
7320 mv $tmp/out $ac_file
7321 else
7322 cat $tmp/out
7323 rm -f $tmp/out
7324 fi
7325
7326done
25ed0b71
KW
7327_ACEOF
7328cat >>$CONFIG_STATUS <<\_ACEOF
d60d9f65 7329
9255ee31
EZ
7330#
7331# CONFIG_HEADER section.
7332#
d60d9f65
SS
7333
7334# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7335# NAME is the cpp macro being defined and VALUE is the value it is being given.
7336#
7337# ac_d sets the value in "#define NAME VALUE" lines.
9255ee31
EZ
7338ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7339ac_dB='[ ].*$,\1#\2'
7340ac_dC=' '
7341ac_dD=',;t'
7342# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7343ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7344ac_uB='$,\1#\2define\3'
d60d9f65 7345ac_uC=' '
9255ee31 7346ac_uD=',;t'
d60d9f65 7347
9255ee31 7348for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
d60d9f65 7349 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9255ee31
EZ
7350 case $ac_file in
7351 - | *:- | *:-:* ) # input from stdin
7352 cat >$tmp/stdin
7353 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7354 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7355 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7356 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7357 * ) ac_file_in=$ac_file.in ;;
d60d9f65
SS
7358 esac
7359
25ed0b71 7360 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
9255ee31
EZ
7361echo "$as_me: creating $ac_file" >&6;}
7362
7363 # First look for the input files in the build tree, otherwise in the
7364 # src tree.
7365 ac_file_inputs=`IFS=:
7366 for f in $ac_file_in; do
7367 case $f in
7368 -) echo $tmp/stdin ;;
7369 [\\/$]*)
7370 # Absolute (can't be DOS-style, as IFS=:)
25ed0b71 7371 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9255ee31
EZ
7372echo "$as_me: error: cannot find input file: $f" >&2;}
7373 { (exit 1); exit 1; }; }
7374 echo $f;;
7375 *) # Relative
7376 if test -f "$f"; then
7377 # Build tree
7378 echo $f
7379 elif test -f "$srcdir/$f"; then
7380 # Source tree
7381 echo $srcdir/$f
7382 else
7383 # /dev/null tree
25ed0b71 7384 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9255ee31
EZ
7385echo "$as_me: error: cannot find input file: $f" >&2;}
7386 { (exit 1); exit 1; }; }
7387 fi;;
7388 esac
7389 done` || { (exit 1); exit 1; }
7390 # Remove the trailing spaces.
7391 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
d60d9f65 7392
25ed0b71 7393_ACEOF
d60d9f65 7394
9255ee31
EZ
7395# Transform confdefs.h into two sed scripts, `conftest.defines' and
7396# `conftest.undefs', that substitutes the proper values into
7397# config.h.in to produce config.h. The first handles `#define'
7398# templates, and the second `#undef' templates.
7399# And first: Protect against being on the right side of a sed subst in
7400# config.status. Protect against being in an unquoted here document
7401# in config.status.
7402rm -f conftest.defines conftest.undefs
7403# Using a here document instead of a string reduces the quoting nightmare.
7404# Putting comments in sed scripts is not portable.
7405#
7406# `end' is used to avoid that the second main sed command (meant for
7407# 0-ary CPP macros) applies to n-ary macro definitions.
7408# See the Autoconf documentation for `clear'.
25ed0b71 7409cat >confdef2sed.sed <<\_ACEOF
9255ee31
EZ
7410s/[\\&,]/\\&/g
7411s,[\\$`],\\&,g
7412t clear
7413: clear
25ed0b71 7414s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9255ee31
EZ
7415t end
7416s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7417: end
25ed0b71 7418_ACEOF
9255ee31
EZ
7419# If some macros were called several times there might be several times
7420# the same #defines, which is useless. Nevertheless, we may not want to
7421# sort them, since we want the *last* AC-DEFINE to be honored.
7422uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7423sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7424rm -f confdef2sed.sed
d60d9f65
SS
7425
7426# This sed command replaces #undef with comments. This is necessary, for
7427# example, in the case of _POSIX_SOURCE, which is predefined and required
7428# on some systems where configure will not decide to define it.
25ed0b71 7429cat >>conftest.undefs <<\_ACEOF
9255ee31 7430s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25ed0b71 7431_ACEOF
d60d9f65 7432
9255ee31
EZ
7433# Break up conftest.defines because some shells have a limit on the size
7434# of here documents, and old seds have small limits too (100 cmds).
7435echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25ed0b71 7436echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9255ee31
EZ
7437echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7438echo ' :' >>$CONFIG_STATUS
7439rm -f conftest.tail
7440while grep . conftest.defines >/dev/null
7441do
7442 # Write a limited-size here document to $tmp/defines.sed.
7443 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7444 # Speed up: don't consider the non `#define' lines.
7445 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7446 # Work around the forget-to-reset-the-flag bug.
7447 echo 't clr' >>$CONFIG_STATUS
7448 echo ': clr' >>$CONFIG_STATUS
7449 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7450 echo 'CEOF
7451 sed -f $tmp/defines.sed $tmp/in >$tmp/out
7452 rm -f $tmp/in
7453 mv $tmp/out $tmp/in
7454' >>$CONFIG_STATUS
7455 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7456 rm -f conftest.defines
7457 mv conftest.tail conftest.defines
7458done
7459rm -f conftest.defines
25ed0b71 7460echo ' fi # grep' >>$CONFIG_STATUS
9255ee31 7461echo >>$CONFIG_STATUS
d60d9f65 7462
9255ee31
EZ
7463# Break up conftest.undefs because some shells have a limit on the size
7464# of here documents, and old seds have small limits too (100 cmds).
7465echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
d60d9f65 7466rm -f conftest.tail
9255ee31 7467while grep . conftest.undefs >/dev/null
d60d9f65 7468do
9255ee31
EZ
7469 # Write a limited-size here document to $tmp/undefs.sed.
7470 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7471 # Speed up: don't consider the non `#undef'
7472 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7473 # Work around the forget-to-reset-the-flag bug.
7474 echo 't clr' >>$CONFIG_STATUS
7475 echo ': clr' >>$CONFIG_STATUS
7476 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
d60d9f65 7477 echo 'CEOF
9255ee31
EZ
7478 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7479 rm -f $tmp/in
7480 mv $tmp/out $tmp/in
7481' >>$CONFIG_STATUS
7482 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7483 rm -f conftest.undefs
7484 mv conftest.tail conftest.undefs
d60d9f65 7485done
9255ee31
EZ
7486rm -f conftest.undefs
7487
25ed0b71 7488cat >>$CONFIG_STATUS <<\_ACEOF
9255ee31
EZ
7489 # Let's still pretend it is `configure' which instantiates (i.e., don't
7490 # use $as_me), people would be surprised to read:
25ed0b71 7491 # /* config.h. Generated by config.status. */
9255ee31 7492 if test x"$ac_file" = x-; then
25ed0b71 7493 echo "/* Generated by configure. */" >$tmp/config.h
d60d9f65 7494 else
25ed0b71 7495 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9255ee31
EZ
7496 fi
7497 cat $tmp/in >>$tmp/config.h
7498 rm -f $tmp/in
7499 if test x"$ac_file" != x-; then
25ed0b71
KW
7500 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7501 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9255ee31
EZ
7502echo "$as_me: $ac_file is unchanged" >&6;}
7503 else
25ed0b71
KW
7504 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7505$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9255ee31
EZ
7506 X"$ac_file" : 'X\(//\)[^/]' \| \
7507 X"$ac_file" : 'X\(//\)$' \| \
7508 X"$ac_file" : 'X\(/\)' \| \
7509 . : '\(.\)' 2>/dev/null ||
7510echo X"$ac_file" |
7511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7512 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7513 /^X\(\/\/\)$/{ s//\1/; q; }
7514 /^X\(\/\).*/{ s//\1/; q; }
7515 s/.*/./; q'`
25ed0b71
KW
7516 { if $as_mkdir_p; then
7517 mkdir -p "$ac_dir"
7518 else
7519 as_dir="$ac_dir"
7520 as_dirs=
7521 while test ! -d "$as_dir"; do
7522 as_dirs="$as_dir $as_dirs"
7523 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7524$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7525 X"$as_dir" : 'X\(//\)[^/]' \| \
7526 X"$as_dir" : 'X\(//\)$' \| \
7527 X"$as_dir" : 'X\(/\)' \| \
7528 . : '\(.\)' 2>/dev/null ||
7529echo X"$as_dir" |
7530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7531 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7532 /^X\(\/\/\)$/{ s//\1/; q; }
7533 /^X\(\/\).*/{ s//\1/; q; }
7534 s/.*/./; q'`
7535 done
7536 test ! -n "$as_dirs" || mkdir $as_dirs
7537 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7538echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7539 { (exit 1); exit 1; }; }; }
9255ee31 7540
9255ee31
EZ
7541 rm -f $ac_file
7542 mv $tmp/config.h $ac_file
d60d9f65 7543 fi
9255ee31
EZ
7544 else
7545 cat $tmp/config.h
7546 rm -f $tmp/config.h
d60d9f65 7547 fi
9255ee31 7548done
25ed0b71
KW
7549_ACEOF
7550cat >>$CONFIG_STATUS <<\_ACEOF
d60d9f65 7551
9255ee31
EZ
7552#
7553# CONFIG_COMMANDS section.
7554#
7555for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7556 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7557 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25ed0b71
KW
7558 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7559$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7560 X"$ac_dest" : 'X\(//\)[^/]' \| \
7561 X"$ac_dest" : 'X\(//\)$' \| \
7562 X"$ac_dest" : 'X\(/\)' \| \
7563 . : '\(.\)' 2>/dev/null ||
7564echo X"$ac_dest" |
7565 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7566 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7567 /^X\(\/\/\)$/{ s//\1/; q; }
7568 /^X\(\/\).*/{ s//\1/; q; }
7569 s/.*/./; q'`
7570 ac_builddir=.
7571
7572if test "$ac_dir" != .; then
7573 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7574 # A "../" for each directory in $ac_dir_suffix.
7575 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7576else
7577 ac_dir_suffix= ac_top_builddir=
7578fi
7579
7580case $srcdir in
7581 .) # No --srcdir option. We are building in place.
7582 ac_srcdir=.
7583 if test -z "$ac_top_builddir"; then
7584 ac_top_srcdir=.
7585 else
7586 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7587 fi ;;
7588 [\\/]* | ?:[\\/]* ) # Absolute path.
7589 ac_srcdir=$srcdir$ac_dir_suffix;
7590 ac_top_srcdir=$srcdir ;;
7591 *) # Relative path.
7592 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7593 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7594esac
7595# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7596# absolute.
7597ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7598ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
7599ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7600ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7601
d60d9f65 7602
25ed0b71
KW
7603 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7604echo "$as_me: executing $ac_dest commands" >&6;}
9255ee31
EZ
7605 case $ac_dest in
7606 default )
d60d9f65
SS
7607# Makefile uses this timestamp file to record whether config.h is up to date.
7608echo > stamp-h
9255ee31
EZ
7609 ;;
7610 esac
7611done
25ed0b71 7612_ACEOF
d60d9f65 7613
25ed0b71 7614cat >>$CONFIG_STATUS <<\_ACEOF
9255ee31
EZ
7615
7616{ (exit 0); exit 0; }
25ed0b71 7617_ACEOF
d60d9f65 7618chmod +x $CONFIG_STATUS
9255ee31
EZ
7619ac_clean_files=$ac_clean_files_save
7620
25ed0b71 7621
9255ee31
EZ
7622# configure is writing to config.log, and then calls config.status.
7623# config.status does its own redirection, appending to config.log.
7624# Unfortunately, on DOS this fails, as config.log is still kept open
7625# by configure, so config.status won't be able to write to it; its
7626# output is simply discarded. So we exec the FD to /dev/null,
7627# effectively closing config.log, so it can be properly (re)opened and
7628# appended to by config.status. When coming back to configure, we
7629# need to make the FD available again.
7630if test "$no_create" != yes; then
7631 ac_cs_success=:
25ed0b71
KW
7632 ac_config_status_args=
7633 test "$silent" = yes &&
7634 ac_config_status_args="$ac_config_status_args --quiet"
9255ee31 7635 exec 5>/dev/null
25ed0b71 7636 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9255ee31
EZ
7637 exec 5>>config.log
7638 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7639 # would make configure fail if this is the last instruction.
7640 $ac_cs_success || { (exit 1); exit 1; }
7641fi
d60d9f65 7642
This page took 0.541427 seconds and 4 git commands to generate.