Commit | Line | Data |
---|---|---|
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. |
430b7832 | 4 | # Generated by GNU Autoconf 2.59 for readline 4.3. |
9255ee31 EZ |
5 | # |
6 | # Report bugs to <bug-readline@gnu.org>. | |
7 | # | |
430b7832 | 8 | # Copyright (C) 2003 Free Software Foundation, Inc. |
9255ee31 EZ |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. | |
25ed0b71 KW |
11 | ## --------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## --------------------- ## | |
d60d9f65 | 14 | |
25ed0b71 KW |
15 | # Be Bourne compatible |
16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
17 | emulate sh | |
18 | NULLCMD=: | |
19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
20 | # is contrary to our usage. Disable this feature. | |
21 | alias -g '${1+"$@"}'='"$@"' | |
22 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
23 | set -o posix | |
24 | fi | |
430b7832 | 25 | DUALCASE=1; export DUALCASE # for MKS sh |
25ed0b71 KW |
26 | |
27 | # Support unset when possible. | |
430b7832 | 28 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
25ed0b71 KW |
29 | as_unset=unset |
30 | else | |
31 | as_unset=false | |
32 | fi | |
33 | ||
34 | ||
35 | # Work around bugs in pre-3.0 UWIN ksh. | |
36 | $as_unset ENV MAIL MAILPATH | |
37 | PS1='$ ' | |
38 | PS2='> ' | |
39 | PS4='+ ' | |
40 | ||
41 | # NLS nuisances. | |
42 | for as_var in \ | |
43 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
44 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
45 | LC_TELEPHONE LC_TIME | |
46 | do | |
430b7832 | 47 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
25ed0b71 KW |
48 | eval $as_var=C; export $as_var |
49 | else | |
50 | $as_unset $as_var | |
51 | fi | |
52 | done | |
53 | ||
54 | # Required to use basename. | |
55 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
56 | as_expr=expr | |
57 | else | |
58 | as_expr=false | |
59 | fi | |
60 | ||
61 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
62 | as_basename=basename | |
63 | else | |
64 | as_basename=false | |
65 | fi | |
66 | ||
67 | ||
68 | # Name of the executable. | |
69 | as_me=`$as_basename "$0" || | |
70 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
71 | X"$0" : 'X\(//\)$' \| \ | |
72 | X"$0" : 'X\(/\)$' \| \ | |
73 | . : '\(.\)' 2>/dev/null || | |
74 | echo X/"$0" | | |
75 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
76 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
77 | /^X\/\(\/\).*/{ s//\1/; q; } | |
78 | s/.*/./; q'` | |
79 | ||
80 | ||
81 | # PATH needs CR, and LINENO needs CR and PATH. | |
9255ee31 EZ |
82 | # Avoid depending upon Character Ranges. |
83 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
84 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
85 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
86 | as_cr_digits='0123456789' | |
87 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
d60d9f65 | 88 | |
25ed0b71 KW |
89 | # The user is always right. |
90 | if test "${PATH_SEPARATOR+set}" != set; then | |
91 | echo "#! /bin/sh" >conf$$.sh | |
92 | echo "exit 0" >>conf$$.sh | |
93 | chmod +x conf$$.sh | |
94 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
95 | PATH_SEPARATOR=';' | |
96 | else | |
97 | PATH_SEPARATOR=: | |
98 | fi | |
99 | rm -f conf$$.sh | |
100 | fi | |
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 | |
113 | for as_dir in $PATH | |
114 | do | |
115 | IFS=$as_save_IFS | |
116 | test -z "$as_dir" && as_dir=. | |
117 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
118 | done | |
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 | |
134 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
135 | do | |
136 | IFS=$as_save_IFS | |
137 | test -z "$as_dir" && as_dir=. | |
138 | for as_base in sh bash ksh sh5; do | |
139 | case $as_dir in | |
140 | /*) | |
141 | if ("$as_dir/$as_base" -c ' | |
142 | as_lineno_1=$LINENO | |
143 | as_lineno_2=$LINENO | |
144 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
145 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
146 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
147 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
148 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
149 | CONFIG_SHELL=$as_dir/$as_base | |
150 | export CONFIG_SHELL | |
151 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
152 | fi;; | |
153 | esac | |
154 | done | |
155 | done | |
156 | ;; | |
157 | esac | |
158 | ||
159 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
160 | # uniformly replaced by the line number. The first 'sed' inserts a | |
161 | # line-number line before each line; the second 'sed' does the real | |
162 | # work. The second script uses 'N' to pair each line-number line | |
163 | # with the numbered line, and appends trailing '-' during | |
164 | # substitution so that $LINENO is not a special case at line end. | |
165 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
166 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
167 | sed '=' <$as_myself | | |
168 | sed ' | |
169 | N | |
170 | s,$,-, | |
171 | : loop | |
172 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
173 | t loop | |
174 | s,-$,, | |
175 | s,^['$as_cr_digits']*\n,, | |
176 | ' >$as_me.lineno && | |
177 | chmod +x $as_me.lineno || | |
178 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
179 | { (exit 1); exit 1; }; } | |
180 | ||
181 | # Don't try to exec as it changes $[0], causing all sort of problems | |
182 | # (the dirname of $[0] is not the place where we might find the | |
183 | # original and so on. Autoconf is especially sensible to this). | |
184 | . ./$as_me.lineno | |
185 | # Exit status is that of the last command. | |
186 | exit | |
187 | } | |
188 | ||
189 | ||
190 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
191 | *c*,-n*) ECHO_N= ECHO_C=' | |
192 | ' ECHO_T=' ' ;; | |
193 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
194 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
195 | esac | |
d60d9f65 | 196 | |
9255ee31 EZ |
197 | if expr a : '\(a\)' >/dev/null 2>&1; then |
198 | as_expr=expr | |
199 | else | |
200 | as_expr=false | |
201 | fi | |
d60d9f65 | 202 | |
9255ee31 EZ |
203 | rm -f conf$$ conf$$.exe conf$$.file |
204 | echo >conf$$.file | |
205 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
206 | # We could just check for DJGPP; but this test a) works b) is more generic | |
207 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
208 | if test -f conf$$.exe; then | |
209 | # Don't use ln at all; we don't have any links | |
210 | as_ln_s='cp -p' | |
211 | else | |
212 | as_ln_s='ln -s' | |
213 | fi | |
214 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
215 | as_ln_s=ln | |
216 | else | |
217 | as_ln_s='cp -p' | |
218 | fi | |
219 | rm -f conf$$ conf$$.exe conf$$.file | |
d60d9f65 | 220 | |
25ed0b71 KW |
221 | if mkdir -p . 2>/dev/null; then |
222 | as_mkdir_p=: | |
9255ee31 | 223 | else |
430b7832 | 224 | test -d ./-p && rmdir ./-p |
25ed0b71 | 225 | as_mkdir_p=false |
9255ee31 | 226 | fi |
d60d9f65 | 227 | |
25ed0b71 KW |
228 | as_executable_p="test -f" |
229 | ||
230 | # Sed expression to map a string onto a valid CPP name. | |
430b7832 | 231 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
25ed0b71 KW |
232 | |
233 | # Sed expression to map a string onto a valid variable name. | |
430b7832 | 234 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
25ed0b71 | 235 | |
9255ee31 EZ |
236 | |
237 | # IFS | |
238 | # We need space, tab and new line, in precisely that order. | |
239 | as_nl=' | |
240 | ' | |
241 | IFS=" $as_nl" | |
242 | ||
243 | # CDPATH. | |
25ed0b71 KW |
244 | $as_unset CDPATH |
245 | ||
9255ee31 EZ |
246 | |
247 | # Name of the host. | |
248 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
249 | # so uname gets run too. | |
250 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
251 | ||
252 | exec 6>&1 | |
d60d9f65 | 253 | |
d60d9f65 | 254 | # |
9255ee31 EZ |
255 | # Initializations. |
256 | # | |
d60d9f65 | 257 | ac_default_prefix=/usr/local |
25ed0b71 | 258 | ac_config_libobj_dir=. |
9255ee31 EZ |
259 | cross_compiling=no |
260 | subdirs= | |
25ed0b71 KW |
261 | MFLAGS= |
262 | MAKEFLAGS= | |
9255ee31 EZ |
263 | SHELL=${CONFIG_SHELL-/bin/sh} |
264 | ||
265 | # Maximum number of lines to put in a shell here document. | |
266 | # This variable seems obsolete. It should probably be removed, and | |
267 | # only ac_max_sed_lines should be used. | |
268 | : ${ac_max_here_lines=38} | |
269 | ||
25ed0b71 KW |
270 | # Identity of this package. |
271 | PACKAGE_NAME='readline' | |
272 | PACKAGE_TARNAME='readline' | |
273 | PACKAGE_VERSION='4.3' | |
274 | PACKAGE_STRING='readline 4.3' | |
275 | PACKAGE_BUGREPORT='bug-readline@gnu.org' | |
276 | ||
9255ee31 EZ |
277 | ac_unique_file="readline.h" |
278 | # Factoring default headers for most tests. | |
279 | ac_includes_default="\ | |
280 | #include <stdio.h> | |
281 | #if HAVE_SYS_TYPES_H | |
282 | # include <sys/types.h> | |
283 | #endif | |
284 | #if HAVE_SYS_STAT_H | |
285 | # include <sys/stat.h> | |
286 | #endif | |
287 | #if STDC_HEADERS | |
288 | # include <stdlib.h> | |
289 | # include <stddef.h> | |
290 | #else | |
291 | # if HAVE_STDLIB_H | |
292 | # include <stdlib.h> | |
293 | # endif | |
294 | #endif | |
295 | #if HAVE_STRING_H | |
296 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
297 | # include <memory.h> | |
298 | # endif | |
299 | # include <string.h> | |
300 | #endif | |
301 | #if HAVE_STRINGS_H | |
302 | # include <strings.h> | |
303 | #endif | |
304 | #if HAVE_INTTYPES_H | |
305 | # include <inttypes.h> | |
306 | #else | |
307 | # if HAVE_STDINT_H | |
308 | # include <stdint.h> | |
309 | # endif | |
310 | #endif | |
311 | #if HAVE_UNISTD_H | |
312 | # include <unistd.h> | |
313 | #endif" | |
d60d9f65 | 314 | |
25ed0b71 KW |
315 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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' |
316 | ac_subst_files='' | |
317 | ||
d60d9f65 | 318 | # Initialize some variables set by options. |
9255ee31 EZ |
319 | ac_init_help= |
320 | ac_init_version=false | |
d60d9f65 SS |
321 | # The variables have the same names as the options, with |
322 | # dashes changed to underlines. | |
9255ee31 | 323 | cache_file=/dev/null |
d60d9f65 | 324 | exec_prefix=NONE |
d60d9f65 | 325 | no_create= |
d60d9f65 SS |
326 | no_recursion= |
327 | prefix=NONE | |
328 | program_prefix=NONE | |
329 | program_suffix=NONE | |
330 | program_transform_name=s,x,x, | |
331 | silent= | |
332 | site= | |
333 | srcdir= | |
d60d9f65 SS |
334 | verbose= |
335 | x_includes=NONE | |
336 | x_libraries=NONE | |
9255ee31 EZ |
337 | |
338 | # Installation directory options. | |
339 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
340 | # and all the variables that are supposed to be based on exec_prefix | |
341 | # by default will actually change. | |
342 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
d60d9f65 SS |
343 | bindir='${exec_prefix}/bin' |
344 | sbindir='${exec_prefix}/sbin' | |
345 | libexecdir='${exec_prefix}/libexec' | |
346 | datadir='${prefix}/share' | |
347 | sysconfdir='${prefix}/etc' | |
348 | sharedstatedir='${prefix}/com' | |
349 | localstatedir='${prefix}/var' | |
350 | libdir='${exec_prefix}/lib' | |
351 | includedir='${prefix}/include' | |
352 | oldincludedir='/usr/include' | |
353 | infodir='${prefix}/info' | |
354 | mandir='${prefix}/man' | |
355 | ||
d60d9f65 SS |
356 | ac_prev= |
357 | for ac_option | |
358 | do | |
d60d9f65 SS |
359 | # If the previous option needs an argument, assign it. |
360 | if test -n "$ac_prev"; then | |
361 | eval "$ac_prev=\$ac_option" | |
362 | ac_prev= | |
363 | continue | |
364 | fi | |
365 | ||
9255ee31 | 366 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
d60d9f65 SS |
367 | |
368 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
369 | ||
9255ee31 | 370 | case $ac_option in |
d60d9f65 SS |
371 | |
372 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
373 | ac_prev=bindir ;; | |
374 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
9255ee31 | 375 | bindir=$ac_optarg ;; |
d60d9f65 SS |
376 | |
377 | -build | --build | --buil | --bui | --bu) | |
9255ee31 | 378 | ac_prev=build_alias ;; |
d60d9f65 | 379 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
9255ee31 | 380 | build_alias=$ac_optarg ;; |
d60d9f65 SS |
381 | |
382 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
383 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
384 | ac_prev=cache_file ;; | |
385 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
386 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
9255ee31 EZ |
387 | cache_file=$ac_optarg ;; |
388 | ||
389 | --config-cache | -C) | |
390 | cache_file=config.cache ;; | |
d60d9f65 SS |
391 | |
392 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
393 | ac_prev=datadir ;; | |
394 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
395 | | --da=*) | |
9255ee31 | 396 | datadir=$ac_optarg ;; |
d60d9f65 SS |
397 | |
398 | -disable-* | --disable-*) | |
9255ee31 | 399 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
d60d9f65 | 400 | # Reject names that are not valid shell variable names. |
9255ee31 EZ |
401 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
402 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
403 | { (exit 1); exit 1; }; } | |
404 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
405 | eval "enable_$ac_feature=no" ;; | |
d60d9f65 SS |
406 | |
407 | -enable-* | --enable-*) | |
9255ee31 | 408 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
d60d9f65 | 409 | # Reject names that are not valid shell variable names. |
9255ee31 EZ |
410 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
411 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
412 | { (exit 1); exit 1; }; } | |
413 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
414 | case $ac_option in | |
415 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
d60d9f65 SS |
416 | *) ac_optarg=yes ;; |
417 | esac | |
9255ee31 | 418 | eval "enable_$ac_feature='$ac_optarg'" ;; |
d60d9f65 SS |
419 | |
420 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
421 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
422 | | --exec | --exe | --ex) | |
423 | ac_prev=exec_prefix ;; | |
424 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
425 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
426 | | --exec=* | --exe=* | --ex=*) | |
9255ee31 | 427 | exec_prefix=$ac_optarg ;; |
d60d9f65 SS |
428 | |
429 | -gas | --gas | --ga | --g) | |
430 | # Obsolete; use --with-gas. | |
431 | with_gas=yes ;; | |
432 | ||
9255ee31 EZ |
433 | -help | --help | --hel | --he | -h) |
434 | ac_init_help=long ;; | |
435 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
436 | ac_init_help=recursive ;; | |
437 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
438 | ac_init_help=short ;; | |
d60d9f65 SS |
439 | |
440 | -host | --host | --hos | --ho) | |
9255ee31 | 441 | ac_prev=host_alias ;; |
d60d9f65 | 442 | -host=* | --host=* | --hos=* | --ho=*) |
9255ee31 | 443 | host_alias=$ac_optarg ;; |
d60d9f65 SS |
444 | |
445 | -includedir | --includedir | --includedi | --included | --include \ | |
446 | | --includ | --inclu | --incl | --inc) | |
447 | ac_prev=includedir ;; | |
448 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
449 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
9255ee31 | 450 | includedir=$ac_optarg ;; |
d60d9f65 SS |
451 | |
452 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
453 | ac_prev=infodir ;; | |
454 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
9255ee31 | 455 | infodir=$ac_optarg ;; |
d60d9f65 SS |
456 | |
457 | -libdir | --libdir | --libdi | --libd) | |
458 | ac_prev=libdir ;; | |
459 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
9255ee31 | 460 | libdir=$ac_optarg ;; |
d60d9f65 SS |
461 | |
462 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
463 | | --libexe | --libex | --libe) | |
464 | ac_prev=libexecdir ;; | |
465 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
466 | | --libexe=* | --libex=* | --libe=*) | |
9255ee31 | 467 | libexecdir=$ac_optarg ;; |
d60d9f65 SS |
468 | |
469 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
470 | | --localstate | --localstat | --localsta | --localst \ | |
471 | | --locals | --local | --loca | --loc | --lo) | |
472 | ac_prev=localstatedir ;; | |
473 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
474 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
475 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
9255ee31 | 476 | localstatedir=$ac_optarg ;; |
d60d9f65 SS |
477 | |
478 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
479 | ac_prev=mandir ;; | |
480 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
9255ee31 | 481 | mandir=$ac_optarg ;; |
d60d9f65 SS |
482 | |
483 | -nfp | --nfp | --nf) | |
484 | # Obsolete; use --without-fp. | |
485 | with_fp=no ;; | |
486 | ||
487 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
25ed0b71 | 488 | | --no-cr | --no-c | -n) |
d60d9f65 SS |
489 | no_create=yes ;; |
490 | ||
491 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
492 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
493 | no_recursion=yes ;; | |
494 | ||
495 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
496 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
497 | | --oldin | --oldi | --old | --ol | --o) | |
498 | ac_prev=oldincludedir ;; | |
499 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
500 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
501 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
9255ee31 | 502 | oldincludedir=$ac_optarg ;; |
d60d9f65 SS |
503 | |
504 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
505 | ac_prev=prefix ;; | |
506 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
9255ee31 | 507 | prefix=$ac_optarg ;; |
d60d9f65 SS |
508 | |
509 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
510 | | --program-pre | --program-pr | --program-p) | |
511 | ac_prev=program_prefix ;; | |
512 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
513 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
9255ee31 | 514 | program_prefix=$ac_optarg ;; |
d60d9f65 SS |
515 | |
516 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
517 | | --program-suf | --program-su | --program-s) | |
518 | ac_prev=program_suffix ;; | |
519 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
520 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
9255ee31 | 521 | program_suffix=$ac_optarg ;; |
d60d9f65 SS |
522 | |
523 | -program-transform-name | --program-transform-name \ | |
524 | | --program-transform-nam | --program-transform-na \ | |
525 | | --program-transform-n | --program-transform- \ | |
526 | | --program-transform | --program-transfor \ | |
527 | | --program-transfo | --program-transf \ | |
528 | | --program-trans | --program-tran \ | |
529 | | --progr-tra | --program-tr | --program-t) | |
530 | ac_prev=program_transform_name ;; | |
531 | -program-transform-name=* | --program-transform-name=* \ | |
532 | | --program-transform-nam=* | --program-transform-na=* \ | |
533 | | --program-transform-n=* | --program-transform-=* \ | |
534 | | --program-transform=* | --program-transfor=* \ | |
535 | | --program-transfo=* | --program-transf=* \ | |
536 | | --program-trans=* | --program-tran=* \ | |
537 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
9255ee31 | 538 | program_transform_name=$ac_optarg ;; |
d60d9f65 SS |
539 | |
540 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
541 | | -silent | --silent | --silen | --sile | --sil) | |
542 | silent=yes ;; | |
543 | ||
544 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
545 | ac_prev=sbindir ;; | |
546 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
547 | | --sbi=* | --sb=*) | |
9255ee31 | 548 | sbindir=$ac_optarg ;; |
d60d9f65 SS |
549 | |
550 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
551 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
552 | | --sharedst | --shareds | --shared | --share | --shar \ | |
553 | | --sha | --sh) | |
554 | ac_prev=sharedstatedir ;; | |
555 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
556 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
557 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
558 | | --sha=* | --sh=*) | |
9255ee31 | 559 | sharedstatedir=$ac_optarg ;; |
d60d9f65 SS |
560 | |
561 | -site | --site | --sit) | |
562 | ac_prev=site ;; | |
563 | -site=* | --site=* | --sit=*) | |
9255ee31 | 564 | site=$ac_optarg ;; |
d60d9f65 SS |
565 | |
566 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
567 | ac_prev=srcdir ;; | |
568 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
9255ee31 | 569 | srcdir=$ac_optarg ;; |
d60d9f65 SS |
570 | |
571 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
572 | | --syscon | --sysco | --sysc | --sys | --sy) | |
573 | ac_prev=sysconfdir ;; | |
574 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
575 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
9255ee31 | 576 | sysconfdir=$ac_optarg ;; |
d60d9f65 SS |
577 | |
578 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
9255ee31 | 579 | ac_prev=target_alias ;; |
d60d9f65 | 580 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
9255ee31 | 581 | target_alias=$ac_optarg ;; |
d60d9f65 SS |
582 | |
583 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
584 | verbose=yes ;; | |
585 | ||
9255ee31 EZ |
586 | -version | --version | --versio | --versi | --vers | -V) |
587 | ac_init_version=: ;; | |
d60d9f65 SS |
588 | |
589 | -with-* | --with-*) | |
9255ee31 | 590 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
d60d9f65 | 591 | # Reject names that are not valid shell variable names. |
9255ee31 EZ |
592 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
593 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
594 | { (exit 1); exit 1; }; } | |
d60d9f65 | 595 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
9255ee31 EZ |
596 | case $ac_option in |
597 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
d60d9f65 SS |
598 | *) ac_optarg=yes ;; |
599 | esac | |
9255ee31 | 600 | eval "with_$ac_package='$ac_optarg'" ;; |
d60d9f65 SS |
601 | |
602 | -without-* | --without-*) | |
9255ee31 | 603 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
d60d9f65 | 604 | # Reject names that are not valid shell variable names. |
9255ee31 EZ |
605 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
606 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
607 | { (exit 1); exit 1; }; } | |
608 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
609 | eval "with_$ac_package=no" ;; | |
d60d9f65 SS |
610 | |
611 | --x) | |
612 | # Obsolete; use --with-x. | |
613 | with_x=yes ;; | |
614 | ||
615 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
616 | | --x-incl | --x-inc | --x-in | --x-i) | |
617 | ac_prev=x_includes ;; | |
618 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
619 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
9255ee31 | 620 | x_includes=$ac_optarg ;; |
d60d9f65 SS |
621 | |
622 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
623 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
624 | ac_prev=x_libraries ;; | |
625 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
626 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
9255ee31 | 627 | x_libraries=$ac_optarg ;; |
d60d9f65 | 628 | |
9255ee31 EZ |
629 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
630 | Try \`$0 --help' for more information." >&2 | |
631 | { (exit 1); exit 1; }; } | |
d60d9f65 SS |
632 | ;; |
633 | ||
9255ee31 EZ |
634 | *=*) |
635 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
636 | # Reject names that are not valid shell variable names. | |
637 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
638 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
639 | { (exit 1); exit 1; }; } | |
640 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
641 | eval "$ac_envvar='$ac_optarg'" | |
642 | export $ac_envvar ;; | |
643 | ||
d60d9f65 | 644 | *) |
9255ee31 EZ |
645 | # FIXME: should be removed in autoconf 3.0. |
646 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
647 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
648 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
649 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
d60d9f65 SS |
650 | ;; |
651 | ||
652 | esac | |
653 | done | |
654 | ||
655 | if test -n "$ac_prev"; then | |
9255ee31 EZ |
656 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
657 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
658 | { (exit 1); exit 1; }; } | |
d60d9f65 | 659 | fi |
d60d9f65 | 660 | |
9255ee31 EZ |
661 | # Be sure to have absolute paths. |
662 | for ac_var in exec_prefix prefix | |
663 | do | |
664 | eval ac_val=$`echo $ac_var` | |
665 | case $ac_val in | |
666 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
25ed0b71 | 667 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
9255ee31 EZ |
668 | { (exit 1); exit 1; }; };; |
669 | esac | |
670 | done | |
d60d9f65 | 671 | |
9255ee31 EZ |
672 | # Be sure to have absolute paths. |
673 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
430b7832 | 674 | localstatedir libdir includedir oldincludedir infodir mandir |
d60d9f65 | 675 | do |
9255ee31 EZ |
676 | eval ac_val=$`echo $ac_var` |
677 | case $ac_val in | |
678 | [\\/$]* | ?:[\\/]* ) ;; | |
25ed0b71 | 679 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
9255ee31 | 680 | { (exit 1); exit 1; }; };; |
d60d9f65 SS |
681 | esac |
682 | done | |
683 | ||
9255ee31 EZ |
684 | # There might be people who depend on the old broken behavior: `$host' |
685 | # used to hold the argument of --host etc. | |
25ed0b71 | 686 | # FIXME: To remove some day. |
9255ee31 EZ |
687 | build=$build_alias |
688 | host=$host_alias | |
689 | target=$target_alias | |
690 | ||
25ed0b71 | 691 | # FIXME: To remove some day. |
9255ee31 EZ |
692 | if test "x$host_alias" != x; then |
693 | if test "x$build_alias" = x; then | |
694 | cross_compiling=maybe | |
695 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
696 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
697 | elif test "x$build_alias" != "x$host_alias"; then | |
698 | cross_compiling=yes | |
699 | fi | |
700 | fi | |
d60d9f65 | 701 | |
9255ee31 EZ |
702 | ac_tool_prefix= |
703 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
d60d9f65 | 704 | |
9255ee31 | 705 | test "$silent" = yes && exec 6>/dev/null |
d60d9f65 | 706 | |
25ed0b71 | 707 | |
d60d9f65 SS |
708 | # Find the source files, if location was not specified. |
709 | if test -z "$srcdir"; then | |
710 | ac_srcdir_defaulted=yes | |
711 | # Try the directory containing this script, then its parent. | |
25ed0b71 KW |
712 | ac_confdir=`(dirname "$0") 2>/dev/null || |
713 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
430b7832 MM |
714 | X"$0" : 'X\(//\)[^/]' \| \ |
715 | X"$0" : 'X\(//\)$' \| \ | |
716 | X"$0" : 'X\(/\)' \| \ | |
717 | . : '\(.\)' 2>/dev/null || | |
25ed0b71 KW |
718 | echo X"$0" | |
719 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
720 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
721 | /^X\(\/\/\)$/{ s//\1/; q; } | |
722 | /^X\(\/\).*/{ s//\1/; q; } | |
723 | s/.*/./; q'` | |
d60d9f65 SS |
724 | srcdir=$ac_confdir |
725 | if test ! -r $srcdir/$ac_unique_file; then | |
726 | srcdir=.. | |
727 | fi | |
728 | else | |
729 | ac_srcdir_defaulted=no | |
730 | fi | |
731 | if test ! -r $srcdir/$ac_unique_file; then | |
732 | if test "$ac_srcdir_defaulted" = yes; then | |
25ed0b71 | 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
9255ee31 | 734 | { (exit 1); exit 1; }; } |
1b17e766 | 735 | else |
25ed0b71 | 736 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
9255ee31 | 737 | { (exit 1); exit 1; }; } |
d60d9f65 SS |
738 | fi |
739 | fi | |
25ed0b71 KW |
740 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
741 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
742 | { (exit 1); exit 1; }; } | |
9255ee31 EZ |
743 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
744 | ac_env_build_alias_set=${build_alias+set} | |
745 | ac_env_build_alias_value=$build_alias | |
746 | ac_cv_env_build_alias_set=${build_alias+set} | |
747 | ac_cv_env_build_alias_value=$build_alias | |
748 | ac_env_host_alias_set=${host_alias+set} | |
749 | ac_env_host_alias_value=$host_alias | |
750 | ac_cv_env_host_alias_set=${host_alias+set} | |
751 | ac_cv_env_host_alias_value=$host_alias | |
752 | ac_env_target_alias_set=${target_alias+set} | |
753 | ac_env_target_alias_value=$target_alias | |
754 | ac_cv_env_target_alias_set=${target_alias+set} | |
755 | ac_cv_env_target_alias_value=$target_alias | |
756 | ac_env_CC_set=${CC+set} | |
757 | ac_env_CC_value=$CC | |
758 | ac_cv_env_CC_set=${CC+set} | |
759 | ac_cv_env_CC_value=$CC | |
760 | ac_env_CFLAGS_set=${CFLAGS+set} | |
761 | ac_env_CFLAGS_value=$CFLAGS | |
762 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
763 | ac_cv_env_CFLAGS_value=$CFLAGS | |
764 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
765 | ac_env_LDFLAGS_value=$LDFLAGS | |
766 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
767 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
768 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
769 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
770 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
771 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
772 | ac_env_CPP_set=${CPP+set} | |
773 | ac_env_CPP_value=$CPP | |
774 | ac_cv_env_CPP_set=${CPP+set} | |
775 | ac_cv_env_CPP_value=$CPP | |
d60d9f65 | 776 | |
9255ee31 EZ |
777 | # |
778 | # Report the --help message. | |
779 | # | |
780 | if test "$ac_init_help" = "long"; then | |
781 | # Omit some internal or obsolete options to make the list less imposing. | |
782 | # This message is too long to be a string in the A/UX 3.1 sh. | |
25ed0b71 | 783 | cat <<_ACEOF |
9255ee31 | 784 | \`configure' configures readline 4.3 to adapt to many kinds of systems. |
d60d9f65 | 785 | |
9255ee31 | 786 | Usage: $0 [OPTION]... [VAR=VALUE]... |
d60d9f65 | 787 | |
9255ee31 EZ |
788 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
789 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
d60d9f65 | 790 | |
9255ee31 | 791 | Defaults for the options are specified in brackets. |
d60d9f65 | 792 | |
9255ee31 EZ |
793 | Configuration: |
794 | -h, --help display this help and exit | |
795 | --help=short display options specific to this package | |
796 | --help=recursive display the short help of all the included packages | |
797 | -V, --version display version information and exit | |
798 | -q, --quiet, --silent do not print \`checking...' messages | |
799 | --cache-file=FILE cache test results in FILE [disabled] | |
800 | -C, --config-cache alias for \`--cache-file=config.cache' | |
801 | -n, --no-create do not create output files | |
802 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
d60d9f65 | 803 | |
25ed0b71 | 804 | _ACEOF |
d60d9f65 | 805 | |
25ed0b71 | 806 | cat <<_ACEOF |
9255ee31 EZ |
807 | Installation directories: |
808 | --prefix=PREFIX install architecture-independent files in PREFIX | |
430b7832 | 809 | [$ac_default_prefix] |
9255ee31 | 810 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
430b7832 | 811 | [PREFIX] |
9255ee31 EZ |
812 | |
813 | By default, \`make install' will install all the files in | |
814 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
815 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
816 | for instance \`--prefix=\$HOME'. | |
817 | ||
818 | For better control, use the options below. | |
819 | ||
820 | Fine tuning of the installation directories: | |
821 | --bindir=DIR user executables [EPREFIX/bin] | |
822 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
823 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
824 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
825 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
826 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
827 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
828 | --libdir=DIR object code libraries [EPREFIX/lib] | |
829 | --includedir=DIR C header files [PREFIX/include] | |
830 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
831 | --infodir=DIR info documentation [PREFIX/info] | |
832 | --mandir=DIR man documentation [PREFIX/man] | |
25ed0b71 | 833 | _ACEOF |
d60d9f65 | 834 | |
25ed0b71 | 835 | cat <<\_ACEOF |
d60d9f65 | 836 | |
9255ee31 EZ |
837 | System types: |
838 | --build=BUILD configure for building on BUILD [guessed] | |
25ed0b71 KW |
839 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
840 | _ACEOF | |
d60d9f65 | 841 | fi |
d60d9f65 | 842 | |
9255ee31 EZ |
843 | if test -n "$ac_init_help"; then |
844 | case $ac_init_help in | |
845 | short | recursive ) echo "Configuration of readline 4.3:";; | |
846 | esac | |
25ed0b71 | 847 | cat <<\_ACEOF |
d60d9f65 | 848 | |
9255ee31 EZ |
849 | Optional Features: |
850 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
851 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
9d543515 EZ |
852 | <<<<<<< configure |
853 | --enable-shared build shared libraries [default=NO] | |
854 | ======= | |
855 | >>>>>>> 1.6 | |
9255ee31 | 856 | --enable-static build static libraries [default=YES] |
d60d9f65 | 857 | |
9255ee31 EZ |
858 | Optional Packages: |
859 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
860 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
861 | --with-curses use the curses library instead of the termcap | |
862 | library | |
863 | ||
864 | Some influential environment variables: | |
865 | CC C compiler command | |
866 | CFLAGS C compiler flags | |
867 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
868 | nonstandard directory <lib dir> | |
869 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
870 | headers in a nonstandard directory <include dir> | |
871 | CPP C preprocessor | |
872 | ||
873 | Use these variables to override the choices made by `configure' or to help | |
874 | it to find libraries and programs with nonstandard names/locations. | |
875 | ||
876 | Report bugs to <bug-readline@gnu.org>. | |
25ed0b71 | 877 | _ACEOF |
9255ee31 | 878 | fi |
d60d9f65 | 879 | |
9255ee31 EZ |
880 | if test "$ac_init_help" = "recursive"; then |
881 | # If there are subdirs, report their specific --help. | |
882 | ac_popdir=`pwd` | |
25ed0b71 KW |
883 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
884 | test -d $ac_dir || continue | |
885 | ac_builddir=. | |
886 | ||
887 | if test "$ac_dir" != .; then | |
888 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
889 | # A "../" for each directory in $ac_dir_suffix. | |
890 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
891 | else | |
892 | ac_dir_suffix= ac_top_builddir= | |
893 | fi | |
d60d9f65 | 894 | |
25ed0b71 KW |
895 | case $srcdir in |
896 | .) # No --srcdir option. We are building in place. | |
897 | ac_srcdir=. | |
898 | if test -z "$ac_top_builddir"; then | |
899 | ac_top_srcdir=. | |
900 | else | |
901 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
902 | fi ;; | |
903 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
904 | ac_srcdir=$srcdir$ac_dir_suffix; | |
905 | ac_top_srcdir=$srcdir ;; | |
906 | *) # Relative path. | |
907 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
908 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
909 | esac | |
430b7832 MM |
910 | |
911 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
912 | # the directories may not exist. | |
913 | case `pwd` in | |
914 | .) ac_abs_builddir="$ac_dir";; | |
915 | *) | |
916 | case "$ac_dir" in | |
917 | .) ac_abs_builddir=`pwd`;; | |
918 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
919 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
920 | esac;; | |
921 | esac | |
922 | case $ac_abs_builddir in | |
923 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
924 | *) | |
925 | case ${ac_top_builddir}. in | |
926 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
927 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
928 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
929 | esac;; | |
930 | esac | |
931 | case $ac_abs_builddir in | |
932 | .) ac_abs_srcdir=$ac_srcdir;; | |
933 | *) | |
934 | case $ac_srcdir in | |
935 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
936 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
937 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
938 | esac;; | |
939 | esac | |
940 | case $ac_abs_builddir in | |
941 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
942 | *) | |
943 | case $ac_top_srcdir in | |
944 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
945 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
946 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
947 | esac;; | |
948 | esac | |
25ed0b71 KW |
949 | |
950 | cd $ac_dir | |
9255ee31 | 951 | # Check for guested configure; otherwise get Cygnus style configure. |
25ed0b71 | 952 | if test -f $ac_srcdir/configure.gnu; then |
9255ee31 | 953 | echo |
25ed0b71 KW |
954 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
955 | elif test -f $ac_srcdir/configure; then | |
9255ee31 | 956 | echo |
25ed0b71 KW |
957 | $SHELL $ac_srcdir/configure --help=recursive |
958 | elif test -f $ac_srcdir/configure.ac || | |
430b7832 | 959 | test -f $ac_srcdir/configure.in; then |
9255ee31 EZ |
960 | echo |
961 | $ac_configure --help | |
962 | else | |
25ed0b71 | 963 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
9255ee31 EZ |
964 | fi |
965 | cd $ac_popdir | |
966 | done | |
d60d9f65 SS |
967 | fi |
968 | ||
9255ee31 EZ |
969 | test -n "$ac_init_help" && exit 0 |
970 | if $ac_init_version; then | |
25ed0b71 | 971 | cat <<\_ACEOF |
9255ee31 | 972 | readline configure 4.3 |
430b7832 | 973 | generated by GNU Autoconf 2.59 |
d60d9f65 | 974 | |
430b7832 | 975 | Copyright (C) 2003 Free Software Foundation, Inc. |
9255ee31 EZ |
976 | This configure script is free software; the Free Software Foundation |
977 | gives unlimited permission to copy, distribute and modify it. | |
25ed0b71 | 978 | _ACEOF |
9255ee31 | 979 | exit 0 |
d60d9f65 | 980 | fi |
9255ee31 | 981 | exec 5>config.log |
25ed0b71 | 982 | cat >&5 <<_ACEOF |
9255ee31 EZ |
983 | This file contains any messages produced by compilers while |
984 | running configure, to aid debugging if configure makes a mistake. | |
d60d9f65 | 985 | |
9255ee31 | 986 | It was created by readline $as_me 4.3, which was |
430b7832 | 987 | generated by GNU Autoconf 2.59. Invocation command line was |
d60d9f65 | 988 | |
9255ee31 EZ |
989 | $ $0 $@ |
990 | ||
25ed0b71 | 991 | _ACEOF |
9255ee31 EZ |
992 | { |
993 | cat <<_ASUNAME | |
25ed0b71 KW |
994 | ## --------- ## |
995 | ## Platform. ## | |
996 | ## --------- ## | |
9255ee31 EZ |
997 | |
998 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
999 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1000 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1001 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1002 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1003 | ||
1004 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1005 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1006 | ||
1007 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1008 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1009 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1010 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1011 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1012 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1013 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1014 | ||
9255ee31 | 1015 | _ASUNAME |
25ed0b71 KW |
1016 | |
1017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1018 | for as_dir in $PATH | |
1019 | do | |
1020 | IFS=$as_save_IFS | |
1021 | test -z "$as_dir" && as_dir=. | |
1022 | echo "PATH: $as_dir" | |
1023 | done | |
1024 | ||
9255ee31 EZ |
1025 | } >&5 |
1026 | ||
25ed0b71 KW |
1027 | cat >&5 <<_ACEOF |
1028 | ||
1029 | ||
1030 | ## ----------- ## | |
1031 | ## Core tests. ## | |
1032 | ## ----------- ## | |
1033 | ||
1034 | _ACEOF | |
9255ee31 | 1035 | |
9255ee31 EZ |
1036 | |
1037 | # Keep a trace of the command line. | |
1038 | # Strip out --no-create and --no-recursion so they do not pile up. | |
25ed0b71 | 1039 | # Strip out --silent because we don't want to record it for future runs. |
9255ee31 | 1040 | # Also quote any args containing shell meta-characters. |
25ed0b71 | 1041 | # Make two passes to allow for proper duplicate-argument suppression. |
9255ee31 | 1042 | ac_configure_args= |
25ed0b71 KW |
1043 | ac_configure_args0= |
1044 | ac_configure_args1= | |
9255ee31 | 1045 | ac_sep= |
25ed0b71 KW |
1046 | ac_must_keep_next=false |
1047 | for ac_pass in 1 2 | |
9255ee31 | 1048 | do |
25ed0b71 KW |
1049 | for ac_arg |
1050 | do | |
1051 | case $ac_arg in | |
1052 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1053 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1054 | | -silent | --silent | --silen | --sile | --sil) | |
1055 | continue ;; | |
1056 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1057 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1058 | esac | |
1059 | case $ac_pass in | |
1060 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1061 | 2) | |
1062 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1063 | if test $ac_must_keep_next = true; then | |
430b7832 | 1064 | ac_must_keep_next=false # Got value, back to normal. |
25ed0b71 | 1065 | else |
430b7832 MM |
1066 | case $ac_arg in |
1067 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1068 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1069 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1070 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1071 | case "$ac_configure_args0 " in | |
1072 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1073 | esac | |
1074 | ;; | |
1075 | -* ) ac_must_keep_next=true ;; | |
1076 | esac | |
25ed0b71 KW |
1077 | fi |
1078 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1079 | # Get rid of the leading space. | |
1080 | ac_sep=" " | |
1081 | ;; | |
1082 | esac | |
1083 | done | |
9255ee31 | 1084 | done |
25ed0b71 KW |
1085 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1086 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
9255ee31 EZ |
1087 | |
1088 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1089 | # config.log. We remove comments because anyway the quotes in there | |
1090 | # would cause problems or look ugly. | |
25ed0b71 KW |
1091 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1092 | # such as our DU 5.0 friend, will then `close' the trap. | |
9255ee31 EZ |
1093 | trap 'exit_status=$? |
1094 | # Save into config.log some information that might help in debugging. | |
25ed0b71 KW |
1095 | { |
1096 | echo | |
1097 | ||
1098 | cat <<\_ASBOX | |
1099 | ## ---------------- ## | |
1100 | ## Cache variables. ## | |
1101 | ## ---------------- ## | |
1102 | _ASBOX | |
1103 | echo | |
1104 | # The following way of writing the cache mishandles newlines in values, | |
9255ee31 EZ |
1105 | { |
1106 | (set) 2>&1 | | |
1107 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1108 | *ac_space=\ *) | |
1109 | sed -n \ | |
430b7832 MM |
1110 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1111 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
9255ee31 EZ |
1112 | ;; |
1113 | *) | |
1114 | sed -n \ | |
430b7832 | 1115 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
9255ee31 EZ |
1116 | ;; |
1117 | esac; | |
25ed0b71 KW |
1118 | } |
1119 | echo | |
1120 | ||
1121 | cat <<\_ASBOX | |
1122 | ## ----------------- ## | |
1123 | ## Output variables. ## | |
1124 | ## ----------------- ## | |
1125 | _ASBOX | |
1126 | echo | |
1127 | for ac_var in $ac_subst_vars | |
1128 | do | |
1129 | eval ac_val=$`echo $ac_var` | |
1130 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1131 | done | sort | |
1132 | echo | |
1133 | ||
1134 | if test -n "$ac_subst_files"; then | |
1135 | cat <<\_ASBOX | |
1136 | ## ------------- ## | |
1137 | ## Output files. ## | |
1138 | ## ------------- ## | |
1139 | _ASBOX | |
1140 | echo | |
1141 | for ac_var in $ac_subst_files | |
1142 | do | |
1143 | eval ac_val=$`echo $ac_var` | |
430b7832 | 1144 | echo "$ac_var='"'"'$ac_val'"'"'" |
25ed0b71 KW |
1145 | done | sort |
1146 | echo | |
1147 | fi | |
1148 | ||
1149 | if test -s confdefs.h; then | |
1150 | cat <<\_ASBOX | |
1151 | ## ----------- ## | |
1152 | ## confdefs.h. ## | |
1153 | ## ----------- ## | |
1154 | _ASBOX | |
1155 | echo | |
1156 | sed "/^$/d" confdefs.h | sort | |
1157 | echo | |
1158 | fi | |
1159 | test "$ac_signal" != 0 && | |
1160 | echo "$as_me: caught signal $ac_signal" | |
1161 | echo "$as_me: exit $exit_status" | |
1162 | } >&5 | |
430b7832 | 1163 | rm -f core *.core && |
25ed0b71 | 1164 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
9255ee31 EZ |
1165 | exit $exit_status |
1166 | ' 0 | |
1167 | for ac_signal in 1 2 13 15; do | |
1168 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1169 | done | |
1170 | ac_signal=0 | |
1171 | ||
1172 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1173 | rm -rf conftest* confdefs.h | |
1174 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1175 | echo >confdefs.h | |
1176 | ||
25ed0b71 KW |
1177 | # Predefined preprocessor variables. |
1178 | ||
1179 | cat >>confdefs.h <<_ACEOF | |
1180 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1181 | _ACEOF | |
1182 | ||
1183 | ||
1184 | cat >>confdefs.h <<_ACEOF | |
1185 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1186 | _ACEOF | |
1187 | ||
1188 | ||
1189 | cat >>confdefs.h <<_ACEOF | |
1190 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1191 | _ACEOF | |
1192 | ||
1193 | ||
1194 | cat >>confdefs.h <<_ACEOF | |
1195 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1196 | _ACEOF | |
1197 | ||
1198 | ||
1199 | cat >>confdefs.h <<_ACEOF | |
1200 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1201 | _ACEOF | |
1202 | ||
1203 | ||
9255ee31 EZ |
1204 | # Let the site file select an alternate cache file if it wants to. |
1205 | # Prefer explicitly selected file to automatically selected ones. | |
1206 | if test -z "$CONFIG_SITE"; then | |
1207 | if test "x$prefix" != xNONE; then | |
1208 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1209 | else | |
1210 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1211 | fi | |
1212 | fi | |
1213 | for ac_site_file in $CONFIG_SITE; do | |
1214 | if test -r "$ac_site_file"; then | |
25ed0b71 | 1215 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
9255ee31 | 1216 | echo "$as_me: loading site script $ac_site_file" >&6;} |
25ed0b71 | 1217 | sed 's/^/| /' "$ac_site_file" >&5 |
9255ee31 EZ |
1218 | . "$ac_site_file" |
1219 | fi | |
1220 | done | |
1221 | ||
1222 | if test -r "$cache_file"; then | |
1223 | # Some versions of bash will fail to source /dev/null (special | |
1224 | # files actually), so we avoid doing that. | |
1225 | if test -f "$cache_file"; then | |
25ed0b71 | 1226 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
9255ee31 EZ |
1227 | echo "$as_me: loading cache $cache_file" >&6;} |
1228 | case $cache_file in | |
1229 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1230 | *) . ./$cache_file;; | |
1231 | esac | |
1232 | fi | |
1233 | else | |
25ed0b71 | 1234 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
9255ee31 EZ |
1235 | echo "$as_me: creating cache $cache_file" >&6;} |
1236 | >$cache_file | |
1237 | fi | |
1238 | ||
1239 | # Check that the precious variables saved in the cache have kept the same | |
1240 | # value. | |
1241 | ac_cache_corrupted=false | |
1242 | for ac_var in `(set) 2>&1 | | |
430b7832 | 1243 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
9255ee31 EZ |
1244 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1245 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1246 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1247 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1248 | case $ac_old_set,$ac_new_set in | |
1249 | set,) | |
25ed0b71 | 1250 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
9255ee31 EZ |
1251 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1252 | ac_cache_corrupted=: ;; | |
1253 | ,set) | |
25ed0b71 | 1254 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
9255ee31 EZ |
1255 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1256 | ac_cache_corrupted=: ;; | |
1257 | ,);; | |
1258 | *) | |
1259 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
430b7832 | 1260 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
9255ee31 | 1261 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
430b7832 | 1262 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
9255ee31 | 1263 | echo "$as_me: former value: $ac_old_val" >&2;} |
430b7832 | 1264 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
9255ee31 | 1265 | echo "$as_me: current value: $ac_new_val" >&2;} |
430b7832 | 1266 | ac_cache_corrupted=: |
9255ee31 EZ |
1267 | fi;; |
1268 | esac | |
25ed0b71 | 1269 | # Pass precious variables to config.status. |
9255ee31 EZ |
1270 | if test "$ac_new_set" = set; then |
1271 | case $ac_new_val in | |
1272 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
25ed0b71 KW |
1273 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1274 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1275 | esac | |
1276 | case " $ac_configure_args " in | |
1277 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1278 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
9255ee31 EZ |
1279 | esac |
1280 | fi | |
1281 | done | |
1282 | if $ac_cache_corrupted; then | |
25ed0b71 | 1283 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
9255ee31 | 1284 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
25ed0b71 | 1285 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
9255ee31 EZ |
1286 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1287 | { (exit 1); exit 1; }; } | |
1288 | fi | |
1289 | ||
1290 | ac_ext=c | |
1291 | ac_cpp='$CPP $CPPFLAGS' | |
1292 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1293 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1294 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1295 | ||
9255ee31 | 1296 | |
25ed0b71 KW |
1297 | |
1298 | ||
1299 | ||
1300 | ||
1301 | ||
1302 | ||
1303 | ||
1304 | ||
1305 | ||
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
1324 | ||
1325 | ||
1326 | ac_config_headers="$ac_config_headers config.h" | |
1327 | ||
9255ee31 EZ |
1328 | |
1329 | LIBVERSION=4.3 | |
1330 | ||
1331 | ac_aux_dir= | |
1332 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1333 | if test -f $ac_dir/install-sh; then | |
1334 | ac_aux_dir=$ac_dir | |
1335 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1336 | break | |
1337 | elif test -f $ac_dir/install.sh; then | |
1338 | ac_aux_dir=$ac_dir | |
1339 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1340 | break | |
1341 | elif test -f $ac_dir/shtool; then | |
1342 | ac_aux_dir=$ac_dir | |
1343 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1344 | break | |
1345 | fi | |
1346 | done | |
1347 | if test -z "$ac_aux_dir"; then | |
25ed0b71 | 1348 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
9255ee31 EZ |
1349 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
1350 | { (exit 1); exit 1; }; } | |
1351 | fi | |
1352 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1353 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1354 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1355 | ||
1356 | # Make sure we can run config.sub. | |
1357 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
25ed0b71 | 1358 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
9255ee31 EZ |
1359 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
1360 | { (exit 1); exit 1; }; } | |
1361 | ||
25ed0b71 | 1362 | echo "$as_me:$LINENO: checking build system type" >&5 |
9255ee31 EZ |
1363 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
1364 | if test "${ac_cv_build+set}" = set; then | |
1365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1366 | else | |
1367 | ac_cv_build_alias=$build_alias | |
1368 | test -z "$ac_cv_build_alias" && | |
1369 | ac_cv_build_alias=`$ac_config_guess` | |
1370 | test -z "$ac_cv_build_alias" && | |
25ed0b71 | 1371 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
9255ee31 EZ |
1372 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1373 | { (exit 1); exit 1; }; } | |
1374 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
25ed0b71 KW |
1375 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
1376 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
9255ee31 EZ |
1377 | { (exit 1); exit 1; }; } |
1378 | ||
1379 | fi | |
25ed0b71 | 1380 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
9255ee31 EZ |
1381 | echo "${ECHO_T}$ac_cv_build" >&6 |
1382 | build=$ac_cv_build | |
1383 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1384 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1385 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1386 | ||
25ed0b71 KW |
1387 | |
1388 | echo "$as_me:$LINENO: checking host system type" >&5 | |
9255ee31 EZ |
1389 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
1390 | if test "${ac_cv_host+set}" = set; then | |
1391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1392 | else | |
1393 | ac_cv_host_alias=$host_alias | |
1394 | test -z "$ac_cv_host_alias" && | |
1395 | ac_cv_host_alias=$ac_cv_build_alias | |
1396 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
25ed0b71 | 1397 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
9255ee31 EZ |
1398 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
1399 | { (exit 1); exit 1; }; } | |
1400 | ||
1401 | fi | |
25ed0b71 | 1402 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
9255ee31 EZ |
1403 | echo "${ECHO_T}$ac_cv_host" >&6 |
1404 | host=$ac_cv_host | |
1405 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1406 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1407 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1408 | ||
25ed0b71 KW |
1409 | |
1410 | ||
9255ee31 EZ |
1411 | opt_curses=no |
1412 | ||
25ed0b71 | 1413 | |
9255ee31 EZ |
1414 | # Check whether --with-curses or --without-curses was given. |
1415 | if test "${with_curses+set}" = set; then | |
1416 | withval="$with_curses" | |
1417 | opt_curses=$withval | |
1418 | fi; | |
1419 | ||
1420 | if test "$opt_curses" = "yes"; then | |
1421 | prefer_curses=yes | |
1422 | fi | |
1423 | ||
1424 | opt_static_libs=yes | |
d7d4a3d1 | 1425 | opt_shared_libs=no |
9255ee31 | 1426 | |
9255ee31 EZ |
1427 | # Check whether --enable-static or --disable-static was given. |
1428 | if test "${enable_static+set}" = set; then | |
1429 | enableval="$enable_static" | |
1430 | opt_static_libs=$enableval | |
1431 | fi; | |
1432 | ||
1433 | echo "" | |
1434 | echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}" | |
1435 | echo "" | |
1436 | ||
1437 | # We want these before the checks, so the checks can modify their values. | |
1438 | test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1 | |
1439 | ||
25ed0b71 KW |
1440 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1441 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
430b7832 | 1442 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
9255ee31 EZ |
1443 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
1444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1445 | else | |
25ed0b71 | 1446 | cat >conftest.make <<\_ACEOF |
9255ee31 | 1447 | all: |
25ed0b71 KW |
1448 | @echo 'ac_maketemp="$(MAKE)"' |
1449 | _ACEOF | |
9255ee31 EZ |
1450 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
1451 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1452 | if test -n "$ac_maketemp"; then | |
1453 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1454 | else | |
1455 | eval ac_cv_prog_make_${ac_make}_set=no | |
1456 | fi | |
1457 | rm -f conftest.make | |
1458 | fi | |
1459 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
25ed0b71 | 1460 | echo "$as_me:$LINENO: result: yes" >&5 |
9255ee31 EZ |
1461 | echo "${ECHO_T}yes" >&6 |
1462 | SET_MAKE= | |
1463 | else | |
25ed0b71 | 1464 | echo "$as_me:$LINENO: result: no" >&5 |
9255ee31 EZ |
1465 | echo "${ECHO_T}no" >&6 |
1466 | SET_MAKE="MAKE=${MAKE-make}" | |
1467 | fi | |
1468 | ||
1469 | ac_ext=c | |
1470 | ac_cpp='$CPP $CPPFLAGS' | |
1471 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1472 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1473 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1474 | if test -n "$ac_tool_prefix"; then | |
1475 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1476 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
25ed0b71 | 1477 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9255ee31 EZ |
1478 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1479 | if test "${ac_cv_prog_CC+set}" = set; then | |
1480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1481 | else | |
1482 | if test -n "$CC"; then | |
1483 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1484 | else | |
25ed0b71 KW |
1485 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1486 | for as_dir in $PATH | |
1487 | do | |
1488 | IFS=$as_save_IFS | |
1489 | test -z "$as_dir" && as_dir=. | |
1490 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1491 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1492 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1493 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1494 | break 2 | |
1495 | fi | |
1496 | done | |
9255ee31 EZ |
1497 | done |
1498 | ||
d60d9f65 | 1499 | fi |
9255ee31 EZ |
1500 | fi |
1501 | CC=$ac_cv_prog_CC | |
d60d9f65 | 1502 | if test -n "$CC"; then |
25ed0b71 | 1503 | echo "$as_me:$LINENO: result: $CC" >&5 |
9255ee31 EZ |
1504 | echo "${ECHO_T}$CC" >&6 |
1505 | else | |
25ed0b71 | 1506 | echo "$as_me:$LINENO: result: no" >&5 |
9255ee31 EZ |
1507 | echo "${ECHO_T}no" >&6 |
1508 | fi | |
1509 | ||
1510 | fi | |
1511 | if test -z "$ac_cv_prog_CC"; then | |
1512 | ac_ct_CC=$CC | |
1513 | # Extract the first word of "gcc", so it can be a program name with args. | |
1514 | set dummy gcc; ac_word=$2 | |
25ed0b71 | 1515 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9255ee31 EZ |
1516 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1517 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1519 | else | |
1520 | if test -n "$ac_ct_CC"; then | |
1521 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1522 | else | |
25ed0b71 KW |
1523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1524 | for as_dir in $PATH | |
1525 | do | |
1526 | IFS=$as_save_IFS | |
1527 | test -z "$as_dir" && as_dir=. | |
1528 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1529 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1530 | ac_cv_prog_ac_ct_CC="gcc" | |
1531 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1532 | break 2 | |
1533 | fi | |
1534 | done | |
9255ee31 EZ |
1535 | done |
1536 | ||
1537 | fi | |
1538 | fi | |
1539 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1540 | if test -n "$ac_ct_CC"; then | |
25ed0b71 | 1541 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
9255ee31 EZ |
1542 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1543 | else | |
25ed0b71 | 1544 | echo "$as_me:$LINENO: result: no" >&5 |
9255ee31 EZ |
1545 | echo "${ECHO_T}no" >&6 |
1546 | fi | |
1547 | ||
1548 | CC=$ac_ct_CC | |
d60d9f65 | 1549 | else |
9255ee31 | 1550 | CC="$ac_cv_prog_CC" |
d60d9f65 SS |
1551 | fi |
1552 | ||
1553 | if test -z "$CC"; then | |
9255ee31 EZ |
1554 | if test -n "$ac_tool_prefix"; then |
1555 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1556 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
25ed0b71 | 1557 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9255ee31 EZ |
1558 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1559 | if test "${ac_cv_prog_CC+set}" = set; then | |
1560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1561 | else | |
1562 | if test -n "$CC"; then | |
1563 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1564 | else | |
25ed0b71 KW |
1565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1566 | for as_dir in $PATH | |
1567 | do | |
1568 | IFS=$as_save_IFS | |
1569 | test -z "$as_dir" && as_dir=. | |
1570 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1571 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1572 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1573 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1574 | break 2 | |
1575 | fi | |
1576 | done | |
9255ee31 EZ |
1577 | done |
1578 | ||
1579 | fi | |
1580 | fi | |
1581 | CC=$ac_cv_prog_CC | |
1582 | if test -n "$CC"; then | |
25ed0b71 | 1583 | echo "$as_me:$LINENO: result: $CC" >&5 |
9255ee31 EZ |
1584 | echo "${ECHO_T}$CC" >&6 |
1585 | else | |
25ed0b71 | 1586 | echo "$as_me:$LINENO: result: no" >&5 |
9255ee31 EZ |
1587 | echo "${ECHO_T}no" >&6 |
1588 | fi | |
1589 | ||
1590 | fi | |
1591 | if test -z "$ac_cv_prog_CC"; then | |
1592 | ac_ct_CC=$CC | |
d60d9f65 SS |
1593 | # Extract the first word of "cc", so it can be a program name with args. |
1594 | set dummy cc; ac_word=$2 | |
25ed0b71 | 1595 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9255ee31 EZ |
1596 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1597 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1599 | else | |
1600 | if test -n "$ac_ct_CC"; then | |
1601 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1602 | else | |
25ed0b71 KW |
1603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1604 | for as_dir in $PATH | |
1605 | do | |
1606 | IFS=$as_save_IFS | |
1607 | test -z "$as_dir" && as_dir=. | |
1608 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1609 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1610 | ac_cv_prog_ac_ct_CC="cc" | |
1611 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1612 | break 2 | |
1613 | fi | |
1614 | done | |
9255ee31 EZ |
1615 | done |
1616 | ||
1617 | fi | |
1618 | fi | |
1619 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1620 | if test -n "$ac_ct_CC"; then | |
25ed0b71 | 1621 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
9255ee31 EZ |
1622 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1623 | else | |
25ed0b71 | 1624 | echo "$as_me:$LINENO: result: no" >&5 |
9255ee31 EZ |
1625 | echo "${ECHO_T}no" >&6 |
1626 | fi | |
1627 | ||
1628 | CC=$ac_ct_CC | |
1629 | else | |
1630 | CC="$ac_cv_prog_CC" | |
1631 | fi | |
1632 | ||
1633 | fi | |
1634 | if test -z "$CC"; then | |
1635 | # Extract the first word of "cc", so it can be a program name with args. | |
1636 | set dummy cc; ac_word=$2 | |
25ed0b71 | 1637 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9255ee31 EZ |
1638 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1639 | if test "${ac_cv_prog_CC+set}" = set; then | |
1640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 SS |
1641 | else |
1642 | if test -n "$CC"; then | |
1643 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1644 | else | |
d60d9f65 | 1645 | ac_prog_rejected=no |
25ed0b71 KW |
1646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1647 | for as_dir in $PATH | |
1648 | do | |
1649 | IFS=$as_save_IFS | |
1650 | test -z "$as_dir" && as_dir=. | |
1651 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1652 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1653 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1654 | ac_prog_rejected=yes | |
1655 | continue | |
1656 | fi | |
1657 | ac_cv_prog_CC="cc" | |
1658 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1659 | break 2 | |
1660 | fi | |
1661 | done | |
9255ee31 EZ |
1662 | done |
1663 | ||
d60d9f65 SS |
1664 | if test $ac_prog_rejected = yes; then |
1665 | # We found a bogon in the path, so make sure we never use it. | |
1666 | set dummy $ac_cv_prog_CC | |
1667 | shift | |
9255ee31 | 1668 | if test $# != 0; then |
d60d9f65 SS |
1669 | # We chose a different compiler from the bogus one. |
1670 | # However, it has the same basename, so the bogon will be chosen | |
1671 | # first if we set CC to just the basename; use the full file name. | |
1672 | shift | |
25ed0b71 | 1673 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
d60d9f65 SS |
1674 | fi |
1675 | fi | |
1676 | fi | |
1677 | fi | |
9255ee31 | 1678 | CC=$ac_cv_prog_CC |
d60d9f65 | 1679 | if test -n "$CC"; then |
25ed0b71 | 1680 | echo "$as_me:$LINENO: result: $CC" >&5 |
9255ee31 | 1681 | echo "${ECHO_T}$CC" >&6 |
d60d9f65 | 1682 | else |
25ed0b71 | 1683 | echo "$as_me:$LINENO: result: no" >&5 |
9255ee31 | 1684 | echo "${ECHO_T}no" >&6 |
d60d9f65 SS |
1685 | fi |
1686 | ||
9255ee31 EZ |
1687 | fi |
1688 | if test -z "$CC"; then | |
1689 | if test -n "$ac_tool_prefix"; then | |
1690 | for ac_prog in cl | |
1691 | do | |
1692 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1693 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
25ed0b71 | 1694 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9255ee31 EZ |
1695 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1696 | if test "${ac_cv_prog_CC+set}" = set; then | |
1697 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 SS |
1698 | else |
1699 | if test -n "$CC"; then | |
1700 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1701 | else | |
25ed0b71 KW |
1702 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1703 | for as_dir in $PATH | |
1704 | do | |
1705 | IFS=$as_save_IFS | |
1706 | test -z "$as_dir" && as_dir=. | |
1707 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1708 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1709 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1710 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1711 | break 2 | |
1712 | fi | |
1713 | done | |
9255ee31 EZ |
1714 | done |
1715 | ||
d60d9f65 SS |
1716 | fi |
1717 | fi | |
9255ee31 | 1718 | CC=$ac_cv_prog_CC |
d60d9f65 | 1719 | if test -n "$CC"; then |
25ed0b71 | 1720 | echo "$as_me:$LINENO: result: $CC" >&5 |
9255ee31 | 1721 | echo "${ECHO_T}$CC" >&6 |
d60d9f65 | 1722 | else |
25ed0b71 | 1723 | echo "$as_me:$LINENO: result: no" >&5 |
9255ee31 | 1724 | echo "${ECHO_T}no" >&6 |
d60d9f65 SS |
1725 | fi |
1726 | ||
9255ee31 EZ |
1727 | test -n "$CC" && break |
1728 | done | |
1729 | fi | |
1730 | if test -z "$CC"; then | |
1731 | ac_ct_CC=$CC | |
1732 | for ac_prog in cl | |
1733 | do | |
1734 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1735 | set dummy $ac_prog; ac_word=$2 | |
25ed0b71 | 1736 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9255ee31 EZ |
1737 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1738 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1739 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1740 | else | |
1741 | if test -n "$ac_ct_CC"; then | |
1742 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1743 | else | |
25ed0b71 KW |
1744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1745 | for as_dir in $PATH | |
1746 | do | |
1747 | IFS=$as_save_IFS | |
1748 | test -z "$as_dir" && as_dir=. | |
1749 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1750 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1751 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1752 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1753 | break 2 | |
1754 | fi | |
1755 | done | |
9255ee31 | 1756 | done |
d60d9f65 | 1757 | |
9255ee31 EZ |
1758 | fi |
1759 | fi | |
1760 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1761 | if test -n "$ac_ct_CC"; then | |
25ed0b71 | 1762 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
9255ee31 EZ |
1763 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1764 | else | |
25ed0b71 | 1765 | echo "$as_me:$LINENO: result: no" >&5 |
9255ee31 EZ |
1766 | echo "${ECHO_T}no" >&6 |
1767 | fi | |
d60d9f65 | 1768 | |
9255ee31 EZ |
1769 | test -n "$ac_ct_CC" && break |
1770 | done | |
c862e87b | 1771 | |
9255ee31 EZ |
1772 | CC=$ac_ct_CC |
1773 | fi | |
1774 | ||
1775 | fi | |
1776 | ||
25ed0b71 KW |
1777 | |
1778 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1779 | See \`config.log' for more details." >&5 | |
1780 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1781 | See \`config.log' for more details." >&2;} | |
9255ee31 EZ |
1782 | { (exit 1); exit 1; }; } |
1783 | ||
1784 | # Provide some information about the compiler. | |
25ed0b71 | 1785 | echo "$as_me:$LINENO:" \ |
9255ee31 EZ |
1786 | "checking for C compiler version" >&5 |
1787 | ac_compiler=`set X $ac_compile; echo $2` | |
25ed0b71 | 1788 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
9255ee31 EZ |
1789 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
1790 | ac_status=$? | |
25ed0b71 | 1791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 1792 | (exit $ac_status); } |
25ed0b71 | 1793 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
9255ee31 EZ |
1794 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
1795 | ac_status=$? | |
25ed0b71 | 1796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 1797 | (exit $ac_status); } |
25ed0b71 | 1798 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
9255ee31 EZ |
1799 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
1800 | ac_status=$? | |
25ed0b71 | 1801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
1802 | (exit $ac_status); } |
1803 | ||
1804 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
1805 | /* confdefs.h. */ |
1806 | _ACEOF | |
1807 | cat confdefs.h >>conftest.$ac_ext | |
1808 | cat >>conftest.$ac_ext <<_ACEOF | |
1809 | /* end confdefs.h. */ | |
c862e87b | 1810 | |
9255ee31 EZ |
1811 | int |
1812 | main () | |
1813 | { | |
1814 | ||
1815 | ; | |
1816 | return 0; | |
1817 | } | |
1818 | _ACEOF | |
1819 | ac_clean_files_save=$ac_clean_files | |
25ed0b71 | 1820 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
9255ee31 EZ |
1821 | # Try to create an executable without -o first, disregard a.out. |
1822 | # It will help us diagnose broken compilers, and finding out an intuition | |
1823 | # of exeext. | |
430b7832 MM |
1824 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1825 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
9255ee31 | 1826 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
25ed0b71 | 1827 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
9255ee31 EZ |
1828 | (eval $ac_link_default) 2>&5 |
1829 | ac_status=$? | |
25ed0b71 | 1830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
1831 | (exit $ac_status); }; then |
1832 | # Find the output, starting from the most likely. This scheme is | |
1833 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1834 | # resort. | |
25ed0b71 KW |
1835 | |
1836 | # Be careful to initialize this variable, since it used to be cached. | |
1837 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1838 | ac_cv_exeext= | |
1839 | # b.out is created by i960 compilers. | |
1840 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1841 | do | |
1842 | test -f "$ac_file" || continue | |
9255ee31 | 1843 | case $ac_file in |
25ed0b71 | 1844 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
430b7832 | 1845 | ;; |
25ed0b71 | 1846 | conftest.$ac_ext ) |
430b7832 MM |
1847 | # This is the source file. |
1848 | ;; | |
25ed0b71 | 1849 | [ab].out ) |
430b7832 MM |
1850 | # We found the default executable, but exeext='' is most |
1851 | # certainly right. | |
1852 | break;; | |
25ed0b71 | 1853 | *.* ) |
430b7832 MM |
1854 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1855 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1856 | # but it would be cool to find out if it's true. Does anybody | |
1857 | # maintain Libtool? --akim. | |
1858 | export ac_cv_exeext | |
1859 | break;; | |
25ed0b71 | 1860 | * ) |
430b7832 | 1861 | break;; |
9255ee31 EZ |
1862 | esac |
1863 | done | |
1864 | else | |
1865 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
1866 | sed 's/^/| /' conftest.$ac_ext >&5 |
1867 | ||
1868 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1869 | See \`config.log' for more details." >&5 | |
1870 | echo "$as_me: error: C compiler cannot create executables | |
1871 | See \`config.log' for more details." >&2;} | |
9255ee31 EZ |
1872 | { (exit 77); exit 77; }; } |
1873 | fi | |
1874 | ||
1875 | ac_exeext=$ac_cv_exeext | |
25ed0b71 | 1876 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
9255ee31 EZ |
1877 | echo "${ECHO_T}$ac_file" >&6 |
1878 | ||
1879 | # Check the compiler produces executables we can run. If not, either | |
1880 | # the compiler is broken, or we cross compile. | |
25ed0b71 | 1881 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
9255ee31 EZ |
1882 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
1883 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1884 | # If not cross compiling, check that we can run a simple program. | |
1885 | if test "$cross_compiling" != yes; then | |
1886 | if { ac_try='./$ac_file' | |
25ed0b71 | 1887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
1888 | (eval $ac_try) 2>&5 |
1889 | ac_status=$? | |
25ed0b71 | 1890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
1891 | (exit $ac_status); }; }; then |
1892 | cross_compiling=no | |
d60d9f65 | 1893 | else |
9255ee31 EZ |
1894 | if test "$cross_compiling" = maybe; then |
1895 | cross_compiling=yes | |
1896 | else | |
25ed0b71 KW |
1897 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
1898 | If you meant to cross compile, use \`--host'. | |
1899 | See \`config.log' for more details." >&5 | |
9255ee31 | 1900 | echo "$as_me: error: cannot run C compiled programs. |
25ed0b71 KW |
1901 | If you meant to cross compile, use \`--host'. |
1902 | See \`config.log' for more details." >&2;} | |
9255ee31 EZ |
1903 | { (exit 1); exit 1; }; } |
1904 | fi | |
d60d9f65 | 1905 | fi |
d60d9f65 | 1906 | fi |
25ed0b71 | 1907 | echo "$as_me:$LINENO: result: yes" >&5 |
9255ee31 EZ |
1908 | echo "${ECHO_T}yes" >&6 |
1909 | ||
25ed0b71 | 1910 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
9255ee31 EZ |
1911 | ac_clean_files=$ac_clean_files_save |
1912 | # Check the compiler produces executables we can run. If not, either | |
1913 | # the compiler is broken, or we cross compile. | |
25ed0b71 | 1914 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
9255ee31 | 1915 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
25ed0b71 | 1916 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
9255ee31 EZ |
1917 | echo "${ECHO_T}$cross_compiling" >&6 |
1918 | ||
25ed0b71 KW |
1919 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
1920 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1921 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9255ee31 EZ |
1922 | (eval $ac_link) 2>&5 |
1923 | ac_status=$? | |
25ed0b71 | 1924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
1925 | (exit $ac_status); }; then |
1926 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1927 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1928 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1929 | # `rm'. | |
25ed0b71 KW |
1930 | for ac_file in conftest.exe conftest conftest.*; do |
1931 | test -f "$ac_file" || continue | |
9255ee31 | 1932 | case $ac_file in |
25ed0b71 | 1933 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
9255ee31 | 1934 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
430b7832 MM |
1935 | export ac_cv_exeext |
1936 | break;; | |
9255ee31 EZ |
1937 | * ) break;; |
1938 | esac | |
1939 | done | |
d60d9f65 | 1940 | else |
25ed0b71 KW |
1941 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1942 | See \`config.log' for more details." >&5 | |
1943 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1944 | See \`config.log' for more details." >&2;} | |
9255ee31 EZ |
1945 | { (exit 1); exit 1; }; } |
1946 | fi | |
1947 | ||
1948 | rm -f conftest$ac_cv_exeext | |
25ed0b71 | 1949 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
9255ee31 EZ |
1950 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
1951 | ||
1952 | rm -f conftest.$ac_ext | |
1953 | EXEEXT=$ac_cv_exeext | |
1954 | ac_exeext=$EXEEXT | |
25ed0b71 KW |
1955 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
1956 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
9255ee31 EZ |
1957 | if test "${ac_cv_objext+set}" = set; then |
1958 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1959 | else | |
1960 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
1961 | /* confdefs.h. */ |
1962 | _ACEOF | |
1963 | cat confdefs.h >>conftest.$ac_ext | |
1964 | cat >>conftest.$ac_ext <<_ACEOF | |
1965 | /* end confdefs.h. */ | |
d60d9f65 | 1966 | |
9255ee31 EZ |
1967 | int |
1968 | main () | |
1969 | { | |
d60d9f65 | 1970 | |
9255ee31 EZ |
1971 | ; |
1972 | return 0; | |
1973 | } | |
1974 | _ACEOF | |
1975 | rm -f conftest.o conftest.obj | |
25ed0b71 | 1976 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9255ee31 EZ |
1977 | (eval $ac_compile) 2>&5 |
1978 | ac_status=$? | |
25ed0b71 | 1979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
1980 | (exit $ac_status); }; then |
1981 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1982 | case $ac_file in | |
25ed0b71 | 1983 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
9255ee31 EZ |
1984 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
1985 | break;; | |
1986 | esac | |
1987 | done | |
d60d9f65 | 1988 | else |
9255ee31 | 1989 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
1990 | sed 's/^/| /' conftest.$ac_ext >&5 |
1991 | ||
1992 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1993 | See \`config.log' for more details." >&5 | |
1994 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1995 | See \`config.log' for more details." >&2;} | |
9255ee31 EZ |
1996 | { (exit 1); exit 1; }; } |
1997 | fi | |
1998 | ||
1999 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2000 | fi | |
25ed0b71 | 2001 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
9255ee31 EZ |
2002 | echo "${ECHO_T}$ac_cv_objext" >&6 |
2003 | OBJEXT=$ac_cv_objext | |
2004 | ac_objext=$OBJEXT | |
25ed0b71 | 2005 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
9255ee31 EZ |
2006 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
2007 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2009 | else | |
2010 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
2011 | /* confdefs.h. */ |
2012 | _ACEOF | |
2013 | cat confdefs.h >>conftest.$ac_ext | |
2014 | cat >>conftest.$ac_ext <<_ACEOF | |
2015 | /* end confdefs.h. */ | |
9255ee31 EZ |
2016 | |
2017 | int | |
2018 | main () | |
2019 | { | |
2020 | #ifndef __GNUC__ | |
2021 | choke me | |
2022 | #endif | |
d60d9f65 | 2023 | |
9255ee31 EZ |
2024 | ; |
2025 | return 0; | |
2026 | } | |
2027 | _ACEOF | |
2028 | rm -f conftest.$ac_objext | |
25ed0b71 | 2029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 2030 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 2031 | ac_status=$? |
430b7832 MM |
2032 | grep -v '^ *+' conftest.er1 >conftest.err |
2033 | rm -f conftest.er1 | |
2034 | cat conftest.err >&5 | |
25ed0b71 | 2035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 2036 | (exit $ac_status); } && |
430b7832 MM |
2037 | { ac_try='test -z "$ac_c_werror_flag" |
2038 | || test ! -s conftest.err' | |
2039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2040 | (eval $ac_try) 2>&5 | |
2041 | ac_status=$? | |
2042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2043 | (exit $ac_status); }; } && | |
2044 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 2045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
2046 | (eval $ac_try) 2>&5 |
2047 | ac_status=$? | |
25ed0b71 | 2048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
2049 | (exit $ac_status); }; }; then |
2050 | ac_compiler_gnu=yes | |
2051 | else | |
2052 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
2053 | sed 's/^/| /' conftest.$ac_ext >&5 |
2054 | ||
9255ee31 EZ |
2055 | ac_compiler_gnu=no |
2056 | fi | |
430b7832 | 2057 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9255ee31 EZ |
2058 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2059 | ||
2060 | fi | |
25ed0b71 | 2061 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
9255ee31 EZ |
2062 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
2063 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2064 | ac_test_CFLAGS=${CFLAGS+set} | |
2065 | ac_save_CFLAGS=$CFLAGS | |
2066 | CFLAGS="-g" | |
25ed0b71 | 2067 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
9255ee31 EZ |
2068 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
2069 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 2071 | else |
9255ee31 | 2072 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
2073 | /* confdefs.h. */ |
2074 | _ACEOF | |
2075 | cat confdefs.h >>conftest.$ac_ext | |
2076 | cat >>conftest.$ac_ext <<_ACEOF | |
2077 | /* end confdefs.h. */ | |
9255ee31 EZ |
2078 | |
2079 | int | |
2080 | main () | |
2081 | { | |
2082 | ||
2083 | ; | |
2084 | return 0; | |
2085 | } | |
2086 | _ACEOF | |
2087 | rm -f conftest.$ac_objext | |
25ed0b71 | 2088 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 2089 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 2090 | ac_status=$? |
430b7832 MM |
2091 | grep -v '^ *+' conftest.er1 >conftest.err |
2092 | rm -f conftest.er1 | |
2093 | cat conftest.err >&5 | |
25ed0b71 | 2094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 2095 | (exit $ac_status); } && |
430b7832 MM |
2096 | { ac_try='test -z "$ac_c_werror_flag" |
2097 | || test ! -s conftest.err' | |
2098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2099 | (eval $ac_try) 2>&5 | |
2100 | ac_status=$? | |
2101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2102 | (exit $ac_status); }; } && | |
2103 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 2104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
2105 | (eval $ac_try) 2>&5 |
2106 | ac_status=$? | |
25ed0b71 | 2107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 2108 | (exit $ac_status); }; }; then |
d60d9f65 SS |
2109 | ac_cv_prog_cc_g=yes |
2110 | else | |
9255ee31 | 2111 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
2112 | sed 's/^/| /' conftest.$ac_ext >&5 |
2113 | ||
9255ee31 | 2114 | ac_cv_prog_cc_g=no |
d60d9f65 | 2115 | fi |
430b7832 | 2116 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 2117 | fi |
25ed0b71 | 2118 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
9255ee31 | 2119 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
d60d9f65 | 2120 | if test "$ac_test_CFLAGS" = set; then |
9255ee31 | 2121 | CFLAGS=$ac_save_CFLAGS |
d60d9f65 SS |
2122 | elif test $ac_cv_prog_cc_g = yes; then |
2123 | if test "$GCC" = yes; then | |
2124 | CFLAGS="-g -O2" | |
2125 | else | |
2126 | CFLAGS="-g" | |
2127 | fi | |
2128 | else | |
2129 | if test "$GCC" = yes; then | |
2130 | CFLAGS="-O2" | |
2131 | else | |
2132 | CFLAGS= | |
2133 | fi | |
2134 | fi | |
25ed0b71 KW |
2135 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2136 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2137 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2139 | else | |
2140 | ac_cv_prog_cc_stdc=no | |
2141 | ac_save_CC=$CC | |
2142 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
2143 | /* confdefs.h. */ |
2144 | _ACEOF | |
2145 | cat confdefs.h >>conftest.$ac_ext | |
2146 | cat >>conftest.$ac_ext <<_ACEOF | |
2147 | /* end confdefs.h. */ | |
2148 | #include <stdarg.h> | |
2149 | #include <stdio.h> | |
2150 | #include <sys/types.h> | |
2151 | #include <sys/stat.h> | |
2152 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2153 | struct buf { int x; }; | |
2154 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2155 | static char *e (p, i) | |
2156 | char **p; | |
2157 | int i; | |
2158 | { | |
2159 | return p[i]; | |
2160 | } | |
2161 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2162 | { | |
2163 | char *s; | |
2164 | va_list v; | |
2165 | va_start (v,p); | |
2166 | s = g (p, va_arg (v,int)); | |
2167 | va_end (v); | |
2168 | return s; | |
2169 | } | |
430b7832 MM |
2170 | |
2171 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2172 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2173 | These don't provoke an error unfortunately, instead are silently treated | |
2174 | as 'x'. The following induces an error, until -std1 is added to get | |
2175 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2176 | array size at least. It's necessary to write '\x00'==0 to get something | |
2177 | that's true only with -std1. */ | |
2178 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2179 | ||
25ed0b71 KW |
2180 | int test (int i, double x); |
2181 | struct s1 {int (*f) (int a);}; | |
2182 | struct s2 {int (*f) (double a);}; | |
2183 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2184 | int argc; | |
2185 | char **argv; | |
2186 | int | |
2187 | main () | |
2188 | { | |
2189 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2190 | ; | |
2191 | return 0; | |
2192 | } | |
2193 | _ACEOF | |
2194 | # Don't try gcc -ansi; that turns off useful extensions and | |
2195 | # breaks some systems' header files. | |
2196 | # AIX -qlanglvl=ansi | |
2197 | # Ultrix and OSF/1 -std1 | |
2198 | # HP-UX 10.20 and later -Ae | |
2199 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2200 | # SVR4 -Xc -D__EXTENSIONS__ | |
2201 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2202 | do | |
2203 | CC="$ac_save_CC $ac_arg" | |
2204 | rm -f conftest.$ac_objext | |
2205 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
430b7832 | 2206 | (eval $ac_compile) 2>conftest.er1 |
25ed0b71 | 2207 | ac_status=$? |
430b7832 MM |
2208 | grep -v '^ *+' conftest.er1 >conftest.err |
2209 | rm -f conftest.er1 | |
2210 | cat conftest.err >&5 | |
25ed0b71 KW |
2211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2212 | (exit $ac_status); } && | |
430b7832 MM |
2213 | { ac_try='test -z "$ac_c_werror_flag" |
2214 | || test ! -s conftest.err' | |
2215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2216 | (eval $ac_try) 2>&5 | |
2217 | ac_status=$? | |
2218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2219 | (exit $ac_status); }; } && | |
2220 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 KW |
2221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2222 | (eval $ac_try) 2>&5 | |
2223 | ac_status=$? | |
2224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2225 | (exit $ac_status); }; }; then | |
2226 | ac_cv_prog_cc_stdc=$ac_arg | |
2227 | break | |
2228 | else | |
2229 | echo "$as_me: failed program was:" >&5 | |
2230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2231 | ||
2232 | fi | |
430b7832 | 2233 | rm -f conftest.err conftest.$ac_objext |
25ed0b71 KW |
2234 | done |
2235 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2236 | CC=$ac_save_CC | |
2237 | ||
2238 | fi | |
2239 | ||
2240 | case "x$ac_cv_prog_cc_stdc" in | |
2241 | x|xno) | |
2242 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2243 | echo "${ECHO_T}none needed" >&6 ;; | |
2244 | *) | |
2245 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2246 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2247 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2248 | esac | |
2249 | ||
9255ee31 EZ |
2250 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2251 | # in C++ we need to declare it. In case someone uses the same compiler | |
2252 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2253 | # the declaration of exit, since it's the most demanding environment. | |
2254 | cat >conftest.$ac_ext <<_ACEOF | |
2255 | #ifndef __cplusplus | |
2256 | choke me | |
2257 | #endif | |
2258 | _ACEOF | |
2259 | rm -f conftest.$ac_objext | |
25ed0b71 | 2260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 2261 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 2262 | ac_status=$? |
430b7832 MM |
2263 | grep -v '^ *+' conftest.er1 >conftest.err |
2264 | rm -f conftest.er1 | |
2265 | cat conftest.err >&5 | |
25ed0b71 | 2266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 2267 | (exit $ac_status); } && |
430b7832 MM |
2268 | { ac_try='test -z "$ac_c_werror_flag" |
2269 | || test ! -s conftest.err' | |
2270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2271 | (eval $ac_try) 2>&5 | |
2272 | ac_status=$? | |
2273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2274 | (exit $ac_status); }; } && | |
2275 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 2276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
2277 | (eval $ac_try) 2>&5 |
2278 | ac_status=$? | |
25ed0b71 | 2279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
2280 | (exit $ac_status); }; }; then |
2281 | for ac_declaration in \ | |
430b7832 | 2282 | '' \ |
9255ee31 EZ |
2283 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2284 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2285 | 'extern "C" void exit (int) throw ();' \ | |
2286 | 'extern "C" void exit (int);' \ | |
2287 | 'void exit (int);' | |
2288 | do | |
2289 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
2290 | /* confdefs.h. */ |
2291 | _ACEOF | |
2292 | cat confdefs.h >>conftest.$ac_ext | |
2293 | cat >>conftest.$ac_ext <<_ACEOF | |
2294 | /* end confdefs.h. */ | |
9255ee31 | 2295 | $ac_declaration |
430b7832 | 2296 | #include <stdlib.h> |
9255ee31 EZ |
2297 | int |
2298 | main () | |
2299 | { | |
2300 | exit (42); | |
2301 | ; | |
2302 | return 0; | |
2303 | } | |
2304 | _ACEOF | |
2305 | rm -f conftest.$ac_objext | |
25ed0b71 | 2306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 2307 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 2308 | ac_status=$? |
430b7832 MM |
2309 | grep -v '^ *+' conftest.er1 >conftest.err |
2310 | rm -f conftest.er1 | |
2311 | cat conftest.err >&5 | |
25ed0b71 | 2312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 2313 | (exit $ac_status); } && |
430b7832 MM |
2314 | { ac_try='test -z "$ac_c_werror_flag" |
2315 | || test ! -s conftest.err' | |
2316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2317 | (eval $ac_try) 2>&5 | |
2318 | ac_status=$? | |
2319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2320 | (exit $ac_status); }; } && | |
2321 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 2322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
2323 | (eval $ac_try) 2>&5 |
2324 | ac_status=$? | |
25ed0b71 | 2325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
2326 | (exit $ac_status); }; }; then |
2327 | : | |
2328 | else | |
2329 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
2330 | sed 's/^/| /' conftest.$ac_ext >&5 |
2331 | ||
9255ee31 EZ |
2332 | continue |
2333 | fi | |
430b7832 | 2334 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9255ee31 | 2335 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
2336 | /* confdefs.h. */ |
2337 | _ACEOF | |
2338 | cat confdefs.h >>conftest.$ac_ext | |
2339 | cat >>conftest.$ac_ext <<_ACEOF | |
2340 | /* end confdefs.h. */ | |
9255ee31 EZ |
2341 | $ac_declaration |
2342 | int | |
2343 | main () | |
2344 | { | |
2345 | exit (42); | |
2346 | ; | |
2347 | return 0; | |
2348 | } | |
2349 | _ACEOF | |
2350 | rm -f conftest.$ac_objext | |
25ed0b71 | 2351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 2352 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 2353 | ac_status=$? |
430b7832 MM |
2354 | grep -v '^ *+' conftest.er1 >conftest.err |
2355 | rm -f conftest.er1 | |
2356 | cat conftest.err >&5 | |
25ed0b71 | 2357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 2358 | (exit $ac_status); } && |
430b7832 MM |
2359 | { ac_try='test -z "$ac_c_werror_flag" |
2360 | || test ! -s conftest.err' | |
2361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2362 | (eval $ac_try) 2>&5 | |
2363 | ac_status=$? | |
2364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2365 | (exit $ac_status); }; } && | |
2366 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 2367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
2368 | (eval $ac_try) 2>&5 |
2369 | ac_status=$? | |
25ed0b71 | 2370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
2371 | (exit $ac_status); }; }; then |
2372 | break | |
2373 | else | |
2374 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
2375 | sed 's/^/| /' conftest.$ac_ext >&5 |
2376 | ||
9255ee31 | 2377 | fi |
430b7832 | 2378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9255ee31 EZ |
2379 | done |
2380 | rm -f conftest* | |
2381 | if test -n "$ac_declaration"; then | |
2382 | echo '#ifdef __cplusplus' >>confdefs.h | |
2383 | echo $ac_declaration >>confdefs.h | |
2384 | echo '#endif' >>confdefs.h | |
2385 | fi | |
d60d9f65 | 2386 | |
9255ee31 EZ |
2387 | else |
2388 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
2389 | sed 's/^/| /' conftest.$ac_ext >&5 |
2390 | ||
9255ee31 | 2391 | fi |
430b7832 | 2392 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9255ee31 EZ |
2393 | ac_ext=c |
2394 | ac_cpp='$CPP $CPPFLAGS' | |
2395 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2396 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2397 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2398 | ||
25ed0b71 | 2399 | |
9255ee31 EZ |
2400 | ac_ext=c |
2401 | ac_cpp='$CPP $CPPFLAGS' | |
2402 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2403 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2404 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
25ed0b71 | 2405 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
9255ee31 | 2406 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
d60d9f65 SS |
2407 | # On Suns, sometimes $CPP names a directory. |
2408 | if test -n "$CPP" && test -d "$CPP"; then | |
2409 | CPP= | |
2410 | fi | |
2411 | if test -z "$CPP"; then | |
9255ee31 EZ |
2412 | if test "${ac_cv_prog_CPP+set}" = set; then |
2413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 2414 | else |
9255ee31 EZ |
2415 | # Double quotes because CPP needs to be expanded |
2416 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2417 | do | |
2418 | ac_preproc_ok=false | |
2419 | for ac_c_preproc_warn_flag in '' yes | |
2420 | do | |
2421 | # Use a header file that comes with gcc, so configuring glibc | |
2422 | # with a fresh cross-compiler works. | |
25ed0b71 KW |
2423 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
2424 | # <limits.h> exists even on freestanding compilers. | |
d60d9f65 | 2425 | # On the NeXT, cc -E runs the code through the compiler's parser, |
9255ee31 EZ |
2426 | # not just through cpp. "Syntax error" is here to catch this case. |
2427 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
2428 | /* confdefs.h. */ |
2429 | _ACEOF | |
2430 | cat confdefs.h >>conftest.$ac_ext | |
2431 | cat >>conftest.$ac_ext <<_ACEOF | |
2432 | /* end confdefs.h. */ | |
2433 | #ifdef __STDC__ | |
2434 | # include <limits.h> | |
2435 | #else | |
2436 | # include <assert.h> | |
2437 | #endif | |
430b7832 | 2438 | Syntax error |
9255ee31 | 2439 | _ACEOF |
25ed0b71 | 2440 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
9255ee31 EZ |
2441 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2442 | ac_status=$? | |
25ed0b71 | 2443 | grep -v '^ *+' conftest.er1 >conftest.err |
9255ee31 EZ |
2444 | rm -f conftest.er1 |
2445 | cat conftest.err >&5 | |
25ed0b71 | 2446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
2447 | (exit $ac_status); } >/dev/null; then |
2448 | if test -s conftest.err; then | |
2449 | ac_cpp_err=$ac_c_preproc_warn_flag | |
430b7832 | 2450 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
9255ee31 EZ |
2451 | else |
2452 | ac_cpp_err= | |
2453 | fi | |
2454 | else | |
2455 | ac_cpp_err=yes | |
2456 | fi | |
2457 | if test -z "$ac_cpp_err"; then | |
d60d9f65 SS |
2458 | : |
2459 | else | |
9255ee31 | 2460 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
2461 | sed 's/^/| /' conftest.$ac_ext >&5 |
2462 | ||
9255ee31 EZ |
2463 | # Broken: fails on valid input. |
2464 | continue | |
2465 | fi | |
2466 | rm -f conftest.err conftest.$ac_ext | |
2467 | ||
2468 | # OK, works on sane cases. Now check whether non-existent headers | |
2469 | # can be detected and how. | |
2470 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
2471 | /* confdefs.h. */ |
2472 | _ACEOF | |
2473 | cat confdefs.h >>conftest.$ac_ext | |
2474 | cat >>conftest.$ac_ext <<_ACEOF | |
2475 | /* end confdefs.h. */ | |
9255ee31 EZ |
2476 | #include <ac_nonexistent.h> |
2477 | _ACEOF | |
25ed0b71 | 2478 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
9255ee31 EZ |
2479 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2480 | ac_status=$? | |
25ed0b71 | 2481 | grep -v '^ *+' conftest.er1 >conftest.err |
9255ee31 EZ |
2482 | rm -f conftest.er1 |
2483 | cat conftest.err >&5 | |
25ed0b71 | 2484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
2485 | (exit $ac_status); } >/dev/null; then |
2486 | if test -s conftest.err; then | |
2487 | ac_cpp_err=$ac_c_preproc_warn_flag | |
430b7832 | 2488 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
9255ee31 EZ |
2489 | else |
2490 | ac_cpp_err= | |
2491 | fi | |
2492 | else | |
2493 | ac_cpp_err=yes | |
2494 | fi | |
2495 | if test -z "$ac_cpp_err"; then | |
2496 | # Broken: success on invalid input. | |
2497 | continue | |
d60d9f65 | 2498 | else |
9255ee31 | 2499 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
2500 | sed 's/^/| /' conftest.$ac_ext >&5 |
2501 | ||
9255ee31 EZ |
2502 | # Passes both tests. |
2503 | ac_preproc_ok=: | |
2504 | break | |
2505 | fi | |
2506 | rm -f conftest.err conftest.$ac_ext | |
2507 | ||
2508 | done | |
2509 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2510 | rm -f conftest.err conftest.$ac_ext | |
2511 | if $ac_preproc_ok; then | |
2512 | break | |
2513 | fi | |
2514 | ||
2515 | done | |
2516 | ac_cv_prog_CPP=$CPP | |
2517 | ||
2518 | fi | |
2519 | CPP=$ac_cv_prog_CPP | |
2520 | else | |
2521 | ac_cv_prog_CPP=$CPP | |
2522 | fi | |
25ed0b71 | 2523 | echo "$as_me:$LINENO: result: $CPP" >&5 |
9255ee31 EZ |
2524 | echo "${ECHO_T}$CPP" >&6 |
2525 | ac_preproc_ok=false | |
2526 | for ac_c_preproc_warn_flag in '' yes | |
2527 | do | |
2528 | # Use a header file that comes with gcc, so configuring glibc | |
2529 | # with a fresh cross-compiler works. | |
25ed0b71 KW |
2530 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
2531 | # <limits.h> exists even on freestanding compilers. | |
9255ee31 EZ |
2532 | # On the NeXT, cc -E runs the code through the compiler's parser, |
2533 | # not just through cpp. "Syntax error" is here to catch this case. | |
2534 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
2535 | /* confdefs.h. */ |
2536 | _ACEOF | |
2537 | cat confdefs.h >>conftest.$ac_ext | |
2538 | cat >>conftest.$ac_ext <<_ACEOF | |
2539 | /* end confdefs.h. */ | |
2540 | #ifdef __STDC__ | |
2541 | # include <limits.h> | |
2542 | #else | |
2543 | # include <assert.h> | |
2544 | #endif | |
430b7832 | 2545 | Syntax error |
9255ee31 | 2546 | _ACEOF |
25ed0b71 | 2547 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
9255ee31 EZ |
2548 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2549 | ac_status=$? | |
25ed0b71 | 2550 | grep -v '^ *+' conftest.er1 >conftest.err |
9255ee31 EZ |
2551 | rm -f conftest.er1 |
2552 | cat conftest.err >&5 | |
25ed0b71 | 2553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
2554 | (exit $ac_status); } >/dev/null; then |
2555 | if test -s conftest.err; then | |
2556 | ac_cpp_err=$ac_c_preproc_warn_flag | |
430b7832 | 2557 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
9255ee31 EZ |
2558 | else |
2559 | ac_cpp_err= | |
2560 | fi | |
2561 | else | |
2562 | ac_cpp_err=yes | |
2563 | fi | |
2564 | if test -z "$ac_cpp_err"; then | |
d60d9f65 SS |
2565 | : |
2566 | else | |
9255ee31 | 2567 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
2568 | sed 's/^/| /' conftest.$ac_ext >&5 |
2569 | ||
9255ee31 EZ |
2570 | # Broken: fails on valid input. |
2571 | continue | |
d60d9f65 | 2572 | fi |
9255ee31 EZ |
2573 | rm -f conftest.err conftest.$ac_ext |
2574 | ||
2575 | # OK, works on sane cases. Now check whether non-existent headers | |
2576 | # can be detected and how. | |
2577 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
2578 | /* confdefs.h. */ |
2579 | _ACEOF | |
2580 | cat confdefs.h >>conftest.$ac_ext | |
2581 | cat >>conftest.$ac_ext <<_ACEOF | |
2582 | /* end confdefs.h. */ | |
9255ee31 EZ |
2583 | #include <ac_nonexistent.h> |
2584 | _ACEOF | |
25ed0b71 | 2585 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
9255ee31 EZ |
2586 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2587 | ac_status=$? | |
25ed0b71 | 2588 | grep -v '^ *+' conftest.er1 >conftest.err |
9255ee31 EZ |
2589 | rm -f conftest.er1 |
2590 | cat conftest.err >&5 | |
25ed0b71 | 2591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
2592 | (exit $ac_status); } >/dev/null; then |
2593 | if test -s conftest.err; then | |
2594 | ac_cpp_err=$ac_c_preproc_warn_flag | |
430b7832 | 2595 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
9255ee31 EZ |
2596 | else |
2597 | ac_cpp_err= | |
2598 | fi | |
2599 | else | |
2600 | ac_cpp_err=yes | |
d60d9f65 | 2601 | fi |
9255ee31 EZ |
2602 | if test -z "$ac_cpp_err"; then |
2603 | # Broken: success on invalid input. | |
2604 | continue | |
2605 | else | |
2606 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
2607 | sed 's/^/| /' conftest.$ac_ext >&5 |
2608 | ||
9255ee31 EZ |
2609 | # Passes both tests. |
2610 | ac_preproc_ok=: | |
2611 | break | |
d60d9f65 | 2612 | fi |
9255ee31 EZ |
2613 | rm -f conftest.err conftest.$ac_ext |
2614 | ||
2615 | done | |
2616 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2617 | rm -f conftest.err conftest.$ac_ext | |
2618 | if $ac_preproc_ok; then | |
2619 | : | |
d60d9f65 | 2620 | else |
25ed0b71 KW |
2621 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
2622 | See \`config.log' for more details." >&5 | |
2623 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
2624 | See \`config.log' for more details." >&2;} | |
9255ee31 | 2625 | { (exit 1); exit 1; }; } |
d60d9f65 | 2626 | fi |
d60d9f65 | 2627 | |
9255ee31 EZ |
2628 | ac_ext=c |
2629 | ac_cpp='$CPP $CPPFLAGS' | |
2630 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2631 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2632 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2633 | ||
25ed0b71 KW |
2634 | |
2635 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
2636 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
2637 | if test "${ac_cv_prog_egrep+set}" = set; then | |
9255ee31 | 2638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d60d9f65 | 2639 | else |
25ed0b71 KW |
2640 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
2641 | then ac_cv_prog_egrep='grep -E' | |
2642 | else ac_cv_prog_egrep='egrep' | |
2643 | fi | |
d60d9f65 | 2644 | fi |
25ed0b71 KW |
2645 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
2646 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
2647 | EGREP=$ac_cv_prog_egrep | |
d60d9f65 | 2648 | |
9255ee31 | 2649 | |
25ed0b71 KW |
2650 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
2651 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
2652 | if test "${ac_cv_header_stdc+set}" = set; then | |
2653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2654 | else | |
2655 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
2656 | /* confdefs.h. */ |
2657 | _ACEOF | |
2658 | cat confdefs.h >>conftest.$ac_ext | |
2659 | cat >>conftest.$ac_ext <<_ACEOF | |
2660 | /* end confdefs.h. */ | |
2661 | #include <stdlib.h> | |
2662 | #include <stdarg.h> | |
2663 | #include <string.h> | |
2664 | #include <float.h> | |
d60d9f65 | 2665 | |
25ed0b71 KW |
2666 | int |
2667 | main () | |
2668 | { | |
d60d9f65 | 2669 | |
25ed0b71 KW |
2670 | ; |
2671 | return 0; | |
2672 | } | |
2673 | _ACEOF | |
2674 | rm -f conftest.$ac_objext | |
2675 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
430b7832 | 2676 | (eval $ac_compile) 2>conftest.er1 |
25ed0b71 | 2677 | ac_status=$? |
430b7832 MM |
2678 | grep -v '^ *+' conftest.er1 >conftest.err |
2679 | rm -f conftest.er1 | |
2680 | cat conftest.err >&5 | |
25ed0b71 KW |
2681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2682 | (exit $ac_status); } && | |
430b7832 MM |
2683 | { ac_try='test -z "$ac_c_werror_flag" |
2684 | || test ! -s conftest.err' | |
2685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2686 | (eval $ac_try) 2>&5 | |
2687 | ac_status=$? | |
2688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2689 | (exit $ac_status); }; } && | |
2690 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 KW |
2691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2692 | (eval $ac_try) 2>&5 | |
2693 | ac_status=$? | |
2694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2695 | (exit $ac_status); }; }; then | |
2696 | ac_cv_header_stdc=yes | |
2697 | else | |
2698 | echo "$as_me: failed program was:" >&5 | |
2699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d60d9f65 | 2700 | |
25ed0b71 | 2701 | ac_cv_header_stdc=no |
d60d9f65 | 2702 | fi |
430b7832 | 2703 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 2704 | |
25ed0b71 KW |
2705 | if test $ac_cv_header_stdc = yes; then |
2706 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2707 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
2708 | /* confdefs.h. */ |
2709 | _ACEOF | |
2710 | cat confdefs.h >>conftest.$ac_ext | |
2711 | cat >>conftest.$ac_ext <<_ACEOF | |
2712 | /* end confdefs.h. */ | |
2713 | #include <string.h> | |
9255ee31 | 2714 | |
25ed0b71 KW |
2715 | _ACEOF |
2716 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2717 | $EGREP "memchr" >/dev/null 2>&1; then | |
2718 | : | |
d60d9f65 | 2719 | else |
25ed0b71 | 2720 | ac_cv_header_stdc=no |
d60d9f65 | 2721 | fi |
25ed0b71 | 2722 | rm -f conftest* |
d60d9f65 | 2723 | |
d60d9f65 SS |
2724 | fi |
2725 | ||
25ed0b71 KW |
2726 | if test $ac_cv_header_stdc = yes; then |
2727 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
9255ee31 | 2728 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 | 2729 | /* confdefs.h. */ |
9255ee31 | 2730 | _ACEOF |
25ed0b71 KW |
2731 | cat confdefs.h >>conftest.$ac_ext |
2732 | cat >>conftest.$ac_ext <<_ACEOF | |
2733 | /* end confdefs.h. */ | |
2734 | #include <stdlib.h> | |
d60d9f65 | 2735 | |
9255ee31 | 2736 | _ACEOF |
d60d9f65 | 2737 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
25ed0b71 KW |
2738 | $EGREP "free" >/dev/null 2>&1; then |
2739 | : | |
2740 | else | |
2741 | ac_cv_header_stdc=no | |
d60d9f65 SS |
2742 | fi |
2743 | rm -f conftest* | |
2744 | ||
d60d9f65 SS |
2745 | fi |
2746 | ||
25ed0b71 KW |
2747 | if test $ac_cv_header_stdc = yes; then |
2748 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2749 | if test "$cross_compiling" = yes; then | |
2750 | : | |
2751 | else | |
2752 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
2753 | /* confdefs.h. */ |
2754 | _ACEOF | |
2755 | cat confdefs.h >>conftest.$ac_ext | |
2756 | cat >>conftest.$ac_ext <<_ACEOF | |
2757 | /* end confdefs.h. */ | |
2758 | #include <ctype.h> | |
2759 | #if ((' ' & 0x0FF) == 0x020) | |
2760 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2761 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2762 | #else | |
2763 | # define ISLOWER(c) \ | |
430b7832 MM |
2764 | (('a' <= (c) && (c) <= 'i') \ |
2765 | || ('j' <= (c) && (c) <= 'r') \ | |
2766 | || ('s' <= (c) && (c) <= 'z')) | |
25ed0b71 KW |
2767 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
2768 | #endif | |
2769 | ||
2770 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
2771 | int | |
2772 | main () | |
2773 | { | |
2774 | int i; | |
2775 | for (i = 0; i < 256; i++) | |
2776 | if (XOR (islower (i), ISLOWER (i)) | |
430b7832 | 2777 | || toupper (i) != TOUPPER (i)) |
25ed0b71 KW |
2778 | exit(2); |
2779 | exit (0); | |
2780 | } | |
2781 | _ACEOF | |
2782 | rm -f conftest$ac_exeext | |
2783 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2784 | (eval $ac_link) 2>&5 | |
2785 | ac_status=$? | |
2786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2787 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
2788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2789 | (eval $ac_try) 2>&5 | |
2790 | ac_status=$? | |
2791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2792 | (exit $ac_status); }; }; then | |
2793 | : | |
2794 | else | |
2795 | echo "$as_me: program exited with status $ac_status" >&5 | |
2796 | echo "$as_me: failed program was:" >&5 | |
2797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2798 | ||
2799 | ( exit $ac_status ) | |
2800 | ac_cv_header_stdc=no | |
2801 | fi | |
430b7832 | 2802 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
25ed0b71 KW |
2803 | fi |
2804 | fi | |
2805 | fi | |
2806 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
2807 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
2808 | if test $ac_cv_header_stdc = yes; then | |
2809 | ||
2810 | cat >>confdefs.h <<\_ACEOF | |
2811 | #define STDC_HEADERS 1 | |
2812 | _ACEOF | |
2813 | ||
2814 | fi | |
2815 | ||
2816 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
2817 | ||
2818 | ||
2819 | ||
2820 | ||
2821 | ||
2822 | ||
2823 | ||
2824 | ||
2825 | ||
2826 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
430b7832 | 2827 | inttypes.h stdint.h unistd.h |
25ed0b71 KW |
2828 | do |
2829 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
2830 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
2831 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
2832 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9255ee31 | 2833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d60d9f65 | 2834 | else |
25ed0b71 | 2835 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
2836 | /* confdefs.h. */ |
2837 | _ACEOF | |
2838 | cat confdefs.h >>conftest.$ac_ext | |
2839 | cat >>conftest.$ac_ext <<_ACEOF | |
2840 | /* end confdefs.h. */ | |
2841 | $ac_includes_default | |
2842 | ||
2843 | #include <$ac_header> | |
2844 | _ACEOF | |
2845 | rm -f conftest.$ac_objext | |
2846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
430b7832 | 2847 | (eval $ac_compile) 2>conftest.er1 |
25ed0b71 | 2848 | ac_status=$? |
430b7832 MM |
2849 | grep -v '^ *+' conftest.er1 >conftest.err |
2850 | rm -f conftest.er1 | |
2851 | cat conftest.err >&5 | |
25ed0b71 KW |
2852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2853 | (exit $ac_status); } && | |
430b7832 MM |
2854 | { ac_try='test -z "$ac_c_werror_flag" |
2855 | || test ! -s conftest.err' | |
2856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2857 | (eval $ac_try) 2>&5 | |
2858 | ac_status=$? | |
2859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2860 | (exit $ac_status); }; } && | |
2861 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 KW |
2862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2863 | (eval $ac_try) 2>&5 | |
2864 | ac_status=$? | |
2865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2866 | (exit $ac_status); }; }; then | |
2867 | eval "$as_ac_Header=yes" | |
2868 | else | |
2869 | echo "$as_me: failed program was:" >&5 | |
2870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2871 | ||
2872 | eval "$as_ac_Header=no" | |
2873 | fi | |
430b7832 | 2874 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
25ed0b71 KW |
2875 | fi |
2876 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
2877 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2878 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
2879 | cat >>confdefs.h <<_ACEOF | |
2880 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
2881 | _ACEOF | |
2882 | ||
2883 | fi | |
2884 | ||
2885 | done | |
2886 | ||
2887 | ||
2888 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
2889 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
2890 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 | |
2891 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
2892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2893 | fi | |
2894 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
2895 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 | |
2896 | else | |
2897 | # Is the header compilable? | |
2898 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 | |
2899 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 | |
2900 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
2901 | /* confdefs.h. */ |
2902 | _ACEOF | |
2903 | cat confdefs.h >>conftest.$ac_ext | |
2904 | cat >>conftest.$ac_ext <<_ACEOF | |
2905 | /* end confdefs.h. */ | |
2906 | $ac_includes_default | |
2907 | #include <minix/config.h> | |
2908 | _ACEOF | |
2909 | rm -f conftest.$ac_objext | |
2910 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
430b7832 | 2911 | (eval $ac_compile) 2>conftest.er1 |
25ed0b71 | 2912 | ac_status=$? |
430b7832 MM |
2913 | grep -v '^ *+' conftest.er1 >conftest.err |
2914 | rm -f conftest.er1 | |
2915 | cat conftest.err >&5 | |
25ed0b71 KW |
2916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2917 | (exit $ac_status); } && | |
430b7832 MM |
2918 | { ac_try='test -z "$ac_c_werror_flag" |
2919 | || test ! -s conftest.err' | |
2920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2921 | (eval $ac_try) 2>&5 | |
2922 | ac_status=$? | |
2923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2924 | (exit $ac_status); }; } && | |
2925 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 KW |
2926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2927 | (eval $ac_try) 2>&5 | |
2928 | ac_status=$? | |
2929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2930 | (exit $ac_status); }; }; then | |
2931 | ac_header_compiler=yes | |
2932 | else | |
2933 | echo "$as_me: failed program was:" >&5 | |
2934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2935 | ||
2936 | ac_header_compiler=no | |
2937 | fi | |
430b7832 | 2938 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
25ed0b71 KW |
2939 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
2940 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
2941 | ||
2942 | # Is the header present? | |
2943 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 | |
2944 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 | |
2945 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
2946 | /* confdefs.h. */ |
2947 | _ACEOF | |
2948 | cat confdefs.h >>conftest.$ac_ext | |
2949 | cat >>conftest.$ac_ext <<_ACEOF | |
2950 | /* end confdefs.h. */ | |
2951 | #include <minix/config.h> | |
2952 | _ACEOF | |
2953 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2954 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2955 | ac_status=$? | |
2956 | grep -v '^ *+' conftest.er1 >conftest.err | |
2957 | rm -f conftest.er1 | |
2958 | cat conftest.err >&5 | |
2959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2960 | (exit $ac_status); } >/dev/null; then | |
2961 | if test -s conftest.err; then | |
2962 | ac_cpp_err=$ac_c_preproc_warn_flag | |
430b7832 | 2963 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
25ed0b71 KW |
2964 | else |
2965 | ac_cpp_err= | |
2966 | fi | |
2967 | else | |
2968 | ac_cpp_err=yes | |
2969 | fi | |
2970 | if test -z "$ac_cpp_err"; then | |
2971 | ac_header_preproc=yes | |
2972 | else | |
2973 | echo "$as_me: failed program was:" >&5 | |
2974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2975 | ||
2976 | ac_header_preproc=no | |
2977 | fi | |
2978 | rm -f conftest.err conftest.$ac_ext | |
2979 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
2980 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
2981 | ||
2982 | # So? What about this header? | |
430b7832 MM |
2983 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
2984 | yes:no: ) | |
25ed0b71 KW |
2985 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
2986 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
430b7832 MM |
2987 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 |
2988 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} | |
2989 | ac_header_preproc=yes | |
25ed0b71 | 2990 | ;; |
430b7832 | 2991 | no:yes:* ) |
25ed0b71 KW |
2992 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 |
2993 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} | |
430b7832 MM |
2994 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 |
2995 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} | |
2996 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 | |
2997 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} | |
2998 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 | |
2999 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
25ed0b71 KW |
3000 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 |
3001 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} | |
430b7832 MM |
3002 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 |
3003 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} | |
25ed0b71 KW |
3004 | ( |
3005 | cat <<\_ASBOX | |
430b7832 MM |
3006 | ## ----------------------------------- ## |
3007 | ## Report this to bug-readline@gnu.org ## | |
3008 | ## ----------------------------------- ## | |
25ed0b71 KW |
3009 | _ASBOX |
3010 | ) | | |
3011 | sed "s/^/$as_me: WARNING: /" >&2 | |
3012 | ;; | |
3013 | esac | |
3014 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
3015 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 | |
3016 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
3017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3018 | else | |
3019 | ac_cv_header_minix_config_h=$ac_header_preproc | |
3020 | fi | |
3021 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
3022 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 | |
3023 | ||
3024 | fi | |
3025 | if test $ac_cv_header_minix_config_h = yes; then | |
3026 | MINIX=yes | |
3027 | else | |
3028 | MINIX= | |
3029 | fi | |
3030 | ||
3031 | ||
3032 | if test "$MINIX" = yes; then | |
3033 | ||
3034 | cat >>confdefs.h <<\_ACEOF | |
3035 | #define _POSIX_SOURCE 1 | |
3036 | _ACEOF | |
3037 | ||
3038 | ||
3039 | cat >>confdefs.h <<\_ACEOF | |
3040 | #define _POSIX_1_SOURCE 2 | |
3041 | _ACEOF | |
3042 | ||
3043 | ||
3044 | cat >>confdefs.h <<\_ACEOF | |
3045 | #define _MINIX 1 | |
3046 | _ACEOF | |
3047 | ||
3048 | fi | |
3049 | ||
3050 | ||
3051 | ||
3052 | if test "x$cross_compiling" = "xyes"; then | |
3053 | case "${host}" in | |
3054 | *-cygwin*) | |
3055 | cross_cache=${srcdir}/cross-build/cygwin.cache | |
25ed0b71 | 3056 | LOCAL_CFLAGS="$LOCAL_CFLAGS -I${srcdir}/../libtermcap" |
25ed0b71 | 3057 | ;; |
430b7832 MM |
3058 | *-mingw32*) |
3059 | cross_cache=${srcdir}/cross-build/mingw.cache | |
3060 | ;; | |
25ed0b71 KW |
3061 | *) echo "configure: cross-compiling for a non-cygwin target is not supported" >&2 |
3062 | ;; | |
d60d9f65 | 3063 | esac |
430b7832 MM |
3064 | |
3065 | if test "x$cross_cache" != "x"; then | |
3066 | if test -r "${cross_cache}"; then | |
3067 | echo "loading cross-build cache file ${cross_cache}" | |
3068 | . ${cross_cache} | |
3069 | fi | |
3070 | unset cross_cache | |
3071 | fi | |
25ed0b71 KW |
3072 | fi |
3073 | ||
3074 | if test "x$cross_compiling" = "xyes"; then | |
3075 | CROSS_COMPILING_FLAG=-DCROSS_COMPILING | |
3076 | else | |
3077 | CROSS_COMPILING_FLAG= | |
3078 | fi | |
3079 | ||
3080 | ||
3081 | if test -z "$CC_FOR_BUILD"; then | |
3082 | if test "x$cross_compiling" = "xno"; then | |
3083 | CC_FOR_BUILD='$(CC)' | |
3084 | else | |
3085 | CC_FOR_BUILD=gcc | |
3086 | fi | |
3087 | fi | |
3088 | ||
3089 | ||
3090 | ||
3091 | # If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS. | |
3092 | test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O" | |
3093 | ||
3094 | if test $ac_cv_c_compiler_gnu = yes; then | |
3095 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
3096 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
3097 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
3098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3099 | else | |
3100 | ac_pattern="Autoconf.*'x'" | |
3101 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
3102 | /* confdefs.h. */ |
3103 | _ACEOF | |
3104 | cat confdefs.h >>conftest.$ac_ext | |
3105 | cat >>conftest.$ac_ext <<_ACEOF | |
3106 | /* end confdefs.h. */ | |
3107 | #include <sgtty.h> | |
3108 | Autoconf TIOCGETP | |
3109 | _ACEOF | |
3110 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3111 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3112 | ac_cv_prog_gcc_traditional=yes | |
3113 | else | |
3114 | ac_cv_prog_gcc_traditional=no | |
3115 | fi | |
3116 | rm -f conftest* | |
3117 | ||
3118 | ||
3119 | if test $ac_cv_prog_gcc_traditional = no; then | |
3120 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
3121 | /* confdefs.h. */ |
3122 | _ACEOF | |
3123 | cat confdefs.h >>conftest.$ac_ext | |
3124 | cat >>conftest.$ac_ext <<_ACEOF | |
3125 | /* end confdefs.h. */ | |
3126 | #include <termio.h> | |
3127 | Autoconf TCGETA | |
3128 | _ACEOF | |
3129 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3130 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
3131 | ac_cv_prog_gcc_traditional=yes | |
3132 | fi | |
3133 | rm -f conftest* | |
3134 | ||
3135 | fi | |
3136 | fi | |
3137 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
3138 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
3139 | if test $ac_cv_prog_gcc_traditional = yes; then | |
3140 | CC="$CC -traditional" | |
3141 | fi | |
3142 | fi | |
3143 | ||
3144 | # Find a good install program. We prefer a C program (faster), | |
3145 | # so one script is as good as another. But avoid the broken or | |
3146 | # incompatible versions: | |
3147 | # SysV /etc/install, /usr/sbin/install | |
3148 | # SunOS /usr/etc/install | |
3149 | # IRIX /sbin/install | |
3150 | # AIX /bin/install | |
3151 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3152 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3153 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3154 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
430b7832 | 3155 | # OS/2's system install, which has a completely different semantic |
25ed0b71 KW |
3156 | # ./install, which can be erroneously created by make from ./install.sh. |
3157 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3158 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
3159 | if test -z "$INSTALL"; then | |
3160 | if test "${ac_cv_path_install+set}" = set; then | |
3161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3162 | else | |
3163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3164 | for as_dir in $PATH | |
3165 | do | |
3166 | IFS=$as_save_IFS | |
3167 | test -z "$as_dir" && as_dir=. | |
3168 | # Account for people who put trailing slashes in PATH elements. | |
3169 | case $as_dir/ in | |
3170 | ./ | .// | /cC/* | \ | |
3171 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
430b7832 | 3172 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
25ed0b71 KW |
3173 | /usr/ucb/* ) ;; |
3174 | *) | |
3175 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3176 | # Don't use installbsd from OSF since it installs stuff as root | |
3177 | # by default. | |
3178 | for ac_prog in ginstall scoinst install; do | |
3179 | for ac_exec_ext in '' $ac_executable_extensions; do | |
430b7832 MM |
3180 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
3181 | if test $ac_prog = install && | |
3182 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3183 | # AIX install. It has an incompatible calling convention. | |
3184 | : | |
3185 | elif test $ac_prog = install && | |
3186 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3187 | # program-specific install script used by HP pwplus--don't use. | |
3188 | : | |
3189 | else | |
3190 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3191 | break 3 | |
3192 | fi | |
3193 | fi | |
25ed0b71 KW |
3194 | done |
3195 | done | |
3196 | ;; | |
3197 | esac | |
3198 | done | |
3199 | ||
d60d9f65 SS |
3200 | |
3201 | fi | |
3202 | if test "${ac_cv_path_install+set}" = set; then | |
9255ee31 | 3203 | INSTALL=$ac_cv_path_install |
d60d9f65 SS |
3204 | else |
3205 | # As a last resort, use the slow shell script. We don't cache a | |
3206 | # path for INSTALL within a source directory, because that will | |
3207 | # break other packages using the cache if that directory is | |
3208 | # removed, or if the path is relative. | |
9255ee31 | 3209 | INSTALL=$ac_install_sh |
d60d9f65 SS |
3210 | fi |
3211 | fi | |
25ed0b71 | 3212 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
9255ee31 | 3213 | echo "${ECHO_T}$INSTALL" >&6 |
d60d9f65 SS |
3214 | |
3215 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3216 | # It thinks the first close brace ends the variable substitution. | |
3217 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3218 | ||
9255ee31 | 3219 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
c862e87b | 3220 | |
d60d9f65 SS |
3221 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3222 | ||
c862e87b JM |
3223 | # Extract the first word of "ar", so it can be a program name with args. |
3224 | set dummy ar; ac_word=$2 | |
25ed0b71 | 3225 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9255ee31 EZ |
3226 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3227 | if test "${ac_cv_prog_AR+set}" = set; then | |
3228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c862e87b JM |
3229 | else |
3230 | if test -n "$AR"; then | |
3231 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3232 | else | |
25ed0b71 KW |
3233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3234 | for as_dir in $PATH | |
3235 | do | |
3236 | IFS=$as_save_IFS | |
3237 | test -z "$as_dir" && as_dir=. | |
3238 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3239 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3240 | ac_cv_prog_AR="" | |
3241 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3242 | break 2 | |
3243 | fi | |
3244 | done | |
9255ee31 EZ |
3245 | done |
3246 | ||
3247 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" | |
3248 | fi | |
3249 | fi | |
3250 | AR=$ac_cv_prog_AR | |
3251 | if test -n "$AR"; then | |
25ed0b71 | 3252 | echo "$as_me:$LINENO: result: $AR" >&5 |
9255ee31 EZ |
3253 | echo "${ECHO_T}$AR" >&6 |
3254 | else | |
25ed0b71 | 3255 | echo "$as_me:$LINENO: result: no" >&5 |
9255ee31 EZ |
3256 | echo "${ECHO_T}no" >&6 |
3257 | fi | |
3258 | ||
3259 | test -n "$ARFLAGS" || ARFLAGS="cr" | |
3260 | if test -n "$ac_tool_prefix"; then | |
3261 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3262 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
25ed0b71 | 3263 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9255ee31 EZ |
3264 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3265 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3266 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3267 | else | |
3268 | if test -n "$RANLIB"; then | |
3269 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3270 | else | |
25ed0b71 KW |
3271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3272 | for as_dir in $PATH | |
3273 | do | |
3274 | IFS=$as_save_IFS | |
3275 | test -z "$as_dir" && as_dir=. | |
3276 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3277 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3278 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3279 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3280 | break 2 | |
3281 | fi | |
3282 | done | |
9255ee31 EZ |
3283 | done |
3284 | ||
3285 | fi | |
3286 | fi | |
3287 | RANLIB=$ac_cv_prog_RANLIB | |
3288 | if test -n "$RANLIB"; then | |
25ed0b71 | 3289 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
9255ee31 EZ |
3290 | echo "${ECHO_T}$RANLIB" >&6 |
3291 | else | |
25ed0b71 | 3292 | echo "$as_me:$LINENO: result: no" >&5 |
9255ee31 EZ |
3293 | echo "${ECHO_T}no" >&6 |
3294 | fi | |
3295 | ||
3296 | fi | |
3297 | if test -z "$ac_cv_prog_RANLIB"; then | |
3298 | ac_ct_RANLIB=$RANLIB | |
3299 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3300 | set dummy ranlib; ac_word=$2 | |
25ed0b71 | 3301 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9255ee31 EZ |
3302 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
3303 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3305 | else | |
3306 | if test -n "$ac_ct_RANLIB"; then | |
3307 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3308 | else | |
25ed0b71 KW |
3309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3310 | for as_dir in $PATH | |
3311 | do | |
3312 | IFS=$as_save_IFS | |
3313 | test -z "$as_dir" && as_dir=. | |
3314 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3315 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3316 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3317 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3318 | break 2 | |
3319 | fi | |
3320 | done | |
9255ee31 EZ |
3321 | done |
3322 | ||
3323 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
3324 | fi | |
3325 | fi | |
3326 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3327 | if test -n "$ac_ct_RANLIB"; then | |
25ed0b71 | 3328 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
9255ee31 EZ |
3329 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
3330 | else | |
25ed0b71 | 3331 | echo "$as_me:$LINENO: result: no" >&5 |
9255ee31 EZ |
3332 | echo "${ECHO_T}no" >&6 |
3333 | fi | |
3334 | ||
3335 | RANLIB=$ac_ct_RANLIB | |
3336 | else | |
3337 | RANLIB="$ac_cv_prog_RANLIB" | |
3338 | fi | |
3339 | ||
9255ee31 | 3340 | |
25ed0b71 | 3341 | MAKE_SHELL=/bin/sh |
9255ee31 | 3342 | |
9255ee31 | 3343 | |
25ed0b71 | 3344 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
9255ee31 EZ |
3345 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
3346 | if test "${ac_cv_c_const+set}" = set; then | |
3347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3348 | else | |
3349 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
3350 | /* confdefs.h. */ |
3351 | _ACEOF | |
3352 | cat confdefs.h >>conftest.$ac_ext | |
3353 | cat >>conftest.$ac_ext <<_ACEOF | |
3354 | /* end confdefs.h. */ | |
9255ee31 EZ |
3355 | |
3356 | int | |
3357 | main () | |
3358 | { | |
3359 | /* FIXME: Include the comments suggested by Paul. */ | |
3360 | #ifndef __cplusplus | |
3361 | /* Ultrix mips cc rejects this. */ | |
3362 | typedef int charset[2]; | |
3363 | const charset x; | |
3364 | /* SunOS 4.1.1 cc rejects this. */ | |
3365 | char const *const *ccp; | |
3366 | char **p; | |
3367 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
3368 | struct point {int x, y;}; | |
3369 | static struct point const zero = {0,0}; | |
3370 | /* AIX XL C 1.02.0.0 rejects this. | |
3371 | It does not let you subtract one const X* pointer from another in | |
3372 | an arm of an if-expression whose if-part is not a constant | |
3373 | expression */ | |
3374 | const char *g = "string"; | |
3375 | ccp = &g + (g ? g-g : 0); | |
3376 | /* HPUX 7.0 cc rejects these. */ | |
3377 | ++ccp; | |
3378 | p = (char**) ccp; | |
3379 | ccp = (char const *const *) p; | |
3380 | { /* SCO 3.2v4 cc rejects this. */ | |
3381 | char *t; | |
3382 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3383 | ||
25ed0b71 KW |
3384 | *t++ = 0; |
3385 | } | |
3386 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3387 | int x[] = {25, 17}; | |
3388 | const int *foo = &x[0]; | |
3389 | ++foo; | |
3390 | } | |
3391 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3392 | typedef const int *iptr; | |
3393 | iptr p = 0; | |
3394 | ++p; | |
3395 | } | |
3396 | { /* AIX XL C 1.02.0.0 rejects this saying | |
3397 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3398 | struct s { int j; const int *ap[3]; }; | |
3399 | struct s *b; b->j = 5; | |
3400 | } | |
3401 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3402 | const int foo = 10; | |
3403 | } | |
3404 | #endif | |
9255ee31 | 3405 | |
25ed0b71 KW |
3406 | ; |
3407 | return 0; | |
3408 | } | |
9255ee31 EZ |
3409 | _ACEOF |
3410 | rm -f conftest.$ac_objext | |
25ed0b71 | 3411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 3412 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 3413 | ac_status=$? |
430b7832 MM |
3414 | grep -v '^ *+' conftest.er1 >conftest.err |
3415 | rm -f conftest.er1 | |
3416 | cat conftest.err >&5 | |
25ed0b71 | 3417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 3418 | (exit $ac_status); } && |
430b7832 MM |
3419 | { ac_try='test -z "$ac_c_werror_flag" |
3420 | || test ! -s conftest.err' | |
3421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3422 | (eval $ac_try) 2>&5 | |
3423 | ac_status=$? | |
3424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
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 |
25ed0b71 | 3432 | ac_cv_c_const=yes |
9255ee31 EZ |
3433 | else |
3434 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
3435 | sed 's/^/| /' conftest.$ac_ext >&5 |
3436 | ||
3437 | ac_cv_c_const=no | |
c862e87b | 3438 | fi |
430b7832 | 3439 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c862e87b | 3440 | fi |
25ed0b71 KW |
3441 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
3442 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
3443 | if test $ac_cv_c_const = no; then | |
3444 | ||
3445 | cat >>confdefs.h <<\_ACEOF | |
3446 | #define const | |
3447 | _ACEOF | |
9255ee31 | 3448 | |
c862e87b JM |
3449 | fi |
3450 | ||
25ed0b71 KW |
3451 | echo "$as_me:$LINENO: checking for function prototypes" >&5 |
3452 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 | |
3453 | if test "$ac_cv_prog_cc_stdc" != no; then | |
3454 | echo "$as_me:$LINENO: result: yes" >&5 | |
3455 | echo "${ECHO_T}yes" >&6 | |
3456 | ||
3457 | cat >>confdefs.h <<\_ACEOF | |
3458 | #define PROTOTYPES 1 | |
3459 | _ACEOF | |
3460 | ||
3461 | ||
3462 | cat >>confdefs.h <<\_ACEOF | |
3463 | #define __PROTOTYPES 1 | |
3464 | _ACEOF | |
3465 | ||
3466 | else | |
3467 | echo "$as_me:$LINENO: result: no" >&5 | |
3468 | echo "${ECHO_T}no" >&6 | |
3469 | fi | |
3470 | ||
3471 | ||
3472 | echo "$as_me:$LINENO: checking whether char is unsigned" >&5 | |
9255ee31 EZ |
3473 | echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6 |
3474 | if test "${ac_cv_c_char_unsigned+set}" = set; then | |
3475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 3476 | else |
9255ee31 | 3477 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
3478 | /* confdefs.h. */ |
3479 | _ACEOF | |
3480 | cat confdefs.h >>conftest.$ac_ext | |
3481 | cat >>conftest.$ac_ext <<_ACEOF | |
3482 | /* end confdefs.h. */ | |
9255ee31 EZ |
3483 | $ac_includes_default |
3484 | int | |
3485 | main () | |
3486 | { | |
25ed0b71 KW |
3487 | static int test_array [1 - 2 * !(((char) -1) < 0)]; |
3488 | test_array [0] = 0 | |
3489 | ||
9255ee31 EZ |
3490 | ; |
3491 | return 0; | |
3492 | } | |
3493 | _ACEOF | |
3494 | rm -f conftest.$ac_objext | |
25ed0b71 | 3495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 3496 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 3497 | ac_status=$? |
430b7832 MM |
3498 | grep -v '^ *+' conftest.er1 >conftest.err |
3499 | rm -f conftest.er1 | |
3500 | cat conftest.err >&5 | |
25ed0b71 | 3501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 3502 | (exit $ac_status); } && |
430b7832 MM |
3503 | { ac_try='test -z "$ac_c_werror_flag" |
3504 | || test ! -s conftest.err' | |
3505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3506 | (eval $ac_try) 2>&5 | |
3507 | ac_status=$? | |
3508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3509 | (exit $ac_status); }; } && | |
3510 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 3511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
3512 | (eval $ac_try) 2>&5 |
3513 | ac_status=$? | |
25ed0b71 | 3514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
3515 | (exit $ac_status); }; }; then |
3516 | ac_cv_c_char_unsigned=no | |
d60d9f65 | 3517 | else |
9255ee31 | 3518 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
3519 | sed 's/^/| /' conftest.$ac_ext >&5 |
3520 | ||
9255ee31 | 3521 | ac_cv_c_char_unsigned=yes |
d60d9f65 | 3522 | fi |
430b7832 | 3523 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 3524 | fi |
25ed0b71 | 3525 | echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5 |
9255ee31 EZ |
3526 | echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6 |
3527 | if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then | |
25ed0b71 | 3528 | cat >>confdefs.h <<\_ACEOF |
9255ee31 | 3529 | #define __CHAR_UNSIGNED__ 1 |
25ed0b71 | 3530 | _ACEOF |
d60d9f65 | 3531 | |
9255ee31 | 3532 | fi |
d60d9f65 | 3533 | |
25ed0b71 KW |
3534 | |
3535 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 | |
9255ee31 EZ |
3536 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
3537 | if test "${ac_cv_type_signal+set}" = set; then | |
3538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 3539 | else |
9255ee31 | 3540 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
3541 | /* confdefs.h. */ |
3542 | _ACEOF | |
3543 | cat confdefs.h >>conftest.$ac_ext | |
3544 | cat >>conftest.$ac_ext <<_ACEOF | |
3545 | /* end confdefs.h. */ | |
d60d9f65 SS |
3546 | #include <sys/types.h> |
3547 | #include <signal.h> | |
3548 | #ifdef signal | |
9255ee31 | 3549 | # undef signal |
d60d9f65 SS |
3550 | #endif |
3551 | #ifdef __cplusplus | |
3552 | extern "C" void (*signal (int, void (*)(int)))(int); | |
3553 | #else | |
3554 | void (*signal ()) (); | |
3555 | #endif | |
3556 | ||
9255ee31 EZ |
3557 | int |
3558 | main () | |
3559 | { | |
d60d9f65 | 3560 | int i; |
9255ee31 EZ |
3561 | ; |
3562 | return 0; | |
3563 | } | |
3564 | _ACEOF | |
3565 | rm -f conftest.$ac_objext | |
25ed0b71 | 3566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 3567 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 3568 | ac_status=$? |
430b7832 MM |
3569 | grep -v '^ *+' conftest.er1 >conftest.err |
3570 | rm -f conftest.er1 | |
3571 | cat conftest.err >&5 | |
25ed0b71 | 3572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 3573 | (exit $ac_status); } && |
430b7832 MM |
3574 | { ac_try='test -z "$ac_c_werror_flag" |
3575 | || test ! -s conftest.err' | |
3576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3577 | (eval $ac_try) 2>&5 | |
3578 | ac_status=$? | |
3579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3580 | (exit $ac_status); }; } && | |
3581 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 3582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
3583 | (eval $ac_try) 2>&5 |
3584 | ac_status=$? | |
25ed0b71 | 3585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 3586 | (exit $ac_status); }; }; then |
d60d9f65 SS |
3587 | ac_cv_type_signal=void |
3588 | else | |
9255ee31 | 3589 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
3590 | sed 's/^/| /' conftest.$ac_ext >&5 |
3591 | ||
9255ee31 | 3592 | ac_cv_type_signal=int |
d60d9f65 | 3593 | fi |
430b7832 | 3594 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 3595 | fi |
25ed0b71 | 3596 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
9255ee31 | 3597 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
d60d9f65 | 3598 | |
25ed0b71 | 3599 | cat >>confdefs.h <<_ACEOF |
d60d9f65 | 3600 | #define RETSIGTYPE $ac_cv_type_signal |
25ed0b71 KW |
3601 | _ACEOF |
3602 | ||
d60d9f65 | 3603 | |
25ed0b71 KW |
3604 | |
3605 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
9255ee31 EZ |
3606 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
3607 | if test "${ac_cv_type_size_t+set}" = set; then | |
3608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3609 | else | |
3610 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
3611 | /* confdefs.h. */ |
3612 | _ACEOF | |
3613 | cat confdefs.h >>conftest.$ac_ext | |
3614 | cat >>conftest.$ac_ext <<_ACEOF | |
3615 | /* end confdefs.h. */ | |
9255ee31 EZ |
3616 | $ac_includes_default |
3617 | int | |
3618 | main () | |
3619 | { | |
3620 | if ((size_t *) 0) | |
3621 | return 0; | |
3622 | if (sizeof (size_t)) | |
3623 | return 0; | |
3624 | ; | |
3625 | return 0; | |
3626 | } | |
3627 | _ACEOF | |
3628 | rm -f conftest.$ac_objext | |
25ed0b71 | 3629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 3630 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 3631 | ac_status=$? |
430b7832 MM |
3632 | grep -v '^ *+' conftest.er1 >conftest.err |
3633 | rm -f conftest.er1 | |
3634 | cat conftest.err >&5 | |
25ed0b71 | 3635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 3636 | (exit $ac_status); } && |
430b7832 MM |
3637 | { ac_try='test -z "$ac_c_werror_flag" |
3638 | || test ! -s conftest.err' | |
3639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3640 | (eval $ac_try) 2>&5 | |
3641 | ac_status=$? | |
3642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3643 | (exit $ac_status); }; } && | |
3644 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 3645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
3646 | (eval $ac_try) 2>&5 |
3647 | ac_status=$? | |
25ed0b71 | 3648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
3649 | (exit $ac_status); }; }; then |
3650 | ac_cv_type_size_t=yes | |
3651 | else | |
3652 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
3653 | sed 's/^/| /' conftest.$ac_ext >&5 |
3654 | ||
9255ee31 EZ |
3655 | ac_cv_type_size_t=no |
3656 | fi | |
430b7832 | 3657 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9255ee31 | 3658 | fi |
25ed0b71 | 3659 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
9255ee31 EZ |
3660 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
3661 | if test $ac_cv_type_size_t = yes; then | |
3662 | : | |
3663 | else | |
3664 | ||
25ed0b71 | 3665 | cat >>confdefs.h <<_ACEOF |
9255ee31 | 3666 | #define size_t unsigned |
25ed0b71 | 3667 | _ACEOF |
9255ee31 EZ |
3668 | |
3669 | fi | |
3670 | ||
25ed0b71 | 3671 | echo "$as_me:$LINENO: checking for ssize_t" >&5 |
9255ee31 EZ |
3672 | echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 |
3673 | if test "${ac_cv_type_ssize_t+set}" = set; then | |
3674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3675 | else | |
3676 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
3677 | /* confdefs.h. */ |
3678 | _ACEOF | |
3679 | cat confdefs.h >>conftest.$ac_ext | |
3680 | cat >>conftest.$ac_ext <<_ACEOF | |
3681 | /* end confdefs.h. */ | |
9255ee31 EZ |
3682 | $ac_includes_default |
3683 | int | |
3684 | main () | |
3685 | { | |
3686 | if ((ssize_t *) 0) | |
3687 | return 0; | |
3688 | if (sizeof (ssize_t)) | |
3689 | return 0; | |
3690 | ; | |
3691 | return 0; | |
3692 | } | |
3693 | _ACEOF | |
3694 | rm -f conftest.$ac_objext | |
25ed0b71 | 3695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 3696 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 3697 | ac_status=$? |
430b7832 MM |
3698 | grep -v '^ *+' conftest.er1 >conftest.err |
3699 | rm -f conftest.er1 | |
3700 | cat conftest.err >&5 | |
25ed0b71 | 3701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 3702 | (exit $ac_status); } && |
430b7832 MM |
3703 | { ac_try='test -z "$ac_c_werror_flag" |
3704 | || test ! -s conftest.err' | |
3705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3706 | (eval $ac_try) 2>&5 | |
3707 | ac_status=$? | |
3708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3709 | (exit $ac_status); }; } && | |
3710 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 3711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
3712 | (eval $ac_try) 2>&5 |
3713 | ac_status=$? | |
25ed0b71 | 3714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
3715 | (exit $ac_status); }; }; then |
3716 | ac_cv_type_ssize_t=yes | |
3717 | else | |
3718 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
3719 | sed 's/^/| /' conftest.$ac_ext >&5 |
3720 | ||
9255ee31 EZ |
3721 | ac_cv_type_ssize_t=no |
3722 | fi | |
430b7832 | 3723 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9255ee31 | 3724 | fi |
25ed0b71 | 3725 | echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 |
9255ee31 EZ |
3726 | echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 |
3727 | if test $ac_cv_type_ssize_t = yes; then | |
3728 | : | |
3729 | else | |
3730 | ||
25ed0b71 | 3731 | cat >>confdefs.h <<_ACEOF |
9255ee31 | 3732 | #define ssize_t int |
25ed0b71 | 3733 | _ACEOF |
d60d9f65 | 3734 | |
9255ee31 | 3735 | fi |
d60d9f65 | 3736 | |
25ed0b71 KW |
3737 | |
3738 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 | |
9255ee31 EZ |
3739 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 |
3740 | if test "${ac_cv_header_stat_broken+set}" = set; then | |
3741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 3742 | else |
9255ee31 | 3743 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
3744 | /* confdefs.h. */ |
3745 | _ACEOF | |
3746 | cat confdefs.h >>conftest.$ac_ext | |
3747 | cat >>conftest.$ac_ext <<_ACEOF | |
3748 | /* end confdefs.h. */ | |
d60d9f65 SS |
3749 | #include <sys/types.h> |
3750 | #include <sys/stat.h> | |
3751 | ||
3752 | #if defined(S_ISBLK) && defined(S_IFDIR) | |
3753 | # if S_ISBLK (S_IFDIR) | |
3754 | You lose. | |
3755 | # endif | |
3756 | #endif | |
3757 | ||
3758 | #if defined(S_ISBLK) && defined(S_IFCHR) | |
3759 | # if S_ISBLK (S_IFCHR) | |
3760 | You lose. | |
3761 | # endif | |
3762 | #endif | |
3763 | ||
3764 | #if defined(S_ISLNK) && defined(S_IFREG) | |
3765 | # if S_ISLNK (S_IFREG) | |
3766 | You lose. | |
3767 | # endif | |
3768 | #endif | |
3769 | ||
3770 | #if defined(S_ISSOCK) && defined(S_IFREG) | |
3771 | # if S_ISSOCK (S_IFREG) | |
3772 | You lose. | |
3773 | # endif | |
3774 | #endif | |
3775 | ||
9255ee31 | 3776 | _ACEOF |
d60d9f65 | 3777 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
25ed0b71 | 3778 | $EGREP "You lose" >/dev/null 2>&1; then |
d60d9f65 SS |
3779 | ac_cv_header_stat_broken=yes |
3780 | else | |
d60d9f65 SS |
3781 | ac_cv_header_stat_broken=no |
3782 | fi | |
3783 | rm -f conftest* | |
3784 | ||
3785 | fi | |
25ed0b71 | 3786 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
9255ee31 | 3787 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 |
d60d9f65 | 3788 | if test $ac_cv_header_stat_broken = yes; then |
9255ee31 | 3789 | |
25ed0b71 | 3790 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 3791 | #define STAT_MACROS_BROKEN 1 |
25ed0b71 | 3792 | _ACEOF |
d60d9f65 SS |
3793 | |
3794 | fi | |
3795 | ||
25ed0b71 KW |
3796 | |
3797 | ||
3798 | ||
3799 | ||
3800 | ||
d60d9f65 | 3801 | ac_header_dirent=no |
9255ee31 EZ |
3802 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
3803 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
25ed0b71 | 3804 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
9255ee31 EZ |
3805 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 |
3806 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3808 | else | |
3809 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
3810 | /* confdefs.h. */ |
3811 | _ACEOF | |
3812 | cat confdefs.h >>conftest.$ac_ext | |
3813 | cat >>conftest.$ac_ext <<_ACEOF | |
3814 | /* end confdefs.h. */ | |
d60d9f65 SS |
3815 | #include <sys/types.h> |
3816 | #include <$ac_hdr> | |
9255ee31 EZ |
3817 | |
3818 | int | |
3819 | main () | |
3820 | { | |
3821 | if ((DIR *) 0) | |
3822 | return 0; | |
3823 | ; | |
3824 | return 0; | |
3825 | } | |
3826 | _ACEOF | |
3827 | rm -f conftest.$ac_objext | |
25ed0b71 | 3828 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 3829 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 3830 | ac_status=$? |
430b7832 MM |
3831 | grep -v '^ *+' conftest.er1 >conftest.err |
3832 | rm -f conftest.er1 | |
3833 | cat conftest.err >&5 | |
25ed0b71 | 3834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 3835 | (exit $ac_status); } && |
430b7832 MM |
3836 | { ac_try='test -z "$ac_c_werror_flag" |
3837 | || test ! -s conftest.err' | |
3838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3839 | (eval $ac_try) 2>&5 | |
3840 | ac_status=$? | |
3841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3842 | (exit $ac_status); }; } && | |
3843 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 3844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
3845 | (eval $ac_try) 2>&5 |
3846 | ac_status=$? | |
25ed0b71 | 3847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
3848 | (exit $ac_status); }; }; then |
3849 | eval "$as_ac_Header=yes" | |
d60d9f65 | 3850 | else |
9255ee31 | 3851 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
3852 | sed 's/^/| /' conftest.$ac_ext >&5 |
3853 | ||
9255ee31 | 3854 | eval "$as_ac_Header=no" |
d60d9f65 | 3855 | fi |
430b7832 | 3856 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 3857 | fi |
25ed0b71 | 3858 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9255ee31 EZ |
3859 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
3860 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
25ed0b71 | 3861 | cat >>confdefs.h <<_ACEOF |
9255ee31 | 3862 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
25ed0b71 | 3863 | _ACEOF |
9255ee31 EZ |
3864 | |
3865 | ac_header_dirent=$ac_hdr; break | |
d60d9f65 | 3866 | fi |
9255ee31 | 3867 | |
d60d9f65 SS |
3868 | done |
3869 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
3870 | if test $ac_header_dirent = dirent.h; then | |
25ed0b71 KW |
3871 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3872 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
3873 | if test "${ac_cv_search_opendir+set}" = set; then | |
9255ee31 | 3874 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d60d9f65 | 3875 | else |
25ed0b71 KW |
3876 | ac_func_search_save_LIBS=$LIBS |
3877 | ac_cv_search_opendir=no | |
9255ee31 | 3878 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
3879 | /* confdefs.h. */ |
3880 | _ACEOF | |
3881 | cat confdefs.h >>conftest.$ac_ext | |
3882 | cat >>conftest.$ac_ext <<_ACEOF | |
3883 | /* end confdefs.h. */ | |
9255ee31 | 3884 | |
d60d9f65 | 3885 | /* Override any gcc2 internal prototype to avoid an error. */ |
9255ee31 EZ |
3886 | #ifdef __cplusplus |
3887 | extern "C" | |
3888 | #endif | |
d60d9f65 | 3889 | /* We use char because int might match the return type of a gcc2 |
9255ee31 EZ |
3890 | builtin and then its argument prototype would still apply. */ |
3891 | char opendir (); | |
3892 | int | |
3893 | main () | |
3894 | { | |
3895 | opendir (); | |
3896 | ; | |
3897 | return 0; | |
3898 | } | |
3899 | _ACEOF | |
3900 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 3901 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 3902 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 3903 | ac_status=$? |
430b7832 MM |
3904 | grep -v '^ *+' conftest.er1 >conftest.err |
3905 | rm -f conftest.er1 | |
3906 | cat conftest.err >&5 | |
25ed0b71 | 3907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 3908 | (exit $ac_status); } && |
430b7832 MM |
3909 | { ac_try='test -z "$ac_c_werror_flag" |
3910 | || test ! -s conftest.err' | |
3911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3912 | (eval $ac_try) 2>&5 | |
3913 | ac_status=$? | |
3914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3915 | (exit $ac_status); }; } && | |
3916 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 3917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
3918 | (eval $ac_try) 2>&5 |
3919 | ac_status=$? | |
25ed0b71 | 3920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 3921 | (exit $ac_status); }; }; then |
25ed0b71 | 3922 | ac_cv_search_opendir="none required" |
d60d9f65 | 3923 | else |
9255ee31 | 3924 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
3925 | sed 's/^/| /' conftest.$ac_ext >&5 |
3926 | ||
d60d9f65 | 3927 | fi |
430b7832 MM |
3928 | rm -f conftest.err conftest.$ac_objext \ |
3929 | conftest$ac_exeext conftest.$ac_ext | |
25ed0b71 KW |
3930 | if test "$ac_cv_search_opendir" = no; then |
3931 | for ac_lib in dir; do | |
3932 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3933 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
3934 | /* confdefs.h. */ |
3935 | _ACEOF | |
3936 | cat confdefs.h >>conftest.$ac_ext | |
3937 | cat >>conftest.$ac_ext <<_ACEOF | |
3938 | /* end confdefs.h. */ | |
3939 | ||
3940 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3941 | #ifdef __cplusplus | |
3942 | extern "C" | |
3943 | #endif | |
3944 | /* We use char because int might match the return type of a gcc2 | |
3945 | builtin and then its argument prototype would still apply. */ | |
3946 | char opendir (); | |
3947 | int | |
3948 | main () | |
3949 | { | |
3950 | opendir (); | |
3951 | ; | |
3952 | return 0; | |
3953 | } | |
3954 | _ACEOF | |
3955 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3956 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
430b7832 | 3957 | (eval $ac_link) 2>conftest.er1 |
25ed0b71 | 3958 | ac_status=$? |
430b7832 MM |
3959 | grep -v '^ *+' conftest.er1 >conftest.err |
3960 | rm -f conftest.er1 | |
3961 | cat conftest.err >&5 | |
25ed0b71 KW |
3962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3963 | (exit $ac_status); } && | |
430b7832 MM |
3964 | { ac_try='test -z "$ac_c_werror_flag" |
3965 | || test ! -s conftest.err' | |
3966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3967 | (eval $ac_try) 2>&5 | |
3968 | ac_status=$? | |
3969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3970 | (exit $ac_status); }; } && | |
3971 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 KW |
3972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3973 | (eval $ac_try) 2>&5 | |
3974 | ac_status=$? | |
3975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3976 | (exit $ac_status); }; }; then | |
3977 | ac_cv_search_opendir="-l$ac_lib" | |
3978 | break | |
3979 | else | |
3980 | echo "$as_me: failed program was:" >&5 | |
3981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3982 | ||
3983 | fi | |
430b7832 MM |
3984 | rm -f conftest.err conftest.$ac_objext \ |
3985 | conftest$ac_exeext conftest.$ac_ext | |
25ed0b71 KW |
3986 | done |
3987 | fi | |
3988 | LIBS=$ac_func_search_save_LIBS | |
d60d9f65 | 3989 | fi |
25ed0b71 KW |
3990 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
3991 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
3992 | if test "$ac_cv_search_opendir" != no; then | |
3993 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
3994 | ||
d60d9f65 SS |
3995 | fi |
3996 | ||
3997 | else | |
25ed0b71 KW |
3998 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
3999 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
4000 | if test "${ac_cv_search_opendir+set}" = set; then | |
9255ee31 | 4001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
d60d9f65 | 4002 | else |
25ed0b71 KW |
4003 | ac_func_search_save_LIBS=$LIBS |
4004 | ac_cv_search_opendir=no | |
9255ee31 | 4005 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
4006 | /* confdefs.h. */ |
4007 | _ACEOF | |
4008 | cat confdefs.h >>conftest.$ac_ext | |
4009 | cat >>conftest.$ac_ext <<_ACEOF | |
4010 | /* end confdefs.h. */ | |
9255ee31 | 4011 | |
d60d9f65 | 4012 | /* Override any gcc2 internal prototype to avoid an error. */ |
9255ee31 EZ |
4013 | #ifdef __cplusplus |
4014 | extern "C" | |
4015 | #endif | |
d60d9f65 | 4016 | /* We use char because int might match the return type of a gcc2 |
9255ee31 EZ |
4017 | builtin and then its argument prototype would still apply. */ |
4018 | char opendir (); | |
4019 | int | |
4020 | main () | |
4021 | { | |
4022 | opendir (); | |
4023 | ; | |
4024 | return 0; | |
4025 | } | |
4026 | _ACEOF | |
4027 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 4028 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 4029 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 4030 | ac_status=$? |
430b7832 MM |
4031 | grep -v '^ *+' conftest.er1 >conftest.err |
4032 | rm -f conftest.er1 | |
4033 | cat conftest.err >&5 | |
25ed0b71 | 4034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4035 | (exit $ac_status); } && |
430b7832 MM |
4036 | { ac_try='test -z "$ac_c_werror_flag" |
4037 | || test ! -s conftest.err' | |
4038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4039 | (eval $ac_try) 2>&5 | |
4040 | ac_status=$? | |
4041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4042 | (exit $ac_status); }; } && | |
4043 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 4044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
4045 | (eval $ac_try) 2>&5 |
4046 | ac_status=$? | |
25ed0b71 | 4047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4048 | (exit $ac_status); }; }; then |
25ed0b71 | 4049 | ac_cv_search_opendir="none required" |
d60d9f65 | 4050 | else |
9255ee31 | 4051 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
4052 | sed 's/^/| /' conftest.$ac_ext >&5 |
4053 | ||
d60d9f65 | 4054 | fi |
430b7832 MM |
4055 | rm -f conftest.err conftest.$ac_objext \ |
4056 | conftest$ac_exeext conftest.$ac_ext | |
25ed0b71 KW |
4057 | if test "$ac_cv_search_opendir" = no; then |
4058 | for ac_lib in x; do | |
4059 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4060 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
4061 | /* confdefs.h. */ |
4062 | _ACEOF | |
4063 | cat confdefs.h >>conftest.$ac_ext | |
4064 | cat >>conftest.$ac_ext <<_ACEOF | |
4065 | /* end confdefs.h. */ | |
4066 | ||
4067 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4068 | #ifdef __cplusplus | |
4069 | extern "C" | |
4070 | #endif | |
4071 | /* We use char because int might match the return type of a gcc2 | |
4072 | builtin and then its argument prototype would still apply. */ | |
4073 | char opendir (); | |
4074 | int | |
4075 | main () | |
4076 | { | |
4077 | opendir (); | |
4078 | ; | |
4079 | return 0; | |
4080 | } | |
4081 | _ACEOF | |
4082 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4083 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
430b7832 | 4084 | (eval $ac_link) 2>conftest.er1 |
25ed0b71 | 4085 | ac_status=$? |
430b7832 MM |
4086 | grep -v '^ *+' conftest.er1 >conftest.err |
4087 | rm -f conftest.er1 | |
4088 | cat conftest.err >&5 | |
25ed0b71 KW |
4089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4090 | (exit $ac_status); } && | |
430b7832 MM |
4091 | { ac_try='test -z "$ac_c_werror_flag" |
4092 | || test ! -s conftest.err' | |
4093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4094 | (eval $ac_try) 2>&5 | |
4095 | ac_status=$? | |
4096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4097 | (exit $ac_status); }; } && | |
4098 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 KW |
4099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4100 | (eval $ac_try) 2>&5 | |
4101 | ac_status=$? | |
4102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4103 | (exit $ac_status); }; }; then | |
4104 | ac_cv_search_opendir="-l$ac_lib" | |
4105 | break | |
4106 | else | |
4107 | echo "$as_me: failed program was:" >&5 | |
4108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4109 | ||
4110 | fi | |
430b7832 MM |
4111 | rm -f conftest.err conftest.$ac_objext \ |
4112 | conftest$ac_exeext conftest.$ac_ext | |
25ed0b71 | 4113 | done |
d60d9f65 | 4114 | fi |
25ed0b71 | 4115 | LIBS=$ac_func_search_save_LIBS |
d60d9f65 | 4116 | fi |
25ed0b71 KW |
4117 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
4118 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
4119 | if test "$ac_cv_search_opendir" != no; then | |
4120 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
d60d9f65 SS |
4121 | |
4122 | fi | |
4123 | ||
25ed0b71 KW |
4124 | fi |
4125 | ||
4126 | ||
4127 | ||
4128 | ||
4129 | ||
4130 | ||
4131 | ||
4132 | ||
4133 | ||
4134 | ||
4135 | ||
4136 | ||
4137 | ||
4138 | ||
430b7832 MM |
4139 | |
4140 | ||
4141 | ||
4142 | ||
4143 | ||
4144 | for ac_func in fcntl kill lstat memmove putenv select setenv setlocale \ | |
4145 | strcasecmp strpbrk tcgetattr vsnprintf isascii isxdigit \ | |
d01ecef6 | 4146 | getpwnam getpwent getpwuid |
d60d9f65 | 4147 | do |
9255ee31 | 4148 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
25ed0b71 | 4149 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
9255ee31 EZ |
4150 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
4151 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 4153 | else |
9255ee31 | 4154 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
4155 | /* confdefs.h. */ |
4156 | _ACEOF | |
4157 | cat confdefs.h >>conftest.$ac_ext | |
4158 | cat >>conftest.$ac_ext <<_ACEOF | |
4159 | /* end confdefs.h. */ | |
430b7832 MM |
4160 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
4161 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4162 | #define $ac_func innocuous_$ac_func | |
4163 | ||
d60d9f65 | 4164 | /* System header to define __stub macros and hopefully few prototypes, |
25ed0b71 KW |
4165 | which can conflict with char $ac_func (); below. |
4166 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4167 | <limits.h> exists even on freestanding compilers. */ | |
430b7832 | 4168 | |
25ed0b71 KW |
4169 | #ifdef __STDC__ |
4170 | # include <limits.h> | |
4171 | #else | |
4172 | # include <assert.h> | |
4173 | #endif | |
430b7832 MM |
4174 | |
4175 | #undef $ac_func | |
4176 | ||
d60d9f65 | 4177 | /* Override any gcc2 internal prototype to avoid an error. */ |
9255ee31 EZ |
4178 | #ifdef __cplusplus |
4179 | extern "C" | |
25ed0b71 | 4180 | { |
9255ee31 | 4181 | #endif |
d60d9f65 | 4182 | /* We use char because int might match the return type of a gcc2 |
9255ee31 EZ |
4183 | builtin and then its argument prototype would still apply. */ |
4184 | char $ac_func (); | |
d60d9f65 SS |
4185 | /* The GNU C library defines this for functions which it implements |
4186 | to always fail with ENOSYS. Some functions are actually named | |
4187 | something starting with __ and the normal name is an alias. */ | |
4188 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4189 | choke me | |
4190 | #else | |
25ed0b71 KW |
4191 | char (*f) () = $ac_func; |
4192 | #endif | |
4193 | #ifdef __cplusplus | |
4194 | } | |
d60d9f65 SS |
4195 | #endif |
4196 | ||
25ed0b71 KW |
4197 | int |
4198 | main () | |
4199 | { | |
4200 | return f != $ac_func; | |
9255ee31 EZ |
4201 | ; |
4202 | return 0; | |
4203 | } | |
4204 | _ACEOF | |
4205 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 4206 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 4207 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 4208 | ac_status=$? |
430b7832 MM |
4209 | grep -v '^ *+' conftest.er1 >conftest.err |
4210 | rm -f conftest.er1 | |
4211 | cat conftest.err >&5 | |
25ed0b71 | 4212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4213 | (exit $ac_status); } && |
430b7832 MM |
4214 | { ac_try='test -z "$ac_c_werror_flag" |
4215 | || test ! -s conftest.err' | |
4216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4217 | (eval $ac_try) 2>&5 | |
4218 | ac_status=$? | |
4219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4220 | (exit $ac_status); }; } && | |
4221 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 4222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
4223 | (eval $ac_try) 2>&5 |
4224 | ac_status=$? | |
25ed0b71 | 4225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
4226 | (exit $ac_status); }; }; then |
4227 | eval "$as_ac_var=yes" | |
d60d9f65 | 4228 | else |
9255ee31 | 4229 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
4230 | sed 's/^/| /' conftest.$ac_ext >&5 |
4231 | ||
9255ee31 | 4232 | eval "$as_ac_var=no" |
d60d9f65 | 4233 | fi |
430b7832 MM |
4234 | rm -f conftest.err conftest.$ac_objext \ |
4235 | conftest$ac_exeext conftest.$ac_ext | |
d60d9f65 | 4236 | fi |
25ed0b71 | 4237 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
9255ee31 EZ |
4238 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
4239 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
25ed0b71 | 4240 | cat >>confdefs.h <<_ACEOF |
9255ee31 | 4241 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
25ed0b71 | 4242 | _ACEOF |
9255ee31 | 4243 | |
d60d9f65 SS |
4244 | fi |
4245 | done | |
4246 | ||
25ed0b71 KW |
4247 | |
4248 | echo "$as_me:$LINENO: checking for working strcoll" >&5 | |
9255ee31 EZ |
4249 | echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6 |
4250 | if test "${ac_cv_func_strcoll_works+set}" = set; then | |
4251 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 SS |
4252 | else |
4253 | if test "$cross_compiling" = yes; then | |
4254 | ac_cv_func_strcoll_works=no | |
4255 | else | |
9255ee31 | 4256 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
4257 | /* confdefs.h. */ |
4258 | _ACEOF | |
4259 | cat confdefs.h >>conftest.$ac_ext | |
4260 | cat >>conftest.$ac_ext <<_ACEOF | |
4261 | /* end confdefs.h. */ | |
9255ee31 EZ |
4262 | $ac_includes_default |
4263 | int | |
d60d9f65 SS |
4264 | main () |
4265 | { | |
9255ee31 EZ |
4266 | exit (strcoll ("abc", "def") >= 0 || |
4267 | strcoll ("ABC", "DEF") >= 0 || | |
4268 | strcoll ("123", "456") >= 0) | |
4269 | ; | |
4270 | return 0; | |
d60d9f65 | 4271 | } |
9255ee31 EZ |
4272 | _ACEOF |
4273 | rm -f conftest$ac_exeext | |
25ed0b71 | 4274 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9255ee31 EZ |
4275 | (eval $ac_link) 2>&5 |
4276 | ac_status=$? | |
25ed0b71 | 4277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4278 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
25ed0b71 | 4279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
4280 | (eval $ac_try) 2>&5 |
4281 | ac_status=$? | |
25ed0b71 | 4282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4283 | (exit $ac_status); }; }; then |
d60d9f65 SS |
4284 | ac_cv_func_strcoll_works=yes |
4285 | else | |
9255ee31 EZ |
4286 | echo "$as_me: program exited with status $ac_status" >&5 |
4287 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
4288 | sed 's/^/| /' conftest.$ac_ext >&5 |
4289 | ||
4290 | ( exit $ac_status ) | |
9255ee31 | 4291 | ac_cv_func_strcoll_works=no |
d60d9f65 | 4292 | fi |
430b7832 | 4293 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 4294 | fi |
d60d9f65 | 4295 | fi |
25ed0b71 | 4296 | echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5 |
9255ee31 | 4297 | echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6 |
d60d9f65 | 4298 | if test $ac_cv_func_strcoll_works = yes; then |
9255ee31 | 4299 | |
25ed0b71 | 4300 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 4301 | #define HAVE_STRCOLL 1 |
25ed0b71 | 4302 | _ACEOF |
d60d9f65 SS |
4303 | |
4304 | fi | |
4305 | ||
25ed0b71 KW |
4306 | |
4307 | ||
4308 | ||
4309 | ||
4310 | ||
4311 | ||
4312 | ||
4313 | ||
4314 | ||
4315 | ||
4316 | ||
4317 | ||
4318 | ||
4319 | ||
4320 | ||
4321 | ||
4322 | ||
4323 | ||
430b7832 | 4324 | |
9255ee31 EZ |
4325 | for ac_header in unistd.h stdlib.h varargs.h stdarg.h string.h strings.h \ |
4326 | limits.h sys/ptem.h sys/pte.h sys/stream.h sys/select.h \ | |
430b7832 MM |
4327 | termcap.h termios.h termio.h sys/file.h locale.h memory.h \ |
4328 | pwd.h | |
d60d9f65 | 4329 | do |
9255ee31 | 4330 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
25ed0b71 KW |
4331 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4332 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9255ee31 EZ |
4333 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4334 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25ed0b71 KW |
4336 | fi |
4337 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4338 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9255ee31 | 4339 | else |
25ed0b71 KW |
4340 | # Is the header compilable? |
4341 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4342 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4343 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
4344 | /* confdefs.h. */ |
4345 | _ACEOF | |
4346 | cat confdefs.h >>conftest.$ac_ext | |
4347 | cat >>conftest.$ac_ext <<_ACEOF | |
4348 | /* end confdefs.h. */ | |
4349 | $ac_includes_default | |
4350 | #include <$ac_header> | |
4351 | _ACEOF | |
4352 | rm -f conftest.$ac_objext | |
4353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
430b7832 | 4354 | (eval $ac_compile) 2>conftest.er1 |
25ed0b71 | 4355 | ac_status=$? |
430b7832 MM |
4356 | grep -v '^ *+' conftest.er1 >conftest.err |
4357 | rm -f conftest.er1 | |
4358 | cat conftest.err >&5 | |
25ed0b71 KW |
4359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4360 | (exit $ac_status); } && | |
430b7832 MM |
4361 | { ac_try='test -z "$ac_c_werror_flag" |
4362 | || test ! -s conftest.err' | |
4363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4364 | (eval $ac_try) 2>&5 | |
4365 | ac_status=$? | |
4366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4367 | (exit $ac_status); }; } && | |
4368 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 KW |
4369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4370 | (eval $ac_try) 2>&5 | |
4371 | ac_status=$? | |
4372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4373 | (exit $ac_status); }; }; then | |
4374 | ac_header_compiler=yes | |
4375 | else | |
4376 | echo "$as_me: failed program was:" >&5 | |
4377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4378 | ||
4379 | ac_header_compiler=no | |
4380 | fi | |
430b7832 | 4381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
25ed0b71 KW |
4382 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
4383 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4384 | ||
4385 | # Is the header present? | |
4386 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4387 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4388 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
4389 | /* confdefs.h. */ |
4390 | _ACEOF | |
4391 | cat confdefs.h >>conftest.$ac_ext | |
4392 | cat >>conftest.$ac_ext <<_ACEOF | |
4393 | /* end confdefs.h. */ | |
9255ee31 EZ |
4394 | #include <$ac_header> |
4395 | _ACEOF | |
25ed0b71 | 4396 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
9255ee31 EZ |
4397 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4398 | ac_status=$? | |
25ed0b71 | 4399 | grep -v '^ *+' conftest.er1 >conftest.err |
9255ee31 EZ |
4400 | rm -f conftest.er1 |
4401 | cat conftest.err >&5 | |
25ed0b71 | 4402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
4403 | (exit $ac_status); } >/dev/null; then |
4404 | if test -s conftest.err; then | |
4405 | ac_cpp_err=$ac_c_preproc_warn_flag | |
430b7832 | 4406 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
9255ee31 EZ |
4407 | else |
4408 | ac_cpp_err= | |
4409 | fi | |
4410 | else | |
4411 | ac_cpp_err=yes | |
4412 | fi | |
4413 | if test -z "$ac_cpp_err"; then | |
25ed0b71 KW |
4414 | ac_header_preproc=yes |
4415 | else | |
4416 | echo "$as_me: failed program was:" >&5 | |
4417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4418 | ||
4419 | ac_header_preproc=no | |
4420 | fi | |
4421 | rm -f conftest.err conftest.$ac_ext | |
4422 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4423 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4424 | ||
4425 | # So? What about this header? | |
430b7832 MM |
4426 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
4427 | yes:no: ) | |
25ed0b71 KW |
4428 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
4429 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
430b7832 MM |
4430 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
4431 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4432 | ac_header_preproc=yes | |
25ed0b71 | 4433 | ;; |
430b7832 | 4434 | no:yes:* ) |
25ed0b71 KW |
4435 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
4436 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
430b7832 MM |
4437 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
4438 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4439 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4440 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4441 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4442 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
25ed0b71 KW |
4443 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
4444 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
430b7832 MM |
4445 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
4446 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
25ed0b71 KW |
4447 | ( |
4448 | cat <<\_ASBOX | |
430b7832 MM |
4449 | ## ----------------------------------- ## |
4450 | ## Report this to bug-readline@gnu.org ## | |
4451 | ## ----------------------------------- ## | |
25ed0b71 KW |
4452 | _ASBOX |
4453 | ) | | |
4454 | sed "s/^/$as_me: WARNING: /" >&2 | |
4455 | ;; | |
4456 | esac | |
4457 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4458 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4459 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 4461 | else |
430b7832 | 4462 | eval "$as_ac_Header=\$ac_header_preproc" |
d60d9f65 | 4463 | fi |
25ed0b71 | 4464 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9255ee31 | 4465 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
25ed0b71 KW |
4466 | |
4467 | fi | |
9255ee31 | 4468 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
25ed0b71 | 4469 | cat >>confdefs.h <<_ACEOF |
9255ee31 | 4470 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
25ed0b71 | 4471 | _ACEOF |
9255ee31 | 4472 | |
d60d9f65 | 4473 | fi |
25ed0b71 | 4474 | |
d60d9f65 SS |
4475 | done |
4476 | ||
25ed0b71 KW |
4477 | |
4478 | ||
4479 | echo "$as_me:$LINENO: checking for type of signal functions" >&5 | |
9255ee31 EZ |
4480 | echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6 |
4481 | if test "${bash_cv_signal_vintage+set}" = set; then | |
4482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 4483 | else |
9255ee31 EZ |
4484 | |
4485 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
4486 | /* confdefs.h. */ |
4487 | _ACEOF | |
4488 | cat confdefs.h >>conftest.$ac_ext | |
4489 | cat >>conftest.$ac_ext <<_ACEOF | |
4490 | /* end confdefs.h. */ | |
d60d9f65 | 4491 | #include <signal.h> |
9255ee31 EZ |
4492 | int |
4493 | main () | |
4494 | { | |
d60d9f65 SS |
4495 | |
4496 | sigset_t ss; | |
4497 | struct sigaction sa; | |
4498 | sigemptyset(&ss); sigsuspend(&ss); | |
4499 | sigaction(SIGINT, &sa, (struct sigaction *) 0); | |
4500 | sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0); | |
9255ee31 EZ |
4501 | |
4502 | ; | |
4503 | return 0; | |
4504 | } | |
4505 | _ACEOF | |
4506 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 4507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 4508 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 4509 | ac_status=$? |
430b7832 MM |
4510 | grep -v '^ *+' conftest.er1 >conftest.err |
4511 | rm -f conftest.er1 | |
4512 | cat conftest.err >&5 | |
25ed0b71 | 4513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4514 | (exit $ac_status); } && |
430b7832 MM |
4515 | { ac_try='test -z "$ac_c_werror_flag" |
4516 | || test ! -s conftest.err' | |
4517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4518 | (eval $ac_try) 2>&5 | |
4519 | ac_status=$? | |
4520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4521 | (exit $ac_status); }; } && | |
4522 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 4523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
4524 | (eval $ac_try) 2>&5 |
4525 | ac_status=$? | |
25ed0b71 | 4526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4527 | (exit $ac_status); }; }; then |
d60d9f65 SS |
4528 | bash_cv_signal_vintage=posix |
4529 | else | |
9255ee31 | 4530 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
4531 | sed 's/^/| /' conftest.$ac_ext >&5 |
4532 | ||
9255ee31 EZ |
4533 | |
4534 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
4535 | /* confdefs.h. */ |
4536 | _ACEOF | |
4537 | cat confdefs.h >>conftest.$ac_ext | |
4538 | cat >>conftest.$ac_ext <<_ACEOF | |
4539 | /* end confdefs.h. */ | |
d60d9f65 | 4540 | #include <signal.h> |
9255ee31 EZ |
4541 | int |
4542 | main () | |
4543 | { | |
d60d9f65 SS |
4544 | |
4545 | int mask = sigmask(SIGINT); | |
4546 | sigsetmask(mask); sigblock(mask); sigpause(mask); | |
9255ee31 EZ |
4547 | |
4548 | ; | |
4549 | return 0; | |
4550 | } | |
4551 | _ACEOF | |
4552 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 4553 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 4554 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 4555 | ac_status=$? |
430b7832 MM |
4556 | grep -v '^ *+' conftest.er1 >conftest.err |
4557 | rm -f conftest.er1 | |
4558 | cat conftest.err >&5 | |
25ed0b71 | 4559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4560 | (exit $ac_status); } && |
430b7832 MM |
4561 | { ac_try='test -z "$ac_c_werror_flag" |
4562 | || test ! -s conftest.err' | |
4563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4564 | (eval $ac_try) 2>&5 | |
4565 | ac_status=$? | |
4566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4567 | (exit $ac_status); }; } && | |
4568 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 4569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
4570 | (eval $ac_try) 2>&5 |
4571 | ac_status=$? | |
25ed0b71 | 4572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4573 | (exit $ac_status); }; }; then |
d60d9f65 SS |
4574 | bash_cv_signal_vintage=4.2bsd |
4575 | else | |
9255ee31 | 4576 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
4577 | sed 's/^/| /' conftest.$ac_ext >&5 |
4578 | ||
9255ee31 EZ |
4579 | |
4580 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
4581 | /* confdefs.h. */ |
4582 | _ACEOF | |
4583 | cat confdefs.h >>conftest.$ac_ext | |
4584 | cat >>conftest.$ac_ext <<_ACEOF | |
4585 | /* end confdefs.h. */ | |
d60d9f65 SS |
4586 | |
4587 | #include <signal.h> | |
4588 | RETSIGTYPE foo() { } | |
9255ee31 EZ |
4589 | int |
4590 | main () | |
4591 | { | |
d60d9f65 SS |
4592 | |
4593 | int mask = sigmask(SIGINT); | |
4594 | sigset(SIGINT, foo); sigrelse(SIGINT); | |
4595 | sighold(SIGINT); sigpause(SIGINT); | |
9255ee31 EZ |
4596 | |
4597 | ; | |
4598 | return 0; | |
4599 | } | |
4600 | _ACEOF | |
4601 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 4602 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 4603 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 4604 | ac_status=$? |
430b7832 MM |
4605 | grep -v '^ *+' conftest.er1 >conftest.err |
4606 | rm -f conftest.er1 | |
4607 | cat conftest.err >&5 | |
25ed0b71 | 4608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4609 | (exit $ac_status); } && |
430b7832 MM |
4610 | { ac_try='test -z "$ac_c_werror_flag" |
4611 | || test ! -s conftest.err' | |
4612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4613 | (eval $ac_try) 2>&5 | |
4614 | ac_status=$? | |
4615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4616 | (exit $ac_status); }; } && | |
4617 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 4618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
4619 | (eval $ac_try) 2>&5 |
4620 | ac_status=$? | |
25ed0b71 | 4621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4622 | (exit $ac_status); }; }; then |
d60d9f65 SS |
4623 | bash_cv_signal_vintage=svr3 |
4624 | else | |
9255ee31 | 4625 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
4626 | sed 's/^/| /' conftest.$ac_ext >&5 |
4627 | ||
9255ee31 EZ |
4628 | bash_cv_signal_vintage=v7 |
4629 | ||
d60d9f65 | 4630 | fi |
430b7832 MM |
4631 | rm -f conftest.err conftest.$ac_objext \ |
4632 | conftest$ac_exeext conftest.$ac_ext | |
9255ee31 | 4633 | |
d60d9f65 | 4634 | fi |
430b7832 MM |
4635 | rm -f conftest.err conftest.$ac_objext \ |
4636 | conftest$ac_exeext conftest.$ac_ext | |
d60d9f65 SS |
4637 | |
4638 | fi | |
430b7832 MM |
4639 | rm -f conftest.err conftest.$ac_objext \ |
4640 | conftest$ac_exeext conftest.$ac_ext | |
d60d9f65 SS |
4641 | |
4642 | fi | |
4643 | ||
25ed0b71 | 4644 | echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5 |
9255ee31 | 4645 | echo "${ECHO_T}$bash_cv_signal_vintage" >&6 |
d60d9f65 | 4646 | if test "$bash_cv_signal_vintage" = posix; then |
25ed0b71 | 4647 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 4648 | #define HAVE_POSIX_SIGNALS 1 |
25ed0b71 | 4649 | _ACEOF |
d60d9f65 SS |
4650 | |
4651 | elif test "$bash_cv_signal_vintage" = "4.2bsd"; then | |
25ed0b71 | 4652 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 4653 | #define HAVE_BSD_SIGNALS 1 |
25ed0b71 | 4654 | _ACEOF |
d60d9f65 SS |
4655 | |
4656 | elif test "$bash_cv_signal_vintage" = svr3; then | |
25ed0b71 | 4657 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 4658 | #define HAVE_USG_SIGHOLD 1 |
25ed0b71 | 4659 | _ACEOF |
d60d9f65 SS |
4660 | |
4661 | fi | |
4662 | ||
25ed0b71 KW |
4663 | |
4664 | ||
4665 | echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5 | |
9255ee31 EZ |
4666 | echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6 |
4667 | if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then | |
4668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 SS |
4669 | else |
4670 | if test "$cross_compiling" = yes; then | |
25ed0b71 | 4671 | { echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5 |
9255ee31 | 4672 | echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;} |
d60d9f65 SS |
4673 | bash_cv_must_reinstall_sighandlers=no |
4674 | ||
4675 | else | |
9255ee31 | 4676 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
4677 | /* confdefs.h. */ |
4678 | _ACEOF | |
4679 | cat confdefs.h >>conftest.$ac_ext | |
4680 | cat >>conftest.$ac_ext <<_ACEOF | |
4681 | /* end confdefs.h. */ | |
d60d9f65 SS |
4682 | |
4683 | #include <signal.h> | |
4684 | #ifdef HAVE_UNISTD_H | |
4685 | #include <unistd.h> | |
4686 | #endif | |
4687 | ||
4688 | typedef RETSIGTYPE sigfunc(); | |
4689 | ||
4690 | int nsigint; | |
4691 | ||
4692 | #ifdef HAVE_POSIX_SIGNALS | |
4693 | sigfunc * | |
4694 | set_signal_handler(sig, handler) | |
4695 | int sig; | |
4696 | sigfunc *handler; | |
4697 | { | |
4698 | struct sigaction act, oact; | |
4699 | act.sa_handler = handler; | |
4700 | act.sa_flags = 0; | |
4701 | sigemptyset (&act.sa_mask); | |
4702 | sigemptyset (&oact.sa_mask); | |
4703 | sigaction (sig, &act, &oact); | |
4704 | return (oact.sa_handler); | |
4705 | } | |
4706 | #else | |
4707 | #define set_signal_handler(s, h) signal(s, h) | |
4708 | #endif | |
4709 | ||
4710 | RETSIGTYPE | |
4711 | sigint(s) | |
4712 | int s; | |
4713 | { | |
4714 | nsigint++; | |
4715 | } | |
4716 | ||
4717 | main() | |
4718 | { | |
4719 | nsigint = 0; | |
4720 | set_signal_handler(SIGINT, sigint); | |
4721 | kill((int)getpid(), SIGINT); | |
4722 | kill((int)getpid(), SIGINT); | |
4723 | exit(nsigint != 2); | |
4724 | } | |
4725 | ||
9255ee31 EZ |
4726 | _ACEOF |
4727 | rm -f conftest$ac_exeext | |
25ed0b71 | 4728 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9255ee31 EZ |
4729 | (eval $ac_link) 2>&5 |
4730 | ac_status=$? | |
25ed0b71 | 4731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4732 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
25ed0b71 | 4733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
4734 | (eval $ac_try) 2>&5 |
4735 | ac_status=$? | |
25ed0b71 | 4736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4737 | (exit $ac_status); }; }; then |
d60d9f65 SS |
4738 | bash_cv_must_reinstall_sighandlers=no |
4739 | else | |
9255ee31 EZ |
4740 | echo "$as_me: program exited with status $ac_status" >&5 |
4741 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
4742 | sed 's/^/| /' conftest.$ac_ext >&5 |
4743 | ||
4744 | ( exit $ac_status ) | |
9255ee31 | 4745 | bash_cv_must_reinstall_sighandlers=yes |
d60d9f65 | 4746 | fi |
430b7832 | 4747 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 4748 | fi |
d60d9f65 SS |
4749 | fi |
4750 | ||
25ed0b71 | 4751 | echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5 |
9255ee31 | 4752 | echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6 |
d60d9f65 | 4753 | if test $bash_cv_must_reinstall_sighandlers = yes; then |
25ed0b71 | 4754 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 4755 | #define MUST_REINSTALL_SIGHANDLERS 1 |
25ed0b71 | 4756 | _ACEOF |
d60d9f65 SS |
4757 | |
4758 | fi | |
4759 | ||
25ed0b71 KW |
4760 | |
4761 | ||
4762 | echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5 | |
9255ee31 EZ |
4763 | echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6 |
4764 | if test "${bash_cv_func_sigsetjmp+set}" = set; then | |
4765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 SS |
4766 | else |
4767 | if test "$cross_compiling" = yes; then | |
25ed0b71 | 4768 | { echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5 |
9255ee31 | 4769 | echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;} |
d60d9f65 SS |
4770 | bash_cv_func_sigsetjmp=missing |
4771 | ||
4772 | else | |
9255ee31 | 4773 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
4774 | /* confdefs.h. */ |
4775 | _ACEOF | |
4776 | cat confdefs.h >>conftest.$ac_ext | |
4777 | cat >>conftest.$ac_ext <<_ACEOF | |
4778 | /* end confdefs.h. */ | |
d60d9f65 SS |
4779 | |
4780 | #ifdef HAVE_UNISTD_H | |
4781 | #include <unistd.h> | |
4782 | #endif | |
4783 | #include <sys/types.h> | |
4784 | #include <signal.h> | |
4785 | #include <setjmp.h> | |
4786 | ||
4787 | main() | |
4788 | { | |
4789 | #if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS) | |
4790 | exit (1); | |
4791 | #else | |
4792 | ||
4793 | int code; | |
4794 | sigset_t set, oset; | |
4795 | sigjmp_buf xx; | |
4796 | ||
4797 | /* get the mask */ | |
4798 | sigemptyset(&set); | |
4799 | sigemptyset(&oset); | |
4800 | sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set); | |
4801 | sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset); | |
4802 | ||
4803 | /* save it */ | |
4804 | code = sigsetjmp(xx, 1); | |
4805 | if (code) | |
4806 | exit(0); /* could get sigmask and compare to oset here. */ | |
4807 | ||
4808 | /* change it */ | |
4809 | sigaddset(&set, SIGINT); | |
4810 | sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL); | |
4811 | ||
4812 | /* and siglongjmp */ | |
4813 | siglongjmp(xx, 10); | |
4814 | exit(1); | |
4815 | #endif | |
4816 | } | |
9255ee31 EZ |
4817 | _ACEOF |
4818 | rm -f conftest$ac_exeext | |
25ed0b71 | 4819 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9255ee31 EZ |
4820 | (eval $ac_link) 2>&5 |
4821 | ac_status=$? | |
25ed0b71 | 4822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4823 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
25ed0b71 | 4824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
4825 | (eval $ac_try) 2>&5 |
4826 | ac_status=$? | |
25ed0b71 | 4827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4828 | (exit $ac_status); }; }; then |
d60d9f65 SS |
4829 | bash_cv_func_sigsetjmp=present |
4830 | else | |
9255ee31 EZ |
4831 | echo "$as_me: program exited with status $ac_status" >&5 |
4832 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
4833 | sed 's/^/| /' conftest.$ac_ext >&5 |
4834 | ||
4835 | ( exit $ac_status ) | |
9255ee31 | 4836 | bash_cv_func_sigsetjmp=missing |
d60d9f65 | 4837 | fi |
430b7832 | 4838 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 4839 | fi |
d60d9f65 SS |
4840 | fi |
4841 | ||
25ed0b71 | 4842 | echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5 |
9255ee31 | 4843 | echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6 |
d60d9f65 | 4844 | if test $bash_cv_func_sigsetjmp = present; then |
25ed0b71 | 4845 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 4846 | #define HAVE_POSIX_SIGSETJMP 1 |
25ed0b71 | 4847 | _ACEOF |
d60d9f65 SS |
4848 | |
4849 | fi | |
4850 | ||
25ed0b71 | 4851 | echo "$as_me:$LINENO: checking for lstat" >&5 |
9255ee31 EZ |
4852 | echo $ECHO_N "checking for lstat... $ECHO_C" >&6 |
4853 | if test "${bash_cv_func_lstat+set}" = set; then | |
4854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 4855 | else |
9255ee31 | 4856 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
4857 | /* confdefs.h. */ |
4858 | _ACEOF | |
4859 | cat confdefs.h >>conftest.$ac_ext | |
4860 | cat >>conftest.$ac_ext <<_ACEOF | |
4861 | /* end confdefs.h. */ | |
d60d9f65 SS |
4862 | |
4863 | #include <sys/types.h> | |
4864 | #include <sys/stat.h> | |
4865 | ||
9255ee31 EZ |
4866 | int |
4867 | main () | |
4868 | { | |
4869 | lstat(".",(struct stat *)0); | |
4870 | ; | |
4871 | return 0; | |
4872 | } | |
4873 | _ACEOF | |
4874 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 4875 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 4876 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 4877 | ac_status=$? |
430b7832 MM |
4878 | grep -v '^ *+' conftest.er1 >conftest.err |
4879 | rm -f conftest.er1 | |
4880 | cat conftest.err >&5 | |
25ed0b71 | 4881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4882 | (exit $ac_status); } && |
430b7832 MM |
4883 | { ac_try='test -z "$ac_c_werror_flag" |
4884 | || test ! -s conftest.err' | |
4885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4886 | (eval $ac_try) 2>&5 | |
4887 | ac_status=$? | |
4888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4889 | (exit $ac_status); }; } && | |
4890 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 4891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
4892 | (eval $ac_try) 2>&5 |
4893 | ac_status=$? | |
25ed0b71 | 4894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4895 | (exit $ac_status); }; }; then |
d60d9f65 SS |
4896 | bash_cv_func_lstat=yes |
4897 | else | |
9255ee31 | 4898 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
4899 | sed 's/^/| /' conftest.$ac_ext >&5 |
4900 | ||
9255ee31 | 4901 | bash_cv_func_lstat=no |
d60d9f65 | 4902 | fi |
430b7832 MM |
4903 | rm -f conftest.err conftest.$ac_objext \ |
4904 | conftest$ac_exeext conftest.$ac_ext | |
d60d9f65 | 4905 | fi |
25ed0b71 | 4906 | echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5 |
9255ee31 | 4907 | echo "${ECHO_T}$bash_cv_func_lstat" >&6 |
d60d9f65 | 4908 | if test $bash_cv_func_lstat = yes; then |
25ed0b71 | 4909 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 4910 | #define HAVE_LSTAT 1 |
25ed0b71 | 4911 | _ACEOF |
d60d9f65 SS |
4912 | |
4913 | fi | |
4914 | ||
25ed0b71 KW |
4915 | |
4916 | echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5 | |
9255ee31 EZ |
4917 | echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6 |
4918 | if test "${bash_cv_func_strcoll_broken+set}" = set; then | |
4919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 SS |
4920 | else |
4921 | if test "$cross_compiling" = yes; then | |
25ed0b71 | 4922 | { echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5 |
9255ee31 | 4923 | echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;} |
d60d9f65 SS |
4924 | bash_cv_func_strcoll_broken=no |
4925 | ||
4926 | else | |
9255ee31 | 4927 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
4928 | /* confdefs.h. */ |
4929 | _ACEOF | |
4930 | cat confdefs.h >>conftest.$ac_ext | |
4931 | cat >>conftest.$ac_ext <<_ACEOF | |
4932 | /* end confdefs.h. */ | |
d60d9f65 SS |
4933 | |
4934 | #include <stdio.h> | |
4935 | #if defined (HAVE_LOCALE_H) | |
4936 | #include <locale.h> | |
4937 | #endif | |
4938 | ||
4939 | main(c, v) | |
4940 | int c; | |
4941 | char *v[]; | |
4942 | { | |
4943 | int r1, r2; | |
4944 | char *deflocale, *defcoll; | |
4945 | ||
4946 | #ifdef HAVE_SETLOCALE | |
4947 | deflocale = setlocale(LC_ALL, ""); | |
4948 | defcoll = setlocale(LC_COLLATE, ""); | |
4949 | #endif | |
4950 | ||
4951 | #ifdef HAVE_STRCOLL | |
4952 | /* These two values are taken from tests/glob-test. */ | |
4953 | r1 = strcoll("abd", "aXd"); | |
4954 | #else | |
4955 | r1 = 0; | |
4956 | #endif | |
9255ee31 EZ |
4957 | r2 = strcmp("abd", "aXd"); |
4958 | ||
4959 | /* These two should both be greater than 0. It is permissible for | |
4960 | a system to return different values, as long as the sign is the | |
4961 | same. */ | |
4962 | ||
4963 | /* Exit with 1 (failure) if these two values are both > 0, since | |
4964 | this tests whether strcoll(3) is broken with respect to strcmp(3) | |
4965 | in the default locale. */ | |
4966 | exit (r1 > 0 && r2 > 0); | |
4967 | } | |
4968 | ||
4969 | _ACEOF | |
4970 | rm -f conftest$ac_exeext | |
25ed0b71 | 4971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9255ee31 EZ |
4972 | (eval $ac_link) 2>&5 |
4973 | ac_status=$? | |
25ed0b71 | 4974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 4975 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
25ed0b71 | 4976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
4977 | (eval $ac_try) 2>&5 |
4978 | ac_status=$? | |
25ed0b71 | 4979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
4980 | (exit $ac_status); }; }; then |
4981 | bash_cv_func_strcoll_broken=yes | |
4982 | else | |
4983 | echo "$as_me: program exited with status $ac_status" >&5 | |
4984 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
4985 | sed 's/^/| /' conftest.$ac_ext >&5 |
4986 | ||
4987 | ( exit $ac_status ) | |
9255ee31 EZ |
4988 | bash_cv_func_strcoll_broken=no |
4989 | fi | |
430b7832 | 4990 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
9255ee31 EZ |
4991 | fi |
4992 | fi | |
4993 | ||
25ed0b71 | 4994 | echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5 |
9255ee31 EZ |
4995 | echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6 |
4996 | if test $bash_cv_func_strcoll_broken = yes; then | |
25ed0b71 | 4997 | cat >>confdefs.h <<\_ACEOF |
9255ee31 | 4998 | #define STRCOLL_BROKEN 1 |
25ed0b71 | 4999 | _ACEOF |
9255ee31 EZ |
5000 | |
5001 | fi | |
5002 | ||
25ed0b71 KW |
5003 | |
5004 | echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5 | |
9255ee31 EZ |
5005 | echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6 |
5006 | if test "${bash_cv_getpw_declared+set}" = set; then | |
5007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5008 | else | |
5009 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
5010 | /* confdefs.h. */ |
5011 | _ACEOF | |
5012 | cat confdefs.h >>conftest.$ac_ext | |
5013 | cat >>conftest.$ac_ext <<_ACEOF | |
5014 | /* end confdefs.h. */ | |
9255ee31 EZ |
5015 | |
5016 | #include <sys/types.h> | |
5017 | #ifdef HAVE_UNISTD_H | |
5018 | # include <unistd.h> | |
5019 | #endif | |
5020 | #include <pwd.h> | |
5021 | ||
5022 | _ACEOF | |
5023 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
25ed0b71 | 5024 | $EGREP "getpwuid" >/dev/null 2>&1; then |
9255ee31 EZ |
5025 | bash_cv_getpw_declared=yes |
5026 | else | |
5027 | bash_cv_getpw_declared=no | |
5028 | fi | |
5029 | rm -f conftest* | |
5030 | ||
5031 | fi | |
5032 | ||
25ed0b71 | 5033 | echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5 |
9255ee31 EZ |
5034 | echo "${ECHO_T}$bash_cv_getpw_declared" >&6 |
5035 | if test $bash_cv_getpw_declared = yes; then | |
25ed0b71 | 5036 | cat >>confdefs.h <<\_ACEOF |
9255ee31 | 5037 | #define HAVE_GETPW_DECLS 1 |
25ed0b71 | 5038 | _ACEOF |
9255ee31 EZ |
5039 | |
5040 | fi | |
5041 | ||
9255ee31 | 5042 | |
25ed0b71 | 5043 | echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5 |
9255ee31 EZ |
5044 | echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6 |
5045 | if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then | |
5046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5047 | else | |
5048 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
5049 | /* confdefs.h. */ |
5050 | _ACEOF | |
5051 | cat confdefs.h >>conftest.$ac_ext | |
5052 | cat >>conftest.$ac_ext <<_ACEOF | |
5053 | /* end confdefs.h. */ | |
9255ee31 EZ |
5054 | #include <sys/types.h> |
5055 | #include <termios.h> | |
5056 | #ifdef TIOCGWINSZ | |
5057 | yes | |
5058 | #endif | |
d60d9f65 | 5059 | |
9255ee31 EZ |
5060 | _ACEOF |
5061 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
25ed0b71 | 5062 | $EGREP "yes" >/dev/null 2>&1; then |
9255ee31 EZ |
5063 | ac_cv_sys_tiocgwinsz_in_termios_h=yes |
5064 | else | |
5065 | ac_cv_sys_tiocgwinsz_in_termios_h=no | |
5066 | fi | |
5067 | rm -f conftest* | |
d60d9f65 | 5068 | |
9255ee31 | 5069 | fi |
25ed0b71 | 5070 | echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5 |
9255ee31 | 5071 | echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6 |
d60d9f65 | 5072 | |
9255ee31 | 5073 | if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then |
25ed0b71 | 5074 | echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5 |
9255ee31 EZ |
5075 | echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6 |
5076 | if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then | |
5077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5078 | else | |
5079 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
5080 | /* confdefs.h. */ |
5081 | _ACEOF | |
5082 | cat confdefs.h >>conftest.$ac_ext | |
5083 | cat >>conftest.$ac_ext <<_ACEOF | |
5084 | /* end confdefs.h. */ | |
9255ee31 EZ |
5085 | #include <sys/types.h> |
5086 | #include <sys/ioctl.h> | |
5087 | #ifdef TIOCGWINSZ | |
5088 | yes | |
5089 | #endif | |
5090 | ||
5091 | _ACEOF | |
5092 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
25ed0b71 | 5093 | $EGREP "yes" >/dev/null 2>&1; then |
9255ee31 EZ |
5094 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes |
5095 | else | |
5096 | ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no | |
d60d9f65 | 5097 | fi |
9255ee31 | 5098 | rm -f conftest* |
d60d9f65 SS |
5099 | |
5100 | fi | |
25ed0b71 | 5101 | echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5 |
9255ee31 | 5102 | echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6 |
d60d9f65 | 5103 | |
9255ee31 EZ |
5104 | if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then |
5105 | ||
25ed0b71 | 5106 | cat >>confdefs.h <<\_ACEOF |
9255ee31 | 5107 | #define GWINSZ_IN_SYS_IOCTL 1 |
25ed0b71 | 5108 | _ACEOF |
d60d9f65 | 5109 | |
9255ee31 | 5110 | fi |
d60d9f65 SS |
5111 | fi |
5112 | ||
25ed0b71 KW |
5113 | |
5114 | echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5 | |
9255ee31 EZ |
5115 | echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6 |
5116 | if test "${bash_cv_void_sighandler+set}" = set; then | |
5117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 5118 | else |
9255ee31 | 5119 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
5120 | /* confdefs.h. */ |
5121 | _ACEOF | |
5122 | cat confdefs.h >>conftest.$ac_ext | |
5123 | cat >>conftest.$ac_ext <<_ACEOF | |
5124 | /* end confdefs.h. */ | |
d60d9f65 SS |
5125 | #include <sys/types.h> |
5126 | #include <signal.h> | |
5127 | #ifdef signal | |
5128 | #undef signal | |
5129 | #endif | |
5130 | #ifdef __cplusplus | |
5131 | extern "C" | |
5132 | #endif | |
5133 | void (*signal ()) (); | |
9255ee31 EZ |
5134 | int |
5135 | main () | |
5136 | { | |
d60d9f65 | 5137 | int i; |
9255ee31 EZ |
5138 | ; |
5139 | return 0; | |
5140 | } | |
5141 | _ACEOF | |
5142 | rm -f conftest.$ac_objext | |
25ed0b71 | 5143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 5144 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 5145 | ac_status=$? |
430b7832 MM |
5146 | grep -v '^ *+' conftest.er1 >conftest.err |
5147 | rm -f conftest.er1 | |
5148 | cat conftest.err >&5 | |
25ed0b71 | 5149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5150 | (exit $ac_status); } && |
430b7832 MM |
5151 | { ac_try='test -z "$ac_c_werror_flag" |
5152 | || test ! -s conftest.err' | |
5153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5154 | (eval $ac_try) 2>&5 | |
5155 | ac_status=$? | |
5156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5157 | (exit $ac_status); }; } && | |
5158 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 5159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
5160 | (eval $ac_try) 2>&5 |
5161 | ac_status=$? | |
25ed0b71 | 5162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5163 | (exit $ac_status); }; }; then |
d60d9f65 SS |
5164 | bash_cv_void_sighandler=yes |
5165 | else | |
9255ee31 | 5166 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
5167 | sed 's/^/| /' conftest.$ac_ext >&5 |
5168 | ||
9255ee31 | 5169 | bash_cv_void_sighandler=no |
d60d9f65 | 5170 | fi |
430b7832 | 5171 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 | 5172 | fi |
25ed0b71 | 5173 | echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5 |
9255ee31 | 5174 | echo "${ECHO_T}$bash_cv_void_sighandler" >&6 |
d60d9f65 | 5175 | if test $bash_cv_void_sighandler = yes; then |
25ed0b71 | 5176 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 5177 | #define VOID_SIGHANDLER 1 |
25ed0b71 | 5178 | _ACEOF |
d60d9f65 SS |
5179 | |
5180 | fi | |
5181 | ||
25ed0b71 | 5182 | echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5 |
9255ee31 EZ |
5183 | echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6 |
5184 | if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then | |
5185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 5186 | else |
9255ee31 | 5187 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
5188 | /* confdefs.h. */ |
5189 | _ACEOF | |
5190 | cat confdefs.h >>conftest.$ac_ext | |
5191 | cat >>conftest.$ac_ext <<_ACEOF | |
5192 | /* end confdefs.h. */ | |
d60d9f65 SS |
5193 | #include <sys/types.h> |
5194 | #include <sys/ioctl.h> | |
9255ee31 EZ |
5195 | int |
5196 | main () | |
5197 | { | |
d60d9f65 | 5198 | int x = TIOCSTAT; |
9255ee31 EZ |
5199 | ; |
5200 | return 0; | |
5201 | } | |
5202 | _ACEOF | |
5203 | rm -f conftest.$ac_objext | |
25ed0b71 | 5204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 5205 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 5206 | ac_status=$? |
430b7832 MM |
5207 | grep -v '^ *+' conftest.er1 >conftest.err |
5208 | rm -f conftest.er1 | |
5209 | cat conftest.err >&5 | |
25ed0b71 | 5210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5211 | (exit $ac_status); } && |
430b7832 MM |
5212 | { ac_try='test -z "$ac_c_werror_flag" |
5213 | || test ! -s conftest.err' | |
5214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5215 | (eval $ac_try) 2>&5 | |
5216 | ac_status=$? | |
5217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5218 | (exit $ac_status); }; } && | |
5219 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 5220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
5221 | (eval $ac_try) 2>&5 |
5222 | ac_status=$? | |
25ed0b71 | 5223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5224 | (exit $ac_status); }; }; then |
d60d9f65 SS |
5225 | bash_cv_tiocstat_in_ioctl=yes |
5226 | else | |
9255ee31 | 5227 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
5228 | sed 's/^/| /' conftest.$ac_ext >&5 |
5229 | ||
9255ee31 | 5230 | bash_cv_tiocstat_in_ioctl=no |
d60d9f65 | 5231 | fi |
430b7832 | 5232 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 SS |
5233 | fi |
5234 | ||
25ed0b71 | 5235 | echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5 |
9255ee31 EZ |
5236 | echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6 |
5237 | if test $bash_cv_tiocstat_in_ioctl = yes; then | |
25ed0b71 | 5238 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 5239 | #define TIOCSTAT_IN_SYS_IOCTL 1 |
25ed0b71 | 5240 | _ACEOF |
d60d9f65 SS |
5241 | |
5242 | fi | |
5243 | ||
25ed0b71 | 5244 | echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5 |
9255ee31 EZ |
5245 | echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6 |
5246 | if test "${bash_cv_fionread_in_ioctl+set}" = set; then | |
5247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 5248 | else |
9255ee31 | 5249 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
5250 | /* confdefs.h. */ |
5251 | _ACEOF | |
5252 | cat confdefs.h >>conftest.$ac_ext | |
5253 | cat >>conftest.$ac_ext <<_ACEOF | |
5254 | /* end confdefs.h. */ | |
d60d9f65 SS |
5255 | #include <sys/types.h> |
5256 | #include <sys/ioctl.h> | |
9255ee31 EZ |
5257 | int |
5258 | main () | |
5259 | { | |
d60d9f65 | 5260 | int x = FIONREAD; |
9255ee31 EZ |
5261 | ; |
5262 | return 0; | |
5263 | } | |
5264 | _ACEOF | |
5265 | rm -f conftest.$ac_objext | |
25ed0b71 | 5266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 5267 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 5268 | ac_status=$? |
430b7832 MM |
5269 | grep -v '^ *+' conftest.er1 >conftest.err |
5270 | rm -f conftest.er1 | |
5271 | cat conftest.err >&5 | |
25ed0b71 | 5272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5273 | (exit $ac_status); } && |
430b7832 MM |
5274 | { ac_try='test -z "$ac_c_werror_flag" |
5275 | || test ! -s conftest.err' | |
5276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5277 | (eval $ac_try) 2>&5 | |
5278 | ac_status=$? | |
5279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5280 | (exit $ac_status); }; } && | |
5281 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 5282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
5283 | (eval $ac_try) 2>&5 |
5284 | ac_status=$? | |
25ed0b71 | 5285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5286 | (exit $ac_status); }; }; then |
d60d9f65 SS |
5287 | bash_cv_fionread_in_ioctl=yes |
5288 | else | |
9255ee31 | 5289 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
5290 | sed 's/^/| /' conftest.$ac_ext >&5 |
5291 | ||
9255ee31 | 5292 | bash_cv_fionread_in_ioctl=no |
d60d9f65 | 5293 | fi |
430b7832 | 5294 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 SS |
5295 | fi |
5296 | ||
25ed0b71 | 5297 | echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5 |
9255ee31 EZ |
5298 | echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6 |
5299 | if test $bash_cv_fionread_in_ioctl = yes; then | |
25ed0b71 | 5300 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 5301 | #define FIONREAD_IN_SYS_IOCTL 1 |
25ed0b71 | 5302 | _ACEOF |
d60d9f65 SS |
5303 | |
5304 | fi | |
5305 | ||
25ed0b71 | 5306 | echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5 |
9255ee31 EZ |
5307 | echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6 |
5308 | if test "${bash_cv_speed_t_in_sys_types+set}" = set; then | |
5309 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 5310 | else |
9255ee31 | 5311 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
5312 | /* confdefs.h. */ |
5313 | _ACEOF | |
5314 | cat confdefs.h >>conftest.$ac_ext | |
5315 | cat >>conftest.$ac_ext <<_ACEOF | |
5316 | /* end confdefs.h. */ | |
d60d9f65 | 5317 | #include <sys/types.h> |
9255ee31 EZ |
5318 | int |
5319 | main () | |
5320 | { | |
d60d9f65 | 5321 | speed_t x; |
9255ee31 EZ |
5322 | ; |
5323 | return 0; | |
5324 | } | |
5325 | _ACEOF | |
5326 | rm -f conftest.$ac_objext | |
25ed0b71 | 5327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 5328 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 5329 | ac_status=$? |
430b7832 MM |
5330 | grep -v '^ *+' conftest.er1 >conftest.err |
5331 | rm -f conftest.er1 | |
5332 | cat conftest.err >&5 | |
25ed0b71 | 5333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5334 | (exit $ac_status); } && |
430b7832 MM |
5335 | { ac_try='test -z "$ac_c_werror_flag" |
5336 | || test ! -s conftest.err' | |
5337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5338 | (eval $ac_try) 2>&5 | |
5339 | ac_status=$? | |
5340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5341 | (exit $ac_status); }; } && | |
5342 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 5343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
5344 | (eval $ac_try) 2>&5 |
5345 | ac_status=$? | |
25ed0b71 | 5346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5347 | (exit $ac_status); }; }; then |
d60d9f65 SS |
5348 | bash_cv_speed_t_in_sys_types=yes |
5349 | else | |
9255ee31 | 5350 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
5351 | sed 's/^/| /' conftest.$ac_ext >&5 |
5352 | ||
9255ee31 | 5353 | bash_cv_speed_t_in_sys_types=no |
d60d9f65 | 5354 | fi |
430b7832 | 5355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 SS |
5356 | fi |
5357 | ||
25ed0b71 | 5358 | echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5 |
9255ee31 EZ |
5359 | echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6 |
5360 | if test $bash_cv_speed_t_in_sys_types = yes; then | |
25ed0b71 | 5361 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 5362 | #define SPEED_T_IN_SYS_TYPES 1 |
25ed0b71 | 5363 | _ACEOF |
d60d9f65 SS |
5364 | |
5365 | fi | |
5366 | ||
25ed0b71 | 5367 | echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5 |
9255ee31 EZ |
5368 | echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6 |
5369 | if test "${bash_cv_struct_winsize_header+set}" = set; then | |
5370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 5371 | else |
9255ee31 | 5372 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
5373 | /* confdefs.h. */ |
5374 | _ACEOF | |
5375 | cat confdefs.h >>conftest.$ac_ext | |
5376 | cat >>conftest.$ac_ext <<_ACEOF | |
5377 | /* end confdefs.h. */ | |
d60d9f65 SS |
5378 | #include <sys/types.h> |
5379 | #include <sys/ioctl.h> | |
9255ee31 EZ |
5380 | int |
5381 | main () | |
5382 | { | |
d60d9f65 | 5383 | struct winsize x; |
9255ee31 EZ |
5384 | ; |
5385 | return 0; | |
5386 | } | |
5387 | _ACEOF | |
5388 | rm -f conftest.$ac_objext | |
25ed0b71 | 5389 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 5390 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 5391 | ac_status=$? |
430b7832 MM |
5392 | grep -v '^ *+' conftest.er1 >conftest.err |
5393 | rm -f conftest.er1 | |
5394 | cat conftest.err >&5 | |
25ed0b71 | 5395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5396 | (exit $ac_status); } && |
430b7832 MM |
5397 | { ac_try='test -z "$ac_c_werror_flag" |
5398 | || test ! -s conftest.err' | |
5399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5400 | (eval $ac_try) 2>&5 | |
5401 | ac_status=$? | |
5402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5403 | (exit $ac_status); }; } && | |
5404 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 5405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
5406 | (eval $ac_try) 2>&5 |
5407 | ac_status=$? | |
25ed0b71 | 5408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5409 | (exit $ac_status); }; }; then |
d60d9f65 SS |
5410 | bash_cv_struct_winsize_header=ioctl_h |
5411 | else | |
9255ee31 | 5412 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
5413 | sed 's/^/| /' conftest.$ac_ext >&5 |
5414 | ||
9255ee31 | 5415 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
5416 | /* confdefs.h. */ |
5417 | _ACEOF | |
5418 | cat confdefs.h >>conftest.$ac_ext | |
5419 | cat >>conftest.$ac_ext <<_ACEOF | |
5420 | /* end confdefs.h. */ | |
d60d9f65 SS |
5421 | #include <sys/types.h> |
5422 | #include <termios.h> | |
9255ee31 EZ |
5423 | int |
5424 | main () | |
5425 | { | |
d60d9f65 | 5426 | struct winsize x; |
9255ee31 EZ |
5427 | ; |
5428 | return 0; | |
5429 | } | |
5430 | _ACEOF | |
5431 | rm -f conftest.$ac_objext | |
25ed0b71 | 5432 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 5433 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 5434 | ac_status=$? |
430b7832 MM |
5435 | grep -v '^ *+' conftest.er1 >conftest.err |
5436 | rm -f conftest.er1 | |
5437 | cat conftest.err >&5 | |
25ed0b71 | 5438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5439 | (exit $ac_status); } && |
430b7832 MM |
5440 | { ac_try='test -z "$ac_c_werror_flag" |
5441 | || test ! -s conftest.err' | |
5442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5443 | (eval $ac_try) 2>&5 | |
5444 | ac_status=$? | |
5445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5446 | (exit $ac_status); }; } && | |
5447 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 5448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
5449 | (eval $ac_try) 2>&5 |
5450 | ac_status=$? | |
25ed0b71 | 5451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5452 | (exit $ac_status); }; }; then |
d60d9f65 SS |
5453 | bash_cv_struct_winsize_header=termios_h |
5454 | else | |
9255ee31 | 5455 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
5456 | sed 's/^/| /' conftest.$ac_ext >&5 |
5457 | ||
9255ee31 | 5458 | bash_cv_struct_winsize_header=other |
d60d9f65 | 5459 | fi |
430b7832 | 5460 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 SS |
5461 | |
5462 | fi | |
430b7832 | 5463 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 SS |
5464 | fi |
5465 | ||
5466 | if test $bash_cv_struct_winsize_header = ioctl_h; then | |
25ed0b71 | 5467 | echo "$as_me:$LINENO: result: sys/ioctl.h" >&5 |
9255ee31 | 5468 | echo "${ECHO_T}sys/ioctl.h" >&6 |
25ed0b71 | 5469 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 5470 | #define STRUCT_WINSIZE_IN_SYS_IOCTL 1 |
25ed0b71 | 5471 | _ACEOF |
d60d9f65 SS |
5472 | |
5473 | elif test $bash_cv_struct_winsize_header = termios_h; then | |
25ed0b71 | 5474 | echo "$as_me:$LINENO: result: termios.h" >&5 |
9255ee31 | 5475 | echo "${ECHO_T}termios.h" >&6 |
25ed0b71 | 5476 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 5477 | #define STRUCT_WINSIZE_IN_TERMIOS 1 |
25ed0b71 | 5478 | _ACEOF |
d60d9f65 SS |
5479 | |
5480 | else | |
25ed0b71 | 5481 | echo "$as_me:$LINENO: result: not found" >&5 |
9255ee31 | 5482 | echo "${ECHO_T}not found" >&6 |
d60d9f65 SS |
5483 | fi |
5484 | ||
25ed0b71 KW |
5485 | |
5486 | echo "$as_me:$LINENO: checking if struct dirent has a d_ino member" >&5 | |
9255ee31 EZ |
5487 | echo $ECHO_N "checking if struct dirent has a d_ino member... $ECHO_C" >&6 |
5488 | if test "${bash_cv_dirent_has_dino+set}" = set; then | |
5489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 5490 | else |
9255ee31 | 5491 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
5492 | /* confdefs.h. */ |
5493 | _ACEOF | |
5494 | cat confdefs.h >>conftest.$ac_ext | |
5495 | cat >>conftest.$ac_ext <<_ACEOF | |
5496 | /* end confdefs.h. */ | |
d60d9f65 SS |
5497 | |
5498 | #include <stdio.h> | |
5499 | #include <sys/types.h> | |
5500 | #ifdef HAVE_UNISTD_H | |
5501 | # include <unistd.h> | |
5502 | #endif /* HAVE_UNISTD_H */ | |
5503 | #if defined(HAVE_DIRENT_H) | |
5504 | # include <dirent.h> | |
5505 | #else | |
5506 | # define dirent direct | |
5507 | # ifdef HAVE_SYS_NDIR_H | |
5508 | # include <sys/ndir.h> | |
5509 | # endif /* SYSNDIR */ | |
5510 | # ifdef HAVE_SYS_DIR_H | |
5511 | # include <sys/dir.h> | |
5512 | # endif /* SYSDIR */ | |
5513 | # ifdef HAVE_NDIR_H | |
5514 | # include <ndir.h> | |
5515 | # endif | |
5516 | #endif /* HAVE_DIRENT_H */ | |
5517 | ||
9255ee31 EZ |
5518 | int |
5519 | main () | |
5520 | { | |
d60d9f65 SS |
5521 | |
5522 | struct dirent d; int z; z = d.d_ino; | |
5523 | ||
9255ee31 EZ |
5524 | ; |
5525 | return 0; | |
5526 | } | |
5527 | _ACEOF | |
5528 | rm -f conftest.$ac_objext | |
25ed0b71 | 5529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 5530 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 5531 | ac_status=$? |
430b7832 MM |
5532 | grep -v '^ *+' conftest.er1 >conftest.err |
5533 | rm -f conftest.er1 | |
5534 | cat conftest.err >&5 | |
25ed0b71 | 5535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5536 | (exit $ac_status); } && |
430b7832 MM |
5537 | { ac_try='test -z "$ac_c_werror_flag" |
5538 | || test ! -s conftest.err' | |
5539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5540 | (eval $ac_try) 2>&5 | |
5541 | ac_status=$? | |
5542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5543 | (exit $ac_status); }; } && | |
5544 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 5545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
5546 | (eval $ac_try) 2>&5 |
5547 | ac_status=$? | |
25ed0b71 | 5548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5549 | (exit $ac_status); }; }; then |
d60d9f65 SS |
5550 | bash_cv_dirent_has_dino=yes |
5551 | else | |
9255ee31 | 5552 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
5553 | sed 's/^/| /' conftest.$ac_ext >&5 |
5554 | ||
9255ee31 | 5555 | bash_cv_dirent_has_dino=no |
d60d9f65 | 5556 | fi |
430b7832 | 5557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 SS |
5558 | fi |
5559 | ||
25ed0b71 | 5560 | echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5 |
9255ee31 | 5561 | echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6 |
d60d9f65 | 5562 | if test $bash_cv_dirent_has_dino = yes; then |
25ed0b71 | 5563 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 5564 | #define STRUCT_DIRENT_HAS_D_INO 1 |
25ed0b71 | 5565 | _ACEOF |
d60d9f65 SS |
5566 | |
5567 | fi | |
5568 | ||
25ed0b71 KW |
5569 | |
5570 | echo "$as_me:$LINENO: checking if struct dirent has a d_fileno member" >&5 | |
9255ee31 EZ |
5571 | echo $ECHO_N "checking if struct dirent has a d_fileno member... $ECHO_C" >&6 |
5572 | if test "${bash_cv_dirent_has_d_fileno+set}" = set; then | |
5573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 5574 | else |
9255ee31 | 5575 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
5576 | /* confdefs.h. */ |
5577 | _ACEOF | |
5578 | cat confdefs.h >>conftest.$ac_ext | |
5579 | cat >>conftest.$ac_ext <<_ACEOF | |
5580 | /* end confdefs.h. */ | |
d60d9f65 SS |
5581 | |
5582 | #include <stdio.h> | |
5583 | #include <sys/types.h> | |
5584 | #ifdef HAVE_UNISTD_H | |
5585 | # include <unistd.h> | |
5586 | #endif /* HAVE_UNISTD_H */ | |
5587 | #if defined(HAVE_DIRENT_H) | |
5588 | # include <dirent.h> | |
5589 | #else | |
5590 | # define dirent direct | |
5591 | # ifdef HAVE_SYS_NDIR_H | |
5592 | # include <sys/ndir.h> | |
5593 | # endif /* SYSNDIR */ | |
5594 | # ifdef HAVE_SYS_DIR_H | |
5595 | # include <sys/dir.h> | |
5596 | # endif /* SYSDIR */ | |
5597 | # ifdef HAVE_NDIR_H | |
5598 | # include <ndir.h> | |
5599 | # endif | |
5600 | #endif /* HAVE_DIRENT_H */ | |
5601 | ||
9255ee31 EZ |
5602 | int |
5603 | main () | |
5604 | { | |
d60d9f65 SS |
5605 | |
5606 | struct dirent d; int z; z = d.d_fileno; | |
5607 | ||
9255ee31 EZ |
5608 | ; |
5609 | return 0; | |
5610 | } | |
5611 | _ACEOF | |
5612 | rm -f conftest.$ac_objext | |
25ed0b71 | 5613 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
430b7832 | 5614 | (eval $ac_compile) 2>conftest.er1 |
9255ee31 | 5615 | ac_status=$? |
430b7832 MM |
5616 | grep -v '^ *+' conftest.er1 >conftest.err |
5617 | rm -f conftest.er1 | |
5618 | cat conftest.err >&5 | |
25ed0b71 | 5619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5620 | (exit $ac_status); } && |
430b7832 MM |
5621 | { ac_try='test -z "$ac_c_werror_flag" |
5622 | || test ! -s conftest.err' | |
5623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5624 | (eval $ac_try) 2>&5 | |
5625 | ac_status=$? | |
5626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5627 | (exit $ac_status); }; } && | |
5628 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 | 5629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
5630 | (eval $ac_try) 2>&5 |
5631 | ac_status=$? | |
25ed0b71 | 5632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5633 | (exit $ac_status); }; }; then |
d60d9f65 SS |
5634 | bash_cv_dirent_has_d_fileno=yes |
5635 | else | |
9255ee31 | 5636 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
5637 | sed 's/^/| /' conftest.$ac_ext >&5 |
5638 | ||
9255ee31 | 5639 | bash_cv_dirent_has_d_fileno=no |
d60d9f65 | 5640 | fi |
430b7832 | 5641 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d60d9f65 SS |
5642 | fi |
5643 | ||
25ed0b71 | 5644 | echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5 |
9255ee31 | 5645 | echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6 |
d60d9f65 | 5646 | if test $bash_cv_dirent_has_d_fileno = yes; then |
25ed0b71 | 5647 | cat >>confdefs.h <<\_ACEOF |
d60d9f65 | 5648 | #define STRUCT_DIRENT_HAS_D_FILENO 1 |
25ed0b71 | 5649 | _ACEOF |
d60d9f65 SS |
5650 | |
5651 | fi | |
5652 | ||
25ed0b71 | 5653 | |
d60d9f65 SS |
5654 | case "$host_os" in |
5655 | aix*) prefer_curses=yes ;; | |
5656 | esac | |
5657 | ||
5658 | if test "X$bash_cv_termcap_lib" = "X"; then | |
5659 | _bash_needmsg=yes | |
5660 | else | |
25ed0b71 | 5661 | echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 |
9255ee31 | 5662 | echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6 |
d60d9f65 SS |
5663 | _bash_needmsg= |
5664 | fi | |
9255ee31 EZ |
5665 | if test "${bash_cv_termcap_lib+set}" = set; then |
5666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 5667 | else |
25ed0b71 | 5668 | echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5 |
9255ee31 EZ |
5669 | echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6 |
5670 | if test "${ac_cv_lib_termcap_tgetent+set}" = set; then | |
5671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 5672 | else |
9255ee31 | 5673 | ac_check_lib_save_LIBS=$LIBS |
d60d9f65 | 5674 | LIBS="-ltermcap $LIBS" |
9255ee31 | 5675 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
5676 | /* confdefs.h. */ |
5677 | _ACEOF | |
5678 | cat confdefs.h >>conftest.$ac_ext | |
5679 | cat >>conftest.$ac_ext <<_ACEOF | |
5680 | /* end confdefs.h. */ | |
9255ee31 EZ |
5681 | |
5682 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5683 | #ifdef __cplusplus | |
5684 | extern "C" | |
5685 | #endif | |
5686 | /* We use char because int might match the return type of a gcc2 | |
5687 | builtin and then its argument prototype would still apply. */ | |
5688 | char tgetent (); | |
5689 | int | |
5690 | main () | |
5691 | { | |
5692 | tgetent (); | |
5693 | ; | |
5694 | return 0; | |
5695 | } | |
5696 | _ACEOF | |
5697 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 5698 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 5699 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 5700 | ac_status=$? |
430b7832 MM |
5701 | grep -v '^ *+' conftest.er1 >conftest.err |
5702 | rm -f conftest.er1 | |
5703 | cat conftest.err >&5 | |
25ed0b71 | 5704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5705 | (exit $ac_status); } && |
430b7832 MM |
5706 | { ac_try='test -z "$ac_c_werror_flag" |
5707 | || test ! -s conftest.err' | |
5708 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5709 | (eval $ac_try) 2>&5 | |
5710 | ac_status=$? | |
5711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5712 | (exit $ac_status); }; } && | |
5713 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 5714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
5715 | (eval $ac_try) 2>&5 |
5716 | ac_status=$? | |
25ed0b71 | 5717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
5718 | (exit $ac_status); }; }; then |
5719 | ac_cv_lib_termcap_tgetent=yes | |
5720 | else | |
5721 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
5722 | sed 's/^/| /' conftest.$ac_ext >&5 |
5723 | ||
9255ee31 EZ |
5724 | ac_cv_lib_termcap_tgetent=no |
5725 | fi | |
430b7832 MM |
5726 | rm -f conftest.err conftest.$ac_objext \ |
5727 | conftest$ac_exeext conftest.$ac_ext | |
9255ee31 EZ |
5728 | LIBS=$ac_check_lib_save_LIBS |
5729 | fi | |
25ed0b71 | 5730 | echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5 |
9255ee31 EZ |
5731 | echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6 |
5732 | if test $ac_cv_lib_termcap_tgetent = yes; then | |
5733 | bash_cv_termcap_lib=libtermcap | |
5734 | else | |
25ed0b71 | 5735 | echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5 |
9255ee31 EZ |
5736 | echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6 |
5737 | if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then | |
5738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5739 | else | |
5740 | ac_check_lib_save_LIBS=$LIBS | |
5741 | LIBS="-ltinfo $LIBS" | |
5742 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
5743 | /* confdefs.h. */ |
5744 | _ACEOF | |
5745 | cat confdefs.h >>conftest.$ac_ext | |
5746 | cat >>conftest.$ac_ext <<_ACEOF | |
5747 | /* end confdefs.h. */ | |
9255ee31 EZ |
5748 | |
5749 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5750 | #ifdef __cplusplus | |
5751 | extern "C" | |
5752 | #endif | |
5753 | /* We use char because int might match the return type of a gcc2 | |
5754 | builtin and then its argument prototype would still apply. */ | |
5755 | char tgetent (); | |
5756 | int | |
5757 | main () | |
5758 | { | |
5759 | tgetent (); | |
5760 | ; | |
5761 | return 0; | |
5762 | } | |
5763 | _ACEOF | |
5764 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 5765 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 5766 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 5767 | ac_status=$? |
430b7832 MM |
5768 | grep -v '^ *+' conftest.er1 >conftest.err |
5769 | rm -f conftest.er1 | |
5770 | cat conftest.err >&5 | |
25ed0b71 | 5771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5772 | (exit $ac_status); } && |
430b7832 MM |
5773 | { ac_try='test -z "$ac_c_werror_flag" |
5774 | || test ! -s conftest.err' | |
5775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5776 | (eval $ac_try) 2>&5 | |
5777 | ac_status=$? | |
5778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5779 | (exit $ac_status); }; } && | |
5780 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 5781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
5782 | (eval $ac_try) 2>&5 |
5783 | ac_status=$? | |
25ed0b71 | 5784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
5785 | (exit $ac_status); }; }; then |
5786 | ac_cv_lib_tinfo_tgetent=yes | |
5787 | else | |
5788 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
5789 | sed 's/^/| /' conftest.$ac_ext >&5 |
5790 | ||
9255ee31 EZ |
5791 | ac_cv_lib_tinfo_tgetent=no |
5792 | fi | |
430b7832 MM |
5793 | rm -f conftest.err conftest.$ac_objext \ |
5794 | conftest$ac_exeext conftest.$ac_ext | |
9255ee31 EZ |
5795 | LIBS=$ac_check_lib_save_LIBS |
5796 | fi | |
25ed0b71 | 5797 | echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5 |
9255ee31 EZ |
5798 | echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6 |
5799 | if test $ac_cv_lib_tinfo_tgetent = yes; then | |
5800 | bash_cv_termcap_lib=libtinfo | |
5801 | else | |
25ed0b71 | 5802 | echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5 |
9255ee31 EZ |
5803 | echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6 |
5804 | if test "${ac_cv_lib_curses_tgetent+set}" = set; then | |
5805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5806 | else | |
5807 | ac_check_lib_save_LIBS=$LIBS | |
5808 | LIBS="-lcurses $LIBS" | |
5809 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
5810 | /* confdefs.h. */ |
5811 | _ACEOF | |
5812 | cat confdefs.h >>conftest.$ac_ext | |
5813 | cat >>conftest.$ac_ext <<_ACEOF | |
5814 | /* end confdefs.h. */ | |
9255ee31 EZ |
5815 | |
5816 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5817 | #ifdef __cplusplus | |
5818 | extern "C" | |
5819 | #endif | |
5820 | /* We use char because int might match the return type of a gcc2 | |
5821 | builtin and then its argument prototype would still apply. */ | |
5822 | char tgetent (); | |
5823 | int | |
5824 | main () | |
5825 | { | |
5826 | tgetent (); | |
5827 | ; | |
5828 | return 0; | |
5829 | } | |
5830 | _ACEOF | |
5831 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 5832 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 5833 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 5834 | ac_status=$? |
430b7832 MM |
5835 | grep -v '^ *+' conftest.er1 >conftest.err |
5836 | rm -f conftest.er1 | |
5837 | cat conftest.err >&5 | |
25ed0b71 | 5838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5839 | (exit $ac_status); } && |
430b7832 MM |
5840 | { ac_try='test -z "$ac_c_werror_flag" |
5841 | || test ! -s conftest.err' | |
5842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5843 | (eval $ac_try) 2>&5 | |
5844 | ac_status=$? | |
5845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5846 | (exit $ac_status); }; } && | |
5847 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 5848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
5849 | (eval $ac_try) 2>&5 |
5850 | ac_status=$? | |
25ed0b71 | 5851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
5852 | (exit $ac_status); }; }; then |
5853 | ac_cv_lib_curses_tgetent=yes | |
5854 | else | |
5855 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
5856 | sed 's/^/| /' conftest.$ac_ext >&5 |
5857 | ||
9255ee31 EZ |
5858 | ac_cv_lib_curses_tgetent=no |
5859 | fi | |
430b7832 MM |
5860 | rm -f conftest.err conftest.$ac_objext \ |
5861 | conftest$ac_exeext conftest.$ac_ext | |
9255ee31 EZ |
5862 | LIBS=$ac_check_lib_save_LIBS |
5863 | fi | |
25ed0b71 | 5864 | echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5 |
9255ee31 EZ |
5865 | echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6 |
5866 | if test $ac_cv_lib_curses_tgetent = yes; then | |
5867 | bash_cv_termcap_lib=libcurses | |
5868 | else | |
25ed0b71 | 5869 | echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5 |
9255ee31 EZ |
5870 | echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6 |
5871 | if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then | |
5872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5873 | else | |
5874 | ac_check_lib_save_LIBS=$LIBS | |
5875 | LIBS="-lncurses $LIBS" | |
5876 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
5877 | /* confdefs.h. */ |
5878 | _ACEOF | |
5879 | cat confdefs.h >>conftest.$ac_ext | |
5880 | cat >>conftest.$ac_ext <<_ACEOF | |
5881 | /* end confdefs.h. */ | |
9255ee31 EZ |
5882 | |
5883 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5884 | #ifdef __cplusplus | |
5885 | extern "C" | |
5886 | #endif | |
5887 | /* We use char because int might match the return type of a gcc2 | |
5888 | builtin and then its argument prototype would still apply. */ | |
5889 | char tgetent (); | |
5890 | int | |
5891 | main () | |
5892 | { | |
5893 | tgetent (); | |
5894 | ; | |
5895 | return 0; | |
5896 | } | |
5897 | _ACEOF | |
5898 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 5899 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 5900 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 5901 | ac_status=$? |
430b7832 MM |
5902 | grep -v '^ *+' conftest.er1 >conftest.err |
5903 | rm -f conftest.er1 | |
5904 | cat conftest.err >&5 | |
25ed0b71 | 5905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 5906 | (exit $ac_status); } && |
430b7832 MM |
5907 | { ac_try='test -z "$ac_c_werror_flag" |
5908 | || test ! -s conftest.err' | |
5909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5910 | (eval $ac_try) 2>&5 | |
5911 | ac_status=$? | |
5912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5913 | (exit $ac_status); }; } && | |
5914 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 5915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
5916 | (eval $ac_try) 2>&5 |
5917 | ac_status=$? | |
25ed0b71 | 5918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
5919 | (exit $ac_status); }; }; then |
5920 | ac_cv_lib_ncurses_tgetent=yes | |
5921 | else | |
5922 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
5923 | sed 's/^/| /' conftest.$ac_ext >&5 |
5924 | ||
9255ee31 EZ |
5925 | ac_cv_lib_ncurses_tgetent=no |
5926 | fi | |
430b7832 MM |
5927 | rm -f conftest.err conftest.$ac_objext \ |
5928 | conftest$ac_exeext conftest.$ac_ext | |
9255ee31 EZ |
5929 | LIBS=$ac_check_lib_save_LIBS |
5930 | fi | |
25ed0b71 | 5931 | echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5 |
9255ee31 EZ |
5932 | echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6 |
5933 | if test $ac_cv_lib_ncurses_tgetent = yes; then | |
5934 | bash_cv_termcap_lib=libncurses | |
5935 | else | |
5936 | bash_cv_termcap_lib=gnutermcap | |
5937 | fi | |
5938 | ||
5939 | fi | |
5940 | ||
5941 | fi | |
5942 | ||
5943 | fi | |
5944 | ||
5945 | fi | |
5946 | ||
5947 | if test "X$_bash_needmsg" = "Xyes"; then | |
25ed0b71 | 5948 | echo "$as_me:$LINENO: checking which library has the termcap functions" >&5 |
9255ee31 EZ |
5949 | echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6 |
5950 | fi | |
25ed0b71 | 5951 | echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5 |
9255ee31 EZ |
5952 | echo "${ECHO_T}using $bash_cv_termcap_lib" >&6 |
5953 | if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then | |
5954 | LDFLAGS="$LDFLAGS -L./lib/termcap" | |
5955 | TERMCAP_LIB="./lib/termcap/libtermcap.a" | |
5956 | TERMCAP_DEP="./lib/termcap/libtermcap.a" | |
5957 | elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then | |
5958 | TERMCAP_LIB=-ltermcap | |
5959 | TERMCAP_DEP= | |
5960 | elif test $bash_cv_termcap_lib = libtinfo; then | |
5961 | TERMCAP_LIB=-ltinfo | |
5962 | TERMCAP_DEP= | |
5963 | elif test $bash_cv_termcap_lib = libncurses; then | |
5964 | TERMCAP_LIB=-lncurses | |
5965 | TERMCAP_DEP= | |
5966 | else | |
5967 | TERMCAP_LIB=-lcurses | |
5968 | TERMCAP_DEP= | |
5969 | fi | |
5970 | ||
5971 | if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then | |
5972 | if test "$prefer_curses" = yes; then | |
5973 | TERMCAP_LIB=-lcurses | |
5974 | else | |
5975 | TERMCAP_LIB=-ltermcap #default | |
5976 | fi | |
5977 | fi | |
5978 | ||
25ed0b71 KW |
5979 | |
5980 | ||
9255ee31 EZ |
5981 | for ac_header in wctype.h |
5982 | do | |
5983 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
25ed0b71 KW |
5984 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5985 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9255ee31 EZ |
5986 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5987 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25ed0b71 KW |
5989 | fi |
5990 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5991 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9255ee31 | 5992 | else |
25ed0b71 KW |
5993 | # Is the header compilable? |
5994 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5995 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5996 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
5997 | /* confdefs.h. */ |
5998 | _ACEOF | |
5999 | cat confdefs.h >>conftest.$ac_ext | |
6000 | cat >>conftest.$ac_ext <<_ACEOF | |
6001 | /* end confdefs.h. */ | |
6002 | $ac_includes_default | |
6003 | #include <$ac_header> | |
6004 | _ACEOF | |
6005 | rm -f conftest.$ac_objext | |
6006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
430b7832 | 6007 | (eval $ac_compile) 2>conftest.er1 |
25ed0b71 | 6008 | ac_status=$? |
430b7832 MM |
6009 | grep -v '^ *+' conftest.er1 >conftest.err |
6010 | rm -f conftest.er1 | |
6011 | cat conftest.err >&5 | |
25ed0b71 KW |
6012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6013 | (exit $ac_status); } && | |
430b7832 MM |
6014 | { ac_try='test -z "$ac_c_werror_flag" |
6015 | || test ! -s conftest.err' | |
6016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6017 | (eval $ac_try) 2>&5 | |
6018 | ac_status=$? | |
6019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6020 | (exit $ac_status); }; } && | |
6021 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 KW |
6022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6023 | (eval $ac_try) 2>&5 | |
6024 | ac_status=$? | |
6025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6026 | (exit $ac_status); }; }; then | |
6027 | ac_header_compiler=yes | |
6028 | else | |
6029 | echo "$as_me: failed program was:" >&5 | |
6030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6031 | ||
6032 | ac_header_compiler=no | |
6033 | fi | |
430b7832 | 6034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
25ed0b71 KW |
6035 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6036 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6037 | ||
6038 | # Is the header present? | |
6039 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6040 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6041 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
6042 | /* confdefs.h. */ |
6043 | _ACEOF | |
6044 | cat confdefs.h >>conftest.$ac_ext | |
6045 | cat >>conftest.$ac_ext <<_ACEOF | |
6046 | /* end confdefs.h. */ | |
9255ee31 EZ |
6047 | #include <$ac_header> |
6048 | _ACEOF | |
25ed0b71 | 6049 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
9255ee31 EZ |
6050 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6051 | ac_status=$? | |
25ed0b71 | 6052 | grep -v '^ *+' conftest.er1 >conftest.err |
9255ee31 EZ |
6053 | rm -f conftest.er1 |
6054 | cat conftest.err >&5 | |
25ed0b71 | 6055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
6056 | (exit $ac_status); } >/dev/null; then |
6057 | if test -s conftest.err; then | |
6058 | ac_cpp_err=$ac_c_preproc_warn_flag | |
430b7832 | 6059 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
9255ee31 EZ |
6060 | else |
6061 | ac_cpp_err= | |
6062 | fi | |
6063 | else | |
6064 | ac_cpp_err=yes | |
6065 | fi | |
6066 | if test -z "$ac_cpp_err"; then | |
25ed0b71 | 6067 | ac_header_preproc=yes |
9255ee31 EZ |
6068 | else |
6069 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
6070 | sed 's/^/| /' conftest.$ac_ext >&5 |
6071 | ||
6072 | ac_header_preproc=no | |
9255ee31 EZ |
6073 | fi |
6074 | rm -f conftest.err conftest.$ac_ext | |
25ed0b71 KW |
6075 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6076 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6077 | ||
6078 | # So? What about this header? | |
430b7832 MM |
6079 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6080 | yes:no: ) | |
25ed0b71 KW |
6081 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6082 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
430b7832 MM |
6083 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6084 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6085 | ac_header_preproc=yes | |
25ed0b71 | 6086 | ;; |
430b7832 | 6087 | no:yes:* ) |
25ed0b71 KW |
6088 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6089 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
430b7832 MM |
6090 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6091 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6092 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6093 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6094 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6095 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
25ed0b71 KW |
6096 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
6097 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
430b7832 MM |
6098 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6099 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
25ed0b71 KW |
6100 | ( |
6101 | cat <<\_ASBOX | |
430b7832 MM |
6102 | ## ----------------------------------- ## |
6103 | ## Report this to bug-readline@gnu.org ## | |
6104 | ## ----------------------------------- ## | |
25ed0b71 KW |
6105 | _ASBOX |
6106 | ) | | |
6107 | sed "s/^/$as_me: WARNING: /" >&2 | |
6108 | ;; | |
6109 | esac | |
6110 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6111 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6112 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6114 | else | |
430b7832 | 6115 | eval "$as_ac_Header=\$ac_header_preproc" |
9255ee31 | 6116 | fi |
25ed0b71 | 6117 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9255ee31 | 6118 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
25ed0b71 KW |
6119 | |
6120 | fi | |
9255ee31 | 6121 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
25ed0b71 | 6122 | cat >>confdefs.h <<_ACEOF |
9255ee31 | 6123 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
25ed0b71 | 6124 | _ACEOF |
9255ee31 EZ |
6125 | |
6126 | fi | |
25ed0b71 | 6127 | |
9255ee31 EZ |
6128 | done |
6129 | ||
25ed0b71 | 6130 | |
9255ee31 EZ |
6131 | for ac_header in wchar.h |
6132 | do | |
6133 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
25ed0b71 KW |
6134 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6135 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9255ee31 EZ |
6136 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6137 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25ed0b71 KW |
6139 | fi |
6140 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6141 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9255ee31 | 6142 | else |
25ed0b71 KW |
6143 | # Is the header compilable? |
6144 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6145 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6146 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
6147 | /* confdefs.h. */ |
6148 | _ACEOF | |
6149 | cat confdefs.h >>conftest.$ac_ext | |
6150 | cat >>conftest.$ac_ext <<_ACEOF | |
6151 | /* end confdefs.h. */ | |
6152 | $ac_includes_default | |
6153 | #include <$ac_header> | |
6154 | _ACEOF | |
6155 | rm -f conftest.$ac_objext | |
6156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
430b7832 | 6157 | (eval $ac_compile) 2>conftest.er1 |
25ed0b71 | 6158 | ac_status=$? |
430b7832 MM |
6159 | grep -v '^ *+' conftest.er1 >conftest.err |
6160 | rm -f conftest.er1 | |
6161 | cat conftest.err >&5 | |
25ed0b71 KW |
6162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6163 | (exit $ac_status); } && | |
430b7832 MM |
6164 | { ac_try='test -z "$ac_c_werror_flag" |
6165 | || test ! -s conftest.err' | |
6166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6167 | (eval $ac_try) 2>&5 | |
6168 | ac_status=$? | |
6169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6170 | (exit $ac_status); }; } && | |
6171 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 KW |
6172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6173 | (eval $ac_try) 2>&5 | |
6174 | ac_status=$? | |
6175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6176 | (exit $ac_status); }; }; then | |
6177 | ac_header_compiler=yes | |
6178 | else | |
6179 | echo "$as_me: failed program was:" >&5 | |
6180 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6181 | ||
6182 | ac_header_compiler=no | |
6183 | fi | |
430b7832 | 6184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
25ed0b71 KW |
6185 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6186 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6187 | ||
6188 | # Is the header present? | |
6189 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6190 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6191 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
6192 | /* confdefs.h. */ |
6193 | _ACEOF | |
6194 | cat confdefs.h >>conftest.$ac_ext | |
6195 | cat >>conftest.$ac_ext <<_ACEOF | |
6196 | /* end confdefs.h. */ | |
9255ee31 EZ |
6197 | #include <$ac_header> |
6198 | _ACEOF | |
25ed0b71 | 6199 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
9255ee31 EZ |
6200 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6201 | ac_status=$? | |
25ed0b71 | 6202 | grep -v '^ *+' conftest.er1 >conftest.err |
9255ee31 EZ |
6203 | rm -f conftest.er1 |
6204 | cat conftest.err >&5 | |
25ed0b71 | 6205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
6206 | (exit $ac_status); } >/dev/null; then |
6207 | if test -s conftest.err; then | |
6208 | ac_cpp_err=$ac_c_preproc_warn_flag | |
430b7832 | 6209 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
9255ee31 EZ |
6210 | else |
6211 | ac_cpp_err= | |
6212 | fi | |
6213 | else | |
6214 | ac_cpp_err=yes | |
6215 | fi | |
6216 | if test -z "$ac_cpp_err"; then | |
25ed0b71 | 6217 | ac_header_preproc=yes |
9255ee31 EZ |
6218 | else |
6219 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
6220 | sed 's/^/| /' conftest.$ac_ext >&5 |
6221 | ||
6222 | ac_header_preproc=no | |
9255ee31 EZ |
6223 | fi |
6224 | rm -f conftest.err conftest.$ac_ext | |
25ed0b71 KW |
6225 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6226 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6227 | ||
6228 | # So? What about this header? | |
430b7832 MM |
6229 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6230 | yes:no: ) | |
25ed0b71 KW |
6231 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6232 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
430b7832 MM |
6233 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6234 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6235 | ac_header_preproc=yes | |
25ed0b71 | 6236 | ;; |
430b7832 | 6237 | no:yes:* ) |
25ed0b71 KW |
6238 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6239 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
430b7832 MM |
6240 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6241 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6242 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6243 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6244 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6245 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
25ed0b71 KW |
6246 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
6247 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
430b7832 MM |
6248 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6249 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
25ed0b71 KW |
6250 | ( |
6251 | cat <<\_ASBOX | |
430b7832 MM |
6252 | ## ----------------------------------- ## |
6253 | ## Report this to bug-readline@gnu.org ## | |
6254 | ## ----------------------------------- ## | |
25ed0b71 KW |
6255 | _ASBOX |
6256 | ) | | |
6257 | sed "s/^/$as_me: WARNING: /" >&2 | |
6258 | ;; | |
6259 | esac | |
6260 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6261 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6262 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6264 | else | |
430b7832 | 6265 | eval "$as_ac_Header=\$ac_header_preproc" |
9255ee31 | 6266 | fi |
25ed0b71 | 6267 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9255ee31 | 6268 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
25ed0b71 KW |
6269 | |
6270 | fi | |
9255ee31 | 6271 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
25ed0b71 | 6272 | cat >>confdefs.h <<_ACEOF |
9255ee31 | 6273 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
25ed0b71 | 6274 | _ACEOF |
9255ee31 EZ |
6275 | |
6276 | fi | |
25ed0b71 | 6277 | |
9255ee31 EZ |
6278 | done |
6279 | ||
25ed0b71 | 6280 | |
9255ee31 EZ |
6281 | for ac_header in langinfo.h |
6282 | do | |
6283 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
25ed0b71 KW |
6284 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
6285 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9255ee31 EZ |
6286 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6287 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25ed0b71 KW |
6289 | fi |
6290 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6291 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9255ee31 | 6292 | else |
25ed0b71 KW |
6293 | # Is the header compilable? |
6294 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6295 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6296 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
6297 | /* confdefs.h. */ |
6298 | _ACEOF | |
6299 | cat confdefs.h >>conftest.$ac_ext | |
6300 | cat >>conftest.$ac_ext <<_ACEOF | |
6301 | /* end confdefs.h. */ | |
6302 | $ac_includes_default | |
6303 | #include <$ac_header> | |
6304 | _ACEOF | |
6305 | rm -f conftest.$ac_objext | |
6306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
430b7832 | 6307 | (eval $ac_compile) 2>conftest.er1 |
25ed0b71 | 6308 | ac_status=$? |
430b7832 MM |
6309 | grep -v '^ *+' conftest.er1 >conftest.err |
6310 | rm -f conftest.er1 | |
6311 | cat conftest.err >&5 | |
25ed0b71 KW |
6312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6313 | (exit $ac_status); } && | |
430b7832 MM |
6314 | { ac_try='test -z "$ac_c_werror_flag" |
6315 | || test ! -s conftest.err' | |
6316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6317 | (eval $ac_try) 2>&5 | |
6318 | ac_status=$? | |
6319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6320 | (exit $ac_status); }; } && | |
6321 | { ac_try='test -s conftest.$ac_objext' | |
25ed0b71 KW |
6322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6323 | (eval $ac_try) 2>&5 | |
6324 | ac_status=$? | |
6325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6326 | (exit $ac_status); }; }; then | |
6327 | ac_header_compiler=yes | |
6328 | else | |
6329 | echo "$as_me: failed program was:" >&5 | |
6330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6331 | ||
6332 | ac_header_compiler=no | |
6333 | fi | |
430b7832 | 6334 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
25ed0b71 KW |
6335 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6336 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6337 | ||
6338 | # Is the header present? | |
6339 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6340 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6341 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
6342 | /* confdefs.h. */ |
6343 | _ACEOF | |
6344 | cat confdefs.h >>conftest.$ac_ext | |
6345 | cat >>conftest.$ac_ext <<_ACEOF | |
6346 | /* end confdefs.h. */ | |
9255ee31 EZ |
6347 | #include <$ac_header> |
6348 | _ACEOF | |
25ed0b71 | 6349 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
9255ee31 EZ |
6350 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
6351 | ac_status=$? | |
25ed0b71 | 6352 | grep -v '^ *+' conftest.er1 >conftest.err |
9255ee31 EZ |
6353 | rm -f conftest.er1 |
6354 | cat conftest.err >&5 | |
25ed0b71 | 6355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
6356 | (exit $ac_status); } >/dev/null; then |
6357 | if test -s conftest.err; then | |
6358 | ac_cpp_err=$ac_c_preproc_warn_flag | |
430b7832 | 6359 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
9255ee31 EZ |
6360 | else |
6361 | ac_cpp_err= | |
6362 | fi | |
6363 | else | |
6364 | ac_cpp_err=yes | |
6365 | fi | |
6366 | if test -z "$ac_cpp_err"; then | |
25ed0b71 | 6367 | ac_header_preproc=yes |
9255ee31 EZ |
6368 | else |
6369 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
6370 | sed 's/^/| /' conftest.$ac_ext >&5 |
6371 | ||
6372 | ac_header_preproc=no | |
9255ee31 EZ |
6373 | fi |
6374 | rm -f conftest.err conftest.$ac_ext | |
25ed0b71 KW |
6375 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6376 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6377 | ||
6378 | # So? What about this header? | |
430b7832 MM |
6379 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6380 | yes:no: ) | |
25ed0b71 KW |
6381 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6382 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
430b7832 MM |
6383 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6384 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6385 | ac_header_preproc=yes | |
25ed0b71 | 6386 | ;; |
430b7832 | 6387 | no:yes:* ) |
25ed0b71 KW |
6388 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6389 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
430b7832 MM |
6390 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6391 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6392 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6393 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6394 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6395 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
25ed0b71 KW |
6396 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
6397 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
430b7832 MM |
6398 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6399 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
25ed0b71 KW |
6400 | ( |
6401 | cat <<\_ASBOX | |
430b7832 MM |
6402 | ## ----------------------------------- ## |
6403 | ## Report this to bug-readline@gnu.org ## | |
6404 | ## ----------------------------------- ## | |
25ed0b71 KW |
6405 | _ASBOX |
6406 | ) | | |
6407 | sed "s/^/$as_me: WARNING: /" >&2 | |
6408 | ;; | |
6409 | esac | |
6410 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6411 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6412 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6414 | else | |
430b7832 | 6415 | eval "$as_ac_Header=\$ac_header_preproc" |
9255ee31 | 6416 | fi |
25ed0b71 | 6417 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9255ee31 | 6418 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
25ed0b71 KW |
6419 | |
6420 | fi | |
9255ee31 | 6421 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
25ed0b71 | 6422 | cat >>confdefs.h <<_ACEOF |
9255ee31 | 6423 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
25ed0b71 | 6424 | _ACEOF |
9255ee31 EZ |
6425 | |
6426 | fi | |
25ed0b71 | 6427 | |
9255ee31 EZ |
6428 | done |
6429 | ||
25ed0b71 | 6430 | |
832a9484 JB |
6431 | echo "$as_me:$LINENO: checking for mbrtowc" >&5 |
6432 | echo $ECHO_N "checking for mbrtowc... $ECHO_C" >&6 | |
6433 | if test "${ac_cv_func_mbrtowc+set}" = set; then | |
6434 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6435 | else | |
6436 | cat >conftest.$ac_ext <<_ACEOF | |
832a9484 JB |
6437 | /* confdefs.h. */ |
6438 | _ACEOF | |
6439 | cat confdefs.h >>conftest.$ac_ext | |
6440 | cat >>conftest.$ac_ext <<_ACEOF | |
6441 | /* end confdefs.h. */ | |
430b7832 MM |
6442 | /* Define mbrtowc to an innocuous variant, in case <limits.h> declares mbrtowc. |
6443 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6444 | #define mbrtowc innocuous_mbrtowc | |
6445 | ||
832a9484 JB |
6446 | /* System header to define __stub macros and hopefully few prototypes, |
6447 | which can conflict with char mbrtowc (); below. | |
6448 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6449 | <limits.h> exists even on freestanding compilers. */ | |
430b7832 | 6450 | |
832a9484 JB |
6451 | #ifdef __STDC__ |
6452 | # include <limits.h> | |
6453 | #else | |
6454 | # include <assert.h> | |
6455 | #endif | |
430b7832 MM |
6456 | |
6457 | #undef mbrtowc | |
6458 | ||
832a9484 JB |
6459 | /* Override any gcc2 internal prototype to avoid an error. */ |
6460 | #ifdef __cplusplus | |
6461 | extern "C" | |
6462 | { | |
6463 | #endif | |
6464 | /* We use char because int might match the return type of a gcc2 | |
6465 | builtin and then its argument prototype would still apply. */ | |
6466 | char mbrtowc (); | |
6467 | /* The GNU C library defines this for functions which it implements | |
6468 | to always fail with ENOSYS. Some functions are actually named | |
6469 | something starting with __ and the normal name is an alias. */ | |
6470 | #if defined (__stub_mbrtowc) || defined (__stub___mbrtowc) | |
6471 | choke me | |
6472 | #else | |
6473 | char (*f) () = mbrtowc; | |
6474 | #endif | |
6475 | #ifdef __cplusplus | |
6476 | } | |
6477 | #endif | |
6478 | ||
6479 | int | |
6480 | main () | |
6481 | { | |
6482 | return f != mbrtowc; | |
6483 | ; | |
6484 | return 0; | |
6485 | } | |
6486 | _ACEOF | |
6487 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
430b7832 | 6489 | (eval $ac_link) 2>conftest.er1 |
832a9484 | 6490 | ac_status=$? |
430b7832 MM |
6491 | grep -v '^ *+' conftest.er1 >conftest.err |
6492 | rm -f conftest.er1 | |
6493 | cat conftest.err >&5 | |
832a9484 JB |
6494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6495 | (exit $ac_status); } && | |
430b7832 MM |
6496 | { ac_try='test -z "$ac_c_werror_flag" |
6497 | || test ! -s conftest.err' | |
6498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6499 | (eval $ac_try) 2>&5 | |
6500 | ac_status=$? | |
6501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6502 | (exit $ac_status); }; } && | |
6503 | { ac_try='test -s conftest$ac_exeext' | |
832a9484 JB |
6504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6505 | (eval $ac_try) 2>&5 | |
6506 | ac_status=$? | |
6507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6508 | (exit $ac_status); }; }; then | |
6509 | ac_cv_func_mbrtowc=yes | |
6510 | else | |
6511 | echo "$as_me: failed program was:" >&5 | |
6512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6513 | ||
6514 | ac_cv_func_mbrtowc=no | |
6515 | fi | |
430b7832 MM |
6516 | rm -f conftest.err conftest.$ac_objext \ |
6517 | conftest$ac_exeext conftest.$ac_ext | |
832a9484 JB |
6518 | fi |
6519 | echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5 | |
6520 | echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6 | |
6521 | if test $ac_cv_func_mbrtowc = yes; then | |
6522 | cat >>confdefs.h <<\_ACEOF | |
6523 | #define HAVE_MBRTOWC 1 | |
6524 | _ACEOF | |
6525 | ||
6526 | fi | |
6527 | ||
25ed0b71 | 6528 | echo "$as_me:$LINENO: checking for mbsrtowcs" >&5 |
9255ee31 EZ |
6529 | echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6 |
6530 | if test "${ac_cv_func_mbsrtowcs+set}" = set; then | |
6531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6532 | else | |
6533 | cat >conftest.$ac_ext <<_ACEOF | |
25ed0b71 KW |
6534 | /* confdefs.h. */ |
6535 | _ACEOF | |
6536 | cat confdefs.h >>conftest.$ac_ext | |
6537 | cat >>conftest.$ac_ext <<_ACEOF | |
6538 | /* end confdefs.h. */ | |
430b7832 MM |
6539 | /* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs. |
6540 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6541 | #define mbsrtowcs innocuous_mbsrtowcs | |
6542 | ||
9255ee31 | 6543 | /* System header to define __stub macros and hopefully few prototypes, |
25ed0b71 KW |
6544 | which can conflict with char mbsrtowcs (); below. |
6545 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6546 | <limits.h> exists even on freestanding compilers. */ | |
430b7832 | 6547 | |
25ed0b71 KW |
6548 | #ifdef __STDC__ |
6549 | # include <limits.h> | |
6550 | #else | |
6551 | # include <assert.h> | |
6552 | #endif | |
430b7832 MM |
6553 | |
6554 | #undef mbsrtowcs | |
6555 | ||
d60d9f65 | 6556 | /* Override any gcc2 internal prototype to avoid an error. */ |
9255ee31 EZ |
6557 | #ifdef __cplusplus |
6558 | extern "C" | |
25ed0b71 | 6559 | { |
9255ee31 | 6560 | #endif |
d60d9f65 | 6561 | /* We use char because int might match the return type of a gcc2 |
9255ee31 EZ |
6562 | builtin and then its argument prototype would still apply. */ |
6563 | char mbsrtowcs (); | |
9255ee31 EZ |
6564 | /* The GNU C library defines this for functions which it implements |
6565 | to always fail with ENOSYS. Some functions are actually named | |
6566 | something starting with __ and the normal name is an alias. */ | |
6567 | #if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs) | |
6568 | choke me | |
6569 | #else | |
25ed0b71 KW |
6570 | char (*f) () = mbsrtowcs; |
6571 | #endif | |
6572 | #ifdef __cplusplus | |
6573 | } | |
9255ee31 | 6574 | #endif |
d60d9f65 | 6575 | |
25ed0b71 KW |
6576 | int |
6577 | main () | |
6578 | { | |
6579 | return f != mbsrtowcs; | |
9255ee31 EZ |
6580 | ; |
6581 | return 0; | |
6582 | } | |
6583 | _ACEOF | |
6584 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 6585 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 6586 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 6587 | ac_status=$? |
430b7832 MM |
6588 | grep -v '^ *+' conftest.er1 >conftest.err |
6589 | rm -f conftest.er1 | |
6590 | cat conftest.err >&5 | |
25ed0b71 | 6591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 6592 | (exit $ac_status); } && |
430b7832 MM |
6593 | { ac_try='test -z "$ac_c_werror_flag" |
6594 | || test ! -s conftest.err' | |
6595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6596 | (eval $ac_try) 2>&5 | |
6597 | ac_status=$? | |
6598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6599 | (exit $ac_status); }; } && | |
6600 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 6601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
6602 | (eval $ac_try) 2>&5 |
6603 | ac_status=$? | |
25ed0b71 | 6604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
6605 | (exit $ac_status); }; }; then |
6606 | ac_cv_func_mbsrtowcs=yes | |
d60d9f65 | 6607 | else |
9255ee31 | 6608 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
6609 | sed 's/^/| /' conftest.$ac_ext >&5 |
6610 | ||
9255ee31 | 6611 | ac_cv_func_mbsrtowcs=no |
d60d9f65 | 6612 | fi |
430b7832 MM |
6613 | rm -f conftest.err conftest.$ac_objext \ |
6614 | conftest$ac_exeext conftest.$ac_ext | |
9255ee31 | 6615 | fi |
25ed0b71 | 6616 | echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5 |
9255ee31 EZ |
6617 | echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6 |
6618 | if test $ac_cv_func_mbsrtowcs = yes; then | |
25ed0b71 | 6619 | cat >>confdefs.h <<\_ACEOF |
9255ee31 | 6620 | #define HAVE_MBSRTOWCS 1 |
25ed0b71 | 6621 | _ACEOF |
d60d9f65 SS |
6622 | |
6623 | fi | |
9255ee31 | 6624 | |
25ed0b71 | 6625 | echo "$as_me:$LINENO: checking for wcwidth" >&5 |
9255ee31 EZ |
6626 | echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6 |
6627 | if test "${ac_cv_func_wcwidth+set}" = set; then | |
6628 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 6629 | else |
9255ee31 | 6630 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
6631 | /* confdefs.h. */ |
6632 | _ACEOF | |
6633 | cat confdefs.h >>conftest.$ac_ext | |
6634 | cat >>conftest.$ac_ext <<_ACEOF | |
6635 | /* end confdefs.h. */ | |
430b7832 MM |
6636 | /* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth. |
6637 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6638 | #define wcwidth innocuous_wcwidth | |
6639 | ||
9255ee31 | 6640 | /* System header to define __stub macros and hopefully few prototypes, |
25ed0b71 KW |
6641 | which can conflict with char wcwidth (); below. |
6642 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6643 | <limits.h> exists even on freestanding compilers. */ | |
430b7832 | 6644 | |
25ed0b71 KW |
6645 | #ifdef __STDC__ |
6646 | # include <limits.h> | |
6647 | #else | |
6648 | # include <assert.h> | |
6649 | #endif | |
430b7832 MM |
6650 | |
6651 | #undef wcwidth | |
6652 | ||
d60d9f65 | 6653 | /* Override any gcc2 internal prototype to avoid an error. */ |
9255ee31 EZ |
6654 | #ifdef __cplusplus |
6655 | extern "C" | |
25ed0b71 | 6656 | { |
9255ee31 | 6657 | #endif |
d60d9f65 | 6658 | /* We use char because int might match the return type of a gcc2 |
9255ee31 EZ |
6659 | builtin and then its argument prototype would still apply. */ |
6660 | char wcwidth (); | |
9255ee31 EZ |
6661 | /* The GNU C library defines this for functions which it implements |
6662 | to always fail with ENOSYS. Some functions are actually named | |
6663 | something starting with __ and the normal name is an alias. */ | |
6664 | #if defined (__stub_wcwidth) || defined (__stub___wcwidth) | |
6665 | choke me | |
6666 | #else | |
25ed0b71 KW |
6667 | char (*f) () = wcwidth; |
6668 | #endif | |
6669 | #ifdef __cplusplus | |
6670 | } | |
9255ee31 EZ |
6671 | #endif |
6672 | ||
25ed0b71 KW |
6673 | int |
6674 | main () | |
6675 | { | |
6676 | return f != wcwidth; | |
9255ee31 EZ |
6677 | ; |
6678 | return 0; | |
6679 | } | |
6680 | _ACEOF | |
6681 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 6682 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 6683 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 6684 | ac_status=$? |
430b7832 MM |
6685 | grep -v '^ *+' conftest.er1 >conftest.err |
6686 | rm -f conftest.er1 | |
6687 | cat conftest.err >&5 | |
25ed0b71 | 6688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 6689 | (exit $ac_status); } && |
430b7832 MM |
6690 | { ac_try='test -z "$ac_c_werror_flag" |
6691 | || test ! -s conftest.err' | |
6692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6693 | (eval $ac_try) 2>&5 | |
6694 | ac_status=$? | |
6695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6696 | (exit $ac_status); }; } && | |
6697 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 6698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
6699 | (eval $ac_try) 2>&5 |
6700 | ac_status=$? | |
25ed0b71 | 6701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
6702 | (exit $ac_status); }; }; then |
6703 | ac_cv_func_wcwidth=yes | |
d60d9f65 | 6704 | else |
9255ee31 | 6705 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
6706 | sed 's/^/| /' conftest.$ac_ext >&5 |
6707 | ||
9255ee31 | 6708 | ac_cv_func_wcwidth=no |
d60d9f65 | 6709 | fi |
430b7832 MM |
6710 | rm -f conftest.err conftest.$ac_objext \ |
6711 | conftest$ac_exeext conftest.$ac_ext | |
9255ee31 | 6712 | fi |
25ed0b71 | 6713 | echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5 |
9255ee31 EZ |
6714 | echo "${ECHO_T}$ac_cv_func_wcwidth" >&6 |
6715 | if test $ac_cv_func_wcwidth = yes; then | |
25ed0b71 | 6716 | cat >>confdefs.h <<\_ACEOF |
9255ee31 | 6717 | #define HAVE_WCWIDTH 1 |
25ed0b71 KW |
6718 | _ACEOF |
6719 | ||
05bc3370 | 6720 | fi |
25ed0b71 | 6721 | |
05bc3370 | 6722 | if test "$ac_cv_func_wcwidth" = no && test "$ac_cv_header_wchar_h" = yes; then |
25ed0b71 | 6723 | WCWIDTH_OBJ=wcwidth.o |
05bc3370 MK |
6724 | else |
6725 | WCWIDTH_OBJ= | |
d60d9f65 | 6726 | fi |
9255ee31 | 6727 | |
05bc3370 | 6728 | |
25ed0b71 | 6729 | echo "$as_me:$LINENO: checking for mbstate_t" >&5 |
9255ee31 EZ |
6730 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 |
6731 | if test "${bash_cv_have_mbstate_t+set}" = set; then | |
6732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 6733 | else |
9255ee31 | 6734 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
6735 | /* confdefs.h. */ |
6736 | _ACEOF | |
6737 | cat confdefs.h >>conftest.$ac_ext | |
6738 | cat >>conftest.$ac_ext <<_ACEOF | |
6739 | /* end confdefs.h. */ | |
9255ee31 EZ |
6740 | #include <wchar.h> |
6741 | int | |
6742 | main () | |
430b7832 MM |
6743 | { |
6744 | int | |
6745 | main () | |
9255ee31 EZ |
6746 | { |
6747 | mbstate_t ps; | |
6748 | return 0; | |
430b7832 MM |
6749 | } |
6750 | ; | |
6751 | return 0; | |
9255ee31 EZ |
6752 | } |
6753 | _ACEOF | |
430b7832 | 6754 | rm -f conftest.$ac_objext conftest$ac_exeext |
25ed0b71 | 6755 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 6756 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 6757 | ac_status=$? |
430b7832 MM |
6758 | grep -v '^ *+' conftest.er1 >conftest.err |
6759 | rm -f conftest.er1 | |
6760 | cat conftest.err >&5 | |
25ed0b71 | 6761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
430b7832 MM |
6762 | (exit $ac_status); } && |
6763 | { ac_try='test -z "$ac_c_werror_flag" | |
6764 | || test ! -s conftest.err' | |
6765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6766 | (eval $ac_try) 2>&5 | |
6767 | ac_status=$? | |
6768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6769 | (exit $ac_status); }; } && | |
6770 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 6771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
6772 | (eval $ac_try) 2>&5 |
6773 | ac_status=$? | |
25ed0b71 | 6774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
6775 | (exit $ac_status); }; }; then |
6776 | bash_cv_have_mbstate_t=yes | |
d60d9f65 | 6777 | else |
430b7832 | 6778 | echo "$as_me: failed program was:" >&5 |
25ed0b71 KW |
6779 | sed 's/^/| /' conftest.$ac_ext >&5 |
6780 | ||
9255ee31 | 6781 | bash_cv_have_mbstate_t=no |
d60d9f65 | 6782 | fi |
430b7832 MM |
6783 | rm -f conftest.err conftest.$ac_objext \ |
6784 | conftest$ac_exeext conftest.$ac_ext | |
d60d9f65 | 6785 | fi |
25ed0b71 | 6786 | echo "$as_me:$LINENO: result: $bash_cv_have_mbstate_t" >&5 |
9255ee31 EZ |
6787 | echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6 |
6788 | if test $bash_cv_have_mbstate_t = yes; then | |
25ed0b71 | 6789 | cat >>confdefs.h <<\_ACEOF |
9255ee31 | 6790 | #define HAVE_MBSTATE_T 1 |
25ed0b71 | 6791 | _ACEOF |
d60d9f65 SS |
6792 | |
6793 | fi | |
6794 | ||
25ed0b71 | 6795 | echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5 |
9255ee31 EZ |
6796 | echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6 |
6797 | if test "${bash_cv_langinfo_codeset+set}" = set; then | |
6798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d60d9f65 | 6799 | else |
9255ee31 | 6800 | cat >conftest.$ac_ext <<_ACEOF |
25ed0b71 KW |
6801 | /* confdefs.h. */ |
6802 | _ACEOF | |
6803 | cat confdefs.h >>conftest.$ac_ext | |
6804 | cat >>conftest.$ac_ext <<_ACEOF | |
6805 | /* end confdefs.h. */ | |
9255ee31 EZ |
6806 | #include <langinfo.h> |
6807 | int | |
6808 | main () | |
6809 | { | |
6810 | char* cs = nl_langinfo(CODESET); | |
6811 | ; | |
6812 | return 0; | |
6813 | } | |
6814 | _ACEOF | |
6815 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25ed0b71 | 6816 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
430b7832 | 6817 | (eval $ac_link) 2>conftest.er1 |
9255ee31 | 6818 | ac_status=$? |
430b7832 MM |
6819 | grep -v '^ *+' conftest.er1 >conftest.err |
6820 | rm -f conftest.er1 | |
6821 | cat conftest.err >&5 | |
25ed0b71 | 6822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 | 6823 | (exit $ac_status); } && |
430b7832 MM |
6824 | { ac_try='test -z "$ac_c_werror_flag" |
6825 | || test ! -s conftest.err' | |
6826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6827 | (eval $ac_try) 2>&5 | |
6828 | ac_status=$? | |
6829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6830 | (exit $ac_status); }; } && | |
6831 | { ac_try='test -s conftest$ac_exeext' | |
25ed0b71 | 6832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9255ee31 EZ |
6833 | (eval $ac_try) 2>&5 |
6834 | ac_status=$? | |
25ed0b71 | 6835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9255ee31 EZ |
6836 | (exit $ac_status); }; }; then |
6837 | bash_cv_langinfo_codeset=yes | |
6838 | else | |
6839 | echo "$as_me: failed program was:" >&5 | |
25ed0b71 KW |
6840 | sed 's/^/| /' conftest.$ac_ext >&5 |
6841 | ||
9255ee31 EZ |
6842 | bash_cv_langinfo_codeset=no |
6843 | fi | |
430b7832 MM |
6844 | rm -f conftest.err conftest.$ac_objext \ |
6845 | conftest$ac_exeext conftest.$ac_ext | |
d60d9f65 | 6846 | fi |
25ed0b71 | 6847 | echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5 |
9255ee31 EZ |
6848 | echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6 |
6849 | if test $bash_cv_langinfo_codeset = yes; then | |
25ed0b71 | 6850 | cat >>confdefs.h <<\_ACEOF |
9255ee31 | 6851 | #define HAVE_LANGINFO_CODESET 1 |
25ed0b71 | 6852 | _ACEOF |
d60d9f65 | 6853 | |
d60d9f65 SS |
6854 | fi |
6855 | ||
25ed0b71 KW |
6856 | |
6857 | ||
d60d9f65 SS |
6858 | case "$host_cpu" in |
6859 | *cray*) LOCAL_CFLAGS=-DCRAY ;; | |
9255ee31 | 6860 | *s390*) LOCAL_CFLAGS=-fsigned-char ;; |
d60d9f65 SS |
6861 | esac |
6862 | ||
6863 | case "$host_os" in | |
6864 | isc*) LOCAL_CFLAGS=-Disc386 ;; | |
6865 | esac | |
6866 | ||
c862e87b JM |
6867 | # shared library configuration section |
6868 | # | |
6869 | # Shared object configuration section. These values are generated by | |
6870 | # ${srcdir}/support/shobj-conf | |
6871 | # | |
6872 | if test -f ${srcdir}/support/shobj-conf; then | |
25ed0b71 | 6873 | echo "$as_me:$LINENO: checking configuration for building shared libraries" >&5 |
9255ee31 | 6874 | echo $ECHO_N "checking configuration for building shared libraries... $ECHO_C" >&6 |
1b17e766 | 6875 | eval `${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}` |
9255ee31 | 6876 | |
25ed0b71 KW |
6877 | |
6878 | ||
6879 | ||
6880 | ||
6881 | ||
6882 | ||
6883 | ||
6884 | ||
6885 | ||
6886 | ||
6887 | ||
6888 | echo "$as_me:$LINENO: result: $SHLIB_STATUS" >&5 | |
9255ee31 EZ |
6889 | echo "${ECHO_T}$SHLIB_STATUS" >&6 |
6890 | ||
6891 | # SHLIB_STATUS is either `supported' or `unsupported'. If it's | |
6892 | # `unsupported', turn off any default shared library building | |
6893 | if test "$SHLIB_STATUS" = 'unsupported'; then | |
6894 | opt_shared_libs=no | |
6895 | fi | |
1b17e766 EZ |
6896 | |
6897 | # shared library versioning | |
6898 | # quoted for m4 so I can use character classes | |
6899 | SHLIB_MAJOR=`expr "$LIBVERSION" : '\([0-9]\)\..*'` | |
6900 | SHLIB_MINOR=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'` | |
9255ee31 | 6901 | |
25ed0b71 | 6902 | |
9255ee31 EZ |
6903 | fi |
6904 | ||
6905 | if test "$opt_static_libs" = "yes"; then | |
6906 | STATIC_TARGET=static | |
6907 | STATIC_INSTALL_TARGET=install-static | |
6908 | fi | |
6909 | if test "$opt_shared_libs" = "yes"; then | |
6910 | SHARED_TARGET=shared | |
6911 | SHARED_INSTALL_TARGET=install-shared | |
c862e87b JM |
6912 | fi |
6913 | ||
25ed0b71 KW |
6914 | |
6915 | ||
6916 | ||
6917 | ||
6918 | ||
1b17e766 EZ |
6919 | case "$host_os" in |
6920 | msdosdjgpp*) BUILD_DIR=`pwd.exe` ;; # to prevent //d/path/file | |
6921 | *) BUILD_DIR=`pwd` ;; | |
6922 | esac | |
6923 | ||
25ed0b71 KW |
6924 | |
6925 | ||
6926 | ||
6927 | ||
6928 | ||
6929 | ||
6930 | ||
6931 | ||
6932 | ||
6933 | ||
6934 | ||
6935 | ||
6936 | ||
6937 | ||
6938 | ||
6939 | ||
6940 | ||
6941 | ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile" | |
6942 | ac_config_commands="$ac_config_commands default" | |
9255ee31 | 6943 | cat >confcache <<\_ACEOF |
d60d9f65 SS |
6944 | # This file is a shell script that caches the results of configure |
6945 | # tests run on this system so they can be shared between configure | |
9255ee31 EZ |
6946 | # scripts and configure runs, see configure's option --config-cache. |
6947 | # It is not useful on other systems. If it contains results you don't | |
6948 | # want to keep, you may remove or edit it. | |
d60d9f65 | 6949 | # |
9255ee31 EZ |
6950 | # config.status only pays attention to the cache file if you give it |
6951 | # the --recheck option to rerun configure. | |
d60d9f65 | 6952 | # |
25ed0b71 | 6953 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
9255ee31 EZ |
6954 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
6955 | # following values. | |
6956 | ||
6957 | _ACEOF | |
6958 | ||
d60d9f65 SS |
6959 | # The following way of writing the cache mishandles newlines in values, |
6960 | # but we know of no workaround that is simple, portable, and efficient. | |
6961 | # So, don't put newlines in cache variables' values. | |
6962 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6963 | # and sets the high bit in the cache file unless we assign to the vars. | |
9255ee31 EZ |
6964 | { |
6965 | (set) 2>&1 | | |
6966 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6967 | *ac_space=\ *) | |
6968 | # `set' does not quote correctly, so add quotes (double-quote | |
6969 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
6970 | sed -n \ | |
430b7832 MM |
6971 | "s/'/'\\\\''/g; |
6972 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
9255ee31 EZ |
6973 | ;; |
6974 | *) | |
6975 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6976 | sed -n \ | |
430b7832 | 6977 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
9255ee31 EZ |
6978 | ;; |
6979 | esac; | |
6980 | } | | |
6981 | sed ' | |
6982 | t clear | |
6983 | : clear | |
6984 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
6985 | t end | |
6986 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
6987 | : end' >>confcache | |
25ed0b71 | 6988 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
d60d9f65 | 6989 | if test -w $cache_file; then |
9255ee31 EZ |
6990 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
6991 | cat confcache >$cache_file | |
d60d9f65 SS |
6992 | else |
6993 | echo "not updating unwritable cache $cache_file" | |
6994 | fi | |
6995 | fi | |
6996 | rm -f confcache | |
6997 | ||
d60d9f65 SS |
6998 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
6999 | # Let make expand exec_prefix. | |
7000 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7001 | ||
9255ee31 EZ |
7002 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
7003 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
7004 | # trailing colons and then remove the whole line if VPATH becomes empty | |
7005 | # (actually we leave an empty line to preserve line numbers). | |
d60d9f65 | 7006 | if test "x$srcdir" = x.; then |
430b7832 | 7007 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
9255ee31 EZ |
7008 | s/:*\$(srcdir):*/:/; |
7009 | s/:*\${srcdir}:*/:/; | |
7010 | s/:*@srcdir@:*/:/; | |
430b7832 | 7011 | s/^\([^=]*=[ ]*\):*/\1/; |
9255ee31 | 7012 | s/:*$//; |
430b7832 | 7013 | s/^[^=]*=[ ]*$//; |
9255ee31 | 7014 | }' |
d60d9f65 SS |
7015 | fi |
7016 | ||
d60d9f65 SS |
7017 | DEFS=-DHAVE_CONFIG_H |
7018 | ||
25ed0b71 KW |
7019 | ac_libobjs= |
7020 | ac_ltlibobjs= | |
7021 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
7022 | # 1. Remove the extension, and $U if already installed. | |
7023 | ac_i=`echo "$ac_i" | | |
430b7832 | 7024 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
25ed0b71 KW |
7025 | # 2. Add them. |
7026 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
7027 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
7028 | done | |
7029 | LIBOBJS=$ac_libobjs | |
7030 | ||
7031 | LTLIBOBJS=$ac_ltlibobjs | |
7032 | ||
7033 | ||
7034 | ||
d60d9f65 | 7035 | : ${CONFIG_STATUS=./config.status} |
9255ee31 EZ |
7036 | ac_clean_files_save=$ac_clean_files |
7037 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
25ed0b71 | 7038 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
9255ee31 EZ |
7039 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
7040 | cat >$CONFIG_STATUS <<_ACEOF | |
7041 | #! $SHELL | |
25ed0b71 | 7042 | # Generated by $as_me. |
d60d9f65 | 7043 | # Run this file to recreate the current configuration. |
d60d9f65 | 7044 | # Compiler output produced by configure, useful for debugging |
9255ee31 | 7045 | # configure, is in config.log if it exists. |
d60d9f65 | 7046 | |
9255ee31 | 7047 | debug=false |
25ed0b71 KW |
7048 | ac_cs_recheck=false |
7049 | ac_cs_silent=false | |
9255ee31 | 7050 | SHELL=\${CONFIG_SHELL-$SHELL} |
9255ee31 EZ |
7051 | _ACEOF |
7052 | ||
7053 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25ed0b71 KW |
7054 | ## --------------------- ## |
7055 | ## M4sh Initialization. ## | |
7056 | ## --------------------- ## | |
7057 | ||
9255ee31 EZ |
7058 | # Be Bourne compatible |
7059 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
7060 | emulate sh | |
7061 | NULLCMD=: | |
25ed0b71 KW |
7062 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
7063 | # is contrary to our usage. Disable this feature. | |
7064 | alias -g '${1+"$@"}'='"$@"' | |
9255ee31 EZ |
7065 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
7066 | set -o posix | |
7067 | fi | |
430b7832 | 7068 | DUALCASE=1; export DUALCASE # for MKS sh |
9255ee31 | 7069 | |
25ed0b71 | 7070 | # Support unset when possible. |
430b7832 | 7071 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
25ed0b71 KW |
7072 | as_unset=unset |
7073 | else | |
7074 | as_unset=false | |
7075 | fi | |
7076 | ||
7077 | ||
7078 | # Work around bugs in pre-3.0 UWIN ksh. | |
7079 | $as_unset ENV MAIL MAILPATH | |
7080 | PS1='$ ' | |
7081 | PS2='> ' | |
7082 | PS4='+ ' | |
7083 | ||
7084 | # NLS nuisances. | |
7085 | for as_var in \ | |
7086 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
7087 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
7088 | LC_TELEPHONE LC_TIME | |
7089 | do | |
430b7832 | 7090 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
25ed0b71 KW |
7091 | eval $as_var=C; export $as_var |
7092 | else | |
7093 | $as_unset $as_var | |
7094 | fi | |
7095 | done | |
7096 | ||
7097 | # Required to use basename. | |
7098 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
7099 | as_expr=expr | |
7100 | else | |
7101 | as_expr=false | |
7102 | fi | |
7103 | ||
7104 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
7105 | as_basename=basename | |
7106 | else | |
7107 | as_basename=false | |
7108 | fi | |
7109 | ||
7110 | ||
9255ee31 | 7111 | # Name of the executable. |
25ed0b71 KW |
7112 | as_me=`$as_basename "$0" || |
7113 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
7114 | X"$0" : 'X\(//\)$' \| \ | |
7115 | X"$0" : 'X\(/\)$' \| \ | |
7116 | . : '\(.\)' 2>/dev/null || | |
7117 | echo X/"$0" | | |
7118 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
7119 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
7120 | /^X\/\(\/\).*/{ s//\1/; q; } | |
7121 | s/.*/./; q'` | |
7122 | ||
7123 | ||
7124 | # PATH needs CR, and LINENO needs CR and PATH. | |
7125 | # Avoid depending upon Character Ranges. | |
7126 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7127 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7128 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7129 | as_cr_digits='0123456789' | |
7130 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7131 | ||
7132 | # The user is always right. | |
7133 | if test "${PATH_SEPARATOR+set}" != set; then | |
7134 | echo "#! /bin/sh" >conf$$.sh | |
7135 | echo "exit 0" >>conf$$.sh | |
7136 | chmod +x conf$$.sh | |
7137 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7138 | PATH_SEPARATOR=';' | |
7139 | else | |
7140 | PATH_SEPARATOR=: | |
7141 | fi | |
7142 | rm -f conf$$.sh | |
7143 | fi | |
7144 | ||
7145 | ||
7146 | as_lineno_1=$LINENO | |
7147 | as_lineno_2=$LINENO | |
7148 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
7149 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
7150 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
7151 | # Find who we are. Look in the path if we contain no path at all | |
7152 | # relative or not. | |
7153 | case $0 in | |
7154 | *[\\/]* ) as_myself=$0 ;; | |
7155 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7156 | for as_dir in $PATH | |
7157 | do | |
7158 | IFS=$as_save_IFS | |
7159 | test -z "$as_dir" && as_dir=. | |
7160 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7161 | done | |
7162 | ||
7163 | ;; | |
7164 | esac | |
7165 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7166 | # in which case we are not to be found in the path. | |
7167 | if test "x$as_myself" = x; then | |
7168 | as_myself=$0 | |
7169 | fi | |
7170 | if test ! -f "$as_myself"; then | |
7171 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
7172 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
7173 | { (exit 1); exit 1; }; } | |
7174 | fi | |
7175 | case $CONFIG_SHELL in | |
7176 | '') | |
7177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7178 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
7179 | do | |
7180 | IFS=$as_save_IFS | |
7181 | test -z "$as_dir" && as_dir=. | |
7182 | for as_base in sh bash ksh sh5; do | |
7183 | case $as_dir in | |
7184 | /*) | |
7185 | if ("$as_dir/$as_base" -c ' | |
7186 | as_lineno_1=$LINENO | |
7187 | as_lineno_2=$LINENO | |
7188 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
7189 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
7190 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
7191 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
7192 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
7193 | CONFIG_SHELL=$as_dir/$as_base | |
7194 | export CONFIG_SHELL | |
7195 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
7196 | fi;; | |
7197 | esac | |
7198 | done | |
7199 | done | |
7200 | ;; | |
7201 | esac | |
7202 | ||
7203 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
7204 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7205 | # line-number line before each line; the second 'sed' does the real | |
7206 | # work. The second script uses 'N' to pair each line-number line | |
7207 | # with the numbered line, and appends trailing '-' during | |
7208 | # substitution so that $LINENO is not a special case at line end. | |
7209 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
7210 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
7211 | sed '=' <$as_myself | | |
7212 | sed ' | |
7213 | N | |
7214 | s,$,-, | |
7215 | : loop | |
7216 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
7217 | t loop | |
7218 | s,-$,, | |
7219 | s,^['$as_cr_digits']*\n,, | |
7220 | ' >$as_me.lineno && | |
7221 | chmod +x $as_me.lineno || | |
7222 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
7223 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
7224 | { (exit 1); exit 1; }; } | |
7225 | ||
7226 | # Don't try to exec as it changes $[0], causing all sort of problems | |
7227 | # (the dirname of $[0] is not the place where we might find the | |
7228 | # original and so on. Autoconf is especially sensible to this). | |
7229 | . ./$as_me.lineno | |
7230 | # Exit status is that of the last command. | |
7231 | exit | |
7232 | } | |
7233 | ||
7234 | ||
7235 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
7236 | *c*,-n*) ECHO_N= ECHO_C=' | |
7237 | ' ECHO_T=' ' ;; | |
7238 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
7239 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
7240 | esac | |
9255ee31 EZ |
7241 | |
7242 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
7243 | as_expr=expr | |
7244 | else | |
7245 | as_expr=false | |
7246 | fi | |
7247 | ||
7248 | rm -f conf$$ conf$$.exe conf$$.file | |
7249 | echo >conf$$.file | |
7250 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7251 | # We could just check for DJGPP; but this test a) works b) is more generic | |
7252 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
7253 | if test -f conf$$.exe; then | |
7254 | # Don't use ln at all; we don't have any links | |
7255 | as_ln_s='cp -p' | |
7256 | else | |
7257 | as_ln_s='ln -s' | |
7258 | fi | |
7259 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
7260 | as_ln_s=ln | |
7261 | else | |
7262 | as_ln_s='cp -p' | |
7263 | fi | |
7264 | rm -f conf$$ conf$$.exe conf$$.file | |
7265 | ||
25ed0b71 KW |
7266 | if mkdir -p . 2>/dev/null; then |
7267 | as_mkdir_p=: | |
9255ee31 | 7268 | else |
430b7832 | 7269 | test -d ./-p && rmdir ./-p |
25ed0b71 | 7270 | as_mkdir_p=false |
9255ee31 EZ |
7271 | fi |
7272 | ||
25ed0b71 KW |
7273 | as_executable_p="test -f" |
7274 | ||
7275 | # Sed expression to map a string onto a valid CPP name. | |
430b7832 | 7276 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
25ed0b71 KW |
7277 | |
7278 | # Sed expression to map a string onto a valid variable name. | |
430b7832 | 7279 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
25ed0b71 | 7280 | |
9255ee31 EZ |
7281 | |
7282 | # IFS | |
7283 | # We need space, tab and new line, in precisely that order. | |
7284 | as_nl=' | |
7285 | ' | |
7286 | IFS=" $as_nl" | |
7287 | ||
7288 | # CDPATH. | |
25ed0b71 | 7289 | $as_unset CDPATH |
9255ee31 EZ |
7290 | |
7291 | exec 6>&1 | |
7292 | ||
25ed0b71 KW |
7293 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
7294 | # report actual input values of CONFIG_FILES etc. instead of their | |
7295 | # values after options handling. Logging --version etc. is OK. | |
7296 | exec 5>>config.log | |
7297 | { | |
7298 | echo | |
7299 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7300 | ## Running $as_me. ## | |
7301 | _ASBOX | |
7302 | } >&5 | |
7303 | cat >&5 <<_CSEOF | |
7304 | ||
7305 | This file was extended by readline $as_me 4.3, which was | |
430b7832 | 7306 | generated by GNU Autoconf 2.59. Invocation command line was |
25ed0b71 KW |
7307 | |
7308 | CONFIG_FILES = $CONFIG_FILES | |
7309 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7310 | CONFIG_LINKS = $CONFIG_LINKS | |
7311 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7312 | $ $0 $@ | |
7313 | ||
7314 | _CSEOF | |
7315 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
7316 | echo >&5 | |
9255ee31 EZ |
7317 | _ACEOF |
7318 | ||
7319 | # Files that config.status was made for. | |
7320 | if test -n "$ac_config_files"; then | |
7321 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
7322 | fi | |
7323 | ||
7324 | if test -n "$ac_config_headers"; then | |
7325 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
7326 | fi | |
7327 | ||
7328 | if test -n "$ac_config_links"; then | |
7329 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
7330 | fi | |
7331 | ||
7332 | if test -n "$ac_config_commands"; then | |
7333 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
7334 | fi | |
7335 | ||
25ed0b71 | 7336 | cat >>$CONFIG_STATUS <<\_ACEOF |
9255ee31 EZ |
7337 | |
7338 | ac_cs_usage="\ | |
7339 | \`$as_me' instantiates files from templates according to the | |
7340 | current configuration. | |
7341 | ||
7342 | Usage: $0 [OPTIONS] [FILE]... | |
7343 | ||
7344 | -h, --help print this help, then exit | |
7345 | -V, --version print version number, then exit | |
25ed0b71 | 7346 | -q, --quiet do not print progress messages |
9255ee31 EZ |
7347 | -d, --debug don't remove temporary files |
7348 | --recheck update $as_me by reconfiguring in the same conditions | |
7349 | --file=FILE[:TEMPLATE] | |
430b7832 | 7350 | instantiate the configuration file FILE |
9255ee31 | 7351 | --header=FILE[:TEMPLATE] |
430b7832 | 7352 | instantiate the configuration header FILE |
9255ee31 EZ |
7353 | |
7354 | Configuration files: | |
7355 | $config_files | |
7356 | ||
7357 | Configuration headers: | |
7358 | $config_headers | |
7359 | ||
7360 | Configuration commands: | |
7361 | $config_commands | |
7362 | ||
7363 | Report bugs to <bug-autoconf@gnu.org>." | |
25ed0b71 | 7364 | _ACEOF |
9255ee31 | 7365 | |
25ed0b71 | 7366 | cat >>$CONFIG_STATUS <<_ACEOF |
9255ee31 EZ |
7367 | ac_cs_version="\\ |
7368 | readline config.status 4.3 | |
430b7832 | 7369 | configured by $0, generated by GNU Autoconf 2.59, |
9255ee31 EZ |
7370 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
7371 | ||
430b7832 | 7372 | Copyright (C) 2003 Free Software Foundation, Inc. |
9255ee31 EZ |
7373 | This config.status script is free software; the Free Software Foundation |
7374 | gives unlimited permission to copy, distribute and modify it." | |
7375 | srcdir=$srcdir | |
7376 | INSTALL="$INSTALL" | |
25ed0b71 | 7377 | _ACEOF |
9255ee31 | 7378 | |
25ed0b71 | 7379 | cat >>$CONFIG_STATUS <<\_ACEOF |
9255ee31 EZ |
7380 | # If no file are specified by the user, then we need to provide default |
7381 | # value. By we need to know if files were specified by the user. | |
7382 | ac_need_defaults=: | |
7383 | while test $# != 0 | |
d60d9f65 | 7384 | do |
9255ee31 EZ |
7385 | case $1 in |
7386 | --*=*) | |
7387 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
7388 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
25ed0b71 KW |
7389 | ac_shift=: |
7390 | ;; | |
7391 | -*) | |
7392 | ac_option=$1 | |
7393 | ac_optarg=$2 | |
7394 | ac_shift=shift | |
9255ee31 | 7395 | ;; |
9255ee31 EZ |
7396 | *) # This is not an option, so the user has probably given explicit |
7397 | # arguments. | |
25ed0b71 | 7398 | ac_option=$1 |
9255ee31 EZ |
7399 | ac_need_defaults=false;; |
7400 | esac | |
7401 | ||
25ed0b71 | 7402 | case $ac_option in |
9255ee31 | 7403 | # Handling of the options. |
25ed0b71 KW |
7404 | _ACEOF |
7405 | cat >>$CONFIG_STATUS <<\_ACEOF | |
d60d9f65 | 7406 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
25ed0b71 | 7407 | ac_cs_recheck=: ;; |
9255ee31 EZ |
7408 | --version | --vers* | -V ) |
7409 | echo "$ac_cs_version"; exit 0 ;; | |
7410 | --he | --h) | |
7411 | # Conflict between --help and --header | |
25ed0b71 | 7412 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
9255ee31 EZ |
7413 | Try \`$0 --help' for more information." >&5 |
7414 | echo "$as_me: error: ambiguous option: $1 | |
7415 | Try \`$0 --help' for more information." >&2;} | |
7416 | { (exit 1); exit 1; }; };; | |
7417 | --help | --hel | -h ) | |
7418 | echo "$ac_cs_usage"; exit 0 ;; | |
7419 | --debug | --d* | -d ) | |
7420 | debug=: ;; | |
7421 | --file | --fil | --fi | --f ) | |
25ed0b71 KW |
7422 | $ac_shift |
7423 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
9255ee31 EZ |
7424 | ac_need_defaults=false;; |
7425 | --header | --heade | --head | --hea ) | |
25ed0b71 KW |
7426 | $ac_shift |
7427 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
9255ee31 | 7428 | ac_need_defaults=false;; |
25ed0b71 KW |
7429 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
7430 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7431 | ac_cs_silent=: ;; | |
9255ee31 EZ |
7432 | |
7433 | # This is an error. | |
25ed0b71 | 7434 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
9255ee31 EZ |
7435 | Try \`$0 --help' for more information." >&5 |
7436 | echo "$as_me: error: unrecognized option: $1 | |
7437 | Try \`$0 --help' for more information." >&2;} | |
7438 | { (exit 1); exit 1; }; } ;; | |
7439 | ||
7440 | *) ac_config_targets="$ac_config_targets $1" ;; | |
7441 | ||
d60d9f65 | 7442 | esac |
9255ee31 | 7443 | shift |
d60d9f65 SS |
7444 | done |
7445 | ||
25ed0b71 | 7446 | ac_configure_extra_args= |
9255ee31 | 7447 | |
25ed0b71 KW |
7448 | if $ac_cs_silent; then |
7449 | exec 6>/dev/null | |
7450 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
7451 | fi | |
9255ee31 | 7452 | |
25ed0b71 KW |
7453 | _ACEOF |
7454 | cat >>$CONFIG_STATUS <<_ACEOF | |
7455 | if \$ac_cs_recheck; then | |
7456 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
7457 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
7458 | fi | |
d60d9f65 | 7459 | |
9255ee31 | 7460 | _ACEOF |
d60d9f65 | 7461 | |
25ed0b71 KW |
7462 | |
7463 | ||
7464 | ||
7465 | ||
7466 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9255ee31 EZ |
7467 | for ac_config_target in $ac_config_targets |
7468 | do | |
7469 | case "$ac_config_target" in | |
7470 | # Handling of arguments. | |
7471 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7472 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
7473 | "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; | |
7474 | "shlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES shlib/Makefile" ;; | |
7475 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
7476 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
25ed0b71 | 7477 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
9255ee31 EZ |
7478 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
7479 | { (exit 1); exit 1; }; };; | |
7480 | esac | |
7481 | done | |
7482 | ||
7483 | # If the user did not use the arguments to specify the items to instantiate, | |
7484 | # then the envvar interface is used. Set only those that are not. | |
7485 | # We use the long form for the default assignment because of an extremely | |
7486 | # bizarre bug on SunOS 4.1.3. | |
7487 | if $ac_need_defaults; then | |
7488 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7489 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
7490 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
7491 | fi | |
7492 | ||
25ed0b71 KW |
7493 | # Have a temporary directory for convenience. Make it in the build tree |
7494 | # simply because there is no reason to put it here, and in addition, | |
7495 | # creating and moving files from /tmp can sometimes cause problems. | |
9255ee31 EZ |
7496 | # Create a temporary directory, and hook for its removal unless debugging. |
7497 | $debug || | |
7498 | { | |
7499 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
7500 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
7501 | } | |
7502 | ||
7503 | # Create a (secure) tmp directory for tmp files. | |
25ed0b71 | 7504 | |
9255ee31 | 7505 | { |
25ed0b71 | 7506 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
9255ee31 EZ |
7507 | test -n "$tmp" && test -d "$tmp" |
7508 | } || | |
7509 | { | |
25ed0b71 | 7510 | tmp=./confstat$$-$RANDOM |
9255ee31 EZ |
7511 | (umask 077 && mkdir $tmp) |
7512 | } || | |
7513 | { | |
25ed0b71 | 7514 | echo "$me: cannot create a temporary directory in ." >&2 |
9255ee31 EZ |
7515 | { (exit 1); exit 1; } |
7516 | } | |
d60d9f65 | 7517 | |
25ed0b71 | 7518 | _ACEOF |
d60d9f65 | 7519 | |
25ed0b71 | 7520 | cat >>$CONFIG_STATUS <<_ACEOF |
d60d9f65 | 7521 | |
9255ee31 EZ |
7522 | # |
7523 | # CONFIG_FILES section. | |
7524 | # | |
7525 | ||
7526 | # No need to generate the scripts if there are no CONFIG_FILES. | |
7527 | # This happens for instance when ./config.status config.h | |
7528 | if test -n "\$CONFIG_FILES"; then | |
7529 | # Protect against being on the right side of a sed subst in config.status. | |
7530 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
7531 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
7532 | s,@SHELL@,$SHELL,;t t | |
25ed0b71 KW |
7533 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
7534 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
7535 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
7536 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
7537 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
7538 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
9255ee31 EZ |
7539 | s,@exec_prefix@,$exec_prefix,;t t |
7540 | s,@prefix@,$prefix,;t t | |
7541 | s,@program_transform_name@,$program_transform_name,;t t | |
7542 | s,@bindir@,$bindir,;t t | |
7543 | s,@sbindir@,$sbindir,;t t | |
7544 | s,@libexecdir@,$libexecdir,;t t | |
7545 | s,@datadir@,$datadir,;t t | |
7546 | s,@sysconfdir@,$sysconfdir,;t t | |
7547 | s,@sharedstatedir@,$sharedstatedir,;t t | |
7548 | s,@localstatedir@,$localstatedir,;t t | |
7549 | s,@libdir@,$libdir,;t t | |
7550 | s,@includedir@,$includedir,;t t | |
7551 | s,@oldincludedir@,$oldincludedir,;t t | |
7552 | s,@infodir@,$infodir,;t t | |
7553 | s,@mandir@,$mandir,;t t | |
9255ee31 EZ |
7554 | s,@build_alias@,$build_alias,;t t |
7555 | s,@host_alias@,$host_alias,;t t | |
7556 | s,@target_alias@,$target_alias,;t t | |
25ed0b71 | 7557 | s,@DEFS@,$DEFS,;t t |
9255ee31 EZ |
7558 | s,@ECHO_C@,$ECHO_C,;t t |
7559 | s,@ECHO_N@,$ECHO_N,;t t | |
7560 | s,@ECHO_T@,$ECHO_T,;t t | |
9255ee31 EZ |
7561 | s,@LIBS@,$LIBS,;t t |
7562 | s,@build@,$build,;t t | |
7563 | s,@build_cpu@,$build_cpu,;t t | |
7564 | s,@build_vendor@,$build_vendor,;t t | |
7565 | s,@build_os@,$build_os,;t t | |
7566 | s,@host@,$host,;t t | |
7567 | s,@host_cpu@,$host_cpu,;t t | |
7568 | s,@host_vendor@,$host_vendor,;t t | |
7569 | s,@host_os@,$host_os,;t t | |
7570 | s,@SET_MAKE@,$SET_MAKE,;t t | |
7571 | s,@CC@,$CC,;t t | |
7572 | s,@CFLAGS@,$CFLAGS,;t t | |
7573 | s,@LDFLAGS@,$LDFLAGS,;t t | |
7574 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
7575 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
7576 | s,@EXEEXT@,$EXEEXT,;t t | |
7577 | s,@OBJEXT@,$OBJEXT,;t t | |
7578 | s,@CPP@,$CPP,;t t | |
25ed0b71 | 7579 | s,@EGREP@,$EGREP,;t t |
9255ee31 EZ |
7580 | s,@CROSS_COMPILING_FLAG@,$CROSS_COMPILING_FLAG,;t t |
7581 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t | |
7582 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
7583 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
7584 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
7585 | s,@AR@,$AR,;t t | |
7586 | s,@RANLIB@,$RANLIB,;t t | |
7587 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
7588 | s,@MAKE_SHELL@,$MAKE_SHELL,;t t | |
25ed0b71 | 7589 | s,@WCWIDTH_OBJ@,$WCWIDTH_OBJ,;t t |
9255ee31 EZ |
7590 | s,@SHOBJ_CC@,$SHOBJ_CC,;t t |
7591 | s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t | |
7592 | s,@SHOBJ_LD@,$SHOBJ_LD,;t t | |
7593 | s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t | |
7594 | s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t | |
7595 | s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t | |
7596 | s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t | |
7597 | s,@SHLIB_STATUS@,$SHLIB_STATUS,;t t | |
7598 | s,@SHLIB_XLDFLAGS@,$SHLIB_XLDFLAGS,;t t | |
7599 | s,@SHLIB_LIBSUFF@,$SHLIB_LIBSUFF,;t t | |
7600 | s,@SHLIB_LIBVERSION@,$SHLIB_LIBVERSION,;t t | |
7601 | s,@SHLIB_LIBS@,$SHLIB_LIBS,;t t | |
7602 | s,@SHLIB_MAJOR@,$SHLIB_MAJOR,;t t | |
7603 | s,@SHLIB_MINOR@,$SHLIB_MINOR,;t t | |
7604 | s,@STATIC_TARGET@,$STATIC_TARGET,;t t | |
7605 | s,@SHARED_TARGET@,$SHARED_TARGET,;t t | |
7606 | s,@STATIC_INSTALL_TARGET@,$STATIC_INSTALL_TARGET,;t t | |
7607 | s,@SHARED_INSTALL_TARGET@,$SHARED_INSTALL_TARGET,;t t | |
7608 | s,@BUILD_DIR@,$BUILD_DIR,;t t | |
7609 | s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t | |
7610 | s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t | |
7611 | s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t | |
7612 | s,@ARFLAGS@,$ARFLAGS,;t t | |
7613 | s,@LIBVERSION@,$LIBVERSION,;t t | |
7614 | s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t | |
25ed0b71 KW |
7615 | s,@LIBOBJS@,$LIBOBJS,;t t |
7616 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
9255ee31 EZ |
7617 | CEOF |
7618 | ||
25ed0b71 | 7619 | _ACEOF |
9255ee31 | 7620 | |
25ed0b71 | 7621 | cat >>$CONFIG_STATUS <<\_ACEOF |
9255ee31 EZ |
7622 | # Split the substitutions into bite-sized pieces for seds with |
7623 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
7624 | ac_max_sed_lines=48 | |
7625 | ac_sed_frag=1 # Number of current file. | |
7626 | ac_beg=1 # First line for current file. | |
7627 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
7628 | ac_more_lines=: | |
7629 | ac_sed_cmds= | |
7630 | while $ac_more_lines; do | |
7631 | if test $ac_beg -gt 1; then | |
7632 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7633 | else | |
7634 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7635 | fi | |
7636 | if test ! -s $tmp/subs.frag; then | |
7637 | ac_more_lines=false | |
d60d9f65 | 7638 | else |
9255ee31 EZ |
7639 | # The purpose of the label and of the branching condition is to |
7640 | # speed up the sed processing (if there are no `@' at all, there | |
7641 | # is no need to browse any of the substitutions). | |
7642 | # These are the two extra sed commands mentioned above. | |
7643 | (echo ':t | |
7644 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
7645 | if test -z "$ac_sed_cmds"; then | |
430b7832 | 7646 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
9255ee31 | 7647 | else |
430b7832 | 7648 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
9255ee31 EZ |
7649 | fi |
7650 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
7651 | ac_beg=$ac_end | |
7652 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
d60d9f65 | 7653 | fi |
9255ee31 EZ |
7654 | done |
7655 | if test -z "$ac_sed_cmds"; then | |
7656 | ac_sed_cmds=cat | |
d60d9f65 | 7657 | fi |
9255ee31 | 7658 | fi # test -n "$CONFIG_FILES" |
d60d9f65 | 7659 | |
25ed0b71 KW |
7660 | _ACEOF |
7661 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9255ee31 | 7662 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
d60d9f65 | 7663 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
9255ee31 EZ |
7664 | case $ac_file in |
7665 | - | *:- | *:-:* ) # input from stdin | |
430b7832 MM |
7666 | cat >$tmp/stdin |
7667 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7668 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9255ee31 | 7669 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
430b7832 | 7670 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
9255ee31 | 7671 | * ) ac_file_in=$ac_file.in ;; |
d60d9f65 SS |
7672 | esac |
7673 | ||
9255ee31 | 7674 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
25ed0b71 KW |
7675 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
7676 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
430b7832 MM |
7677 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
7678 | X"$ac_file" : 'X\(//\)$' \| \ | |
7679 | X"$ac_file" : 'X\(/\)' \| \ | |
7680 | . : '\(.\)' 2>/dev/null || | |
9255ee31 EZ |
7681 | echo X"$ac_file" | |
7682 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7683 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7684 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7685 | /^X\(\/\).*/{ s//\1/; q; } | |
7686 | s/.*/./; q'` | |
25ed0b71 KW |
7687 | { if $as_mkdir_p; then |
7688 | mkdir -p "$ac_dir" | |
d60d9f65 | 7689 | else |
25ed0b71 KW |
7690 | as_dir="$ac_dir" |
7691 | as_dirs= | |
7692 | while test ! -d "$as_dir"; do | |
7693 | as_dirs="$as_dir $as_dirs" | |
7694 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7695 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
430b7832 MM |
7696 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
7697 | X"$as_dir" : 'X\(//\)$' \| \ | |
7698 | X"$as_dir" : 'X\(/\)' \| \ | |
7699 | . : '\(.\)' 2>/dev/null || | |
25ed0b71 KW |
7700 | echo X"$as_dir" | |
7701 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7702 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7703 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7704 | /^X\(\/\).*/{ s//\1/; q; } | |
7705 | s/.*/./; q'` | |
7706 | done | |
7707 | test ! -n "$as_dirs" || mkdir $as_dirs | |
7708 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
7709 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
7710 | { (exit 1); exit 1; }; }; } | |
d60d9f65 | 7711 | |
25ed0b71 KW |
7712 | ac_builddir=. |
7713 | ||
7714 | if test "$ac_dir" != .; then | |
7715 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
7716 | # A "../" for each directory in $ac_dir_suffix. | |
7717 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
7718 | else | |
7719 | ac_dir_suffix= ac_top_builddir= | |
7720 | fi | |
7721 | ||
7722 | case $srcdir in | |
7723 | .) # No --srcdir option. We are building in place. | |
7724 | ac_srcdir=. | |
7725 | if test -z "$ac_top_builddir"; then | |
7726 | ac_top_srcdir=. | |
7727 | else | |
7728 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
7729 | fi ;; | |
7730 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
7731 | ac_srcdir=$srcdir$ac_dir_suffix; | |
7732 | ac_top_srcdir=$srcdir ;; | |
d60d9f65 | 7733 | *) # Relative path. |
25ed0b71 KW |
7734 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
7735 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
7736 | esac | |
430b7832 MM |
7737 | |
7738 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
7739 | # the directories may not exist. | |
7740 | case `pwd` in | |
7741 | .) ac_abs_builddir="$ac_dir";; | |
7742 | *) | |
7743 | case "$ac_dir" in | |
7744 | .) ac_abs_builddir=`pwd`;; | |
7745 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
7746 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
7747 | esac;; | |
7748 | esac | |
7749 | case $ac_abs_builddir in | |
7750 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7751 | *) | |
7752 | case ${ac_top_builddir}. in | |
7753 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
7754 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7755 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
7756 | esac;; | |
7757 | esac | |
7758 | case $ac_abs_builddir in | |
7759 | .) ac_abs_srcdir=$ac_srcdir;; | |
7760 | *) | |
7761 | case $ac_srcdir in | |
7762 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
7763 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
7764 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
7765 | esac;; | |
7766 | esac | |
7767 | case $ac_abs_builddir in | |
7768 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7769 | *) | |
7770 | case $ac_top_srcdir in | |
7771 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
7772 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7773 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
7774 | esac;; | |
7775 | esac | |
25ed0b71 | 7776 | |
d60d9f65 | 7777 | |
9255ee31 EZ |
7778 | case $INSTALL in |
7779 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
25ed0b71 | 7780 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
d60d9f65 SS |
7781 | esac |
7782 | ||
9255ee31 | 7783 | if test x"$ac_file" != x-; then |
25ed0b71 | 7784 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
9255ee31 EZ |
7785 | echo "$as_me: creating $ac_file" >&6;} |
7786 | rm -f "$ac_file" | |
7787 | fi | |
7788 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7789 | # use $as_me), people would be surprised to read: | |
25ed0b71 KW |
7790 | # /* config.h. Generated by config.status. */ |
7791 | if test x"$ac_file" = x-; then | |
7792 | configure_input= | |
7793 | else | |
7794 | configure_input="$ac_file. " | |
7795 | fi | |
7796 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
430b7832 | 7797 | sed 's,.*/,,'` by configure." |
9255ee31 EZ |
7798 | |
7799 | # First look for the input files in the build tree, otherwise in the | |
7800 | # src tree. | |
7801 | ac_file_inputs=`IFS=: | |
7802 | for f in $ac_file_in; do | |
7803 | case $f in | |
7804 | -) echo $tmp/stdin ;; | |
7805 | [\\/$]*) | |
430b7832 MM |
7806 | # Absolute (can't be DOS-style, as IFS=:) |
7807 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9255ee31 EZ |
7808 | echo "$as_me: error: cannot find input file: $f" >&2;} |
7809 | { (exit 1); exit 1; }; } | |
430b7832 | 7810 | echo "$f";; |
9255ee31 | 7811 | *) # Relative |
430b7832 MM |
7812 | if test -f "$f"; then |
7813 | # Build tree | |
7814 | echo "$f" | |
7815 | elif test -f "$srcdir/$f"; then | |
7816 | # Source tree | |
7817 | echo "$srcdir/$f" | |
7818 | else | |
7819 | # /dev/null tree | |
7820 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9255ee31 EZ |
7821 | echo "$as_me: error: cannot find input file: $f" >&2;} |
7822 | { (exit 1); exit 1; }; } | |
430b7832 | 7823 | fi;; |
9255ee31 EZ |
7824 | esac |
7825 | done` || { (exit 1); exit 1; } | |
25ed0b71 KW |
7826 | _ACEOF |
7827 | cat >>$CONFIG_STATUS <<_ACEOF | |
9255ee31 EZ |
7828 | sed "$ac_vpsub |
7829 | $extrasub | |
25ed0b71 KW |
7830 | _ACEOF |
7831 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9255ee31 EZ |
7832 | :t |
7833 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7834 | s,@configure_input@,$configure_input,;t t | |
7835 | s,@srcdir@,$ac_srcdir,;t t | |
25ed0b71 | 7836 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
9255ee31 | 7837 | s,@top_srcdir@,$ac_top_srcdir,;t t |
25ed0b71 KW |
7838 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
7839 | s,@builddir@,$ac_builddir,;t t | |
7840 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
7841 | s,@top_builddir@,$ac_top_builddir,;t t | |
7842 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
9255ee31 EZ |
7843 | s,@INSTALL@,$ac_INSTALL,;t t |
7844 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
7845 | rm -f $tmp/stdin | |
7846 | if test x"$ac_file" != x-; then | |
7847 | mv $tmp/out $ac_file | |
7848 | else | |
7849 | cat $tmp/out | |
7850 | rm -f $tmp/out | |
7851 | fi | |
7852 | ||
7853 | done | |
25ed0b71 KW |
7854 | _ACEOF |
7855 | cat >>$CONFIG_STATUS <<\_ACEOF | |
d60d9f65 | 7856 | |
9255ee31 EZ |
7857 | # |
7858 | # CONFIG_HEADER section. | |
7859 | # | |
d60d9f65 SS |
7860 | |
7861 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
7862 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
7863 | # | |
7864 | # ac_d sets the value in "#define NAME VALUE" lines. | |
430b7832 MM |
7865 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
7866 | ac_dB='[ ].*$,\1#\2' | |
9255ee31 EZ |
7867 | ac_dC=' ' |
7868 | ac_dD=',;t' | |
7869 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
430b7832 | 7870 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
9255ee31 | 7871 | ac_uB='$,\1#\2define\3' |
d60d9f65 | 7872 | ac_uC=' ' |
9255ee31 | 7873 | ac_uD=',;t' |
d60d9f65 | 7874 | |
9255ee31 | 7875 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
d60d9f65 | 7876 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
9255ee31 EZ |
7877 | case $ac_file in |
7878 | - | *:- | *:-:* ) # input from stdin | |
430b7832 MM |
7879 | cat >$tmp/stdin |
7880 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7881 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9255ee31 | 7882 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
430b7832 | 7883 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
9255ee31 | 7884 | * ) ac_file_in=$ac_file.in ;; |
d60d9f65 SS |
7885 | esac |
7886 | ||
25ed0b71 | 7887 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
9255ee31 EZ |
7888 | echo "$as_me: creating $ac_file" >&6;} |
7889 | ||
7890 | # First look for the input files in the build tree, otherwise in the | |
7891 | # src tree. | |
7892 | ac_file_inputs=`IFS=: | |
7893 | for f in $ac_file_in; do | |
7894 | case $f in | |
7895 | -) echo $tmp/stdin ;; | |
7896 | [\\/$]*) | |
430b7832 MM |
7897 | # Absolute (can't be DOS-style, as IFS=:) |
7898 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9255ee31 EZ |
7899 | echo "$as_me: error: cannot find input file: $f" >&2;} |
7900 | { (exit 1); exit 1; }; } | |
430b7832 MM |
7901 | # Do quote $f, to prevent DOS paths from being IFS'd. |
7902 | echo "$f";; | |
9255ee31 | 7903 | *) # Relative |
430b7832 MM |
7904 | if test -f "$f"; then |
7905 | # Build tree | |
7906 | echo "$f" | |
7907 | elif test -f "$srcdir/$f"; then | |
7908 | # Source tree | |
7909 | echo "$srcdir/$f" | |
7910 | else | |
7911 | # /dev/null tree | |
7912 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9255ee31 EZ |
7913 | echo "$as_me: error: cannot find input file: $f" >&2;} |
7914 | { (exit 1); exit 1; }; } | |
430b7832 | 7915 | fi;; |
9255ee31 EZ |
7916 | esac |
7917 | done` || { (exit 1); exit 1; } | |
7918 | # Remove the trailing spaces. | |
430b7832 | 7919 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
d60d9f65 | 7920 | |
25ed0b71 | 7921 | _ACEOF |
d60d9f65 | 7922 | |
9255ee31 EZ |
7923 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
7924 | # `conftest.undefs', that substitutes the proper values into | |
7925 | # config.h.in to produce config.h. The first handles `#define' | |
7926 | # templates, and the second `#undef' templates. | |
7927 | # And first: Protect against being on the right side of a sed subst in | |
7928 | # config.status. Protect against being in an unquoted here document | |
7929 | # in config.status. | |
7930 | rm -f conftest.defines conftest.undefs | |
7931 | # Using a here document instead of a string reduces the quoting nightmare. | |
7932 | # Putting comments in sed scripts is not portable. | |
7933 | # | |
7934 | # `end' is used to avoid that the second main sed command (meant for | |
7935 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
7936 | # See the Autoconf documentation for `clear'. | |
25ed0b71 | 7937 | cat >confdef2sed.sed <<\_ACEOF |
9255ee31 EZ |
7938 | s/[\\&,]/\\&/g |
7939 | s,[\\$`],\\&,g | |
7940 | t clear | |
7941 | : clear | |
430b7832 | 7942 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
9255ee31 | 7943 | t end |
430b7832 | 7944 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
9255ee31 | 7945 | : end |
25ed0b71 | 7946 | _ACEOF |
9255ee31 EZ |
7947 | # If some macros were called several times there might be several times |
7948 | # the same #defines, which is useless. Nevertheless, we may not want to | |
7949 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
7950 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
7951 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
7952 | rm -f confdef2sed.sed | |
d60d9f65 SS |
7953 | |
7954 | # This sed command replaces #undef with comments. This is necessary, for | |
7955 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
7956 | # on some systems where configure will not decide to define it. | |
25ed0b71 | 7957 | cat >>conftest.undefs <<\_ACEOF |
430b7832 | 7958 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
25ed0b71 | 7959 | _ACEOF |
d60d9f65 | 7960 | |
9255ee31 EZ |
7961 | # Break up conftest.defines because some shells have a limit on the size |
7962 | # of here documents, and old seds have small limits too (100 cmds). | |
7963 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
430b7832 | 7964 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
9255ee31 EZ |
7965 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
7966 | echo ' :' >>$CONFIG_STATUS | |
7967 | rm -f conftest.tail | |
7968 | while grep . conftest.defines >/dev/null | |
7969 | do | |
7970 | # Write a limited-size here document to $tmp/defines.sed. | |
7971 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
7972 | # Speed up: don't consider the non `#define' lines. | |
430b7832 | 7973 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
9255ee31 EZ |
7974 | # Work around the forget-to-reset-the-flag bug. |
7975 | echo 't clr' >>$CONFIG_STATUS | |
7976 | echo ': clr' >>$CONFIG_STATUS | |
7977 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
7978 | echo 'CEOF | |
7979 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
7980 | rm -f $tmp/in | |
7981 | mv $tmp/out $tmp/in | |
7982 | ' >>$CONFIG_STATUS | |
7983 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
7984 | rm -f conftest.defines | |
7985 | mv conftest.tail conftest.defines | |
7986 | done | |
7987 | rm -f conftest.defines | |
25ed0b71 | 7988 | echo ' fi # grep' >>$CONFIG_STATUS |
9255ee31 | 7989 | echo >>$CONFIG_STATUS |
d60d9f65 | 7990 | |
9255ee31 EZ |
7991 | # Break up conftest.undefs because some shells have a limit on the size |
7992 | # of here documents, and old seds have small limits too (100 cmds). | |
7993 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
d60d9f65 | 7994 | rm -f conftest.tail |
9255ee31 | 7995 | while grep . conftest.undefs >/dev/null |
d60d9f65 | 7996 | do |
9255ee31 EZ |
7997 | # Write a limited-size here document to $tmp/undefs.sed. |
7998 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
7999 | # Speed up: don't consider the non `#undef' | |
430b7832 | 8000 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
9255ee31 EZ |
8001 | # Work around the forget-to-reset-the-flag bug. |
8002 | echo 't clr' >>$CONFIG_STATUS | |
8003 | echo ': clr' >>$CONFIG_STATUS | |
8004 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
d60d9f65 | 8005 | echo 'CEOF |
9255ee31 EZ |
8006 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
8007 | rm -f $tmp/in | |
8008 | mv $tmp/out $tmp/in | |
8009 | ' >>$CONFIG_STATUS | |
8010 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
8011 | rm -f conftest.undefs | |
8012 | mv conftest.tail conftest.undefs | |
d60d9f65 | 8013 | done |
9255ee31 EZ |
8014 | rm -f conftest.undefs |
8015 | ||
25ed0b71 | 8016 | cat >>$CONFIG_STATUS <<\_ACEOF |
9255ee31 EZ |
8017 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
8018 | # use $as_me), people would be surprised to read: | |
25ed0b71 | 8019 | # /* config.h. Generated by config.status. */ |
9255ee31 | 8020 | if test x"$ac_file" = x-; then |
25ed0b71 | 8021 | echo "/* Generated by configure. */" >$tmp/config.h |
d60d9f65 | 8022 | else |
25ed0b71 | 8023 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
9255ee31 EZ |
8024 | fi |
8025 | cat $tmp/in >>$tmp/config.h | |
8026 | rm -f $tmp/in | |
8027 | if test x"$ac_file" != x-; then | |
25ed0b71 KW |
8028 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
8029 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
9255ee31 EZ |
8030 | echo "$as_me: $ac_file is unchanged" >&6;} |
8031 | else | |
25ed0b71 KW |
8032 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
8033 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
430b7832 MM |
8034 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
8035 | X"$ac_file" : 'X\(//\)$' \| \ | |
8036 | X"$ac_file" : 'X\(/\)' \| \ | |
8037 | . : '\(.\)' 2>/dev/null || | |
9255ee31 EZ |
8038 | echo X"$ac_file" | |
8039 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8040 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8041 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8042 | /^X\(\/\).*/{ s//\1/; q; } | |
8043 | s/.*/./; q'` | |
25ed0b71 KW |
8044 | { if $as_mkdir_p; then |
8045 | mkdir -p "$ac_dir" | |
8046 | else | |
8047 | as_dir="$ac_dir" | |
8048 | as_dirs= | |
8049 | while test ! -d "$as_dir"; do | |
8050 | as_dirs="$as_dir $as_dirs" | |
8051 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8052 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
430b7832 MM |
8053 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
8054 | X"$as_dir" : 'X\(//\)$' \| \ | |
8055 | X"$as_dir" : 'X\(/\)' \| \ | |
8056 | . : '\(.\)' 2>/dev/null || | |
25ed0b71 KW |
8057 | echo X"$as_dir" | |
8058 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8059 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8060 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8061 | /^X\(\/\).*/{ s//\1/; q; } | |
8062 | s/.*/./; q'` | |
8063 | done | |
8064 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8065 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
8066 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
8067 | { (exit 1); exit 1; }; }; } | |
9255ee31 | 8068 | |
9255ee31 EZ |
8069 | rm -f $ac_file |
8070 | mv $tmp/config.h $ac_file | |
d60d9f65 | 8071 | fi |
9255ee31 EZ |
8072 | else |
8073 | cat $tmp/config.h | |
8074 | rm -f $tmp/config.h | |
d60d9f65 | 8075 | fi |
9255ee31 | 8076 | done |
25ed0b71 KW |
8077 | _ACEOF |
8078 | cat >>$CONFIG_STATUS <<\_ACEOF | |
d60d9f65 | 8079 | |
9255ee31 EZ |
8080 | # |
8081 | # CONFIG_COMMANDS section. | |
8082 | # | |
8083 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
8084 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
8085 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
25ed0b71 KW |
8086 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
8087 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
430b7832 MM |
8088 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
8089 | X"$ac_dest" : 'X\(//\)$' \| \ | |
8090 | X"$ac_dest" : 'X\(/\)' \| \ | |
8091 | . : '\(.\)' 2>/dev/null || | |
25ed0b71 KW |
8092 | echo X"$ac_dest" | |
8093 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8094 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8095 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8096 | /^X\(\/\).*/{ s//\1/; q; } | |
8097 | s/.*/./; q'` | |
430b7832 MM |
8098 | { if $as_mkdir_p; then |
8099 | mkdir -p "$ac_dir" | |
8100 | else | |
8101 | as_dir="$ac_dir" | |
8102 | as_dirs= | |
8103 | while test ! -d "$as_dir"; do | |
8104 | as_dirs="$as_dir $as_dirs" | |
8105 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8106 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8107 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8108 | X"$as_dir" : 'X\(//\)$' \| \ | |
8109 | X"$as_dir" : 'X\(/\)' \| \ | |
8110 | . : '\(.\)' 2>/dev/null || | |
8111 | echo X"$as_dir" | | |
8112 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8113 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8114 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8115 | /^X\(\/\).*/{ s//\1/; q; } | |
8116 | s/.*/./; q'` | |
8117 | done | |
8118 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8119 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
8120 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
8121 | { (exit 1); exit 1; }; }; } | |
8122 | ||
25ed0b71 KW |
8123 | ac_builddir=. |
8124 | ||
8125 | if test "$ac_dir" != .; then | |
8126 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
8127 | # A "../" for each directory in $ac_dir_suffix. | |
8128 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
8129 | else | |
8130 | ac_dir_suffix= ac_top_builddir= | |
8131 | fi | |
8132 | ||
8133 | case $srcdir in | |
8134 | .) # No --srcdir option. We are building in place. | |
8135 | ac_srcdir=. | |
8136 | if test -z "$ac_top_builddir"; then | |
8137 | ac_top_srcdir=. | |
8138 | else | |
8139 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
8140 | fi ;; | |
8141 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
8142 | ac_srcdir=$srcdir$ac_dir_suffix; | |
8143 | ac_top_srcdir=$srcdir ;; | |
8144 | *) # Relative path. | |
8145 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
8146 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
8147 | esac | |
430b7832 MM |
8148 | |
8149 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
8150 | # the directories may not exist. | |
8151 | case `pwd` in | |
8152 | .) ac_abs_builddir="$ac_dir";; | |
8153 | *) | |
8154 | case "$ac_dir" in | |
8155 | .) ac_abs_builddir=`pwd`;; | |
8156 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
8157 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
8158 | esac;; | |
8159 | esac | |
8160 | case $ac_abs_builddir in | |
8161 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8162 | *) | |
8163 | case ${ac_top_builddir}. in | |
8164 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
8165 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8166 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
8167 | esac;; | |
8168 | esac | |
8169 | case $ac_abs_builddir in | |
8170 | .) ac_abs_srcdir=$ac_srcdir;; | |
8171 | *) | |
8172 | case $ac_srcdir in | |
8173 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
8174 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
8175 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
8176 | esac;; | |
8177 | esac | |
8178 | case $ac_abs_builddir in | |
8179 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8180 | *) | |
8181 | case $ac_top_srcdir in | |
8182 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
8183 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8184 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
8185 | esac;; | |
8186 | esac | |
25ed0b71 | 8187 | |
d60d9f65 | 8188 | |
25ed0b71 KW |
8189 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
8190 | echo "$as_me: executing $ac_dest commands" >&6;} | |
9255ee31 EZ |
8191 | case $ac_dest in |
8192 | default ) | |
d60d9f65 SS |
8193 | # Makefile uses this timestamp file to record whether config.h is up to date. |
8194 | echo > stamp-h | |
9255ee31 EZ |
8195 | ;; |
8196 | esac | |
8197 | done | |
25ed0b71 | 8198 | _ACEOF |
d60d9f65 | 8199 | |
25ed0b71 | 8200 | cat >>$CONFIG_STATUS <<\_ACEOF |
9255ee31 EZ |
8201 | |
8202 | { (exit 0); exit 0; } | |
25ed0b71 | 8203 | _ACEOF |
d60d9f65 | 8204 | chmod +x $CONFIG_STATUS |
9255ee31 EZ |
8205 | ac_clean_files=$ac_clean_files_save |
8206 | ||
25ed0b71 | 8207 | |
9255ee31 EZ |
8208 | # configure is writing to config.log, and then calls config.status. |
8209 | # config.status does its own redirection, appending to config.log. | |
8210 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8211 | # by configure, so config.status won't be able to write to it; its | |
8212 | # output is simply discarded. So we exec the FD to /dev/null, | |
8213 | # effectively closing config.log, so it can be properly (re)opened and | |
8214 | # appended to by config.status. When coming back to configure, we | |
8215 | # need to make the FD available again. | |
8216 | if test "$no_create" != yes; then | |
8217 | ac_cs_success=: | |
25ed0b71 KW |
8218 | ac_config_status_args= |
8219 | test "$silent" = yes && | |
8220 | ac_config_status_args="$ac_config_status_args --quiet" | |
9255ee31 | 8221 | exec 5>/dev/null |
25ed0b71 | 8222 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
9255ee31 EZ |
8223 | exec 5>>config.log |
8224 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8225 | # would make configure fail if this is the last instruction. | |
8226 | $ac_cs_success || { (exit 1); exit 1; } | |
8227 | fi | |
d60d9f65 | 8228 |