1 |
131 |
jeremybenn |
#! /bin/sh
|
2 |
|
|
# From configure.in for Readline 5.1, version 2.59.
|
3 |
|
|
# Guess values for system-dependent variables and create Makefiles.
|
4 |
|
|
# Generated by GNU Autoconf 2.59 for readline 5.1-release.
|
5 |
|
|
#
|
6 |
|
|
# Report bugs to .
|
7 |
|
|
#
|
8 |
|
|
# Copyright (C) 2003 Free Software Foundation, Inc.
|
9 |
|
|
# This configure script is free software; the Free Software Foundation
|
10 |
|
|
# gives unlimited permission to copy, distribute and modify it.
|
11 |
|
|
## --------------------- ##
|
12 |
|
|
## M4sh Initialization. ##
|
13 |
|
|
## --------------------- ##
|
14 |
|
|
|
15 |
|
|
# Be Bourne compatible
|
16 |
|
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
17 |
|
|
emulate sh
|
18 |
|
|
NULLCMD=:
|
19 |
|
|
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
20 |
|
|
# is contrary to our usage. Disable this feature.
|
21 |
|
|
alias -g '${1+"$@"}'='"$@"'
|
22 |
|
|
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
23 |
|
|
set -o posix
|
24 |
|
|
fi
|
25 |
|
|
DUALCASE=1; export DUALCASE # for MKS sh
|
26 |
|
|
|
27 |
|
|
# Support unset when possible.
|
28 |
|
|
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
29 |
|
|
as_unset=unset
|
30 |
|
|
else
|
31 |
|
|
as_unset=false
|
32 |
|
|
fi
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
# Work around bugs in pre-3.0 UWIN ksh.
|
36 |
|
|
$as_unset ENV MAIL MAILPATH
|
37 |
|
|
PS1='$ '
|
38 |
|
|
PS2='> '
|
39 |
|
|
PS4='+ '
|
40 |
|
|
|
41 |
|
|
# NLS nuisances.
|
42 |
|
|
for as_var in \
|
43 |
|
|
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
44 |
|
|
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
45 |
|
|
LC_TELEPHONE LC_TIME
|
46 |
|
|
do
|
47 |
|
|
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
48 |
|
|
eval $as_var=C; export $as_var
|
49 |
|
|
else
|
50 |
|
|
$as_unset $as_var
|
51 |
|
|
fi
|
52 |
|
|
done
|
53 |
|
|
|
54 |
|
|
# Required to use basename.
|
55 |
|
|
if expr a : '\(a\)' >/dev/null 2>&1; then
|
56 |
|
|
as_expr=expr
|
57 |
|
|
else
|
58 |
|
|
as_expr=false
|
59 |
|
|
fi
|
60 |
|
|
|
61 |
|
|
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
62 |
|
|
as_basename=basename
|
63 |
|
|
else
|
64 |
|
|
as_basename=false
|
65 |
|
|
fi
|
66 |
|
|
|
67 |
|
|
|
68 |
|
|
# Name of the executable.
|
69 |
|
|
as_me=`$as_basename "$0" ||
|
70 |
|
|
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
71 |
|
|
X"$0" : 'X\(//\)$' \| \
|
72 |
|
|
X"$0" : 'X\(/\)$' \| \
|
73 |
|
|
. : '\(.\)' 2>/dev/null ||
|
74 |
|
|
echo X/"$0" |
|
75 |
|
|
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
76 |
|
|
/^X\/\(\/\/\)$/{ s//\1/; q; }
|
77 |
|
|
/^X\/\(\/\).*/{ s//\1/; q; }
|
78 |
|
|
s/.*/./; q'`
|
79 |
|
|
|
80 |
|
|
|
81 |
|
|
# PATH needs CR, and LINENO needs CR and PATH.
|
82 |
|
|
# Avoid depending upon Character Ranges.
|
83 |
|
|
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
84 |
|
|
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
85 |
|
|
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
86 |
|
|
as_cr_digits='0123456789'
|
87 |
|
|
as_cr_alnum=$as_cr_Letters$as_cr_digits
|
88 |
|
|
|
89 |
|
|
# The user is always right.
|
90 |
|
|
if test "${PATH_SEPARATOR+set}" != set; then
|
91 |
|
|
echo "#! /bin/sh" >conf$$.sh
|
92 |
|
|
echo "exit 0" >>conf$$.sh
|
93 |
|
|
chmod +x conf$$.sh
|
94 |
|
|
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
95 |
|
|
PATH_SEPARATOR=';'
|
96 |
|
|
else
|
97 |
|
|
PATH_SEPARATOR=:
|
98 |
|
|
fi
|
99 |
|
|
rm -f conf$$.sh
|
100 |
|
|
fi
|
101 |
|
|
|
102 |
|
|
|
103 |
|
|
as_lineno_1=$LINENO
|
104 |
|
|
as_lineno_2=$LINENO
|
105 |
|
|
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
106 |
|
|
test "x$as_lineno_1" != "x$as_lineno_2" &&
|
107 |
|
|
test "x$as_lineno_3" = "x$as_lineno_2" || {
|
108 |
|
|
# Find who we are. Look in the path if we contain no path at all
|
109 |
|
|
# relative or not.
|
110 |
|
|
case $0 in
|
111 |
|
|
*[\\/]* ) as_myself=$0 ;;
|
112 |
|
|
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
113 |
|
|
for as_dir in $PATH
|
114 |
|
|
do
|
115 |
|
|
IFS=$as_save_IFS
|
116 |
|
|
test -z "$as_dir" && as_dir=.
|
117 |
|
|
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
118 |
|
|
done
|
119 |
|
|
|
120 |
|
|
;;
|
121 |
|
|
esac
|
122 |
|
|
# We did not find ourselves, most probably we were run as `sh COMMAND'
|
123 |
|
|
# in which case we are not to be found in the path.
|
124 |
|
|
if test "x$as_myself" = x; then
|
125 |
|
|
as_myself=$0
|
126 |
|
|
fi
|
127 |
|
|
if test ! -f "$as_myself"; then
|
128 |
|
|
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
|
129 |
|
|
{ (exit 1); exit 1; }; }
|
130 |
|
|
fi
|
131 |
|
|
case $CONFIG_SHELL in
|
132 |
|
|
'')
|
133 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
134 |
|
|
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
135 |
|
|
do
|
136 |
|
|
IFS=$as_save_IFS
|
137 |
|
|
test -z "$as_dir" && as_dir=.
|
138 |
|
|
for as_base in sh bash ksh sh5; do
|
139 |
|
|
case $as_dir in
|
140 |
|
|
/*)
|
141 |
|
|
if ("$as_dir/$as_base" -c '
|
142 |
|
|
as_lineno_1=$LINENO
|
143 |
|
|
as_lineno_2=$LINENO
|
144 |
|
|
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
145 |
|
|
test "x$as_lineno_1" != "x$as_lineno_2" &&
|
146 |
|
|
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
147 |
|
|
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
148 |
|
|
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
149 |
|
|
CONFIG_SHELL=$as_dir/$as_base
|
150 |
|
|
export CONFIG_SHELL
|
151 |
|
|
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
152 |
|
|
fi;;
|
153 |
|
|
esac
|
154 |
|
|
done
|
155 |
|
|
done
|
156 |
|
|
;;
|
157 |
|
|
esac
|
158 |
|
|
|
159 |
|
|
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
160 |
|
|
# uniformly replaced by the line number. The first 'sed' inserts a
|
161 |
|
|
# line-number line before each line; the second 'sed' does the real
|
162 |
|
|
# work. The second script uses 'N' to pair each line-number line
|
163 |
|
|
# with the numbered line, and appends trailing '-' during
|
164 |
|
|
# substitution so that $LINENO is not a special case at line end.
|
165 |
|
|
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
166 |
|
|
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
167 |
|
|
sed '=' <$as_myself |
|
168 |
|
|
sed '
|
169 |
|
|
N
|
170 |
|
|
s,$,-,
|
171 |
|
|
: loop
|
172 |
|
|
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
173 |
|
|
t loop
|
174 |
|
|
s,-$,,
|
175 |
|
|
s,^['$as_cr_digits']*\n,,
|
176 |
|
|
' >$as_me.lineno &&
|
177 |
|
|
chmod +x $as_me.lineno ||
|
178 |
|
|
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
179 |
|
|
{ (exit 1); exit 1; }; }
|
180 |
|
|
|
181 |
|
|
# Don't try to exec as it changes $[0], causing all sort of problems
|
182 |
|
|
# (the dirname of $[0] is not the place where we might find the
|
183 |
|
|
# original and so on. Autoconf is especially sensible to this).
|
184 |
|
|
. ./$as_me.lineno
|
185 |
|
|
# Exit status is that of the last command.
|
186 |
|
|
exit
|
187 |
|
|
}
|
188 |
|
|
|
189 |
|
|
|
190 |
|
|
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
191 |
|
|
*c*,-n*) ECHO_N= ECHO_C='
|
192 |
|
|
' ECHO_T=' ' ;;
|
193 |
|
|
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
194 |
|
|
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
195 |
|
|
esac
|
196 |
|
|
|
197 |
|
|
if expr a : '\(a\)' >/dev/null 2>&1; then
|
198 |
|
|
as_expr=expr
|
199 |
|
|
else
|
200 |
|
|
as_expr=false
|
201 |
|
|
fi
|
202 |
|
|
|
203 |
|
|
rm -f conf$$ conf$$.exe conf$$.file
|
204 |
|
|
echo >conf$$.file
|
205 |
|
|
if ln -s conf$$.file conf$$ 2>/dev/null; then
|
206 |
|
|
# We could just check for DJGPP; but this test a) works b) is more generic
|
207 |
|
|
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
208 |
|
|
if test -f conf$$.exe; then
|
209 |
|
|
# Don't use ln at all; we don't have any links
|
210 |
|
|
as_ln_s='cp -p'
|
211 |
|
|
else
|
212 |
|
|
as_ln_s='ln -s'
|
213 |
|
|
fi
|
214 |
|
|
elif ln conf$$.file conf$$ 2>/dev/null; then
|
215 |
|
|
as_ln_s=ln
|
216 |
|
|
else
|
217 |
|
|
as_ln_s='cp -p'
|
218 |
|
|
fi
|
219 |
|
|
rm -f conf$$ conf$$.exe conf$$.file
|
220 |
|
|
|
221 |
|
|
if mkdir -p . 2>/dev/null; then
|
222 |
|
|
as_mkdir_p=:
|
223 |
|
|
else
|
224 |
|
|
test -d ./-p && rmdir ./-p
|
225 |
|
|
as_mkdir_p=false
|
226 |
|
|
fi
|
227 |
|
|
|
228 |
|
|
as_executable_p="test -f"
|
229 |
|
|
|
230 |
|
|
# Sed expression to map a string onto a valid CPP name.
|
231 |
|
|
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
232 |
|
|
|
233 |
|
|
# Sed expression to map a string onto a valid variable name.
|
234 |
|
|
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
235 |
|
|
|
236 |
|
|
|
237 |
|
|
# IFS
|
238 |
|
|
# We need space, tab and new line, in precisely that order.
|
239 |
|
|
as_nl='
|
240 |
|
|
'
|
241 |
|
|
IFS=" $as_nl"
|
242 |
|
|
|
243 |
|
|
# CDPATH.
|
244 |
|
|
$as_unset CDPATH
|
245 |
|
|
|
246 |
|
|
|
247 |
|
|
# Name of the host.
|
248 |
|
|
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
249 |
|
|
# so uname gets run too.
|
250 |
|
|
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
251 |
|
|
|
252 |
|
|
exec 6>&1
|
253 |
|
|
|
254 |
|
|
#
|
255 |
|
|
# Initializations.
|
256 |
|
|
#
|
257 |
|
|
ac_default_prefix=/usr/local
|
258 |
|
|
ac_config_libobj_dir=.
|
259 |
|
|
cross_compiling=no
|
260 |
|
|
subdirs=
|
261 |
|
|
MFLAGS=
|
262 |
|
|
MAKEFLAGS=
|
263 |
|
|
SHELL=${CONFIG_SHELL-/bin/sh}
|
264 |
|
|
|
265 |
|
|
# Maximum number of lines to put in a shell here document.
|
266 |
|
|
# This variable seems obsolete. It should probably be removed, and
|
267 |
|
|
# only ac_max_sed_lines should be used.
|
268 |
|
|
: ${ac_max_here_lines=38}
|
269 |
|
|
|
270 |
|
|
# Identity of this package.
|
271 |
|
|
PACKAGE_NAME='readline'
|
272 |
|
|
PACKAGE_TARNAME='readline'
|
273 |
|
|
PACKAGE_VERSION='5.1-release'
|
274 |
|
|
PACKAGE_STRING='readline 5.1-release'
|
275 |
|
|
PACKAGE_BUGREPORT='bug-readline@gnu.org'
|
276 |
|
|
|
277 |
|
|
ac_unique_file="readline.h"
|
278 |
|
|
# Factoring default headers for most tests.
|
279 |
|
|
ac_includes_default="\
|
280 |
|
|
#include
|
281 |
|
|
#if HAVE_SYS_TYPES_H
|
282 |
|
|
# include
|
283 |
|
|
#endif
|
284 |
|
|
#if HAVE_SYS_STAT_H
|
285 |
|
|
# include
|
286 |
|
|
#endif
|
287 |
|
|
#if STDC_HEADERS
|
288 |
|
|
# include
|
289 |
|
|
# include
|
290 |
|
|
#else
|
291 |
|
|
# if HAVE_STDLIB_H
|
292 |
|
|
# include
|
293 |
|
|
# endif
|
294 |
|
|
#endif
|
295 |
|
|
#if HAVE_STRING_H
|
296 |
|
|
# if !STDC_HEADERS && HAVE_MEMORY_H
|
297 |
|
|
# include
|
298 |
|
|
# endif
|
299 |
|
|
# include
|
300 |
|
|
#endif
|
301 |
|
|
#if HAVE_STRINGS_H
|
302 |
|
|
# include
|
303 |
|
|
#endif
|
304 |
|
|
#if HAVE_INTTYPES_H
|
305 |
|
|
# include
|
306 |
|
|
#else
|
307 |
|
|
# if HAVE_STDINT_H
|
308 |
|
|
# include
|
309 |
|
|
# endif
|
310 |
|
|
#endif
|
311 |
|
|
#if HAVE_UNISTD_H
|
312 |
|
|
# include
|
313 |
|
|
#endif"
|
314 |
|
|
|
315 |
|
|
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CROSS_COMPILE SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CC_FOR_BUILD INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AR RANLIB ac_ct_RANLIB MAKE_SHELL WCWIDTH_OBJ SHOBJ_CC SHOBJ_CFLAGS SHOBJ_LD SHOBJ_LDFLAGS SHOBJ_XLDFLAGS SHOBJ_LIBS SHOBJ_STATUS SHLIB_STATUS SHLIB_XLDFLAGS SHLIB_DOT SHLIB_LIBPREF SHLIB_LIBSUFF SHLIB_LIBVERSION SHLIB_DLLVERSION SHLIB_LIBS SHLIB_MAJOR SHLIB_MINOR STATIC_TARGET SHARED_TARGET STATIC_INSTALL_TARGET SHARED_INSTALL_TARGET PURIFY BUILD_DIR LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS ARFLAGS LIBVERSION TERMCAP_LIB LIBOBJS LTLIBOBJS'
|
316 |
|
|
ac_subst_files=''
|
317 |
|
|
|
318 |
|
|
# Initialize some variables set by options.
|
319 |
|
|
ac_init_help=
|
320 |
|
|
ac_init_version=false
|
321 |
|
|
# The variables have the same names as the options, with
|
322 |
|
|
# dashes changed to underlines.
|
323 |
|
|
cache_file=/dev/null
|
324 |
|
|
exec_prefix=NONE
|
325 |
|
|
no_create=
|
326 |
|
|
no_recursion=
|
327 |
|
|
prefix=NONE
|
328 |
|
|
program_prefix=NONE
|
329 |
|
|
program_suffix=NONE
|
330 |
|
|
program_transform_name=s,x,x,
|
331 |
|
|
silent=
|
332 |
|
|
site=
|
333 |
|
|
srcdir=
|
334 |
|
|
verbose=
|
335 |
|
|
x_includes=NONE
|
336 |
|
|
x_libraries=NONE
|
337 |
|
|
|
338 |
|
|
# Installation directory options.
|
339 |
|
|
# These are left unexpanded so users can "make install exec_prefix=/foo"
|
340 |
|
|
# and all the variables that are supposed to be based on exec_prefix
|
341 |
|
|
# by default will actually change.
|
342 |
|
|
# Use braces instead of parens because sh, perl, etc. also accept them.
|
343 |
|
|
bindir='${exec_prefix}/bin'
|
344 |
|
|
sbindir='${exec_prefix}/sbin'
|
345 |
|
|
libexecdir='${exec_prefix}/libexec'
|
346 |
|
|
datadir='${prefix}/share'
|
347 |
|
|
sysconfdir='${prefix}/etc'
|
348 |
|
|
sharedstatedir='${prefix}/com'
|
349 |
|
|
localstatedir='${prefix}/var'
|
350 |
|
|
libdir='${exec_prefix}/lib'
|
351 |
|
|
includedir='${prefix}/include'
|
352 |
|
|
oldincludedir='/usr/include'
|
353 |
|
|
infodir='${prefix}/info'
|
354 |
|
|
mandir='${prefix}/man'
|
355 |
|
|
|
356 |
|
|
ac_prev=
|
357 |
|
|
for ac_option
|
358 |
|
|
do
|
359 |
|
|
# If the previous option needs an argument, assign it.
|
360 |
|
|
if test -n "$ac_prev"; then
|
361 |
|
|
eval "$ac_prev=\$ac_option"
|
362 |
|
|
ac_prev=
|
363 |
|
|
continue
|
364 |
|
|
fi
|
365 |
|
|
|
366 |
|
|
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
|
367 |
|
|
|
368 |
|
|
# Accept the important Cygnus configure options, so we can diagnose typos.
|
369 |
|
|
|
370 |
|
|
case $ac_option in
|
371 |
|
|
|
372 |
|
|
-bindir | --bindir | --bindi | --bind | --bin | --bi)
|
373 |
|
|
ac_prev=bindir ;;
|
374 |
|
|
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
375 |
|
|
bindir=$ac_optarg ;;
|
376 |
|
|
|
377 |
|
|
-build | --build | --buil | --bui | --bu)
|
378 |
|
|
ac_prev=build_alias ;;
|
379 |
|
|
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
380 |
|
|
build_alias=$ac_optarg ;;
|
381 |
|
|
|
382 |
|
|
-cache-file | --cache-file | --cache-fil | --cache-fi \
|
383 |
|
|
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
384 |
|
|
ac_prev=cache_file ;;
|
385 |
|
|
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
386 |
|
|
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
387 |
|
|
cache_file=$ac_optarg ;;
|
388 |
|
|
|
389 |
|
|
--config-cache | -C)
|
390 |
|
|
cache_file=config.cache ;;
|
391 |
|
|
|
392 |
|
|
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
393 |
|
|
ac_prev=datadir ;;
|
394 |
|
|
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
395 |
|
|
| --da=*)
|
396 |
|
|
datadir=$ac_optarg ;;
|
397 |
|
|
|
398 |
|
|
-disable-* | --disable-*)
|
399 |
|
|
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
400 |
|
|
# Reject names that are not valid shell variable names.
|
401 |
|
|
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
402 |
|
|
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
403 |
|
|
{ (exit 1); exit 1; }; }
|
404 |
|
|
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
405 |
|
|
eval "enable_$ac_feature=no" ;;
|
406 |
|
|
|
407 |
|
|
-enable-* | --enable-*)
|
408 |
|
|
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
409 |
|
|
# Reject names that are not valid shell variable names.
|
410 |
|
|
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
411 |
|
|
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
412 |
|
|
{ (exit 1); exit 1; }; }
|
413 |
|
|
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
414 |
|
|
case $ac_option in
|
415 |
|
|
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
416 |
|
|
*) ac_optarg=yes ;;
|
417 |
|
|
esac
|
418 |
|
|
eval "enable_$ac_feature='$ac_optarg'" ;;
|
419 |
|
|
|
420 |
|
|
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
421 |
|
|
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
422 |
|
|
| --exec | --exe | --ex)
|
423 |
|
|
ac_prev=exec_prefix ;;
|
424 |
|
|
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
425 |
|
|
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
426 |
|
|
| --exec=* | --exe=* | --ex=*)
|
427 |
|
|
exec_prefix=$ac_optarg ;;
|
428 |
|
|
|
429 |
|
|
-gas | --gas | --ga | --g)
|
430 |
|
|
# Obsolete; use --with-gas.
|
431 |
|
|
with_gas=yes ;;
|
432 |
|
|
|
433 |
|
|
-help | --help | --hel | --he | -h)
|
434 |
|
|
ac_init_help=long ;;
|
435 |
|
|
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
436 |
|
|
ac_init_help=recursive ;;
|
437 |
|
|
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
438 |
|
|
ac_init_help=short ;;
|
439 |
|
|
|
440 |
|
|
-host | --host | --hos | --ho)
|
441 |
|
|
ac_prev=host_alias ;;
|
442 |
|
|
-host=* | --host=* | --hos=* | --ho=*)
|
443 |
|
|
host_alias=$ac_optarg ;;
|
444 |
|
|
|
445 |
|
|
-includedir | --includedir | --includedi | --included | --include \
|
446 |
|
|
| --includ | --inclu | --incl | --inc)
|
447 |
|
|
ac_prev=includedir ;;
|
448 |
|
|
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
449 |
|
|
| --includ=* | --inclu=* | --incl=* | --inc=*)
|
450 |
|
|
includedir=$ac_optarg ;;
|
451 |
|
|
|
452 |
|
|
-infodir | --infodir | --infodi | --infod | --info | --inf)
|
453 |
|
|
ac_prev=infodir ;;
|
454 |
|
|
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
455 |
|
|
infodir=$ac_optarg ;;
|
456 |
|
|
|
457 |
|
|
-libdir | --libdir | --libdi | --libd)
|
458 |
|
|
ac_prev=libdir ;;
|
459 |
|
|
-libdir=* | --libdir=* | --libdi=* | --libd=*)
|
460 |
|
|
libdir=$ac_optarg ;;
|
461 |
|
|
|
462 |
|
|
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
463 |
|
|
| --libexe | --libex | --libe)
|
464 |
|
|
ac_prev=libexecdir ;;
|
465 |
|
|
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
466 |
|
|
| --libexe=* | --libex=* | --libe=*)
|
467 |
|
|
libexecdir=$ac_optarg ;;
|
468 |
|
|
|
469 |
|
|
-localstatedir | --localstatedir | --localstatedi | --localstated \
|
470 |
|
|
| --localstate | --localstat | --localsta | --localst \
|
471 |
|
|
| --locals | --local | --loca | --loc | --lo)
|
472 |
|
|
ac_prev=localstatedir ;;
|
473 |
|
|
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
474 |
|
|
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
475 |
|
|
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
476 |
|
|
localstatedir=$ac_optarg ;;
|
477 |
|
|
|
478 |
|
|
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
479 |
|
|
ac_prev=mandir ;;
|
480 |
|
|
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
481 |
|
|
mandir=$ac_optarg ;;
|
482 |
|
|
|
483 |
|
|
-nfp | --nfp | --nf)
|
484 |
|
|
# Obsolete; use --without-fp.
|
485 |
|
|
with_fp=no ;;
|
486 |
|
|
|
487 |
|
|
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
488 |
|
|
| --no-cr | --no-c | -n)
|
489 |
|
|
no_create=yes ;;
|
490 |
|
|
|
491 |
|
|
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
492 |
|
|
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
493 |
|
|
no_recursion=yes ;;
|
494 |
|
|
|
495 |
|
|
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
496 |
|
|
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
497 |
|
|
| --oldin | --oldi | --old | --ol | --o)
|
498 |
|
|
ac_prev=oldincludedir ;;
|
499 |
|
|
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
500 |
|
|
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
501 |
|
|
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
502 |
|
|
oldincludedir=$ac_optarg ;;
|
503 |
|
|
|
504 |
|
|
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
505 |
|
|
ac_prev=prefix ;;
|
506 |
|
|
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
507 |
|
|
prefix=$ac_optarg ;;
|
508 |
|
|
|
509 |
|
|
-program-prefix | --program-prefix | --program-prefi | --program-pref \
|
510 |
|
|
| --program-pre | --program-pr | --program-p)
|
511 |
|
|
ac_prev=program_prefix ;;
|
512 |
|
|
-program-prefix=* | --program-prefix=* | --program-prefi=* \
|
513 |
|
|
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
514 |
|
|
program_prefix=$ac_optarg ;;
|
515 |
|
|
|
516 |
|
|
-program-suffix | --program-suffix | --program-suffi | --program-suff \
|
517 |
|
|
| --program-suf | --program-su | --program-s)
|
518 |
|
|
ac_prev=program_suffix ;;
|
519 |
|
|
-program-suffix=* | --program-suffix=* | --program-suffi=* \
|
520 |
|
|
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
521 |
|
|
program_suffix=$ac_optarg ;;
|
522 |
|
|
|
523 |
|
|
-program-transform-name | --program-transform-name \
|
524 |
|
|
| --program-transform-nam | --program-transform-na \
|
525 |
|
|
| --program-transform-n | --program-transform- \
|
526 |
|
|
| --program-transform | --program-transfor \
|
527 |
|
|
| --program-transfo | --program-transf \
|
528 |
|
|
| --program-trans | --program-tran \
|
529 |
|
|
| --progr-tra | --program-tr | --program-t)
|
530 |
|
|
ac_prev=program_transform_name ;;
|
531 |
|
|
-program-transform-name=* | --program-transform-name=* \
|
532 |
|
|
| --program-transform-nam=* | --program-transform-na=* \
|
533 |
|
|
| --program-transform-n=* | --program-transform-=* \
|
534 |
|
|
| --program-transform=* | --program-transfor=* \
|
535 |
|
|
| --program-transfo=* | --program-transf=* \
|
536 |
|
|
| --program-trans=* | --program-tran=* \
|
537 |
|
|
| --progr-tra=* | --program-tr=* | --program-t=*)
|
538 |
|
|
program_transform_name=$ac_optarg ;;
|
539 |
|
|
|
540 |
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
541 |
|
|
| -silent | --silent | --silen | --sile | --sil)
|
542 |
|
|
silent=yes ;;
|
543 |
|
|
|
544 |
|
|
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
545 |
|
|
ac_prev=sbindir ;;
|
546 |
|
|
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
547 |
|
|
| --sbi=* | --sb=*)
|
548 |
|
|
sbindir=$ac_optarg ;;
|
549 |
|
|
|
550 |
|
|
-sharedstatedir | --sharedstatedir | --sharedstatedi \
|
551 |
|
|
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
552 |
|
|
| --sharedst | --shareds | --shared | --share | --shar \
|
553 |
|
|
| --sha | --sh)
|
554 |
|
|
ac_prev=sharedstatedir ;;
|
555 |
|
|
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
556 |
|
|
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
557 |
|
|
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
558 |
|
|
| --sha=* | --sh=*)
|
559 |
|
|
sharedstatedir=$ac_optarg ;;
|
560 |
|
|
|
561 |
|
|
-site | --site | --sit)
|
562 |
|
|
ac_prev=site ;;
|
563 |
|
|
-site=* | --site=* | --sit=*)
|
564 |
|
|
site=$ac_optarg ;;
|
565 |
|
|
|
566 |
|
|
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
567 |
|
|
ac_prev=srcdir ;;
|
568 |
|
|
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
569 |
|
|
srcdir=$ac_optarg ;;
|
570 |
|
|
|
571 |
|
|
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
572 |
|
|
| --syscon | --sysco | --sysc | --sys | --sy)
|
573 |
|
|
ac_prev=sysconfdir ;;
|
574 |
|
|
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
575 |
|
|
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
576 |
|
|
sysconfdir=$ac_optarg ;;
|
577 |
|
|
|
578 |
|
|
-target | --target | --targe | --targ | --tar | --ta | --t)
|
579 |
|
|
ac_prev=target_alias ;;
|
580 |
|
|
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
581 |
|
|
target_alias=$ac_optarg ;;
|
582 |
|
|
|
583 |
|
|
-v | -verbose | --verbose | --verbos | --verbo | --verb)
|
584 |
|
|
verbose=yes ;;
|
585 |
|
|
|
586 |
|
|
-version | --version | --versio | --versi | --vers | -V)
|
587 |
|
|
ac_init_version=: ;;
|
588 |
|
|
|
589 |
|
|
-with-* | --with-*)
|
590 |
|
|
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
591 |
|
|
# Reject names that are not valid shell variable names.
|
592 |
|
|
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
593 |
|
|
{ echo "$as_me: error: invalid package name: $ac_package" >&2
|
594 |
|
|
{ (exit 1); exit 1; }; }
|
595 |
|
|
ac_package=`echo $ac_package| sed 's/-/_/g'`
|
596 |
|
|
case $ac_option in
|
597 |
|
|
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
598 |
|
|
*) ac_optarg=yes ;;
|
599 |
|
|
esac
|
600 |
|
|
eval "with_$ac_package='$ac_optarg'" ;;
|
601 |
|
|
|
602 |
|
|
-without-* | --without-*)
|
603 |
|
|
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
604 |
|
|
# Reject names that are not valid shell variable names.
|
605 |
|
|
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
606 |
|
|
{ echo "$as_me: error: invalid package name: $ac_package" >&2
|
607 |
|
|
{ (exit 1); exit 1; }; }
|
608 |
|
|
ac_package=`echo $ac_package | sed 's/-/_/g'`
|
609 |
|
|
eval "with_$ac_package=no" ;;
|
610 |
|
|
|
611 |
|
|
--x)
|
612 |
|
|
# Obsolete; use --with-x.
|
613 |
|
|
with_x=yes ;;
|
614 |
|
|
|
615 |
|
|
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
616 |
|
|
| --x-incl | --x-inc | --x-in | --x-i)
|
617 |
|
|
ac_prev=x_includes ;;
|
618 |
|
|
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
619 |
|
|
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
620 |
|
|
x_includes=$ac_optarg ;;
|
621 |
|
|
|
622 |
|
|
-x-libraries | --x-libraries | --x-librarie | --x-librari \
|
623 |
|
|
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
624 |
|
|
ac_prev=x_libraries ;;
|
625 |
|
|
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
626 |
|
|
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
627 |
|
|
x_libraries=$ac_optarg ;;
|
628 |
|
|
|
629 |
|
|
-*) { echo "$as_me: error: unrecognized option: $ac_option
|
630 |
|
|
Try \`$0 --help' for more information." >&2
|
631 |
|
|
{ (exit 1); exit 1; }; }
|
632 |
|
|
;;
|
633 |
|
|
|
634 |
|
|
*=*)
|
635 |
|
|
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
636 |
|
|
# Reject names that are not valid shell variable names.
|
637 |
|
|
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
638 |
|
|
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
639 |
|
|
{ (exit 1); exit 1; }; }
|
640 |
|
|
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
|
641 |
|
|
eval "$ac_envvar='$ac_optarg'"
|
642 |
|
|
export $ac_envvar ;;
|
643 |
|
|
|
644 |
|
|
*)
|
645 |
|
|
# FIXME: should be removed in autoconf 3.0.
|
646 |
|
|
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
647 |
|
|
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
648 |
|
|
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
649 |
|
|
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
650 |
|
|
;;
|
651 |
|
|
|
652 |
|
|
esac
|
653 |
|
|
done
|
654 |
|
|
|
655 |
|
|
if test -n "$ac_prev"; then
|
656 |
|
|
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
657 |
|
|
{ echo "$as_me: error: missing argument to $ac_option" >&2
|
658 |
|
|
{ (exit 1); exit 1; }; }
|
659 |
|
|
fi
|
660 |
|
|
|
661 |
|
|
# Be sure to have absolute paths.
|
662 |
|
|
for ac_var in exec_prefix prefix
|
663 |
|
|
do
|
664 |
|
|
eval ac_val=$`echo $ac_var`
|
665 |
|
|
case $ac_val in
|
666 |
|
|
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
|
667 |
|
|
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
668 |
|
|
{ (exit 1); exit 1; }; };;
|
669 |
|
|
esac
|
670 |
|
|
done
|
671 |
|
|
|
672 |
|
|
# Be sure to have absolute paths.
|
673 |
|
|
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
|
674 |
|
|
localstatedir libdir includedir oldincludedir infodir mandir
|
675 |
|
|
do
|
676 |
|
|
eval ac_val=$`echo $ac_var`
|
677 |
|
|
case $ac_val in
|
678 |
|
|
[\\/$]* | ?:[\\/]* ) ;;
|
679 |
|
|
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
680 |
|
|
{ (exit 1); exit 1; }; };;
|
681 |
|
|
esac
|
682 |
|
|
done
|
683 |
|
|
|
684 |
|
|
# There might be people who depend on the old broken behavior: `$host'
|
685 |
|
|
# used to hold the argument of --host etc.
|
686 |
|
|
# FIXME: To remove some day.
|
687 |
|
|
build=$build_alias
|
688 |
|
|
host=$host_alias
|
689 |
|
|
target=$target_alias
|
690 |
|
|
|
691 |
|
|
# FIXME: To remove some day.
|
692 |
|
|
if test "x$host_alias" != x; then
|
693 |
|
|
if test "x$build_alias" = x; then
|
694 |
|
|
cross_compiling=maybe
|
695 |
|
|
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
696 |
|
|
If a cross compiler is detected then cross compile mode will be used." >&2
|
697 |
|
|
elif test "x$build_alias" != "x$host_alias"; then
|
698 |
|
|
cross_compiling=yes
|
699 |
|
|
fi
|
700 |
|
|
fi
|
701 |
|
|
|
702 |
|
|
ac_tool_prefix=
|
703 |
|
|
test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
704 |
|
|
|
705 |
|
|
test "$silent" = yes && exec 6>/dev/null
|
706 |
|
|
|
707 |
|
|
|
708 |
|
|
# Find the source files, if location was not specified.
|
709 |
|
|
if test -z "$srcdir"; then
|
710 |
|
|
ac_srcdir_defaulted=yes
|
711 |
|
|
# Try the directory containing this script, then its parent.
|
712 |
|
|
ac_confdir=`(dirname "$0") 2>/dev/null ||
|
713 |
|
|
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
714 |
|
|
X"$0" : 'X\(//\)[^/]' \| \
|
715 |
|
|
X"$0" : 'X\(//\)$' \| \
|
716 |
|
|
X"$0" : 'X\(/\)' \| \
|
717 |
|
|
. : '\(.\)' 2>/dev/null ||
|
718 |
|
|
echo X"$0" |
|
719 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
720 |
|
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
721 |
|
|
/^X\(\/\/\)$/{ s//\1/; q; }
|
722 |
|
|
/^X\(\/\).*/{ s//\1/; q; }
|
723 |
|
|
s/.*/./; q'`
|
724 |
|
|
srcdir=$ac_confdir
|
725 |
|
|
if test ! -r $srcdir/$ac_unique_file; then
|
726 |
|
|
srcdir=..
|
727 |
|
|
fi
|
728 |
|
|
else
|
729 |
|
|
ac_srcdir_defaulted=no
|
730 |
|
|
fi
|
731 |
|
|
if test ! -r $srcdir/$ac_unique_file; then
|
732 |
|
|
if test "$ac_srcdir_defaulted" = yes; then
|
733 |
|
|
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
|
734 |
|
|
{ (exit 1); exit 1; }; }
|
735 |
|
|
else
|
736 |
|
|
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
737 |
|
|
{ (exit 1); exit 1; }; }
|
738 |
|
|
fi
|
739 |
|
|
fi
|
740 |
|
|
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
|
741 |
|
|
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
|
742 |
|
|
{ (exit 1); exit 1; }; }
|
743 |
|
|
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
|
744 |
|
|
ac_env_build_alias_set=${build_alias+set}
|
745 |
|
|
ac_env_build_alias_value=$build_alias
|
746 |
|
|
ac_cv_env_build_alias_set=${build_alias+set}
|
747 |
|
|
ac_cv_env_build_alias_value=$build_alias
|
748 |
|
|
ac_env_host_alias_set=${host_alias+set}
|
749 |
|
|
ac_env_host_alias_value=$host_alias
|
750 |
|
|
ac_cv_env_host_alias_set=${host_alias+set}
|
751 |
|
|
ac_cv_env_host_alias_value=$host_alias
|
752 |
|
|
ac_env_target_alias_set=${target_alias+set}
|
753 |
|
|
ac_env_target_alias_value=$target_alias
|
754 |
|
|
ac_cv_env_target_alias_set=${target_alias+set}
|
755 |
|
|
ac_cv_env_target_alias_value=$target_alias
|
756 |
|
|
ac_env_CC_set=${CC+set}
|
757 |
|
|
ac_env_CC_value=$CC
|
758 |
|
|
ac_cv_env_CC_set=${CC+set}
|
759 |
|
|
ac_cv_env_CC_value=$CC
|
760 |
|
|
ac_env_CFLAGS_set=${CFLAGS+set}
|
761 |
|
|
ac_env_CFLAGS_value=$CFLAGS
|
762 |
|
|
ac_cv_env_CFLAGS_set=${CFLAGS+set}
|
763 |
|
|
ac_cv_env_CFLAGS_value=$CFLAGS
|
764 |
|
|
ac_env_LDFLAGS_set=${LDFLAGS+set}
|
765 |
|
|
ac_env_LDFLAGS_value=$LDFLAGS
|
766 |
|
|
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
|
767 |
|
|
ac_cv_env_LDFLAGS_value=$LDFLAGS
|
768 |
|
|
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
|
769 |
|
|
ac_env_CPPFLAGS_value=$CPPFLAGS
|
770 |
|
|
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
|
771 |
|
|
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
|
772 |
|
|
ac_env_CPP_set=${CPP+set}
|
773 |
|
|
ac_env_CPP_value=$CPP
|
774 |
|
|
ac_cv_env_CPP_set=${CPP+set}
|
775 |
|
|
ac_cv_env_CPP_value=$CPP
|
776 |
|
|
|
777 |
|
|
#
|
778 |
|
|
# Report the --help message.
|
779 |
|
|
#
|
780 |
|
|
if test "$ac_init_help" = "long"; then
|
781 |
|
|
# Omit some internal or obsolete options to make the list less imposing.
|
782 |
|
|
# This message is too long to be a string in the A/UX 3.1 sh.
|
783 |
|
|
cat <<_ACEOF
|
784 |
|
|
\`configure' configures readline 5.1-release to adapt to many kinds of systems.
|
785 |
|
|
|
786 |
|
|
Usage: $0 [OPTION]... [VAR=VALUE]...
|
787 |
|
|
|
788 |
|
|
To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
789 |
|
|
VAR=VALUE. See below for descriptions of some of the useful variables.
|
790 |
|
|
|
791 |
|
|
Defaults for the options are specified in brackets.
|
792 |
|
|
|
793 |
|
|
Configuration:
|
794 |
|
|
-h, --help display this help and exit
|
795 |
|
|
--help=short display options specific to this package
|
796 |
|
|
--help=recursive display the short help of all the included packages
|
797 |
|
|
-V, --version display version information and exit
|
798 |
|
|
-q, --quiet, --silent do not print \`checking...' messages
|
799 |
|
|
--cache-file=FILE cache test results in FILE [disabled]
|
800 |
|
|
-C, --config-cache alias for \`--cache-file=config.cache'
|
801 |
|
|
-n, --no-create do not create output files
|
802 |
|
|
--srcdir=DIR find the sources in DIR [configure dir or \`..']
|
803 |
|
|
|
804 |
|
|
_ACEOF
|
805 |
|
|
|
806 |
|
|
cat <<_ACEOF
|
807 |
|
|
Installation directories:
|
808 |
|
|
--prefix=PREFIX install architecture-independent files in PREFIX
|
809 |
|
|
[$ac_default_prefix]
|
810 |
|
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
811 |
|
|
[PREFIX]
|
812 |
|
|
|
813 |
|
|
By default, \`make install' will install all the files in
|
814 |
|
|
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
815 |
|
|
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
816 |
|
|
for instance \`--prefix=\$HOME'.
|
817 |
|
|
|
818 |
|
|
For better control, use the options below.
|
819 |
|
|
|
820 |
|
|
Fine tuning of the installation directories:
|
821 |
|
|
--bindir=DIR user executables [EPREFIX/bin]
|
822 |
|
|
--sbindir=DIR system admin executables [EPREFIX/sbin]
|
823 |
|
|
--libexecdir=DIR program executables [EPREFIX/libexec]
|
824 |
|
|
--datadir=DIR read-only architecture-independent data [PREFIX/share]
|
825 |
|
|
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
826 |
|
|
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
827 |
|
|
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
828 |
|
|
--libdir=DIR object code libraries [EPREFIX/lib]
|
829 |
|
|
--includedir=DIR C header files [PREFIX/include]
|
830 |
|
|
--oldincludedir=DIR C header files for non-gcc [/usr/include]
|
831 |
|
|
--infodir=DIR info documentation [PREFIX/info]
|
832 |
|
|
--mandir=DIR man documentation [PREFIX/man]
|
833 |
|
|
_ACEOF
|
834 |
|
|
|
835 |
|
|
cat <<\_ACEOF
|
836 |
|
|
|
837 |
|
|
System types:
|
838 |
|
|
--build=BUILD configure for building on BUILD [guessed]
|
839 |
|
|
--host=HOST cross-compile to build programs to run on HOST [BUILD]
|
840 |
|
|
_ACEOF
|
841 |
|
|
fi
|
842 |
|
|
|
843 |
|
|
if test -n "$ac_init_help"; then
|
844 |
|
|
case $ac_init_help in
|
845 |
|
|
short | recursive ) echo "Configuration of readline 5.1-release:";;
|
846 |
|
|
esac
|
847 |
|
|
cat <<\_ACEOF
|
848 |
|
|
|
849 |
|
|
Optional Features:
|
850 |
|
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
851 |
|
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
852 |
|
|
--enable-multibyte enable multibyte characters if OS supports them
|
853 |
|
|
--enable-static build static libraries [default=YES]
|
854 |
|
|
|
855 |
|
|
Optional Packages:
|
856 |
|
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
857 |
|
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
858 |
|
|
--with-curses use the curses library instead of the termcap
|
859 |
|
|
library
|
860 |
|
|
--with-purify configure to postprocess with purify
|
861 |
|
|
|
862 |
|
|
Some influential environment variables:
|
863 |
|
|
CC C compiler command
|
864 |
|
|
CFLAGS C compiler flags
|
865 |
|
|
LDFLAGS linker flags, e.g. -L if you have libraries in a
|
866 |
|
|
nonstandard directory
|
867 |
|
|
CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have
|
868 |
|
|
headers in a nonstandard directory
|
869 |
|
|
CPP C preprocessor
|
870 |
|
|
|
871 |
|
|
Use these variables to override the choices made by `configure' or to help
|
872 |
|
|
it to find libraries and programs with nonstandard names/locations.
|
873 |
|
|
|
874 |
|
|
Report bugs to .
|
875 |
|
|
_ACEOF
|
876 |
|
|
fi
|
877 |
|
|
|
878 |
|
|
if test "$ac_init_help" = "recursive"; then
|
879 |
|
|
# If there are subdirs, report their specific --help.
|
880 |
|
|
ac_popdir=`pwd`
|
881 |
|
|
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
882 |
|
|
test -d $ac_dir || continue
|
883 |
|
|
ac_builddir=.
|
884 |
|
|
|
885 |
|
|
if test "$ac_dir" != .; then
|
886 |
|
|
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
887 |
|
|
# A "../" for each directory in $ac_dir_suffix.
|
888 |
|
|
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
889 |
|
|
else
|
890 |
|
|
ac_dir_suffix= ac_top_builddir=
|
891 |
|
|
fi
|
892 |
|
|
|
893 |
|
|
case $srcdir in
|
894 |
|
|
.) # No --srcdir option. We are building in place.
|
895 |
|
|
ac_srcdir=.
|
896 |
|
|
if test -z "$ac_top_builddir"; then
|
897 |
|
|
ac_top_srcdir=.
|
898 |
|
|
else
|
899 |
|
|
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
900 |
|
|
fi ;;
|
901 |
|
|
[\\/]* | ?:[\\/]* ) # Absolute path.
|
902 |
|
|
ac_srcdir=$srcdir$ac_dir_suffix;
|
903 |
|
|
ac_top_srcdir=$srcdir ;;
|
904 |
|
|
*) # Relative path.
|
905 |
|
|
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
906 |
|
|
ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
907 |
|
|
esac
|
908 |
|
|
|
909 |
|
|
# Do not use `cd foo && pwd` to compute absolute paths, because
|
910 |
|
|
# the directories may not exist.
|
911 |
|
|
case `pwd` in
|
912 |
|
|
.) ac_abs_builddir="$ac_dir";;
|
913 |
|
|
*)
|
914 |
|
|
case "$ac_dir" in
|
915 |
|
|
.) ac_abs_builddir=`pwd`;;
|
916 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
917 |
|
|
*) ac_abs_builddir=`pwd`/"$ac_dir";;
|
918 |
|
|
esac;;
|
919 |
|
|
esac
|
920 |
|
|
case $ac_abs_builddir in
|
921 |
|
|
.) ac_abs_top_builddir=${ac_top_builddir}.;;
|
922 |
|
|
*)
|
923 |
|
|
case ${ac_top_builddir}. in
|
924 |
|
|
.) ac_abs_top_builddir=$ac_abs_builddir;;
|
925 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
926 |
|
|
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
927 |
|
|
esac;;
|
928 |
|
|
esac
|
929 |
|
|
case $ac_abs_builddir in
|
930 |
|
|
.) ac_abs_srcdir=$ac_srcdir;;
|
931 |
|
|
*)
|
932 |
|
|
case $ac_srcdir in
|
933 |
|
|
.) ac_abs_srcdir=$ac_abs_builddir;;
|
934 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
935 |
|
|
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
936 |
|
|
esac;;
|
937 |
|
|
esac
|
938 |
|
|
case $ac_abs_builddir in
|
939 |
|
|
.) ac_abs_top_srcdir=$ac_top_srcdir;;
|
940 |
|
|
*)
|
941 |
|
|
case $ac_top_srcdir in
|
942 |
|
|
.) ac_abs_top_srcdir=$ac_abs_builddir;;
|
943 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
944 |
|
|
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
945 |
|
|
esac;;
|
946 |
|
|
esac
|
947 |
|
|
|
948 |
|
|
cd $ac_dir
|
949 |
|
|
# Check for guested configure; otherwise get Cygnus style configure.
|
950 |
|
|
if test -f $ac_srcdir/configure.gnu; then
|
951 |
|
|
echo
|
952 |
|
|
$SHELL $ac_srcdir/configure.gnu --help=recursive
|
953 |
|
|
elif test -f $ac_srcdir/configure; then
|
954 |
|
|
echo
|
955 |
|
|
$SHELL $ac_srcdir/configure --help=recursive
|
956 |
|
|
elif test -f $ac_srcdir/configure.ac ||
|
957 |
|
|
test -f $ac_srcdir/configure.in; then
|
958 |
|
|
echo
|
959 |
|
|
$ac_configure --help
|
960 |
|
|
else
|
961 |
|
|
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
962 |
|
|
fi
|
963 |
|
|
cd $ac_popdir
|
964 |
|
|
done
|
965 |
|
|
fi
|
966 |
|
|
|
967 |
|
|
test -n "$ac_init_help" && exit 0
|
968 |
|
|
if $ac_init_version; then
|
969 |
|
|
cat <<\_ACEOF
|
970 |
|
|
readline configure 5.1-release
|
971 |
|
|
generated by GNU Autoconf 2.59
|
972 |
|
|
|
973 |
|
|
Copyright (C) 2003 Free Software Foundation, Inc.
|
974 |
|
|
This configure script is free software; the Free Software Foundation
|
975 |
|
|
gives unlimited permission to copy, distribute and modify it.
|
976 |
|
|
_ACEOF
|
977 |
|
|
exit 0
|
978 |
|
|
fi
|
979 |
|
|
exec 5>config.log
|
980 |
|
|
cat >&5 <<_ACEOF
|
981 |
|
|
This file contains any messages produced by compilers while
|
982 |
|
|
running configure, to aid debugging if configure makes a mistake.
|
983 |
|
|
|
984 |
|
|
It was created by readline $as_me 5.1-release, which was
|
985 |
|
|
generated by GNU Autoconf 2.59. Invocation command line was
|
986 |
|
|
|
987 |
|
|
$ $0 $@
|
988 |
|
|
|
989 |
|
|
_ACEOF
|
990 |
|
|
{
|
991 |
|
|
cat <<_ASUNAME
|
992 |
|
|
## --------- ##
|
993 |
|
|
## Platform. ##
|
994 |
|
|
## --------- ##
|
995 |
|
|
|
996 |
|
|
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
997 |
|
|
uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
998 |
|
|
uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
999 |
|
|
uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
1000 |
|
|
uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
1001 |
|
|
|
1002 |
|
|
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
1003 |
|
|
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
1004 |
|
|
|
1005 |
|
|
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
1006 |
|
|
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
1007 |
|
|
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
1008 |
|
|
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
1009 |
|
|
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
1010 |
|
|
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
1011 |
|
|
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
1012 |
|
|
|
1013 |
|
|
_ASUNAME
|
1014 |
|
|
|
1015 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
1016 |
|
|
for as_dir in $PATH
|
1017 |
|
|
do
|
1018 |
|
|
IFS=$as_save_IFS
|
1019 |
|
|
test -z "$as_dir" && as_dir=.
|
1020 |
|
|
echo "PATH: $as_dir"
|
1021 |
|
|
done
|
1022 |
|
|
|
1023 |
|
|
} >&5
|
1024 |
|
|
|
1025 |
|
|
cat >&5 <<_ACEOF
|
1026 |
|
|
|
1027 |
|
|
|
1028 |
|
|
## ----------- ##
|
1029 |
|
|
## Core tests. ##
|
1030 |
|
|
## ----------- ##
|
1031 |
|
|
|
1032 |
|
|
_ACEOF
|
1033 |
|
|
|
1034 |
|
|
|
1035 |
|
|
# Keep a trace of the command line.
|
1036 |
|
|
# Strip out --no-create and --no-recursion so they do not pile up.
|
1037 |
|
|
# Strip out --silent because we don't want to record it for future runs.
|
1038 |
|
|
# Also quote any args containing shell meta-characters.
|
1039 |
|
|
# Make two passes to allow for proper duplicate-argument suppression.
|
1040 |
|
|
ac_configure_args=
|
1041 |
|
|
ac_configure_args0=
|
1042 |
|
|
ac_configure_args1=
|
1043 |
|
|
ac_sep=
|
1044 |
|
|
ac_must_keep_next=false
|
1045 |
|
|
for ac_pass in 1 2
|
1046 |
|
|
do
|
1047 |
|
|
for ac_arg
|
1048 |
|
|
do
|
1049 |
|
|
case $ac_arg in
|
1050 |
|
|
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
1051 |
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
1052 |
|
|
| -silent | --silent | --silen | --sile | --sil)
|
1053 |
|
|
continue ;;
|
1054 |
|
|
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
1055 |
|
|
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
1056 |
|
|
esac
|
1057 |
|
|
case $ac_pass in
|
1058 |
|
|
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
1059 |
|
|
2)
|
1060 |
|
|
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
1061 |
|
|
if test $ac_must_keep_next = true; then
|
1062 |
|
|
ac_must_keep_next=false # Got value, back to normal.
|
1063 |
|
|
else
|
1064 |
|
|
case $ac_arg in
|
1065 |
|
|
*=* | --config-cache | -C | -disable-* | --disable-* \
|
1066 |
|
|
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
1067 |
|
|
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
1068 |
|
|
| -with-* | --with-* | -without-* | --without-* | --x)
|
1069 |
|
|
case "$ac_configure_args0 " in
|
1070 |
|
|
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
1071 |
|
|
esac
|
1072 |
|
|
;;
|
1073 |
|
|
-* ) ac_must_keep_next=true ;;
|
1074 |
|
|
esac
|
1075 |
|
|
fi
|
1076 |
|
|
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
1077 |
|
|
# Get rid of the leading space.
|
1078 |
|
|
ac_sep=" "
|
1079 |
|
|
;;
|
1080 |
|
|
esac
|
1081 |
|
|
done
|
1082 |
|
|
done
|
1083 |
|
|
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
1084 |
|
|
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
1085 |
|
|
|
1086 |
|
|
# When interrupted or exit'd, cleanup temporary files, and complete
|
1087 |
|
|
# config.log. We remove comments because anyway the quotes in there
|
1088 |
|
|
# would cause problems or look ugly.
|
1089 |
|
|
# WARNING: Be sure not to use single quotes in there, as some shells,
|
1090 |
|
|
# such as our DU 5.0 friend, will then `close' the trap.
|
1091 |
|
|
trap 'exit_status=$?
|
1092 |
|
|
# Save into config.log some information that might help in debugging.
|
1093 |
|
|
{
|
1094 |
|
|
echo
|
1095 |
|
|
|
1096 |
|
|
cat <<\_ASBOX
|
1097 |
|
|
## ---------------- ##
|
1098 |
|
|
## Cache variables. ##
|
1099 |
|
|
## ---------------- ##
|
1100 |
|
|
_ASBOX
|
1101 |
|
|
echo
|
1102 |
|
|
# The following way of writing the cache mishandles newlines in values,
|
1103 |
|
|
{
|
1104 |
|
|
(set) 2>&1 |
|
1105 |
|
|
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
1106 |
|
|
*ac_space=\ *)
|
1107 |
|
|
sed -n \
|
1108 |
|
|
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
1109 |
|
|
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
1110 |
|
|
;;
|
1111 |
|
|
*)
|
1112 |
|
|
sed -n \
|
1113 |
|
|
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
1114 |
|
|
;;
|
1115 |
|
|
esac;
|
1116 |
|
|
}
|
1117 |
|
|
echo
|
1118 |
|
|
|
1119 |
|
|
cat <<\_ASBOX
|
1120 |
|
|
## ----------------- ##
|
1121 |
|
|
## Output variables. ##
|
1122 |
|
|
## ----------------- ##
|
1123 |
|
|
_ASBOX
|
1124 |
|
|
echo
|
1125 |
|
|
for ac_var in $ac_subst_vars
|
1126 |
|
|
do
|
1127 |
|
|
eval ac_val=$`echo $ac_var`
|
1128 |
|
|
echo "$ac_var='"'"'$ac_val'"'"'"
|
1129 |
|
|
done | sort
|
1130 |
|
|
echo
|
1131 |
|
|
|
1132 |
|
|
if test -n "$ac_subst_files"; then
|
1133 |
|
|
cat <<\_ASBOX
|
1134 |
|
|
## ------------- ##
|
1135 |
|
|
## Output files. ##
|
1136 |
|
|
## ------------- ##
|
1137 |
|
|
_ASBOX
|
1138 |
|
|
echo
|
1139 |
|
|
for ac_var in $ac_subst_files
|
1140 |
|
|
do
|
1141 |
|
|
eval ac_val=$`echo $ac_var`
|
1142 |
|
|
echo "$ac_var='"'"'$ac_val'"'"'"
|
1143 |
|
|
done | sort
|
1144 |
|
|
echo
|
1145 |
|
|
fi
|
1146 |
|
|
|
1147 |
|
|
if test -s confdefs.h; then
|
1148 |
|
|
cat <<\_ASBOX
|
1149 |
|
|
## ----------- ##
|
1150 |
|
|
## confdefs.h. ##
|
1151 |
|
|
## ----------- ##
|
1152 |
|
|
_ASBOX
|
1153 |
|
|
echo
|
1154 |
|
|
sed "/^$/d" confdefs.h | sort
|
1155 |
|
|
echo
|
1156 |
|
|
fi
|
1157 |
|
|
test "$ac_signal" != 0 &&
|
1158 |
|
|
echo "$as_me: caught signal $ac_signal"
|
1159 |
|
|
echo "$as_me: exit $exit_status"
|
1160 |
|
|
} >&5
|
1161 |
|
|
rm -f core *.core &&
|
1162 |
|
|
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
1163 |
|
|
exit $exit_status
|
1164 |
|
|
' 0
|
1165 |
|
|
for ac_signal in 1 2 13 15; do
|
1166 |
|
|
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
1167 |
|
|
done
|
1168 |
|
|
ac_signal=0
|
1169 |
|
|
|
1170 |
|
|
# confdefs.h avoids OS command line length limits that DEFS can exceed.
|
1171 |
|
|
rm -rf conftest* confdefs.h
|
1172 |
|
|
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
1173 |
|
|
echo >confdefs.h
|
1174 |
|
|
|
1175 |
|
|
# Predefined preprocessor variables.
|
1176 |
|
|
|
1177 |
|
|
cat >>confdefs.h <<_ACEOF
|
1178 |
|
|
#define PACKAGE_NAME "$PACKAGE_NAME"
|
1179 |
|
|
_ACEOF
|
1180 |
|
|
|
1181 |
|
|
|
1182 |
|
|
cat >>confdefs.h <<_ACEOF
|
1183 |
|
|
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
1184 |
|
|
_ACEOF
|
1185 |
|
|
|
1186 |
|
|
|
1187 |
|
|
cat >>confdefs.h <<_ACEOF
|
1188 |
|
|
#define PACKAGE_VERSION "$PACKAGE_VERSION"
|
1189 |
|
|
_ACEOF
|
1190 |
|
|
|
1191 |
|
|
|
1192 |
|
|
cat >>confdefs.h <<_ACEOF
|
1193 |
|
|
#define PACKAGE_STRING "$PACKAGE_STRING"
|
1194 |
|
|
_ACEOF
|
1195 |
|
|
|
1196 |
|
|
|
1197 |
|
|
cat >>confdefs.h <<_ACEOF
|
1198 |
|
|
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
1199 |
|
|
_ACEOF
|
1200 |
|
|
|
1201 |
|
|
|
1202 |
|
|
# Let the site file select an alternate cache file if it wants to.
|
1203 |
|
|
# Prefer explicitly selected file to automatically selected ones.
|
1204 |
|
|
if test -z "$CONFIG_SITE"; then
|
1205 |
|
|
if test "x$prefix" != xNONE; then
|
1206 |
|
|
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
1207 |
|
|
else
|
1208 |
|
|
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
1209 |
|
|
fi
|
1210 |
|
|
fi
|
1211 |
|
|
for ac_site_file in $CONFIG_SITE; do
|
1212 |
|
|
if test -r "$ac_site_file"; then
|
1213 |
|
|
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
1214 |
|
|
echo "$as_me: loading site script $ac_site_file" >&6;}
|
1215 |
|
|
sed 's/^/| /' "$ac_site_file" >&5
|
1216 |
|
|
. "$ac_site_file"
|
1217 |
|
|
fi
|
1218 |
|
|
done
|
1219 |
|
|
|
1220 |
|
|
if test -r "$cache_file"; then
|
1221 |
|
|
# Some versions of bash will fail to source /dev/null (special
|
1222 |
|
|
# files actually), so we avoid doing that.
|
1223 |
|
|
if test -f "$cache_file"; then
|
1224 |
|
|
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
1225 |
|
|
echo "$as_me: loading cache $cache_file" >&6;}
|
1226 |
|
|
case $cache_file in
|
1227 |
|
|
[\\/]* | ?:[\\/]* ) . $cache_file;;
|
1228 |
|
|
*) . ./$cache_file;;
|
1229 |
|
|
esac
|
1230 |
|
|
fi
|
1231 |
|
|
else
|
1232 |
|
|
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
1233 |
|
|
echo "$as_me: creating cache $cache_file" >&6;}
|
1234 |
|
|
>$cache_file
|
1235 |
|
|
fi
|
1236 |
|
|
|
1237 |
|
|
# Check that the precious variables saved in the cache have kept the same
|
1238 |
|
|
# value.
|
1239 |
|
|
ac_cache_corrupted=false
|
1240 |
|
|
for ac_var in `(set) 2>&1 |
|
1241 |
|
|
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
1242 |
|
|
eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
1243 |
|
|
eval ac_new_set=\$ac_env_${ac_var}_set
|
1244 |
|
|
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
1245 |
|
|
eval ac_new_val="\$ac_env_${ac_var}_value"
|
1246 |
|
|
case $ac_old_set,$ac_new_set in
|
1247 |
|
|
set,)
|
1248 |
|
|
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
1249 |
|
|
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
1250 |
|
|
ac_cache_corrupted=: ;;
|
1251 |
|
|
,set)
|
1252 |
|
|
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
1253 |
|
|
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
1254 |
|
|
ac_cache_corrupted=: ;;
|
1255 |
|
|
,);;
|
1256 |
|
|
*)
|
1257 |
|
|
if test "x$ac_old_val" != "x$ac_new_val"; then
|
1258 |
|
|
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
1259 |
|
|
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
1260 |
|
|
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
1261 |
|
|
echo "$as_me: former value: $ac_old_val" >&2;}
|
1262 |
|
|
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
1263 |
|
|
echo "$as_me: current value: $ac_new_val" >&2;}
|
1264 |
|
|
ac_cache_corrupted=:
|
1265 |
|
|
fi;;
|
1266 |
|
|
esac
|
1267 |
|
|
# Pass precious variables to config.status.
|
1268 |
|
|
if test "$ac_new_set" = set; then
|
1269 |
|
|
case $ac_new_val in
|
1270 |
|
|
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
1271 |
|
|
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
1272 |
|
|
*) ac_arg=$ac_var=$ac_new_val ;;
|
1273 |
|
|
esac
|
1274 |
|
|
case " $ac_configure_args " in
|
1275 |
|
|
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
1276 |
|
|
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
1277 |
|
|
esac
|
1278 |
|
|
fi
|
1279 |
|
|
done
|
1280 |
|
|
if $ac_cache_corrupted; then
|
1281 |
|
|
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
1282 |
|
|
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
1283 |
|
|
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
1284 |
|
|
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
1285 |
|
|
{ (exit 1); exit 1; }; }
|
1286 |
|
|
fi
|
1287 |
|
|
|
1288 |
|
|
ac_ext=c
|
1289 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
1290 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
1291 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
1292 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
1293 |
|
|
|
1294 |
|
|
|
1295 |
|
|
|
1296 |
|
|
|
1297 |
|
|
|
1298 |
|
|
|
1299 |
|
|
|
1300 |
|
|
|
1301 |
|
|
|
1302 |
|
|
|
1303 |
|
|
|
1304 |
|
|
|
1305 |
|
|
|
1306 |
|
|
|
1307 |
|
|
|
1308 |
|
|
|
1309 |
|
|
|
1310 |
|
|
|
1311 |
|
|
|
1312 |
|
|
|
1313 |
|
|
|
1314 |
|
|
|
1315 |
|
|
|
1316 |
|
|
|
1317 |
|
|
|
1318 |
|
|
|
1319 |
|
|
|
1320 |
|
|
|
1321 |
|
|
|
1322 |
|
|
|
1323 |
|
|
|
1324 |
|
|
ac_aux_dir=
|
1325 |
|
|
for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
|
1326 |
|
|
if test -f $ac_dir/install-sh; then
|
1327 |
|
|
ac_aux_dir=$ac_dir
|
1328 |
|
|
ac_install_sh="$ac_aux_dir/install-sh -c"
|
1329 |
|
|
break
|
1330 |
|
|
elif test -f $ac_dir/install.sh; then
|
1331 |
|
|
ac_aux_dir=$ac_dir
|
1332 |
|
|
ac_install_sh="$ac_aux_dir/install.sh -c"
|
1333 |
|
|
break
|
1334 |
|
|
elif test -f $ac_dir/shtool; then
|
1335 |
|
|
ac_aux_dir=$ac_dir
|
1336 |
|
|
ac_install_sh="$ac_aux_dir/shtool install -c"
|
1337 |
|
|
break
|
1338 |
|
|
fi
|
1339 |
|
|
done
|
1340 |
|
|
if test -z "$ac_aux_dir"; then
|
1341 |
|
|
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
|
1342 |
|
|
echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
|
1343 |
|
|
{ (exit 1); exit 1; }; }
|
1344 |
|
|
fi
|
1345 |
|
|
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
1346 |
|
|
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
1347 |
|
|
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
1348 |
|
|
|
1349 |
|
|
ac_config_headers="$ac_config_headers config.h"
|
1350 |
|
|
|
1351 |
|
|
|
1352 |
|
|
LIBVERSION=5.1
|
1353 |
|
|
|
1354 |
|
|
# Make sure we can run config.sub.
|
1355 |
|
|
$ac_config_sub sun4 >/dev/null 2>&1 ||
|
1356 |
|
|
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
|
1357 |
|
|
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
|
1358 |
|
|
{ (exit 1); exit 1; }; }
|
1359 |
|
|
|
1360 |
|
|
echo "$as_me:$LINENO: checking build system type" >&5
|
1361 |
|
|
echo $ECHO_N "checking build system type... $ECHO_C" >&6
|
1362 |
|
|
if test "${ac_cv_build+set}" = set; then
|
1363 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
1364 |
|
|
else
|
1365 |
|
|
ac_cv_build_alias=$build_alias
|
1366 |
|
|
test -z "$ac_cv_build_alias" &&
|
1367 |
|
|
ac_cv_build_alias=`$ac_config_guess`
|
1368 |
|
|
test -z "$ac_cv_build_alias" &&
|
1369 |
|
|
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
1370 |
|
|
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
1371 |
|
|
{ (exit 1); exit 1; }; }
|
1372 |
|
|
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
|
1373 |
|
|
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
|
1374 |
|
|
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
|
1375 |
|
|
{ (exit 1); exit 1; }; }
|
1376 |
|
|
|
1377 |
|
|
fi
|
1378 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
1379 |
|
|
echo "${ECHO_T}$ac_cv_build" >&6
|
1380 |
|
|
build=$ac_cv_build
|
1381 |
|
|
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
1382 |
|
|
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
1383 |
|
|
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
1384 |
|
|
|
1385 |
|
|
|
1386 |
|
|
echo "$as_me:$LINENO: checking host system type" >&5
|
1387 |
|
|
echo $ECHO_N "checking host system type... $ECHO_C" >&6
|
1388 |
|
|
if test "${ac_cv_host+set}" = set; then
|
1389 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
1390 |
|
|
else
|
1391 |
|
|
ac_cv_host_alias=$host_alias
|
1392 |
|
|
test -z "$ac_cv_host_alias" &&
|
1393 |
|
|
ac_cv_host_alias=$ac_cv_build_alias
|
1394 |
|
|
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
|
1395 |
|
|
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
|
1396 |
|
|
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
|
1397 |
|
|
{ (exit 1); exit 1; }; }
|
1398 |
|
|
|
1399 |
|
|
fi
|
1400 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
1401 |
|
|
echo "${ECHO_T}$ac_cv_host" >&6
|
1402 |
|
|
host=$ac_cv_host
|
1403 |
|
|
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
1404 |
|
|
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
1405 |
|
|
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
1406 |
|
|
|
1407 |
|
|
|
1408 |
|
|
|
1409 |
|
|
opt_curses=no
|
1410 |
|
|
opt_purify=no
|
1411 |
|
|
|
1412 |
|
|
|
1413 |
|
|
# Check whether --with-curses or --without-curses was given.
|
1414 |
|
|
if test "${with_curses+set}" = set; then
|
1415 |
|
|
withval="$with_curses"
|
1416 |
|
|
opt_curses=$withval
|
1417 |
|
|
fi;
|
1418 |
|
|
|
1419 |
|
|
# Check whether --with-purify or --without-purify was given.
|
1420 |
|
|
if test "${with_purify+set}" = set; then
|
1421 |
|
|
withval="$with_purify"
|
1422 |
|
|
opt_purify=$withval
|
1423 |
|
|
fi;
|
1424 |
|
|
|
1425 |
|
|
if test "$opt_curses" = "yes"; then
|
1426 |
|
|
prefer_curses=yes
|
1427 |
|
|
fi
|
1428 |
|
|
|
1429 |
|
|
if test "$opt_purify" = yes; then
|
1430 |
|
|
PURIFY="purify"
|
1431 |
|
|
else
|
1432 |
|
|
PURIFY=
|
1433 |
|
|
fi
|
1434 |
|
|
|
1435 |
|
|
opt_multibyte=yes
|
1436 |
|
|
opt_static_libs=yes
|
1437 |
|
|
opt_shared_libs=no
|
1438 |
|
|
|
1439 |
|
|
# Check whether --enable-multibyte or --disable-multibyte was given.
|
1440 |
|
|
if test "${enable_multibyte+set}" = set; then
|
1441 |
|
|
enableval="$enable_multibyte"
|
1442 |
|
|
opt_multibyte=$enableval
|
1443 |
|
|
fi;
|
1444 |
|
|
# Check whether --enable-static or --disable-static was given.
|
1445 |
|
|
if test "${enable_static+set}" = set; then
|
1446 |
|
|
enableval="$enable_static"
|
1447 |
|
|
opt_static_libs=$enableval
|
1448 |
|
|
fi;
|
1449 |
|
|
|
1450 |
|
|
if test $opt_multibyte = no; then
|
1451 |
|
|
cat >>confdefs.h <<\_ACEOF
|
1452 |
|
|
#define NO_MULTIBYTE_SUPPORT 1
|
1453 |
|
|
_ACEOF
|
1454 |
|
|
|
1455 |
|
|
fi
|
1456 |
|
|
|
1457 |
|
|
|
1458 |
|
|
|
1459 |
|
|
CROSS_COMPILE=
|
1460 |
|
|
if test "x$cross_compiling" = "xyes"; then
|
1461 |
|
|
case "${host}" in
|
1462 |
|
|
*-cygwin*)
|
1463 |
|
|
cross_cache=${srcdir}/cross-build/cygwin.cache
|
1464 |
|
|
;;
|
1465 |
|
|
*-mingw*)
|
1466 |
|
|
cross_cache=${srcdir}/cross-build/mingw.cache
|
1467 |
|
|
;;
|
1468 |
|
|
i[3456]86-*-beos*)
|
1469 |
|
|
cross_cache=${srcdir}/cross-build/x86-beos.cache
|
1470 |
|
|
;;
|
1471 |
|
|
*) echo "configure: cross-compiling for $host is not supported" >&2
|
1472 |
|
|
;;
|
1473 |
|
|
esac
|
1474 |
|
|
if test -n "${cross_cache}" && test -r "${cross_cache}"; then
|
1475 |
|
|
echo "loading cross-build cache file ${cross_cache}"
|
1476 |
|
|
. ${cross_cache}
|
1477 |
|
|
fi
|
1478 |
|
|
unset cross_cache
|
1479 |
|
|
CROSS_COMPILE='-DCROSS_COMPILING'
|
1480 |
|
|
|
1481 |
|
|
fi
|
1482 |
|
|
|
1483 |
|
|
echo ""
|
1484 |
|
|
echo "Beginning configuration for readline-$LIBVERSION for ${host_cpu}-${host_vendor}-${host_os}"
|
1485 |
|
|
echo ""
|
1486 |
|
|
|
1487 |
|
|
# We want these before the checks, so the checks can modify their values.
|
1488 |
|
|
test -z "$CFLAGS" && CFLAGS=-g auto_cflags=1
|
1489 |
|
|
|
1490 |
|
|
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
1491 |
|
|
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
1492 |
|
|
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
1493 |
|
|
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
1494 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
1495 |
|
|
else
|
1496 |
|
|
cat >conftest.make <<\_ACEOF
|
1497 |
|
|
all:
|
1498 |
|
|
@echo 'ac_maketemp="$(MAKE)"'
|
1499 |
|
|
_ACEOF
|
1500 |
|
|
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
1501 |
|
|
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
1502 |
|
|
if test -n "$ac_maketemp"; then
|
1503 |
|
|
eval ac_cv_prog_make_${ac_make}_set=yes
|
1504 |
|
|
else
|
1505 |
|
|
eval ac_cv_prog_make_${ac_make}_set=no
|
1506 |
|
|
fi
|
1507 |
|
|
rm -f conftest.make
|
1508 |
|
|
fi
|
1509 |
|
|
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
1510 |
|
|
echo "$as_me:$LINENO: result: yes" >&5
|
1511 |
|
|
echo "${ECHO_T}yes" >&6
|
1512 |
|
|
SET_MAKE=
|
1513 |
|
|
else
|
1514 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
1515 |
|
|
echo "${ECHO_T}no" >&6
|
1516 |
|
|
SET_MAKE="MAKE=${MAKE-make}"
|
1517 |
|
|
fi
|
1518 |
|
|
|
1519 |
|
|
ac_ext=c
|
1520 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
1521 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
1522 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
1523 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
1524 |
|
|
if test -n "$ac_tool_prefix"; then
|
1525 |
|
|
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
1526 |
|
|
set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
1527 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
1528 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
1529 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
1530 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
1531 |
|
|
else
|
1532 |
|
|
if test -n "$CC"; then
|
1533 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
1534 |
|
|
else
|
1535 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
1536 |
|
|
for as_dir in $PATH
|
1537 |
|
|
do
|
1538 |
|
|
IFS=$as_save_IFS
|
1539 |
|
|
test -z "$as_dir" && as_dir=.
|
1540 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
1541 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
1542 |
|
|
ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
1543 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
1544 |
|
|
break 2
|
1545 |
|
|
fi
|
1546 |
|
|
done
|
1547 |
|
|
done
|
1548 |
|
|
|
1549 |
|
|
fi
|
1550 |
|
|
fi
|
1551 |
|
|
CC=$ac_cv_prog_CC
|
1552 |
|
|
if test -n "$CC"; then
|
1553 |
|
|
echo "$as_me:$LINENO: result: $CC" >&5
|
1554 |
|
|
echo "${ECHO_T}$CC" >&6
|
1555 |
|
|
else
|
1556 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
1557 |
|
|
echo "${ECHO_T}no" >&6
|
1558 |
|
|
fi
|
1559 |
|
|
|
1560 |
|
|
fi
|
1561 |
|
|
if test -z "$ac_cv_prog_CC"; then
|
1562 |
|
|
ac_ct_CC=$CC
|
1563 |
|
|
# Extract the first word of "gcc", so it can be a program name with args.
|
1564 |
|
|
set dummy gcc; ac_word=$2
|
1565 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
1566 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
1567 |
|
|
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
1568 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
1569 |
|
|
else
|
1570 |
|
|
if test -n "$ac_ct_CC"; then
|
1571 |
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
1572 |
|
|
else
|
1573 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
1574 |
|
|
for as_dir in $PATH
|
1575 |
|
|
do
|
1576 |
|
|
IFS=$as_save_IFS
|
1577 |
|
|
test -z "$as_dir" && as_dir=.
|
1578 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
1579 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
1580 |
|
|
ac_cv_prog_ac_ct_CC="gcc"
|
1581 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
1582 |
|
|
break 2
|
1583 |
|
|
fi
|
1584 |
|
|
done
|
1585 |
|
|
done
|
1586 |
|
|
|
1587 |
|
|
fi
|
1588 |
|
|
fi
|
1589 |
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
1590 |
|
|
if test -n "$ac_ct_CC"; then
|
1591 |
|
|
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
1592 |
|
|
echo "${ECHO_T}$ac_ct_CC" >&6
|
1593 |
|
|
else
|
1594 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
1595 |
|
|
echo "${ECHO_T}no" >&6
|
1596 |
|
|
fi
|
1597 |
|
|
|
1598 |
|
|
CC=$ac_ct_CC
|
1599 |
|
|
else
|
1600 |
|
|
CC="$ac_cv_prog_CC"
|
1601 |
|
|
fi
|
1602 |
|
|
|
1603 |
|
|
if test -z "$CC"; then
|
1604 |
|
|
if test -n "$ac_tool_prefix"; then
|
1605 |
|
|
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
1606 |
|
|
set dummy ${ac_tool_prefix}cc; ac_word=$2
|
1607 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
1608 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
1609 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
1610 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
1611 |
|
|
else
|
1612 |
|
|
if test -n "$CC"; then
|
1613 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
1614 |
|
|
else
|
1615 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
1616 |
|
|
for as_dir in $PATH
|
1617 |
|
|
do
|
1618 |
|
|
IFS=$as_save_IFS
|
1619 |
|
|
test -z "$as_dir" && as_dir=.
|
1620 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
1621 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
1622 |
|
|
ac_cv_prog_CC="${ac_tool_prefix}cc"
|
1623 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
1624 |
|
|
break 2
|
1625 |
|
|
fi
|
1626 |
|
|
done
|
1627 |
|
|
done
|
1628 |
|
|
|
1629 |
|
|
fi
|
1630 |
|
|
fi
|
1631 |
|
|
CC=$ac_cv_prog_CC
|
1632 |
|
|
if test -n "$CC"; then
|
1633 |
|
|
echo "$as_me:$LINENO: result: $CC" >&5
|
1634 |
|
|
echo "${ECHO_T}$CC" >&6
|
1635 |
|
|
else
|
1636 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
1637 |
|
|
echo "${ECHO_T}no" >&6
|
1638 |
|
|
fi
|
1639 |
|
|
|
1640 |
|
|
fi
|
1641 |
|
|
if test -z "$ac_cv_prog_CC"; then
|
1642 |
|
|
ac_ct_CC=$CC
|
1643 |
|
|
# Extract the first word of "cc", so it can be a program name with args.
|
1644 |
|
|
set dummy cc; ac_word=$2
|
1645 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
1646 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
1647 |
|
|
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
1648 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
1649 |
|
|
else
|
1650 |
|
|
if test -n "$ac_ct_CC"; then
|
1651 |
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
1652 |
|
|
else
|
1653 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
1654 |
|
|
for as_dir in $PATH
|
1655 |
|
|
do
|
1656 |
|
|
IFS=$as_save_IFS
|
1657 |
|
|
test -z "$as_dir" && as_dir=.
|
1658 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
1659 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
1660 |
|
|
ac_cv_prog_ac_ct_CC="cc"
|
1661 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
1662 |
|
|
break 2
|
1663 |
|
|
fi
|
1664 |
|
|
done
|
1665 |
|
|
done
|
1666 |
|
|
|
1667 |
|
|
fi
|
1668 |
|
|
fi
|
1669 |
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
1670 |
|
|
if test -n "$ac_ct_CC"; then
|
1671 |
|
|
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
1672 |
|
|
echo "${ECHO_T}$ac_ct_CC" >&6
|
1673 |
|
|
else
|
1674 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
1675 |
|
|
echo "${ECHO_T}no" >&6
|
1676 |
|
|
fi
|
1677 |
|
|
|
1678 |
|
|
CC=$ac_ct_CC
|
1679 |
|
|
else
|
1680 |
|
|
CC="$ac_cv_prog_CC"
|
1681 |
|
|
fi
|
1682 |
|
|
|
1683 |
|
|
fi
|
1684 |
|
|
if test -z "$CC"; then
|
1685 |
|
|
# Extract the first word of "cc", so it can be a program name with args.
|
1686 |
|
|
set dummy cc; ac_word=$2
|
1687 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
1688 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
1689 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
1690 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
1691 |
|
|
else
|
1692 |
|
|
if test -n "$CC"; then
|
1693 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
1694 |
|
|
else
|
1695 |
|
|
ac_prog_rejected=no
|
1696 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
1697 |
|
|
for as_dir in $PATH
|
1698 |
|
|
do
|
1699 |
|
|
IFS=$as_save_IFS
|
1700 |
|
|
test -z "$as_dir" && as_dir=.
|
1701 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
1702 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
1703 |
|
|
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
1704 |
|
|
ac_prog_rejected=yes
|
1705 |
|
|
continue
|
1706 |
|
|
fi
|
1707 |
|
|
ac_cv_prog_CC="cc"
|
1708 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
1709 |
|
|
break 2
|
1710 |
|
|
fi
|
1711 |
|
|
done
|
1712 |
|
|
done
|
1713 |
|
|
|
1714 |
|
|
if test $ac_prog_rejected = yes; then
|
1715 |
|
|
# We found a bogon in the path, so make sure we never use it.
|
1716 |
|
|
set dummy $ac_cv_prog_CC
|
1717 |
|
|
shift
|
1718 |
|
|
if test $# != 0; then
|
1719 |
|
|
# We chose a different compiler from the bogus one.
|
1720 |
|
|
# However, it has the same basename, so the bogon will be chosen
|
1721 |
|
|
# first if we set CC to just the basename; use the full file name.
|
1722 |
|
|
shift
|
1723 |
|
|
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
1724 |
|
|
fi
|
1725 |
|
|
fi
|
1726 |
|
|
fi
|
1727 |
|
|
fi
|
1728 |
|
|
CC=$ac_cv_prog_CC
|
1729 |
|
|
if test -n "$CC"; then
|
1730 |
|
|
echo "$as_me:$LINENO: result: $CC" >&5
|
1731 |
|
|
echo "${ECHO_T}$CC" >&6
|
1732 |
|
|
else
|
1733 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
1734 |
|
|
echo "${ECHO_T}no" >&6
|
1735 |
|
|
fi
|
1736 |
|
|
|
1737 |
|
|
fi
|
1738 |
|
|
if test -z "$CC"; then
|
1739 |
|
|
if test -n "$ac_tool_prefix"; then
|
1740 |
|
|
for ac_prog in cl
|
1741 |
|
|
do
|
1742 |
|
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
1743 |
|
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
1744 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
1745 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
1746 |
|
|
if test "${ac_cv_prog_CC+set}" = set; then
|
1747 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
1748 |
|
|
else
|
1749 |
|
|
if test -n "$CC"; then
|
1750 |
|
|
ac_cv_prog_CC="$CC" # Let the user override the test.
|
1751 |
|
|
else
|
1752 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
1753 |
|
|
for as_dir in $PATH
|
1754 |
|
|
do
|
1755 |
|
|
IFS=$as_save_IFS
|
1756 |
|
|
test -z "$as_dir" && as_dir=.
|
1757 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
1758 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
1759 |
|
|
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
1760 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
1761 |
|
|
break 2
|
1762 |
|
|
fi
|
1763 |
|
|
done
|
1764 |
|
|
done
|
1765 |
|
|
|
1766 |
|
|
fi
|
1767 |
|
|
fi
|
1768 |
|
|
CC=$ac_cv_prog_CC
|
1769 |
|
|
if test -n "$CC"; then
|
1770 |
|
|
echo "$as_me:$LINENO: result: $CC" >&5
|
1771 |
|
|
echo "${ECHO_T}$CC" >&6
|
1772 |
|
|
else
|
1773 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
1774 |
|
|
echo "${ECHO_T}no" >&6
|
1775 |
|
|
fi
|
1776 |
|
|
|
1777 |
|
|
test -n "$CC" && break
|
1778 |
|
|
done
|
1779 |
|
|
fi
|
1780 |
|
|
if test -z "$CC"; then
|
1781 |
|
|
ac_ct_CC=$CC
|
1782 |
|
|
for ac_prog in cl
|
1783 |
|
|
do
|
1784 |
|
|
# Extract the first word of "$ac_prog", so it can be a program name with args.
|
1785 |
|
|
set dummy $ac_prog; ac_word=$2
|
1786 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
1787 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
1788 |
|
|
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
1789 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
1790 |
|
|
else
|
1791 |
|
|
if test -n "$ac_ct_CC"; then
|
1792 |
|
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
1793 |
|
|
else
|
1794 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
1795 |
|
|
for as_dir in $PATH
|
1796 |
|
|
do
|
1797 |
|
|
IFS=$as_save_IFS
|
1798 |
|
|
test -z "$as_dir" && as_dir=.
|
1799 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
1800 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
1801 |
|
|
ac_cv_prog_ac_ct_CC="$ac_prog"
|
1802 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
1803 |
|
|
break 2
|
1804 |
|
|
fi
|
1805 |
|
|
done
|
1806 |
|
|
done
|
1807 |
|
|
|
1808 |
|
|
fi
|
1809 |
|
|
fi
|
1810 |
|
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
1811 |
|
|
if test -n "$ac_ct_CC"; then
|
1812 |
|
|
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
1813 |
|
|
echo "${ECHO_T}$ac_ct_CC" >&6
|
1814 |
|
|
else
|
1815 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
1816 |
|
|
echo "${ECHO_T}no" >&6
|
1817 |
|
|
fi
|
1818 |
|
|
|
1819 |
|
|
test -n "$ac_ct_CC" && break
|
1820 |
|
|
done
|
1821 |
|
|
|
1822 |
|
|
CC=$ac_ct_CC
|
1823 |
|
|
fi
|
1824 |
|
|
|
1825 |
|
|
fi
|
1826 |
|
|
|
1827 |
|
|
|
1828 |
|
|
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
1829 |
|
|
See \`config.log' for more details." >&5
|
1830 |
|
|
echo "$as_me: error: no acceptable C compiler found in \$PATH
|
1831 |
|
|
See \`config.log' for more details." >&2;}
|
1832 |
|
|
{ (exit 1); exit 1; }; }
|
1833 |
|
|
|
1834 |
|
|
# Provide some information about the compiler.
|
1835 |
|
|
echo "$as_me:$LINENO:" \
|
1836 |
|
|
"checking for C compiler version" >&5
|
1837 |
|
|
ac_compiler=`set X $ac_compile; echo $2`
|
1838 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5
|
1839 |
|
|
(eval $ac_compiler --version &5) 2>&5
|
1840 |
|
|
ac_status=$?
|
1841 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
1842 |
|
|
(exit $ac_status); }
|
1843 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5
|
1844 |
|
|
(eval $ac_compiler -v &5) 2>&5
|
1845 |
|
|
ac_status=$?
|
1846 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
1847 |
|
|
(exit $ac_status); }
|
1848 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5
|
1849 |
|
|
(eval $ac_compiler -V &5) 2>&5
|
1850 |
|
|
ac_status=$?
|
1851 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
1852 |
|
|
(exit $ac_status); }
|
1853 |
|
|
|
1854 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
1855 |
|
|
/* confdefs.h. */
|
1856 |
|
|
_ACEOF
|
1857 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
1858 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
1859 |
|
|
/* end confdefs.h. */
|
1860 |
|
|
|
1861 |
|
|
int
|
1862 |
|
|
main ()
|
1863 |
|
|
{
|
1864 |
|
|
|
1865 |
|
|
;
|
1866 |
|
|
return 0;
|
1867 |
|
|
}
|
1868 |
|
|
_ACEOF
|
1869 |
|
|
ac_clean_files_save=$ac_clean_files
|
1870 |
|
|
ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
1871 |
|
|
# Try to create an executable without -o first, disregard a.out.
|
1872 |
|
|
# It will help us diagnose broken compilers, and finding out an intuition
|
1873 |
|
|
# of exeext.
|
1874 |
|
|
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
1875 |
|
|
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
|
1876 |
|
|
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
1877 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
1878 |
|
|
(eval $ac_link_default) 2>&5
|
1879 |
|
|
ac_status=$?
|
1880 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
1881 |
|
|
(exit $ac_status); }; then
|
1882 |
|
|
# Find the output, starting from the most likely. This scheme is
|
1883 |
|
|
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
1884 |
|
|
# resort.
|
1885 |
|
|
|
1886 |
|
|
# Be careful to initialize this variable, since it used to be cached.
|
1887 |
|
|
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
1888 |
|
|
ac_cv_exeext=
|
1889 |
|
|
# b.out is created by i960 compilers.
|
1890 |
|
|
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
1891 |
|
|
do
|
1892 |
|
|
test -f "$ac_file" || continue
|
1893 |
|
|
case $ac_file in
|
1894 |
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
1895 |
|
|
;;
|
1896 |
|
|
conftest.$ac_ext )
|
1897 |
|
|
# This is the source file.
|
1898 |
|
|
;;
|
1899 |
|
|
[ab].out )
|
1900 |
|
|
# We found the default executable, but exeext='' is most
|
1901 |
|
|
# certainly right.
|
1902 |
|
|
break;;
|
1903 |
|
|
*.* )
|
1904 |
|
|
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
1905 |
|
|
# FIXME: I believe we export ac_cv_exeext for Libtool,
|
1906 |
|
|
# but it would be cool to find out if it's true. Does anybody
|
1907 |
|
|
# maintain Libtool? --akim.
|
1908 |
|
|
export ac_cv_exeext
|
1909 |
|
|
break;;
|
1910 |
|
|
* )
|
1911 |
|
|
break;;
|
1912 |
|
|
esac
|
1913 |
|
|
done
|
1914 |
|
|
else
|
1915 |
|
|
echo "$as_me: failed program was:" >&5
|
1916 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
1917 |
|
|
|
1918 |
|
|
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
1919 |
|
|
See \`config.log' for more details." >&5
|
1920 |
|
|
echo "$as_me: error: C compiler cannot create executables
|
1921 |
|
|
See \`config.log' for more details." >&2;}
|
1922 |
|
|
{ (exit 77); exit 77; }; }
|
1923 |
|
|
fi
|
1924 |
|
|
|
1925 |
|
|
ac_exeext=$ac_cv_exeext
|
1926 |
|
|
echo "$as_me:$LINENO: result: $ac_file" >&5
|
1927 |
|
|
echo "${ECHO_T}$ac_file" >&6
|
1928 |
|
|
|
1929 |
|
|
# Check the compiler produces executables we can run. If not, either
|
1930 |
|
|
# the compiler is broken, or we cross compile.
|
1931 |
|
|
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
1932 |
|
|
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
|
1933 |
|
|
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
1934 |
|
|
# If not cross compiling, check that we can run a simple program.
|
1935 |
|
|
if test "$cross_compiling" != yes; then
|
1936 |
|
|
if { ac_try='./$ac_file'
|
1937 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
1938 |
|
|
(eval $ac_try) 2>&5
|
1939 |
|
|
ac_status=$?
|
1940 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
1941 |
|
|
(exit $ac_status); }; }; then
|
1942 |
|
|
cross_compiling=no
|
1943 |
|
|
else
|
1944 |
|
|
if test "$cross_compiling" = maybe; then
|
1945 |
|
|
cross_compiling=yes
|
1946 |
|
|
else
|
1947 |
|
|
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
1948 |
|
|
If you meant to cross compile, use \`--host'.
|
1949 |
|
|
See \`config.log' for more details." >&5
|
1950 |
|
|
echo "$as_me: error: cannot run C compiled programs.
|
1951 |
|
|
If you meant to cross compile, use \`--host'.
|
1952 |
|
|
See \`config.log' for more details." >&2;}
|
1953 |
|
|
{ (exit 1); exit 1; }; }
|
1954 |
|
|
fi
|
1955 |
|
|
fi
|
1956 |
|
|
fi
|
1957 |
|
|
echo "$as_me:$LINENO: result: yes" >&5
|
1958 |
|
|
echo "${ECHO_T}yes" >&6
|
1959 |
|
|
|
1960 |
|
|
rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
1961 |
|
|
ac_clean_files=$ac_clean_files_save
|
1962 |
|
|
# Check the compiler produces executables we can run. If not, either
|
1963 |
|
|
# the compiler is broken, or we cross compile.
|
1964 |
|
|
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
1965 |
|
|
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
1966 |
|
|
echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
1967 |
|
|
echo "${ECHO_T}$cross_compiling" >&6
|
1968 |
|
|
|
1969 |
|
|
echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
1970 |
|
|
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
1971 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
1972 |
|
|
(eval $ac_link) 2>&5
|
1973 |
|
|
ac_status=$?
|
1974 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
1975 |
|
|
(exit $ac_status); }; then
|
1976 |
|
|
# If both `conftest.exe' and `conftest' are `present' (well, observable)
|
1977 |
|
|
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
1978 |
|
|
# work properly (i.e., refer to `conftest.exe'), while it won't with
|
1979 |
|
|
# `rm'.
|
1980 |
|
|
for ac_file in conftest.exe conftest conftest.*; do
|
1981 |
|
|
test -f "$ac_file" || continue
|
1982 |
|
|
case $ac_file in
|
1983 |
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
1984 |
|
|
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
1985 |
|
|
export ac_cv_exeext
|
1986 |
|
|
break;;
|
1987 |
|
|
* ) break;;
|
1988 |
|
|
esac
|
1989 |
|
|
done
|
1990 |
|
|
else
|
1991 |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
1992 |
|
|
See \`config.log' for more details." >&5
|
1993 |
|
|
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
1994 |
|
|
See \`config.log' for more details." >&2;}
|
1995 |
|
|
{ (exit 1); exit 1; }; }
|
1996 |
|
|
fi
|
1997 |
|
|
|
1998 |
|
|
rm -f conftest$ac_cv_exeext
|
1999 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
2000 |
|
|
echo "${ECHO_T}$ac_cv_exeext" >&6
|
2001 |
|
|
|
2002 |
|
|
rm -f conftest.$ac_ext
|
2003 |
|
|
EXEEXT=$ac_cv_exeext
|
2004 |
|
|
ac_exeext=$EXEEXT
|
2005 |
|
|
echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
2006 |
|
|
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
2007 |
|
|
if test "${ac_cv_objext+set}" = set; then
|
2008 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2009 |
|
|
else
|
2010 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2011 |
|
|
/* confdefs.h. */
|
2012 |
|
|
_ACEOF
|
2013 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2014 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2015 |
|
|
/* end confdefs.h. */
|
2016 |
|
|
|
2017 |
|
|
int
|
2018 |
|
|
main ()
|
2019 |
|
|
{
|
2020 |
|
|
|
2021 |
|
|
;
|
2022 |
|
|
return 0;
|
2023 |
|
|
}
|
2024 |
|
|
_ACEOF
|
2025 |
|
|
rm -f conftest.o conftest.obj
|
2026 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
2027 |
|
|
(eval $ac_compile) 2>&5
|
2028 |
|
|
ac_status=$?
|
2029 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2030 |
|
|
(exit $ac_status); }; then
|
2031 |
|
|
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
2032 |
|
|
case $ac_file in
|
2033 |
|
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
2034 |
|
|
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
2035 |
|
|
break;;
|
2036 |
|
|
esac
|
2037 |
|
|
done
|
2038 |
|
|
else
|
2039 |
|
|
echo "$as_me: failed program was:" >&5
|
2040 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2041 |
|
|
|
2042 |
|
|
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
2043 |
|
|
See \`config.log' for more details." >&5
|
2044 |
|
|
echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
2045 |
|
|
See \`config.log' for more details." >&2;}
|
2046 |
|
|
{ (exit 1); exit 1; }; }
|
2047 |
|
|
fi
|
2048 |
|
|
|
2049 |
|
|
rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
2050 |
|
|
fi
|
2051 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
2052 |
|
|
echo "${ECHO_T}$ac_cv_objext" >&6
|
2053 |
|
|
OBJEXT=$ac_cv_objext
|
2054 |
|
|
ac_objext=$OBJEXT
|
2055 |
|
|
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
2056 |
|
|
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
2057 |
|
|
if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
2058 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2059 |
|
|
else
|
2060 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2061 |
|
|
/* confdefs.h. */
|
2062 |
|
|
_ACEOF
|
2063 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2064 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2065 |
|
|
/* end confdefs.h. */
|
2066 |
|
|
|
2067 |
|
|
int
|
2068 |
|
|
main ()
|
2069 |
|
|
{
|
2070 |
|
|
#ifndef __GNUC__
|
2071 |
|
|
choke me
|
2072 |
|
|
#endif
|
2073 |
|
|
|
2074 |
|
|
;
|
2075 |
|
|
return 0;
|
2076 |
|
|
}
|
2077 |
|
|
_ACEOF
|
2078 |
|
|
rm -f conftest.$ac_objext
|
2079 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
2080 |
|
|
(eval $ac_compile) 2>conftest.er1
|
2081 |
|
|
ac_status=$?
|
2082 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
2083 |
|
|
rm -f conftest.er1
|
2084 |
|
|
cat conftest.err >&5
|
2085 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2086 |
|
|
(exit $ac_status); } &&
|
2087 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
2088 |
|
|
|| test ! -s conftest.err'
|
2089 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
2090 |
|
|
(eval $ac_try) 2>&5
|
2091 |
|
|
ac_status=$?
|
2092 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2093 |
|
|
(exit $ac_status); }; } &&
|
2094 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
2095 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
2096 |
|
|
(eval $ac_try) 2>&5
|
2097 |
|
|
ac_status=$?
|
2098 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2099 |
|
|
(exit $ac_status); }; }; then
|
2100 |
|
|
ac_compiler_gnu=yes
|
2101 |
|
|
else
|
2102 |
|
|
echo "$as_me: failed program was:" >&5
|
2103 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2104 |
|
|
|
2105 |
|
|
ac_compiler_gnu=no
|
2106 |
|
|
fi
|
2107 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
2108 |
|
|
ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
2109 |
|
|
|
2110 |
|
|
fi
|
2111 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
2112 |
|
|
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
2113 |
|
|
GCC=`test $ac_compiler_gnu = yes && echo yes`
|
2114 |
|
|
ac_test_CFLAGS=${CFLAGS+set}
|
2115 |
|
|
ac_save_CFLAGS=$CFLAGS
|
2116 |
|
|
CFLAGS="-g"
|
2117 |
|
|
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
2118 |
|
|
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
2119 |
|
|
if test "${ac_cv_prog_cc_g+set}" = set; then
|
2120 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2121 |
|
|
else
|
2122 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2123 |
|
|
/* confdefs.h. */
|
2124 |
|
|
_ACEOF
|
2125 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2126 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2127 |
|
|
/* end confdefs.h. */
|
2128 |
|
|
|
2129 |
|
|
int
|
2130 |
|
|
main ()
|
2131 |
|
|
{
|
2132 |
|
|
|
2133 |
|
|
;
|
2134 |
|
|
return 0;
|
2135 |
|
|
}
|
2136 |
|
|
_ACEOF
|
2137 |
|
|
rm -f conftest.$ac_objext
|
2138 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
2139 |
|
|
(eval $ac_compile) 2>conftest.er1
|
2140 |
|
|
ac_status=$?
|
2141 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
2142 |
|
|
rm -f conftest.er1
|
2143 |
|
|
cat conftest.err >&5
|
2144 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2145 |
|
|
(exit $ac_status); } &&
|
2146 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
2147 |
|
|
|| test ! -s conftest.err'
|
2148 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
2149 |
|
|
(eval $ac_try) 2>&5
|
2150 |
|
|
ac_status=$?
|
2151 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2152 |
|
|
(exit $ac_status); }; } &&
|
2153 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
2154 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
2155 |
|
|
(eval $ac_try) 2>&5
|
2156 |
|
|
ac_status=$?
|
2157 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2158 |
|
|
(exit $ac_status); }; }; then
|
2159 |
|
|
ac_cv_prog_cc_g=yes
|
2160 |
|
|
else
|
2161 |
|
|
echo "$as_me: failed program was:" >&5
|
2162 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2163 |
|
|
|
2164 |
|
|
ac_cv_prog_cc_g=no
|
2165 |
|
|
fi
|
2166 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
2167 |
|
|
fi
|
2168 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
2169 |
|
|
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
2170 |
|
|
if test "$ac_test_CFLAGS" = set; then
|
2171 |
|
|
CFLAGS=$ac_save_CFLAGS
|
2172 |
|
|
elif test $ac_cv_prog_cc_g = yes; then
|
2173 |
|
|
if test "$GCC" = yes; then
|
2174 |
|
|
CFLAGS="-g -O2"
|
2175 |
|
|
else
|
2176 |
|
|
CFLAGS="-g"
|
2177 |
|
|
fi
|
2178 |
|
|
else
|
2179 |
|
|
if test "$GCC" = yes; then
|
2180 |
|
|
CFLAGS="-O2"
|
2181 |
|
|
else
|
2182 |
|
|
CFLAGS=
|
2183 |
|
|
fi
|
2184 |
|
|
fi
|
2185 |
|
|
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
2186 |
|
|
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
2187 |
|
|
if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
2188 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2189 |
|
|
else
|
2190 |
|
|
ac_cv_prog_cc_stdc=no
|
2191 |
|
|
ac_save_CC=$CC
|
2192 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2193 |
|
|
/* confdefs.h. */
|
2194 |
|
|
_ACEOF
|
2195 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2196 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2197 |
|
|
/* end confdefs.h. */
|
2198 |
|
|
#include
|
2199 |
|
|
#include
|
2200 |
|
|
#include
|
2201 |
|
|
#include
|
2202 |
|
|
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
2203 |
|
|
struct buf { int x; };
|
2204 |
|
|
FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
2205 |
|
|
static char *e (p, i)
|
2206 |
|
|
char **p;
|
2207 |
|
|
int i;
|
2208 |
|
|
{
|
2209 |
|
|
return p[i];
|
2210 |
|
|
}
|
2211 |
|
|
static char *f (char * (*g) (char **, int), char **p, ...)
|
2212 |
|
|
{
|
2213 |
|
|
char *s;
|
2214 |
|
|
va_list v;
|
2215 |
|
|
va_start (v,p);
|
2216 |
|
|
s = g (p, va_arg (v,int));
|
2217 |
|
|
va_end (v);
|
2218 |
|
|
return s;
|
2219 |
|
|
}
|
2220 |
|
|
|
2221 |
|
|
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
2222 |
|
|
function prototypes and stuff, but not '\xHH' hex character constants.
|
2223 |
|
|
These don't provoke an error unfortunately, instead are silently treated
|
2224 |
|
|
as 'x'. The following induces an error, until -std1 is added to get
|
2225 |
|
|
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
2226 |
|
|
array size at least. It's necessary to write '\x00'==0 to get something
|
2227 |
|
|
that's true only with -std1. */
|
2228 |
|
|
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
2229 |
|
|
|
2230 |
|
|
int test (int i, double x);
|
2231 |
|
|
struct s1 {int (*f) (int a);};
|
2232 |
|
|
struct s2 {int (*f) (double a);};
|
2233 |
|
|
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
2234 |
|
|
int argc;
|
2235 |
|
|
char **argv;
|
2236 |
|
|
int
|
2237 |
|
|
main ()
|
2238 |
|
|
{
|
2239 |
|
|
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
2240 |
|
|
;
|
2241 |
|
|
return 0;
|
2242 |
|
|
}
|
2243 |
|
|
_ACEOF
|
2244 |
|
|
# Don't try gcc -ansi; that turns off useful extensions and
|
2245 |
|
|
# breaks some systems' header files.
|
2246 |
|
|
# AIX -qlanglvl=ansi
|
2247 |
|
|
# Ultrix and OSF/1 -std1
|
2248 |
|
|
# HP-UX 10.20 and later -Ae
|
2249 |
|
|
# HP-UX older versions -Aa -D_HPUX_SOURCE
|
2250 |
|
|
# SVR4 -Xc -D__EXTENSIONS__
|
2251 |
|
|
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
2252 |
|
|
do
|
2253 |
|
|
CC="$ac_save_CC $ac_arg"
|
2254 |
|
|
rm -f conftest.$ac_objext
|
2255 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
2256 |
|
|
(eval $ac_compile) 2>conftest.er1
|
2257 |
|
|
ac_status=$?
|
2258 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
2259 |
|
|
rm -f conftest.er1
|
2260 |
|
|
cat conftest.err >&5
|
2261 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2262 |
|
|
(exit $ac_status); } &&
|
2263 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
2264 |
|
|
|| test ! -s conftest.err'
|
2265 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
2266 |
|
|
(eval $ac_try) 2>&5
|
2267 |
|
|
ac_status=$?
|
2268 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2269 |
|
|
(exit $ac_status); }; } &&
|
2270 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
2271 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
2272 |
|
|
(eval $ac_try) 2>&5
|
2273 |
|
|
ac_status=$?
|
2274 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2275 |
|
|
(exit $ac_status); }; }; then
|
2276 |
|
|
ac_cv_prog_cc_stdc=$ac_arg
|
2277 |
|
|
break
|
2278 |
|
|
else
|
2279 |
|
|
echo "$as_me: failed program was:" >&5
|
2280 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2281 |
|
|
|
2282 |
|
|
fi
|
2283 |
|
|
rm -f conftest.err conftest.$ac_objext
|
2284 |
|
|
done
|
2285 |
|
|
rm -f conftest.$ac_ext conftest.$ac_objext
|
2286 |
|
|
CC=$ac_save_CC
|
2287 |
|
|
|
2288 |
|
|
fi
|
2289 |
|
|
|
2290 |
|
|
case "x$ac_cv_prog_cc_stdc" in
|
2291 |
|
|
x|xno)
|
2292 |
|
|
echo "$as_me:$LINENO: result: none needed" >&5
|
2293 |
|
|
echo "${ECHO_T}none needed" >&6 ;;
|
2294 |
|
|
*)
|
2295 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
2296 |
|
|
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
2297 |
|
|
CC="$CC $ac_cv_prog_cc_stdc" ;;
|
2298 |
|
|
esac
|
2299 |
|
|
|
2300 |
|
|
# Some people use a C++ compiler to compile C. Since we use `exit',
|
2301 |
|
|
# in C++ we need to declare it. In case someone uses the same compiler
|
2302 |
|
|
# for both compiling C and C++ we need to have the C++ compiler decide
|
2303 |
|
|
# the declaration of exit, since it's the most demanding environment.
|
2304 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2305 |
|
|
#ifndef __cplusplus
|
2306 |
|
|
choke me
|
2307 |
|
|
#endif
|
2308 |
|
|
_ACEOF
|
2309 |
|
|
rm -f conftest.$ac_objext
|
2310 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
2311 |
|
|
(eval $ac_compile) 2>conftest.er1
|
2312 |
|
|
ac_status=$?
|
2313 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
2314 |
|
|
rm -f conftest.er1
|
2315 |
|
|
cat conftest.err >&5
|
2316 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2317 |
|
|
(exit $ac_status); } &&
|
2318 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
2319 |
|
|
|| test ! -s conftest.err'
|
2320 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
2321 |
|
|
(eval $ac_try) 2>&5
|
2322 |
|
|
ac_status=$?
|
2323 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2324 |
|
|
(exit $ac_status); }; } &&
|
2325 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
2326 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
2327 |
|
|
(eval $ac_try) 2>&5
|
2328 |
|
|
ac_status=$?
|
2329 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2330 |
|
|
(exit $ac_status); }; }; then
|
2331 |
|
|
for ac_declaration in \
|
2332 |
|
|
'' \
|
2333 |
|
|
'extern "C" void std::exit (int) throw (); using std::exit;' \
|
2334 |
|
|
'extern "C" void std::exit (int); using std::exit;' \
|
2335 |
|
|
'extern "C" void exit (int) throw ();' \
|
2336 |
|
|
'extern "C" void exit (int);' \
|
2337 |
|
|
'void exit (int);'
|
2338 |
|
|
do
|
2339 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2340 |
|
|
/* confdefs.h. */
|
2341 |
|
|
_ACEOF
|
2342 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2343 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2344 |
|
|
/* end confdefs.h. */
|
2345 |
|
|
$ac_declaration
|
2346 |
|
|
#include
|
2347 |
|
|
int
|
2348 |
|
|
main ()
|
2349 |
|
|
{
|
2350 |
|
|
exit (42);
|
2351 |
|
|
;
|
2352 |
|
|
return 0;
|
2353 |
|
|
}
|
2354 |
|
|
_ACEOF
|
2355 |
|
|
rm -f conftest.$ac_objext
|
2356 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
2357 |
|
|
(eval $ac_compile) 2>conftest.er1
|
2358 |
|
|
ac_status=$?
|
2359 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
2360 |
|
|
rm -f conftest.er1
|
2361 |
|
|
cat conftest.err >&5
|
2362 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2363 |
|
|
(exit $ac_status); } &&
|
2364 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
2365 |
|
|
|| test ! -s conftest.err'
|
2366 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
2367 |
|
|
(eval $ac_try) 2>&5
|
2368 |
|
|
ac_status=$?
|
2369 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2370 |
|
|
(exit $ac_status); }; } &&
|
2371 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
2372 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
2373 |
|
|
(eval $ac_try) 2>&5
|
2374 |
|
|
ac_status=$?
|
2375 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2376 |
|
|
(exit $ac_status); }; }; then
|
2377 |
|
|
:
|
2378 |
|
|
else
|
2379 |
|
|
echo "$as_me: failed program was:" >&5
|
2380 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2381 |
|
|
|
2382 |
|
|
continue
|
2383 |
|
|
fi
|
2384 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
2385 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2386 |
|
|
/* confdefs.h. */
|
2387 |
|
|
_ACEOF
|
2388 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2389 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2390 |
|
|
/* end confdefs.h. */
|
2391 |
|
|
$ac_declaration
|
2392 |
|
|
int
|
2393 |
|
|
main ()
|
2394 |
|
|
{
|
2395 |
|
|
exit (42);
|
2396 |
|
|
;
|
2397 |
|
|
return 0;
|
2398 |
|
|
}
|
2399 |
|
|
_ACEOF
|
2400 |
|
|
rm -f conftest.$ac_objext
|
2401 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
2402 |
|
|
(eval $ac_compile) 2>conftest.er1
|
2403 |
|
|
ac_status=$?
|
2404 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
2405 |
|
|
rm -f conftest.er1
|
2406 |
|
|
cat conftest.err >&5
|
2407 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2408 |
|
|
(exit $ac_status); } &&
|
2409 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
2410 |
|
|
|| test ! -s conftest.err'
|
2411 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
2412 |
|
|
(eval $ac_try) 2>&5
|
2413 |
|
|
ac_status=$?
|
2414 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2415 |
|
|
(exit $ac_status); }; } &&
|
2416 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
2417 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
2418 |
|
|
(eval $ac_try) 2>&5
|
2419 |
|
|
ac_status=$?
|
2420 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2421 |
|
|
(exit $ac_status); }; }; then
|
2422 |
|
|
break
|
2423 |
|
|
else
|
2424 |
|
|
echo "$as_me: failed program was:" >&5
|
2425 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2426 |
|
|
|
2427 |
|
|
fi
|
2428 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
2429 |
|
|
done
|
2430 |
|
|
rm -f conftest*
|
2431 |
|
|
if test -n "$ac_declaration"; then
|
2432 |
|
|
echo '#ifdef __cplusplus' >>confdefs.h
|
2433 |
|
|
echo $ac_declaration >>confdefs.h
|
2434 |
|
|
echo '#endif' >>confdefs.h
|
2435 |
|
|
fi
|
2436 |
|
|
|
2437 |
|
|
else
|
2438 |
|
|
echo "$as_me: failed program was:" >&5
|
2439 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2440 |
|
|
|
2441 |
|
|
fi
|
2442 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
2443 |
|
|
ac_ext=c
|
2444 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
2445 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
2446 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
2447 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
2448 |
|
|
|
2449 |
|
|
|
2450 |
|
|
ac_ext=c
|
2451 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
2452 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
2453 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
2454 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
2455 |
|
|
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
2456 |
|
|
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
2457 |
|
|
# On Suns, sometimes $CPP names a directory.
|
2458 |
|
|
if test -n "$CPP" && test -d "$CPP"; then
|
2459 |
|
|
CPP=
|
2460 |
|
|
fi
|
2461 |
|
|
if test -z "$CPP"; then
|
2462 |
|
|
if test "${ac_cv_prog_CPP+set}" = set; then
|
2463 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2464 |
|
|
else
|
2465 |
|
|
# Double quotes because CPP needs to be expanded
|
2466 |
|
|
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
2467 |
|
|
do
|
2468 |
|
|
ac_preproc_ok=false
|
2469 |
|
|
for ac_c_preproc_warn_flag in '' yes
|
2470 |
|
|
do
|
2471 |
|
|
# Use a header file that comes with gcc, so configuring glibc
|
2472 |
|
|
# with a fresh cross-compiler works.
|
2473 |
|
|
# Prefer to if __STDC__ is defined, since
|
2474 |
|
|
# exists even on freestanding compilers.
|
2475 |
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
2476 |
|
|
# not just through cpp. "Syntax error" is here to catch this case.
|
2477 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2478 |
|
|
/* confdefs.h. */
|
2479 |
|
|
_ACEOF
|
2480 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2481 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2482 |
|
|
/* end confdefs.h. */
|
2483 |
|
|
#ifdef __STDC__
|
2484 |
|
|
# include
|
2485 |
|
|
#else
|
2486 |
|
|
# include
|
2487 |
|
|
#endif
|
2488 |
|
|
Syntax error
|
2489 |
|
|
_ACEOF
|
2490 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
2491 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
2492 |
|
|
ac_status=$?
|
2493 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
2494 |
|
|
rm -f conftest.er1
|
2495 |
|
|
cat conftest.err >&5
|
2496 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2497 |
|
|
(exit $ac_status); } >/dev/null; then
|
2498 |
|
|
if test -s conftest.err; then
|
2499 |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
2500 |
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
2501 |
|
|
else
|
2502 |
|
|
ac_cpp_err=
|
2503 |
|
|
fi
|
2504 |
|
|
else
|
2505 |
|
|
ac_cpp_err=yes
|
2506 |
|
|
fi
|
2507 |
|
|
if test -z "$ac_cpp_err"; then
|
2508 |
|
|
:
|
2509 |
|
|
else
|
2510 |
|
|
echo "$as_me: failed program was:" >&5
|
2511 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2512 |
|
|
|
2513 |
|
|
# Broken: fails on valid input.
|
2514 |
|
|
continue
|
2515 |
|
|
fi
|
2516 |
|
|
rm -f conftest.err conftest.$ac_ext
|
2517 |
|
|
|
2518 |
|
|
# OK, works on sane cases. Now check whether non-existent headers
|
2519 |
|
|
# can be detected and how.
|
2520 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2521 |
|
|
/* confdefs.h. */
|
2522 |
|
|
_ACEOF
|
2523 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2524 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2525 |
|
|
/* end confdefs.h. */
|
2526 |
|
|
#include
|
2527 |
|
|
_ACEOF
|
2528 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
2529 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
2530 |
|
|
ac_status=$?
|
2531 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
2532 |
|
|
rm -f conftest.er1
|
2533 |
|
|
cat conftest.err >&5
|
2534 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2535 |
|
|
(exit $ac_status); } >/dev/null; then
|
2536 |
|
|
if test -s conftest.err; then
|
2537 |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
2538 |
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
2539 |
|
|
else
|
2540 |
|
|
ac_cpp_err=
|
2541 |
|
|
fi
|
2542 |
|
|
else
|
2543 |
|
|
ac_cpp_err=yes
|
2544 |
|
|
fi
|
2545 |
|
|
if test -z "$ac_cpp_err"; then
|
2546 |
|
|
# Broken: success on invalid input.
|
2547 |
|
|
continue
|
2548 |
|
|
else
|
2549 |
|
|
echo "$as_me: failed program was:" >&5
|
2550 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2551 |
|
|
|
2552 |
|
|
# Passes both tests.
|
2553 |
|
|
ac_preproc_ok=:
|
2554 |
|
|
break
|
2555 |
|
|
fi
|
2556 |
|
|
rm -f conftest.err conftest.$ac_ext
|
2557 |
|
|
|
2558 |
|
|
done
|
2559 |
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
2560 |
|
|
rm -f conftest.err conftest.$ac_ext
|
2561 |
|
|
if $ac_preproc_ok; then
|
2562 |
|
|
break
|
2563 |
|
|
fi
|
2564 |
|
|
|
2565 |
|
|
done
|
2566 |
|
|
ac_cv_prog_CPP=$CPP
|
2567 |
|
|
|
2568 |
|
|
fi
|
2569 |
|
|
CPP=$ac_cv_prog_CPP
|
2570 |
|
|
else
|
2571 |
|
|
ac_cv_prog_CPP=$CPP
|
2572 |
|
|
fi
|
2573 |
|
|
echo "$as_me:$LINENO: result: $CPP" >&5
|
2574 |
|
|
echo "${ECHO_T}$CPP" >&6
|
2575 |
|
|
ac_preproc_ok=false
|
2576 |
|
|
for ac_c_preproc_warn_flag in '' yes
|
2577 |
|
|
do
|
2578 |
|
|
# Use a header file that comes with gcc, so configuring glibc
|
2579 |
|
|
# with a fresh cross-compiler works.
|
2580 |
|
|
# Prefer to if __STDC__ is defined, since
|
2581 |
|
|
# exists even on freestanding compilers.
|
2582 |
|
|
# On the NeXT, cc -E runs the code through the compiler's parser,
|
2583 |
|
|
# not just through cpp. "Syntax error" is here to catch this case.
|
2584 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2585 |
|
|
/* confdefs.h. */
|
2586 |
|
|
_ACEOF
|
2587 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2588 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2589 |
|
|
/* end confdefs.h. */
|
2590 |
|
|
#ifdef __STDC__
|
2591 |
|
|
# include
|
2592 |
|
|
#else
|
2593 |
|
|
# include
|
2594 |
|
|
#endif
|
2595 |
|
|
Syntax error
|
2596 |
|
|
_ACEOF
|
2597 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
2598 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
2599 |
|
|
ac_status=$?
|
2600 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
2601 |
|
|
rm -f conftest.er1
|
2602 |
|
|
cat conftest.err >&5
|
2603 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2604 |
|
|
(exit $ac_status); } >/dev/null; then
|
2605 |
|
|
if test -s conftest.err; then
|
2606 |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
2607 |
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
2608 |
|
|
else
|
2609 |
|
|
ac_cpp_err=
|
2610 |
|
|
fi
|
2611 |
|
|
else
|
2612 |
|
|
ac_cpp_err=yes
|
2613 |
|
|
fi
|
2614 |
|
|
if test -z "$ac_cpp_err"; then
|
2615 |
|
|
:
|
2616 |
|
|
else
|
2617 |
|
|
echo "$as_me: failed program was:" >&5
|
2618 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2619 |
|
|
|
2620 |
|
|
# Broken: fails on valid input.
|
2621 |
|
|
continue
|
2622 |
|
|
fi
|
2623 |
|
|
rm -f conftest.err conftest.$ac_ext
|
2624 |
|
|
|
2625 |
|
|
# OK, works on sane cases. Now check whether non-existent headers
|
2626 |
|
|
# can be detected and how.
|
2627 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2628 |
|
|
/* confdefs.h. */
|
2629 |
|
|
_ACEOF
|
2630 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2631 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2632 |
|
|
/* end confdefs.h. */
|
2633 |
|
|
#include
|
2634 |
|
|
_ACEOF
|
2635 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
2636 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
2637 |
|
|
ac_status=$?
|
2638 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
2639 |
|
|
rm -f conftest.er1
|
2640 |
|
|
cat conftest.err >&5
|
2641 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2642 |
|
|
(exit $ac_status); } >/dev/null; then
|
2643 |
|
|
if test -s conftest.err; then
|
2644 |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
2645 |
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
2646 |
|
|
else
|
2647 |
|
|
ac_cpp_err=
|
2648 |
|
|
fi
|
2649 |
|
|
else
|
2650 |
|
|
ac_cpp_err=yes
|
2651 |
|
|
fi
|
2652 |
|
|
if test -z "$ac_cpp_err"; then
|
2653 |
|
|
# Broken: success on invalid input.
|
2654 |
|
|
continue
|
2655 |
|
|
else
|
2656 |
|
|
echo "$as_me: failed program was:" >&5
|
2657 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2658 |
|
|
|
2659 |
|
|
# Passes both tests.
|
2660 |
|
|
ac_preproc_ok=:
|
2661 |
|
|
break
|
2662 |
|
|
fi
|
2663 |
|
|
rm -f conftest.err conftest.$ac_ext
|
2664 |
|
|
|
2665 |
|
|
done
|
2666 |
|
|
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
2667 |
|
|
rm -f conftest.err conftest.$ac_ext
|
2668 |
|
|
if $ac_preproc_ok; then
|
2669 |
|
|
:
|
2670 |
|
|
else
|
2671 |
|
|
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
2672 |
|
|
See \`config.log' for more details." >&5
|
2673 |
|
|
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
2674 |
|
|
See \`config.log' for more details." >&2;}
|
2675 |
|
|
{ (exit 1); exit 1; }; }
|
2676 |
|
|
fi
|
2677 |
|
|
|
2678 |
|
|
ac_ext=c
|
2679 |
|
|
ac_cpp='$CPP $CPPFLAGS'
|
2680 |
|
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
2681 |
|
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
2682 |
|
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
2683 |
|
|
|
2684 |
|
|
|
2685 |
|
|
echo "$as_me:$LINENO: checking for egrep" >&5
|
2686 |
|
|
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
2687 |
|
|
if test "${ac_cv_prog_egrep+set}" = set; then
|
2688 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2689 |
|
|
else
|
2690 |
|
|
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
2691 |
|
|
then ac_cv_prog_egrep='grep -E'
|
2692 |
|
|
else ac_cv_prog_egrep='egrep'
|
2693 |
|
|
fi
|
2694 |
|
|
fi
|
2695 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
2696 |
|
|
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
2697 |
|
|
EGREP=$ac_cv_prog_egrep
|
2698 |
|
|
|
2699 |
|
|
|
2700 |
|
|
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
2701 |
|
|
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
2702 |
|
|
if test "${ac_cv_header_stdc+set}" = set; then
|
2703 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2704 |
|
|
else
|
2705 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2706 |
|
|
/* confdefs.h. */
|
2707 |
|
|
_ACEOF
|
2708 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2709 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2710 |
|
|
/* end confdefs.h. */
|
2711 |
|
|
#include
|
2712 |
|
|
#include
|
2713 |
|
|
#include
|
2714 |
|
|
#include
|
2715 |
|
|
|
2716 |
|
|
int
|
2717 |
|
|
main ()
|
2718 |
|
|
{
|
2719 |
|
|
|
2720 |
|
|
;
|
2721 |
|
|
return 0;
|
2722 |
|
|
}
|
2723 |
|
|
_ACEOF
|
2724 |
|
|
rm -f conftest.$ac_objext
|
2725 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
2726 |
|
|
(eval $ac_compile) 2>conftest.er1
|
2727 |
|
|
ac_status=$?
|
2728 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
2729 |
|
|
rm -f conftest.er1
|
2730 |
|
|
cat conftest.err >&5
|
2731 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2732 |
|
|
(exit $ac_status); } &&
|
2733 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
2734 |
|
|
|| test ! -s conftest.err'
|
2735 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
2736 |
|
|
(eval $ac_try) 2>&5
|
2737 |
|
|
ac_status=$?
|
2738 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2739 |
|
|
(exit $ac_status); }; } &&
|
2740 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
2741 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
2742 |
|
|
(eval $ac_try) 2>&5
|
2743 |
|
|
ac_status=$?
|
2744 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2745 |
|
|
(exit $ac_status); }; }; then
|
2746 |
|
|
ac_cv_header_stdc=yes
|
2747 |
|
|
else
|
2748 |
|
|
echo "$as_me: failed program was:" >&5
|
2749 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2750 |
|
|
|
2751 |
|
|
ac_cv_header_stdc=no
|
2752 |
|
|
fi
|
2753 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
2754 |
|
|
|
2755 |
|
|
if test $ac_cv_header_stdc = yes; then
|
2756 |
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
2757 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2758 |
|
|
/* confdefs.h. */
|
2759 |
|
|
_ACEOF
|
2760 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2761 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2762 |
|
|
/* end confdefs.h. */
|
2763 |
|
|
#include
|
2764 |
|
|
|
2765 |
|
|
_ACEOF
|
2766 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
2767 |
|
|
$EGREP "memchr" >/dev/null 2>&1; then
|
2768 |
|
|
:
|
2769 |
|
|
else
|
2770 |
|
|
ac_cv_header_stdc=no
|
2771 |
|
|
fi
|
2772 |
|
|
rm -f conftest*
|
2773 |
|
|
|
2774 |
|
|
fi
|
2775 |
|
|
|
2776 |
|
|
if test $ac_cv_header_stdc = yes; then
|
2777 |
|
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
2778 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2779 |
|
|
/* confdefs.h. */
|
2780 |
|
|
_ACEOF
|
2781 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2782 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2783 |
|
|
/* end confdefs.h. */
|
2784 |
|
|
#include
|
2785 |
|
|
|
2786 |
|
|
_ACEOF
|
2787 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
2788 |
|
|
$EGREP "free" >/dev/null 2>&1; then
|
2789 |
|
|
:
|
2790 |
|
|
else
|
2791 |
|
|
ac_cv_header_stdc=no
|
2792 |
|
|
fi
|
2793 |
|
|
rm -f conftest*
|
2794 |
|
|
|
2795 |
|
|
fi
|
2796 |
|
|
|
2797 |
|
|
if test $ac_cv_header_stdc = yes; then
|
2798 |
|
|
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
2799 |
|
|
if test "$cross_compiling" = yes; then
|
2800 |
|
|
:
|
2801 |
|
|
else
|
2802 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2803 |
|
|
/* confdefs.h. */
|
2804 |
|
|
_ACEOF
|
2805 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2806 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2807 |
|
|
/* end confdefs.h. */
|
2808 |
|
|
#include
|
2809 |
|
|
#if ((' ' & 0x0FF) == 0x020)
|
2810 |
|
|
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
2811 |
|
|
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
2812 |
|
|
#else
|
2813 |
|
|
# define ISLOWER(c) \
|
2814 |
|
|
(('a' <= (c) && (c) <= 'i') \
|
2815 |
|
|
|| ('j' <= (c) && (c) <= 'r') \
|
2816 |
|
|
|| ('s' <= (c) && (c) <= 'z'))
|
2817 |
|
|
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
2818 |
|
|
#endif
|
2819 |
|
|
|
2820 |
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
2821 |
|
|
int
|
2822 |
|
|
main ()
|
2823 |
|
|
{
|
2824 |
|
|
int i;
|
2825 |
|
|
for (i = 0; i < 256; i++)
|
2826 |
|
|
if (XOR (islower (i), ISLOWER (i))
|
2827 |
|
|
|| toupper (i) != TOUPPER (i))
|
2828 |
|
|
exit(2);
|
2829 |
|
|
exit (0);
|
2830 |
|
|
}
|
2831 |
|
|
_ACEOF
|
2832 |
|
|
rm -f conftest$ac_exeext
|
2833 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
2834 |
|
|
(eval $ac_link) 2>&5
|
2835 |
|
|
ac_status=$?
|
2836 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2837 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
2838 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
2839 |
|
|
(eval $ac_try) 2>&5
|
2840 |
|
|
ac_status=$?
|
2841 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2842 |
|
|
(exit $ac_status); }; }; then
|
2843 |
|
|
:
|
2844 |
|
|
else
|
2845 |
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
2846 |
|
|
echo "$as_me: failed program was:" >&5
|
2847 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2848 |
|
|
|
2849 |
|
|
( exit $ac_status )
|
2850 |
|
|
ac_cv_header_stdc=no
|
2851 |
|
|
fi
|
2852 |
|
|
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
2853 |
|
|
fi
|
2854 |
|
|
fi
|
2855 |
|
|
fi
|
2856 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
2857 |
|
|
echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
2858 |
|
|
if test $ac_cv_header_stdc = yes; then
|
2859 |
|
|
|
2860 |
|
|
cat >>confdefs.h <<\_ACEOF
|
2861 |
|
|
#define STDC_HEADERS 1
|
2862 |
|
|
_ACEOF
|
2863 |
|
|
|
2864 |
|
|
fi
|
2865 |
|
|
|
2866 |
|
|
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
2867 |
|
|
|
2868 |
|
|
|
2869 |
|
|
|
2870 |
|
|
|
2871 |
|
|
|
2872 |
|
|
|
2873 |
|
|
|
2874 |
|
|
|
2875 |
|
|
|
2876 |
|
|
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
2877 |
|
|
inttypes.h stdint.h unistd.h
|
2878 |
|
|
do
|
2879 |
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
2880 |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5
|
2881 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
2882 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
2883 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2884 |
|
|
else
|
2885 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2886 |
|
|
/* confdefs.h. */
|
2887 |
|
|
_ACEOF
|
2888 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2889 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2890 |
|
|
/* end confdefs.h. */
|
2891 |
|
|
$ac_includes_default
|
2892 |
|
|
|
2893 |
|
|
#include <$ac_header>
|
2894 |
|
|
_ACEOF
|
2895 |
|
|
rm -f conftest.$ac_objext
|
2896 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
2897 |
|
|
(eval $ac_compile) 2>conftest.er1
|
2898 |
|
|
ac_status=$?
|
2899 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
2900 |
|
|
rm -f conftest.er1
|
2901 |
|
|
cat conftest.err >&5
|
2902 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2903 |
|
|
(exit $ac_status); } &&
|
2904 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
2905 |
|
|
|| test ! -s conftest.err'
|
2906 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
2907 |
|
|
(eval $ac_try) 2>&5
|
2908 |
|
|
ac_status=$?
|
2909 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2910 |
|
|
(exit $ac_status); }; } &&
|
2911 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
2912 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
2913 |
|
|
(eval $ac_try) 2>&5
|
2914 |
|
|
ac_status=$?
|
2915 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2916 |
|
|
(exit $ac_status); }; }; then
|
2917 |
|
|
eval "$as_ac_Header=yes"
|
2918 |
|
|
else
|
2919 |
|
|
echo "$as_me: failed program was:" >&5
|
2920 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2921 |
|
|
|
2922 |
|
|
eval "$as_ac_Header=no"
|
2923 |
|
|
fi
|
2924 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
2925 |
|
|
fi
|
2926 |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
2927 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
2928 |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
2929 |
|
|
cat >>confdefs.h <<_ACEOF
|
2930 |
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
2931 |
|
|
_ACEOF
|
2932 |
|
|
|
2933 |
|
|
fi
|
2934 |
|
|
|
2935 |
|
|
done
|
2936 |
|
|
|
2937 |
|
|
|
2938 |
|
|
if test "${ac_cv_header_minix_config_h+set}" = set; then
|
2939 |
|
|
echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
2940 |
|
|
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
2941 |
|
|
if test "${ac_cv_header_minix_config_h+set}" = set; then
|
2942 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
2943 |
|
|
fi
|
2944 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
2945 |
|
|
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
2946 |
|
|
else
|
2947 |
|
|
# Is the header compilable?
|
2948 |
|
|
echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
2949 |
|
|
echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
|
2950 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2951 |
|
|
/* confdefs.h. */
|
2952 |
|
|
_ACEOF
|
2953 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2954 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
2955 |
|
|
/* end confdefs.h. */
|
2956 |
|
|
$ac_includes_default
|
2957 |
|
|
#include
|
2958 |
|
|
_ACEOF
|
2959 |
|
|
rm -f conftest.$ac_objext
|
2960 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
2961 |
|
|
(eval $ac_compile) 2>conftest.er1
|
2962 |
|
|
ac_status=$?
|
2963 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
2964 |
|
|
rm -f conftest.er1
|
2965 |
|
|
cat conftest.err >&5
|
2966 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2967 |
|
|
(exit $ac_status); } &&
|
2968 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
2969 |
|
|
|| test ! -s conftest.err'
|
2970 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
2971 |
|
|
(eval $ac_try) 2>&5
|
2972 |
|
|
ac_status=$?
|
2973 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2974 |
|
|
(exit $ac_status); }; } &&
|
2975 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
2976 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
2977 |
|
|
(eval $ac_try) 2>&5
|
2978 |
|
|
ac_status=$?
|
2979 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
2980 |
|
|
(exit $ac_status); }; }; then
|
2981 |
|
|
ac_header_compiler=yes
|
2982 |
|
|
else
|
2983 |
|
|
echo "$as_me: failed program was:" >&5
|
2984 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
2985 |
|
|
|
2986 |
|
|
ac_header_compiler=no
|
2987 |
|
|
fi
|
2988 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
2989 |
|
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
2990 |
|
|
echo "${ECHO_T}$ac_header_compiler" >&6
|
2991 |
|
|
|
2992 |
|
|
# Is the header present?
|
2993 |
|
|
echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
2994 |
|
|
echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
|
2995 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
2996 |
|
|
/* confdefs.h. */
|
2997 |
|
|
_ACEOF
|
2998 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
2999 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
3000 |
|
|
/* end confdefs.h. */
|
3001 |
|
|
#include
|
3002 |
|
|
_ACEOF
|
3003 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
3004 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
3005 |
|
|
ac_status=$?
|
3006 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
3007 |
|
|
rm -f conftest.er1
|
3008 |
|
|
cat conftest.err >&5
|
3009 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3010 |
|
|
(exit $ac_status); } >/dev/null; then
|
3011 |
|
|
if test -s conftest.err; then
|
3012 |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
3013 |
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
3014 |
|
|
else
|
3015 |
|
|
ac_cpp_err=
|
3016 |
|
|
fi
|
3017 |
|
|
else
|
3018 |
|
|
ac_cpp_err=yes
|
3019 |
|
|
fi
|
3020 |
|
|
if test -z "$ac_cpp_err"; then
|
3021 |
|
|
ac_header_preproc=yes
|
3022 |
|
|
else
|
3023 |
|
|
echo "$as_me: failed program was:" >&5
|
3024 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
3025 |
|
|
|
3026 |
|
|
ac_header_preproc=no
|
3027 |
|
|
fi
|
3028 |
|
|
rm -f conftest.err conftest.$ac_ext
|
3029 |
|
|
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
3030 |
|
|
echo "${ECHO_T}$ac_header_preproc" >&6
|
3031 |
|
|
|
3032 |
|
|
# So? What about this header?
|
3033 |
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
3034 |
|
|
yes:no: )
|
3035 |
|
|
{ echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
3036 |
|
|
echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
3037 |
|
|
{ echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
3038 |
|
|
echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
3039 |
|
|
ac_header_preproc=yes
|
3040 |
|
|
;;
|
3041 |
|
|
no:yes:* )
|
3042 |
|
|
{ echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
3043 |
|
|
echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
3044 |
|
|
{ echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
3045 |
|
|
echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
3046 |
|
|
{ echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
3047 |
|
|
echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
3048 |
|
|
{ echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
3049 |
|
|
echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
3050 |
|
|
{ echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
3051 |
|
|
echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
3052 |
|
|
{ echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
3053 |
|
|
echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
3054 |
|
|
(
|
3055 |
|
|
cat <<\_ASBOX
|
3056 |
|
|
## ----------------------------------- ##
|
3057 |
|
|
## Report this to bug-readline@gnu.org ##
|
3058 |
|
|
## ----------------------------------- ##
|
3059 |
|
|
_ASBOX
|
3060 |
|
|
) |
|
3061 |
|
|
sed "s/^/$as_me: WARNING: /" >&2
|
3062 |
|
|
;;
|
3063 |
|
|
esac
|
3064 |
|
|
echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
3065 |
|
|
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
3066 |
|
|
if test "${ac_cv_header_minix_config_h+set}" = set; then
|
3067 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3068 |
|
|
else
|
3069 |
|
|
ac_cv_header_minix_config_h=$ac_header_preproc
|
3070 |
|
|
fi
|
3071 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
3072 |
|
|
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
3073 |
|
|
|
3074 |
|
|
fi
|
3075 |
|
|
if test $ac_cv_header_minix_config_h = yes; then
|
3076 |
|
|
MINIX=yes
|
3077 |
|
|
else
|
3078 |
|
|
MINIX=
|
3079 |
|
|
fi
|
3080 |
|
|
|
3081 |
|
|
|
3082 |
|
|
if test "$MINIX" = yes; then
|
3083 |
|
|
|
3084 |
|
|
cat >>confdefs.h <<\_ACEOF
|
3085 |
|
|
#define _POSIX_SOURCE 1
|
3086 |
|
|
_ACEOF
|
3087 |
|
|
|
3088 |
|
|
|
3089 |
|
|
cat >>confdefs.h <<\_ACEOF
|
3090 |
|
|
#define _POSIX_1_SOURCE 2
|
3091 |
|
|
_ACEOF
|
3092 |
|
|
|
3093 |
|
|
|
3094 |
|
|
cat >>confdefs.h <<\_ACEOF
|
3095 |
|
|
#define _MINIX 1
|
3096 |
|
|
_ACEOF
|
3097 |
|
|
|
3098 |
|
|
fi
|
3099 |
|
|
|
3100 |
|
|
|
3101 |
|
|
|
3102 |
|
|
if test "x$cross_compiling" = "xyes"; then
|
3103 |
|
|
case "${host}" in
|
3104 |
|
|
*-cygwin*)
|
3105 |
|
|
cross_cache=${srcdir}/cross-build/cygwin.cache
|
3106 |
|
|
LOCAL_CFLAGS="$LOCAL_CFLAGS -I${srcdir}/../libtermcap"
|
3107 |
|
|
;;
|
3108 |
|
|
*-mingw32*)
|
3109 |
|
|
cross_cache=${srcdir}/cross-build/mingw.cache
|
3110 |
|
|
;;
|
3111 |
|
|
*) echo "configure: cross-compiling for a non-cygwin target is not supported" >&2
|
3112 |
|
|
;;
|
3113 |
|
|
esac
|
3114 |
|
|
|
3115 |
|
|
if test "x$cross_cache" != "x"; then
|
3116 |
|
|
if test -r "${cross_cache}"; then
|
3117 |
|
|
echo "loading cross-build cache file ${cross_cache}"
|
3118 |
|
|
. ${cross_cache}
|
3119 |
|
|
fi
|
3120 |
|
|
unset cross_cache
|
3121 |
|
|
fi
|
3122 |
|
|
fi
|
3123 |
|
|
|
3124 |
|
|
if test -z "$CC_FOR_BUILD"; then
|
3125 |
|
|
if test "x$cross_compiling" = "xno"; then
|
3126 |
|
|
CC_FOR_BUILD='$(CC)'
|
3127 |
|
|
else
|
3128 |
|
|
CC_FOR_BUILD=gcc
|
3129 |
|
|
fi
|
3130 |
|
|
fi
|
3131 |
|
|
|
3132 |
|
|
|
3133 |
|
|
|
3134 |
|
|
# If we're using gcc and the user hasn't specified CFLAGS, add -O to CFLAGS.
|
3135 |
|
|
test -n "$GCC" && test -n "$auto_cflags" && CFLAGS="$CFLAGS -O"
|
3136 |
|
|
|
3137 |
|
|
if test $ac_cv_c_compiler_gnu = yes; then
|
3138 |
|
|
echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
3139 |
|
|
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
|
3140 |
|
|
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
3141 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3142 |
|
|
else
|
3143 |
|
|
ac_pattern="Autoconf.*'x'"
|
3144 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
3145 |
|
|
/* confdefs.h. */
|
3146 |
|
|
_ACEOF
|
3147 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
3148 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
3149 |
|
|
/* end confdefs.h. */
|
3150 |
|
|
#include
|
3151 |
|
|
Autoconf TIOCGETP
|
3152 |
|
|
_ACEOF
|
3153 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
3154 |
|
|
$EGREP "$ac_pattern" >/dev/null 2>&1; then
|
3155 |
|
|
ac_cv_prog_gcc_traditional=yes
|
3156 |
|
|
else
|
3157 |
|
|
ac_cv_prog_gcc_traditional=no
|
3158 |
|
|
fi
|
3159 |
|
|
rm -f conftest*
|
3160 |
|
|
|
3161 |
|
|
|
3162 |
|
|
if test $ac_cv_prog_gcc_traditional = no; then
|
3163 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
3164 |
|
|
/* confdefs.h. */
|
3165 |
|
|
_ACEOF
|
3166 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
3167 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
3168 |
|
|
/* end confdefs.h. */
|
3169 |
|
|
#include
|
3170 |
|
|
Autoconf TCGETA
|
3171 |
|
|
_ACEOF
|
3172 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
3173 |
|
|
$EGREP "$ac_pattern" >/dev/null 2>&1; then
|
3174 |
|
|
ac_cv_prog_gcc_traditional=yes
|
3175 |
|
|
fi
|
3176 |
|
|
rm -f conftest*
|
3177 |
|
|
|
3178 |
|
|
fi
|
3179 |
|
|
fi
|
3180 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
3181 |
|
|
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
|
3182 |
|
|
if test $ac_cv_prog_gcc_traditional = yes; then
|
3183 |
|
|
CC="$CC -traditional"
|
3184 |
|
|
fi
|
3185 |
|
|
fi
|
3186 |
|
|
|
3187 |
|
|
# Find a good install program. We prefer a C program (faster),
|
3188 |
|
|
# so one script is as good as another. But avoid the broken or
|
3189 |
|
|
# incompatible versions:
|
3190 |
|
|
# SysV /etc/install, /usr/sbin/install
|
3191 |
|
|
# SunOS /usr/etc/install
|
3192 |
|
|
# IRIX /sbin/install
|
3193 |
|
|
# AIX /bin/install
|
3194 |
|
|
# AmigaOS /C/install, which installs bootblocks on floppy discs
|
3195 |
|
|
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
3196 |
|
|
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
3197 |
|
|
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
3198 |
|
|
# OS/2's system install, which has a completely different semantic
|
3199 |
|
|
# ./install, which can be erroneously created by make from ./install.sh.
|
3200 |
|
|
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
3201 |
|
|
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
3202 |
|
|
if test -z "$INSTALL"; then
|
3203 |
|
|
if test "${ac_cv_path_install+set}" = set; then
|
3204 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3205 |
|
|
else
|
3206 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
3207 |
|
|
for as_dir in $PATH
|
3208 |
|
|
do
|
3209 |
|
|
IFS=$as_save_IFS
|
3210 |
|
|
test -z "$as_dir" && as_dir=.
|
3211 |
|
|
# Account for people who put trailing slashes in PATH elements.
|
3212 |
|
|
case $as_dir/ in
|
3213 |
|
|
./ | .// | /cC/* | \
|
3214 |
|
|
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
3215 |
|
|
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
3216 |
|
|
/usr/ucb/* ) ;;
|
3217 |
|
|
*)
|
3218 |
|
|
# OSF1 and SCO ODT 3.0 have their own names for install.
|
3219 |
|
|
# Don't use installbsd from OSF since it installs stuff as root
|
3220 |
|
|
# by default.
|
3221 |
|
|
for ac_prog in ginstall scoinst install; do
|
3222 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
3223 |
|
|
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
3224 |
|
|
if test $ac_prog = install &&
|
3225 |
|
|
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
3226 |
|
|
# AIX install. It has an incompatible calling convention.
|
3227 |
|
|
:
|
3228 |
|
|
elif test $ac_prog = install &&
|
3229 |
|
|
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
3230 |
|
|
# program-specific install script used by HP pwplus--don't use.
|
3231 |
|
|
:
|
3232 |
|
|
else
|
3233 |
|
|
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
3234 |
|
|
break 3
|
3235 |
|
|
fi
|
3236 |
|
|
fi
|
3237 |
|
|
done
|
3238 |
|
|
done
|
3239 |
|
|
;;
|
3240 |
|
|
esac
|
3241 |
|
|
done
|
3242 |
|
|
|
3243 |
|
|
|
3244 |
|
|
fi
|
3245 |
|
|
if test "${ac_cv_path_install+set}" = set; then
|
3246 |
|
|
INSTALL=$ac_cv_path_install
|
3247 |
|
|
else
|
3248 |
|
|
# As a last resort, use the slow shell script. We don't cache a
|
3249 |
|
|
# path for INSTALL within a source directory, because that will
|
3250 |
|
|
# break other packages using the cache if that directory is
|
3251 |
|
|
# removed, or if the path is relative.
|
3252 |
|
|
INSTALL=$ac_install_sh
|
3253 |
|
|
fi
|
3254 |
|
|
fi
|
3255 |
|
|
echo "$as_me:$LINENO: result: $INSTALL" >&5
|
3256 |
|
|
echo "${ECHO_T}$INSTALL" >&6
|
3257 |
|
|
|
3258 |
|
|
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
3259 |
|
|
# It thinks the first close brace ends the variable substitution.
|
3260 |
|
|
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
3261 |
|
|
|
3262 |
|
|
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
3263 |
|
|
|
3264 |
|
|
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
3265 |
|
|
|
3266 |
|
|
# Extract the first word of "ar", so it can be a program name with args.
|
3267 |
|
|
set dummy ar; ac_word=$2
|
3268 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
3269 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
3270 |
|
|
if test "${ac_cv_prog_AR+set}" = set; then
|
3271 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3272 |
|
|
else
|
3273 |
|
|
if test -n "$AR"; then
|
3274 |
|
|
ac_cv_prog_AR="$AR" # Let the user override the test.
|
3275 |
|
|
else
|
3276 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
3277 |
|
|
for as_dir in $PATH
|
3278 |
|
|
do
|
3279 |
|
|
IFS=$as_save_IFS
|
3280 |
|
|
test -z "$as_dir" && as_dir=.
|
3281 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
3282 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
3283 |
|
|
ac_cv_prog_AR=""
|
3284 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
3285 |
|
|
break 2
|
3286 |
|
|
fi
|
3287 |
|
|
done
|
3288 |
|
|
done
|
3289 |
|
|
|
3290 |
|
|
test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
|
3291 |
|
|
fi
|
3292 |
|
|
fi
|
3293 |
|
|
AR=$ac_cv_prog_AR
|
3294 |
|
|
if test -n "$AR"; then
|
3295 |
|
|
echo "$as_me:$LINENO: result: $AR" >&5
|
3296 |
|
|
echo "${ECHO_T}$AR" >&6
|
3297 |
|
|
else
|
3298 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
3299 |
|
|
echo "${ECHO_T}no" >&6
|
3300 |
|
|
fi
|
3301 |
|
|
|
3302 |
|
|
test -n "$ARFLAGS" || ARFLAGS="cr"
|
3303 |
|
|
if test -n "$ac_tool_prefix"; then
|
3304 |
|
|
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
3305 |
|
|
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
3306 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
3307 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
3308 |
|
|
if test "${ac_cv_prog_RANLIB+set}" = set; then
|
3309 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3310 |
|
|
else
|
3311 |
|
|
if test -n "$RANLIB"; then
|
3312 |
|
|
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
3313 |
|
|
else
|
3314 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
3315 |
|
|
for as_dir in $PATH
|
3316 |
|
|
do
|
3317 |
|
|
IFS=$as_save_IFS
|
3318 |
|
|
test -z "$as_dir" && as_dir=.
|
3319 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
3320 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
3321 |
|
|
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
3322 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
3323 |
|
|
break 2
|
3324 |
|
|
fi
|
3325 |
|
|
done
|
3326 |
|
|
done
|
3327 |
|
|
|
3328 |
|
|
fi
|
3329 |
|
|
fi
|
3330 |
|
|
RANLIB=$ac_cv_prog_RANLIB
|
3331 |
|
|
if test -n "$RANLIB"; then
|
3332 |
|
|
echo "$as_me:$LINENO: result: $RANLIB" >&5
|
3333 |
|
|
echo "${ECHO_T}$RANLIB" >&6
|
3334 |
|
|
else
|
3335 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
3336 |
|
|
echo "${ECHO_T}no" >&6
|
3337 |
|
|
fi
|
3338 |
|
|
|
3339 |
|
|
fi
|
3340 |
|
|
if test -z "$ac_cv_prog_RANLIB"; then
|
3341 |
|
|
ac_ct_RANLIB=$RANLIB
|
3342 |
|
|
# Extract the first word of "ranlib", so it can be a program name with args.
|
3343 |
|
|
set dummy ranlib; ac_word=$2
|
3344 |
|
|
echo "$as_me:$LINENO: checking for $ac_word" >&5
|
3345 |
|
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
3346 |
|
|
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
3347 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3348 |
|
|
else
|
3349 |
|
|
if test -n "$ac_ct_RANLIB"; then
|
3350 |
|
|
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
3351 |
|
|
else
|
3352 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
3353 |
|
|
for as_dir in $PATH
|
3354 |
|
|
do
|
3355 |
|
|
IFS=$as_save_IFS
|
3356 |
|
|
test -z "$as_dir" && as_dir=.
|
3357 |
|
|
for ac_exec_ext in '' $ac_executable_extensions; do
|
3358 |
|
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
3359 |
|
|
ac_cv_prog_ac_ct_RANLIB="ranlib"
|
3360 |
|
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
3361 |
|
|
break 2
|
3362 |
|
|
fi
|
3363 |
|
|
done
|
3364 |
|
|
done
|
3365 |
|
|
|
3366 |
|
|
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
3367 |
|
|
fi
|
3368 |
|
|
fi
|
3369 |
|
|
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
3370 |
|
|
if test -n "$ac_ct_RANLIB"; then
|
3371 |
|
|
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
3372 |
|
|
echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
3373 |
|
|
else
|
3374 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
3375 |
|
|
echo "${ECHO_T}no" >&6
|
3376 |
|
|
fi
|
3377 |
|
|
|
3378 |
|
|
RANLIB=$ac_ct_RANLIB
|
3379 |
|
|
else
|
3380 |
|
|
RANLIB="$ac_cv_prog_RANLIB"
|
3381 |
|
|
fi
|
3382 |
|
|
|
3383 |
|
|
|
3384 |
|
|
MAKE_SHELL=/bin/sh
|
3385 |
|
|
|
3386 |
|
|
|
3387 |
|
|
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
3388 |
|
|
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
3389 |
|
|
if test "${ac_cv_c_const+set}" = set; then
|
3390 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3391 |
|
|
else
|
3392 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
3393 |
|
|
/* confdefs.h. */
|
3394 |
|
|
_ACEOF
|
3395 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
3396 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
3397 |
|
|
/* end confdefs.h. */
|
3398 |
|
|
|
3399 |
|
|
int
|
3400 |
|
|
main ()
|
3401 |
|
|
{
|
3402 |
|
|
/* FIXME: Include the comments suggested by Paul. */
|
3403 |
|
|
#ifndef __cplusplus
|
3404 |
|
|
/* Ultrix mips cc rejects this. */
|
3405 |
|
|
typedef int charset[2];
|
3406 |
|
|
const charset x;
|
3407 |
|
|
/* SunOS 4.1.1 cc rejects this. */
|
3408 |
|
|
char const *const *ccp;
|
3409 |
|
|
char **p;
|
3410 |
|
|
/* NEC SVR4.0.2 mips cc rejects this. */
|
3411 |
|
|
struct point {int x, y;};
|
3412 |
|
|
static struct point const zero = {0,0};
|
3413 |
|
|
/* AIX XL C 1.02.0.0 rejects this.
|
3414 |
|
|
It does not let you subtract one const X* pointer from another in
|
3415 |
|
|
an arm of an if-expression whose if-part is not a constant
|
3416 |
|
|
expression */
|
3417 |
|
|
const char *g = "string";
|
3418 |
|
|
ccp = &g + (g ? g-g : 0);
|
3419 |
|
|
/* HPUX 7.0 cc rejects these. */
|
3420 |
|
|
++ccp;
|
3421 |
|
|
p = (char**) ccp;
|
3422 |
|
|
ccp = (char const *const *) p;
|
3423 |
|
|
{ /* SCO 3.2v4 cc rejects this. */
|
3424 |
|
|
char *t;
|
3425 |
|
|
char const *s = 0 ? (char *) 0 : (char const *) 0;
|
3426 |
|
|
|
3427 |
|
|
*t++ = 0;
|
3428 |
|
|
}
|
3429 |
|
|
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
3430 |
|
|
int x[] = {25, 17};
|
3431 |
|
|
const int *foo = &x[0];
|
3432 |
|
|
++foo;
|
3433 |
|
|
}
|
3434 |
|
|
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
3435 |
|
|
typedef const int *iptr;
|
3436 |
|
|
iptr p = 0;
|
3437 |
|
|
++p;
|
3438 |
|
|
}
|
3439 |
|
|
{ /* AIX XL C 1.02.0.0 rejects this saying
|
3440 |
|
|
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
3441 |
|
|
struct s { int j; const int *ap[3]; };
|
3442 |
|
|
struct s *b; b->j = 5;
|
3443 |
|
|
}
|
3444 |
|
|
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
3445 |
|
|
const int foo = 10;
|
3446 |
|
|
}
|
3447 |
|
|
#endif
|
3448 |
|
|
|
3449 |
|
|
;
|
3450 |
|
|
return 0;
|
3451 |
|
|
}
|
3452 |
|
|
_ACEOF
|
3453 |
|
|
rm -f conftest.$ac_objext
|
3454 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
3455 |
|
|
(eval $ac_compile) 2>conftest.er1
|
3456 |
|
|
ac_status=$?
|
3457 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
3458 |
|
|
rm -f conftest.er1
|
3459 |
|
|
cat conftest.err >&5
|
3460 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3461 |
|
|
(exit $ac_status); } &&
|
3462 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
3463 |
|
|
|| test ! -s conftest.err'
|
3464 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
3465 |
|
|
(eval $ac_try) 2>&5
|
3466 |
|
|
ac_status=$?
|
3467 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3468 |
|
|
(exit $ac_status); }; } &&
|
3469 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
3470 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
3471 |
|
|
(eval $ac_try) 2>&5
|
3472 |
|
|
ac_status=$?
|
3473 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3474 |
|
|
(exit $ac_status); }; }; then
|
3475 |
|
|
ac_cv_c_const=yes
|
3476 |
|
|
else
|
3477 |
|
|
echo "$as_me: failed program was:" >&5
|
3478 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
3479 |
|
|
|
3480 |
|
|
ac_cv_c_const=no
|
3481 |
|
|
fi
|
3482 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
3483 |
|
|
fi
|
3484 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
3485 |
|
|
echo "${ECHO_T}$ac_cv_c_const" >&6
|
3486 |
|
|
if test $ac_cv_c_const = no; then
|
3487 |
|
|
|
3488 |
|
|
cat >>confdefs.h <<\_ACEOF
|
3489 |
|
|
#define const
|
3490 |
|
|
_ACEOF
|
3491 |
|
|
|
3492 |
|
|
fi
|
3493 |
|
|
|
3494 |
|
|
echo "$as_me:$LINENO: checking for function prototypes" >&5
|
3495 |
|
|
echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
|
3496 |
|
|
if test "$ac_cv_prog_cc_stdc" != no; then
|
3497 |
|
|
echo "$as_me:$LINENO: result: yes" >&5
|
3498 |
|
|
echo "${ECHO_T}yes" >&6
|
3499 |
|
|
|
3500 |
|
|
cat >>confdefs.h <<\_ACEOF
|
3501 |
|
|
#define PROTOTYPES 1
|
3502 |
|
|
_ACEOF
|
3503 |
|
|
|
3504 |
|
|
|
3505 |
|
|
cat >>confdefs.h <<\_ACEOF
|
3506 |
|
|
#define __PROTOTYPES 1
|
3507 |
|
|
_ACEOF
|
3508 |
|
|
|
3509 |
|
|
else
|
3510 |
|
|
echo "$as_me:$LINENO: result: no" >&5
|
3511 |
|
|
echo "${ECHO_T}no" >&6
|
3512 |
|
|
fi
|
3513 |
|
|
|
3514 |
|
|
|
3515 |
|
|
echo "$as_me:$LINENO: checking whether char is unsigned" >&5
|
3516 |
|
|
echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
|
3517 |
|
|
if test "${ac_cv_c_char_unsigned+set}" = set; then
|
3518 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3519 |
|
|
else
|
3520 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
3521 |
|
|
/* confdefs.h. */
|
3522 |
|
|
_ACEOF
|
3523 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
3524 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
3525 |
|
|
/* end confdefs.h. */
|
3526 |
|
|
$ac_includes_default
|
3527 |
|
|
int
|
3528 |
|
|
main ()
|
3529 |
|
|
{
|
3530 |
|
|
static int test_array [1 - 2 * !(((char) -1) < 0)];
|
3531 |
|
|
test_array [0] = 0
|
3532 |
|
|
|
3533 |
|
|
;
|
3534 |
|
|
return 0;
|
3535 |
|
|
}
|
3536 |
|
|
_ACEOF
|
3537 |
|
|
rm -f conftest.$ac_objext
|
3538 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
3539 |
|
|
(eval $ac_compile) 2>conftest.er1
|
3540 |
|
|
ac_status=$?
|
3541 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
3542 |
|
|
rm -f conftest.er1
|
3543 |
|
|
cat conftest.err >&5
|
3544 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3545 |
|
|
(exit $ac_status); } &&
|
3546 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
3547 |
|
|
|| test ! -s conftest.err'
|
3548 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
3549 |
|
|
(eval $ac_try) 2>&5
|
3550 |
|
|
ac_status=$?
|
3551 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3552 |
|
|
(exit $ac_status); }; } &&
|
3553 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
3554 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
3555 |
|
|
(eval $ac_try) 2>&5
|
3556 |
|
|
ac_status=$?
|
3557 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3558 |
|
|
(exit $ac_status); }; }; then
|
3559 |
|
|
ac_cv_c_char_unsigned=no
|
3560 |
|
|
else
|
3561 |
|
|
echo "$as_me: failed program was:" >&5
|
3562 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
3563 |
|
|
|
3564 |
|
|
ac_cv_c_char_unsigned=yes
|
3565 |
|
|
fi
|
3566 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
3567 |
|
|
fi
|
3568 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
|
3569 |
|
|
echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
|
3570 |
|
|
if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
|
3571 |
|
|
cat >>confdefs.h <<\_ACEOF
|
3572 |
|
|
#define __CHAR_UNSIGNED__ 1
|
3573 |
|
|
_ACEOF
|
3574 |
|
|
|
3575 |
|
|
fi
|
3576 |
|
|
|
3577 |
|
|
|
3578 |
|
|
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
3579 |
|
|
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
|
3580 |
|
|
if test "${ac_cv_type_signal+set}" = set; then
|
3581 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3582 |
|
|
else
|
3583 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
3584 |
|
|
/* confdefs.h. */
|
3585 |
|
|
_ACEOF
|
3586 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
3587 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
3588 |
|
|
/* end confdefs.h. */
|
3589 |
|
|
#include
|
3590 |
|
|
#include
|
3591 |
|
|
#ifdef signal
|
3592 |
|
|
# undef signal
|
3593 |
|
|
#endif
|
3594 |
|
|
#ifdef __cplusplus
|
3595 |
|
|
extern "C" void (*signal (int, void (*)(int)))(int);
|
3596 |
|
|
#else
|
3597 |
|
|
void (*signal ()) ();
|
3598 |
|
|
#endif
|
3599 |
|
|
|
3600 |
|
|
int
|
3601 |
|
|
main ()
|
3602 |
|
|
{
|
3603 |
|
|
int i;
|
3604 |
|
|
;
|
3605 |
|
|
return 0;
|
3606 |
|
|
}
|
3607 |
|
|
_ACEOF
|
3608 |
|
|
rm -f conftest.$ac_objext
|
3609 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
3610 |
|
|
(eval $ac_compile) 2>conftest.er1
|
3611 |
|
|
ac_status=$?
|
3612 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
3613 |
|
|
rm -f conftest.er1
|
3614 |
|
|
cat conftest.err >&5
|
3615 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3616 |
|
|
(exit $ac_status); } &&
|
3617 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
3618 |
|
|
|| test ! -s conftest.err'
|
3619 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
3620 |
|
|
(eval $ac_try) 2>&5
|
3621 |
|
|
ac_status=$?
|
3622 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3623 |
|
|
(exit $ac_status); }; } &&
|
3624 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
3625 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
3626 |
|
|
(eval $ac_try) 2>&5
|
3627 |
|
|
ac_status=$?
|
3628 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3629 |
|
|
(exit $ac_status); }; }; then
|
3630 |
|
|
ac_cv_type_signal=void
|
3631 |
|
|
else
|
3632 |
|
|
echo "$as_me: failed program was:" >&5
|
3633 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
3634 |
|
|
|
3635 |
|
|
ac_cv_type_signal=int
|
3636 |
|
|
fi
|
3637 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
3638 |
|
|
fi
|
3639 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
3640 |
|
|
echo "${ECHO_T}$ac_cv_type_signal" >&6
|
3641 |
|
|
|
3642 |
|
|
cat >>confdefs.h <<_ACEOF
|
3643 |
|
|
#define RETSIGTYPE $ac_cv_type_signal
|
3644 |
|
|
_ACEOF
|
3645 |
|
|
|
3646 |
|
|
|
3647 |
|
|
|
3648 |
|
|
echo "$as_me:$LINENO: checking for size_t" >&5
|
3649 |
|
|
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
|
3650 |
|
|
if test "${ac_cv_type_size_t+set}" = set; then
|
3651 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3652 |
|
|
else
|
3653 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
3654 |
|
|
/* confdefs.h. */
|
3655 |
|
|
_ACEOF
|
3656 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
3657 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
3658 |
|
|
/* end confdefs.h. */
|
3659 |
|
|
$ac_includes_default
|
3660 |
|
|
int
|
3661 |
|
|
main ()
|
3662 |
|
|
{
|
3663 |
|
|
if ((size_t *) 0)
|
3664 |
|
|
return 0;
|
3665 |
|
|
if (sizeof (size_t))
|
3666 |
|
|
return 0;
|
3667 |
|
|
;
|
3668 |
|
|
return 0;
|
3669 |
|
|
}
|
3670 |
|
|
_ACEOF
|
3671 |
|
|
rm -f conftest.$ac_objext
|
3672 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
3673 |
|
|
(eval $ac_compile) 2>conftest.er1
|
3674 |
|
|
ac_status=$?
|
3675 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
3676 |
|
|
rm -f conftest.er1
|
3677 |
|
|
cat conftest.err >&5
|
3678 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3679 |
|
|
(exit $ac_status); } &&
|
3680 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
3681 |
|
|
|| test ! -s conftest.err'
|
3682 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
3683 |
|
|
(eval $ac_try) 2>&5
|
3684 |
|
|
ac_status=$?
|
3685 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3686 |
|
|
(exit $ac_status); }; } &&
|
3687 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
3688 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
3689 |
|
|
(eval $ac_try) 2>&5
|
3690 |
|
|
ac_status=$?
|
3691 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3692 |
|
|
(exit $ac_status); }; }; then
|
3693 |
|
|
ac_cv_type_size_t=yes
|
3694 |
|
|
else
|
3695 |
|
|
echo "$as_me: failed program was:" >&5
|
3696 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
3697 |
|
|
|
3698 |
|
|
ac_cv_type_size_t=no
|
3699 |
|
|
fi
|
3700 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
3701 |
|
|
fi
|
3702 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
3703 |
|
|
echo "${ECHO_T}$ac_cv_type_size_t" >&6
|
3704 |
|
|
if test $ac_cv_type_size_t = yes; then
|
3705 |
|
|
:
|
3706 |
|
|
else
|
3707 |
|
|
|
3708 |
|
|
cat >>confdefs.h <<_ACEOF
|
3709 |
|
|
#define size_t unsigned
|
3710 |
|
|
_ACEOF
|
3711 |
|
|
|
3712 |
|
|
fi
|
3713 |
|
|
|
3714 |
|
|
echo "$as_me:$LINENO: checking for ssize_t" >&5
|
3715 |
|
|
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
|
3716 |
|
|
if test "${ac_cv_type_ssize_t+set}" = set; then
|
3717 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3718 |
|
|
else
|
3719 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
3720 |
|
|
/* confdefs.h. */
|
3721 |
|
|
_ACEOF
|
3722 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
3723 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
3724 |
|
|
/* end confdefs.h. */
|
3725 |
|
|
$ac_includes_default
|
3726 |
|
|
int
|
3727 |
|
|
main ()
|
3728 |
|
|
{
|
3729 |
|
|
if ((ssize_t *) 0)
|
3730 |
|
|
return 0;
|
3731 |
|
|
if (sizeof (ssize_t))
|
3732 |
|
|
return 0;
|
3733 |
|
|
;
|
3734 |
|
|
return 0;
|
3735 |
|
|
}
|
3736 |
|
|
_ACEOF
|
3737 |
|
|
rm -f conftest.$ac_objext
|
3738 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
3739 |
|
|
(eval $ac_compile) 2>conftest.er1
|
3740 |
|
|
ac_status=$?
|
3741 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
3742 |
|
|
rm -f conftest.er1
|
3743 |
|
|
cat conftest.err >&5
|
3744 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3745 |
|
|
(exit $ac_status); } &&
|
3746 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
3747 |
|
|
|| test ! -s conftest.err'
|
3748 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
3749 |
|
|
(eval $ac_try) 2>&5
|
3750 |
|
|
ac_status=$?
|
3751 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3752 |
|
|
(exit $ac_status); }; } &&
|
3753 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
3754 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
3755 |
|
|
(eval $ac_try) 2>&5
|
3756 |
|
|
ac_status=$?
|
3757 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3758 |
|
|
(exit $ac_status); }; }; then
|
3759 |
|
|
ac_cv_type_ssize_t=yes
|
3760 |
|
|
else
|
3761 |
|
|
echo "$as_me: failed program was:" >&5
|
3762 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
3763 |
|
|
|
3764 |
|
|
ac_cv_type_ssize_t=no
|
3765 |
|
|
fi
|
3766 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
3767 |
|
|
fi
|
3768 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
|
3769 |
|
|
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
|
3770 |
|
|
if test $ac_cv_type_ssize_t = yes; then
|
3771 |
|
|
:
|
3772 |
|
|
else
|
3773 |
|
|
|
3774 |
|
|
cat >>confdefs.h <<_ACEOF
|
3775 |
|
|
#define ssize_t int
|
3776 |
|
|
_ACEOF
|
3777 |
|
|
|
3778 |
|
|
fi
|
3779 |
|
|
|
3780 |
|
|
|
3781 |
|
|
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
3782 |
|
|
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
3783 |
|
|
if test "${ac_cv_header_stdc+set}" = set; then
|
3784 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3785 |
|
|
else
|
3786 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
3787 |
|
|
/* confdefs.h. */
|
3788 |
|
|
_ACEOF
|
3789 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
3790 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
3791 |
|
|
/* end confdefs.h. */
|
3792 |
|
|
#include
|
3793 |
|
|
#include
|
3794 |
|
|
#include
|
3795 |
|
|
#include
|
3796 |
|
|
|
3797 |
|
|
int
|
3798 |
|
|
main ()
|
3799 |
|
|
{
|
3800 |
|
|
|
3801 |
|
|
;
|
3802 |
|
|
return 0;
|
3803 |
|
|
}
|
3804 |
|
|
_ACEOF
|
3805 |
|
|
rm -f conftest.$ac_objext
|
3806 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
3807 |
|
|
(eval $ac_compile) 2>conftest.er1
|
3808 |
|
|
ac_status=$?
|
3809 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
3810 |
|
|
rm -f conftest.er1
|
3811 |
|
|
cat conftest.err >&5
|
3812 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3813 |
|
|
(exit $ac_status); } &&
|
3814 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
3815 |
|
|
|| test ! -s conftest.err'
|
3816 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
3817 |
|
|
(eval $ac_try) 2>&5
|
3818 |
|
|
ac_status=$?
|
3819 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3820 |
|
|
(exit $ac_status); }; } &&
|
3821 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
3822 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
3823 |
|
|
(eval $ac_try) 2>&5
|
3824 |
|
|
ac_status=$?
|
3825 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3826 |
|
|
(exit $ac_status); }; }; then
|
3827 |
|
|
ac_cv_header_stdc=yes
|
3828 |
|
|
else
|
3829 |
|
|
echo "$as_me: failed program was:" >&5
|
3830 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
3831 |
|
|
|
3832 |
|
|
ac_cv_header_stdc=no
|
3833 |
|
|
fi
|
3834 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
3835 |
|
|
|
3836 |
|
|
if test $ac_cv_header_stdc = yes; then
|
3837 |
|
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
3838 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
3839 |
|
|
/* confdefs.h. */
|
3840 |
|
|
_ACEOF
|
3841 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
3842 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
3843 |
|
|
/* end confdefs.h. */
|
3844 |
|
|
#include
|
3845 |
|
|
|
3846 |
|
|
_ACEOF
|
3847 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
3848 |
|
|
$EGREP "memchr" >/dev/null 2>&1; then
|
3849 |
|
|
:
|
3850 |
|
|
else
|
3851 |
|
|
ac_cv_header_stdc=no
|
3852 |
|
|
fi
|
3853 |
|
|
rm -f conftest*
|
3854 |
|
|
|
3855 |
|
|
fi
|
3856 |
|
|
|
3857 |
|
|
if test $ac_cv_header_stdc = yes; then
|
3858 |
|
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
3859 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
3860 |
|
|
/* confdefs.h. */
|
3861 |
|
|
_ACEOF
|
3862 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
3863 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
3864 |
|
|
/* end confdefs.h. */
|
3865 |
|
|
#include
|
3866 |
|
|
|
3867 |
|
|
_ACEOF
|
3868 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
3869 |
|
|
$EGREP "free" >/dev/null 2>&1; then
|
3870 |
|
|
:
|
3871 |
|
|
else
|
3872 |
|
|
ac_cv_header_stdc=no
|
3873 |
|
|
fi
|
3874 |
|
|
rm -f conftest*
|
3875 |
|
|
|
3876 |
|
|
fi
|
3877 |
|
|
|
3878 |
|
|
if test $ac_cv_header_stdc = yes; then
|
3879 |
|
|
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
3880 |
|
|
if test "$cross_compiling" = yes; then
|
3881 |
|
|
:
|
3882 |
|
|
else
|
3883 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
3884 |
|
|
/* confdefs.h. */
|
3885 |
|
|
_ACEOF
|
3886 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
3887 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
3888 |
|
|
/* end confdefs.h. */
|
3889 |
|
|
#include
|
3890 |
|
|
#if ((' ' & 0x0FF) == 0x020)
|
3891 |
|
|
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
3892 |
|
|
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
3893 |
|
|
#else
|
3894 |
|
|
# define ISLOWER(c) \
|
3895 |
|
|
(('a' <= (c) && (c) <= 'i') \
|
3896 |
|
|
|| ('j' <= (c) && (c) <= 'r') \
|
3897 |
|
|
|| ('s' <= (c) && (c) <= 'z'))
|
3898 |
|
|
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
3899 |
|
|
#endif
|
3900 |
|
|
|
3901 |
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
3902 |
|
|
int
|
3903 |
|
|
main ()
|
3904 |
|
|
{
|
3905 |
|
|
int i;
|
3906 |
|
|
for (i = 0; i < 256; i++)
|
3907 |
|
|
if (XOR (islower (i), ISLOWER (i))
|
3908 |
|
|
|| toupper (i) != TOUPPER (i))
|
3909 |
|
|
exit(2);
|
3910 |
|
|
exit (0);
|
3911 |
|
|
}
|
3912 |
|
|
_ACEOF
|
3913 |
|
|
rm -f conftest$ac_exeext
|
3914 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
3915 |
|
|
(eval $ac_link) 2>&5
|
3916 |
|
|
ac_status=$?
|
3917 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3918 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
3919 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
3920 |
|
|
(eval $ac_try) 2>&5
|
3921 |
|
|
ac_status=$?
|
3922 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
3923 |
|
|
(exit $ac_status); }; }; then
|
3924 |
|
|
:
|
3925 |
|
|
else
|
3926 |
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
3927 |
|
|
echo "$as_me: failed program was:" >&5
|
3928 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
3929 |
|
|
|
3930 |
|
|
( exit $ac_status )
|
3931 |
|
|
ac_cv_header_stdc=no
|
3932 |
|
|
fi
|
3933 |
|
|
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
3934 |
|
|
fi
|
3935 |
|
|
fi
|
3936 |
|
|
fi
|
3937 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
3938 |
|
|
echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
3939 |
|
|
if test $ac_cv_header_stdc = yes; then
|
3940 |
|
|
|
3941 |
|
|
cat >>confdefs.h <<\_ACEOF
|
3942 |
|
|
#define STDC_HEADERS 1
|
3943 |
|
|
_ACEOF
|
3944 |
|
|
|
3945 |
|
|
fi
|
3946 |
|
|
|
3947 |
|
|
|
3948 |
|
|
echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
|
3949 |
|
|
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
|
3950 |
|
|
if test "${ac_cv_header_stat_broken+set}" = set; then
|
3951 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
3952 |
|
|
else
|
3953 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
3954 |
|
|
/* confdefs.h. */
|
3955 |
|
|
_ACEOF
|
3956 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
3957 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
3958 |
|
|
/* end confdefs.h. */
|
3959 |
|
|
#include
|
3960 |
|
|
#include
|
3961 |
|
|
|
3962 |
|
|
#if defined(S_ISBLK) && defined(S_IFDIR)
|
3963 |
|
|
# if S_ISBLK (S_IFDIR)
|
3964 |
|
|
You lose.
|
3965 |
|
|
# endif
|
3966 |
|
|
#endif
|
3967 |
|
|
|
3968 |
|
|
#if defined(S_ISBLK) && defined(S_IFCHR)
|
3969 |
|
|
# if S_ISBLK (S_IFCHR)
|
3970 |
|
|
You lose.
|
3971 |
|
|
# endif
|
3972 |
|
|
#endif
|
3973 |
|
|
|
3974 |
|
|
#if defined(S_ISLNK) && defined(S_IFREG)
|
3975 |
|
|
# if S_ISLNK (S_IFREG)
|
3976 |
|
|
You lose.
|
3977 |
|
|
# endif
|
3978 |
|
|
#endif
|
3979 |
|
|
|
3980 |
|
|
#if defined(S_ISSOCK) && defined(S_IFREG)
|
3981 |
|
|
# if S_ISSOCK (S_IFREG)
|
3982 |
|
|
You lose.
|
3983 |
|
|
# endif
|
3984 |
|
|
#endif
|
3985 |
|
|
|
3986 |
|
|
_ACEOF
|
3987 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
3988 |
|
|
$EGREP "You lose" >/dev/null 2>&1; then
|
3989 |
|
|
ac_cv_header_stat_broken=yes
|
3990 |
|
|
else
|
3991 |
|
|
ac_cv_header_stat_broken=no
|
3992 |
|
|
fi
|
3993 |
|
|
rm -f conftest*
|
3994 |
|
|
|
3995 |
|
|
fi
|
3996 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
|
3997 |
|
|
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
|
3998 |
|
|
if test $ac_cv_header_stat_broken = yes; then
|
3999 |
|
|
|
4000 |
|
|
cat >>confdefs.h <<\_ACEOF
|
4001 |
|
|
#define STAT_MACROS_BROKEN 1
|
4002 |
|
|
_ACEOF
|
4003 |
|
|
|
4004 |
|
|
fi
|
4005 |
|
|
|
4006 |
|
|
|
4007 |
|
|
|
4008 |
|
|
|
4009 |
|
|
|
4010 |
|
|
|
4011 |
|
|
ac_header_dirent=no
|
4012 |
|
|
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
4013 |
|
|
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
4014 |
|
|
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
4015 |
|
|
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
|
4016 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
4017 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4018 |
|
|
else
|
4019 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4020 |
|
|
/* confdefs.h. */
|
4021 |
|
|
_ACEOF
|
4022 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4023 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4024 |
|
|
/* end confdefs.h. */
|
4025 |
|
|
#include
|
4026 |
|
|
#include <$ac_hdr>
|
4027 |
|
|
|
4028 |
|
|
int
|
4029 |
|
|
main ()
|
4030 |
|
|
{
|
4031 |
|
|
if ((DIR *) 0)
|
4032 |
|
|
return 0;
|
4033 |
|
|
;
|
4034 |
|
|
return 0;
|
4035 |
|
|
}
|
4036 |
|
|
_ACEOF
|
4037 |
|
|
rm -f conftest.$ac_objext
|
4038 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
4039 |
|
|
(eval $ac_compile) 2>conftest.er1
|
4040 |
|
|
ac_status=$?
|
4041 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4042 |
|
|
rm -f conftest.er1
|
4043 |
|
|
cat conftest.err >&5
|
4044 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4045 |
|
|
(exit $ac_status); } &&
|
4046 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
4047 |
|
|
|| test ! -s conftest.err'
|
4048 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4049 |
|
|
(eval $ac_try) 2>&5
|
4050 |
|
|
ac_status=$?
|
4051 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4052 |
|
|
(exit $ac_status); }; } &&
|
4053 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
4054 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4055 |
|
|
(eval $ac_try) 2>&5
|
4056 |
|
|
ac_status=$?
|
4057 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4058 |
|
|
(exit $ac_status); }; }; then
|
4059 |
|
|
eval "$as_ac_Header=yes"
|
4060 |
|
|
else
|
4061 |
|
|
echo "$as_me: failed program was:" >&5
|
4062 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4063 |
|
|
|
4064 |
|
|
eval "$as_ac_Header=no"
|
4065 |
|
|
fi
|
4066 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
4067 |
|
|
fi
|
4068 |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
4069 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
4070 |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
4071 |
|
|
cat >>confdefs.h <<_ACEOF
|
4072 |
|
|
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
4073 |
|
|
_ACEOF
|
4074 |
|
|
|
4075 |
|
|
ac_header_dirent=$ac_hdr; break
|
4076 |
|
|
fi
|
4077 |
|
|
|
4078 |
|
|
done
|
4079 |
|
|
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
4080 |
|
|
if test $ac_header_dirent = dirent.h; then
|
4081 |
|
|
echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
4082 |
|
|
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
4083 |
|
|
if test "${ac_cv_search_opendir+set}" = set; then
|
4084 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4085 |
|
|
else
|
4086 |
|
|
ac_func_search_save_LIBS=$LIBS
|
4087 |
|
|
ac_cv_search_opendir=no
|
4088 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4089 |
|
|
/* confdefs.h. */
|
4090 |
|
|
_ACEOF
|
4091 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4092 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4093 |
|
|
/* end confdefs.h. */
|
4094 |
|
|
|
4095 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
4096 |
|
|
#ifdef __cplusplus
|
4097 |
|
|
extern "C"
|
4098 |
|
|
#endif
|
4099 |
|
|
/* We use char because int might match the return type of a gcc2
|
4100 |
|
|
builtin and then its argument prototype would still apply. */
|
4101 |
|
|
char opendir ();
|
4102 |
|
|
int
|
4103 |
|
|
main ()
|
4104 |
|
|
{
|
4105 |
|
|
opendir ();
|
4106 |
|
|
;
|
4107 |
|
|
return 0;
|
4108 |
|
|
}
|
4109 |
|
|
_ACEOF
|
4110 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
4111 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
4112 |
|
|
(eval $ac_link) 2>conftest.er1
|
4113 |
|
|
ac_status=$?
|
4114 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4115 |
|
|
rm -f conftest.er1
|
4116 |
|
|
cat conftest.err >&5
|
4117 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4118 |
|
|
(exit $ac_status); } &&
|
4119 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
4120 |
|
|
|| test ! -s conftest.err'
|
4121 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4122 |
|
|
(eval $ac_try) 2>&5
|
4123 |
|
|
ac_status=$?
|
4124 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4125 |
|
|
(exit $ac_status); }; } &&
|
4126 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
4127 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4128 |
|
|
(eval $ac_try) 2>&5
|
4129 |
|
|
ac_status=$?
|
4130 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4131 |
|
|
(exit $ac_status); }; }; then
|
4132 |
|
|
ac_cv_search_opendir="none required"
|
4133 |
|
|
else
|
4134 |
|
|
echo "$as_me: failed program was:" >&5
|
4135 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4136 |
|
|
|
4137 |
|
|
fi
|
4138 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
4139 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
4140 |
|
|
if test "$ac_cv_search_opendir" = no; then
|
4141 |
|
|
for ac_lib in dir; do
|
4142 |
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
4143 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4144 |
|
|
/* confdefs.h. */
|
4145 |
|
|
_ACEOF
|
4146 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4147 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4148 |
|
|
/* end confdefs.h. */
|
4149 |
|
|
|
4150 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
4151 |
|
|
#ifdef __cplusplus
|
4152 |
|
|
extern "C"
|
4153 |
|
|
#endif
|
4154 |
|
|
/* We use char because int might match the return type of a gcc2
|
4155 |
|
|
builtin and then its argument prototype would still apply. */
|
4156 |
|
|
char opendir ();
|
4157 |
|
|
int
|
4158 |
|
|
main ()
|
4159 |
|
|
{
|
4160 |
|
|
opendir ();
|
4161 |
|
|
;
|
4162 |
|
|
return 0;
|
4163 |
|
|
}
|
4164 |
|
|
_ACEOF
|
4165 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
4166 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
4167 |
|
|
(eval $ac_link) 2>conftest.er1
|
4168 |
|
|
ac_status=$?
|
4169 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4170 |
|
|
rm -f conftest.er1
|
4171 |
|
|
cat conftest.err >&5
|
4172 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4173 |
|
|
(exit $ac_status); } &&
|
4174 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
4175 |
|
|
|| test ! -s conftest.err'
|
4176 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4177 |
|
|
(eval $ac_try) 2>&5
|
4178 |
|
|
ac_status=$?
|
4179 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4180 |
|
|
(exit $ac_status); }; } &&
|
4181 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
4182 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4183 |
|
|
(eval $ac_try) 2>&5
|
4184 |
|
|
ac_status=$?
|
4185 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4186 |
|
|
(exit $ac_status); }; }; then
|
4187 |
|
|
ac_cv_search_opendir="-l$ac_lib"
|
4188 |
|
|
break
|
4189 |
|
|
else
|
4190 |
|
|
echo "$as_me: failed program was:" >&5
|
4191 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4192 |
|
|
|
4193 |
|
|
fi
|
4194 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
4195 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
4196 |
|
|
done
|
4197 |
|
|
fi
|
4198 |
|
|
LIBS=$ac_func_search_save_LIBS
|
4199 |
|
|
fi
|
4200 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
4201 |
|
|
echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
4202 |
|
|
if test "$ac_cv_search_opendir" != no; then
|
4203 |
|
|
test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
4204 |
|
|
|
4205 |
|
|
fi
|
4206 |
|
|
|
4207 |
|
|
else
|
4208 |
|
|
echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
4209 |
|
|
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
4210 |
|
|
if test "${ac_cv_search_opendir+set}" = set; then
|
4211 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4212 |
|
|
else
|
4213 |
|
|
ac_func_search_save_LIBS=$LIBS
|
4214 |
|
|
ac_cv_search_opendir=no
|
4215 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4216 |
|
|
/* confdefs.h. */
|
4217 |
|
|
_ACEOF
|
4218 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4219 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4220 |
|
|
/* end confdefs.h. */
|
4221 |
|
|
|
4222 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
4223 |
|
|
#ifdef __cplusplus
|
4224 |
|
|
extern "C"
|
4225 |
|
|
#endif
|
4226 |
|
|
/* We use char because int might match the return type of a gcc2
|
4227 |
|
|
builtin and then its argument prototype would still apply. */
|
4228 |
|
|
char opendir ();
|
4229 |
|
|
int
|
4230 |
|
|
main ()
|
4231 |
|
|
{
|
4232 |
|
|
opendir ();
|
4233 |
|
|
;
|
4234 |
|
|
return 0;
|
4235 |
|
|
}
|
4236 |
|
|
_ACEOF
|
4237 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
4238 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
4239 |
|
|
(eval $ac_link) 2>conftest.er1
|
4240 |
|
|
ac_status=$?
|
4241 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4242 |
|
|
rm -f conftest.er1
|
4243 |
|
|
cat conftest.err >&5
|
4244 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4245 |
|
|
(exit $ac_status); } &&
|
4246 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
4247 |
|
|
|| test ! -s conftest.err'
|
4248 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4249 |
|
|
(eval $ac_try) 2>&5
|
4250 |
|
|
ac_status=$?
|
4251 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4252 |
|
|
(exit $ac_status); }; } &&
|
4253 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
4254 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4255 |
|
|
(eval $ac_try) 2>&5
|
4256 |
|
|
ac_status=$?
|
4257 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4258 |
|
|
(exit $ac_status); }; }; then
|
4259 |
|
|
ac_cv_search_opendir="none required"
|
4260 |
|
|
else
|
4261 |
|
|
echo "$as_me: failed program was:" >&5
|
4262 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4263 |
|
|
|
4264 |
|
|
fi
|
4265 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
4266 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
4267 |
|
|
if test "$ac_cv_search_opendir" = no; then
|
4268 |
|
|
for ac_lib in x; do
|
4269 |
|
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
4270 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4271 |
|
|
/* confdefs.h. */
|
4272 |
|
|
_ACEOF
|
4273 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4274 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4275 |
|
|
/* end confdefs.h. */
|
4276 |
|
|
|
4277 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
4278 |
|
|
#ifdef __cplusplus
|
4279 |
|
|
extern "C"
|
4280 |
|
|
#endif
|
4281 |
|
|
/* We use char because int might match the return type of a gcc2
|
4282 |
|
|
builtin and then its argument prototype would still apply. */
|
4283 |
|
|
char opendir ();
|
4284 |
|
|
int
|
4285 |
|
|
main ()
|
4286 |
|
|
{
|
4287 |
|
|
opendir ();
|
4288 |
|
|
;
|
4289 |
|
|
return 0;
|
4290 |
|
|
}
|
4291 |
|
|
_ACEOF
|
4292 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
4293 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
4294 |
|
|
(eval $ac_link) 2>conftest.er1
|
4295 |
|
|
ac_status=$?
|
4296 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4297 |
|
|
rm -f conftest.er1
|
4298 |
|
|
cat conftest.err >&5
|
4299 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4300 |
|
|
(exit $ac_status); } &&
|
4301 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
4302 |
|
|
|| test ! -s conftest.err'
|
4303 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4304 |
|
|
(eval $ac_try) 2>&5
|
4305 |
|
|
ac_status=$?
|
4306 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4307 |
|
|
(exit $ac_status); }; } &&
|
4308 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
4309 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4310 |
|
|
(eval $ac_try) 2>&5
|
4311 |
|
|
ac_status=$?
|
4312 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4313 |
|
|
(exit $ac_status); }; }; then
|
4314 |
|
|
ac_cv_search_opendir="-l$ac_lib"
|
4315 |
|
|
break
|
4316 |
|
|
else
|
4317 |
|
|
echo "$as_me: failed program was:" >&5
|
4318 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4319 |
|
|
|
4320 |
|
|
fi
|
4321 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
4322 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
4323 |
|
|
done
|
4324 |
|
|
fi
|
4325 |
|
|
LIBS=$ac_func_search_save_LIBS
|
4326 |
|
|
fi
|
4327 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
4328 |
|
|
echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
4329 |
|
|
if test "$ac_cv_search_opendir" != no; then
|
4330 |
|
|
test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
4331 |
|
|
|
4332 |
|
|
fi
|
4333 |
|
|
|
4334 |
|
|
fi
|
4335 |
|
|
|
4336 |
|
|
|
4337 |
|
|
|
4338 |
|
|
|
4339 |
|
|
|
4340 |
|
|
for ac_func in fcntl kill lstat
|
4341 |
|
|
do
|
4342 |
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
4343 |
|
|
echo "$as_me:$LINENO: checking for $ac_func" >&5
|
4344 |
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
4345 |
|
|
if eval "test \"\${$as_ac_var+set}\" = set"; then
|
4346 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4347 |
|
|
else
|
4348 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4349 |
|
|
/* confdefs.h. */
|
4350 |
|
|
_ACEOF
|
4351 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4352 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4353 |
|
|
/* end confdefs.h. */
|
4354 |
|
|
/* Define $ac_func to an innocuous variant, in case declares $ac_func.
|
4355 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
4356 |
|
|
#define $ac_func innocuous_$ac_func
|
4357 |
|
|
|
4358 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
4359 |
|
|
which can conflict with char $ac_func (); below.
|
4360 |
|
|
Prefer to if __STDC__ is defined, since
|
4361 |
|
|
exists even on freestanding compilers. */
|
4362 |
|
|
|
4363 |
|
|
#ifdef __STDC__
|
4364 |
|
|
# include
|
4365 |
|
|
#else
|
4366 |
|
|
# include
|
4367 |
|
|
#endif
|
4368 |
|
|
|
4369 |
|
|
#undef $ac_func
|
4370 |
|
|
|
4371 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
4372 |
|
|
#ifdef __cplusplus
|
4373 |
|
|
extern "C"
|
4374 |
|
|
{
|
4375 |
|
|
#endif
|
4376 |
|
|
/* We use char because int might match the return type of a gcc2
|
4377 |
|
|
builtin and then its argument prototype would still apply. */
|
4378 |
|
|
char $ac_func ();
|
4379 |
|
|
/* The GNU C library defines this for functions which it implements
|
4380 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
4381 |
|
|
something starting with __ and the normal name is an alias. */
|
4382 |
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
4383 |
|
|
choke me
|
4384 |
|
|
#else
|
4385 |
|
|
char (*f) () = $ac_func;
|
4386 |
|
|
#endif
|
4387 |
|
|
#ifdef __cplusplus
|
4388 |
|
|
}
|
4389 |
|
|
#endif
|
4390 |
|
|
|
4391 |
|
|
int
|
4392 |
|
|
main ()
|
4393 |
|
|
{
|
4394 |
|
|
return f != $ac_func;
|
4395 |
|
|
;
|
4396 |
|
|
return 0;
|
4397 |
|
|
}
|
4398 |
|
|
_ACEOF
|
4399 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
4400 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
4401 |
|
|
(eval $ac_link) 2>conftest.er1
|
4402 |
|
|
ac_status=$?
|
4403 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4404 |
|
|
rm -f conftest.er1
|
4405 |
|
|
cat conftest.err >&5
|
4406 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4407 |
|
|
(exit $ac_status); } &&
|
4408 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
4409 |
|
|
|| test ! -s conftest.err'
|
4410 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4411 |
|
|
(eval $ac_try) 2>&5
|
4412 |
|
|
ac_status=$?
|
4413 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4414 |
|
|
(exit $ac_status); }; } &&
|
4415 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
4416 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4417 |
|
|
(eval $ac_try) 2>&5
|
4418 |
|
|
ac_status=$?
|
4419 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4420 |
|
|
(exit $ac_status); }; }; then
|
4421 |
|
|
eval "$as_ac_var=yes"
|
4422 |
|
|
else
|
4423 |
|
|
echo "$as_me: failed program was:" >&5
|
4424 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4425 |
|
|
|
4426 |
|
|
eval "$as_ac_var=no"
|
4427 |
|
|
fi
|
4428 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
4429 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
4430 |
|
|
fi
|
4431 |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
4432 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
4433 |
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
4434 |
|
|
cat >>confdefs.h <<_ACEOF
|
4435 |
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
4436 |
|
|
_ACEOF
|
4437 |
|
|
|
4438 |
|
|
fi
|
4439 |
|
|
done
|
4440 |
|
|
|
4441 |
|
|
|
4442 |
|
|
|
4443 |
|
|
|
4444 |
|
|
|
4445 |
|
|
|
4446 |
|
|
|
4447 |
|
|
|
4448 |
|
|
|
4449 |
|
|
|
4450 |
|
|
for ac_func in memmove putenv select setenv setlocale \
|
4451 |
|
|
strcasecmp strpbrk tcgetattr vsnprintf
|
4452 |
|
|
do
|
4453 |
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
4454 |
|
|
echo "$as_me:$LINENO: checking for $ac_func" >&5
|
4455 |
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
4456 |
|
|
if eval "test \"\${$as_ac_var+set}\" = set"; then
|
4457 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4458 |
|
|
else
|
4459 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4460 |
|
|
/* confdefs.h. */
|
4461 |
|
|
_ACEOF
|
4462 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4463 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4464 |
|
|
/* end confdefs.h. */
|
4465 |
|
|
/* Define $ac_func to an innocuous variant, in case declares $ac_func.
|
4466 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
4467 |
|
|
#define $ac_func innocuous_$ac_func
|
4468 |
|
|
|
4469 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
4470 |
|
|
which can conflict with char $ac_func (); below.
|
4471 |
|
|
Prefer to if __STDC__ is defined, since
|
4472 |
|
|
exists even on freestanding compilers. */
|
4473 |
|
|
|
4474 |
|
|
#ifdef __STDC__
|
4475 |
|
|
# include
|
4476 |
|
|
#else
|
4477 |
|
|
# include
|
4478 |
|
|
#endif
|
4479 |
|
|
|
4480 |
|
|
#undef $ac_func
|
4481 |
|
|
|
4482 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
4483 |
|
|
#ifdef __cplusplus
|
4484 |
|
|
extern "C"
|
4485 |
|
|
{
|
4486 |
|
|
#endif
|
4487 |
|
|
/* We use char because int might match the return type of a gcc2
|
4488 |
|
|
builtin and then its argument prototype would still apply. */
|
4489 |
|
|
char $ac_func ();
|
4490 |
|
|
/* The GNU C library defines this for functions which it implements
|
4491 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
4492 |
|
|
something starting with __ and the normal name is an alias. */
|
4493 |
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
4494 |
|
|
choke me
|
4495 |
|
|
#else
|
4496 |
|
|
char (*f) () = $ac_func;
|
4497 |
|
|
#endif
|
4498 |
|
|
#ifdef __cplusplus
|
4499 |
|
|
}
|
4500 |
|
|
#endif
|
4501 |
|
|
|
4502 |
|
|
int
|
4503 |
|
|
main ()
|
4504 |
|
|
{
|
4505 |
|
|
return f != $ac_func;
|
4506 |
|
|
;
|
4507 |
|
|
return 0;
|
4508 |
|
|
}
|
4509 |
|
|
_ACEOF
|
4510 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
4511 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
4512 |
|
|
(eval $ac_link) 2>conftest.er1
|
4513 |
|
|
ac_status=$?
|
4514 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4515 |
|
|
rm -f conftest.er1
|
4516 |
|
|
cat conftest.err >&5
|
4517 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4518 |
|
|
(exit $ac_status); } &&
|
4519 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
4520 |
|
|
|| test ! -s conftest.err'
|
4521 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4522 |
|
|
(eval $ac_try) 2>&5
|
4523 |
|
|
ac_status=$?
|
4524 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4525 |
|
|
(exit $ac_status); }; } &&
|
4526 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
4527 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4528 |
|
|
(eval $ac_try) 2>&5
|
4529 |
|
|
ac_status=$?
|
4530 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4531 |
|
|
(exit $ac_status); }; }; then
|
4532 |
|
|
eval "$as_ac_var=yes"
|
4533 |
|
|
else
|
4534 |
|
|
echo "$as_me: failed program was:" >&5
|
4535 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4536 |
|
|
|
4537 |
|
|
eval "$as_ac_var=no"
|
4538 |
|
|
fi
|
4539 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
4540 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
4541 |
|
|
fi
|
4542 |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
4543 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
4544 |
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
4545 |
|
|
cat >>confdefs.h <<_ACEOF
|
4546 |
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
4547 |
|
|
_ACEOF
|
4548 |
|
|
|
4549 |
|
|
fi
|
4550 |
|
|
done
|
4551 |
|
|
|
4552 |
|
|
|
4553 |
|
|
|
4554 |
|
|
for ac_func in isascii isxdigit
|
4555 |
|
|
do
|
4556 |
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
4557 |
|
|
echo "$as_me:$LINENO: checking for $ac_func" >&5
|
4558 |
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
4559 |
|
|
if eval "test \"\${$as_ac_var+set}\" = set"; then
|
4560 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4561 |
|
|
else
|
4562 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4563 |
|
|
/* confdefs.h. */
|
4564 |
|
|
_ACEOF
|
4565 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4566 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4567 |
|
|
/* end confdefs.h. */
|
4568 |
|
|
/* Define $ac_func to an innocuous variant, in case declares $ac_func.
|
4569 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
4570 |
|
|
#define $ac_func innocuous_$ac_func
|
4571 |
|
|
|
4572 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
4573 |
|
|
which can conflict with char $ac_func (); below.
|
4574 |
|
|
Prefer to if __STDC__ is defined, since
|
4575 |
|
|
exists even on freestanding compilers. */
|
4576 |
|
|
|
4577 |
|
|
#ifdef __STDC__
|
4578 |
|
|
# include
|
4579 |
|
|
#else
|
4580 |
|
|
# include
|
4581 |
|
|
#endif
|
4582 |
|
|
|
4583 |
|
|
#undef $ac_func
|
4584 |
|
|
|
4585 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
4586 |
|
|
#ifdef __cplusplus
|
4587 |
|
|
extern "C"
|
4588 |
|
|
{
|
4589 |
|
|
#endif
|
4590 |
|
|
/* We use char because int might match the return type of a gcc2
|
4591 |
|
|
builtin and then its argument prototype would still apply. */
|
4592 |
|
|
char $ac_func ();
|
4593 |
|
|
/* The GNU C library defines this for functions which it implements
|
4594 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
4595 |
|
|
something starting with __ and the normal name is an alias. */
|
4596 |
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
4597 |
|
|
choke me
|
4598 |
|
|
#else
|
4599 |
|
|
char (*f) () = $ac_func;
|
4600 |
|
|
#endif
|
4601 |
|
|
#ifdef __cplusplus
|
4602 |
|
|
}
|
4603 |
|
|
#endif
|
4604 |
|
|
|
4605 |
|
|
int
|
4606 |
|
|
main ()
|
4607 |
|
|
{
|
4608 |
|
|
return f != $ac_func;
|
4609 |
|
|
;
|
4610 |
|
|
return 0;
|
4611 |
|
|
}
|
4612 |
|
|
_ACEOF
|
4613 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
4614 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
4615 |
|
|
(eval $ac_link) 2>conftest.er1
|
4616 |
|
|
ac_status=$?
|
4617 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4618 |
|
|
rm -f conftest.er1
|
4619 |
|
|
cat conftest.err >&5
|
4620 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4621 |
|
|
(exit $ac_status); } &&
|
4622 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
4623 |
|
|
|| test ! -s conftest.err'
|
4624 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4625 |
|
|
(eval $ac_try) 2>&5
|
4626 |
|
|
ac_status=$?
|
4627 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4628 |
|
|
(exit $ac_status); }; } &&
|
4629 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
4630 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4631 |
|
|
(eval $ac_try) 2>&5
|
4632 |
|
|
ac_status=$?
|
4633 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4634 |
|
|
(exit $ac_status); }; }; then
|
4635 |
|
|
eval "$as_ac_var=yes"
|
4636 |
|
|
else
|
4637 |
|
|
echo "$as_me: failed program was:" >&5
|
4638 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4639 |
|
|
|
4640 |
|
|
eval "$as_ac_var=no"
|
4641 |
|
|
fi
|
4642 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
4643 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
4644 |
|
|
fi
|
4645 |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
4646 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
4647 |
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
4648 |
|
|
cat >>confdefs.h <<_ACEOF
|
4649 |
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
4650 |
|
|
_ACEOF
|
4651 |
|
|
|
4652 |
|
|
fi
|
4653 |
|
|
done
|
4654 |
|
|
|
4655 |
|
|
|
4656 |
|
|
|
4657 |
|
|
|
4658 |
|
|
for ac_func in getpwent getpwnam getpwuid
|
4659 |
|
|
do
|
4660 |
|
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
4661 |
|
|
echo "$as_me:$LINENO: checking for $ac_func" >&5
|
4662 |
|
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
4663 |
|
|
if eval "test \"\${$as_ac_var+set}\" = set"; then
|
4664 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4665 |
|
|
else
|
4666 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4667 |
|
|
/* confdefs.h. */
|
4668 |
|
|
_ACEOF
|
4669 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4670 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4671 |
|
|
/* end confdefs.h. */
|
4672 |
|
|
/* Define $ac_func to an innocuous variant, in case declares $ac_func.
|
4673 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
4674 |
|
|
#define $ac_func innocuous_$ac_func
|
4675 |
|
|
|
4676 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
4677 |
|
|
which can conflict with char $ac_func (); below.
|
4678 |
|
|
Prefer to if __STDC__ is defined, since
|
4679 |
|
|
exists even on freestanding compilers. */
|
4680 |
|
|
|
4681 |
|
|
#ifdef __STDC__
|
4682 |
|
|
# include
|
4683 |
|
|
#else
|
4684 |
|
|
# include
|
4685 |
|
|
#endif
|
4686 |
|
|
|
4687 |
|
|
#undef $ac_func
|
4688 |
|
|
|
4689 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
4690 |
|
|
#ifdef __cplusplus
|
4691 |
|
|
extern "C"
|
4692 |
|
|
{
|
4693 |
|
|
#endif
|
4694 |
|
|
/* We use char because int might match the return type of a gcc2
|
4695 |
|
|
builtin and then its argument prototype would still apply. */
|
4696 |
|
|
char $ac_func ();
|
4697 |
|
|
/* The GNU C library defines this for functions which it implements
|
4698 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
4699 |
|
|
something starting with __ and the normal name is an alias. */
|
4700 |
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
4701 |
|
|
choke me
|
4702 |
|
|
#else
|
4703 |
|
|
char (*f) () = $ac_func;
|
4704 |
|
|
#endif
|
4705 |
|
|
#ifdef __cplusplus
|
4706 |
|
|
}
|
4707 |
|
|
#endif
|
4708 |
|
|
|
4709 |
|
|
int
|
4710 |
|
|
main ()
|
4711 |
|
|
{
|
4712 |
|
|
return f != $ac_func;
|
4713 |
|
|
;
|
4714 |
|
|
return 0;
|
4715 |
|
|
}
|
4716 |
|
|
_ACEOF
|
4717 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
4718 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
4719 |
|
|
(eval $ac_link) 2>conftest.er1
|
4720 |
|
|
ac_status=$?
|
4721 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4722 |
|
|
rm -f conftest.er1
|
4723 |
|
|
cat conftest.err >&5
|
4724 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4725 |
|
|
(exit $ac_status); } &&
|
4726 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
4727 |
|
|
|| test ! -s conftest.err'
|
4728 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4729 |
|
|
(eval $ac_try) 2>&5
|
4730 |
|
|
ac_status=$?
|
4731 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4732 |
|
|
(exit $ac_status); }; } &&
|
4733 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
4734 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4735 |
|
|
(eval $ac_try) 2>&5
|
4736 |
|
|
ac_status=$?
|
4737 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4738 |
|
|
(exit $ac_status); }; }; then
|
4739 |
|
|
eval "$as_ac_var=yes"
|
4740 |
|
|
else
|
4741 |
|
|
echo "$as_me: failed program was:" >&5
|
4742 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4743 |
|
|
|
4744 |
|
|
eval "$as_ac_var=no"
|
4745 |
|
|
fi
|
4746 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
4747 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
4748 |
|
|
fi
|
4749 |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
4750 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
4751 |
|
|
if test `eval echo '${'$as_ac_var'}'` = yes; then
|
4752 |
|
|
cat >>confdefs.h <<_ACEOF
|
4753 |
|
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
4754 |
|
|
_ACEOF
|
4755 |
|
|
|
4756 |
|
|
fi
|
4757 |
|
|
done
|
4758 |
|
|
|
4759 |
|
|
|
4760 |
|
|
echo "$as_me:$LINENO: checking for working strcoll" >&5
|
4761 |
|
|
echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
|
4762 |
|
|
if test "${ac_cv_func_strcoll_works+set}" = set; then
|
4763 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4764 |
|
|
else
|
4765 |
|
|
if test "$cross_compiling" = yes; then
|
4766 |
|
|
ac_cv_func_strcoll_works=no
|
4767 |
|
|
else
|
4768 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4769 |
|
|
/* confdefs.h. */
|
4770 |
|
|
_ACEOF
|
4771 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4772 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4773 |
|
|
/* end confdefs.h. */
|
4774 |
|
|
$ac_includes_default
|
4775 |
|
|
int
|
4776 |
|
|
main ()
|
4777 |
|
|
{
|
4778 |
|
|
exit (strcoll ("abc", "def") >= 0 ||
|
4779 |
|
|
strcoll ("ABC", "DEF") >= 0 ||
|
4780 |
|
|
strcoll ("123", "456") >= 0)
|
4781 |
|
|
;
|
4782 |
|
|
return 0;
|
4783 |
|
|
}
|
4784 |
|
|
_ACEOF
|
4785 |
|
|
rm -f conftest$ac_exeext
|
4786 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
4787 |
|
|
(eval $ac_link) 2>&5
|
4788 |
|
|
ac_status=$?
|
4789 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4790 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
4791 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4792 |
|
|
(eval $ac_try) 2>&5
|
4793 |
|
|
ac_status=$?
|
4794 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4795 |
|
|
(exit $ac_status); }; }; then
|
4796 |
|
|
ac_cv_func_strcoll_works=yes
|
4797 |
|
|
else
|
4798 |
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
4799 |
|
|
echo "$as_me: failed program was:" >&5
|
4800 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4801 |
|
|
|
4802 |
|
|
( exit $ac_status )
|
4803 |
|
|
ac_cv_func_strcoll_works=no
|
4804 |
|
|
fi
|
4805 |
|
|
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
4806 |
|
|
fi
|
4807 |
|
|
fi
|
4808 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
|
4809 |
|
|
echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
|
4810 |
|
|
if test $ac_cv_func_strcoll_works = yes; then
|
4811 |
|
|
|
4812 |
|
|
cat >>confdefs.h <<\_ACEOF
|
4813 |
|
|
#define HAVE_STRCOLL 1
|
4814 |
|
|
_ACEOF
|
4815 |
|
|
|
4816 |
|
|
fi
|
4817 |
|
|
|
4818 |
|
|
|
4819 |
|
|
|
4820 |
|
|
|
4821 |
|
|
|
4822 |
|
|
|
4823 |
|
|
|
4824 |
|
|
|
4825 |
|
|
|
4826 |
|
|
|
4827 |
|
|
|
4828 |
|
|
|
4829 |
|
|
|
4830 |
|
|
|
4831 |
|
|
|
4832 |
|
|
|
4833 |
|
|
for ac_header in fcntl.h unistd.h stdlib.h varargs.h stdarg.h string.h strings.h \
|
4834 |
|
|
limits.h locale.h pwd.h memory.h termcap.h termios.h termio.h
|
4835 |
|
|
do
|
4836 |
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
4837 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
4838 |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5
|
4839 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
4840 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
4841 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4842 |
|
|
fi
|
4843 |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
4844 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
4845 |
|
|
else
|
4846 |
|
|
# Is the header compilable?
|
4847 |
|
|
echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
4848 |
|
|
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
4849 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4850 |
|
|
/* confdefs.h. */
|
4851 |
|
|
_ACEOF
|
4852 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4853 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4854 |
|
|
/* end confdefs.h. */
|
4855 |
|
|
$ac_includes_default
|
4856 |
|
|
#include <$ac_header>
|
4857 |
|
|
_ACEOF
|
4858 |
|
|
rm -f conftest.$ac_objext
|
4859 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
4860 |
|
|
(eval $ac_compile) 2>conftest.er1
|
4861 |
|
|
ac_status=$?
|
4862 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4863 |
|
|
rm -f conftest.er1
|
4864 |
|
|
cat conftest.err >&5
|
4865 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4866 |
|
|
(exit $ac_status); } &&
|
4867 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
4868 |
|
|
|| test ! -s conftest.err'
|
4869 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4870 |
|
|
(eval $ac_try) 2>&5
|
4871 |
|
|
ac_status=$?
|
4872 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4873 |
|
|
(exit $ac_status); }; } &&
|
4874 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
4875 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
4876 |
|
|
(eval $ac_try) 2>&5
|
4877 |
|
|
ac_status=$?
|
4878 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4879 |
|
|
(exit $ac_status); }; }; then
|
4880 |
|
|
ac_header_compiler=yes
|
4881 |
|
|
else
|
4882 |
|
|
echo "$as_me: failed program was:" >&5
|
4883 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4884 |
|
|
|
4885 |
|
|
ac_header_compiler=no
|
4886 |
|
|
fi
|
4887 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
4888 |
|
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
4889 |
|
|
echo "${ECHO_T}$ac_header_compiler" >&6
|
4890 |
|
|
|
4891 |
|
|
# Is the header present?
|
4892 |
|
|
echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
4893 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
4894 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
4895 |
|
|
/* confdefs.h. */
|
4896 |
|
|
_ACEOF
|
4897 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
4898 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
4899 |
|
|
/* end confdefs.h. */
|
4900 |
|
|
#include <$ac_header>
|
4901 |
|
|
_ACEOF
|
4902 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
4903 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
4904 |
|
|
ac_status=$?
|
4905 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
4906 |
|
|
rm -f conftest.er1
|
4907 |
|
|
cat conftest.err >&5
|
4908 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
4909 |
|
|
(exit $ac_status); } >/dev/null; then
|
4910 |
|
|
if test -s conftest.err; then
|
4911 |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
4912 |
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
4913 |
|
|
else
|
4914 |
|
|
ac_cpp_err=
|
4915 |
|
|
fi
|
4916 |
|
|
else
|
4917 |
|
|
ac_cpp_err=yes
|
4918 |
|
|
fi
|
4919 |
|
|
if test -z "$ac_cpp_err"; then
|
4920 |
|
|
ac_header_preproc=yes
|
4921 |
|
|
else
|
4922 |
|
|
echo "$as_me: failed program was:" >&5
|
4923 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
4924 |
|
|
|
4925 |
|
|
ac_header_preproc=no
|
4926 |
|
|
fi
|
4927 |
|
|
rm -f conftest.err conftest.$ac_ext
|
4928 |
|
|
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
4929 |
|
|
echo "${ECHO_T}$ac_header_preproc" >&6
|
4930 |
|
|
|
4931 |
|
|
# So? What about this header?
|
4932 |
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
4933 |
|
|
yes:no: )
|
4934 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
4935 |
|
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
4936 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
4937 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
4938 |
|
|
ac_header_preproc=yes
|
4939 |
|
|
;;
|
4940 |
|
|
no:yes:* )
|
4941 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
4942 |
|
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
4943 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
4944 |
|
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
4945 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
4946 |
|
|
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
4947 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
4948 |
|
|
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
4949 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
4950 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
4951 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
4952 |
|
|
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
4953 |
|
|
(
|
4954 |
|
|
cat <<\_ASBOX
|
4955 |
|
|
## ----------------------------------- ##
|
4956 |
|
|
## Report this to bug-readline@gnu.org ##
|
4957 |
|
|
## ----------------------------------- ##
|
4958 |
|
|
_ASBOX
|
4959 |
|
|
) |
|
4960 |
|
|
sed "s/^/$as_me: WARNING: /" >&2
|
4961 |
|
|
;;
|
4962 |
|
|
esac
|
4963 |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5
|
4964 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
4965 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
4966 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4967 |
|
|
else
|
4968 |
|
|
eval "$as_ac_Header=\$ac_header_preproc"
|
4969 |
|
|
fi
|
4970 |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
4971 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
4972 |
|
|
|
4973 |
|
|
fi
|
4974 |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
4975 |
|
|
cat >>confdefs.h <<_ACEOF
|
4976 |
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
4977 |
|
|
_ACEOF
|
4978 |
|
|
|
4979 |
|
|
fi
|
4980 |
|
|
|
4981 |
|
|
done
|
4982 |
|
|
|
4983 |
|
|
|
4984 |
|
|
|
4985 |
|
|
|
4986 |
|
|
|
4987 |
|
|
for ac_header in sys/pte.h sys/stream.h sys/select.h sys/file.h
|
4988 |
|
|
do
|
4989 |
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
4990 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
4991 |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5
|
4992 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
4993 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
4994 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
4995 |
|
|
fi
|
4996 |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
4997 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
4998 |
|
|
else
|
4999 |
|
|
# Is the header compilable?
|
5000 |
|
|
echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
5001 |
|
|
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
5002 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
5003 |
|
|
/* confdefs.h. */
|
5004 |
|
|
_ACEOF
|
5005 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
5006 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
5007 |
|
|
/* end confdefs.h. */
|
5008 |
|
|
$ac_includes_default
|
5009 |
|
|
#include <$ac_header>
|
5010 |
|
|
_ACEOF
|
5011 |
|
|
rm -f conftest.$ac_objext
|
5012 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
5013 |
|
|
(eval $ac_compile) 2>conftest.er1
|
5014 |
|
|
ac_status=$?
|
5015 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
5016 |
|
|
rm -f conftest.er1
|
5017 |
|
|
cat conftest.err >&5
|
5018 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5019 |
|
|
(exit $ac_status); } &&
|
5020 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
5021 |
|
|
|| test ! -s conftest.err'
|
5022 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
5023 |
|
|
(eval $ac_try) 2>&5
|
5024 |
|
|
ac_status=$?
|
5025 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5026 |
|
|
(exit $ac_status); }; } &&
|
5027 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
5028 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
5029 |
|
|
(eval $ac_try) 2>&5
|
5030 |
|
|
ac_status=$?
|
5031 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5032 |
|
|
(exit $ac_status); }; }; then
|
5033 |
|
|
ac_header_compiler=yes
|
5034 |
|
|
else
|
5035 |
|
|
echo "$as_me: failed program was:" >&5
|
5036 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
5037 |
|
|
|
5038 |
|
|
ac_header_compiler=no
|
5039 |
|
|
fi
|
5040 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
5041 |
|
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
5042 |
|
|
echo "${ECHO_T}$ac_header_compiler" >&6
|
5043 |
|
|
|
5044 |
|
|
# Is the header present?
|
5045 |
|
|
echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
5046 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
5047 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
5048 |
|
|
/* confdefs.h. */
|
5049 |
|
|
_ACEOF
|
5050 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
5051 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
5052 |
|
|
/* end confdefs.h. */
|
5053 |
|
|
#include <$ac_header>
|
5054 |
|
|
_ACEOF
|
5055 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
5056 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
5057 |
|
|
ac_status=$?
|
5058 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
5059 |
|
|
rm -f conftest.er1
|
5060 |
|
|
cat conftest.err >&5
|
5061 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5062 |
|
|
(exit $ac_status); } >/dev/null; then
|
5063 |
|
|
if test -s conftest.err; then
|
5064 |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
5065 |
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
5066 |
|
|
else
|
5067 |
|
|
ac_cpp_err=
|
5068 |
|
|
fi
|
5069 |
|
|
else
|
5070 |
|
|
ac_cpp_err=yes
|
5071 |
|
|
fi
|
5072 |
|
|
if test -z "$ac_cpp_err"; then
|
5073 |
|
|
ac_header_preproc=yes
|
5074 |
|
|
else
|
5075 |
|
|
echo "$as_me: failed program was:" >&5
|
5076 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
5077 |
|
|
|
5078 |
|
|
ac_header_preproc=no
|
5079 |
|
|
fi
|
5080 |
|
|
rm -f conftest.err conftest.$ac_ext
|
5081 |
|
|
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
5082 |
|
|
echo "${ECHO_T}$ac_header_preproc" >&6
|
5083 |
|
|
|
5084 |
|
|
# So? What about this header?
|
5085 |
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
5086 |
|
|
yes:no: )
|
5087 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
5088 |
|
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
5089 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
5090 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
5091 |
|
|
ac_header_preproc=yes
|
5092 |
|
|
;;
|
5093 |
|
|
no:yes:* )
|
5094 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
5095 |
|
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
5096 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
5097 |
|
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
5098 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
5099 |
|
|
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
5100 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
5101 |
|
|
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
5102 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
5103 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
5104 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
5105 |
|
|
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
5106 |
|
|
(
|
5107 |
|
|
cat <<\_ASBOX
|
5108 |
|
|
## ----------------------------------- ##
|
5109 |
|
|
## Report this to bug-readline@gnu.org ##
|
5110 |
|
|
## ----------------------------------- ##
|
5111 |
|
|
_ASBOX
|
5112 |
|
|
) |
|
5113 |
|
|
sed "s/^/$as_me: WARNING: /" >&2
|
5114 |
|
|
;;
|
5115 |
|
|
esac
|
5116 |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5
|
5117 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
5118 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
5119 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5120 |
|
|
else
|
5121 |
|
|
eval "$as_ac_Header=\$ac_header_preproc"
|
5122 |
|
|
fi
|
5123 |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
5124 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
5125 |
|
|
|
5126 |
|
|
fi
|
5127 |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
5128 |
|
|
cat >>confdefs.h <<_ACEOF
|
5129 |
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
5130 |
|
|
_ACEOF
|
5131 |
|
|
|
5132 |
|
|
fi
|
5133 |
|
|
|
5134 |
|
|
done
|
5135 |
|
|
|
5136 |
|
|
|
5137 |
|
|
|
5138 |
|
|
for ac_header in sys/ptem.h
|
5139 |
|
|
do
|
5140 |
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
5141 |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5
|
5142 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
5143 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
5144 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5145 |
|
|
else
|
5146 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
5147 |
|
|
/* confdefs.h. */
|
5148 |
|
|
_ACEOF
|
5149 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
5150 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
5151 |
|
|
/* end confdefs.h. */
|
5152 |
|
|
|
5153 |
|
|
#if HAVE_SYS_STREAM_H
|
5154 |
|
|
# include
|
5155 |
|
|
#endif
|
5156 |
|
|
|
5157 |
|
|
|
5158 |
|
|
#include <$ac_header>
|
5159 |
|
|
_ACEOF
|
5160 |
|
|
rm -f conftest.$ac_objext
|
5161 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
5162 |
|
|
(eval $ac_compile) 2>conftest.er1
|
5163 |
|
|
ac_status=$?
|
5164 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
5165 |
|
|
rm -f conftest.er1
|
5166 |
|
|
cat conftest.err >&5
|
5167 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5168 |
|
|
(exit $ac_status); } &&
|
5169 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
5170 |
|
|
|| test ! -s conftest.err'
|
5171 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
5172 |
|
|
(eval $ac_try) 2>&5
|
5173 |
|
|
ac_status=$?
|
5174 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5175 |
|
|
(exit $ac_status); }; } &&
|
5176 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
5177 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
5178 |
|
|
(eval $ac_try) 2>&5
|
5179 |
|
|
ac_status=$?
|
5180 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5181 |
|
|
(exit $ac_status); }; }; then
|
5182 |
|
|
eval "$as_ac_Header=yes"
|
5183 |
|
|
else
|
5184 |
|
|
echo "$as_me: failed program was:" >&5
|
5185 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
5186 |
|
|
|
5187 |
|
|
eval "$as_ac_Header=no"
|
5188 |
|
|
fi
|
5189 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
5190 |
|
|
fi
|
5191 |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
5192 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
5193 |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
5194 |
|
|
cat >>confdefs.h <<_ACEOF
|
5195 |
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
5196 |
|
|
_ACEOF
|
5197 |
|
|
|
5198 |
|
|
fi
|
5199 |
|
|
|
5200 |
|
|
done
|
5201 |
|
|
|
5202 |
|
|
|
5203 |
|
|
|
5204 |
|
|
echo "$as_me:$LINENO: checking for type of signal functions" >&5
|
5205 |
|
|
echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
|
5206 |
|
|
if test "${bash_cv_signal_vintage+set}" = set; then
|
5207 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5208 |
|
|
else
|
5209 |
|
|
|
5210 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
5211 |
|
|
/* confdefs.h. */
|
5212 |
|
|
_ACEOF
|
5213 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
5214 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
5215 |
|
|
/* end confdefs.h. */
|
5216 |
|
|
#include
|
5217 |
|
|
int
|
5218 |
|
|
main ()
|
5219 |
|
|
{
|
5220 |
|
|
|
5221 |
|
|
sigset_t ss;
|
5222 |
|
|
struct sigaction sa;
|
5223 |
|
|
sigemptyset(&ss); sigsuspend(&ss);
|
5224 |
|
|
sigaction(SIGINT, &sa, (struct sigaction *) 0);
|
5225 |
|
|
sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
|
5226 |
|
|
|
5227 |
|
|
;
|
5228 |
|
|
return 0;
|
5229 |
|
|
}
|
5230 |
|
|
_ACEOF
|
5231 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
5232 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
5233 |
|
|
(eval $ac_link) 2>conftest.er1
|
5234 |
|
|
ac_status=$?
|
5235 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
5236 |
|
|
rm -f conftest.er1
|
5237 |
|
|
cat conftest.err >&5
|
5238 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5239 |
|
|
(exit $ac_status); } &&
|
5240 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
5241 |
|
|
|| test ! -s conftest.err'
|
5242 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
5243 |
|
|
(eval $ac_try) 2>&5
|
5244 |
|
|
ac_status=$?
|
5245 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5246 |
|
|
(exit $ac_status); }; } &&
|
5247 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
5248 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
5249 |
|
|
(eval $ac_try) 2>&5
|
5250 |
|
|
ac_status=$?
|
5251 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5252 |
|
|
(exit $ac_status); }; }; then
|
5253 |
|
|
bash_cv_signal_vintage=posix
|
5254 |
|
|
else
|
5255 |
|
|
echo "$as_me: failed program was:" >&5
|
5256 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
5257 |
|
|
|
5258 |
|
|
|
5259 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
5260 |
|
|
/* confdefs.h. */
|
5261 |
|
|
_ACEOF
|
5262 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
5263 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
5264 |
|
|
/* end confdefs.h. */
|
5265 |
|
|
#include
|
5266 |
|
|
int
|
5267 |
|
|
main ()
|
5268 |
|
|
{
|
5269 |
|
|
|
5270 |
|
|
int mask = sigmask(SIGINT);
|
5271 |
|
|
sigsetmask(mask); sigblock(mask); sigpause(mask);
|
5272 |
|
|
|
5273 |
|
|
;
|
5274 |
|
|
return 0;
|
5275 |
|
|
}
|
5276 |
|
|
_ACEOF
|
5277 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
5278 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
5279 |
|
|
(eval $ac_link) 2>conftest.er1
|
5280 |
|
|
ac_status=$?
|
5281 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
5282 |
|
|
rm -f conftest.er1
|
5283 |
|
|
cat conftest.err >&5
|
5284 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5285 |
|
|
(exit $ac_status); } &&
|
5286 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
5287 |
|
|
|| test ! -s conftest.err'
|
5288 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
5289 |
|
|
(eval $ac_try) 2>&5
|
5290 |
|
|
ac_status=$?
|
5291 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5292 |
|
|
(exit $ac_status); }; } &&
|
5293 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
5294 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
5295 |
|
|
(eval $ac_try) 2>&5
|
5296 |
|
|
ac_status=$?
|
5297 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5298 |
|
|
(exit $ac_status); }; }; then
|
5299 |
|
|
bash_cv_signal_vintage=4.2bsd
|
5300 |
|
|
else
|
5301 |
|
|
echo "$as_me: failed program was:" >&5
|
5302 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
5303 |
|
|
|
5304 |
|
|
|
5305 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
5306 |
|
|
/* confdefs.h. */
|
5307 |
|
|
_ACEOF
|
5308 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
5309 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
5310 |
|
|
/* end confdefs.h. */
|
5311 |
|
|
|
5312 |
|
|
#include
|
5313 |
|
|
RETSIGTYPE foo() { }
|
5314 |
|
|
int
|
5315 |
|
|
main ()
|
5316 |
|
|
{
|
5317 |
|
|
|
5318 |
|
|
int mask = sigmask(SIGINT);
|
5319 |
|
|
sigset(SIGINT, foo); sigrelse(SIGINT);
|
5320 |
|
|
sighold(SIGINT); sigpause(SIGINT);
|
5321 |
|
|
|
5322 |
|
|
;
|
5323 |
|
|
return 0;
|
5324 |
|
|
}
|
5325 |
|
|
_ACEOF
|
5326 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
5327 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
5328 |
|
|
(eval $ac_link) 2>conftest.er1
|
5329 |
|
|
ac_status=$?
|
5330 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
5331 |
|
|
rm -f conftest.er1
|
5332 |
|
|
cat conftest.err >&5
|
5333 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5334 |
|
|
(exit $ac_status); } &&
|
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_exeext'
|
5343 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
5344 |
|
|
(eval $ac_try) 2>&5
|
5345 |
|
|
ac_status=$?
|
5346 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5347 |
|
|
(exit $ac_status); }; }; then
|
5348 |
|
|
bash_cv_signal_vintage=svr3
|
5349 |
|
|
else
|
5350 |
|
|
echo "$as_me: failed program was:" >&5
|
5351 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
5352 |
|
|
|
5353 |
|
|
bash_cv_signal_vintage=v7
|
5354 |
|
|
|
5355 |
|
|
fi
|
5356 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
5357 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
5358 |
|
|
|
5359 |
|
|
fi
|
5360 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
5361 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
5362 |
|
|
|
5363 |
|
|
fi
|
5364 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
5365 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
5366 |
|
|
|
5367 |
|
|
fi
|
5368 |
|
|
|
5369 |
|
|
echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
|
5370 |
|
|
echo "${ECHO_T}$bash_cv_signal_vintage" >&6
|
5371 |
|
|
if test "$bash_cv_signal_vintage" = posix; then
|
5372 |
|
|
cat >>confdefs.h <<\_ACEOF
|
5373 |
|
|
#define HAVE_POSIX_SIGNALS 1
|
5374 |
|
|
_ACEOF
|
5375 |
|
|
|
5376 |
|
|
elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
|
5377 |
|
|
cat >>confdefs.h <<\_ACEOF
|
5378 |
|
|
#define HAVE_BSD_SIGNALS 1
|
5379 |
|
|
_ACEOF
|
5380 |
|
|
|
5381 |
|
|
elif test "$bash_cv_signal_vintage" = svr3; then
|
5382 |
|
|
cat >>confdefs.h <<\_ACEOF
|
5383 |
|
|
#define HAVE_USG_SIGHOLD 1
|
5384 |
|
|
_ACEOF
|
5385 |
|
|
|
5386 |
|
|
fi
|
5387 |
|
|
|
5388 |
|
|
|
5389 |
|
|
|
5390 |
|
|
echo "$as_me:$LINENO: checking if signal handlers must be reinstalled when invoked" >&5
|
5391 |
|
|
echo $ECHO_N "checking if signal handlers must be reinstalled when invoked... $ECHO_C" >&6
|
5392 |
|
|
if test "${bash_cv_must_reinstall_sighandlers+set}" = set; then
|
5393 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5394 |
|
|
else
|
5395 |
|
|
if test "$cross_compiling" = yes; then
|
5396 |
|
|
{ echo "$as_me:$LINENO: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&5
|
5397 |
|
|
echo "$as_me: WARNING: cannot check signal handling if cross compiling -- defaulting to no" >&2;}
|
5398 |
|
|
bash_cv_must_reinstall_sighandlers=no
|
5399 |
|
|
|
5400 |
|
|
else
|
5401 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
5402 |
|
|
/* confdefs.h. */
|
5403 |
|
|
_ACEOF
|
5404 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
5405 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
5406 |
|
|
/* end confdefs.h. */
|
5407 |
|
|
|
5408 |
|
|
#include
|
5409 |
|
|
#ifdef HAVE_UNISTD_H
|
5410 |
|
|
#include
|
5411 |
|
|
#endif
|
5412 |
|
|
|
5413 |
|
|
typedef RETSIGTYPE sigfunc();
|
5414 |
|
|
|
5415 |
|
|
int nsigint;
|
5416 |
|
|
|
5417 |
|
|
#ifdef HAVE_POSIX_SIGNALS
|
5418 |
|
|
sigfunc *
|
5419 |
|
|
set_signal_handler(sig, handler)
|
5420 |
|
|
int sig;
|
5421 |
|
|
sigfunc *handler;
|
5422 |
|
|
{
|
5423 |
|
|
struct sigaction act, oact;
|
5424 |
|
|
act.sa_handler = handler;
|
5425 |
|
|
act.sa_flags = 0;
|
5426 |
|
|
sigemptyset (&act.sa_mask);
|
5427 |
|
|
sigemptyset (&oact.sa_mask);
|
5428 |
|
|
sigaction (sig, &act, &oact);
|
5429 |
|
|
return (oact.sa_handler);
|
5430 |
|
|
}
|
5431 |
|
|
#else
|
5432 |
|
|
#define set_signal_handler(s, h) signal(s, h)
|
5433 |
|
|
#endif
|
5434 |
|
|
|
5435 |
|
|
RETSIGTYPE
|
5436 |
|
|
sigint(s)
|
5437 |
|
|
int s;
|
5438 |
|
|
{
|
5439 |
|
|
nsigint++;
|
5440 |
|
|
}
|
5441 |
|
|
|
5442 |
|
|
main()
|
5443 |
|
|
{
|
5444 |
|
|
nsigint = 0;
|
5445 |
|
|
set_signal_handler(SIGINT, sigint);
|
5446 |
|
|
kill((int)getpid(), SIGINT);
|
5447 |
|
|
kill((int)getpid(), SIGINT);
|
5448 |
|
|
exit(nsigint != 2);
|
5449 |
|
|
}
|
5450 |
|
|
|
5451 |
|
|
_ACEOF
|
5452 |
|
|
rm -f conftest$ac_exeext
|
5453 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
5454 |
|
|
(eval $ac_link) 2>&5
|
5455 |
|
|
ac_status=$?
|
5456 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5457 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
5458 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
5459 |
|
|
(eval $ac_try) 2>&5
|
5460 |
|
|
ac_status=$?
|
5461 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5462 |
|
|
(exit $ac_status); }; }; then
|
5463 |
|
|
bash_cv_must_reinstall_sighandlers=no
|
5464 |
|
|
else
|
5465 |
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
5466 |
|
|
echo "$as_me: failed program was:" >&5
|
5467 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
5468 |
|
|
|
5469 |
|
|
( exit $ac_status )
|
5470 |
|
|
bash_cv_must_reinstall_sighandlers=yes
|
5471 |
|
|
fi
|
5472 |
|
|
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
5473 |
|
|
fi
|
5474 |
|
|
fi
|
5475 |
|
|
|
5476 |
|
|
echo "$as_me:$LINENO: result: $bash_cv_must_reinstall_sighandlers" >&5
|
5477 |
|
|
echo "${ECHO_T}$bash_cv_must_reinstall_sighandlers" >&6
|
5478 |
|
|
if test $bash_cv_must_reinstall_sighandlers = yes; then
|
5479 |
|
|
cat >>confdefs.h <<\_ACEOF
|
5480 |
|
|
#define MUST_REINSTALL_SIGHANDLERS 1
|
5481 |
|
|
_ACEOF
|
5482 |
|
|
|
5483 |
|
|
fi
|
5484 |
|
|
|
5485 |
|
|
|
5486 |
|
|
|
5487 |
|
|
echo "$as_me:$LINENO: checking for presence of POSIX-style sigsetjmp/siglongjmp" >&5
|
5488 |
|
|
echo $ECHO_N "checking for presence of POSIX-style sigsetjmp/siglongjmp... $ECHO_C" >&6
|
5489 |
|
|
if test "${bash_cv_func_sigsetjmp+set}" = set; then
|
5490 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5491 |
|
|
else
|
5492 |
|
|
if test "$cross_compiling" = yes; then
|
5493 |
|
|
{ echo "$as_me:$LINENO: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&5
|
5494 |
|
|
echo "$as_me: WARNING: cannot check for sigsetjmp/siglongjmp if cross-compiling -- defaulting to missing" >&2;}
|
5495 |
|
|
bash_cv_func_sigsetjmp=missing
|
5496 |
|
|
|
5497 |
|
|
else
|
5498 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
5499 |
|
|
/* confdefs.h. */
|
5500 |
|
|
_ACEOF
|
5501 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
5502 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
5503 |
|
|
/* end confdefs.h. */
|
5504 |
|
|
|
5505 |
|
|
#ifdef HAVE_UNISTD_H
|
5506 |
|
|
#include
|
5507 |
|
|
#endif
|
5508 |
|
|
#include
|
5509 |
|
|
#include
|
5510 |
|
|
#include
|
5511 |
|
|
|
5512 |
|
|
main()
|
5513 |
|
|
{
|
5514 |
|
|
#if !defined (_POSIX_VERSION) || !defined (HAVE_POSIX_SIGNALS)
|
5515 |
|
|
exit (1);
|
5516 |
|
|
#else
|
5517 |
|
|
|
5518 |
|
|
int code;
|
5519 |
|
|
sigset_t set, oset;
|
5520 |
|
|
sigjmp_buf xx;
|
5521 |
|
|
|
5522 |
|
|
/* get the mask */
|
5523 |
|
|
sigemptyset(&set);
|
5524 |
|
|
sigemptyset(&oset);
|
5525 |
|
|
sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &set);
|
5526 |
|
|
sigprocmask(SIG_BLOCK, (sigset_t *)NULL, &oset);
|
5527 |
|
|
|
5528 |
|
|
/* save it */
|
5529 |
|
|
code = sigsetjmp(xx, 1);
|
5530 |
|
|
if (code)
|
5531 |
|
|
exit(0); /* could get sigmask and compare to oset here. */
|
5532 |
|
|
|
5533 |
|
|
/* change it */
|
5534 |
|
|
sigaddset(&set, SIGINT);
|
5535 |
|
|
sigprocmask(SIG_BLOCK, &set, (sigset_t *)NULL);
|
5536 |
|
|
|
5537 |
|
|
/* and siglongjmp */
|
5538 |
|
|
siglongjmp(xx, 10);
|
5539 |
|
|
exit(1);
|
5540 |
|
|
#endif
|
5541 |
|
|
}
|
5542 |
|
|
_ACEOF
|
5543 |
|
|
rm -f conftest$ac_exeext
|
5544 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
5545 |
|
|
(eval $ac_link) 2>&5
|
5546 |
|
|
ac_status=$?
|
5547 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5548 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
5549 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
5550 |
|
|
(eval $ac_try) 2>&5
|
5551 |
|
|
ac_status=$?
|
5552 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5553 |
|
|
(exit $ac_status); }; }; then
|
5554 |
|
|
bash_cv_func_sigsetjmp=present
|
5555 |
|
|
else
|
5556 |
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
5557 |
|
|
echo "$as_me: failed program was:" >&5
|
5558 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
5559 |
|
|
|
5560 |
|
|
( exit $ac_status )
|
5561 |
|
|
bash_cv_func_sigsetjmp=missing
|
5562 |
|
|
fi
|
5563 |
|
|
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
5564 |
|
|
fi
|
5565 |
|
|
fi
|
5566 |
|
|
|
5567 |
|
|
echo "$as_me:$LINENO: result: $bash_cv_func_sigsetjmp" >&5
|
5568 |
|
|
echo "${ECHO_T}$bash_cv_func_sigsetjmp" >&6
|
5569 |
|
|
if test $bash_cv_func_sigsetjmp = present; then
|
5570 |
|
|
cat >>confdefs.h <<\_ACEOF
|
5571 |
|
|
#define HAVE_POSIX_SIGSETJMP 1
|
5572 |
|
|
_ACEOF
|
5573 |
|
|
|
5574 |
|
|
fi
|
5575 |
|
|
|
5576 |
|
|
echo "$as_me:$LINENO: checking for lstat" >&5
|
5577 |
|
|
echo $ECHO_N "checking for lstat... $ECHO_C" >&6
|
5578 |
|
|
if test "${bash_cv_func_lstat+set}" = set; then
|
5579 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5580 |
|
|
else
|
5581 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
5582 |
|
|
/* confdefs.h. */
|
5583 |
|
|
_ACEOF
|
5584 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
5585 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
5586 |
|
|
/* end confdefs.h. */
|
5587 |
|
|
|
5588 |
|
|
#include
|
5589 |
|
|
#include
|
5590 |
|
|
|
5591 |
|
|
int
|
5592 |
|
|
main ()
|
5593 |
|
|
{
|
5594 |
|
|
lstat(".",(struct stat *)0);
|
5595 |
|
|
;
|
5596 |
|
|
return 0;
|
5597 |
|
|
}
|
5598 |
|
|
_ACEOF
|
5599 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
5600 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
5601 |
|
|
(eval $ac_link) 2>conftest.er1
|
5602 |
|
|
ac_status=$?
|
5603 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
5604 |
|
|
rm -f conftest.er1
|
5605 |
|
|
cat conftest.err >&5
|
5606 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5607 |
|
|
(exit $ac_status); } &&
|
5608 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
5609 |
|
|
|| test ! -s conftest.err'
|
5610 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
5611 |
|
|
(eval $ac_try) 2>&5
|
5612 |
|
|
ac_status=$?
|
5613 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5614 |
|
|
(exit $ac_status); }; } &&
|
5615 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
5616 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
5617 |
|
|
(eval $ac_try) 2>&5
|
5618 |
|
|
ac_status=$?
|
5619 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5620 |
|
|
(exit $ac_status); }; }; then
|
5621 |
|
|
bash_cv_func_lstat=yes
|
5622 |
|
|
else
|
5623 |
|
|
echo "$as_me: failed program was:" >&5
|
5624 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
5625 |
|
|
|
5626 |
|
|
bash_cv_func_lstat=no
|
5627 |
|
|
fi
|
5628 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
5629 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
5630 |
|
|
fi
|
5631 |
|
|
echo "$as_me:$LINENO: result: $bash_cv_func_lstat" >&5
|
5632 |
|
|
echo "${ECHO_T}$bash_cv_func_lstat" >&6
|
5633 |
|
|
if test $bash_cv_func_lstat = yes; then
|
5634 |
|
|
cat >>confdefs.h <<\_ACEOF
|
5635 |
|
|
#define HAVE_LSTAT 1
|
5636 |
|
|
_ACEOF
|
5637 |
|
|
|
5638 |
|
|
fi
|
5639 |
|
|
|
5640 |
|
|
|
5641 |
|
|
echo "$as_me:$LINENO: checking whether or not strcoll and strcmp differ" >&5
|
5642 |
|
|
echo $ECHO_N "checking whether or not strcoll and strcmp differ... $ECHO_C" >&6
|
5643 |
|
|
if test "${bash_cv_func_strcoll_broken+set}" = set; then
|
5644 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5645 |
|
|
else
|
5646 |
|
|
if test "$cross_compiling" = yes; then
|
5647 |
|
|
{ echo "$as_me:$LINENO: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&5
|
5648 |
|
|
echo "$as_me: WARNING: cannot check strcoll if cross compiling -- defaulting to no" >&2;}
|
5649 |
|
|
bash_cv_func_strcoll_broken=no
|
5650 |
|
|
|
5651 |
|
|
else
|
5652 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
5653 |
|
|
/* confdefs.h. */
|
5654 |
|
|
_ACEOF
|
5655 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
5656 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
5657 |
|
|
/* end confdefs.h. */
|
5658 |
|
|
|
5659 |
|
|
#include
|
5660 |
|
|
#if defined (HAVE_LOCALE_H)
|
5661 |
|
|
#include
|
5662 |
|
|
#endif
|
5663 |
|
|
|
5664 |
|
|
main(c, v)
|
5665 |
|
|
int c;
|
5666 |
|
|
char *v[];
|
5667 |
|
|
{
|
5668 |
|
|
int r1, r2;
|
5669 |
|
|
char *deflocale, *defcoll;
|
5670 |
|
|
|
5671 |
|
|
#ifdef HAVE_SETLOCALE
|
5672 |
|
|
deflocale = setlocale(LC_ALL, "");
|
5673 |
|
|
defcoll = setlocale(LC_COLLATE, "");
|
5674 |
|
|
#endif
|
5675 |
|
|
|
5676 |
|
|
#ifdef HAVE_STRCOLL
|
5677 |
|
|
/* These two values are taken from tests/glob-test. */
|
5678 |
|
|
r1 = strcoll("abd", "aXd");
|
5679 |
|
|
#else
|
5680 |
|
|
r1 = 0;
|
5681 |
|
|
#endif
|
5682 |
|
|
r2 = strcmp("abd", "aXd");
|
5683 |
|
|
|
5684 |
|
|
/* These two should both be greater than 0. It is permissible for
|
5685 |
|
|
a system to return different values, as long as the sign is the
|
5686 |
|
|
same. */
|
5687 |
|
|
|
5688 |
|
|
/* Exit with 1 (failure) if these two values are both > 0, since
|
5689 |
|
|
this tests whether strcoll(3) is broken with respect to strcmp(3)
|
5690 |
|
|
in the default locale. */
|
5691 |
|
|
exit (r1 > 0 && r2 > 0);
|
5692 |
|
|
}
|
5693 |
|
|
|
5694 |
|
|
_ACEOF
|
5695 |
|
|
rm -f conftest$ac_exeext
|
5696 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
5697 |
|
|
(eval $ac_link) 2>&5
|
5698 |
|
|
ac_status=$?
|
5699 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5700 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
5701 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
5702 |
|
|
(eval $ac_try) 2>&5
|
5703 |
|
|
ac_status=$?
|
5704 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5705 |
|
|
(exit $ac_status); }; }; then
|
5706 |
|
|
bash_cv_func_strcoll_broken=yes
|
5707 |
|
|
else
|
5708 |
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
5709 |
|
|
echo "$as_me: failed program was:" >&5
|
5710 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
5711 |
|
|
|
5712 |
|
|
( exit $ac_status )
|
5713 |
|
|
bash_cv_func_strcoll_broken=no
|
5714 |
|
|
fi
|
5715 |
|
|
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
5716 |
|
|
fi
|
5717 |
|
|
fi
|
5718 |
|
|
|
5719 |
|
|
echo "$as_me:$LINENO: result: $bash_cv_func_strcoll_broken" >&5
|
5720 |
|
|
echo "${ECHO_T}$bash_cv_func_strcoll_broken" >&6
|
5721 |
|
|
if test $bash_cv_func_strcoll_broken = yes; then
|
5722 |
|
|
cat >>confdefs.h <<\_ACEOF
|
5723 |
|
|
#define STRCOLL_BROKEN 1
|
5724 |
|
|
_ACEOF
|
5725 |
|
|
|
5726 |
|
|
fi
|
5727 |
|
|
|
5728 |
|
|
|
5729 |
|
|
echo "$as_me:$LINENO: checking whether the ctype macros accept non-ascii characters" >&5
|
5730 |
|
|
echo $ECHO_N "checking whether the ctype macros accept non-ascii characters... $ECHO_C" >&6
|
5731 |
|
|
if test "${bash_cv_func_ctype_nonascii+set}" = set; then
|
5732 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5733 |
|
|
else
|
5734 |
|
|
if test "$cross_compiling" = yes; then
|
5735 |
|
|
{ echo "$as_me:$LINENO: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&5
|
5736 |
|
|
echo "$as_me: WARNING: cannot check ctype macros if cross compiling -- defaulting to no" >&2;}
|
5737 |
|
|
bash_cv_func_ctype_nonascii=no
|
5738 |
|
|
|
5739 |
|
|
else
|
5740 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
5741 |
|
|
/* confdefs.h. */
|
5742 |
|
|
_ACEOF
|
5743 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
5744 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
5745 |
|
|
/* end confdefs.h. */
|
5746 |
|
|
|
5747 |
|
|
#ifdef HAVE_LOCALE_H
|
5748 |
|
|
#include
|
5749 |
|
|
#endif
|
5750 |
|
|
#include
|
5751 |
|
|
#include
|
5752 |
|
|
|
5753 |
|
|
main(c, v)
|
5754 |
|
|
int c;
|
5755 |
|
|
char *v[];
|
5756 |
|
|
{
|
5757 |
|
|
char *deflocale;
|
5758 |
|
|
unsigned char x;
|
5759 |
|
|
int r1, r2;
|
5760 |
|
|
|
5761 |
|
|
#ifdef HAVE_SETLOCALE
|
5762 |
|
|
/* We take a shot here. If that locale is not known, try the
|
5763 |
|
|
system default. We try this one because '\342' (226) is
|
5764 |
|
|
known to be a printable character in that locale. */
|
5765 |
|
|
deflocale = setlocale(LC_ALL, "en_US.ISO8859-1");
|
5766 |
|
|
if (deflocale == 0)
|
5767 |
|
|
deflocale = setlocale(LC_ALL, "");
|
5768 |
|
|
#endif
|
5769 |
|
|
|
5770 |
|
|
x = '\342';
|
5771 |
|
|
r1 = isprint(x);
|
5772 |
|
|
x -= 128;
|
5773 |
|
|
r2 = isprint(x);
|
5774 |
|
|
exit (r1 == 0 || r2 == 0);
|
5775 |
|
|
}
|
5776 |
|
|
|
5777 |
|
|
_ACEOF
|
5778 |
|
|
rm -f conftest$ac_exeext
|
5779 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
5780 |
|
|
(eval $ac_link) 2>&5
|
5781 |
|
|
ac_status=$?
|
5782 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5783 |
|
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
5784 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
5785 |
|
|
(eval $ac_try) 2>&5
|
5786 |
|
|
ac_status=$?
|
5787 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5788 |
|
|
(exit $ac_status); }; }; then
|
5789 |
|
|
bash_cv_func_ctype_nonascii=yes
|
5790 |
|
|
else
|
5791 |
|
|
echo "$as_me: program exited with status $ac_status" >&5
|
5792 |
|
|
echo "$as_me: failed program was:" >&5
|
5793 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
5794 |
|
|
|
5795 |
|
|
( exit $ac_status )
|
5796 |
|
|
bash_cv_func_ctype_nonascii=no
|
5797 |
|
|
fi
|
5798 |
|
|
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
5799 |
|
|
fi
|
5800 |
|
|
fi
|
5801 |
|
|
|
5802 |
|
|
echo "$as_me:$LINENO: result: $bash_cv_func_ctype_nonascii" >&5
|
5803 |
|
|
echo "${ECHO_T}$bash_cv_func_ctype_nonascii" >&6
|
5804 |
|
|
if test $bash_cv_func_ctype_nonascii = yes; then
|
5805 |
|
|
cat >>confdefs.h <<\_ACEOF
|
5806 |
|
|
#define CTYPE_NON_ASCII 1
|
5807 |
|
|
_ACEOF
|
5808 |
|
|
|
5809 |
|
|
fi
|
5810 |
|
|
|
5811 |
|
|
|
5812 |
|
|
echo "$as_me:$LINENO: checking whether getpw functions are declared in pwd.h" >&5
|
5813 |
|
|
echo $ECHO_N "checking whether getpw functions are declared in pwd.h... $ECHO_C" >&6
|
5814 |
|
|
if test "${bash_cv_getpw_declared+set}" = set; then
|
5815 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5816 |
|
|
else
|
5817 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
5818 |
|
|
/* confdefs.h. */
|
5819 |
|
|
_ACEOF
|
5820 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
5821 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
5822 |
|
|
/* end confdefs.h. */
|
5823 |
|
|
|
5824 |
|
|
#include
|
5825 |
|
|
#ifdef HAVE_UNISTD_H
|
5826 |
|
|
# include
|
5827 |
|
|
#endif
|
5828 |
|
|
#include
|
5829 |
|
|
|
5830 |
|
|
_ACEOF
|
5831 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
5832 |
|
|
$EGREP "getpwuid" >/dev/null 2>&1; then
|
5833 |
|
|
bash_cv_getpw_declared=yes
|
5834 |
|
|
else
|
5835 |
|
|
bash_cv_getpw_declared=no
|
5836 |
|
|
fi
|
5837 |
|
|
rm -f conftest*
|
5838 |
|
|
|
5839 |
|
|
fi
|
5840 |
|
|
|
5841 |
|
|
echo "$as_me:$LINENO: result: $bash_cv_getpw_declared" >&5
|
5842 |
|
|
echo "${ECHO_T}$bash_cv_getpw_declared" >&6
|
5843 |
|
|
if test $bash_cv_getpw_declared = yes; then
|
5844 |
|
|
cat >>confdefs.h <<\_ACEOF
|
5845 |
|
|
#define HAVE_GETPW_DECLS 1
|
5846 |
|
|
_ACEOF
|
5847 |
|
|
|
5848 |
|
|
fi
|
5849 |
|
|
|
5850 |
|
|
|
5851 |
|
|
echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
|
5852 |
|
|
echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
|
5853 |
|
|
if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
|
5854 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5855 |
|
|
else
|
5856 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
5857 |
|
|
/* confdefs.h. */
|
5858 |
|
|
_ACEOF
|
5859 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
5860 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
5861 |
|
|
/* end confdefs.h. */
|
5862 |
|
|
#include
|
5863 |
|
|
#include
|
5864 |
|
|
#ifdef TIOCGWINSZ
|
5865 |
|
|
yes
|
5866 |
|
|
#endif
|
5867 |
|
|
|
5868 |
|
|
_ACEOF
|
5869 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
5870 |
|
|
$EGREP "yes" >/dev/null 2>&1; then
|
5871 |
|
|
ac_cv_sys_tiocgwinsz_in_termios_h=yes
|
5872 |
|
|
else
|
5873 |
|
|
ac_cv_sys_tiocgwinsz_in_termios_h=no
|
5874 |
|
|
fi
|
5875 |
|
|
rm -f conftest*
|
5876 |
|
|
|
5877 |
|
|
fi
|
5878 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
|
5879 |
|
|
echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
|
5880 |
|
|
|
5881 |
|
|
if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
|
5882 |
|
|
echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
|
5883 |
|
|
echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
|
5884 |
|
|
if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
|
5885 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5886 |
|
|
else
|
5887 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
5888 |
|
|
/* confdefs.h. */
|
5889 |
|
|
_ACEOF
|
5890 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
5891 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
5892 |
|
|
/* end confdefs.h. */
|
5893 |
|
|
#include
|
5894 |
|
|
#include
|
5895 |
|
|
#ifdef TIOCGWINSZ
|
5896 |
|
|
yes
|
5897 |
|
|
#endif
|
5898 |
|
|
|
5899 |
|
|
_ACEOF
|
5900 |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
5901 |
|
|
$EGREP "yes" >/dev/null 2>&1; then
|
5902 |
|
|
ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
|
5903 |
|
|
else
|
5904 |
|
|
ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
|
5905 |
|
|
fi
|
5906 |
|
|
rm -f conftest*
|
5907 |
|
|
|
5908 |
|
|
fi
|
5909 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
|
5910 |
|
|
echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
|
5911 |
|
|
|
5912 |
|
|
if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
|
5913 |
|
|
|
5914 |
|
|
cat >>confdefs.h <<\_ACEOF
|
5915 |
|
|
#define GWINSZ_IN_SYS_IOCTL 1
|
5916 |
|
|
_ACEOF
|
5917 |
|
|
|
5918 |
|
|
fi
|
5919 |
|
|
fi
|
5920 |
|
|
|
5921 |
|
|
|
5922 |
|
|
echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
|
5923 |
|
|
echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
|
5924 |
|
|
if test "${bash_cv_void_sighandler+set}" = set; then
|
5925 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5926 |
|
|
else
|
5927 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
5928 |
|
|
/* confdefs.h. */
|
5929 |
|
|
_ACEOF
|
5930 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
5931 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
5932 |
|
|
/* end confdefs.h. */
|
5933 |
|
|
#include
|
5934 |
|
|
#include
|
5935 |
|
|
#ifdef signal
|
5936 |
|
|
#undef signal
|
5937 |
|
|
#endif
|
5938 |
|
|
#ifdef __cplusplus
|
5939 |
|
|
extern "C"
|
5940 |
|
|
#endif
|
5941 |
|
|
void (*signal ()) ();
|
5942 |
|
|
int
|
5943 |
|
|
main ()
|
5944 |
|
|
{
|
5945 |
|
|
int i;
|
5946 |
|
|
;
|
5947 |
|
|
return 0;
|
5948 |
|
|
}
|
5949 |
|
|
_ACEOF
|
5950 |
|
|
rm -f conftest.$ac_objext
|
5951 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
5952 |
|
|
(eval $ac_compile) 2>conftest.er1
|
5953 |
|
|
ac_status=$?
|
5954 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
5955 |
|
|
rm -f conftest.er1
|
5956 |
|
|
cat conftest.err >&5
|
5957 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5958 |
|
|
(exit $ac_status); } &&
|
5959 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
5960 |
|
|
|| test ! -s conftest.err'
|
5961 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
5962 |
|
|
(eval $ac_try) 2>&5
|
5963 |
|
|
ac_status=$?
|
5964 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5965 |
|
|
(exit $ac_status); }; } &&
|
5966 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
5967 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
5968 |
|
|
(eval $ac_try) 2>&5
|
5969 |
|
|
ac_status=$?
|
5970 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
5971 |
|
|
(exit $ac_status); }; }; then
|
5972 |
|
|
bash_cv_void_sighandler=yes
|
5973 |
|
|
else
|
5974 |
|
|
echo "$as_me: failed program was:" >&5
|
5975 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
5976 |
|
|
|
5977 |
|
|
bash_cv_void_sighandler=no
|
5978 |
|
|
fi
|
5979 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
5980 |
|
|
fi
|
5981 |
|
|
echo "$as_me:$LINENO: result: $bash_cv_void_sighandler" >&5
|
5982 |
|
|
echo "${ECHO_T}$bash_cv_void_sighandler" >&6
|
5983 |
|
|
if test $bash_cv_void_sighandler = yes; then
|
5984 |
|
|
cat >>confdefs.h <<\_ACEOF
|
5985 |
|
|
#define VOID_SIGHANDLER 1
|
5986 |
|
|
_ACEOF
|
5987 |
|
|
|
5988 |
|
|
fi
|
5989 |
|
|
|
5990 |
|
|
echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
|
5991 |
|
|
echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
|
5992 |
|
|
if test "${bash_cv_tiocstat_in_ioctl+set}" = set; then
|
5993 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
5994 |
|
|
else
|
5995 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
5996 |
|
|
/* confdefs.h. */
|
5997 |
|
|
_ACEOF
|
5998 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
5999 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
6000 |
|
|
/* end confdefs.h. */
|
6001 |
|
|
#include
|
6002 |
|
|
#include
|
6003 |
|
|
int
|
6004 |
|
|
main ()
|
6005 |
|
|
{
|
6006 |
|
|
int x = TIOCSTAT;
|
6007 |
|
|
;
|
6008 |
|
|
return 0;
|
6009 |
|
|
}
|
6010 |
|
|
_ACEOF
|
6011 |
|
|
rm -f conftest.$ac_objext
|
6012 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6013 |
|
|
(eval $ac_compile) 2>conftest.er1
|
6014 |
|
|
ac_status=$?
|
6015 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
6016 |
|
|
rm -f conftest.er1
|
6017 |
|
|
cat conftest.err >&5
|
6018 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6019 |
|
|
(exit $ac_status); } &&
|
6020 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
6021 |
|
|
|| test ! -s conftest.err'
|
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); }; } &&
|
6027 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
6028 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6029 |
|
|
(eval $ac_try) 2>&5
|
6030 |
|
|
ac_status=$?
|
6031 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6032 |
|
|
(exit $ac_status); }; }; then
|
6033 |
|
|
bash_cv_tiocstat_in_ioctl=yes
|
6034 |
|
|
else
|
6035 |
|
|
echo "$as_me: failed program was:" >&5
|
6036 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
6037 |
|
|
|
6038 |
|
|
bash_cv_tiocstat_in_ioctl=no
|
6039 |
|
|
fi
|
6040 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
6041 |
|
|
fi
|
6042 |
|
|
|
6043 |
|
|
echo "$as_me:$LINENO: result: $bash_cv_tiocstat_in_ioctl" >&5
|
6044 |
|
|
echo "${ECHO_T}$bash_cv_tiocstat_in_ioctl" >&6
|
6045 |
|
|
if test $bash_cv_tiocstat_in_ioctl = yes; then
|
6046 |
|
|
cat >>confdefs.h <<\_ACEOF
|
6047 |
|
|
#define TIOCSTAT_IN_SYS_IOCTL 1
|
6048 |
|
|
_ACEOF
|
6049 |
|
|
|
6050 |
|
|
fi
|
6051 |
|
|
|
6052 |
|
|
echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
|
6053 |
|
|
echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
|
6054 |
|
|
if test "${bash_cv_fionread_in_ioctl+set}" = set; then
|
6055 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6056 |
|
|
else
|
6057 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
6058 |
|
|
/* confdefs.h. */
|
6059 |
|
|
_ACEOF
|
6060 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
6061 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
6062 |
|
|
/* end confdefs.h. */
|
6063 |
|
|
#include
|
6064 |
|
|
#include
|
6065 |
|
|
int
|
6066 |
|
|
main ()
|
6067 |
|
|
{
|
6068 |
|
|
int x = FIONREAD;
|
6069 |
|
|
;
|
6070 |
|
|
return 0;
|
6071 |
|
|
}
|
6072 |
|
|
_ACEOF
|
6073 |
|
|
rm -f conftest.$ac_objext
|
6074 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6075 |
|
|
(eval $ac_compile) 2>conftest.er1
|
6076 |
|
|
ac_status=$?
|
6077 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
6078 |
|
|
rm -f conftest.er1
|
6079 |
|
|
cat conftest.err >&5
|
6080 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6081 |
|
|
(exit $ac_status); } &&
|
6082 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
6083 |
|
|
|| test ! -s conftest.err'
|
6084 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6085 |
|
|
(eval $ac_try) 2>&5
|
6086 |
|
|
ac_status=$?
|
6087 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6088 |
|
|
(exit $ac_status); }; } &&
|
6089 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
6090 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6091 |
|
|
(eval $ac_try) 2>&5
|
6092 |
|
|
ac_status=$?
|
6093 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6094 |
|
|
(exit $ac_status); }; }; then
|
6095 |
|
|
bash_cv_fionread_in_ioctl=yes
|
6096 |
|
|
else
|
6097 |
|
|
echo "$as_me: failed program was:" >&5
|
6098 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
6099 |
|
|
|
6100 |
|
|
bash_cv_fionread_in_ioctl=no
|
6101 |
|
|
fi
|
6102 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
6103 |
|
|
fi
|
6104 |
|
|
|
6105 |
|
|
echo "$as_me:$LINENO: result: $bash_cv_fionread_in_ioctl" >&5
|
6106 |
|
|
echo "${ECHO_T}$bash_cv_fionread_in_ioctl" >&6
|
6107 |
|
|
if test $bash_cv_fionread_in_ioctl = yes; then
|
6108 |
|
|
cat >>confdefs.h <<\_ACEOF
|
6109 |
|
|
#define FIONREAD_IN_SYS_IOCTL 1
|
6110 |
|
|
_ACEOF
|
6111 |
|
|
|
6112 |
|
|
fi
|
6113 |
|
|
|
6114 |
|
|
echo "$as_me:$LINENO: checking for speed_t in sys/types.h" >&5
|
6115 |
|
|
echo $ECHO_N "checking for speed_t in sys/types.h... $ECHO_C" >&6
|
6116 |
|
|
if test "${bash_cv_speed_t_in_sys_types+set}" = set; then
|
6117 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6118 |
|
|
else
|
6119 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
6120 |
|
|
/* confdefs.h. */
|
6121 |
|
|
_ACEOF
|
6122 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
6123 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
6124 |
|
|
/* end confdefs.h. */
|
6125 |
|
|
#include
|
6126 |
|
|
int
|
6127 |
|
|
main ()
|
6128 |
|
|
{
|
6129 |
|
|
speed_t x;
|
6130 |
|
|
;
|
6131 |
|
|
return 0;
|
6132 |
|
|
}
|
6133 |
|
|
_ACEOF
|
6134 |
|
|
rm -f conftest.$ac_objext
|
6135 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6136 |
|
|
(eval $ac_compile) 2>conftest.er1
|
6137 |
|
|
ac_status=$?
|
6138 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
6139 |
|
|
rm -f conftest.er1
|
6140 |
|
|
cat conftest.err >&5
|
6141 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6142 |
|
|
(exit $ac_status); } &&
|
6143 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
6144 |
|
|
|| test ! -s conftest.err'
|
6145 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6146 |
|
|
(eval $ac_try) 2>&5
|
6147 |
|
|
ac_status=$?
|
6148 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6149 |
|
|
(exit $ac_status); }; } &&
|
6150 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
6151 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6152 |
|
|
(eval $ac_try) 2>&5
|
6153 |
|
|
ac_status=$?
|
6154 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6155 |
|
|
(exit $ac_status); }; }; then
|
6156 |
|
|
bash_cv_speed_t_in_sys_types=yes
|
6157 |
|
|
else
|
6158 |
|
|
echo "$as_me: failed program was:" >&5
|
6159 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
6160 |
|
|
|
6161 |
|
|
bash_cv_speed_t_in_sys_types=no
|
6162 |
|
|
fi
|
6163 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
6164 |
|
|
fi
|
6165 |
|
|
|
6166 |
|
|
echo "$as_me:$LINENO: result: $bash_cv_speed_t_in_sys_types" >&5
|
6167 |
|
|
echo "${ECHO_T}$bash_cv_speed_t_in_sys_types" >&6
|
6168 |
|
|
if test $bash_cv_speed_t_in_sys_types = yes; then
|
6169 |
|
|
cat >>confdefs.h <<\_ACEOF
|
6170 |
|
|
#define SPEED_T_IN_SYS_TYPES 1
|
6171 |
|
|
_ACEOF
|
6172 |
|
|
|
6173 |
|
|
fi
|
6174 |
|
|
|
6175 |
|
|
echo "$as_me:$LINENO: checking for struct winsize in sys/ioctl.h and termios.h" >&5
|
6176 |
|
|
echo $ECHO_N "checking for struct winsize in sys/ioctl.h and termios.h... $ECHO_C" >&6
|
6177 |
|
|
if test "${bash_cv_struct_winsize_header+set}" = set; then
|
6178 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6179 |
|
|
else
|
6180 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
6181 |
|
|
/* confdefs.h. */
|
6182 |
|
|
_ACEOF
|
6183 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
6184 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
6185 |
|
|
/* end confdefs.h. */
|
6186 |
|
|
#include
|
6187 |
|
|
#include
|
6188 |
|
|
int
|
6189 |
|
|
main ()
|
6190 |
|
|
{
|
6191 |
|
|
struct winsize x;
|
6192 |
|
|
;
|
6193 |
|
|
return 0;
|
6194 |
|
|
}
|
6195 |
|
|
_ACEOF
|
6196 |
|
|
rm -f conftest.$ac_objext
|
6197 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6198 |
|
|
(eval $ac_compile) 2>conftest.er1
|
6199 |
|
|
ac_status=$?
|
6200 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
6201 |
|
|
rm -f conftest.er1
|
6202 |
|
|
cat conftest.err >&5
|
6203 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6204 |
|
|
(exit $ac_status); } &&
|
6205 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
6206 |
|
|
|| test ! -s conftest.err'
|
6207 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6208 |
|
|
(eval $ac_try) 2>&5
|
6209 |
|
|
ac_status=$?
|
6210 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6211 |
|
|
(exit $ac_status); }; } &&
|
6212 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
6213 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6214 |
|
|
(eval $ac_try) 2>&5
|
6215 |
|
|
ac_status=$?
|
6216 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6217 |
|
|
(exit $ac_status); }; }; then
|
6218 |
|
|
bash_cv_struct_winsize_header=ioctl_h
|
6219 |
|
|
else
|
6220 |
|
|
echo "$as_me: failed program was:" >&5
|
6221 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
6222 |
|
|
|
6223 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
6224 |
|
|
/* confdefs.h. */
|
6225 |
|
|
_ACEOF
|
6226 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
6227 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
6228 |
|
|
/* end confdefs.h. */
|
6229 |
|
|
#include
|
6230 |
|
|
#include
|
6231 |
|
|
int
|
6232 |
|
|
main ()
|
6233 |
|
|
{
|
6234 |
|
|
struct winsize x;
|
6235 |
|
|
;
|
6236 |
|
|
return 0;
|
6237 |
|
|
}
|
6238 |
|
|
_ACEOF
|
6239 |
|
|
rm -f conftest.$ac_objext
|
6240 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6241 |
|
|
(eval $ac_compile) 2>conftest.er1
|
6242 |
|
|
ac_status=$?
|
6243 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
6244 |
|
|
rm -f conftest.er1
|
6245 |
|
|
cat conftest.err >&5
|
6246 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6247 |
|
|
(exit $ac_status); } &&
|
6248 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
6249 |
|
|
|| test ! -s conftest.err'
|
6250 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6251 |
|
|
(eval $ac_try) 2>&5
|
6252 |
|
|
ac_status=$?
|
6253 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6254 |
|
|
(exit $ac_status); }; } &&
|
6255 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
6256 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6257 |
|
|
(eval $ac_try) 2>&5
|
6258 |
|
|
ac_status=$?
|
6259 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6260 |
|
|
(exit $ac_status); }; }; then
|
6261 |
|
|
bash_cv_struct_winsize_header=termios_h
|
6262 |
|
|
else
|
6263 |
|
|
echo "$as_me: failed program was:" >&5
|
6264 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
6265 |
|
|
|
6266 |
|
|
bash_cv_struct_winsize_header=other
|
6267 |
|
|
fi
|
6268 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
6269 |
|
|
|
6270 |
|
|
fi
|
6271 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
6272 |
|
|
fi
|
6273 |
|
|
|
6274 |
|
|
if test $bash_cv_struct_winsize_header = ioctl_h; then
|
6275 |
|
|
echo "$as_me:$LINENO: result: sys/ioctl.h" >&5
|
6276 |
|
|
echo "${ECHO_T}sys/ioctl.h" >&6
|
6277 |
|
|
cat >>confdefs.h <<\_ACEOF
|
6278 |
|
|
#define STRUCT_WINSIZE_IN_SYS_IOCTL 1
|
6279 |
|
|
_ACEOF
|
6280 |
|
|
|
6281 |
|
|
elif test $bash_cv_struct_winsize_header = termios_h; then
|
6282 |
|
|
echo "$as_me:$LINENO: result: termios.h" >&5
|
6283 |
|
|
echo "${ECHO_T}termios.h" >&6
|
6284 |
|
|
cat >>confdefs.h <<\_ACEOF
|
6285 |
|
|
#define STRUCT_WINSIZE_IN_TERMIOS 1
|
6286 |
|
|
_ACEOF
|
6287 |
|
|
|
6288 |
|
|
else
|
6289 |
|
|
echo "$as_me:$LINENO: result: not found" >&5
|
6290 |
|
|
echo "${ECHO_T}not found" >&6
|
6291 |
|
|
fi
|
6292 |
|
|
|
6293 |
|
|
|
6294 |
|
|
echo "$as_me:$LINENO: checking for struct dirent.d_ino" >&5
|
6295 |
|
|
echo $ECHO_N "checking for struct dirent.d_ino... $ECHO_C" >&6
|
6296 |
|
|
if test "${bash_cv_dirent_has_dino+set}" = set; then
|
6297 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6298 |
|
|
else
|
6299 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
6300 |
|
|
/* confdefs.h. */
|
6301 |
|
|
_ACEOF
|
6302 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
6303 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
6304 |
|
|
/* end confdefs.h. */
|
6305 |
|
|
|
6306 |
|
|
#include
|
6307 |
|
|
#include
|
6308 |
|
|
#ifdef HAVE_UNISTD_H
|
6309 |
|
|
# include
|
6310 |
|
|
#endif /* HAVE_UNISTD_H */
|
6311 |
|
|
#if defined(HAVE_DIRENT_H)
|
6312 |
|
|
# include
|
6313 |
|
|
#else
|
6314 |
|
|
# define dirent direct
|
6315 |
|
|
# ifdef HAVE_SYS_NDIR_H
|
6316 |
|
|
# include
|
6317 |
|
|
# endif /* SYSNDIR */
|
6318 |
|
|
# ifdef HAVE_SYS_DIR_H
|
6319 |
|
|
# include
|
6320 |
|
|
# endif /* SYSDIR */
|
6321 |
|
|
# ifdef HAVE_NDIR_H
|
6322 |
|
|
# include
|
6323 |
|
|
# endif
|
6324 |
|
|
#endif /* HAVE_DIRENT_H */
|
6325 |
|
|
|
6326 |
|
|
int
|
6327 |
|
|
main ()
|
6328 |
|
|
{
|
6329 |
|
|
|
6330 |
|
|
struct dirent d; int z; z = d.d_ino;
|
6331 |
|
|
|
6332 |
|
|
;
|
6333 |
|
|
return 0;
|
6334 |
|
|
}
|
6335 |
|
|
_ACEOF
|
6336 |
|
|
rm -f conftest.$ac_objext
|
6337 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6338 |
|
|
(eval $ac_compile) 2>conftest.er1
|
6339 |
|
|
ac_status=$?
|
6340 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
6341 |
|
|
rm -f conftest.er1
|
6342 |
|
|
cat conftest.err >&5
|
6343 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6344 |
|
|
(exit $ac_status); } &&
|
6345 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
6346 |
|
|
|| test ! -s conftest.err'
|
6347 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6348 |
|
|
(eval $ac_try) 2>&5
|
6349 |
|
|
ac_status=$?
|
6350 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6351 |
|
|
(exit $ac_status); }; } &&
|
6352 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
6353 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6354 |
|
|
(eval $ac_try) 2>&5
|
6355 |
|
|
ac_status=$?
|
6356 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6357 |
|
|
(exit $ac_status); }; }; then
|
6358 |
|
|
bash_cv_dirent_has_dino=yes
|
6359 |
|
|
else
|
6360 |
|
|
echo "$as_me: failed program was:" >&5
|
6361 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
6362 |
|
|
|
6363 |
|
|
bash_cv_dirent_has_dino=no
|
6364 |
|
|
fi
|
6365 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
6366 |
|
|
fi
|
6367 |
|
|
|
6368 |
|
|
echo "$as_me:$LINENO: result: $bash_cv_dirent_has_dino" >&5
|
6369 |
|
|
echo "${ECHO_T}$bash_cv_dirent_has_dino" >&6
|
6370 |
|
|
if test $bash_cv_dirent_has_dino = yes; then
|
6371 |
|
|
cat >>confdefs.h <<\_ACEOF
|
6372 |
|
|
#define HAVE_STRUCT_DIRENT_D_INO 1
|
6373 |
|
|
_ACEOF
|
6374 |
|
|
|
6375 |
|
|
fi
|
6376 |
|
|
|
6377 |
|
|
|
6378 |
|
|
echo "$as_me:$LINENO: checking for struct dirent.d_fileno" >&5
|
6379 |
|
|
echo $ECHO_N "checking for struct dirent.d_fileno... $ECHO_C" >&6
|
6380 |
|
|
if test "${bash_cv_dirent_has_d_fileno+set}" = set; then
|
6381 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6382 |
|
|
else
|
6383 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
6384 |
|
|
/* confdefs.h. */
|
6385 |
|
|
_ACEOF
|
6386 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
6387 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
6388 |
|
|
/* end confdefs.h. */
|
6389 |
|
|
|
6390 |
|
|
#include
|
6391 |
|
|
#include
|
6392 |
|
|
#ifdef HAVE_UNISTD_H
|
6393 |
|
|
# include
|
6394 |
|
|
#endif /* HAVE_UNISTD_H */
|
6395 |
|
|
#if defined(HAVE_DIRENT_H)
|
6396 |
|
|
# include
|
6397 |
|
|
#else
|
6398 |
|
|
# define dirent direct
|
6399 |
|
|
# ifdef HAVE_SYS_NDIR_H
|
6400 |
|
|
# include
|
6401 |
|
|
# endif /* SYSNDIR */
|
6402 |
|
|
# ifdef HAVE_SYS_DIR_H
|
6403 |
|
|
# include
|
6404 |
|
|
# endif /* SYSDIR */
|
6405 |
|
|
# ifdef HAVE_NDIR_H
|
6406 |
|
|
# include
|
6407 |
|
|
# endif
|
6408 |
|
|
#endif /* HAVE_DIRENT_H */
|
6409 |
|
|
|
6410 |
|
|
int
|
6411 |
|
|
main ()
|
6412 |
|
|
{
|
6413 |
|
|
|
6414 |
|
|
struct dirent d; int z; z = d.d_fileno;
|
6415 |
|
|
|
6416 |
|
|
;
|
6417 |
|
|
return 0;
|
6418 |
|
|
}
|
6419 |
|
|
_ACEOF
|
6420 |
|
|
rm -f conftest.$ac_objext
|
6421 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6422 |
|
|
(eval $ac_compile) 2>conftest.er1
|
6423 |
|
|
ac_status=$?
|
6424 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
6425 |
|
|
rm -f conftest.er1
|
6426 |
|
|
cat conftest.err >&5
|
6427 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6428 |
|
|
(exit $ac_status); } &&
|
6429 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
6430 |
|
|
|| test ! -s conftest.err'
|
6431 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6432 |
|
|
(eval $ac_try) 2>&5
|
6433 |
|
|
ac_status=$?
|
6434 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6435 |
|
|
(exit $ac_status); }; } &&
|
6436 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
6437 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6438 |
|
|
(eval $ac_try) 2>&5
|
6439 |
|
|
ac_status=$?
|
6440 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6441 |
|
|
(exit $ac_status); }; }; then
|
6442 |
|
|
bash_cv_dirent_has_d_fileno=yes
|
6443 |
|
|
else
|
6444 |
|
|
echo "$as_me: failed program was:" >&5
|
6445 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
6446 |
|
|
|
6447 |
|
|
bash_cv_dirent_has_d_fileno=no
|
6448 |
|
|
fi
|
6449 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
6450 |
|
|
fi
|
6451 |
|
|
|
6452 |
|
|
echo "$as_me:$LINENO: result: $bash_cv_dirent_has_d_fileno" >&5
|
6453 |
|
|
echo "${ECHO_T}$bash_cv_dirent_has_d_fileno" >&6
|
6454 |
|
|
if test $bash_cv_dirent_has_d_fileno = yes; then
|
6455 |
|
|
cat >>confdefs.h <<\_ACEOF
|
6456 |
|
|
#define HAVE_STRUCT_DIRENT_D_FILENO 1
|
6457 |
|
|
_ACEOF
|
6458 |
|
|
|
6459 |
|
|
fi
|
6460 |
|
|
|
6461 |
|
|
|
6462 |
|
|
case "$host_os" in
|
6463 |
|
|
aix*) prefer_curses=yes ;;
|
6464 |
|
|
esac
|
6465 |
|
|
|
6466 |
|
|
if test "X$bash_cv_termcap_lib" = "X"; then
|
6467 |
|
|
_bash_needmsg=yes
|
6468 |
|
|
else
|
6469 |
|
|
echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
|
6470 |
|
|
echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
|
6471 |
|
|
_bash_needmsg=
|
6472 |
|
|
fi
|
6473 |
|
|
if test "${bash_cv_termcap_lib+set}" = set; then
|
6474 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6475 |
|
|
else
|
6476 |
|
|
echo "$as_me:$LINENO: checking for tgetent" >&5
|
6477 |
|
|
echo $ECHO_N "checking for tgetent... $ECHO_C" >&6
|
6478 |
|
|
if test "${ac_cv_func_tgetent+set}" = set; then
|
6479 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6480 |
|
|
else
|
6481 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
6482 |
|
|
/* confdefs.h. */
|
6483 |
|
|
_ACEOF
|
6484 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
6485 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
6486 |
|
|
/* end confdefs.h. */
|
6487 |
|
|
/* Define tgetent to an innocuous variant, in case declares tgetent.
|
6488 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
6489 |
|
|
#define tgetent innocuous_tgetent
|
6490 |
|
|
|
6491 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
6492 |
|
|
which can conflict with char tgetent (); below.
|
6493 |
|
|
Prefer to if __STDC__ is defined, since
|
6494 |
|
|
exists even on freestanding compilers. */
|
6495 |
|
|
|
6496 |
|
|
#ifdef __STDC__
|
6497 |
|
|
# include
|
6498 |
|
|
#else
|
6499 |
|
|
# include
|
6500 |
|
|
#endif
|
6501 |
|
|
|
6502 |
|
|
#undef tgetent
|
6503 |
|
|
|
6504 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
6505 |
|
|
#ifdef __cplusplus
|
6506 |
|
|
extern "C"
|
6507 |
|
|
{
|
6508 |
|
|
#endif
|
6509 |
|
|
/* We use char because int might match the return type of a gcc2
|
6510 |
|
|
builtin and then its argument prototype would still apply. */
|
6511 |
|
|
char tgetent ();
|
6512 |
|
|
/* The GNU C library defines this for functions which it implements
|
6513 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
6514 |
|
|
something starting with __ and the normal name is an alias. */
|
6515 |
|
|
#if defined (__stub_tgetent) || defined (__stub___tgetent)
|
6516 |
|
|
choke me
|
6517 |
|
|
#else
|
6518 |
|
|
char (*f) () = tgetent;
|
6519 |
|
|
#endif
|
6520 |
|
|
#ifdef __cplusplus
|
6521 |
|
|
}
|
6522 |
|
|
#endif
|
6523 |
|
|
|
6524 |
|
|
int
|
6525 |
|
|
main ()
|
6526 |
|
|
{
|
6527 |
|
|
return f != tgetent;
|
6528 |
|
|
;
|
6529 |
|
|
return 0;
|
6530 |
|
|
}
|
6531 |
|
|
_ACEOF
|
6532 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
6533 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
6534 |
|
|
(eval $ac_link) 2>conftest.er1
|
6535 |
|
|
ac_status=$?
|
6536 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
6537 |
|
|
rm -f conftest.er1
|
6538 |
|
|
cat conftest.err >&5
|
6539 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6540 |
|
|
(exit $ac_status); } &&
|
6541 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
6542 |
|
|
|| test ! -s conftest.err'
|
6543 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6544 |
|
|
(eval $ac_try) 2>&5
|
6545 |
|
|
ac_status=$?
|
6546 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6547 |
|
|
(exit $ac_status); }; } &&
|
6548 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
6549 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6550 |
|
|
(eval $ac_try) 2>&5
|
6551 |
|
|
ac_status=$?
|
6552 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6553 |
|
|
(exit $ac_status); }; }; then
|
6554 |
|
|
ac_cv_func_tgetent=yes
|
6555 |
|
|
else
|
6556 |
|
|
echo "$as_me: failed program was:" >&5
|
6557 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
6558 |
|
|
|
6559 |
|
|
ac_cv_func_tgetent=no
|
6560 |
|
|
fi
|
6561 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
6562 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
6563 |
|
|
fi
|
6564 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_func_tgetent" >&5
|
6565 |
|
|
echo "${ECHO_T}$ac_cv_func_tgetent" >&6
|
6566 |
|
|
if test $ac_cv_func_tgetent = yes; then
|
6567 |
|
|
bash_cv_termcap_lib=libc
|
6568 |
|
|
else
|
6569 |
|
|
echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
|
6570 |
|
|
echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
|
6571 |
|
|
if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
|
6572 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6573 |
|
|
else
|
6574 |
|
|
ac_check_lib_save_LIBS=$LIBS
|
6575 |
|
|
LIBS="-ltermcap $LIBS"
|
6576 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
6577 |
|
|
/* confdefs.h. */
|
6578 |
|
|
_ACEOF
|
6579 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
6580 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
6581 |
|
|
/* end confdefs.h. */
|
6582 |
|
|
|
6583 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
6584 |
|
|
#ifdef __cplusplus
|
6585 |
|
|
extern "C"
|
6586 |
|
|
#endif
|
6587 |
|
|
/* We use char because int might match the return type of a gcc2
|
6588 |
|
|
builtin and then its argument prototype would still apply. */
|
6589 |
|
|
char tgetent ();
|
6590 |
|
|
int
|
6591 |
|
|
main ()
|
6592 |
|
|
{
|
6593 |
|
|
tgetent ();
|
6594 |
|
|
;
|
6595 |
|
|
return 0;
|
6596 |
|
|
}
|
6597 |
|
|
_ACEOF
|
6598 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
6599 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
6600 |
|
|
(eval $ac_link) 2>conftest.er1
|
6601 |
|
|
ac_status=$?
|
6602 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
6603 |
|
|
rm -f conftest.er1
|
6604 |
|
|
cat conftest.err >&5
|
6605 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6606 |
|
|
(exit $ac_status); } &&
|
6607 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
6608 |
|
|
|| test ! -s conftest.err'
|
6609 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6610 |
|
|
(eval $ac_try) 2>&5
|
6611 |
|
|
ac_status=$?
|
6612 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6613 |
|
|
(exit $ac_status); }; } &&
|
6614 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
6615 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6616 |
|
|
(eval $ac_try) 2>&5
|
6617 |
|
|
ac_status=$?
|
6618 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6619 |
|
|
(exit $ac_status); }; }; then
|
6620 |
|
|
ac_cv_lib_termcap_tgetent=yes
|
6621 |
|
|
else
|
6622 |
|
|
echo "$as_me: failed program was:" >&5
|
6623 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
6624 |
|
|
|
6625 |
|
|
ac_cv_lib_termcap_tgetent=no
|
6626 |
|
|
fi
|
6627 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
6628 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
6629 |
|
|
LIBS=$ac_check_lib_save_LIBS
|
6630 |
|
|
fi
|
6631 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
|
6632 |
|
|
echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
|
6633 |
|
|
if test $ac_cv_lib_termcap_tgetent = yes; then
|
6634 |
|
|
bash_cv_termcap_lib=libtermcap
|
6635 |
|
|
else
|
6636 |
|
|
echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
|
6637 |
|
|
echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
|
6638 |
|
|
if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
|
6639 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6640 |
|
|
else
|
6641 |
|
|
ac_check_lib_save_LIBS=$LIBS
|
6642 |
|
|
LIBS="-ltinfo $LIBS"
|
6643 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
6644 |
|
|
/* confdefs.h. */
|
6645 |
|
|
_ACEOF
|
6646 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
6647 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
6648 |
|
|
/* end confdefs.h. */
|
6649 |
|
|
|
6650 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
6651 |
|
|
#ifdef __cplusplus
|
6652 |
|
|
extern "C"
|
6653 |
|
|
#endif
|
6654 |
|
|
/* We use char because int might match the return type of a gcc2
|
6655 |
|
|
builtin and then its argument prototype would still apply. */
|
6656 |
|
|
char tgetent ();
|
6657 |
|
|
int
|
6658 |
|
|
main ()
|
6659 |
|
|
{
|
6660 |
|
|
tgetent ();
|
6661 |
|
|
;
|
6662 |
|
|
return 0;
|
6663 |
|
|
}
|
6664 |
|
|
_ACEOF
|
6665 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
6666 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
6667 |
|
|
(eval $ac_link) 2>conftest.er1
|
6668 |
|
|
ac_status=$?
|
6669 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
6670 |
|
|
rm -f conftest.er1
|
6671 |
|
|
cat conftest.err >&5
|
6672 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6673 |
|
|
(exit $ac_status); } &&
|
6674 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
6675 |
|
|
|| test ! -s conftest.err'
|
6676 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6677 |
|
|
(eval $ac_try) 2>&5
|
6678 |
|
|
ac_status=$?
|
6679 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6680 |
|
|
(exit $ac_status); }; } &&
|
6681 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
6682 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6683 |
|
|
(eval $ac_try) 2>&5
|
6684 |
|
|
ac_status=$?
|
6685 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6686 |
|
|
(exit $ac_status); }; }; then
|
6687 |
|
|
ac_cv_lib_tinfo_tgetent=yes
|
6688 |
|
|
else
|
6689 |
|
|
echo "$as_me: failed program was:" >&5
|
6690 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
6691 |
|
|
|
6692 |
|
|
ac_cv_lib_tinfo_tgetent=no
|
6693 |
|
|
fi
|
6694 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
6695 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
6696 |
|
|
LIBS=$ac_check_lib_save_LIBS
|
6697 |
|
|
fi
|
6698 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
|
6699 |
|
|
echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
|
6700 |
|
|
if test $ac_cv_lib_tinfo_tgetent = yes; then
|
6701 |
|
|
bash_cv_termcap_lib=libtinfo
|
6702 |
|
|
else
|
6703 |
|
|
echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
|
6704 |
|
|
echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
|
6705 |
|
|
if test "${ac_cv_lib_curses_tgetent+set}" = set; then
|
6706 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6707 |
|
|
else
|
6708 |
|
|
ac_check_lib_save_LIBS=$LIBS
|
6709 |
|
|
LIBS="-lcurses $LIBS"
|
6710 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
6711 |
|
|
/* confdefs.h. */
|
6712 |
|
|
_ACEOF
|
6713 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
6714 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
6715 |
|
|
/* end confdefs.h. */
|
6716 |
|
|
|
6717 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
6718 |
|
|
#ifdef __cplusplus
|
6719 |
|
|
extern "C"
|
6720 |
|
|
#endif
|
6721 |
|
|
/* We use char because int might match the return type of a gcc2
|
6722 |
|
|
builtin and then its argument prototype would still apply. */
|
6723 |
|
|
char tgetent ();
|
6724 |
|
|
int
|
6725 |
|
|
main ()
|
6726 |
|
|
{
|
6727 |
|
|
tgetent ();
|
6728 |
|
|
;
|
6729 |
|
|
return 0;
|
6730 |
|
|
}
|
6731 |
|
|
_ACEOF
|
6732 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
6733 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
6734 |
|
|
(eval $ac_link) 2>conftest.er1
|
6735 |
|
|
ac_status=$?
|
6736 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
6737 |
|
|
rm -f conftest.er1
|
6738 |
|
|
cat conftest.err >&5
|
6739 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6740 |
|
|
(exit $ac_status); } &&
|
6741 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
6742 |
|
|
|| test ! -s conftest.err'
|
6743 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6744 |
|
|
(eval $ac_try) 2>&5
|
6745 |
|
|
ac_status=$?
|
6746 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6747 |
|
|
(exit $ac_status); }; } &&
|
6748 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
6749 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6750 |
|
|
(eval $ac_try) 2>&5
|
6751 |
|
|
ac_status=$?
|
6752 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6753 |
|
|
(exit $ac_status); }; }; then
|
6754 |
|
|
ac_cv_lib_curses_tgetent=yes
|
6755 |
|
|
else
|
6756 |
|
|
echo "$as_me: failed program was:" >&5
|
6757 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
6758 |
|
|
|
6759 |
|
|
ac_cv_lib_curses_tgetent=no
|
6760 |
|
|
fi
|
6761 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
6762 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
6763 |
|
|
LIBS=$ac_check_lib_save_LIBS
|
6764 |
|
|
fi
|
6765 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
|
6766 |
|
|
echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
|
6767 |
|
|
if test $ac_cv_lib_curses_tgetent = yes; then
|
6768 |
|
|
bash_cv_termcap_lib=libcurses
|
6769 |
|
|
else
|
6770 |
|
|
echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
|
6771 |
|
|
echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
|
6772 |
|
|
if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
|
6773 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6774 |
|
|
else
|
6775 |
|
|
ac_check_lib_save_LIBS=$LIBS
|
6776 |
|
|
LIBS="-lncurses $LIBS"
|
6777 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
6778 |
|
|
/* confdefs.h. */
|
6779 |
|
|
_ACEOF
|
6780 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
6781 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
6782 |
|
|
/* end confdefs.h. */
|
6783 |
|
|
|
6784 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
6785 |
|
|
#ifdef __cplusplus
|
6786 |
|
|
extern "C"
|
6787 |
|
|
#endif
|
6788 |
|
|
/* We use char because int might match the return type of a gcc2
|
6789 |
|
|
builtin and then its argument prototype would still apply. */
|
6790 |
|
|
char tgetent ();
|
6791 |
|
|
int
|
6792 |
|
|
main ()
|
6793 |
|
|
{
|
6794 |
|
|
tgetent ();
|
6795 |
|
|
;
|
6796 |
|
|
return 0;
|
6797 |
|
|
}
|
6798 |
|
|
_ACEOF
|
6799 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
6800 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
6801 |
|
|
(eval $ac_link) 2>conftest.er1
|
6802 |
|
|
ac_status=$?
|
6803 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
6804 |
|
|
rm -f conftest.er1
|
6805 |
|
|
cat conftest.err >&5
|
6806 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6807 |
|
|
(exit $ac_status); } &&
|
6808 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
6809 |
|
|
|| test ! -s conftest.err'
|
6810 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6811 |
|
|
(eval $ac_try) 2>&5
|
6812 |
|
|
ac_status=$?
|
6813 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6814 |
|
|
(exit $ac_status); }; } &&
|
6815 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
6816 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6817 |
|
|
(eval $ac_try) 2>&5
|
6818 |
|
|
ac_status=$?
|
6819 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6820 |
|
|
(exit $ac_status); }; }; then
|
6821 |
|
|
ac_cv_lib_ncurses_tgetent=yes
|
6822 |
|
|
else
|
6823 |
|
|
echo "$as_me: failed program was:" >&5
|
6824 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
6825 |
|
|
|
6826 |
|
|
ac_cv_lib_ncurses_tgetent=no
|
6827 |
|
|
fi
|
6828 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
6829 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
6830 |
|
|
LIBS=$ac_check_lib_save_LIBS
|
6831 |
|
|
fi
|
6832 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
|
6833 |
|
|
echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
|
6834 |
|
|
if test $ac_cv_lib_ncurses_tgetent = yes; then
|
6835 |
|
|
bash_cv_termcap_lib=libncurses
|
6836 |
|
|
else
|
6837 |
|
|
bash_cv_termcap_lib=gnutermcap
|
6838 |
|
|
fi
|
6839 |
|
|
|
6840 |
|
|
fi
|
6841 |
|
|
|
6842 |
|
|
fi
|
6843 |
|
|
|
6844 |
|
|
fi
|
6845 |
|
|
|
6846 |
|
|
fi
|
6847 |
|
|
|
6848 |
|
|
fi
|
6849 |
|
|
|
6850 |
|
|
if test "X$_bash_needmsg" = "Xyes"; then
|
6851 |
|
|
echo "$as_me:$LINENO: checking which library has the termcap functions" >&5
|
6852 |
|
|
echo $ECHO_N "checking which library has the termcap functions... $ECHO_C" >&6
|
6853 |
|
|
fi
|
6854 |
|
|
echo "$as_me:$LINENO: result: using $bash_cv_termcap_lib" >&5
|
6855 |
|
|
echo "${ECHO_T}using $bash_cv_termcap_lib" >&6
|
6856 |
|
|
if test $bash_cv_termcap_lib = gnutermcap && test -z "$prefer_curses"; then
|
6857 |
|
|
LDFLAGS="$LDFLAGS -L./lib/termcap"
|
6858 |
|
|
TERMCAP_LIB="./lib/termcap/libtermcap.a"
|
6859 |
|
|
TERMCAP_DEP="./lib/termcap/libtermcap.a"
|
6860 |
|
|
elif test $bash_cv_termcap_lib = libtermcap && test -z "$prefer_curses"; then
|
6861 |
|
|
TERMCAP_LIB=-ltermcap
|
6862 |
|
|
TERMCAP_DEP=
|
6863 |
|
|
elif test $bash_cv_termcap_lib = libtinfo; then
|
6864 |
|
|
TERMCAP_LIB=-ltinfo
|
6865 |
|
|
TERMCAP_DEP=
|
6866 |
|
|
elif test $bash_cv_termcap_lib = libncurses; then
|
6867 |
|
|
TERMCAP_LIB=-lncurses
|
6868 |
|
|
TERMCAP_DEP=
|
6869 |
|
|
elif test $bash_cv_termcap_lib = libc; then
|
6870 |
|
|
TERMCAP_LIB=
|
6871 |
|
|
TERMCAP_DEP=
|
6872 |
|
|
else
|
6873 |
|
|
TERMCAP_LIB=-lcurses
|
6874 |
|
|
TERMCAP_DEP=
|
6875 |
|
|
fi
|
6876 |
|
|
|
6877 |
|
|
if test "$TERMCAP_LIB" = "./lib/termcap/libtermcap.a"; then
|
6878 |
|
|
if test "$prefer_curses" = yes; then
|
6879 |
|
|
TERMCAP_LIB=-lcurses
|
6880 |
|
|
else
|
6881 |
|
|
TERMCAP_LIB=-ltermcap #default
|
6882 |
|
|
fi
|
6883 |
|
|
fi
|
6884 |
|
|
|
6885 |
|
|
|
6886 |
|
|
|
6887 |
|
|
for ac_header in wctype.h
|
6888 |
|
|
do
|
6889 |
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
6890 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
6891 |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5
|
6892 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
6893 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
6894 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
6895 |
|
|
fi
|
6896 |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
6897 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
6898 |
|
|
else
|
6899 |
|
|
# Is the header compilable?
|
6900 |
|
|
echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
6901 |
|
|
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
6902 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
6903 |
|
|
/* confdefs.h. */
|
6904 |
|
|
_ACEOF
|
6905 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
6906 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
6907 |
|
|
/* end confdefs.h. */
|
6908 |
|
|
$ac_includes_default
|
6909 |
|
|
#include <$ac_header>
|
6910 |
|
|
_ACEOF
|
6911 |
|
|
rm -f conftest.$ac_objext
|
6912 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
6913 |
|
|
(eval $ac_compile) 2>conftest.er1
|
6914 |
|
|
ac_status=$?
|
6915 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
6916 |
|
|
rm -f conftest.er1
|
6917 |
|
|
cat conftest.err >&5
|
6918 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6919 |
|
|
(exit $ac_status); } &&
|
6920 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
6921 |
|
|
|| test ! -s conftest.err'
|
6922 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6923 |
|
|
(eval $ac_try) 2>&5
|
6924 |
|
|
ac_status=$?
|
6925 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6926 |
|
|
(exit $ac_status); }; } &&
|
6927 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
6928 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
6929 |
|
|
(eval $ac_try) 2>&5
|
6930 |
|
|
ac_status=$?
|
6931 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6932 |
|
|
(exit $ac_status); }; }; then
|
6933 |
|
|
ac_header_compiler=yes
|
6934 |
|
|
else
|
6935 |
|
|
echo "$as_me: failed program was:" >&5
|
6936 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
6937 |
|
|
|
6938 |
|
|
ac_header_compiler=no
|
6939 |
|
|
fi
|
6940 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
6941 |
|
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
6942 |
|
|
echo "${ECHO_T}$ac_header_compiler" >&6
|
6943 |
|
|
|
6944 |
|
|
# Is the header present?
|
6945 |
|
|
echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
6946 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
6947 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
6948 |
|
|
/* confdefs.h. */
|
6949 |
|
|
_ACEOF
|
6950 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
6951 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
6952 |
|
|
/* end confdefs.h. */
|
6953 |
|
|
#include <$ac_header>
|
6954 |
|
|
_ACEOF
|
6955 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
6956 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
6957 |
|
|
ac_status=$?
|
6958 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
6959 |
|
|
rm -f conftest.er1
|
6960 |
|
|
cat conftest.err >&5
|
6961 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
6962 |
|
|
(exit $ac_status); } >/dev/null; then
|
6963 |
|
|
if test -s conftest.err; then
|
6964 |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
6965 |
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
6966 |
|
|
else
|
6967 |
|
|
ac_cpp_err=
|
6968 |
|
|
fi
|
6969 |
|
|
else
|
6970 |
|
|
ac_cpp_err=yes
|
6971 |
|
|
fi
|
6972 |
|
|
if test -z "$ac_cpp_err"; then
|
6973 |
|
|
ac_header_preproc=yes
|
6974 |
|
|
else
|
6975 |
|
|
echo "$as_me: failed program was:" >&5
|
6976 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
6977 |
|
|
|
6978 |
|
|
ac_header_preproc=no
|
6979 |
|
|
fi
|
6980 |
|
|
rm -f conftest.err conftest.$ac_ext
|
6981 |
|
|
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
6982 |
|
|
echo "${ECHO_T}$ac_header_preproc" >&6
|
6983 |
|
|
|
6984 |
|
|
# So? What about this header?
|
6985 |
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
6986 |
|
|
yes:no: )
|
6987 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
6988 |
|
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
6989 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
6990 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
6991 |
|
|
ac_header_preproc=yes
|
6992 |
|
|
;;
|
6993 |
|
|
no:yes:* )
|
6994 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
6995 |
|
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
6996 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
6997 |
|
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
6998 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
6999 |
|
|
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
7000 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
7001 |
|
|
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
7002 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
7003 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
7004 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
7005 |
|
|
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
7006 |
|
|
(
|
7007 |
|
|
cat <<\_ASBOX
|
7008 |
|
|
## ----------------------------------- ##
|
7009 |
|
|
## Report this to bug-readline@gnu.org ##
|
7010 |
|
|
## ----------------------------------- ##
|
7011 |
|
|
_ASBOX
|
7012 |
|
|
) |
|
7013 |
|
|
sed "s/^/$as_me: WARNING: /" >&2
|
7014 |
|
|
;;
|
7015 |
|
|
esac
|
7016 |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5
|
7017 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
7018 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
7019 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
7020 |
|
|
else
|
7021 |
|
|
eval "$as_ac_Header=\$ac_header_preproc"
|
7022 |
|
|
fi
|
7023 |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
7024 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
7025 |
|
|
|
7026 |
|
|
fi
|
7027 |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
7028 |
|
|
cat >>confdefs.h <<_ACEOF
|
7029 |
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
7030 |
|
|
_ACEOF
|
7031 |
|
|
|
7032 |
|
|
fi
|
7033 |
|
|
|
7034 |
|
|
done
|
7035 |
|
|
|
7036 |
|
|
|
7037 |
|
|
for ac_header in wchar.h
|
7038 |
|
|
do
|
7039 |
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
7040 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
7041 |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5
|
7042 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
7043 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
7044 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
7045 |
|
|
fi
|
7046 |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
7047 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
7048 |
|
|
else
|
7049 |
|
|
# Is the header compilable?
|
7050 |
|
|
echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
7051 |
|
|
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
7052 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
7053 |
|
|
/* confdefs.h. */
|
7054 |
|
|
_ACEOF
|
7055 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
7056 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
7057 |
|
|
/* end confdefs.h. */
|
7058 |
|
|
$ac_includes_default
|
7059 |
|
|
#include <$ac_header>
|
7060 |
|
|
_ACEOF
|
7061 |
|
|
rm -f conftest.$ac_objext
|
7062 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
7063 |
|
|
(eval $ac_compile) 2>conftest.er1
|
7064 |
|
|
ac_status=$?
|
7065 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
7066 |
|
|
rm -f conftest.er1
|
7067 |
|
|
cat conftest.err >&5
|
7068 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7069 |
|
|
(exit $ac_status); } &&
|
7070 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
7071 |
|
|
|| test ! -s conftest.err'
|
7072 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7073 |
|
|
(eval $ac_try) 2>&5
|
7074 |
|
|
ac_status=$?
|
7075 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7076 |
|
|
(exit $ac_status); }; } &&
|
7077 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
7078 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7079 |
|
|
(eval $ac_try) 2>&5
|
7080 |
|
|
ac_status=$?
|
7081 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7082 |
|
|
(exit $ac_status); }; }; then
|
7083 |
|
|
ac_header_compiler=yes
|
7084 |
|
|
else
|
7085 |
|
|
echo "$as_me: failed program was:" >&5
|
7086 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
7087 |
|
|
|
7088 |
|
|
ac_header_compiler=no
|
7089 |
|
|
fi
|
7090 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
7091 |
|
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
7092 |
|
|
echo "${ECHO_T}$ac_header_compiler" >&6
|
7093 |
|
|
|
7094 |
|
|
# Is the header present?
|
7095 |
|
|
echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
7096 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
7097 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
7098 |
|
|
/* confdefs.h. */
|
7099 |
|
|
_ACEOF
|
7100 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
7101 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
7102 |
|
|
/* end confdefs.h. */
|
7103 |
|
|
#include <$ac_header>
|
7104 |
|
|
_ACEOF
|
7105 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
7106 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
7107 |
|
|
ac_status=$?
|
7108 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
7109 |
|
|
rm -f conftest.er1
|
7110 |
|
|
cat conftest.err >&5
|
7111 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7112 |
|
|
(exit $ac_status); } >/dev/null; then
|
7113 |
|
|
if test -s conftest.err; then
|
7114 |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
7115 |
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
7116 |
|
|
else
|
7117 |
|
|
ac_cpp_err=
|
7118 |
|
|
fi
|
7119 |
|
|
else
|
7120 |
|
|
ac_cpp_err=yes
|
7121 |
|
|
fi
|
7122 |
|
|
if test -z "$ac_cpp_err"; then
|
7123 |
|
|
ac_header_preproc=yes
|
7124 |
|
|
else
|
7125 |
|
|
echo "$as_me: failed program was:" >&5
|
7126 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
7127 |
|
|
|
7128 |
|
|
ac_header_preproc=no
|
7129 |
|
|
fi
|
7130 |
|
|
rm -f conftest.err conftest.$ac_ext
|
7131 |
|
|
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
7132 |
|
|
echo "${ECHO_T}$ac_header_preproc" >&6
|
7133 |
|
|
|
7134 |
|
|
# So? What about this header?
|
7135 |
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
7136 |
|
|
yes:no: )
|
7137 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
7138 |
|
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
7139 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
7140 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
7141 |
|
|
ac_header_preproc=yes
|
7142 |
|
|
;;
|
7143 |
|
|
no:yes:* )
|
7144 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
7145 |
|
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
7146 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
7147 |
|
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
7148 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
7149 |
|
|
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
7150 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
7151 |
|
|
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
7152 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
7153 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
7154 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
7155 |
|
|
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
7156 |
|
|
(
|
7157 |
|
|
cat <<\_ASBOX
|
7158 |
|
|
## ----------------------------------- ##
|
7159 |
|
|
## Report this to bug-readline@gnu.org ##
|
7160 |
|
|
## ----------------------------------- ##
|
7161 |
|
|
_ASBOX
|
7162 |
|
|
) |
|
7163 |
|
|
sed "s/^/$as_me: WARNING: /" >&2
|
7164 |
|
|
;;
|
7165 |
|
|
esac
|
7166 |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5
|
7167 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
7168 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
7169 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
7170 |
|
|
else
|
7171 |
|
|
eval "$as_ac_Header=\$ac_header_preproc"
|
7172 |
|
|
fi
|
7173 |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
7174 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
7175 |
|
|
|
7176 |
|
|
fi
|
7177 |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
7178 |
|
|
cat >>confdefs.h <<_ACEOF
|
7179 |
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
7180 |
|
|
_ACEOF
|
7181 |
|
|
|
7182 |
|
|
fi
|
7183 |
|
|
|
7184 |
|
|
done
|
7185 |
|
|
|
7186 |
|
|
|
7187 |
|
|
for ac_header in langinfo.h
|
7188 |
|
|
do
|
7189 |
|
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
7190 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
7191 |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5
|
7192 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
7193 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
7194 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
7195 |
|
|
fi
|
7196 |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
7197 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
7198 |
|
|
else
|
7199 |
|
|
# Is the header compilable?
|
7200 |
|
|
echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
7201 |
|
|
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
7202 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
7203 |
|
|
/* confdefs.h. */
|
7204 |
|
|
_ACEOF
|
7205 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
7206 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
7207 |
|
|
/* end confdefs.h. */
|
7208 |
|
|
$ac_includes_default
|
7209 |
|
|
#include <$ac_header>
|
7210 |
|
|
_ACEOF
|
7211 |
|
|
rm -f conftest.$ac_objext
|
7212 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
7213 |
|
|
(eval $ac_compile) 2>conftest.er1
|
7214 |
|
|
ac_status=$?
|
7215 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
7216 |
|
|
rm -f conftest.er1
|
7217 |
|
|
cat conftest.err >&5
|
7218 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7219 |
|
|
(exit $ac_status); } &&
|
7220 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
7221 |
|
|
|| test ! -s conftest.err'
|
7222 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7223 |
|
|
(eval $ac_try) 2>&5
|
7224 |
|
|
ac_status=$?
|
7225 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7226 |
|
|
(exit $ac_status); }; } &&
|
7227 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
7228 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7229 |
|
|
(eval $ac_try) 2>&5
|
7230 |
|
|
ac_status=$?
|
7231 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7232 |
|
|
(exit $ac_status); }; }; then
|
7233 |
|
|
ac_header_compiler=yes
|
7234 |
|
|
else
|
7235 |
|
|
echo "$as_me: failed program was:" >&5
|
7236 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
7237 |
|
|
|
7238 |
|
|
ac_header_compiler=no
|
7239 |
|
|
fi
|
7240 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
7241 |
|
|
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
7242 |
|
|
echo "${ECHO_T}$ac_header_compiler" >&6
|
7243 |
|
|
|
7244 |
|
|
# Is the header present?
|
7245 |
|
|
echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
7246 |
|
|
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
7247 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
7248 |
|
|
/* confdefs.h. */
|
7249 |
|
|
_ACEOF
|
7250 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
7251 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
7252 |
|
|
/* end confdefs.h. */
|
7253 |
|
|
#include <$ac_header>
|
7254 |
|
|
_ACEOF
|
7255 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
7256 |
|
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
7257 |
|
|
ac_status=$?
|
7258 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
7259 |
|
|
rm -f conftest.er1
|
7260 |
|
|
cat conftest.err >&5
|
7261 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7262 |
|
|
(exit $ac_status); } >/dev/null; then
|
7263 |
|
|
if test -s conftest.err; then
|
7264 |
|
|
ac_cpp_err=$ac_c_preproc_warn_flag
|
7265 |
|
|
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
7266 |
|
|
else
|
7267 |
|
|
ac_cpp_err=
|
7268 |
|
|
fi
|
7269 |
|
|
else
|
7270 |
|
|
ac_cpp_err=yes
|
7271 |
|
|
fi
|
7272 |
|
|
if test -z "$ac_cpp_err"; then
|
7273 |
|
|
ac_header_preproc=yes
|
7274 |
|
|
else
|
7275 |
|
|
echo "$as_me: failed program was:" >&5
|
7276 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
7277 |
|
|
|
7278 |
|
|
ac_header_preproc=no
|
7279 |
|
|
fi
|
7280 |
|
|
rm -f conftest.err conftest.$ac_ext
|
7281 |
|
|
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
7282 |
|
|
echo "${ECHO_T}$ac_header_preproc" >&6
|
7283 |
|
|
|
7284 |
|
|
# So? What about this header?
|
7285 |
|
|
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
7286 |
|
|
yes:no: )
|
7287 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
7288 |
|
|
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
7289 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
7290 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
7291 |
|
|
ac_header_preproc=yes
|
7292 |
|
|
;;
|
7293 |
|
|
no:yes:* )
|
7294 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
7295 |
|
|
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
7296 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
7297 |
|
|
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
7298 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
7299 |
|
|
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
7300 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
7301 |
|
|
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
7302 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
7303 |
|
|
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
7304 |
|
|
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
7305 |
|
|
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
7306 |
|
|
(
|
7307 |
|
|
cat <<\_ASBOX
|
7308 |
|
|
## ----------------------------------- ##
|
7309 |
|
|
## Report this to bug-readline@gnu.org ##
|
7310 |
|
|
## ----------------------------------- ##
|
7311 |
|
|
_ASBOX
|
7312 |
|
|
) |
|
7313 |
|
|
sed "s/^/$as_me: WARNING: /" >&2
|
7314 |
|
|
;;
|
7315 |
|
|
esac
|
7316 |
|
|
echo "$as_me:$LINENO: checking for $ac_header" >&5
|
7317 |
|
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
7318 |
|
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
7319 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
7320 |
|
|
else
|
7321 |
|
|
eval "$as_ac_Header=\$ac_header_preproc"
|
7322 |
|
|
fi
|
7323 |
|
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
7324 |
|
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
7325 |
|
|
|
7326 |
|
|
fi
|
7327 |
|
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
7328 |
|
|
cat >>confdefs.h <<_ACEOF
|
7329 |
|
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
7330 |
|
|
_ACEOF
|
7331 |
|
|
|
7332 |
|
|
fi
|
7333 |
|
|
|
7334 |
|
|
done
|
7335 |
|
|
|
7336 |
|
|
|
7337 |
|
|
echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
|
7338 |
|
|
echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6
|
7339 |
|
|
if test "${ac_cv_func_mbsrtowcs+set}" = set; then
|
7340 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
7341 |
|
|
else
|
7342 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
7343 |
|
|
/* confdefs.h. */
|
7344 |
|
|
_ACEOF
|
7345 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
7346 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
7347 |
|
|
/* end confdefs.h. */
|
7348 |
|
|
/* Define mbsrtowcs to an innocuous variant, in case declares mbsrtowcs.
|
7349 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
7350 |
|
|
#define mbsrtowcs innocuous_mbsrtowcs
|
7351 |
|
|
|
7352 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
7353 |
|
|
which can conflict with char mbsrtowcs (); below.
|
7354 |
|
|
Prefer to if __STDC__ is defined, since
|
7355 |
|
|
exists even on freestanding compilers. */
|
7356 |
|
|
|
7357 |
|
|
#ifdef __STDC__
|
7358 |
|
|
# include
|
7359 |
|
|
#else
|
7360 |
|
|
# include
|
7361 |
|
|
#endif
|
7362 |
|
|
|
7363 |
|
|
#undef mbsrtowcs
|
7364 |
|
|
|
7365 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
7366 |
|
|
#ifdef __cplusplus
|
7367 |
|
|
extern "C"
|
7368 |
|
|
{
|
7369 |
|
|
#endif
|
7370 |
|
|
/* We use char because int might match the return type of a gcc2
|
7371 |
|
|
builtin and then its argument prototype would still apply. */
|
7372 |
|
|
char mbsrtowcs ();
|
7373 |
|
|
/* The GNU C library defines this for functions which it implements
|
7374 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
7375 |
|
|
something starting with __ and the normal name is an alias. */
|
7376 |
|
|
#if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs)
|
7377 |
|
|
choke me
|
7378 |
|
|
#else
|
7379 |
|
|
char (*f) () = mbsrtowcs;
|
7380 |
|
|
#endif
|
7381 |
|
|
#ifdef __cplusplus
|
7382 |
|
|
}
|
7383 |
|
|
#endif
|
7384 |
|
|
|
7385 |
|
|
int
|
7386 |
|
|
main ()
|
7387 |
|
|
{
|
7388 |
|
|
return f != mbsrtowcs;
|
7389 |
|
|
;
|
7390 |
|
|
return 0;
|
7391 |
|
|
}
|
7392 |
|
|
_ACEOF
|
7393 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
7394 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
7395 |
|
|
(eval $ac_link) 2>conftest.er1
|
7396 |
|
|
ac_status=$?
|
7397 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
7398 |
|
|
rm -f conftest.er1
|
7399 |
|
|
cat conftest.err >&5
|
7400 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7401 |
|
|
(exit $ac_status); } &&
|
7402 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
7403 |
|
|
|| test ! -s conftest.err'
|
7404 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7405 |
|
|
(eval $ac_try) 2>&5
|
7406 |
|
|
ac_status=$?
|
7407 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7408 |
|
|
(exit $ac_status); }; } &&
|
7409 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
7410 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7411 |
|
|
(eval $ac_try) 2>&5
|
7412 |
|
|
ac_status=$?
|
7413 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7414 |
|
|
(exit $ac_status); }; }; then
|
7415 |
|
|
ac_cv_func_mbsrtowcs=yes
|
7416 |
|
|
else
|
7417 |
|
|
echo "$as_me: failed program was:" >&5
|
7418 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
7419 |
|
|
|
7420 |
|
|
ac_cv_func_mbsrtowcs=no
|
7421 |
|
|
fi
|
7422 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
7423 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
7424 |
|
|
fi
|
7425 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
|
7426 |
|
|
echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
|
7427 |
|
|
if test $ac_cv_func_mbsrtowcs = yes; then
|
7428 |
|
|
cat >>confdefs.h <<\_ACEOF
|
7429 |
|
|
#define HAVE_MBSRTOWCS 1
|
7430 |
|
|
_ACEOF
|
7431 |
|
|
|
7432 |
|
|
fi
|
7433 |
|
|
|
7434 |
|
|
echo "$as_me:$LINENO: checking for mbrtowc" >&5
|
7435 |
|
|
echo $ECHO_N "checking for mbrtowc... $ECHO_C" >&6
|
7436 |
|
|
if test "${ac_cv_func_mbrtowc+set}" = set; then
|
7437 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
7438 |
|
|
else
|
7439 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
7440 |
|
|
/* confdefs.h. */
|
7441 |
|
|
_ACEOF
|
7442 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
7443 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
7444 |
|
|
/* end confdefs.h. */
|
7445 |
|
|
/* Define mbrtowc to an innocuous variant, in case declares mbrtowc.
|
7446 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
7447 |
|
|
#define mbrtowc innocuous_mbrtowc
|
7448 |
|
|
|
7449 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
7450 |
|
|
which can conflict with char mbrtowc (); below.
|
7451 |
|
|
Prefer to if __STDC__ is defined, since
|
7452 |
|
|
exists even on freestanding compilers. */
|
7453 |
|
|
|
7454 |
|
|
#ifdef __STDC__
|
7455 |
|
|
# include
|
7456 |
|
|
#else
|
7457 |
|
|
# include
|
7458 |
|
|
#endif
|
7459 |
|
|
|
7460 |
|
|
#undef mbrtowc
|
7461 |
|
|
|
7462 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
7463 |
|
|
#ifdef __cplusplus
|
7464 |
|
|
extern "C"
|
7465 |
|
|
{
|
7466 |
|
|
#endif
|
7467 |
|
|
/* We use char because int might match the return type of a gcc2
|
7468 |
|
|
builtin and then its argument prototype would still apply. */
|
7469 |
|
|
char mbrtowc ();
|
7470 |
|
|
/* The GNU C library defines this for functions which it implements
|
7471 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
7472 |
|
|
something starting with __ and the normal name is an alias. */
|
7473 |
|
|
#if defined (__stub_mbrtowc) || defined (__stub___mbrtowc)
|
7474 |
|
|
choke me
|
7475 |
|
|
#else
|
7476 |
|
|
char (*f) () = mbrtowc;
|
7477 |
|
|
#endif
|
7478 |
|
|
#ifdef __cplusplus
|
7479 |
|
|
}
|
7480 |
|
|
#endif
|
7481 |
|
|
|
7482 |
|
|
int
|
7483 |
|
|
main ()
|
7484 |
|
|
{
|
7485 |
|
|
return f != mbrtowc;
|
7486 |
|
|
;
|
7487 |
|
|
return 0;
|
7488 |
|
|
}
|
7489 |
|
|
_ACEOF
|
7490 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
7491 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
7492 |
|
|
(eval $ac_link) 2>conftest.er1
|
7493 |
|
|
ac_status=$?
|
7494 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
7495 |
|
|
rm -f conftest.er1
|
7496 |
|
|
cat conftest.err >&5
|
7497 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7498 |
|
|
(exit $ac_status); } &&
|
7499 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
7500 |
|
|
|| test ! -s conftest.err'
|
7501 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7502 |
|
|
(eval $ac_try) 2>&5
|
7503 |
|
|
ac_status=$?
|
7504 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7505 |
|
|
(exit $ac_status); }; } &&
|
7506 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
7507 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7508 |
|
|
(eval $ac_try) 2>&5
|
7509 |
|
|
ac_status=$?
|
7510 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7511 |
|
|
(exit $ac_status); }; }; then
|
7512 |
|
|
ac_cv_func_mbrtowc=yes
|
7513 |
|
|
else
|
7514 |
|
|
echo "$as_me: failed program was:" >&5
|
7515 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
7516 |
|
|
|
7517 |
|
|
ac_cv_func_mbrtowc=no
|
7518 |
|
|
fi
|
7519 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
7520 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
7521 |
|
|
fi
|
7522 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
|
7523 |
|
|
echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
|
7524 |
|
|
if test $ac_cv_func_mbrtowc = yes; then
|
7525 |
|
|
cat >>confdefs.h <<\_ACEOF
|
7526 |
|
|
#define HAVE_MBRTOWC 1
|
7527 |
|
|
_ACEOF
|
7528 |
|
|
|
7529 |
|
|
fi
|
7530 |
|
|
|
7531 |
|
|
echo "$as_me:$LINENO: checking for mbrlen" >&5
|
7532 |
|
|
echo $ECHO_N "checking for mbrlen... $ECHO_C" >&6
|
7533 |
|
|
if test "${ac_cv_func_mbrlen+set}" = set; then
|
7534 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
7535 |
|
|
else
|
7536 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
7537 |
|
|
/* confdefs.h. */
|
7538 |
|
|
_ACEOF
|
7539 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
7540 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
7541 |
|
|
/* end confdefs.h. */
|
7542 |
|
|
/* Define mbrlen to an innocuous variant, in case declares mbrlen.
|
7543 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
7544 |
|
|
#define mbrlen innocuous_mbrlen
|
7545 |
|
|
|
7546 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
7547 |
|
|
which can conflict with char mbrlen (); below.
|
7548 |
|
|
Prefer to if __STDC__ is defined, since
|
7549 |
|
|
exists even on freestanding compilers. */
|
7550 |
|
|
|
7551 |
|
|
#ifdef __STDC__
|
7552 |
|
|
# include
|
7553 |
|
|
#else
|
7554 |
|
|
# include
|
7555 |
|
|
#endif
|
7556 |
|
|
|
7557 |
|
|
#undef mbrlen
|
7558 |
|
|
|
7559 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
7560 |
|
|
#ifdef __cplusplus
|
7561 |
|
|
extern "C"
|
7562 |
|
|
{
|
7563 |
|
|
#endif
|
7564 |
|
|
/* We use char because int might match the return type of a gcc2
|
7565 |
|
|
builtin and then its argument prototype would still apply. */
|
7566 |
|
|
char mbrlen ();
|
7567 |
|
|
/* The GNU C library defines this for functions which it implements
|
7568 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
7569 |
|
|
something starting with __ and the normal name is an alias. */
|
7570 |
|
|
#if defined (__stub_mbrlen) || defined (__stub___mbrlen)
|
7571 |
|
|
choke me
|
7572 |
|
|
#else
|
7573 |
|
|
char (*f) () = mbrlen;
|
7574 |
|
|
#endif
|
7575 |
|
|
#ifdef __cplusplus
|
7576 |
|
|
}
|
7577 |
|
|
#endif
|
7578 |
|
|
|
7579 |
|
|
int
|
7580 |
|
|
main ()
|
7581 |
|
|
{
|
7582 |
|
|
return f != mbrlen;
|
7583 |
|
|
;
|
7584 |
|
|
return 0;
|
7585 |
|
|
}
|
7586 |
|
|
_ACEOF
|
7587 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
7588 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
7589 |
|
|
(eval $ac_link) 2>conftest.er1
|
7590 |
|
|
ac_status=$?
|
7591 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
7592 |
|
|
rm -f conftest.er1
|
7593 |
|
|
cat conftest.err >&5
|
7594 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7595 |
|
|
(exit $ac_status); } &&
|
7596 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
7597 |
|
|
|| test ! -s conftest.err'
|
7598 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7599 |
|
|
(eval $ac_try) 2>&5
|
7600 |
|
|
ac_status=$?
|
7601 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7602 |
|
|
(exit $ac_status); }; } &&
|
7603 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
7604 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7605 |
|
|
(eval $ac_try) 2>&5
|
7606 |
|
|
ac_status=$?
|
7607 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7608 |
|
|
(exit $ac_status); }; }; then
|
7609 |
|
|
ac_cv_func_mbrlen=yes
|
7610 |
|
|
else
|
7611 |
|
|
echo "$as_me: failed program was:" >&5
|
7612 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
7613 |
|
|
|
7614 |
|
|
ac_cv_func_mbrlen=no
|
7615 |
|
|
fi
|
7616 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
7617 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
7618 |
|
|
fi
|
7619 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
|
7620 |
|
|
echo "${ECHO_T}$ac_cv_func_mbrlen" >&6
|
7621 |
|
|
if test $ac_cv_func_mbrlen = yes; then
|
7622 |
|
|
cat >>confdefs.h <<\_ACEOF
|
7623 |
|
|
#define HAVE_MBRLEN 1
|
7624 |
|
|
_ACEOF
|
7625 |
|
|
|
7626 |
|
|
fi
|
7627 |
|
|
|
7628 |
|
|
echo "$as_me:$LINENO: checking for wctomb" >&5
|
7629 |
|
|
echo $ECHO_N "checking for wctomb... $ECHO_C" >&6
|
7630 |
|
|
if test "${ac_cv_func_wctomb+set}" = set; then
|
7631 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
7632 |
|
|
else
|
7633 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
7634 |
|
|
/* confdefs.h. */
|
7635 |
|
|
_ACEOF
|
7636 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
7637 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
7638 |
|
|
/* end confdefs.h. */
|
7639 |
|
|
/* Define wctomb to an innocuous variant, in case declares wctomb.
|
7640 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
7641 |
|
|
#define wctomb innocuous_wctomb
|
7642 |
|
|
|
7643 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
7644 |
|
|
which can conflict with char wctomb (); below.
|
7645 |
|
|
Prefer to if __STDC__ is defined, since
|
7646 |
|
|
exists even on freestanding compilers. */
|
7647 |
|
|
|
7648 |
|
|
#ifdef __STDC__
|
7649 |
|
|
# include
|
7650 |
|
|
#else
|
7651 |
|
|
# include
|
7652 |
|
|
#endif
|
7653 |
|
|
|
7654 |
|
|
#undef wctomb
|
7655 |
|
|
|
7656 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
7657 |
|
|
#ifdef __cplusplus
|
7658 |
|
|
extern "C"
|
7659 |
|
|
{
|
7660 |
|
|
#endif
|
7661 |
|
|
/* We use char because int might match the return type of a gcc2
|
7662 |
|
|
builtin and then its argument prototype would still apply. */
|
7663 |
|
|
char wctomb ();
|
7664 |
|
|
/* The GNU C library defines this for functions which it implements
|
7665 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
7666 |
|
|
something starting with __ and the normal name is an alias. */
|
7667 |
|
|
#if defined (__stub_wctomb) || defined (__stub___wctomb)
|
7668 |
|
|
choke me
|
7669 |
|
|
#else
|
7670 |
|
|
char (*f) () = wctomb;
|
7671 |
|
|
#endif
|
7672 |
|
|
#ifdef __cplusplus
|
7673 |
|
|
}
|
7674 |
|
|
#endif
|
7675 |
|
|
|
7676 |
|
|
int
|
7677 |
|
|
main ()
|
7678 |
|
|
{
|
7679 |
|
|
return f != wctomb;
|
7680 |
|
|
;
|
7681 |
|
|
return 0;
|
7682 |
|
|
}
|
7683 |
|
|
_ACEOF
|
7684 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
7685 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
7686 |
|
|
(eval $ac_link) 2>conftest.er1
|
7687 |
|
|
ac_status=$?
|
7688 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
7689 |
|
|
rm -f conftest.er1
|
7690 |
|
|
cat conftest.err >&5
|
7691 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7692 |
|
|
(exit $ac_status); } &&
|
7693 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
7694 |
|
|
|| test ! -s conftest.err'
|
7695 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7696 |
|
|
(eval $ac_try) 2>&5
|
7697 |
|
|
ac_status=$?
|
7698 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7699 |
|
|
(exit $ac_status); }; } &&
|
7700 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
7701 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7702 |
|
|
(eval $ac_try) 2>&5
|
7703 |
|
|
ac_status=$?
|
7704 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7705 |
|
|
(exit $ac_status); }; }; then
|
7706 |
|
|
ac_cv_func_wctomb=yes
|
7707 |
|
|
else
|
7708 |
|
|
echo "$as_me: failed program was:" >&5
|
7709 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
7710 |
|
|
|
7711 |
|
|
ac_cv_func_wctomb=no
|
7712 |
|
|
fi
|
7713 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
7714 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
7715 |
|
|
fi
|
7716 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_func_wctomb" >&5
|
7717 |
|
|
echo "${ECHO_T}$ac_cv_func_wctomb" >&6
|
7718 |
|
|
if test $ac_cv_func_wctomb = yes; then
|
7719 |
|
|
cat >>confdefs.h <<\_ACEOF
|
7720 |
|
|
#define HAVE_WCTOMB 1
|
7721 |
|
|
_ACEOF
|
7722 |
|
|
|
7723 |
|
|
fi
|
7724 |
|
|
|
7725 |
|
|
echo "$as_me:$LINENO: checking for wcwidth" >&5
|
7726 |
|
|
echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
|
7727 |
|
|
if test "${ac_cv_func_wcwidth+set}" = set; then
|
7728 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
7729 |
|
|
else
|
7730 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
7731 |
|
|
/* confdefs.h. */
|
7732 |
|
|
_ACEOF
|
7733 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
7734 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
7735 |
|
|
/* end confdefs.h. */
|
7736 |
|
|
/* Define wcwidth to an innocuous variant, in case declares wcwidth.
|
7737 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
7738 |
|
|
#define wcwidth innocuous_wcwidth
|
7739 |
|
|
|
7740 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
7741 |
|
|
which can conflict with char wcwidth (); below.
|
7742 |
|
|
Prefer to if __STDC__ is defined, since
|
7743 |
|
|
exists even on freestanding compilers. */
|
7744 |
|
|
|
7745 |
|
|
#ifdef __STDC__
|
7746 |
|
|
# include
|
7747 |
|
|
#else
|
7748 |
|
|
# include
|
7749 |
|
|
#endif
|
7750 |
|
|
|
7751 |
|
|
#undef wcwidth
|
7752 |
|
|
|
7753 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
7754 |
|
|
#ifdef __cplusplus
|
7755 |
|
|
extern "C"
|
7756 |
|
|
{
|
7757 |
|
|
#endif
|
7758 |
|
|
/* We use char because int might match the return type of a gcc2
|
7759 |
|
|
builtin and then its argument prototype would still apply. */
|
7760 |
|
|
char wcwidth ();
|
7761 |
|
|
/* The GNU C library defines this for functions which it implements
|
7762 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
7763 |
|
|
something starting with __ and the normal name is an alias. */
|
7764 |
|
|
#if defined (__stub_wcwidth) || defined (__stub___wcwidth)
|
7765 |
|
|
choke me
|
7766 |
|
|
#else
|
7767 |
|
|
char (*f) () = wcwidth;
|
7768 |
|
|
#endif
|
7769 |
|
|
#ifdef __cplusplus
|
7770 |
|
|
}
|
7771 |
|
|
#endif
|
7772 |
|
|
|
7773 |
|
|
int
|
7774 |
|
|
main ()
|
7775 |
|
|
{
|
7776 |
|
|
return f != wcwidth;
|
7777 |
|
|
;
|
7778 |
|
|
return 0;
|
7779 |
|
|
}
|
7780 |
|
|
_ACEOF
|
7781 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
7782 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
7783 |
|
|
(eval $ac_link) 2>conftest.er1
|
7784 |
|
|
ac_status=$?
|
7785 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
7786 |
|
|
rm -f conftest.er1
|
7787 |
|
|
cat conftest.err >&5
|
7788 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7789 |
|
|
(exit $ac_status); } &&
|
7790 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
7791 |
|
|
|| test ! -s conftest.err'
|
7792 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7793 |
|
|
(eval $ac_try) 2>&5
|
7794 |
|
|
ac_status=$?
|
7795 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7796 |
|
|
(exit $ac_status); }; } &&
|
7797 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
7798 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7799 |
|
|
(eval $ac_try) 2>&5
|
7800 |
|
|
ac_status=$?
|
7801 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7802 |
|
|
(exit $ac_status); }; }; then
|
7803 |
|
|
ac_cv_func_wcwidth=yes
|
7804 |
|
|
else
|
7805 |
|
|
echo "$as_me: failed program was:" >&5
|
7806 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
7807 |
|
|
|
7808 |
|
|
ac_cv_func_wcwidth=no
|
7809 |
|
|
fi
|
7810 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
7811 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
7812 |
|
|
fi
|
7813 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
|
7814 |
|
|
echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
|
7815 |
|
|
if test $ac_cv_func_wcwidth = yes; then
|
7816 |
|
|
cat >>confdefs.h <<\_ACEOF
|
7817 |
|
|
#define HAVE_WCWIDTH 1
|
7818 |
|
|
_ACEOF
|
7819 |
|
|
|
7820 |
|
|
fi
|
7821 |
|
|
|
7822 |
|
|
echo "$as_me:$LINENO: checking for wcsdup" >&5
|
7823 |
|
|
echo $ECHO_N "checking for wcsdup... $ECHO_C" >&6
|
7824 |
|
|
if test "${ac_cv_func_wcsdup+set}" = set; then
|
7825 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
7826 |
|
|
else
|
7827 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
7828 |
|
|
/* confdefs.h. */
|
7829 |
|
|
_ACEOF
|
7830 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
7831 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
7832 |
|
|
/* end confdefs.h. */
|
7833 |
|
|
/* Define wcsdup to an innocuous variant, in case declares wcsdup.
|
7834 |
|
|
For example, HP-UX 11i declares gettimeofday. */
|
7835 |
|
|
#define wcsdup innocuous_wcsdup
|
7836 |
|
|
|
7837 |
|
|
/* System header to define __stub macros and hopefully few prototypes,
|
7838 |
|
|
which can conflict with char wcsdup (); below.
|
7839 |
|
|
Prefer to if __STDC__ is defined, since
|
7840 |
|
|
exists even on freestanding compilers. */
|
7841 |
|
|
|
7842 |
|
|
#ifdef __STDC__
|
7843 |
|
|
# include
|
7844 |
|
|
#else
|
7845 |
|
|
# include
|
7846 |
|
|
#endif
|
7847 |
|
|
|
7848 |
|
|
#undef wcsdup
|
7849 |
|
|
|
7850 |
|
|
/* Override any gcc2 internal prototype to avoid an error. */
|
7851 |
|
|
#ifdef __cplusplus
|
7852 |
|
|
extern "C"
|
7853 |
|
|
{
|
7854 |
|
|
#endif
|
7855 |
|
|
/* We use char because int might match the return type of a gcc2
|
7856 |
|
|
builtin and then its argument prototype would still apply. */
|
7857 |
|
|
char wcsdup ();
|
7858 |
|
|
/* The GNU C library defines this for functions which it implements
|
7859 |
|
|
to always fail with ENOSYS. Some functions are actually named
|
7860 |
|
|
something starting with __ and the normal name is an alias. */
|
7861 |
|
|
#if defined (__stub_wcsdup) || defined (__stub___wcsdup)
|
7862 |
|
|
choke me
|
7863 |
|
|
#else
|
7864 |
|
|
char (*f) () = wcsdup;
|
7865 |
|
|
#endif
|
7866 |
|
|
#ifdef __cplusplus
|
7867 |
|
|
}
|
7868 |
|
|
#endif
|
7869 |
|
|
|
7870 |
|
|
int
|
7871 |
|
|
main ()
|
7872 |
|
|
{
|
7873 |
|
|
return f != wcsdup;
|
7874 |
|
|
;
|
7875 |
|
|
return 0;
|
7876 |
|
|
}
|
7877 |
|
|
_ACEOF
|
7878 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
7879 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
7880 |
|
|
(eval $ac_link) 2>conftest.er1
|
7881 |
|
|
ac_status=$?
|
7882 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
7883 |
|
|
rm -f conftest.er1
|
7884 |
|
|
cat conftest.err >&5
|
7885 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7886 |
|
|
(exit $ac_status); } &&
|
7887 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
7888 |
|
|
|| test ! -s conftest.err'
|
7889 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7890 |
|
|
(eval $ac_try) 2>&5
|
7891 |
|
|
ac_status=$?
|
7892 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7893 |
|
|
(exit $ac_status); }; } &&
|
7894 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
7895 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7896 |
|
|
(eval $ac_try) 2>&5
|
7897 |
|
|
ac_status=$?
|
7898 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7899 |
|
|
(exit $ac_status); }; }; then
|
7900 |
|
|
ac_cv_func_wcsdup=yes
|
7901 |
|
|
else
|
7902 |
|
|
echo "$as_me: failed program was:" >&5
|
7903 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
7904 |
|
|
|
7905 |
|
|
ac_cv_func_wcsdup=no
|
7906 |
|
|
fi
|
7907 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
7908 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
7909 |
|
|
fi
|
7910 |
|
|
echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
|
7911 |
|
|
echo "${ECHO_T}$ac_cv_func_wcsdup" >&6
|
7912 |
|
|
if test $ac_cv_func_wcsdup = yes; then
|
7913 |
|
|
cat >>confdefs.h <<\_ACEOF
|
7914 |
|
|
#define HAVE_WCSDUP 1
|
7915 |
|
|
_ACEOF
|
7916 |
|
|
|
7917 |
|
|
fi
|
7918 |
|
|
|
7919 |
|
|
|
7920 |
|
|
if test "$ac_cv_func_wcwidth" = no && test "$ac_cv_header_wchar_h" = yes; then
|
7921 |
|
|
WCWIDTH_OBJ=wcwidth.o
|
7922 |
|
|
else
|
7923 |
|
|
WCWIDTH_OBJ=
|
7924 |
|
|
fi
|
7925 |
|
|
|
7926 |
|
|
|
7927 |
|
|
echo "$as_me:$LINENO: checking for mbstate_t" >&5
|
7928 |
|
|
echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
|
7929 |
|
|
if test "${bash_cv_have_mbstate_t+set}" = set; then
|
7930 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
7931 |
|
|
else
|
7932 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
7933 |
|
|
/* confdefs.h. */
|
7934 |
|
|
_ACEOF
|
7935 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
7936 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
7937 |
|
|
/* end confdefs.h. */
|
7938 |
|
|
|
7939 |
|
|
#include
|
7940 |
|
|
int
|
7941 |
|
|
main ()
|
7942 |
|
|
{
|
7943 |
|
|
|
7944 |
|
|
mbstate_t ps;
|
7945 |
|
|
mbstate_t *psp;
|
7946 |
|
|
psp = (mbstate_t *)0;
|
7947 |
|
|
|
7948 |
|
|
;
|
7949 |
|
|
return 0;
|
7950 |
|
|
}
|
7951 |
|
|
_ACEOF
|
7952 |
|
|
rm -f conftest.$ac_objext
|
7953 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
7954 |
|
|
(eval $ac_compile) 2>conftest.er1
|
7955 |
|
|
ac_status=$?
|
7956 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
7957 |
|
|
rm -f conftest.er1
|
7958 |
|
|
cat conftest.err >&5
|
7959 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7960 |
|
|
(exit $ac_status); } &&
|
7961 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
7962 |
|
|
|| test ! -s conftest.err'
|
7963 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7964 |
|
|
(eval $ac_try) 2>&5
|
7965 |
|
|
ac_status=$?
|
7966 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7967 |
|
|
(exit $ac_status); }; } &&
|
7968 |
|
|
{ ac_try='test -s conftest.$ac_objext'
|
7969 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
7970 |
|
|
(eval $ac_try) 2>&5
|
7971 |
|
|
ac_status=$?
|
7972 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
7973 |
|
|
(exit $ac_status); }; }; then
|
7974 |
|
|
bash_cv_have_mbstate_t=yes
|
7975 |
|
|
else
|
7976 |
|
|
echo "$as_me: failed program was:" >&5
|
7977 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
7978 |
|
|
|
7979 |
|
|
bash_cv_have_mbstate_t=no
|
7980 |
|
|
fi
|
7981 |
|
|
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
7982 |
|
|
fi
|
7983 |
|
|
echo "$as_me:$LINENO: result: $bash_cv_have_mbstate_t" >&5
|
7984 |
|
|
echo "${ECHO_T}$bash_cv_have_mbstate_t" >&6
|
7985 |
|
|
if test $bash_cv_have_mbstate_t = yes; then
|
7986 |
|
|
cat >>confdefs.h <<\_ACEOF
|
7987 |
|
|
#define HAVE_MBSTATE_T 1
|
7988 |
|
|
_ACEOF
|
7989 |
|
|
|
7990 |
|
|
fi
|
7991 |
|
|
|
7992 |
|
|
echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
|
7993 |
|
|
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
|
7994 |
|
|
if test "${bash_cv_langinfo_codeset+set}" = set; then
|
7995 |
|
|
echo $ECHO_N "(cached) $ECHO_C" >&6
|
7996 |
|
|
else
|
7997 |
|
|
cat >conftest.$ac_ext <<_ACEOF
|
7998 |
|
|
/* confdefs.h. */
|
7999 |
|
|
_ACEOF
|
8000 |
|
|
cat confdefs.h >>conftest.$ac_ext
|
8001 |
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
8002 |
|
|
/* end confdefs.h. */
|
8003 |
|
|
#include
|
8004 |
|
|
int
|
8005 |
|
|
main ()
|
8006 |
|
|
{
|
8007 |
|
|
char* cs = nl_langinfo(CODESET);
|
8008 |
|
|
;
|
8009 |
|
|
return 0;
|
8010 |
|
|
}
|
8011 |
|
|
_ACEOF
|
8012 |
|
|
rm -f conftest.$ac_objext conftest$ac_exeext
|
8013 |
|
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
8014 |
|
|
(eval $ac_link) 2>conftest.er1
|
8015 |
|
|
ac_status=$?
|
8016 |
|
|
grep -v '^ *+' conftest.er1 >conftest.err
|
8017 |
|
|
rm -f conftest.er1
|
8018 |
|
|
cat conftest.err >&5
|
8019 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8020 |
|
|
(exit $ac_status); } &&
|
8021 |
|
|
{ ac_try='test -z "$ac_c_werror_flag"
|
8022 |
|
|
|| test ! -s conftest.err'
|
8023 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
8024 |
|
|
(eval $ac_try) 2>&5
|
8025 |
|
|
ac_status=$?
|
8026 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8027 |
|
|
(exit $ac_status); }; } &&
|
8028 |
|
|
{ ac_try='test -s conftest$ac_exeext'
|
8029 |
|
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
8030 |
|
|
(eval $ac_try) 2>&5
|
8031 |
|
|
ac_status=$?
|
8032 |
|
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
8033 |
|
|
(exit $ac_status); }; }; then
|
8034 |
|
|
bash_cv_langinfo_codeset=yes
|
8035 |
|
|
else
|
8036 |
|
|
echo "$as_me: failed program was:" >&5
|
8037 |
|
|
sed 's/^/| /' conftest.$ac_ext >&5
|
8038 |
|
|
|
8039 |
|
|
bash_cv_langinfo_codeset=no
|
8040 |
|
|
fi
|
8041 |
|
|
rm -f conftest.err conftest.$ac_objext \
|
8042 |
|
|
conftest$ac_exeext conftest.$ac_ext
|
8043 |
|
|
fi
|
8044 |
|
|
echo "$as_me:$LINENO: result: $bash_cv_langinfo_codeset" >&5
|
8045 |
|
|
echo "${ECHO_T}$bash_cv_langinfo_codeset" >&6
|
8046 |
|
|
if test $bash_cv_langinfo_codeset = yes; then
|
8047 |
|
|
cat >>confdefs.h <<\_ACEOF
|
8048 |
|
|
#define HAVE_LANGINFO_CODESET 1
|
8049 |
|
|
_ACEOF
|
8050 |
|
|
|
8051 |
|
|
fi
|
8052 |
|
|
|
8053 |
|
|
|
8054 |
|
|
|
8055 |
|
|
case "$host_cpu" in
|
8056 |
|
|
*cray*) LOCAL_CFLAGS=-DCRAY ;;
|
8057 |
|
|
*s390*) LOCAL_CFLAGS=-fsigned-char ;;
|
8058 |
|
|
esac
|
8059 |
|
|
|
8060 |
|
|
case "$host_os" in
|
8061 |
|
|
isc*) LOCAL_CFLAGS=-Disc386 ;;
|
8062 |
|
|
esac
|
8063 |
|
|
|
8064 |
|
|
# shared library configuration section
|
8065 |
|
|
#
|
8066 |
|
|
# Shared object configuration section. These values are generated by
|
8067 |
|
|
# ${srcdir}/support/shobj-conf
|
8068 |
|
|
#
|
8069 |
|
|
if test -f ${srcdir}/support/shobj-conf; then
|
8070 |
|
|
echo "$as_me:$LINENO: checking configuration for building shared libraries" >&5
|
8071 |
|
|
echo $ECHO_N "checking configuration for building shared libraries... $ECHO_C" >&6
|
8072 |
|
|
eval `TERMCAP_LIB=$TERMCAP_LIB ${CONFIG_SHELL-/bin/sh} ${srcdir}/support/shobj-conf -C "${CC}" -c ${host_cpu} -o ${host_os} -v ${host_vendor}`
|
8073 |
|
|
|
8074 |
|
|
# case "$SHLIB_LIBS" in
|
8075 |
|
|
# *curses*|*termcap*|*termlib*) ;;
|
8076 |
|
|
# *) SHLIB_LIBS="$SHLIB_LIBS $TERMCAP_LIB" ;;
|
8077 |
|
|
# esac
|
8078 |
|
|
|
8079 |
|
|
|
8080 |
|
|
|
8081 |
|
|
|
8082 |
|
|
|
8083 |
|
|
|
8084 |
|
|
|
8085 |
|
|
|
8086 |
|
|
|
8087 |
|
|
|
8088 |
|
|
|
8089 |
|
|
|
8090 |
|
|
|
8091 |
|
|
|
8092 |
|
|
|
8093 |
|
|
|
8094 |
|
|
echo "$as_me:$LINENO: result: $SHLIB_STATUS" >&5
|
8095 |
|
|
echo "${ECHO_T}$SHLIB_STATUS" >&6
|
8096 |
|
|
|
8097 |
|
|
# SHLIB_STATUS is either `supported' or `unsupported'. If it's
|
8098 |
|
|
# `unsupported', turn off any default shared library building
|
8099 |
|
|
if test "$SHLIB_STATUS" = 'unsupported'; then
|
8100 |
|
|
opt_shared_libs=no
|
8101 |
|
|
fi
|
8102 |
|
|
|
8103 |
|
|
# shared library versioning
|
8104 |
|
|
# quoted for m4 so I can use character classes
|
8105 |
|
|
SHLIB_MAJOR=`expr "$LIBVERSION" : '\([0-9]\)\..*'`
|
8106 |
|
|
SHLIB_MINOR=`expr "$LIBVERSION" : '[0-9]\.\([0-9]\).*'`
|
8107 |
|
|
|
8108 |
|
|
|
8109 |
|
|
fi
|
8110 |
|
|
|
8111 |
|
|
if test "$opt_static_libs" = "yes"; then
|
8112 |
|
|
STATIC_TARGET=static
|
8113 |
|
|
STATIC_INSTALL_TARGET=install-static
|
8114 |
|
|
fi
|
8115 |
|
|
if test "$opt_shared_libs" = "yes"; then
|
8116 |
|
|
SHARED_TARGET=shared
|
8117 |
|
|
SHARED_INSTALL_TARGET=install-shared
|
8118 |
|
|
fi
|
8119 |
|
|
|
8120 |
|
|
|
8121 |
|
|
|
8122 |
|
|
|
8123 |
|
|
|
8124 |
|
|
|
8125 |
|
|
case "$host_os" in
|
8126 |
|
|
msdosdjgpp*) BUILD_DIR=`pwd.exe` ;; # to prevent //d/path/file
|
8127 |
|
|
*) BUILD_DIR=`pwd` ;;
|
8128 |
|
|
esac
|
8129 |
|
|
|
8130 |
|
|
case "$BUILD_DIR" in
|
8131 |
|
|
*\ *) BUILD_DIR=`echo "$BUILD_DIR" | sed 's: :\\\\ :g'` ;;
|
8132 |
|
|
*) ;;
|
8133 |
|
|
esac
|
8134 |
|
|
|
8135 |
|
|
|
8136 |
|
|
|
8137 |
|
|
|
8138 |
|
|
|
8139 |
|
|
|
8140 |
|
|
|
8141 |
|
|
|
8142 |
|
|
|
8143 |
|
|
|
8144 |
|
|
|
8145 |
|
|
|
8146 |
|
|
|
8147 |
|
|
|
8148 |
|
|
|
8149 |
|
|
|
8150 |
|
|
|
8151 |
|
|
|
8152 |
|
|
|
8153 |
|
|
ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile shlib/Makefile"
|
8154 |
|
|
ac_config_commands="$ac_config_commands default"
|
8155 |
|
|
cat >confcache <<\_ACEOF
|
8156 |
|
|
# This file is a shell script that caches the results of configure
|
8157 |
|
|
# tests run on this system so they can be shared between configure
|
8158 |
|
|
# scripts and configure runs, see configure's option --config-cache.
|
8159 |
|
|
# It is not useful on other systems. If it contains results you don't
|
8160 |
|
|
# want to keep, you may remove or edit it.
|
8161 |
|
|
#
|
8162 |
|
|
# config.status only pays attention to the cache file if you give it
|
8163 |
|
|
# the --recheck option to rerun configure.
|
8164 |
|
|
#
|
8165 |
|
|
# `ac_cv_env_foo' variables (set or unset) will be overridden when
|
8166 |
|
|
# loading this file, other *unset* `ac_cv_foo' will be assigned the
|
8167 |
|
|
# following values.
|
8168 |
|
|
|
8169 |
|
|
_ACEOF
|
8170 |
|
|
|
8171 |
|
|
# The following way of writing the cache mishandles newlines in values,
|
8172 |
|
|
# but we know of no workaround that is simple, portable, and efficient.
|
8173 |
|
|
# So, don't put newlines in cache variables' values.
|
8174 |
|
|
# Ultrix sh set writes to stderr and can't be redirected directly,
|
8175 |
|
|
# and sets the high bit in the cache file unless we assign to the vars.
|
8176 |
|
|
{
|
8177 |
|
|
(set) 2>&1 |
|
8178 |
|
|
case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
8179 |
|
|
*ac_space=\ *)
|
8180 |
|
|
# `set' does not quote correctly, so add quotes (double-quote
|
8181 |
|
|
# substitution turns \\\\ into \\, and sed turns \\ into \).
|
8182 |
|
|
sed -n \
|
8183 |
|
|
"s/'/'\\\\''/g;
|
8184 |
|
|
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
8185 |
|
|
;;
|
8186 |
|
|
*)
|
8187 |
|
|
# `set' quotes correctly as required by POSIX, so do not add quotes.
|
8188 |
|
|
sed -n \
|
8189 |
|
|
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
8190 |
|
|
;;
|
8191 |
|
|
esac;
|
8192 |
|
|
} |
|
8193 |
|
|
sed '
|
8194 |
|
|
t clear
|
8195 |
|
|
: clear
|
8196 |
|
|
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
8197 |
|
|
t end
|
8198 |
|
|
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
8199 |
|
|
: end' >>confcache
|
8200 |
|
|
if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
8201 |
|
|
if test -w $cache_file; then
|
8202 |
|
|
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
8203 |
|
|
cat confcache >$cache_file
|
8204 |
|
|
else
|
8205 |
|
|
echo "not updating unwritable cache $cache_file"
|
8206 |
|
|
fi
|
8207 |
|
|
fi
|
8208 |
|
|
rm -f confcache
|
8209 |
|
|
|
8210 |
|
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
8211 |
|
|
# Let make expand exec_prefix.
|
8212 |
|
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
8213 |
|
|
|
8214 |
|
|
# VPATH may cause trouble with some makes, so we remove $(srcdir),
|
8215 |
|
|
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
8216 |
|
|
# trailing colons and then remove the whole line if VPATH becomes empty
|
8217 |
|
|
# (actually we leave an empty line to preserve line numbers).
|
8218 |
|
|
if test "x$srcdir" = x.; then
|
8219 |
|
|
ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
8220 |
|
|
s/:*\$(srcdir):*/:/;
|
8221 |
|
|
s/:*\${srcdir}:*/:/;
|
8222 |
|
|
s/:*@srcdir@:*/:/;
|
8223 |
|
|
s/^\([^=]*=[ ]*\):*/\1/;
|
8224 |
|
|
s/:*$//;
|
8225 |
|
|
s/^[^=]*=[ ]*$//;
|
8226 |
|
|
}'
|
8227 |
|
|
fi
|
8228 |
|
|
|
8229 |
|
|
DEFS=-DHAVE_CONFIG_H
|
8230 |
|
|
|
8231 |
|
|
ac_libobjs=
|
8232 |
|
|
ac_ltlibobjs=
|
8233 |
|
|
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
8234 |
|
|
# 1. Remove the extension, and $U if already installed.
|
8235 |
|
|
ac_i=`echo "$ac_i" |
|
8236 |
|
|
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
8237 |
|
|
# 2. Add them.
|
8238 |
|
|
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
8239 |
|
|
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
8240 |
|
|
done
|
8241 |
|
|
LIBOBJS=$ac_libobjs
|
8242 |
|
|
|
8243 |
|
|
LTLIBOBJS=$ac_ltlibobjs
|
8244 |
|
|
|
8245 |
|
|
|
8246 |
|
|
|
8247 |
|
|
: ${CONFIG_STATUS=./config.status}
|
8248 |
|
|
ac_clean_files_save=$ac_clean_files
|
8249 |
|
|
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
8250 |
|
|
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
8251 |
|
|
echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
8252 |
|
|
cat >$CONFIG_STATUS <<_ACEOF
|
8253 |
|
|
#! $SHELL
|
8254 |
|
|
# Generated by $as_me.
|
8255 |
|
|
# Run this file to recreate the current configuration.
|
8256 |
|
|
# Compiler output produced by configure, useful for debugging
|
8257 |
|
|
# configure, is in config.log if it exists.
|
8258 |
|
|
|
8259 |
|
|
debug=false
|
8260 |
|
|
ac_cs_recheck=false
|
8261 |
|
|
ac_cs_silent=false
|
8262 |
|
|
SHELL=\${CONFIG_SHELL-$SHELL}
|
8263 |
|
|
_ACEOF
|
8264 |
|
|
|
8265 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
8266 |
|
|
## --------------------- ##
|
8267 |
|
|
## M4sh Initialization. ##
|
8268 |
|
|
## --------------------- ##
|
8269 |
|
|
|
8270 |
|
|
# Be Bourne compatible
|
8271 |
|
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
8272 |
|
|
emulate sh
|
8273 |
|
|
NULLCMD=:
|
8274 |
|
|
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
8275 |
|
|
# is contrary to our usage. Disable this feature.
|
8276 |
|
|
alias -g '${1+"$@"}'='"$@"'
|
8277 |
|
|
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
8278 |
|
|
set -o posix
|
8279 |
|
|
fi
|
8280 |
|
|
DUALCASE=1; export DUALCASE # for MKS sh
|
8281 |
|
|
|
8282 |
|
|
# Support unset when possible.
|
8283 |
|
|
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
8284 |
|
|
as_unset=unset
|
8285 |
|
|
else
|
8286 |
|
|
as_unset=false
|
8287 |
|
|
fi
|
8288 |
|
|
|
8289 |
|
|
|
8290 |
|
|
# Work around bugs in pre-3.0 UWIN ksh.
|
8291 |
|
|
$as_unset ENV MAIL MAILPATH
|
8292 |
|
|
PS1='$ '
|
8293 |
|
|
PS2='> '
|
8294 |
|
|
PS4='+ '
|
8295 |
|
|
|
8296 |
|
|
# NLS nuisances.
|
8297 |
|
|
for as_var in \
|
8298 |
|
|
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
8299 |
|
|
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
8300 |
|
|
LC_TELEPHONE LC_TIME
|
8301 |
|
|
do
|
8302 |
|
|
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
8303 |
|
|
eval $as_var=C; export $as_var
|
8304 |
|
|
else
|
8305 |
|
|
$as_unset $as_var
|
8306 |
|
|
fi
|
8307 |
|
|
done
|
8308 |
|
|
|
8309 |
|
|
# Required to use basename.
|
8310 |
|
|
if expr a : '\(a\)' >/dev/null 2>&1; then
|
8311 |
|
|
as_expr=expr
|
8312 |
|
|
else
|
8313 |
|
|
as_expr=false
|
8314 |
|
|
fi
|
8315 |
|
|
|
8316 |
|
|
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
8317 |
|
|
as_basename=basename
|
8318 |
|
|
else
|
8319 |
|
|
as_basename=false
|
8320 |
|
|
fi
|
8321 |
|
|
|
8322 |
|
|
|
8323 |
|
|
# Name of the executable.
|
8324 |
|
|
as_me=`$as_basename "$0" ||
|
8325 |
|
|
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
8326 |
|
|
X"$0" : 'X\(//\)$' \| \
|
8327 |
|
|
X"$0" : 'X\(/\)$' \| \
|
8328 |
|
|
. : '\(.\)' 2>/dev/null ||
|
8329 |
|
|
echo X/"$0" |
|
8330 |
|
|
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
8331 |
|
|
/^X\/\(\/\/\)$/{ s//\1/; q; }
|
8332 |
|
|
/^X\/\(\/\).*/{ s//\1/; q; }
|
8333 |
|
|
s/.*/./; q'`
|
8334 |
|
|
|
8335 |
|
|
|
8336 |
|
|
# PATH needs CR, and LINENO needs CR and PATH.
|
8337 |
|
|
# Avoid depending upon Character Ranges.
|
8338 |
|
|
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
8339 |
|
|
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
8340 |
|
|
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
8341 |
|
|
as_cr_digits='0123456789'
|
8342 |
|
|
as_cr_alnum=$as_cr_Letters$as_cr_digits
|
8343 |
|
|
|
8344 |
|
|
# The user is always right.
|
8345 |
|
|
if test "${PATH_SEPARATOR+set}" != set; then
|
8346 |
|
|
echo "#! /bin/sh" >conf$$.sh
|
8347 |
|
|
echo "exit 0" >>conf$$.sh
|
8348 |
|
|
chmod +x conf$$.sh
|
8349 |
|
|
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
8350 |
|
|
PATH_SEPARATOR=';'
|
8351 |
|
|
else
|
8352 |
|
|
PATH_SEPARATOR=:
|
8353 |
|
|
fi
|
8354 |
|
|
rm -f conf$$.sh
|
8355 |
|
|
fi
|
8356 |
|
|
|
8357 |
|
|
|
8358 |
|
|
as_lineno_1=$LINENO
|
8359 |
|
|
as_lineno_2=$LINENO
|
8360 |
|
|
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
8361 |
|
|
test "x$as_lineno_1" != "x$as_lineno_2" &&
|
8362 |
|
|
test "x$as_lineno_3" = "x$as_lineno_2" || {
|
8363 |
|
|
# Find who we are. Look in the path if we contain no path at all
|
8364 |
|
|
# relative or not.
|
8365 |
|
|
case $0 in
|
8366 |
|
|
*[\\/]* ) as_myself=$0 ;;
|
8367 |
|
|
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
8368 |
|
|
for as_dir in $PATH
|
8369 |
|
|
do
|
8370 |
|
|
IFS=$as_save_IFS
|
8371 |
|
|
test -z "$as_dir" && as_dir=.
|
8372 |
|
|
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
8373 |
|
|
done
|
8374 |
|
|
|
8375 |
|
|
;;
|
8376 |
|
|
esac
|
8377 |
|
|
# We did not find ourselves, most probably we were run as `sh COMMAND'
|
8378 |
|
|
# in which case we are not to be found in the path.
|
8379 |
|
|
if test "x$as_myself" = x; then
|
8380 |
|
|
as_myself=$0
|
8381 |
|
|
fi
|
8382 |
|
|
if test ! -f "$as_myself"; then
|
8383 |
|
|
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
8384 |
|
|
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
8385 |
|
|
{ (exit 1); exit 1; }; }
|
8386 |
|
|
fi
|
8387 |
|
|
case $CONFIG_SHELL in
|
8388 |
|
|
'')
|
8389 |
|
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
8390 |
|
|
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
8391 |
|
|
do
|
8392 |
|
|
IFS=$as_save_IFS
|
8393 |
|
|
test -z "$as_dir" && as_dir=.
|
8394 |
|
|
for as_base in sh bash ksh sh5; do
|
8395 |
|
|
case $as_dir in
|
8396 |
|
|
/*)
|
8397 |
|
|
if ("$as_dir/$as_base" -c '
|
8398 |
|
|
as_lineno_1=$LINENO
|
8399 |
|
|
as_lineno_2=$LINENO
|
8400 |
|
|
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
8401 |
|
|
test "x$as_lineno_1" != "x$as_lineno_2" &&
|
8402 |
|
|
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
8403 |
|
|
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
8404 |
|
|
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
8405 |
|
|
CONFIG_SHELL=$as_dir/$as_base
|
8406 |
|
|
export CONFIG_SHELL
|
8407 |
|
|
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
8408 |
|
|
fi;;
|
8409 |
|
|
esac
|
8410 |
|
|
done
|
8411 |
|
|
done
|
8412 |
|
|
;;
|
8413 |
|
|
esac
|
8414 |
|
|
|
8415 |
|
|
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
8416 |
|
|
# uniformly replaced by the line number. The first 'sed' inserts a
|
8417 |
|
|
# line-number line before each line; the second 'sed' does the real
|
8418 |
|
|
# work. The second script uses 'N' to pair each line-number line
|
8419 |
|
|
# with the numbered line, and appends trailing '-' during
|
8420 |
|
|
# substitution so that $LINENO is not a special case at line end.
|
8421 |
|
|
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
8422 |
|
|
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
8423 |
|
|
sed '=' <$as_myself |
|
8424 |
|
|
sed '
|
8425 |
|
|
N
|
8426 |
|
|
s,$,-,
|
8427 |
|
|
: loop
|
8428 |
|
|
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
8429 |
|
|
t loop
|
8430 |
|
|
s,-$,,
|
8431 |
|
|
s,^['$as_cr_digits']*\n,,
|
8432 |
|
|
' >$as_me.lineno &&
|
8433 |
|
|
chmod +x $as_me.lineno ||
|
8434 |
|
|
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
8435 |
|
|
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
8436 |
|
|
{ (exit 1); exit 1; }; }
|
8437 |
|
|
|
8438 |
|
|
# Don't try to exec as it changes $[0], causing all sort of problems
|
8439 |
|
|
# (the dirname of $[0] is not the place where we might find the
|
8440 |
|
|
# original and so on. Autoconf is especially sensible to this).
|
8441 |
|
|
. ./$as_me.lineno
|
8442 |
|
|
# Exit status is that of the last command.
|
8443 |
|
|
exit
|
8444 |
|
|
}
|
8445 |
|
|
|
8446 |
|
|
|
8447 |
|
|
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
8448 |
|
|
*c*,-n*) ECHO_N= ECHO_C='
|
8449 |
|
|
' ECHO_T=' ' ;;
|
8450 |
|
|
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
8451 |
|
|
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
8452 |
|
|
esac
|
8453 |
|
|
|
8454 |
|
|
if expr a : '\(a\)' >/dev/null 2>&1; then
|
8455 |
|
|
as_expr=expr
|
8456 |
|
|
else
|
8457 |
|
|
as_expr=false
|
8458 |
|
|
fi
|
8459 |
|
|
|
8460 |
|
|
rm -f conf$$ conf$$.exe conf$$.file
|
8461 |
|
|
echo >conf$$.file
|
8462 |
|
|
if ln -s conf$$.file conf$$ 2>/dev/null; then
|
8463 |
|
|
# We could just check for DJGPP; but this test a) works b) is more generic
|
8464 |
|
|
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
8465 |
|
|
if test -f conf$$.exe; then
|
8466 |
|
|
# Don't use ln at all; we don't have any links
|
8467 |
|
|
as_ln_s='cp -p'
|
8468 |
|
|
else
|
8469 |
|
|
as_ln_s='ln -s'
|
8470 |
|
|
fi
|
8471 |
|
|
elif ln conf$$.file conf$$ 2>/dev/null; then
|
8472 |
|
|
as_ln_s=ln
|
8473 |
|
|
else
|
8474 |
|
|
as_ln_s='cp -p'
|
8475 |
|
|
fi
|
8476 |
|
|
rm -f conf$$ conf$$.exe conf$$.file
|
8477 |
|
|
|
8478 |
|
|
if mkdir -p . 2>/dev/null; then
|
8479 |
|
|
as_mkdir_p=:
|
8480 |
|
|
else
|
8481 |
|
|
test -d ./-p && rmdir ./-p
|
8482 |
|
|
as_mkdir_p=false
|
8483 |
|
|
fi
|
8484 |
|
|
|
8485 |
|
|
as_executable_p="test -f"
|
8486 |
|
|
|
8487 |
|
|
# Sed expression to map a string onto a valid CPP name.
|
8488 |
|
|
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
8489 |
|
|
|
8490 |
|
|
# Sed expression to map a string onto a valid variable name.
|
8491 |
|
|
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
8492 |
|
|
|
8493 |
|
|
|
8494 |
|
|
# IFS
|
8495 |
|
|
# We need space, tab and new line, in precisely that order.
|
8496 |
|
|
as_nl='
|
8497 |
|
|
'
|
8498 |
|
|
IFS=" $as_nl"
|
8499 |
|
|
|
8500 |
|
|
# CDPATH.
|
8501 |
|
|
$as_unset CDPATH
|
8502 |
|
|
|
8503 |
|
|
exec 6>&1
|
8504 |
|
|
|
8505 |
|
|
# Open the log real soon, to keep \$[0] and so on meaningful, and to
|
8506 |
|
|
# report actual input values of CONFIG_FILES etc. instead of their
|
8507 |
|
|
# values after options handling. Logging --version etc. is OK.
|
8508 |
|
|
exec 5>>config.log
|
8509 |
|
|
{
|
8510 |
|
|
echo
|
8511 |
|
|
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
8512 |
|
|
## Running $as_me. ##
|
8513 |
|
|
_ASBOX
|
8514 |
|
|
} >&5
|
8515 |
|
|
cat >&5 <<_CSEOF
|
8516 |
|
|
|
8517 |
|
|
This file was extended by readline $as_me 5.1-release, which was
|
8518 |
|
|
generated by GNU Autoconf 2.59. Invocation command line was
|
8519 |
|
|
|
8520 |
|
|
CONFIG_FILES = $CONFIG_FILES
|
8521 |
|
|
CONFIG_HEADERS = $CONFIG_HEADERS
|
8522 |
|
|
CONFIG_LINKS = $CONFIG_LINKS
|
8523 |
|
|
CONFIG_COMMANDS = $CONFIG_COMMANDS
|
8524 |
|
|
$ $0 $@
|
8525 |
|
|
|
8526 |
|
|
_CSEOF
|
8527 |
|
|
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
8528 |
|
|
echo >&5
|
8529 |
|
|
_ACEOF
|
8530 |
|
|
|
8531 |
|
|
# Files that config.status was made for.
|
8532 |
|
|
if test -n "$ac_config_files"; then
|
8533 |
|
|
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
8534 |
|
|
fi
|
8535 |
|
|
|
8536 |
|
|
if test -n "$ac_config_headers"; then
|
8537 |
|
|
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
8538 |
|
|
fi
|
8539 |
|
|
|
8540 |
|
|
if test -n "$ac_config_links"; then
|
8541 |
|
|
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
8542 |
|
|
fi
|
8543 |
|
|
|
8544 |
|
|
if test -n "$ac_config_commands"; then
|
8545 |
|
|
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
8546 |
|
|
fi
|
8547 |
|
|
|
8548 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
8549 |
|
|
|
8550 |
|
|
ac_cs_usage="\
|
8551 |
|
|
\`$as_me' instantiates files from templates according to the
|
8552 |
|
|
current configuration.
|
8553 |
|
|
|
8554 |
|
|
Usage: $0 [OPTIONS] [FILE]...
|
8555 |
|
|
|
8556 |
|
|
-h, --help print this help, then exit
|
8557 |
|
|
-V, --version print version number, then exit
|
8558 |
|
|
-q, --quiet do not print progress messages
|
8559 |
|
|
-d, --debug don't remove temporary files
|
8560 |
|
|
--recheck update $as_me by reconfiguring in the same conditions
|
8561 |
|
|
--file=FILE[:TEMPLATE]
|
8562 |
|
|
instantiate the configuration file FILE
|
8563 |
|
|
--header=FILE[:TEMPLATE]
|
8564 |
|
|
instantiate the configuration header FILE
|
8565 |
|
|
|
8566 |
|
|
Configuration files:
|
8567 |
|
|
$config_files
|
8568 |
|
|
|
8569 |
|
|
Configuration headers:
|
8570 |
|
|
$config_headers
|
8571 |
|
|
|
8572 |
|
|
Configuration commands:
|
8573 |
|
|
$config_commands
|
8574 |
|
|
|
8575 |
|
|
Report bugs to ."
|
8576 |
|
|
_ACEOF
|
8577 |
|
|
|
8578 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
8579 |
|
|
ac_cs_version="\\
|
8580 |
|
|
readline config.status 5.1-release
|
8581 |
|
|
configured by $0, generated by GNU Autoconf 2.59,
|
8582 |
|
|
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
8583 |
|
|
|
8584 |
|
|
Copyright (C) 2003 Free Software Foundation, Inc.
|
8585 |
|
|
This config.status script is free software; the Free Software Foundation
|
8586 |
|
|
gives unlimited permission to copy, distribute and modify it."
|
8587 |
|
|
srcdir=$srcdir
|
8588 |
|
|
INSTALL="$INSTALL"
|
8589 |
|
|
_ACEOF
|
8590 |
|
|
|
8591 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
8592 |
|
|
# If no file are specified by the user, then we need to provide default
|
8593 |
|
|
# value. By we need to know if files were specified by the user.
|
8594 |
|
|
ac_need_defaults=:
|
8595 |
|
|
while test $# != 0
|
8596 |
|
|
do
|
8597 |
|
|
case $1 in
|
8598 |
|
|
--*=*)
|
8599 |
|
|
ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
8600 |
|
|
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
8601 |
|
|
ac_shift=:
|
8602 |
|
|
;;
|
8603 |
|
|
-*)
|
8604 |
|
|
ac_option=$1
|
8605 |
|
|
ac_optarg=$2
|
8606 |
|
|
ac_shift=shift
|
8607 |
|
|
;;
|
8608 |
|
|
*) # This is not an option, so the user has probably given explicit
|
8609 |
|
|
# arguments.
|
8610 |
|
|
ac_option=$1
|
8611 |
|
|
ac_need_defaults=false;;
|
8612 |
|
|
esac
|
8613 |
|
|
|
8614 |
|
|
case $ac_option in
|
8615 |
|
|
# Handling of the options.
|
8616 |
|
|
_ACEOF
|
8617 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
8618 |
|
|
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
8619 |
|
|
ac_cs_recheck=: ;;
|
8620 |
|
|
--version | --vers* | -V )
|
8621 |
|
|
echo "$ac_cs_version"; exit 0 ;;
|
8622 |
|
|
--he | --h)
|
8623 |
|
|
# Conflict between --help and --header
|
8624 |
|
|
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
|
8625 |
|
|
Try \`$0 --help' for more information." >&5
|
8626 |
|
|
echo "$as_me: error: ambiguous option: $1
|
8627 |
|
|
Try \`$0 --help' for more information." >&2;}
|
8628 |
|
|
{ (exit 1); exit 1; }; };;
|
8629 |
|
|
--help | --hel | -h )
|
8630 |
|
|
echo "$ac_cs_usage"; exit 0 ;;
|
8631 |
|
|
--debug | --d* | -d )
|
8632 |
|
|
debug=: ;;
|
8633 |
|
|
--file | --fil | --fi | --f )
|
8634 |
|
|
$ac_shift
|
8635 |
|
|
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
8636 |
|
|
ac_need_defaults=false;;
|
8637 |
|
|
--header | --heade | --head | --hea )
|
8638 |
|
|
$ac_shift
|
8639 |
|
|
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
8640 |
|
|
ac_need_defaults=false;;
|
8641 |
|
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
8642 |
|
|
| -silent | --silent | --silen | --sile | --sil | --si | --s)
|
8643 |
|
|
ac_cs_silent=: ;;
|
8644 |
|
|
|
8645 |
|
|
# This is an error.
|
8646 |
|
|
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
8647 |
|
|
Try \`$0 --help' for more information." >&5
|
8648 |
|
|
echo "$as_me: error: unrecognized option: $1
|
8649 |
|
|
Try \`$0 --help' for more information." >&2;}
|
8650 |
|
|
{ (exit 1); exit 1; }; } ;;
|
8651 |
|
|
|
8652 |
|
|
*) ac_config_targets="$ac_config_targets $1" ;;
|
8653 |
|
|
|
8654 |
|
|
esac
|
8655 |
|
|
shift
|
8656 |
|
|
done
|
8657 |
|
|
|
8658 |
|
|
ac_configure_extra_args=
|
8659 |
|
|
|
8660 |
|
|
if $ac_cs_silent; then
|
8661 |
|
|
exec 6>/dev/null
|
8662 |
|
|
ac_configure_extra_args="$ac_configure_extra_args --silent"
|
8663 |
|
|
fi
|
8664 |
|
|
|
8665 |
|
|
_ACEOF
|
8666 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
8667 |
|
|
if \$ac_cs_recheck; then
|
8668 |
|
|
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
8669 |
|
|
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
8670 |
|
|
fi
|
8671 |
|
|
|
8672 |
|
|
_ACEOF
|
8673 |
|
|
|
8674 |
|
|
|
8675 |
|
|
|
8676 |
|
|
|
8677 |
|
|
|
8678 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
8679 |
|
|
for ac_config_target in $ac_config_targets
|
8680 |
|
|
do
|
8681 |
|
|
case "$ac_config_target" in
|
8682 |
|
|
# Handling of arguments.
|
8683 |
|
|
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
8684 |
|
|
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
|
8685 |
|
|
"examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
|
8686 |
|
|
"shlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES shlib/Makefile" ;;
|
8687 |
|
|
"default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
|
8688 |
|
|
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
8689 |
|
|
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
8690 |
|
|
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
8691 |
|
|
{ (exit 1); exit 1; }; };;
|
8692 |
|
|
esac
|
8693 |
|
|
done
|
8694 |
|
|
|
8695 |
|
|
# If the user did not use the arguments to specify the items to instantiate,
|
8696 |
|
|
# then the envvar interface is used. Set only those that are not.
|
8697 |
|
|
# We use the long form for the default assignment because of an extremely
|
8698 |
|
|
# bizarre bug on SunOS 4.1.3.
|
8699 |
|
|
if $ac_need_defaults; then
|
8700 |
|
|
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
8701 |
|
|
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
8702 |
|
|
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
8703 |
|
|
fi
|
8704 |
|
|
|
8705 |
|
|
# Have a temporary directory for convenience. Make it in the build tree
|
8706 |
|
|
# simply because there is no reason to put it here, and in addition,
|
8707 |
|
|
# creating and moving files from /tmp can sometimes cause problems.
|
8708 |
|
|
# Create a temporary directory, and hook for its removal unless debugging.
|
8709 |
|
|
$debug ||
|
8710 |
|
|
{
|
8711 |
|
|
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
8712 |
|
|
trap '{ (exit 1); exit 1; }' 1 2 13 15
|
8713 |
|
|
}
|
8714 |
|
|
|
8715 |
|
|
# Create a (secure) tmp directory for tmp files.
|
8716 |
|
|
|
8717 |
|
|
{
|
8718 |
|
|
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
8719 |
|
|
test -n "$tmp" && test -d "$tmp"
|
8720 |
|
|
} ||
|
8721 |
|
|
{
|
8722 |
|
|
tmp=./confstat$$-$RANDOM
|
8723 |
|
|
(umask 077 && mkdir $tmp)
|
8724 |
|
|
} ||
|
8725 |
|
|
{
|
8726 |
|
|
echo "$me: cannot create a temporary directory in ." >&2
|
8727 |
|
|
{ (exit 1); exit 1; }
|
8728 |
|
|
}
|
8729 |
|
|
|
8730 |
|
|
_ACEOF
|
8731 |
|
|
|
8732 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
8733 |
|
|
|
8734 |
|
|
#
|
8735 |
|
|
# CONFIG_FILES section.
|
8736 |
|
|
#
|
8737 |
|
|
|
8738 |
|
|
# No need to generate the scripts if there are no CONFIG_FILES.
|
8739 |
|
|
# This happens for instance when ./config.status config.h
|
8740 |
|
|
if test -n "\$CONFIG_FILES"; then
|
8741 |
|
|
# Protect against being on the right side of a sed subst in config.status.
|
8742 |
|
|
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
8743 |
|
|
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
8744 |
|
|
s,@SHELL@,$SHELL,;t t
|
8745 |
|
|
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
8746 |
|
|
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
8747 |
|
|
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
8748 |
|
|
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
8749 |
|
|
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
8750 |
|
|
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
8751 |
|
|
s,@exec_prefix@,$exec_prefix,;t t
|
8752 |
|
|
s,@prefix@,$prefix,;t t
|
8753 |
|
|
s,@program_transform_name@,$program_transform_name,;t t
|
8754 |
|
|
s,@bindir@,$bindir,;t t
|
8755 |
|
|
s,@sbindir@,$sbindir,;t t
|
8756 |
|
|
s,@libexecdir@,$libexecdir,;t t
|
8757 |
|
|
s,@datadir@,$datadir,;t t
|
8758 |
|
|
s,@sysconfdir@,$sysconfdir,;t t
|
8759 |
|
|
s,@sharedstatedir@,$sharedstatedir,;t t
|
8760 |
|
|
s,@localstatedir@,$localstatedir,;t t
|
8761 |
|
|
s,@libdir@,$libdir,;t t
|
8762 |
|
|
s,@includedir@,$includedir,;t t
|
8763 |
|
|
s,@oldincludedir@,$oldincludedir,;t t
|
8764 |
|
|
s,@infodir@,$infodir,;t t
|
8765 |
|
|
s,@mandir@,$mandir,;t t
|
8766 |
|
|
s,@build_alias@,$build_alias,;t t
|
8767 |
|
|
s,@host_alias@,$host_alias,;t t
|
8768 |
|
|
s,@target_alias@,$target_alias,;t t
|
8769 |
|
|
s,@DEFS@,$DEFS,;t t
|
8770 |
|
|
s,@ECHO_C@,$ECHO_C,;t t
|
8771 |
|
|
s,@ECHO_N@,$ECHO_N,;t t
|
8772 |
|
|
s,@ECHO_T@,$ECHO_T,;t t
|
8773 |
|
|
s,@LIBS@,$LIBS,;t t
|
8774 |
|
|
s,@build@,$build,;t t
|
8775 |
|
|
s,@build_cpu@,$build_cpu,;t t
|
8776 |
|
|
s,@build_vendor@,$build_vendor,;t t
|
8777 |
|
|
s,@build_os@,$build_os,;t t
|
8778 |
|
|
s,@host@,$host,;t t
|
8779 |
|
|
s,@host_cpu@,$host_cpu,;t t
|
8780 |
|
|
s,@host_vendor@,$host_vendor,;t t
|
8781 |
|
|
s,@host_os@,$host_os,;t t
|
8782 |
|
|
s,@CROSS_COMPILE@,$CROSS_COMPILE,;t t
|
8783 |
|
|
s,@SET_MAKE@,$SET_MAKE,;t t
|
8784 |
|
|
s,@CC@,$CC,;t t
|
8785 |
|
|
s,@CFLAGS@,$CFLAGS,;t t
|
8786 |
|
|
s,@LDFLAGS@,$LDFLAGS,;t t
|
8787 |
|
|
s,@CPPFLAGS@,$CPPFLAGS,;t t
|
8788 |
|
|
s,@ac_ct_CC@,$ac_ct_CC,;t t
|
8789 |
|
|
s,@EXEEXT@,$EXEEXT,;t t
|
8790 |
|
|
s,@OBJEXT@,$OBJEXT,;t t
|
8791 |
|
|
s,@CPP@,$CPP,;t t
|
8792 |
|
|
s,@EGREP@,$EGREP,;t t
|
8793 |
|
|
s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
|
8794 |
|
|
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
8795 |
|
|
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
8796 |
|
|
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
8797 |
|
|
s,@AR@,$AR,;t t
|
8798 |
|
|
s,@RANLIB@,$RANLIB,;t t
|
8799 |
|
|
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
8800 |
|
|
s,@MAKE_SHELL@,$MAKE_SHELL,;t t
|
8801 |
|
|
s,@WCWIDTH_OBJ@,$WCWIDTH_OBJ,;t t
|
8802 |
|
|
s,@SHOBJ_CC@,$SHOBJ_CC,;t t
|
8803 |
|
|
s,@SHOBJ_CFLAGS@,$SHOBJ_CFLAGS,;t t
|
8804 |
|
|
s,@SHOBJ_LD@,$SHOBJ_LD,;t t
|
8805 |
|
|
s,@SHOBJ_LDFLAGS@,$SHOBJ_LDFLAGS,;t t
|
8806 |
|
|
s,@SHOBJ_XLDFLAGS@,$SHOBJ_XLDFLAGS,;t t
|
8807 |
|
|
s,@SHOBJ_LIBS@,$SHOBJ_LIBS,;t t
|
8808 |
|
|
s,@SHOBJ_STATUS@,$SHOBJ_STATUS,;t t
|
8809 |
|
|
s,@SHLIB_STATUS@,$SHLIB_STATUS,;t t
|
8810 |
|
|
s,@SHLIB_XLDFLAGS@,$SHLIB_XLDFLAGS,;t t
|
8811 |
|
|
s,@SHLIB_DOT@,$SHLIB_DOT,;t t
|
8812 |
|
|
s,@SHLIB_LIBPREF@,$SHLIB_LIBPREF,;t t
|
8813 |
|
|
s,@SHLIB_LIBSUFF@,$SHLIB_LIBSUFF,;t t
|
8814 |
|
|
s,@SHLIB_LIBVERSION@,$SHLIB_LIBVERSION,;t t
|
8815 |
|
|
s,@SHLIB_DLLVERSION@,$SHLIB_DLLVERSION,;t t
|
8816 |
|
|
s,@SHLIB_LIBS@,$SHLIB_LIBS,;t t
|
8817 |
|
|
s,@SHLIB_MAJOR@,$SHLIB_MAJOR,;t t
|
8818 |
|
|
s,@SHLIB_MINOR@,$SHLIB_MINOR,;t t
|
8819 |
|
|
s,@STATIC_TARGET@,$STATIC_TARGET,;t t
|
8820 |
|
|
s,@SHARED_TARGET@,$SHARED_TARGET,;t t
|
8821 |
|
|
s,@STATIC_INSTALL_TARGET@,$STATIC_INSTALL_TARGET,;t t
|
8822 |
|
|
s,@SHARED_INSTALL_TARGET@,$SHARED_INSTALL_TARGET,;t t
|
8823 |
|
|
s,@PURIFY@,$PURIFY,;t t
|
8824 |
|
|
s,@BUILD_DIR@,$BUILD_DIR,;t t
|
8825 |
|
|
s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
|
8826 |
|
|
s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
|
8827 |
|
|
s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
|
8828 |
|
|
s,@ARFLAGS@,$ARFLAGS,;t t
|
8829 |
|
|
s,@LIBVERSION@,$LIBVERSION,;t t
|
8830 |
|
|
s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
|
8831 |
|
|
s,@LIBOBJS@,$LIBOBJS,;t t
|
8832 |
|
|
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
8833 |
|
|
CEOF
|
8834 |
|
|
|
8835 |
|
|
_ACEOF
|
8836 |
|
|
|
8837 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
8838 |
|
|
# Split the substitutions into bite-sized pieces for seds with
|
8839 |
|
|
# small command number limits, like on Digital OSF/1 and HP-UX.
|
8840 |
|
|
ac_max_sed_lines=48
|
8841 |
|
|
ac_sed_frag=1 # Number of current file.
|
8842 |
|
|
ac_beg=1 # First line for current file.
|
8843 |
|
|
ac_end=$ac_max_sed_lines # Line after last line for current file.
|
8844 |
|
|
ac_more_lines=:
|
8845 |
|
|
ac_sed_cmds=
|
8846 |
|
|
while $ac_more_lines; do
|
8847 |
|
|
if test $ac_beg -gt 1; then
|
8848 |
|
|
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
8849 |
|
|
else
|
8850 |
|
|
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
8851 |
|
|
fi
|
8852 |
|
|
if test ! -s $tmp/subs.frag; then
|
8853 |
|
|
ac_more_lines=false
|
8854 |
|
|
else
|
8855 |
|
|
# The purpose of the label and of the branching condition is to
|
8856 |
|
|
# speed up the sed processing (if there are no `@' at all, there
|
8857 |
|
|
# is no need to browse any of the substitutions).
|
8858 |
|
|
# These are the two extra sed commands mentioned above.
|
8859 |
|
|
(echo ':t
|
8860 |
|
|
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
8861 |
|
|
if test -z "$ac_sed_cmds"; then
|
8862 |
|
|
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
8863 |
|
|
else
|
8864 |
|
|
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
8865 |
|
|
fi
|
8866 |
|
|
ac_sed_frag=`expr $ac_sed_frag + 1`
|
8867 |
|
|
ac_beg=$ac_end
|
8868 |
|
|
ac_end=`expr $ac_end + $ac_max_sed_lines`
|
8869 |
|
|
fi
|
8870 |
|
|
done
|
8871 |
|
|
if test -z "$ac_sed_cmds"; then
|
8872 |
|
|
ac_sed_cmds=cat
|
8873 |
|
|
fi
|
8874 |
|
|
fi # test -n "$CONFIG_FILES"
|
8875 |
|
|
|
8876 |
|
|
_ACEOF
|
8877 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
8878 |
|
|
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
8879 |
|
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
8880 |
|
|
case $ac_file in
|
8881 |
|
|
- | *:- | *:-:* ) # input from stdin
|
8882 |
|
|
cat >$tmp/stdin
|
8883 |
|
|
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
8884 |
|
|
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
8885 |
|
|
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
8886 |
|
|
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
8887 |
|
|
* ) ac_file_in=$ac_file.in ;;
|
8888 |
|
|
esac
|
8889 |
|
|
|
8890 |
|
|
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
8891 |
|
|
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
8892 |
|
|
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
8893 |
|
|
X"$ac_file" : 'X\(//\)[^/]' \| \
|
8894 |
|
|
X"$ac_file" : 'X\(//\)$' \| \
|
8895 |
|
|
X"$ac_file" : 'X\(/\)' \| \
|
8896 |
|
|
. : '\(.\)' 2>/dev/null ||
|
8897 |
|
|
echo X"$ac_file" |
|
8898 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
8899 |
|
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
8900 |
|
|
/^X\(\/\/\)$/{ s//\1/; q; }
|
8901 |
|
|
/^X\(\/\).*/{ s//\1/; q; }
|
8902 |
|
|
s/.*/./; q'`
|
8903 |
|
|
{ if $as_mkdir_p; then
|
8904 |
|
|
mkdir -p "$ac_dir"
|
8905 |
|
|
else
|
8906 |
|
|
as_dir="$ac_dir"
|
8907 |
|
|
as_dirs=
|
8908 |
|
|
while test ! -d "$as_dir"; do
|
8909 |
|
|
as_dirs="$as_dir $as_dirs"
|
8910 |
|
|
as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
8911 |
|
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
8912 |
|
|
X"$as_dir" : 'X\(//\)[^/]' \| \
|
8913 |
|
|
X"$as_dir" : 'X\(//\)$' \| \
|
8914 |
|
|
X"$as_dir" : 'X\(/\)' \| \
|
8915 |
|
|
. : '\(.\)' 2>/dev/null ||
|
8916 |
|
|
echo X"$as_dir" |
|
8917 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
8918 |
|
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
8919 |
|
|
/^X\(\/\/\)$/{ s//\1/; q; }
|
8920 |
|
|
/^X\(\/\).*/{ s//\1/; q; }
|
8921 |
|
|
s/.*/./; q'`
|
8922 |
|
|
done
|
8923 |
|
|
test ! -n "$as_dirs" || mkdir $as_dirs
|
8924 |
|
|
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
8925 |
|
|
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
8926 |
|
|
{ (exit 1); exit 1; }; }; }
|
8927 |
|
|
|
8928 |
|
|
ac_builddir=.
|
8929 |
|
|
|
8930 |
|
|
if test "$ac_dir" != .; then
|
8931 |
|
|
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
8932 |
|
|
# A "../" for each directory in $ac_dir_suffix.
|
8933 |
|
|
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
8934 |
|
|
else
|
8935 |
|
|
ac_dir_suffix= ac_top_builddir=
|
8936 |
|
|
fi
|
8937 |
|
|
|
8938 |
|
|
case $srcdir in
|
8939 |
|
|
.) # No --srcdir option. We are building in place.
|
8940 |
|
|
ac_srcdir=.
|
8941 |
|
|
if test -z "$ac_top_builddir"; then
|
8942 |
|
|
ac_top_srcdir=.
|
8943 |
|
|
else
|
8944 |
|
|
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
8945 |
|
|
fi ;;
|
8946 |
|
|
[\\/]* | ?:[\\/]* ) # Absolute path.
|
8947 |
|
|
ac_srcdir=$srcdir$ac_dir_suffix;
|
8948 |
|
|
ac_top_srcdir=$srcdir ;;
|
8949 |
|
|
*) # Relative path.
|
8950 |
|
|
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
8951 |
|
|
ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
8952 |
|
|
esac
|
8953 |
|
|
|
8954 |
|
|
# Do not use `cd foo && pwd` to compute absolute paths, because
|
8955 |
|
|
# the directories may not exist.
|
8956 |
|
|
case `pwd` in
|
8957 |
|
|
.) ac_abs_builddir="$ac_dir";;
|
8958 |
|
|
*)
|
8959 |
|
|
case "$ac_dir" in
|
8960 |
|
|
.) ac_abs_builddir=`pwd`;;
|
8961 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
8962 |
|
|
*) ac_abs_builddir=`pwd`/"$ac_dir";;
|
8963 |
|
|
esac;;
|
8964 |
|
|
esac
|
8965 |
|
|
case $ac_abs_builddir in
|
8966 |
|
|
.) ac_abs_top_builddir=${ac_top_builddir}.;;
|
8967 |
|
|
*)
|
8968 |
|
|
case ${ac_top_builddir}. in
|
8969 |
|
|
.) ac_abs_top_builddir=$ac_abs_builddir;;
|
8970 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
8971 |
|
|
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
8972 |
|
|
esac;;
|
8973 |
|
|
esac
|
8974 |
|
|
case $ac_abs_builddir in
|
8975 |
|
|
.) ac_abs_srcdir=$ac_srcdir;;
|
8976 |
|
|
*)
|
8977 |
|
|
case $ac_srcdir in
|
8978 |
|
|
.) ac_abs_srcdir=$ac_abs_builddir;;
|
8979 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
8980 |
|
|
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
8981 |
|
|
esac;;
|
8982 |
|
|
esac
|
8983 |
|
|
case $ac_abs_builddir in
|
8984 |
|
|
.) ac_abs_top_srcdir=$ac_top_srcdir;;
|
8985 |
|
|
*)
|
8986 |
|
|
case $ac_top_srcdir in
|
8987 |
|
|
.) ac_abs_top_srcdir=$ac_abs_builddir;;
|
8988 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
8989 |
|
|
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
8990 |
|
|
esac;;
|
8991 |
|
|
esac
|
8992 |
|
|
|
8993 |
|
|
|
8994 |
|
|
case $INSTALL in
|
8995 |
|
|
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
8996 |
|
|
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
8997 |
|
|
esac
|
8998 |
|
|
|
8999 |
|
|
if test x"$ac_file" != x-; then
|
9000 |
|
|
{ echo "$as_me:$LINENO: creating $ac_file" >&5
|
9001 |
|
|
echo "$as_me: creating $ac_file" >&6;}
|
9002 |
|
|
rm -f "$ac_file"
|
9003 |
|
|
fi
|
9004 |
|
|
# Let's still pretend it is `configure' which instantiates (i.e., don't
|
9005 |
|
|
# use $as_me), people would be surprised to read:
|
9006 |
|
|
# /* config.h. Generated by config.status. */
|
9007 |
|
|
if test x"$ac_file" = x-; then
|
9008 |
|
|
configure_input=
|
9009 |
|
|
else
|
9010 |
|
|
configure_input="$ac_file. "
|
9011 |
|
|
fi
|
9012 |
|
|
configure_input=$configure_input"Generated from `echo $ac_file_in |
|
9013 |
|
|
sed 's,.*/,,'` by configure."
|
9014 |
|
|
|
9015 |
|
|
# First look for the input files in the build tree, otherwise in the
|
9016 |
|
|
# src tree.
|
9017 |
|
|
ac_file_inputs=`IFS=:
|
9018 |
|
|
for f in $ac_file_in; do
|
9019 |
|
|
case $f in
|
9020 |
|
|
-) echo $tmp/stdin ;;
|
9021 |
|
|
[\\/$]*)
|
9022 |
|
|
# Absolute (can't be DOS-style, as IFS=:)
|
9023 |
|
|
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
9024 |
|
|
echo "$as_me: error: cannot find input file: $f" >&2;}
|
9025 |
|
|
{ (exit 1); exit 1; }; }
|
9026 |
|
|
echo "$f";;
|
9027 |
|
|
*) # Relative
|
9028 |
|
|
if test -f "$f"; then
|
9029 |
|
|
# Build tree
|
9030 |
|
|
echo "$f"
|
9031 |
|
|
elif test -f "$srcdir/$f"; then
|
9032 |
|
|
# Source tree
|
9033 |
|
|
echo "$srcdir/$f"
|
9034 |
|
|
else
|
9035 |
|
|
# /dev/null tree
|
9036 |
|
|
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
9037 |
|
|
echo "$as_me: error: cannot find input file: $f" >&2;}
|
9038 |
|
|
{ (exit 1); exit 1; }; }
|
9039 |
|
|
fi;;
|
9040 |
|
|
esac
|
9041 |
|
|
done` || { (exit 1); exit 1; }
|
9042 |
|
|
_ACEOF
|
9043 |
|
|
cat >>$CONFIG_STATUS <<_ACEOF
|
9044 |
|
|
sed "$ac_vpsub
|
9045 |
|
|
$extrasub
|
9046 |
|
|
_ACEOF
|
9047 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
9048 |
|
|
:t
|
9049 |
|
|
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
9050 |
|
|
s,@configure_input@,$configure_input,;t t
|
9051 |
|
|
s,@srcdir@,$ac_srcdir,;t t
|
9052 |
|
|
s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
9053 |
|
|
s,@top_srcdir@,$ac_top_srcdir,;t t
|
9054 |
|
|
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
9055 |
|
|
s,@builddir@,$ac_builddir,;t t
|
9056 |
|
|
s,@abs_builddir@,$ac_abs_builddir,;t t
|
9057 |
|
|
s,@top_builddir@,$ac_top_builddir,;t t
|
9058 |
|
|
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
9059 |
|
|
s,@INSTALL@,$ac_INSTALL,;t t
|
9060 |
|
|
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
9061 |
|
|
rm -f $tmp/stdin
|
9062 |
|
|
if test x"$ac_file" != x-; then
|
9063 |
|
|
mv $tmp/out $ac_file
|
9064 |
|
|
else
|
9065 |
|
|
cat $tmp/out
|
9066 |
|
|
rm -f $tmp/out
|
9067 |
|
|
fi
|
9068 |
|
|
|
9069 |
|
|
done
|
9070 |
|
|
_ACEOF
|
9071 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
9072 |
|
|
|
9073 |
|
|
#
|
9074 |
|
|
# CONFIG_HEADER section.
|
9075 |
|
|
#
|
9076 |
|
|
|
9077 |
|
|
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
9078 |
|
|
# NAME is the cpp macro being defined and VALUE is the value it is being given.
|
9079 |
|
|
#
|
9080 |
|
|
# ac_d sets the value in "#define NAME VALUE" lines.
|
9081 |
|
|
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
9082 |
|
|
ac_dB='[ ].*$,\1#\2'
|
9083 |
|
|
ac_dC=' '
|
9084 |
|
|
ac_dD=',;t'
|
9085 |
|
|
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
9086 |
|
|
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
9087 |
|
|
ac_uB='$,\1#\2define\3'
|
9088 |
|
|
ac_uC=' '
|
9089 |
|
|
ac_uD=',;t'
|
9090 |
|
|
|
9091 |
|
|
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
9092 |
|
|
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
9093 |
|
|
case $ac_file in
|
9094 |
|
|
- | *:- | *:-:* ) # input from stdin
|
9095 |
|
|
cat >$tmp/stdin
|
9096 |
|
|
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
9097 |
|
|
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
9098 |
|
|
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
9099 |
|
|
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
9100 |
|
|
* ) ac_file_in=$ac_file.in ;;
|
9101 |
|
|
esac
|
9102 |
|
|
|
9103 |
|
|
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
9104 |
|
|
echo "$as_me: creating $ac_file" >&6;}
|
9105 |
|
|
|
9106 |
|
|
# First look for the input files in the build tree, otherwise in the
|
9107 |
|
|
# src tree.
|
9108 |
|
|
ac_file_inputs=`IFS=:
|
9109 |
|
|
for f in $ac_file_in; do
|
9110 |
|
|
case $f in
|
9111 |
|
|
-) echo $tmp/stdin ;;
|
9112 |
|
|
[\\/$]*)
|
9113 |
|
|
# Absolute (can't be DOS-style, as IFS=:)
|
9114 |
|
|
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
9115 |
|
|
echo "$as_me: error: cannot find input file: $f" >&2;}
|
9116 |
|
|
{ (exit 1); exit 1; }; }
|
9117 |
|
|
# Do quote $f, to prevent DOS paths from being IFS'd.
|
9118 |
|
|
echo "$f";;
|
9119 |
|
|
*) # Relative
|
9120 |
|
|
if test -f "$f"; then
|
9121 |
|
|
# Build tree
|
9122 |
|
|
echo "$f"
|
9123 |
|
|
elif test -f "$srcdir/$f"; then
|
9124 |
|
|
# Source tree
|
9125 |
|
|
echo "$srcdir/$f"
|
9126 |
|
|
else
|
9127 |
|
|
# /dev/null tree
|
9128 |
|
|
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
9129 |
|
|
echo "$as_me: error: cannot find input file: $f" >&2;}
|
9130 |
|
|
{ (exit 1); exit 1; }; }
|
9131 |
|
|
fi;;
|
9132 |
|
|
esac
|
9133 |
|
|
done` || { (exit 1); exit 1; }
|
9134 |
|
|
# Remove the trailing spaces.
|
9135 |
|
|
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
9136 |
|
|
|
9137 |
|
|
_ACEOF
|
9138 |
|
|
|
9139 |
|
|
# Transform confdefs.h into two sed scripts, `conftest.defines' and
|
9140 |
|
|
# `conftest.undefs', that substitutes the proper values into
|
9141 |
|
|
# config.h.in to produce config.h. The first handles `#define'
|
9142 |
|
|
# templates, and the second `#undef' templates.
|
9143 |
|
|
# And first: Protect against being on the right side of a sed subst in
|
9144 |
|
|
# config.status. Protect against being in an unquoted here document
|
9145 |
|
|
# in config.status.
|
9146 |
|
|
rm -f conftest.defines conftest.undefs
|
9147 |
|
|
# Using a here document instead of a string reduces the quoting nightmare.
|
9148 |
|
|
# Putting comments in sed scripts is not portable.
|
9149 |
|
|
#
|
9150 |
|
|
# `end' is used to avoid that the second main sed command (meant for
|
9151 |
|
|
# 0-ary CPP macros) applies to n-ary macro definitions.
|
9152 |
|
|
# See the Autoconf documentation for `clear'.
|
9153 |
|
|
cat >confdef2sed.sed <<\_ACEOF
|
9154 |
|
|
s/[\\&,]/\\&/g
|
9155 |
|
|
s,[\\$`],\\&,g
|
9156 |
|
|
t clear
|
9157 |
|
|
: clear
|
9158 |
|
|
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
9159 |
|
|
t end
|
9160 |
|
|
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
9161 |
|
|
: end
|
9162 |
|
|
_ACEOF
|
9163 |
|
|
# If some macros were called several times there might be several times
|
9164 |
|
|
# the same #defines, which is useless. Nevertheless, we may not want to
|
9165 |
|
|
# sort them, since we want the *last* AC-DEFINE to be honored.
|
9166 |
|
|
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
9167 |
|
|
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
9168 |
|
|
rm -f confdef2sed.sed
|
9169 |
|
|
|
9170 |
|
|
# This sed command replaces #undef with comments. This is necessary, for
|
9171 |
|
|
# example, in the case of _POSIX_SOURCE, which is predefined and required
|
9172 |
|
|
# on some systems where configure will not decide to define it.
|
9173 |
|
|
cat >>conftest.undefs <<\_ACEOF
|
9174 |
|
|
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
9175 |
|
|
_ACEOF
|
9176 |
|
|
|
9177 |
|
|
# Break up conftest.defines because some shells have a limit on the size
|
9178 |
|
|
# of here documents, and old seds have small limits too (100 cmds).
|
9179 |
|
|
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
9180 |
|
|
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
9181 |
|
|
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
9182 |
|
|
echo ' :' >>$CONFIG_STATUS
|
9183 |
|
|
rm -f conftest.tail
|
9184 |
|
|
while grep . conftest.defines >/dev/null
|
9185 |
|
|
do
|
9186 |
|
|
# Write a limited-size here document to $tmp/defines.sed.
|
9187 |
|
|
echo ' cat >$tmp/defines.sed <>$CONFIG_STATUS
|
9188 |
|
|
# Speed up: don't consider the non `#define' lines.
|
9189 |
|
|
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
9190 |
|
|
# Work around the forget-to-reset-the-flag bug.
|
9191 |
|
|
echo 't clr' >>$CONFIG_STATUS
|
9192 |
|
|
echo ': clr' >>$CONFIG_STATUS
|
9193 |
|
|
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
9194 |
|
|
echo 'CEOF
|
9195 |
|
|
sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
9196 |
|
|
rm -f $tmp/in
|
9197 |
|
|
mv $tmp/out $tmp/in
|
9198 |
|
|
' >>$CONFIG_STATUS
|
9199 |
|
|
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
9200 |
|
|
rm -f conftest.defines
|
9201 |
|
|
mv conftest.tail conftest.defines
|
9202 |
|
|
done
|
9203 |
|
|
rm -f conftest.defines
|
9204 |
|
|
echo ' fi # grep' >>$CONFIG_STATUS
|
9205 |
|
|
echo >>$CONFIG_STATUS
|
9206 |
|
|
|
9207 |
|
|
# Break up conftest.undefs because some shells have a limit on the size
|
9208 |
|
|
# of here documents, and old seds have small limits too (100 cmds).
|
9209 |
|
|
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
9210 |
|
|
rm -f conftest.tail
|
9211 |
|
|
while grep . conftest.undefs >/dev/null
|
9212 |
|
|
do
|
9213 |
|
|
# Write a limited-size here document to $tmp/undefs.sed.
|
9214 |
|
|
echo ' cat >$tmp/undefs.sed <>$CONFIG_STATUS
|
9215 |
|
|
# Speed up: don't consider the non `#undef'
|
9216 |
|
|
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
9217 |
|
|
# Work around the forget-to-reset-the-flag bug.
|
9218 |
|
|
echo 't clr' >>$CONFIG_STATUS
|
9219 |
|
|
echo ': clr' >>$CONFIG_STATUS
|
9220 |
|
|
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
9221 |
|
|
echo 'CEOF
|
9222 |
|
|
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
9223 |
|
|
rm -f $tmp/in
|
9224 |
|
|
mv $tmp/out $tmp/in
|
9225 |
|
|
' >>$CONFIG_STATUS
|
9226 |
|
|
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
9227 |
|
|
rm -f conftest.undefs
|
9228 |
|
|
mv conftest.tail conftest.undefs
|
9229 |
|
|
done
|
9230 |
|
|
rm -f conftest.undefs
|
9231 |
|
|
|
9232 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
9233 |
|
|
# Let's still pretend it is `configure' which instantiates (i.e., don't
|
9234 |
|
|
# use $as_me), people would be surprised to read:
|
9235 |
|
|
# /* config.h. Generated by config.status. */
|
9236 |
|
|
if test x"$ac_file" = x-; then
|
9237 |
|
|
echo "/* Generated by configure. */" >$tmp/config.h
|
9238 |
|
|
else
|
9239 |
|
|
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
9240 |
|
|
fi
|
9241 |
|
|
cat $tmp/in >>$tmp/config.h
|
9242 |
|
|
rm -f $tmp/in
|
9243 |
|
|
if test x"$ac_file" != x-; then
|
9244 |
|
|
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
9245 |
|
|
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
9246 |
|
|
echo "$as_me: $ac_file is unchanged" >&6;}
|
9247 |
|
|
else
|
9248 |
|
|
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
9249 |
|
|
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
9250 |
|
|
X"$ac_file" : 'X\(//\)[^/]' \| \
|
9251 |
|
|
X"$ac_file" : 'X\(//\)$' \| \
|
9252 |
|
|
X"$ac_file" : 'X\(/\)' \| \
|
9253 |
|
|
. : '\(.\)' 2>/dev/null ||
|
9254 |
|
|
echo X"$ac_file" |
|
9255 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
9256 |
|
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
9257 |
|
|
/^X\(\/\/\)$/{ s//\1/; q; }
|
9258 |
|
|
/^X\(\/\).*/{ s//\1/; q; }
|
9259 |
|
|
s/.*/./; q'`
|
9260 |
|
|
{ if $as_mkdir_p; then
|
9261 |
|
|
mkdir -p "$ac_dir"
|
9262 |
|
|
else
|
9263 |
|
|
as_dir="$ac_dir"
|
9264 |
|
|
as_dirs=
|
9265 |
|
|
while test ! -d "$as_dir"; do
|
9266 |
|
|
as_dirs="$as_dir $as_dirs"
|
9267 |
|
|
as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
9268 |
|
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
9269 |
|
|
X"$as_dir" : 'X\(//\)[^/]' \| \
|
9270 |
|
|
X"$as_dir" : 'X\(//\)$' \| \
|
9271 |
|
|
X"$as_dir" : 'X\(/\)' \| \
|
9272 |
|
|
. : '\(.\)' 2>/dev/null ||
|
9273 |
|
|
echo X"$as_dir" |
|
9274 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
9275 |
|
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
9276 |
|
|
/^X\(\/\/\)$/{ s//\1/; q; }
|
9277 |
|
|
/^X\(\/\).*/{ s//\1/; q; }
|
9278 |
|
|
s/.*/./; q'`
|
9279 |
|
|
done
|
9280 |
|
|
test ! -n "$as_dirs" || mkdir $as_dirs
|
9281 |
|
|
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
9282 |
|
|
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
9283 |
|
|
{ (exit 1); exit 1; }; }; }
|
9284 |
|
|
|
9285 |
|
|
rm -f $ac_file
|
9286 |
|
|
mv $tmp/config.h $ac_file
|
9287 |
|
|
fi
|
9288 |
|
|
else
|
9289 |
|
|
cat $tmp/config.h
|
9290 |
|
|
rm -f $tmp/config.h
|
9291 |
|
|
fi
|
9292 |
|
|
done
|
9293 |
|
|
_ACEOF
|
9294 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
9295 |
|
|
|
9296 |
|
|
#
|
9297 |
|
|
# CONFIG_COMMANDS section.
|
9298 |
|
|
#
|
9299 |
|
|
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
|
9300 |
|
|
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
|
9301 |
|
|
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
9302 |
|
|
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
|
9303 |
|
|
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
9304 |
|
|
X"$ac_dest" : 'X\(//\)[^/]' \| \
|
9305 |
|
|
X"$ac_dest" : 'X\(//\)$' \| \
|
9306 |
|
|
X"$ac_dest" : 'X\(/\)' \| \
|
9307 |
|
|
. : '\(.\)' 2>/dev/null ||
|
9308 |
|
|
echo X"$ac_dest" |
|
9309 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
9310 |
|
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
9311 |
|
|
/^X\(\/\/\)$/{ s//\1/; q; }
|
9312 |
|
|
/^X\(\/\).*/{ s//\1/; q; }
|
9313 |
|
|
s/.*/./; q'`
|
9314 |
|
|
{ if $as_mkdir_p; then
|
9315 |
|
|
mkdir -p "$ac_dir"
|
9316 |
|
|
else
|
9317 |
|
|
as_dir="$ac_dir"
|
9318 |
|
|
as_dirs=
|
9319 |
|
|
while test ! -d "$as_dir"; do
|
9320 |
|
|
as_dirs="$as_dir $as_dirs"
|
9321 |
|
|
as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
9322 |
|
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
9323 |
|
|
X"$as_dir" : 'X\(//\)[^/]' \| \
|
9324 |
|
|
X"$as_dir" : 'X\(//\)$' \| \
|
9325 |
|
|
X"$as_dir" : 'X\(/\)' \| \
|
9326 |
|
|
. : '\(.\)' 2>/dev/null ||
|
9327 |
|
|
echo X"$as_dir" |
|
9328 |
|
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
9329 |
|
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
9330 |
|
|
/^X\(\/\/\)$/{ s//\1/; q; }
|
9331 |
|
|
/^X\(\/\).*/{ s//\1/; q; }
|
9332 |
|
|
s/.*/./; q'`
|
9333 |
|
|
done
|
9334 |
|
|
test ! -n "$as_dirs" || mkdir $as_dirs
|
9335 |
|
|
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
9336 |
|
|
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
9337 |
|
|
{ (exit 1); exit 1; }; }; }
|
9338 |
|
|
|
9339 |
|
|
ac_builddir=.
|
9340 |
|
|
|
9341 |
|
|
if test "$ac_dir" != .; then
|
9342 |
|
|
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
9343 |
|
|
# A "../" for each directory in $ac_dir_suffix.
|
9344 |
|
|
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
9345 |
|
|
else
|
9346 |
|
|
ac_dir_suffix= ac_top_builddir=
|
9347 |
|
|
fi
|
9348 |
|
|
|
9349 |
|
|
case $srcdir in
|
9350 |
|
|
.) # No --srcdir option. We are building in place.
|
9351 |
|
|
ac_srcdir=.
|
9352 |
|
|
if test -z "$ac_top_builddir"; then
|
9353 |
|
|
ac_top_srcdir=.
|
9354 |
|
|
else
|
9355 |
|
|
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
9356 |
|
|
fi ;;
|
9357 |
|
|
[\\/]* | ?:[\\/]* ) # Absolute path.
|
9358 |
|
|
ac_srcdir=$srcdir$ac_dir_suffix;
|
9359 |
|
|
ac_top_srcdir=$srcdir ;;
|
9360 |
|
|
*) # Relative path.
|
9361 |
|
|
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
9362 |
|
|
ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
9363 |
|
|
esac
|
9364 |
|
|
|
9365 |
|
|
# Do not use `cd foo && pwd` to compute absolute paths, because
|
9366 |
|
|
# the directories may not exist.
|
9367 |
|
|
case `pwd` in
|
9368 |
|
|
.) ac_abs_builddir="$ac_dir";;
|
9369 |
|
|
*)
|
9370 |
|
|
case "$ac_dir" in
|
9371 |
|
|
.) ac_abs_builddir=`pwd`;;
|
9372 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
9373 |
|
|
*) ac_abs_builddir=`pwd`/"$ac_dir";;
|
9374 |
|
|
esac;;
|
9375 |
|
|
esac
|
9376 |
|
|
case $ac_abs_builddir in
|
9377 |
|
|
.) ac_abs_top_builddir=${ac_top_builddir}.;;
|
9378 |
|
|
*)
|
9379 |
|
|
case ${ac_top_builddir}. in
|
9380 |
|
|
.) ac_abs_top_builddir=$ac_abs_builddir;;
|
9381 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
9382 |
|
|
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
9383 |
|
|
esac;;
|
9384 |
|
|
esac
|
9385 |
|
|
case $ac_abs_builddir in
|
9386 |
|
|
.) ac_abs_srcdir=$ac_srcdir;;
|
9387 |
|
|
*)
|
9388 |
|
|
case $ac_srcdir in
|
9389 |
|
|
.) ac_abs_srcdir=$ac_abs_builddir;;
|
9390 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
9391 |
|
|
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
9392 |
|
|
esac;;
|
9393 |
|
|
esac
|
9394 |
|
|
case $ac_abs_builddir in
|
9395 |
|
|
.) ac_abs_top_srcdir=$ac_top_srcdir;;
|
9396 |
|
|
*)
|
9397 |
|
|
case $ac_top_srcdir in
|
9398 |
|
|
.) ac_abs_top_srcdir=$ac_abs_builddir;;
|
9399 |
|
|
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
9400 |
|
|
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
9401 |
|
|
esac;;
|
9402 |
|
|
esac
|
9403 |
|
|
|
9404 |
|
|
|
9405 |
|
|
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
|
9406 |
|
|
echo "$as_me: executing $ac_dest commands" >&6;}
|
9407 |
|
|
case $ac_dest in
|
9408 |
|
|
default )
|
9409 |
|
|
# Makefile uses this timestamp file to record whether config.h is up to date.
|
9410 |
|
|
echo > stamp-h
|
9411 |
|
|
;;
|
9412 |
|
|
esac
|
9413 |
|
|
done
|
9414 |
|
|
_ACEOF
|
9415 |
|
|
|
9416 |
|
|
cat >>$CONFIG_STATUS <<\_ACEOF
|
9417 |
|
|
|
9418 |
|
|
{ (exit 0); exit 0; }
|
9419 |
|
|
_ACEOF
|
9420 |
|
|
chmod +x $CONFIG_STATUS
|
9421 |
|
|
ac_clean_files=$ac_clean_files_save
|
9422 |
|
|
|
9423 |
|
|
|
9424 |
|
|
# configure is writing to config.log, and then calls config.status.
|
9425 |
|
|
# config.status does its own redirection, appending to config.log.
|
9426 |
|
|
# Unfortunately, on DOS this fails, as config.log is still kept open
|
9427 |
|
|
# by configure, so config.status won't be able to write to it; its
|
9428 |
|
|
# output is simply discarded. So we exec the FD to /dev/null,
|
9429 |
|
|
# effectively closing config.log, so it can be properly (re)opened and
|
9430 |
|
|
# appended to by config.status. When coming back to configure, we
|
9431 |
|
|
# need to make the FD available again.
|
9432 |
|
|
if test "$no_create" != yes; then
|
9433 |
|
|
ac_cs_success=:
|
9434 |
|
|
ac_config_status_args=
|
9435 |
|
|
test "$silent" = yes &&
|
9436 |
|
|
ac_config_status_args="$ac_config_status_args --quiet"
|
9437 |
|
|
exec 5>/dev/null
|
9438 |
|
|
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
9439 |
|
|
exec 5>>config.log
|
9440 |
|
|
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
9441 |
|
|
# would make configure fail if this is the last instruction.
|
9442 |
|
|
$ac_cs_success || { (exit 1); exit 1; }
|
9443 |
|
|
fi
|
9444 |
|
|
|