1 |
#! /bin/sh |
#! /bin/sh |
|
|
|
2 |
# Guess values for system-dependent variables and create Makefiles. |
# Guess values for system-dependent variables and create Makefiles. |
3 |
# Generated automatically using autoconf version 2.13 |
# Generated by GNU Autoconf 2.57. |
|
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. |
|
4 |
# |
# |
5 |
|
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
6 |
|
# Free Software Foundation, Inc. |
7 |
# This configure script is free software; the Free Software Foundation |
# This configure script is free software; the Free Software Foundation |
8 |
# gives unlimited permission to copy, distribute and modify it. |
# gives unlimited permission to copy, distribute and modify it. |
9 |
|
## --------------------- ## |
10 |
|
## M4sh Initialization. ## |
11 |
|
## --------------------- ## |
12 |
|
|
13 |
|
# Be Bourne compatible |
14 |
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
15 |
|
emulate sh |
16 |
|
NULLCMD=: |
17 |
|
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
18 |
|
# is contrary to our usage. Disable this feature. |
19 |
|
alias -g '${1+"$@"}'='"$@"' |
20 |
|
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
21 |
|
set -o posix |
22 |
|
fi |
23 |
|
|
24 |
|
# Support unset when possible. |
25 |
|
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
26 |
|
as_unset=unset |
27 |
|
else |
28 |
|
as_unset=false |
29 |
|
fi |
30 |
|
|
31 |
|
|
32 |
|
# Work around bugs in pre-3.0 UWIN ksh. |
33 |
|
$as_unset ENV MAIL MAILPATH |
34 |
|
PS1='$ ' |
35 |
|
PS2='> ' |
36 |
|
PS4='+ ' |
37 |
|
|
38 |
|
# NLS nuisances. |
39 |
|
for as_var in \ |
40 |
|
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
41 |
|
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
42 |
|
LC_TELEPHONE LC_TIME |
43 |
|
do |
44 |
|
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
45 |
|
eval $as_var=C; export $as_var |
46 |
|
else |
47 |
|
$as_unset $as_var |
48 |
|
fi |
49 |
|
done |
50 |
|
|
51 |
|
# Required to use basename. |
52 |
|
if expr a : '\(a\)' >/dev/null 2>&1; then |
53 |
|
as_expr=expr |
54 |
|
else |
55 |
|
as_expr=false |
56 |
|
fi |
57 |
|
|
58 |
|
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
59 |
|
as_basename=basename |
60 |
|
else |
61 |
|
as_basename=false |
62 |
|
fi |
63 |
|
|
64 |
|
|
65 |
|
# Name of the executable. |
66 |
|
as_me=`$as_basename "$0" || |
67 |
|
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
68 |
|
X"$0" : 'X\(//\)$' \| \ |
69 |
|
X"$0" : 'X\(/\)$' \| \ |
70 |
|
. : '\(.\)' 2>/dev/null || |
71 |
|
echo X/"$0" | |
72 |
|
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
73 |
|
/^X\/\(\/\/\)$/{ s//\1/; q; } |
74 |
|
/^X\/\(\/\).*/{ s//\1/; q; } |
75 |
|
s/.*/./; q'` |
76 |
|
|
77 |
|
|
78 |
|
# PATH needs CR, and LINENO needs CR and PATH. |
79 |
|
# Avoid depending upon Character Ranges. |
80 |
|
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
81 |
|
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
82 |
|
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
83 |
|
as_cr_digits='0123456789' |
84 |
|
as_cr_alnum=$as_cr_Letters$as_cr_digits |
85 |
|
|
86 |
|
# The user is always right. |
87 |
|
if test "${PATH_SEPARATOR+set}" != set; then |
88 |
|
echo "#! /bin/sh" >conf$$.sh |
89 |
|
echo "exit 0" >>conf$$.sh |
90 |
|
chmod +x conf$$.sh |
91 |
|
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
92 |
|
PATH_SEPARATOR=';' |
93 |
|
else |
94 |
|
PATH_SEPARATOR=: |
95 |
|
fi |
96 |
|
rm -f conf$$.sh |
97 |
|
fi |
98 |
|
|
99 |
|
|
100 |
|
as_lineno_1=$LINENO |
101 |
|
as_lineno_2=$LINENO |
102 |
|
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
103 |
|
test "x$as_lineno_1" != "x$as_lineno_2" && |
104 |
|
test "x$as_lineno_3" = "x$as_lineno_2" || { |
105 |
|
# Find who we are. Look in the path if we contain no path at all |
106 |
|
# relative or not. |
107 |
|
case $0 in |
108 |
|
*[\\/]* ) as_myself=$0 ;; |
109 |
|
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
110 |
|
for as_dir in $PATH |
111 |
|
do |
112 |
|
IFS=$as_save_IFS |
113 |
|
test -z "$as_dir" && as_dir=. |
114 |
|
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
115 |
|
done |
116 |
|
|
117 |
|
;; |
118 |
|
esac |
119 |
|
# We did not find ourselves, most probably we were run as `sh COMMAND' |
120 |
|
# in which case we are not to be found in the path. |
121 |
|
if test "x$as_myself" = x; then |
122 |
|
as_myself=$0 |
123 |
|
fi |
124 |
|
if test ! -f "$as_myself"; then |
125 |
|
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
126 |
|
{ (exit 1); exit 1; }; } |
127 |
|
fi |
128 |
|
case $CONFIG_SHELL in |
129 |
|
'') |
130 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
131 |
|
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
132 |
|
do |
133 |
|
IFS=$as_save_IFS |
134 |
|
test -z "$as_dir" && as_dir=. |
135 |
|
for as_base in sh bash ksh sh5; do |
136 |
|
case $as_dir in |
137 |
|
/*) |
138 |
|
if ("$as_dir/$as_base" -c ' |
139 |
|
as_lineno_1=$LINENO |
140 |
|
as_lineno_2=$LINENO |
141 |
|
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
142 |
|
test "x$as_lineno_1" != "x$as_lineno_2" && |
143 |
|
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
144 |
|
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
145 |
|
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
146 |
|
CONFIG_SHELL=$as_dir/$as_base |
147 |
|
export CONFIG_SHELL |
148 |
|
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
149 |
|
fi;; |
150 |
|
esac |
151 |
|
done |
152 |
|
done |
153 |
|
;; |
154 |
|
esac |
155 |
|
|
156 |
|
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
157 |
|
# uniformly replaced by the line number. The first 'sed' inserts a |
158 |
|
# line-number line before each line; the second 'sed' does the real |
159 |
|
# work. The second script uses 'N' to pair each line-number line |
160 |
|
# with the numbered line, and appends trailing '-' during |
161 |
|
# substitution so that $LINENO is not a special case at line end. |
162 |
|
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
163 |
|
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
164 |
|
sed '=' <$as_myself | |
165 |
|
sed ' |
166 |
|
N |
167 |
|
s,$,-, |
168 |
|
: loop |
169 |
|
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
170 |
|
t loop |
171 |
|
s,-$,, |
172 |
|
s,^['$as_cr_digits']*\n,, |
173 |
|
' >$as_me.lineno && |
174 |
|
chmod +x $as_me.lineno || |
175 |
|
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
176 |
|
{ (exit 1); exit 1; }; } |
177 |
|
|
178 |
|
# Don't try to exec as it changes $[0], causing all sort of problems |
179 |
|
# (the dirname of $[0] is not the place where we might find the |
180 |
|
# original and so on. Autoconf is especially sensible to this). |
181 |
|
. ./$as_me.lineno |
182 |
|
# Exit status is that of the last command. |
183 |
|
exit |
184 |
|
} |
185 |
|
|
186 |
|
|
187 |
|
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
188 |
|
*c*,-n*) ECHO_N= ECHO_C=' |
189 |
|
' ECHO_T=' ' ;; |
190 |
|
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
191 |
|
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
192 |
|
esac |
193 |
|
|
194 |
|
if expr a : '\(a\)' >/dev/null 2>&1; then |
195 |
|
as_expr=expr |
196 |
|
else |
197 |
|
as_expr=false |
198 |
|
fi |
199 |
|
|
200 |
|
rm -f conf$$ conf$$.exe conf$$.file |
201 |
|
echo >conf$$.file |
202 |
|
if ln -s conf$$.file conf$$ 2>/dev/null; then |
203 |
|
# We could just check for DJGPP; but this test a) works b) is more generic |
204 |
|
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
205 |
|
if test -f conf$$.exe; then |
206 |
|
# Don't use ln at all; we don't have any links |
207 |
|
as_ln_s='cp -p' |
208 |
|
else |
209 |
|
as_ln_s='ln -s' |
210 |
|
fi |
211 |
|
elif ln conf$$.file conf$$ 2>/dev/null; then |
212 |
|
as_ln_s=ln |
213 |
|
else |
214 |
|
as_ln_s='cp -p' |
215 |
|
fi |
216 |
|
rm -f conf$$ conf$$.exe conf$$.file |
217 |
|
|
218 |
|
if mkdir -p . 2>/dev/null; then |
219 |
|
as_mkdir_p=: |
220 |
|
else |
221 |
|
as_mkdir_p=false |
222 |
|
fi |
223 |
|
|
224 |
# Defaults: |
as_executable_p="test -f" |
225 |
ac_help= |
|
226 |
|
# Sed expression to map a string onto a valid CPP name. |
227 |
|
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
228 |
|
|
229 |
|
# Sed expression to map a string onto a valid variable name. |
230 |
|
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
231 |
|
|
232 |
|
|
233 |
|
# IFS |
234 |
|
# We need space, tab and new line, in precisely that order. |
235 |
|
as_nl=' |
236 |
|
' |
237 |
|
IFS=" $as_nl" |
238 |
|
|
239 |
|
# CDPATH. |
240 |
|
$as_unset CDPATH |
241 |
|
|
242 |
|
|
243 |
|
# Name of the host. |
244 |
|
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
245 |
|
# so uname gets run too. |
246 |
|
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
247 |
|
|
248 |
|
exec 6>&1 |
249 |
|
|
250 |
|
# |
251 |
|
# Initializations. |
252 |
|
# |
253 |
ac_default_prefix=/usr/local |
ac_default_prefix=/usr/local |
254 |
# Any additions from configure.in: |
ac_config_libobj_dir=. |
255 |
ac_help="$ac_help |
cross_compiling=no |
256 |
--with-target-subdir=SUBDIR Configuring in a subdirectory" |
subdirs= |
257 |
ac_help="$ac_help |
MFLAGS= |
258 |
--with-cross-host=HOST Configuring with a cross compiler" |
MAKEFLAGS= |
259 |
ac_help="$ac_help |
SHELL=${CONFIG_SHELL-/bin/sh} |
260 |
--with-newlib Configuring with newlib" |
|
261 |
|
# Maximum number of lines to put in a shell here document. |
262 |
|
# This variable seems obsolete. It should probably be removed, and |
263 |
|
# only ac_max_sed_lines should be used. |
264 |
|
: ${ac_max_here_lines=38} |
265 |
|
|
266 |
|
# Identity of this package. |
267 |
|
PACKAGE_NAME= |
268 |
|
PACKAGE_TARNAME= |
269 |
|
PACKAGE_VERSION= |
270 |
|
PACKAGE_STRING= |
271 |
|
PACKAGE_BUGREPORT= |
272 |
|
|
273 |
|
ac_unique_file="xmalloc.c" |
274 |
|
# Factoring default headers for most tests. |
275 |
|
ac_includes_default="\ |
276 |
|
#include <stdio.h> |
277 |
|
#if HAVE_SYS_TYPES_H |
278 |
|
# include <sys/types.h> |
279 |
|
#endif |
280 |
|
#if HAVE_SYS_STAT_H |
281 |
|
# include <sys/stat.h> |
282 |
|
#endif |
283 |
|
#if STDC_HEADERS |
284 |
|
# include <stdlib.h> |
285 |
|
# include <stddef.h> |
286 |
|
#else |
287 |
|
# if HAVE_STDLIB_H |
288 |
|
# include <stdlib.h> |
289 |
|
# endif |
290 |
|
#endif |
291 |
|
#if HAVE_STRING_H |
292 |
|
# if !STDC_HEADERS && HAVE_MEMORY_H |
293 |
|
# include <memory.h> |
294 |
|
# endif |
295 |
|
# include <string.h> |
296 |
|
#endif |
297 |
|
#if HAVE_STRINGS_H |
298 |
|
# include <strings.h> |
299 |
|
#endif |
300 |
|
#if HAVE_INTTYPES_H |
301 |
|
# include <inttypes.h> |
302 |
|
#else |
303 |
|
# if HAVE_STDINT_H |
304 |
|
# include <stdint.h> |
305 |
|
# endif |
306 |
|
#endif |
307 |
|
#if HAVE_UNISTD_H |
308 |
|
# include <unistd.h> |
309 |
|
#endif" |
310 |
|
|
311 |
|
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 libiberty_topdir MAINT NOTMAINT MAKEINFO BUILD_INFO PERL HAVE_PERL build build_cpu build_vendor build_os host host_cpu host_vendor host_os AR ac_ct_AR RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP ac_libiberty_warn_cflags NO_MINUS_C_MINUS_O OUTPUT_OPTION INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA EGREP LIBOBJS CHECK target_header_dir pexecute INSTALL_DEST LTLIBOBJS' |
312 |
|
ac_subst_files='host_makefile_frag' |
313 |
|
|
314 |
# Initialize some variables set by options. |
# Initialize some variables set by options. |
315 |
|
ac_init_help= |
316 |
|
ac_init_version=false |
317 |
# The variables have the same names as the options, with |
# The variables have the same names as the options, with |
318 |
# dashes changed to underlines. |
# dashes changed to underlines. |
319 |
build=NONE |
cache_file=/dev/null |
|
cache_file=./config.cache |
|
320 |
exec_prefix=NONE |
exec_prefix=NONE |
|
host=NONE |
|
321 |
no_create= |
no_create= |
|
nonopt=NONE |
|
322 |
no_recursion= |
no_recursion= |
323 |
prefix=NONE |
prefix=NONE |
324 |
program_prefix=NONE |
program_prefix=NONE |
327 |
silent= |
silent= |
328 |
site= |
site= |
329 |
srcdir= |
srcdir= |
|
target=NONE |
|
330 |
verbose= |
verbose= |
331 |
x_includes=NONE |
x_includes=NONE |
332 |
x_libraries=NONE |
x_libraries=NONE |
333 |
|
|
334 |
|
# Installation directory options. |
335 |
|
# These are left unexpanded so users can "make install exec_prefix=/foo" |
336 |
|
# and all the variables that are supposed to be based on exec_prefix |
337 |
|
# by default will actually change. |
338 |
|
# Use braces instead of parens because sh, perl, etc. also accept them. |
339 |
bindir='${exec_prefix}/bin' |
bindir='${exec_prefix}/bin' |
340 |
sbindir='${exec_prefix}/sbin' |
sbindir='${exec_prefix}/sbin' |
341 |
libexecdir='${exec_prefix}/libexec' |
libexecdir='${exec_prefix}/libexec' |
349 |
infodir='${prefix}/info' |
infodir='${prefix}/info' |
350 |
mandir='${prefix}/man' |
mandir='${prefix}/man' |
351 |
|
|
|
# Initialize some other variables. |
|
|
subdirs= |
|
|
MFLAGS= MAKEFLAGS= |
|
|
SHELL=${CONFIG_SHELL-/bin/sh} |
|
|
# Maximum number of lines to put in a shell here document. |
|
|
ac_max_here_lines=12 |
|
|
|
|
352 |
ac_prev= |
ac_prev= |
353 |
for ac_option |
for ac_option |
354 |
do |
do |
|
|
|
355 |
# If the previous option needs an argument, assign it. |
# If the previous option needs an argument, assign it. |
356 |
if test -n "$ac_prev"; then |
if test -n "$ac_prev"; then |
357 |
eval "$ac_prev=\$ac_option" |
eval "$ac_prev=\$ac_option" |
359 |
continue |
continue |
360 |
fi |
fi |
361 |
|
|
362 |
case "$ac_option" in |
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
|
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; |
|
|
*) ac_optarg= ;; |
|
|
esac |
|
363 |
|
|
364 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
# Accept the important Cygnus configure options, so we can diagnose typos. |
365 |
|
|
366 |
case "$ac_option" in |
case $ac_option in |
367 |
|
|
368 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
369 |
ac_prev=bindir ;; |
ac_prev=bindir ;; |
370 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
371 |
bindir="$ac_optarg" ;; |
bindir=$ac_optarg ;; |
372 |
|
|
373 |
-build | --build | --buil | --bui | --bu) |
-build | --build | --buil | --bui | --bu) |
374 |
ac_prev=build ;; |
ac_prev=build_alias ;; |
375 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
376 |
build="$ac_optarg" ;; |
build_alias=$ac_optarg ;; |
377 |
|
|
378 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
379 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
380 |
ac_prev=cache_file ;; |
ac_prev=cache_file ;; |
381 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
382 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
383 |
cache_file="$ac_optarg" ;; |
cache_file=$ac_optarg ;; |
384 |
|
|
385 |
|
--config-cache | -C) |
386 |
|
cache_file=config.cache ;; |
387 |
|
|
388 |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
389 |
ac_prev=datadir ;; |
ac_prev=datadir ;; |
390 |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
391 |
| --da=*) |
| --da=*) |
392 |
datadir="$ac_optarg" ;; |
datadir=$ac_optarg ;; |
393 |
|
|
394 |
-disable-* | --disable-*) |
-disable-* | --disable-*) |
395 |
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` |
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
396 |
# Reject names that are not valid shell variable names. |
# Reject names that are not valid shell variable names. |
397 |
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
398 |
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
399 |
fi |
{ (exit 1); exit 1; }; } |
400 |
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
401 |
eval "enable_${ac_feature}=no" ;; |
eval "enable_$ac_feature=no" ;; |
402 |
|
|
403 |
-enable-* | --enable-*) |
-enable-* | --enable-*) |
404 |
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` |
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
405 |
# Reject names that are not valid shell variable names. |
# Reject names that are not valid shell variable names. |
406 |
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
407 |
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
408 |
fi |
{ (exit 1); exit 1; }; } |
409 |
ac_feature=`echo $ac_feature| sed 's/-/_/g'` |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
410 |
case "$ac_option" in |
case $ac_option in |
411 |
*=*) ;; |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
412 |
*) ac_optarg=yes ;; |
*) ac_optarg=yes ;; |
413 |
esac |
esac |
414 |
eval "enable_${ac_feature}='$ac_optarg'" ;; |
eval "enable_$ac_feature='$ac_optarg'" ;; |
415 |
|
|
416 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
417 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
420 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
421 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
422 |
| --exec=* | --exe=* | --ex=*) |
| --exec=* | --exe=* | --ex=*) |
423 |
exec_prefix="$ac_optarg" ;; |
exec_prefix=$ac_optarg ;; |
424 |
|
|
425 |
-gas | --gas | --ga | --g) |
-gas | --gas | --ga | --g) |
426 |
# Obsolete; use --with-gas. |
# Obsolete; use --with-gas. |
427 |
with_gas=yes ;; |
with_gas=yes ;; |
428 |
|
|
429 |
-help | --help | --hel | --he) |
-help | --help | --hel | --he | -h) |
430 |
# Omit some internal or obsolete options to make the list less imposing. |
ac_init_help=long ;; |
431 |
# This message is too long to be a string in the A/UX 3.1 sh. |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
432 |
cat << EOF |
ac_init_help=recursive ;; |
433 |
Usage: configure [options] [host] |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
434 |
Options: [defaults in brackets after descriptions] |
ac_init_help=short ;; |
|
Configuration: |
|
|
--cache-file=FILE cache test results in FILE |
|
|
--help print this message |
|
|
--no-create do not create output files |
|
|
--quiet, --silent do not print \`checking...' messages |
|
|
--version print the version of autoconf that created configure |
|
|
Directory and file names: |
|
|
--prefix=PREFIX install architecture-independent files in PREFIX |
|
|
[$ac_default_prefix] |
|
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
|
|
[same as prefix] |
|
|
--bindir=DIR user executables in DIR [EPREFIX/bin] |
|
|
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin] |
|
|
--libexecdir=DIR program executables in DIR [EPREFIX/libexec] |
|
|
--datadir=DIR read-only architecture-independent data in DIR |
|
|
[PREFIX/share] |
|
|
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] |
|
|
--sharedstatedir=DIR modifiable architecture-independent data in DIR |
|
|
[PREFIX/com] |
|
|
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] |
|
|
--libdir=DIR object code libraries in DIR [EPREFIX/lib] |
|
|
--includedir=DIR C header files in DIR [PREFIX/include] |
|
|
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] |
|
|
--infodir=DIR info documentation in DIR [PREFIX/info] |
|
|
--mandir=DIR man documentation in DIR [PREFIX/man] |
|
|
--srcdir=DIR find the sources in DIR [configure dir or ..] |
|
|
--program-prefix=PREFIX prepend PREFIX to installed program names |
|
|
--program-suffix=SUFFIX append SUFFIX to installed program names |
|
|
--program-transform-name=PROGRAM |
|
|
run sed PROGRAM on installed program names |
|
|
EOF |
|
|
cat << EOF |
|
|
Host type: |
|
|
--build=BUILD configure for building on BUILD [BUILD=HOST] |
|
|
--host=HOST configure for HOST [guessed] |
|
|
--target=TARGET configure for TARGET [TARGET=HOST] |
|
|
Features and packages: |
|
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
|
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
|
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
|
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
|
|
--x-includes=DIR X include files are in DIR |
|
|
--x-libraries=DIR X library files are in DIR |
|
|
EOF |
|
|
if test -n "$ac_help"; then |
|
|
echo "--enable and --with options recognized:$ac_help" |
|
|
fi |
|
|
exit 0 ;; |
|
435 |
|
|
436 |
-host | --host | --hos | --ho) |
-host | --host | --hos | --ho) |
437 |
ac_prev=host ;; |
ac_prev=host_alias ;; |
438 |
-host=* | --host=* | --hos=* | --ho=*) |
-host=* | --host=* | --hos=* | --ho=*) |
439 |
host="$ac_optarg" ;; |
host_alias=$ac_optarg ;; |
440 |
|
|
441 |
-includedir | --includedir | --includedi | --included | --include \ |
-includedir | --includedir | --includedi | --included | --include \ |
442 |
| --includ | --inclu | --incl | --inc) |
| --includ | --inclu | --incl | --inc) |
443 |
ac_prev=includedir ;; |
ac_prev=includedir ;; |
444 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
445 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
446 |
includedir="$ac_optarg" ;; |
includedir=$ac_optarg ;; |
447 |
|
|
448 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
449 |
ac_prev=infodir ;; |
ac_prev=infodir ;; |
450 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
451 |
infodir="$ac_optarg" ;; |
infodir=$ac_optarg ;; |
452 |
|
|
453 |
-libdir | --libdir | --libdi | --libd) |
-libdir | --libdir | --libdi | --libd) |
454 |
ac_prev=libdir ;; |
ac_prev=libdir ;; |
455 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
456 |
libdir="$ac_optarg" ;; |
libdir=$ac_optarg ;; |
457 |
|
|
458 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
459 |
| --libexe | --libex | --libe) |
| --libexe | --libex | --libe) |
460 |
ac_prev=libexecdir ;; |
ac_prev=libexecdir ;; |
461 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
462 |
| --libexe=* | --libex=* | --libe=*) |
| --libexe=* | --libex=* | --libe=*) |
463 |
libexecdir="$ac_optarg" ;; |
libexecdir=$ac_optarg ;; |
464 |
|
|
465 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
466 |
| --localstate | --localstat | --localsta | --localst \ |
| --localstate | --localstat | --localsta | --localst \ |
469 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
470 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
471 |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
472 |
localstatedir="$ac_optarg" ;; |
localstatedir=$ac_optarg ;; |
473 |
|
|
474 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
475 |
ac_prev=mandir ;; |
ac_prev=mandir ;; |
476 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
477 |
mandir="$ac_optarg" ;; |
mandir=$ac_optarg ;; |
478 |
|
|
479 |
-nfp | --nfp | --nf) |
-nfp | --nfp | --nf) |
480 |
# Obsolete; use --without-fp. |
# Obsolete; use --without-fp. |
481 |
with_fp=no ;; |
with_fp=no ;; |
482 |
|
|
483 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
484 |
| --no-cr | --no-c) |
| --no-cr | --no-c | -n) |
485 |
no_create=yes ;; |
no_create=yes ;; |
486 |
|
|
487 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
495 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
496 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
497 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
498 |
oldincludedir="$ac_optarg" ;; |
oldincludedir=$ac_optarg ;; |
499 |
|
|
500 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
501 |
ac_prev=prefix ;; |
ac_prev=prefix ;; |
502 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
503 |
prefix="$ac_optarg" ;; |
prefix=$ac_optarg ;; |
504 |
|
|
505 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
506 |
| --program-pre | --program-pr | --program-p) |
| --program-pre | --program-pr | --program-p) |
507 |
ac_prev=program_prefix ;; |
ac_prev=program_prefix ;; |
508 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
509 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
510 |
program_prefix="$ac_optarg" ;; |
program_prefix=$ac_optarg ;; |
511 |
|
|
512 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
513 |
| --program-suf | --program-su | --program-s) |
| --program-suf | --program-su | --program-s) |
514 |
ac_prev=program_suffix ;; |
ac_prev=program_suffix ;; |
515 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
516 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
517 |
program_suffix="$ac_optarg" ;; |
program_suffix=$ac_optarg ;; |
518 |
|
|
519 |
-program-transform-name | --program-transform-name \ |
-program-transform-name | --program-transform-name \ |
520 |
| --program-transform-nam | --program-transform-na \ |
| --program-transform-nam | --program-transform-na \ |
531 |
| --program-transfo=* | --program-transf=* \ |
| --program-transfo=* | --program-transf=* \ |
532 |
| --program-trans=* | --program-tran=* \ |
| --program-trans=* | --program-tran=* \ |
533 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
| --progr-tra=* | --program-tr=* | --program-t=*) |
534 |
program_transform_name="$ac_optarg" ;; |
program_transform_name=$ac_optarg ;; |
535 |
|
|
536 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
537 |
| -silent | --silent | --silen | --sile | --sil) |
| -silent | --silent | --silen | --sile | --sil) |
541 |
ac_prev=sbindir ;; |
ac_prev=sbindir ;; |
542 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
543 |
| --sbi=* | --sb=*) |
| --sbi=* | --sb=*) |
544 |
sbindir="$ac_optarg" ;; |
sbindir=$ac_optarg ;; |
545 |
|
|
546 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
547 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
552 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
553 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
554 |
| --sha=* | --sh=*) |
| --sha=* | --sh=*) |
555 |
sharedstatedir="$ac_optarg" ;; |
sharedstatedir=$ac_optarg ;; |
556 |
|
|
557 |
-site | --site | --sit) |
-site | --site | --sit) |
558 |
ac_prev=site ;; |
ac_prev=site ;; |
559 |
-site=* | --site=* | --sit=*) |
-site=* | --site=* | --sit=*) |
560 |
site="$ac_optarg" ;; |
site=$ac_optarg ;; |
561 |
|
|
562 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
563 |
ac_prev=srcdir ;; |
ac_prev=srcdir ;; |
564 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
565 |
srcdir="$ac_optarg" ;; |
srcdir=$ac_optarg ;; |
566 |
|
|
567 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
568 |
| --syscon | --sysco | --sysc | --sys | --sy) |
| --syscon | --sysco | --sysc | --sys | --sy) |
569 |
ac_prev=sysconfdir ;; |
ac_prev=sysconfdir ;; |
570 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
571 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
572 |
sysconfdir="$ac_optarg" ;; |
sysconfdir=$ac_optarg ;; |
573 |
|
|
574 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
-target | --target | --targe | --targ | --tar | --ta | --t) |
575 |
ac_prev=target ;; |
ac_prev=target_alias ;; |
576 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
577 |
target="$ac_optarg" ;; |
target_alias=$ac_optarg ;; |
578 |
|
|
579 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
580 |
verbose=yes ;; |
verbose=yes ;; |
581 |
|
|
582 |
-version | --version | --versio | --versi | --vers) |
-version | --version | --versio | --versi | --vers | -V) |
583 |
echo "configure generated by autoconf version 2.13" |
ac_init_version=: ;; |
|
exit 0 ;; |
|
584 |
|
|
585 |
-with-* | --with-*) |
-with-* | --with-*) |
586 |
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` |
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
587 |
# Reject names that are not valid shell variable names. |
# Reject names that are not valid shell variable names. |
588 |
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
589 |
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
590 |
fi |
{ (exit 1); exit 1; }; } |
591 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
592 |
case "$ac_option" in |
case $ac_option in |
593 |
*=*) ;; |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
594 |
*) ac_optarg=yes ;; |
*) ac_optarg=yes ;; |
595 |
esac |
esac |
596 |
eval "with_${ac_package}='$ac_optarg'" ;; |
eval "with_$ac_package='$ac_optarg'" ;; |
597 |
|
|
598 |
-without-* | --without-*) |
-without-* | --without-*) |
599 |
ac_package=`echo $ac_option|sed -e 's/-*without-//'` |
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
600 |
# Reject names that are not valid shell variable names. |
# Reject names that are not valid shell variable names. |
601 |
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
602 |
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
603 |
fi |
{ (exit 1); exit 1; }; } |
604 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
ac_package=`echo $ac_package | sed 's/-/_/g'` |
605 |
eval "with_${ac_package}=no" ;; |
eval "with_$ac_package=no" ;; |
606 |
|
|
607 |
--x) |
--x) |
608 |
# Obsolete; use --with-x. |
# Obsolete; use --with-x. |
613 |
ac_prev=x_includes ;; |
ac_prev=x_includes ;; |
614 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
615 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
616 |
x_includes="$ac_optarg" ;; |
x_includes=$ac_optarg ;; |
617 |
|
|
618 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
619 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
620 |
ac_prev=x_libraries ;; |
ac_prev=x_libraries ;; |
621 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
622 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
623 |
x_libraries="$ac_optarg" ;; |
x_libraries=$ac_optarg ;; |
624 |
|
|
625 |
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } |
-*) { echo "$as_me: error: unrecognized option: $ac_option |
626 |
|
Try \`$0 --help' for more information." >&2 |
627 |
|
{ (exit 1); exit 1; }; } |
628 |
;; |
;; |
629 |
|
|
630 |
|
*=*) |
631 |
|
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
632 |
|
# Reject names that are not valid shell variable names. |
633 |
|
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
634 |
|
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
635 |
|
{ (exit 1); exit 1; }; } |
636 |
|
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
637 |
|
eval "$ac_envvar='$ac_optarg'" |
638 |
|
export $ac_envvar ;; |
639 |
|
|
640 |
*) |
*) |
641 |
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then |
# FIXME: should be removed in autoconf 3.0. |
642 |
echo "configure: warning: $ac_option: invalid host type" 1>&2 |
echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
643 |
fi |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
644 |
if test "x$nonopt" != xNONE; then |
echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
645 |
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } |
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
|
fi |
|
|
nonopt="$ac_option" |
|
646 |
;; |
;; |
647 |
|
|
648 |
esac |
esac |
649 |
done |
done |
650 |
|
|
651 |
if test -n "$ac_prev"; then |
if test -n "$ac_prev"; then |
652 |
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
653 |
|
{ echo "$as_me: error: missing argument to $ac_option" >&2 |
654 |
|
{ (exit 1); exit 1; }; } |
655 |
fi |
fi |
656 |
|
|
657 |
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
# Be sure to have absolute paths. |
658 |
|
for ac_var in exec_prefix prefix |
659 |
# File descriptor usage: |
do |
660 |
# 0 standard input |
eval ac_val=$`echo $ac_var` |
661 |
# 1 file creation |
case $ac_val in |
662 |
# 2 errors and warnings |
[\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
663 |
# 3 some systems may open it to /dev/tty |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
664 |
# 4 used on the Kubota Titan |
{ (exit 1); exit 1; }; };; |
665 |
# 6 checking for... messages and results |
esac |
666 |
# 5 compiler messages saved in config.log |
done |
|
if test "$silent" = yes; then |
|
|
exec 6>/dev/null |
|
|
else |
|
|
exec 6>&1 |
|
|
fi |
|
|
exec 5>./config.log |
|
|
|
|
|
echo "\ |
|
|
This file contains any messages produced by compilers while |
|
|
running configure, to aid debugging if configure makes a mistake. |
|
|
" 1>&5 |
|
667 |
|
|
668 |
# Strip out --no-create and --no-recursion so they do not pile up. |
# Be sure to have absolute paths. |
669 |
# Also quote any args containing shell metacharacters. |
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
670 |
ac_configure_args= |
localstatedir libdir includedir oldincludedir infodir mandir |
|
for ac_arg |
|
671 |
do |
do |
672 |
case "$ac_arg" in |
eval ac_val=$`echo $ac_var` |
673 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
case $ac_val in |
674 |
| --no-cr | --no-c) ;; |
[\\/$]* | ?:[\\/]* ) ;; |
675 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
676 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; |
{ (exit 1); exit 1; }; };; |
|
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) |
|
|
ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
|
|
*) ac_configure_args="$ac_configure_args $ac_arg" ;; |
|
677 |
esac |
esac |
678 |
done |
done |
679 |
|
|
680 |
# NLS nuisances. |
# There might be people who depend on the old broken behavior: `$host' |
681 |
# Only set these to C if already set. These must not be set unconditionally |
# used to hold the argument of --host etc. |
682 |
# because not all systems understand e.g. LANG=C (notably SCO). |
# FIXME: To remove some day. |
683 |
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! |
build=$build_alias |
684 |
# Non-C LC_CTYPE values break the ctype check. |
host=$host_alias |
685 |
if test "${LANG+set}" = set; then LANG=C; export LANG; fi |
target=$target_alias |
686 |
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi |
|
687 |
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi |
# FIXME: To remove some day. |
688 |
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi |
if test "x$host_alias" != x; then |
689 |
|
if test "x$build_alias" = x; then |
690 |
|
cross_compiling=maybe |
691 |
|
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
692 |
|
If a cross compiler is detected then cross compile mode will be used." >&2 |
693 |
|
elif test "x$build_alias" != "x$host_alias"; then |
694 |
|
cross_compiling=yes |
695 |
|
fi |
696 |
|
fi |
697 |
|
|
698 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
ac_tool_prefix= |
699 |
rm -rf conftest* confdefs.h |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
700 |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
|
701 |
echo > confdefs.h |
test "$silent" = yes && exec 6>/dev/null |
702 |
|
|
|
# A filename unique to this package, relative to the directory that |
|
|
# configure is in, which we can look for to find out if srcdir is correct. |
|
|
ac_unique_file=pexecute.c |
|
703 |
|
|
704 |
# Find the source files, if location was not specified. |
# Find the source files, if location was not specified. |
705 |
if test -z "$srcdir"; then |
if test -z "$srcdir"; then |
706 |
ac_srcdir_defaulted=yes |
ac_srcdir_defaulted=yes |
707 |
# Try the directory containing this script, then its parent. |
# Try the directory containing this script, then its parent. |
708 |
ac_prog=$0 |
ac_confdir=`(dirname "$0") 2>/dev/null || |
709 |
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` |
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
710 |
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
X"$0" : 'X\(//\)[^/]' \| \ |
711 |
|
X"$0" : 'X\(//\)$' \| \ |
712 |
|
X"$0" : 'X\(/\)' \| \ |
713 |
|
. : '\(.\)' 2>/dev/null || |
714 |
|
echo X"$0" | |
715 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
716 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
717 |
|
/^X\(\/\/\)$/{ s//\1/; q; } |
718 |
|
/^X\(\/\).*/{ s//\1/; q; } |
719 |
|
s/.*/./; q'` |
720 |
srcdir=$ac_confdir |
srcdir=$ac_confdir |
721 |
if test ! -r $srcdir/$ac_unique_file; then |
if test ! -r $srcdir/$ac_unique_file; then |
722 |
srcdir=.. |
srcdir=.. |
726 |
fi |
fi |
727 |
if test ! -r $srcdir/$ac_unique_file; then |
if test ! -r $srcdir/$ac_unique_file; then |
728 |
if test "$ac_srcdir_defaulted" = yes; then |
if test "$ac_srcdir_defaulted" = yes; then |
729 |
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
730 |
|
{ (exit 1); exit 1; }; } |
731 |
else |
else |
732 |
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
733 |
|
{ (exit 1); exit 1; }; } |
734 |
fi |
fi |
735 |
fi |
fi |
736 |
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` |
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
737 |
|
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
738 |
|
{ (exit 1); exit 1; }; } |
739 |
|
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
740 |
|
ac_env_build_alias_set=${build_alias+set} |
741 |
|
ac_env_build_alias_value=$build_alias |
742 |
|
ac_cv_env_build_alias_set=${build_alias+set} |
743 |
|
ac_cv_env_build_alias_value=$build_alias |
744 |
|
ac_env_host_alias_set=${host_alias+set} |
745 |
|
ac_env_host_alias_value=$host_alias |
746 |
|
ac_cv_env_host_alias_set=${host_alias+set} |
747 |
|
ac_cv_env_host_alias_value=$host_alias |
748 |
|
ac_env_target_alias_set=${target_alias+set} |
749 |
|
ac_env_target_alias_value=$target_alias |
750 |
|
ac_cv_env_target_alias_set=${target_alias+set} |
751 |
|
ac_cv_env_target_alias_value=$target_alias |
752 |
|
ac_env_CC_set=${CC+set} |
753 |
|
ac_env_CC_value=$CC |
754 |
|
ac_cv_env_CC_set=${CC+set} |
755 |
|
ac_cv_env_CC_value=$CC |
756 |
|
ac_env_CFLAGS_set=${CFLAGS+set} |
757 |
|
ac_env_CFLAGS_value=$CFLAGS |
758 |
|
ac_cv_env_CFLAGS_set=${CFLAGS+set} |
759 |
|
ac_cv_env_CFLAGS_value=$CFLAGS |
760 |
|
ac_env_LDFLAGS_set=${LDFLAGS+set} |
761 |
|
ac_env_LDFLAGS_value=$LDFLAGS |
762 |
|
ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
763 |
|
ac_cv_env_LDFLAGS_value=$LDFLAGS |
764 |
|
ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
765 |
|
ac_env_CPPFLAGS_value=$CPPFLAGS |
766 |
|
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
767 |
|
ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
768 |
|
ac_env_CPP_set=${CPP+set} |
769 |
|
ac_env_CPP_value=$CPP |
770 |
|
ac_cv_env_CPP_set=${CPP+set} |
771 |
|
ac_cv_env_CPP_value=$CPP |
772 |
|
|
773 |
|
# |
774 |
|
# Report the --help message. |
775 |
|
# |
776 |
|
if test "$ac_init_help" = "long"; then |
777 |
|
# Omit some internal or obsolete options to make the list less imposing. |
778 |
|
# This message is too long to be a string in the A/UX 3.1 sh. |
779 |
|
cat <<_ACEOF |
780 |
|
\`configure' configures this package to adapt to many kinds of systems. |
781 |
|
|
782 |
|
Usage: $0 [OPTION]... [VAR=VALUE]... |
783 |
|
|
784 |
|
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
785 |
|
VAR=VALUE. See below for descriptions of some of the useful variables. |
786 |
|
|
787 |
|
Defaults for the options are specified in brackets. |
788 |
|
|
789 |
|
Configuration: |
790 |
|
-h, --help display this help and exit |
791 |
|
--help=short display options specific to this package |
792 |
|
--help=recursive display the short help of all the included packages |
793 |
|
-V, --version display version information and exit |
794 |
|
-q, --quiet, --silent do not print \`checking...' messages |
795 |
|
--cache-file=FILE cache test results in FILE [disabled] |
796 |
|
-C, --config-cache alias for \`--cache-file=config.cache' |
797 |
|
-n, --no-create do not create output files |
798 |
|
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
799 |
|
|
800 |
|
_ACEOF |
801 |
|
|
802 |
|
cat <<_ACEOF |
803 |
|
Installation directories: |
804 |
|
--prefix=PREFIX install architecture-independent files in PREFIX |
805 |
|
[$ac_default_prefix] |
806 |
|
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
807 |
|
[PREFIX] |
808 |
|
|
809 |
|
By default, \`make install' will install all the files in |
810 |
|
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
811 |
|
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
812 |
|
for instance \`--prefix=\$HOME'. |
813 |
|
|
814 |
|
For better control, use the options below. |
815 |
|
|
816 |
|
Fine tuning of the installation directories: |
817 |
|
--bindir=DIR user executables [EPREFIX/bin] |
818 |
|
--sbindir=DIR system admin executables [EPREFIX/sbin] |
819 |
|
--libexecdir=DIR program executables [EPREFIX/libexec] |
820 |
|
--datadir=DIR read-only architecture-independent data [PREFIX/share] |
821 |
|
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
822 |
|
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
823 |
|
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
824 |
|
--libdir=DIR object code libraries [EPREFIX/lib] |
825 |
|
--includedir=DIR C header files [PREFIX/include] |
826 |
|
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
827 |
|
--infodir=DIR info documentation [PREFIX/info] |
828 |
|
--mandir=DIR man documentation [PREFIX/man] |
829 |
|
_ACEOF |
830 |
|
|
831 |
|
cat <<\_ACEOF |
832 |
|
|
833 |
|
System types: |
834 |
|
--build=BUILD configure for building on BUILD [guessed] |
835 |
|
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
836 |
|
_ACEOF |
837 |
|
fi |
838 |
|
|
839 |
|
if test -n "$ac_init_help"; then |
840 |
|
|
841 |
|
cat <<\_ACEOF |
842 |
|
|
843 |
|
Optional Features: |
844 |
|
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
845 |
|
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
846 |
|
--enable-maintainer-mode |
847 |
|
enable make rules and dependencies not useful |
848 |
|
(and sometimes confusing) to the casual installer |
849 |
|
--enable-install-libiberty Install headers for end users |
850 |
|
|
851 |
|
Optional Packages: |
852 |
|
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
853 |
|
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
854 |
|
--with-target-subdir=SUBDIR Configuring in a subdirectory for target |
855 |
|
--with-build-subdir=SUBDIR Configuring in a subdirectory for build |
856 |
|
--with-cross-host=HOST Configuring with a cross compiler |
857 |
|
--with-newlib Configuring with newlib |
858 |
|
|
859 |
|
Some influential environment variables: |
860 |
|
CC C compiler command |
861 |
|
CFLAGS C compiler flags |
862 |
|
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
863 |
|
nonstandard directory <lib dir> |
864 |
|
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
865 |
|
headers in a nonstandard directory <include dir> |
866 |
|
CPP C preprocessor |
867 |
|
|
868 |
|
Use these variables to override the choices made by `configure' or to help |
869 |
|
it to find libraries and programs with nonstandard names/locations. |
870 |
|
|
871 |
|
_ACEOF |
872 |
|
fi |
873 |
|
|
874 |
|
if test "$ac_init_help" = "recursive"; then |
875 |
|
# If there are subdirs, report their specific --help. |
876 |
|
ac_popdir=`pwd` |
877 |
|
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
878 |
|
test -d $ac_dir || continue |
879 |
|
ac_builddir=. |
880 |
|
|
881 |
|
if test "$ac_dir" != .; then |
882 |
|
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
883 |
|
# A "../" for each directory in $ac_dir_suffix. |
884 |
|
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
885 |
|
else |
886 |
|
ac_dir_suffix= ac_top_builddir= |
887 |
|
fi |
888 |
|
|
889 |
|
case $srcdir in |
890 |
|
.) # No --srcdir option. We are building in place. |
891 |
|
ac_srcdir=. |
892 |
|
if test -z "$ac_top_builddir"; then |
893 |
|
ac_top_srcdir=. |
894 |
|
else |
895 |
|
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
896 |
|
fi ;; |
897 |
|
[\\/]* | ?:[\\/]* ) # Absolute path. |
898 |
|
ac_srcdir=$srcdir$ac_dir_suffix; |
899 |
|
ac_top_srcdir=$srcdir ;; |
900 |
|
*) # Relative path. |
901 |
|
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
902 |
|
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
903 |
|
esac |
904 |
|
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
905 |
|
# absolute. |
906 |
|
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
907 |
|
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
908 |
|
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
909 |
|
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
910 |
|
|
911 |
|
cd $ac_dir |
912 |
|
# Check for guested configure; otherwise get Cygnus style configure. |
913 |
|
if test -f $ac_srcdir/configure.gnu; then |
914 |
|
echo |
915 |
|
$SHELL $ac_srcdir/configure.gnu --help=recursive |
916 |
|
elif test -f $ac_srcdir/configure; then |
917 |
|
echo |
918 |
|
$SHELL $ac_srcdir/configure --help=recursive |
919 |
|
elif test -f $ac_srcdir/configure.ac || |
920 |
|
test -f $ac_srcdir/configure.in; then |
921 |
|
echo |
922 |
|
$ac_configure --help |
923 |
|
else |
924 |
|
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
925 |
|
fi |
926 |
|
cd $ac_popdir |
927 |
|
done |
928 |
|
fi |
929 |
|
|
930 |
|
test -n "$ac_init_help" && exit 0 |
931 |
|
if $ac_init_version; then |
932 |
|
cat <<\_ACEOF |
933 |
|
|
934 |
|
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
935 |
|
Free Software Foundation, Inc. |
936 |
|
This configure script is free software; the Free Software Foundation |
937 |
|
gives unlimited permission to copy, distribute and modify it. |
938 |
|
_ACEOF |
939 |
|
exit 0 |
940 |
|
fi |
941 |
|
exec 5>config.log |
942 |
|
cat >&5 <<_ACEOF |
943 |
|
This file contains any messages produced by compilers while |
944 |
|
running configure, to aid debugging if configure makes a mistake. |
945 |
|
|
946 |
|
It was created by $as_me, which was |
947 |
|
generated by GNU Autoconf 2.57. Invocation command line was |
948 |
|
|
949 |
|
$ $0 $@ |
950 |
|
|
951 |
|
_ACEOF |
952 |
|
{ |
953 |
|
cat <<_ASUNAME |
954 |
|
## --------- ## |
955 |
|
## Platform. ## |
956 |
|
## --------- ## |
957 |
|
|
958 |
|
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
959 |
|
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
960 |
|
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
961 |
|
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
962 |
|
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
963 |
|
|
964 |
|
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
965 |
|
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
966 |
|
|
967 |
|
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
968 |
|
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
969 |
|
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
970 |
|
hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
971 |
|
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
972 |
|
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
973 |
|
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
974 |
|
|
975 |
|
_ASUNAME |
976 |
|
|
977 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
978 |
|
for as_dir in $PATH |
979 |
|
do |
980 |
|
IFS=$as_save_IFS |
981 |
|
test -z "$as_dir" && as_dir=. |
982 |
|
echo "PATH: $as_dir" |
983 |
|
done |
984 |
|
|
985 |
|
} >&5 |
986 |
|
|
987 |
|
cat >&5 <<_ACEOF |
988 |
|
|
989 |
|
|
990 |
|
## ----------- ## |
991 |
|
## Core tests. ## |
992 |
|
## ----------- ## |
993 |
|
|
994 |
|
_ACEOF |
995 |
|
|
996 |
|
|
997 |
|
# Keep a trace of the command line. |
998 |
|
# Strip out --no-create and --no-recursion so they do not pile up. |
999 |
|
# Strip out --silent because we don't want to record it for future runs. |
1000 |
|
# Also quote any args containing shell meta-characters. |
1001 |
|
# Make two passes to allow for proper duplicate-argument suppression. |
1002 |
|
ac_configure_args= |
1003 |
|
ac_configure_args0= |
1004 |
|
ac_configure_args1= |
1005 |
|
ac_sep= |
1006 |
|
ac_must_keep_next=false |
1007 |
|
for ac_pass in 1 2 |
1008 |
|
do |
1009 |
|
for ac_arg |
1010 |
|
do |
1011 |
|
case $ac_arg in |
1012 |
|
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1013 |
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1014 |
|
| -silent | --silent | --silen | --sile | --sil) |
1015 |
|
continue ;; |
1016 |
|
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1017 |
|
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1018 |
|
esac |
1019 |
|
case $ac_pass in |
1020 |
|
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1021 |
|
2) |
1022 |
|
ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1023 |
|
if test $ac_must_keep_next = true; then |
1024 |
|
ac_must_keep_next=false # Got value, back to normal. |
1025 |
|
else |
1026 |
|
case $ac_arg in |
1027 |
|
*=* | --config-cache | -C | -disable-* | --disable-* \ |
1028 |
|
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1029 |
|
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1030 |
|
| -with-* | --with-* | -without-* | --without-* | --x) |
1031 |
|
case "$ac_configure_args0 " in |
1032 |
|
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1033 |
|
esac |
1034 |
|
;; |
1035 |
|
-* ) ac_must_keep_next=true ;; |
1036 |
|
esac |
1037 |
|
fi |
1038 |
|
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
1039 |
|
# Get rid of the leading space. |
1040 |
|
ac_sep=" " |
1041 |
|
;; |
1042 |
|
esac |
1043 |
|
done |
1044 |
|
done |
1045 |
|
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1046 |
|
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1047 |
|
|
1048 |
|
# When interrupted or exit'd, cleanup temporary files, and complete |
1049 |
|
# config.log. We remove comments because anyway the quotes in there |
1050 |
|
# would cause problems or look ugly. |
1051 |
|
# WARNING: Be sure not to use single quotes in there, as some shells, |
1052 |
|
# such as our DU 5.0 friend, will then `close' the trap. |
1053 |
|
trap 'exit_status=$? |
1054 |
|
# Save into config.log some information that might help in debugging. |
1055 |
|
{ |
1056 |
|
echo |
1057 |
|
|
1058 |
|
cat <<\_ASBOX |
1059 |
|
## ---------------- ## |
1060 |
|
## Cache variables. ## |
1061 |
|
## ---------------- ## |
1062 |
|
_ASBOX |
1063 |
|
echo |
1064 |
|
# The following way of writing the cache mishandles newlines in values, |
1065 |
|
{ |
1066 |
|
(set) 2>&1 | |
1067 |
|
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1068 |
|
*ac_space=\ *) |
1069 |
|
sed -n \ |
1070 |
|
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1071 |
|
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
1072 |
|
;; |
1073 |
|
*) |
1074 |
|
sed -n \ |
1075 |
|
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
1076 |
|
;; |
1077 |
|
esac; |
1078 |
|
} |
1079 |
|
echo |
1080 |
|
|
1081 |
|
cat <<\_ASBOX |
1082 |
|
## ----------------- ## |
1083 |
|
## Output variables. ## |
1084 |
|
## ----------------- ## |
1085 |
|
_ASBOX |
1086 |
|
echo |
1087 |
|
for ac_var in $ac_subst_vars |
1088 |
|
do |
1089 |
|
eval ac_val=$`echo $ac_var` |
1090 |
|
echo "$ac_var='"'"'$ac_val'"'"'" |
1091 |
|
done | sort |
1092 |
|
echo |
1093 |
|
|
1094 |
|
if test -n "$ac_subst_files"; then |
1095 |
|
cat <<\_ASBOX |
1096 |
|
## ------------- ## |
1097 |
|
## Output files. ## |
1098 |
|
## ------------- ## |
1099 |
|
_ASBOX |
1100 |
|
echo |
1101 |
|
for ac_var in $ac_subst_files |
1102 |
|
do |
1103 |
|
eval ac_val=$`echo $ac_var` |
1104 |
|
echo "$ac_var='"'"'$ac_val'"'"'" |
1105 |
|
done | sort |
1106 |
|
echo |
1107 |
|
fi |
1108 |
|
|
1109 |
|
if test -s confdefs.h; then |
1110 |
|
cat <<\_ASBOX |
1111 |
|
## ----------- ## |
1112 |
|
## confdefs.h. ## |
1113 |
|
## ----------- ## |
1114 |
|
_ASBOX |
1115 |
|
echo |
1116 |
|
sed "/^$/d" confdefs.h | sort |
1117 |
|
echo |
1118 |
|
fi |
1119 |
|
test "$ac_signal" != 0 && |
1120 |
|
echo "$as_me: caught signal $ac_signal" |
1121 |
|
echo "$as_me: exit $exit_status" |
1122 |
|
} >&5 |
1123 |
|
rm -f core core.* *.core && |
1124 |
|
rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1125 |
|
exit $exit_status |
1126 |
|
' 0 |
1127 |
|
for ac_signal in 1 2 13 15; do |
1128 |
|
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1129 |
|
done |
1130 |
|
ac_signal=0 |
1131 |
|
|
1132 |
|
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
1133 |
|
rm -rf conftest* confdefs.h |
1134 |
|
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
1135 |
|
echo >confdefs.h |
1136 |
|
|
1137 |
|
# Predefined preprocessor variables. |
1138 |
|
|
1139 |
|
cat >>confdefs.h <<_ACEOF |
1140 |
|
#define PACKAGE_NAME "$PACKAGE_NAME" |
1141 |
|
_ACEOF |
1142 |
|
|
1143 |
|
|
1144 |
|
cat >>confdefs.h <<_ACEOF |
1145 |
|
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1146 |
|
_ACEOF |
1147 |
|
|
1148 |
|
|
1149 |
|
cat >>confdefs.h <<_ACEOF |
1150 |
|
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
1151 |
|
_ACEOF |
1152 |
|
|
1153 |
|
|
1154 |
|
cat >>confdefs.h <<_ACEOF |
1155 |
|
#define PACKAGE_STRING "$PACKAGE_STRING" |
1156 |
|
_ACEOF |
1157 |
|
|
1158 |
|
|
1159 |
|
cat >>confdefs.h <<_ACEOF |
1160 |
|
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1161 |
|
_ACEOF |
1162 |
|
|
1163 |
|
|
1164 |
|
# Let the site file select an alternate cache file if it wants to. |
1165 |
# Prefer explicitly selected file to automatically selected ones. |
# Prefer explicitly selected file to automatically selected ones. |
1166 |
if test -z "$CONFIG_SITE"; then |
if test -z "$CONFIG_SITE"; then |
1167 |
if test "x$prefix" != xNONE; then |
if test "x$prefix" != xNONE; then |
1172 |
fi |
fi |
1173 |
for ac_site_file in $CONFIG_SITE; do |
for ac_site_file in $CONFIG_SITE; do |
1174 |
if test -r "$ac_site_file"; then |
if test -r "$ac_site_file"; then |
1175 |
echo "loading site script $ac_site_file" |
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1176 |
|
echo "$as_me: loading site script $ac_site_file" >&6;} |
1177 |
|
sed 's/^/| /' "$ac_site_file" >&5 |
1178 |
. "$ac_site_file" |
. "$ac_site_file" |
1179 |
fi |
fi |
1180 |
done |
done |
1181 |
|
|
1182 |
if test -r "$cache_file"; then |
if test -r "$cache_file"; then |
1183 |
echo "loading cache $cache_file" |
# Some versions of bash will fail to source /dev/null (special |
1184 |
. $cache_file |
# files actually), so we avoid doing that. |
1185 |
|
if test -f "$cache_file"; then |
1186 |
|
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1187 |
|
echo "$as_me: loading cache $cache_file" >&6;} |
1188 |
|
case $cache_file in |
1189 |
|
[\\/]* | ?:[\\/]* ) . $cache_file;; |
1190 |
|
*) . ./$cache_file;; |
1191 |
|
esac |
1192 |
|
fi |
1193 |
else |
else |
1194 |
echo "creating cache $cache_file" |
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1195 |
> $cache_file |
echo "$as_me: creating cache $cache_file" >&6;} |
1196 |
|
>$cache_file |
1197 |
|
fi |
1198 |
|
|
1199 |
|
# Check that the precious variables saved in the cache have kept the same |
1200 |
|
# value. |
1201 |
|
ac_cache_corrupted=false |
1202 |
|
for ac_var in `(set) 2>&1 | |
1203 |
|
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
1204 |
|
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1205 |
|
eval ac_new_set=\$ac_env_${ac_var}_set |
1206 |
|
eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1207 |
|
eval ac_new_val="\$ac_env_${ac_var}_value" |
1208 |
|
case $ac_old_set,$ac_new_set in |
1209 |
|
set,) |
1210 |
|
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1211 |
|
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1212 |
|
ac_cache_corrupted=: ;; |
1213 |
|
,set) |
1214 |
|
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1215 |
|
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1216 |
|
ac_cache_corrupted=: ;; |
1217 |
|
,);; |
1218 |
|
*) |
1219 |
|
if test "x$ac_old_val" != "x$ac_new_val"; then |
1220 |
|
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1221 |
|
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1222 |
|
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1223 |
|
echo "$as_me: former value: $ac_old_val" >&2;} |
1224 |
|
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1225 |
|
echo "$as_me: current value: $ac_new_val" >&2;} |
1226 |
|
ac_cache_corrupted=: |
1227 |
|
fi;; |
1228 |
|
esac |
1229 |
|
# Pass precious variables to config.status. |
1230 |
|
if test "$ac_new_set" = set; then |
1231 |
|
case $ac_new_val in |
1232 |
|
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1233 |
|
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1234 |
|
*) ac_arg=$ac_var=$ac_new_val ;; |
1235 |
|
esac |
1236 |
|
case " $ac_configure_args " in |
1237 |
|
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1238 |
|
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1239 |
|
esac |
1240 |
|
fi |
1241 |
|
done |
1242 |
|
if $ac_cache_corrupted; then |
1243 |
|
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1244 |
|
echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1245 |
|
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1246 |
|
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1247 |
|
{ (exit 1); exit 1; }; } |
1248 |
fi |
fi |
1249 |
|
|
1250 |
ac_ext=c |
ac_ext=c |
|
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
|
1251 |
ac_cpp='$CPP $CPPFLAGS' |
ac_cpp='$CPP $CPPFLAGS' |
1252 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1253 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1254 |
cross_compiling=$ac_cv_prog_cc_cross |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1255 |
|
|
1256 |
ac_exeext= |
|
1257 |
ac_objext=o |
|
1258 |
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then |
|
1259 |
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. |
|
1260 |
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then |
|
1261 |
ac_n= ac_c=' |
|
1262 |
' ac_t=' ' |
|
1263 |
else |
|
1264 |
ac_n=-n ac_c= ac_t= |
|
1265 |
fi |
|
1266 |
else |
|
|
ac_n= ac_c='\c' ac_t= |
|
|
fi |
|
1267 |
|
|
1268 |
|
|
1269 |
|
|
1270 |
|
|
1271 |
|
|
1272 |
|
|
1273 |
|
|
1274 |
|
|
1275 |
|
# This works around the fact that libtool configuration may change LD |
1276 |
|
# for this particular configuration, but some shells, instead of |
1277 |
|
# keeping the changes in LD private, export them just because LD is |
1278 |
|
# exported. We don't use libtool yet, but some day we might, so... |
1279 |
|
ORIGINAL_LD_FOR_MULTILIBS=$LD |
1280 |
|
|
1281 |
|
|
1282 |
# Check whether --with-target-subdir or --without-target-subdir was given. |
# Check whether --with-target-subdir or --without-target-subdir was given. |
1283 |
if test "${with_target_subdir+set}" = set; then |
if test "${with_target_subdir+set}" = set; then |
1284 |
withval="$with_target_subdir" |
withval="$with_target_subdir" |
1285 |
: |
|
1286 |
fi |
fi; |
1287 |
|
|
1288 |
|
# Check whether --with-build-subdir or --without-build-subdir was given. |
1289 |
|
if test "${with_build_subdir+set}" = set; then |
1290 |
|
withval="$with_build_subdir" |
1291 |
|
|
1292 |
|
fi; |
1293 |
|
|
1294 |
# Check whether --with-cross-host or --without-cross-host was given. |
# Check whether --with-cross-host or --without-cross-host was given. |
1295 |
if test "${with_cross_host+set}" = set; then |
if test "${with_cross_host+set}" = set; then |
1296 |
withval="$with_cross_host" |
withval="$with_cross_host" |
1297 |
: |
|
1298 |
fi |
fi; |
1299 |
|
|
1300 |
# Check whether --with-newlib or --without-newlib was given. |
# Check whether --with-newlib or --without-newlib was given. |
1301 |
if test "${with_newlib+set}" = set; then |
if test "${with_newlib+set}" = set; then |
1302 |
withval="$with_newlib" |
withval="$with_newlib" |
|
: |
|
|
fi |
|
1303 |
|
|
1304 |
|
fi; |
1305 |
|
|
1306 |
if test "${srcdir}" = "."; then |
if test "${srcdir}" = "."; then |
1307 |
if test -z "${with_target_subdir}"; then |
if test -n "${with_build_subdir}"; then |
1308 |
|
libiberty_topdir="${srcdir}/../.." |
1309 |
|
with_target_subdir= |
1310 |
|
elif test -z "${with_target_subdir}"; then |
1311 |
libiberty_topdir="${srcdir}/.." |
libiberty_topdir="${srcdir}/.." |
1312 |
else |
else |
1313 |
if test "${with_target_subdir}" != "."; then |
if test "${with_target_subdir}" != "."; then |
1319 |
else |
else |
1320 |
libiberty_topdir="${srcdir}/.." |
libiberty_topdir="${srcdir}/.." |
1321 |
fi |
fi |
1322 |
|
|
1323 |
ac_aux_dir= |
ac_aux_dir= |
1324 |
for ac_dir in $libiberty_topdir $srcdir/$libiberty_topdir; do |
for ac_dir in $libiberty_topdir $srcdir/$libiberty_topdir; do |
1325 |
if test -f $ac_dir/install-sh; then |
if test -f $ac_dir/install-sh; then |
1330 |
ac_aux_dir=$ac_dir |
ac_aux_dir=$ac_dir |
1331 |
ac_install_sh="$ac_aux_dir/install.sh -c" |
ac_install_sh="$ac_aux_dir/install.sh -c" |
1332 |
break |
break |
1333 |
|
elif test -f $ac_dir/shtool; then |
1334 |
|
ac_aux_dir=$ac_dir |
1335 |
|
ac_install_sh="$ac_aux_dir/shtool install -c" |
1336 |
|
break |
1337 |
fi |
fi |
1338 |
done |
done |
1339 |
if test -z "$ac_aux_dir"; then |
if test -z "$ac_aux_dir"; then |
1340 |
{ echo "configure: error: can not find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" 1>&2; exit 1; } |
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&5 |
1341 |
|
echo "$as_me: error: cannot find install-sh or install.sh in $libiberty_topdir $srcdir/$libiberty_topdir" >&2;} |
1342 |
|
{ (exit 1); exit 1; }; } |
1343 |
fi |
fi |
1344 |
ac_config_guess=$ac_aux_dir/config.guess |
ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1345 |
ac_config_sub=$ac_aux_dir/config.sub |
ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
1346 |
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. |
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
1347 |
|
|
1348 |
|
|
1349 |
|
|
1350 |
# Make sure we can run config.sub. |
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
1351 |
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : |
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
1352 |
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } |
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
1353 |
fi |
if test "${enable_maintainer_mode+set}" = set; then |
1354 |
|
enableval="$enable_maintainer_mode" |
1355 |
|
maintainer_mode=$enableval |
1356 |
|
else |
1357 |
|
maintainer_mode=no |
1358 |
|
fi; |
1359 |
|
|
1360 |
echo $ac_n "checking host system type""... $ac_c" 1>&6 |
echo "$as_me:$LINENO: result: $maintainer_mode" >&5 |
1361 |
echo "configure:591: checking host system type" >&5 |
echo "${ECHO_T}$maintainer_mode" >&6 |
1362 |
|
|
1363 |
host_alias=$host |
if test "$maintainer_mode" = "yes"; then |
1364 |
case "$host_alias" in |
MAINT='' |
1365 |
NONE) |
NOTMAINT='#' |
1366 |
case $nonopt in |
else |
1367 |
NONE) |
MAINT='#' |
1368 |
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : |
NOTMAINT='' |
1369 |
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } |
fi |
1370 |
fi ;; |
|
1371 |
*) host_alias=$nonopt ;; |
# Do we have a single-tree copy of texinfo? Even if we do, we can't |
1372 |
esac ;; |
# rely on it - libiberty is built before texinfo. |
1373 |
esac |
# Extract the first word of "makeinfo", so it can be a program name with args. |
1374 |
|
set dummy makeinfo; ac_word=$2 |
1375 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1376 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1377 |
|
if test "${ac_cv_prog_MAKEINFO+set}" = set; then |
1378 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1379 |
|
else |
1380 |
|
if test -n "$MAKEINFO"; then |
1381 |
|
ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
1382 |
|
else |
1383 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1384 |
|
for as_dir in $PATH |
1385 |
|
do |
1386 |
|
IFS=$as_save_IFS |
1387 |
|
test -z "$as_dir" && as_dir=. |
1388 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
1389 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1390 |
|
ac_cv_prog_MAKEINFO="makeinfo" |
1391 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1392 |
|
break 2 |
1393 |
|
fi |
1394 |
|
done |
1395 |
|
done |
1396 |
|
|
1397 |
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` |
fi |
1398 |
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
fi |
1399 |
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
MAKEINFO=$ac_cv_prog_MAKEINFO |
1400 |
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
if test -n "$MAKEINFO"; then |
1401 |
echo "$ac_t""$host" 1>&6 |
echo "$as_me:$LINENO: result: $MAKEINFO" >&5 |
1402 |
|
echo "${ECHO_T}$MAKEINFO" >&6 |
1403 |
|
else |
1404 |
|
echo "$as_me:$LINENO: result: no" >&5 |
1405 |
|
echo "${ECHO_T}no" >&6 |
1406 |
|
fi |
1407 |
|
|
1408 |
|
if test "x$MAKEINFO" = "x"; then |
1409 |
|
MAKEINFO="@echo makeinfo missing; true" |
1410 |
|
BUILD_INFO= |
1411 |
|
else |
1412 |
|
BUILD_INFO=info |
1413 |
|
case "$MAKEINFO" in |
1414 |
|
*/missing\ makeinfo*) |
1415 |
|
BUILD_INFO= |
1416 |
|
{ echo "$as_me:$LINENO: WARNING: |
1417 |
|
*** Makeinfo is missing. Info documentation will not be built." >&5 |
1418 |
|
echo "$as_me: WARNING: |
1419 |
|
*** Makeinfo is missing. Info documentation will not be built." >&2;} |
1420 |
|
;; |
1421 |
|
*) |
1422 |
|
case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in |
1423 |
|
x*\ [1-3].* ) |
1424 |
|
MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true" |
1425 |
|
BUILD_INFO= |
1426 |
|
{ echo "$as_me:$LINENO: WARNING: |
1427 |
|
*** Makeinfo is too old. Info documentation will not be built." >&5 |
1428 |
|
echo "$as_me: WARNING: |
1429 |
|
*** Makeinfo is too old. Info documentation will not be built." >&2;} |
1430 |
|
;; |
1431 |
|
esac |
1432 |
|
;; |
1433 |
|
esac |
1434 |
|
fi |
1435 |
|
|
1436 |
|
|
1437 |
|
|
1438 |
echo $ac_n "checking build system type""... $ac_c" 1>&6 |
# Extract the first word of "perl", so it can be a program name with args. |
1439 |
echo "configure:614: checking build system type" >&5 |
set dummy perl; ac_word=$2 |
1440 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1441 |
build_alias=$build |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1442 |
case "$build_alias" in |
if test "${ac_cv_prog_PERL+set}" = set; then |
1443 |
NONE) |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1444 |
case $nonopt in |
else |
1445 |
NONE) build_alias=$host_alias ;; |
if test -n "$PERL"; then |
1446 |
*) build_alias=$nonopt ;; |
ac_cv_prog_PERL="$PERL" # Let the user override the test. |
1447 |
esac ;; |
else |
1448 |
esac |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1449 |
|
for as_dir in $PATH |
1450 |
|
do |
1451 |
|
IFS=$as_save_IFS |
1452 |
|
test -z "$as_dir" && as_dir=. |
1453 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
1454 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1455 |
|
ac_cv_prog_PERL="perl" |
1456 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1457 |
|
break 2 |
1458 |
|
fi |
1459 |
|
done |
1460 |
|
done |
1461 |
|
|
1462 |
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` |
fi |
1463 |
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
fi |
1464 |
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
PERL=$ac_cv_prog_PERL |
1465 |
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
if test -n "$PERL"; then |
1466 |
echo "$ac_t""$build" 1>&6 |
echo "$as_me:$LINENO: result: $PERL" >&5 |
1467 |
|
echo "${ECHO_T}$PERL" >&6 |
1468 |
|
else |
1469 |
|
echo "$as_me:$LINENO: result: no" >&5 |
1470 |
|
echo "${ECHO_T}no" >&6 |
1471 |
|
fi |
1472 |
|
|
1473 |
if test $host != $build; then |
if test x"$PERL" = x""; then |
1474 |
ac_tool_prefix=${host_alias}- |
HAVE_PERL='#' |
1475 |
else |
else |
1476 |
ac_tool_prefix= |
HAVE_PERL='' |
1477 |
fi |
fi |
1478 |
|
|
1479 |
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
|
1480 |
|
# Make sure we can run config.sub. |
1481 |
|
$ac_config_sub sun4 >/dev/null 2>&1 || |
1482 |
|
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
1483 |
|
echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
1484 |
|
{ (exit 1); exit 1; }; } |
1485 |
|
|
1486 |
|
echo "$as_me:$LINENO: checking build system type" >&5 |
1487 |
|
echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
1488 |
|
if test "${ac_cv_build+set}" = set; then |
1489 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1490 |
|
else |
1491 |
|
ac_cv_build_alias=$build_alias |
1492 |
|
test -z "$ac_cv_build_alias" && |
1493 |
|
ac_cv_build_alias=`$ac_config_guess` |
1494 |
|
test -z "$ac_cv_build_alias" && |
1495 |
|
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
1496 |
|
echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
1497 |
|
{ (exit 1); exit 1; }; } |
1498 |
|
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
1499 |
|
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
1500 |
|
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
1501 |
|
{ (exit 1); exit 1; }; } |
1502 |
|
|
1503 |
|
fi |
1504 |
|
echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
1505 |
|
echo "${ECHO_T}$ac_cv_build" >&6 |
1506 |
|
build=$ac_cv_build |
1507 |
|
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1508 |
|
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
1509 |
|
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
1510 |
|
|
1511 |
|
|
1512 |
|
echo "$as_me:$LINENO: checking host system type" >&5 |
1513 |
|
echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
1514 |
|
if test "${ac_cv_host+set}" = set; then |
1515 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1516 |
|
else |
1517 |
|
ac_cv_host_alias=$host_alias |
1518 |
|
test -z "$ac_cv_host_alias" && |
1519 |
|
ac_cv_host_alias=$ac_cv_build_alias |
1520 |
|
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
1521 |
|
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
1522 |
|
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
1523 |
|
{ (exit 1); exit 1; }; } |
1524 |
|
|
1525 |
|
fi |
1526 |
|
echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
1527 |
|
echo "${ECHO_T}$ac_cv_host" >&6 |
1528 |
|
host=$ac_cv_host |
1529 |
|
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
1530 |
|
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
1531 |
|
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
1532 |
|
|
1533 |
|
|
1534 |
|
|
1535 |
|
|
1536 |
|
if test -n "$ac_tool_prefix"; then |
1537 |
|
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
1538 |
set dummy ${ac_tool_prefix}ar; ac_word=$2 |
set dummy ${ac_tool_prefix}ar; ac_word=$2 |
1539 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1540 |
echo "configure:640: checking for $ac_word" >&5 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1541 |
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then |
if test "${ac_cv_prog_AR+set}" = set; then |
1542 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1543 |
else |
else |
1544 |
if test -n "$AR"; then |
if test -n "$AR"; then |
1545 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
ac_cv_prog_AR="$AR" # Let the user override the test. |
1546 |
else |
else |
1547 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1548 |
ac_dummy="$PATH" |
for as_dir in $PATH |
1549 |
for ac_dir in $ac_dummy; do |
do |
1550 |
test -z "$ac_dir" && ac_dir=. |
IFS=$as_save_IFS |
1551 |
if test -f $ac_dir/$ac_word; then |
test -z "$as_dir" && as_dir=. |
1552 |
ac_cv_prog_AR="${ac_tool_prefix}ar" |
for ac_exec_ext in '' $ac_executable_extensions; do |
1553 |
break |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1554 |
fi |
ac_cv_prog_AR="${ac_tool_prefix}ar" |
1555 |
done |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1556 |
IFS="$ac_save_ifs" |
break 2 |
1557 |
test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
fi |
1558 |
|
done |
1559 |
|
done |
1560 |
|
|
1561 |
fi |
fi |
1562 |
fi |
fi |
1563 |
AR="$ac_cv_prog_AR" |
AR=$ac_cv_prog_AR |
1564 |
if test -n "$AR"; then |
if test -n "$AR"; then |
1565 |
echo "$ac_t""$AR" 1>&6 |
echo "$as_me:$LINENO: result: $AR" >&5 |
1566 |
|
echo "${ECHO_T}$AR" >&6 |
1567 |
else |
else |
1568 |
echo "$ac_t""no" 1>&6 |
echo "$as_me:$LINENO: result: no" >&5 |
1569 |
|
echo "${ECHO_T}no" >&6 |
1570 |
fi |
fi |
1571 |
|
|
1572 |
|
fi |
1573 |
|
if test -z "$ac_cv_prog_AR"; then |
1574 |
|
ac_ct_AR=$AR |
1575 |
|
# Extract the first word of "ar", so it can be a program name with args. |
1576 |
|
set dummy ar; ac_word=$2 |
1577 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1578 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1579 |
|
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
1580 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1581 |
|
else |
1582 |
|
if test -n "$ac_ct_AR"; then |
1583 |
|
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
1584 |
|
else |
1585 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1586 |
|
for as_dir in $PATH |
1587 |
|
do |
1588 |
|
IFS=$as_save_IFS |
1589 |
|
test -z "$as_dir" && as_dir=. |
1590 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
1591 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1592 |
|
ac_cv_prog_ac_ct_AR="ar" |
1593 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1594 |
|
break 2 |
1595 |
|
fi |
1596 |
|
done |
1597 |
|
done |
1598 |
|
|
1599 |
|
fi |
1600 |
|
fi |
1601 |
|
ac_ct_AR=$ac_cv_prog_ac_ct_AR |
1602 |
|
if test -n "$ac_ct_AR"; then |
1603 |
|
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
1604 |
|
echo "${ECHO_T}$ac_ct_AR" >&6 |
1605 |
|
else |
1606 |
|
echo "$as_me:$LINENO: result: no" >&5 |
1607 |
|
echo "${ECHO_T}no" >&6 |
1608 |
|
fi |
1609 |
|
|
1610 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
AR=$ac_ct_AR |
1611 |
|
else |
1612 |
|
AR="$ac_cv_prog_AR" |
1613 |
|
fi |
1614 |
|
|
1615 |
|
if test -n "$ac_tool_prefix"; then |
1616 |
|
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
1617 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
1618 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1619 |
echo "configure:672: checking for $ac_word" >&5 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1620 |
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
if test "${ac_cv_prog_RANLIB+set}" = set; then |
1621 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1622 |
else |
else |
1623 |
if test -n "$RANLIB"; then |
if test -n "$RANLIB"; then |
1624 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
1625 |
else |
else |
1626 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1627 |
ac_dummy="$PATH" |
for as_dir in $PATH |
1628 |
for ac_dir in $ac_dummy; do |
do |
1629 |
test -z "$ac_dir" && ac_dir=. |
IFS=$as_save_IFS |
1630 |
if test -f $ac_dir/$ac_word; then |
test -z "$as_dir" && as_dir=. |
1631 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
for ac_exec_ext in '' $ac_executable_extensions; do |
1632 |
break |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1633 |
fi |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
1634 |
done |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1635 |
IFS="$ac_save_ifs" |
break 2 |
1636 |
|
fi |
1637 |
|
done |
1638 |
|
done |
1639 |
|
|
1640 |
fi |
fi |
1641 |
fi |
fi |
1642 |
RANLIB="$ac_cv_prog_RANLIB" |
RANLIB=$ac_cv_prog_RANLIB |
1643 |
if test -n "$RANLIB"; then |
if test -n "$RANLIB"; then |
1644 |
echo "$ac_t""$RANLIB" 1>&6 |
echo "$as_me:$LINENO: result: $RANLIB" >&5 |
1645 |
|
echo "${ECHO_T}$RANLIB" >&6 |
1646 |
else |
else |
1647 |
echo "$ac_t""no" 1>&6 |
echo "$as_me:$LINENO: result: no" >&5 |
1648 |
|
echo "${ECHO_T}no" >&6 |
1649 |
fi |
fi |
1650 |
|
|
1651 |
|
fi |
1652 |
if test -z "$ac_cv_prog_RANLIB"; then |
if test -z "$ac_cv_prog_RANLIB"; then |
1653 |
if test -n "$ac_tool_prefix"; then |
ac_ct_RANLIB=$RANLIB |
1654 |
# Extract the first word of "ranlib", so it can be a program name with args. |
# Extract the first word of "ranlib", so it can be a program name with args. |
1655 |
set dummy ranlib; ac_word=$2 |
set dummy ranlib; ac_word=$2 |
1656 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1657 |
echo "configure:704: checking for $ac_word" >&5 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1658 |
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
1659 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1660 |
else |
else |
1661 |
if test -n "$RANLIB"; then |
if test -n "$ac_ct_RANLIB"; then |
1662 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
1663 |
else |
else |
1664 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1665 |
ac_dummy="$PATH" |
for as_dir in $PATH |
1666 |
for ac_dir in $ac_dummy; do |
do |
1667 |
test -z "$ac_dir" && ac_dir=. |
IFS=$as_save_IFS |
1668 |
if test -f $ac_dir/$ac_word; then |
test -z "$as_dir" && as_dir=. |
1669 |
ac_cv_prog_RANLIB="ranlib" |
for ac_exec_ext in '' $ac_executable_extensions; do |
1670 |
break |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1671 |
fi |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
1672 |
done |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1673 |
IFS="$ac_save_ifs" |
break 2 |
1674 |
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" |
fi |
1675 |
|
done |
1676 |
|
done |
1677 |
|
|
1678 |
|
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
1679 |
fi |
fi |
1680 |
fi |
fi |
1681 |
RANLIB="$ac_cv_prog_RANLIB" |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
1682 |
if test -n "$RANLIB"; then |
if test -n "$ac_ct_RANLIB"; then |
1683 |
echo "$ac_t""$RANLIB" 1>&6 |
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
1684 |
|
echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
1685 |
else |
else |
1686 |
echo "$ac_t""no" 1>&6 |
echo "$as_me:$LINENO: result: no" >&5 |
1687 |
|
echo "${ECHO_T}no" >&6 |
1688 |
fi |
fi |
1689 |
|
|
1690 |
|
RANLIB=$ac_ct_RANLIB |
1691 |
else |
else |
1692 |
RANLIB=":" |
RANLIB="$ac_cv_prog_RANLIB" |
|
fi |
|
1693 |
fi |
fi |
1694 |
|
|
1695 |
|
|
1696 |
|
|
1697 |
# Extract the first word of "gcc", so it can be a program name with args. |
ac_ext=c |
1698 |
|
ac_cpp='$CPP $CPPFLAGS' |
1699 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1700 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1701 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1702 |
|
if test -n "$ac_tool_prefix"; then |
1703 |
|
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
1704 |
|
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
1705 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1706 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1707 |
|
if test "${ac_cv_prog_CC+set}" = set; then |
1708 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1709 |
|
else |
1710 |
|
if test -n "$CC"; then |
1711 |
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
1712 |
|
else |
1713 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1714 |
|
for as_dir in $PATH |
1715 |
|
do |
1716 |
|
IFS=$as_save_IFS |
1717 |
|
test -z "$as_dir" && as_dir=. |
1718 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
1719 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1720 |
|
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1721 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1722 |
|
break 2 |
1723 |
|
fi |
1724 |
|
done |
1725 |
|
done |
1726 |
|
|
1727 |
|
fi |
1728 |
|
fi |
1729 |
|
CC=$ac_cv_prog_CC |
1730 |
|
if test -n "$CC"; then |
1731 |
|
echo "$as_me:$LINENO: result: $CC" >&5 |
1732 |
|
echo "${ECHO_T}$CC" >&6 |
1733 |
|
else |
1734 |
|
echo "$as_me:$LINENO: result: no" >&5 |
1735 |
|
echo "${ECHO_T}no" >&6 |
1736 |
|
fi |
1737 |
|
|
1738 |
|
fi |
1739 |
|
if test -z "$ac_cv_prog_CC"; then |
1740 |
|
ac_ct_CC=$CC |
1741 |
|
# Extract the first word of "gcc", so it can be a program name with args. |
1742 |
set dummy gcc; ac_word=$2 |
set dummy gcc; ac_word=$2 |
1743 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1744 |
echo "configure:741: checking for $ac_word" >&5 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1745 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1746 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1747 |
|
else |
1748 |
|
if test -n "$ac_ct_CC"; then |
1749 |
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1750 |
|
else |
1751 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1752 |
|
for as_dir in $PATH |
1753 |
|
do |
1754 |
|
IFS=$as_save_IFS |
1755 |
|
test -z "$as_dir" && as_dir=. |
1756 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
1757 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1758 |
|
ac_cv_prog_ac_ct_CC="gcc" |
1759 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1760 |
|
break 2 |
1761 |
|
fi |
1762 |
|
done |
1763 |
|
done |
1764 |
|
|
1765 |
|
fi |
1766 |
|
fi |
1767 |
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1768 |
|
if test -n "$ac_ct_CC"; then |
1769 |
|
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1770 |
|
echo "${ECHO_T}$ac_ct_CC" >&6 |
1771 |
|
else |
1772 |
|
echo "$as_me:$LINENO: result: no" >&5 |
1773 |
|
echo "${ECHO_T}no" >&6 |
1774 |
|
fi |
1775 |
|
|
1776 |
|
CC=$ac_ct_CC |
1777 |
|
else |
1778 |
|
CC="$ac_cv_prog_CC" |
1779 |
|
fi |
1780 |
|
|
1781 |
|
if test -z "$CC"; then |
1782 |
|
if test -n "$ac_tool_prefix"; then |
1783 |
|
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
1784 |
|
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
1785 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1786 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1787 |
|
if test "${ac_cv_prog_CC+set}" = set; then |
1788 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1789 |
else |
else |
1790 |
if test -n "$CC"; then |
if test -n "$CC"; then |
1791 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1792 |
else |
else |
1793 |
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1794 |
ac_dummy="$PATH" |
for as_dir in $PATH |
1795 |
for ac_dir in $ac_dummy; do |
do |
1796 |
test -z "$ac_dir" && ac_dir=. |
IFS=$as_save_IFS |
1797 |
if test -f $ac_dir/$ac_word; then |
test -z "$as_dir" && as_dir=. |
1798 |
ac_cv_prog_CC="gcc" |
for ac_exec_ext in '' $ac_executable_extensions; do |
1799 |
break |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1800 |
fi |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
1801 |
done |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1802 |
IFS="$ac_save_ifs" |
break 2 |
1803 |
|
fi |
1804 |
|
done |
1805 |
|
done |
1806 |
|
|
1807 |
fi |
fi |
1808 |
fi |
fi |
1809 |
CC="$ac_cv_prog_CC" |
CC=$ac_cv_prog_CC |
1810 |
if test -n "$CC"; then |
if test -n "$CC"; then |
1811 |
echo "$ac_t""$CC" 1>&6 |
echo "$as_me:$LINENO: result: $CC" >&5 |
1812 |
|
echo "${ECHO_T}$CC" >&6 |
1813 |
|
else |
1814 |
|
echo "$as_me:$LINENO: result: no" >&5 |
1815 |
|
echo "${ECHO_T}no" >&6 |
1816 |
|
fi |
1817 |
|
|
1818 |
|
fi |
1819 |
|
if test -z "$ac_cv_prog_CC"; then |
1820 |
|
ac_ct_CC=$CC |
1821 |
|
# Extract the first word of "cc", so it can be a program name with args. |
1822 |
|
set dummy cc; ac_word=$2 |
1823 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1824 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1825 |
|
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1826 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1827 |
|
else |
1828 |
|
if test -n "$ac_ct_CC"; then |
1829 |
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1830 |
|
else |
1831 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1832 |
|
for as_dir in $PATH |
1833 |
|
do |
1834 |
|
IFS=$as_save_IFS |
1835 |
|
test -z "$as_dir" && as_dir=. |
1836 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
1837 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1838 |
|
ac_cv_prog_ac_ct_CC="cc" |
1839 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1840 |
|
break 2 |
1841 |
|
fi |
1842 |
|
done |
1843 |
|
done |
1844 |
|
|
1845 |
|
fi |
1846 |
|
fi |
1847 |
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1848 |
|
if test -n "$ac_ct_CC"; then |
1849 |
|
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1850 |
|
echo "${ECHO_T}$ac_ct_CC" >&6 |
1851 |
|
else |
1852 |
|
echo "$as_me:$LINENO: result: no" >&5 |
1853 |
|
echo "${ECHO_T}no" >&6 |
1854 |
|
fi |
1855 |
|
|
1856 |
|
CC=$ac_ct_CC |
1857 |
else |
else |
1858 |
echo "$ac_t""no" 1>&6 |
CC="$ac_cv_prog_CC" |
1859 |
fi |
fi |
1860 |
|
|
1861 |
|
fi |
1862 |
if test -z "$CC"; then |
if test -z "$CC"; then |
1863 |
# Extract the first word of "cc", so it can be a program name with args. |
# Extract the first word of "cc", so it can be a program name with args. |
1864 |
set dummy cc; ac_word=$2 |
set dummy cc; ac_word=$2 |
1865 |
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1866 |
echo "configure:771: checking for $ac_word" >&5 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1867 |
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
if test "${ac_cv_prog_CC+set}" = set; then |
1868 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1869 |
else |
else |
1870 |
if test -n "$CC"; then |
if test -n "$CC"; then |
1871 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
ac_cv_prog_CC="$CC" # Let the user override the test. |
1872 |
else |
else |
|
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
|
1873 |
ac_prog_rejected=no |
ac_prog_rejected=no |
1874 |
ac_dummy="$PATH" |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1875 |
for ac_dir in $ac_dummy; do |
for as_dir in $PATH |
1876 |
test -z "$ac_dir" && ac_dir=. |
do |
1877 |
if test -f $ac_dir/$ac_word; then |
IFS=$as_save_IFS |
1878 |
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then |
test -z "$as_dir" && as_dir=. |
1879 |
ac_prog_rejected=yes |
for ac_exec_ext in '' $ac_executable_extensions; do |
1880 |
continue |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1881 |
fi |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1882 |
ac_cv_prog_CC="cc" |
ac_prog_rejected=yes |
1883 |
break |
continue |
1884 |
fi |
fi |
1885 |
done |
ac_cv_prog_CC="cc" |
1886 |
IFS="$ac_save_ifs" |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1887 |
|
break 2 |
1888 |
|
fi |
1889 |
|
done |
1890 |
|
done |
1891 |
|
|
1892 |
if test $ac_prog_rejected = yes; then |
if test $ac_prog_rejected = yes; then |
1893 |
# We found a bogon in the path, so make sure we never use it. |
# We found a bogon in the path, so make sure we never use it. |
1894 |
set dummy $ac_cv_prog_CC |
set dummy $ac_cv_prog_CC |
1895 |
shift |
shift |
1896 |
if test $# -gt 0; then |
if test $# != 0; then |
1897 |
# We chose a different compiler from the bogus one. |
# We chose a different compiler from the bogus one. |
1898 |
# However, it has the same basename, so the bogon will be chosen |
# However, it has the same basename, so the bogon will be chosen |
1899 |
# first if we set CC to just the basename; use the full file name. |
# first if we set CC to just the basename; use the full file name. |
1900 |
shift |
shift |
1901 |
set dummy "$ac_dir/$ac_word" "$@" |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
|
shift |
|
|
ac_cv_prog_CC="$@" |
|
1902 |
fi |
fi |
1903 |
fi |
fi |
1904 |
fi |
fi |
1905 |
fi |
fi |
1906 |
CC="$ac_cv_prog_CC" |
CC=$ac_cv_prog_CC |
1907 |
if test -n "$CC"; then |
if test -n "$CC"; then |
1908 |
echo "$ac_t""$CC" 1>&6 |
echo "$as_me:$LINENO: result: $CC" >&5 |
1909 |
|
echo "${ECHO_T}$CC" >&6 |
1910 |
else |
else |
1911 |
echo "$ac_t""no" 1>&6 |
echo "$as_me:$LINENO: result: no" >&5 |
1912 |
|
echo "${ECHO_T}no" >&6 |
1913 |
fi |
fi |
1914 |
|
|
|
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } |
|
1915 |
fi |
fi |
1916 |
|
if test -z "$CC"; then |
1917 |
|
if test -n "$ac_tool_prefix"; then |
1918 |
|
for ac_prog in cl |
1919 |
|
do |
1920 |
|
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
1921 |
|
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
1922 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1923 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1924 |
|
if test "${ac_cv_prog_CC+set}" = set; then |
1925 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1926 |
|
else |
1927 |
|
if test -n "$CC"; then |
1928 |
|
ac_cv_prog_CC="$CC" # Let the user override the test. |
1929 |
|
else |
1930 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1931 |
|
for as_dir in $PATH |
1932 |
|
do |
1933 |
|
IFS=$as_save_IFS |
1934 |
|
test -z "$as_dir" && as_dir=. |
1935 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
1936 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1937 |
|
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1938 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1939 |
|
break 2 |
1940 |
|
fi |
1941 |
|
done |
1942 |
|
done |
1943 |
|
|
1944 |
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 |
fi |
1945 |
echo "configure:820: checking whether we are using GNU C" >&5 |
fi |
1946 |
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
CC=$ac_cv_prog_CC |
1947 |
echo $ac_n "(cached) $ac_c" 1>&6 |
if test -n "$CC"; then |
1948 |
|
echo "$as_me:$LINENO: result: $CC" >&5 |
1949 |
|
echo "${ECHO_T}$CC" >&6 |
1950 |
else |
else |
1951 |
cat > conftest.c <<EOF |
echo "$as_me:$LINENO: result: no" >&5 |
1952 |
#ifdef __GNUC__ |
echo "${ECHO_T}no" >&6 |
1953 |
yes; |
fi |
1954 |
#endif |
|
1955 |
EOF |
test -n "$CC" && break |
1956 |
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
done |
1957 |
ac_cv_prog_gcc=yes |
fi |
1958 |
|
if test -z "$CC"; then |
1959 |
|
ac_ct_CC=$CC |
1960 |
|
for ac_prog in cl |
1961 |
|
do |
1962 |
|
# Extract the first word of "$ac_prog", so it can be a program name with args. |
1963 |
|
set dummy $ac_prog; ac_word=$2 |
1964 |
|
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1965 |
|
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1966 |
|
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1967 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
1968 |
|
else |
1969 |
|
if test -n "$ac_ct_CC"; then |
1970 |
|
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
1971 |
else |
else |
1972 |
ac_cv_prog_gcc=no |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1973 |
|
for as_dir in $PATH |
1974 |
|
do |
1975 |
|
IFS=$as_save_IFS |
1976 |
|
test -z "$as_dir" && as_dir=. |
1977 |
|
for ac_exec_ext in '' $ac_executable_extensions; do |
1978 |
|
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
1979 |
|
ac_cv_prog_ac_ct_CC="$ac_prog" |
1980 |
|
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
1981 |
|
break 2 |
1982 |
|
fi |
1983 |
|
done |
1984 |
|
done |
1985 |
|
|
1986 |
fi |
fi |
1987 |
fi |
fi |
1988 |
|
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1989 |
|
if test -n "$ac_ct_CC"; then |
1990 |
|
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1991 |
|
echo "${ECHO_T}$ac_ct_CC" >&6 |
1992 |
|
else |
1993 |
|
echo "$as_me:$LINENO: result: no" >&5 |
1994 |
|
echo "${ECHO_T}no" >&6 |
1995 |
|
fi |
1996 |
|
|
1997 |
echo "$ac_t""$ac_cv_prog_gcc" 1>&6 |
test -n "$ac_ct_CC" && break |
1998 |
|
done |
1999 |
|
|
2000 |
if test $ac_cv_prog_gcc = yes; then |
CC=$ac_ct_CC |
2001 |
GCC=yes |
fi |
2002 |
ac_libiberty_warn_cflags='-W -Wall -Wtraditional -pedantic' |
|
2003 |
ac_test_CFLAGS="${CFLAGS+set}" |
fi |
2004 |
ac_save_CFLAGS="$CFLAGS" |
|
2005 |
CFLAGS= |
|
2006 |
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2007 |
echo "configure:845: checking whether ${CC-cc} accepts -g" >&5 |
See \`config.log' for more details." >&5 |
2008 |
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
echo "$as_me: error: no acceptable C compiler found in \$PATH |
2009 |
echo $ac_n "(cached) $ac_c" 1>&6 |
See \`config.log' for more details." >&2;} |
2010 |
|
{ (exit 1); exit 1; }; } |
2011 |
|
|
2012 |
|
# Provide some information about the compiler. |
2013 |
|
echo "$as_me:$LINENO:" \ |
2014 |
|
"checking for C compiler version" >&5 |
2015 |
|
ac_compiler=`set X $ac_compile; echo $2` |
2016 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
2017 |
|
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
2018 |
|
ac_status=$? |
2019 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2020 |
|
(exit $ac_status); } |
2021 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
2022 |
|
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
2023 |
|
ac_status=$? |
2024 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2025 |
|
(exit $ac_status); } |
2026 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
2027 |
|
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
2028 |
|
ac_status=$? |
2029 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2030 |
|
(exit $ac_status); } |
2031 |
|
|
2032 |
|
cat >conftest.$ac_ext <<_ACEOF |
2033 |
|
#line $LINENO "configure" |
2034 |
|
/* confdefs.h. */ |
2035 |
|
_ACEOF |
2036 |
|
cat confdefs.h >>conftest.$ac_ext |
2037 |
|
cat >>conftest.$ac_ext <<_ACEOF |
2038 |
|
/* end confdefs.h. */ |
2039 |
|
|
2040 |
|
int |
2041 |
|
main () |
2042 |
|
{ |
2043 |
|
|
2044 |
|
; |
2045 |
|
return 0; |
2046 |
|
} |
2047 |
|
_ACEOF |
2048 |
|
# FIXME: Cleanup? |
2049 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2050 |
|
(eval $ac_link) 2>&5 |
2051 |
|
ac_status=$? |
2052 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2053 |
|
(exit $ac_status); }; then |
2054 |
|
gcc_no_link=no |
2055 |
|
else |
2056 |
|
gcc_no_link=yes |
2057 |
|
fi |
2058 |
|
|
2059 |
|
if test x$gcc_no_link = xyes; then |
2060 |
|
# Setting cross_compile will disable run tests; it will |
2061 |
|
# also disable AC_CHECK_FILE but that's generally |
2062 |
|
# correct if we can't link. |
2063 |
|
cross_compiling=yes |
2064 |
|
EXEEXT= |
2065 |
|
else |
2066 |
|
cat >conftest.$ac_ext <<_ACEOF |
2067 |
|
#line $LINENO "configure" |
2068 |
|
/* confdefs.h. */ |
2069 |
|
_ACEOF |
2070 |
|
cat confdefs.h >>conftest.$ac_ext |
2071 |
|
cat >>conftest.$ac_ext <<_ACEOF |
2072 |
|
/* end confdefs.h. */ |
2073 |
|
|
2074 |
|
int |
2075 |
|
main () |
2076 |
|
{ |
2077 |
|
|
2078 |
|
; |
2079 |
|
return 0; |
2080 |
|
} |
2081 |
|
_ACEOF |
2082 |
|
ac_clean_files_save=$ac_clean_files |
2083 |
|
ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2084 |
|
# Try to create an executable without -o first, disregard a.out. |
2085 |
|
# It will help us diagnose broken compilers, and finding out an intuition |
2086 |
|
# of exeext. |
2087 |
|
echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
2088 |
|
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
2089 |
|
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2090 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
2091 |
|
(eval $ac_link_default) 2>&5 |
2092 |
|
ac_status=$? |
2093 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2094 |
|
(exit $ac_status); }; then |
2095 |
|
# Find the output, starting from the most likely. This scheme is |
2096 |
|
# not robust to junk in `.', hence go to wildcards (a.*) only as a last |
2097 |
|
# resort. |
2098 |
|
|
2099 |
|
# Be careful to initialize this variable, since it used to be cached. |
2100 |
|
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
2101 |
|
ac_cv_exeext= |
2102 |
|
# b.out is created by i960 compilers. |
2103 |
|
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
2104 |
|
do |
2105 |
|
test -f "$ac_file" || continue |
2106 |
|
case $ac_file in |
2107 |
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
2108 |
|
;; |
2109 |
|
conftest.$ac_ext ) |
2110 |
|
# This is the source file. |
2111 |
|
;; |
2112 |
|
[ab].out ) |
2113 |
|
# We found the default executable, but exeext='' is most |
2114 |
|
# certainly right. |
2115 |
|
break;; |
2116 |
|
*.* ) |
2117 |
|
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2118 |
|
# FIXME: I believe we export ac_cv_exeext for Libtool, |
2119 |
|
# but it would be cool to find out if it's true. Does anybody |
2120 |
|
# maintain Libtool? --akim. |
2121 |
|
export ac_cv_exeext |
2122 |
|
break;; |
2123 |
|
* ) |
2124 |
|
break;; |
2125 |
|
esac |
2126 |
|
done |
2127 |
|
else |
2128 |
|
echo "$as_me: failed program was:" >&5 |
2129 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2130 |
|
|
2131 |
|
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2132 |
|
See \`config.log' for more details." >&5 |
2133 |
|
echo "$as_me: error: C compiler cannot create executables |
2134 |
|
See \`config.log' for more details." >&2;} |
2135 |
|
{ (exit 77); exit 77; }; } |
2136 |
|
fi |
2137 |
|
|
2138 |
|
ac_exeext=$ac_cv_exeext |
2139 |
|
echo "$as_me:$LINENO: result: $ac_file" >&5 |
2140 |
|
echo "${ECHO_T}$ac_file" >&6 |
2141 |
|
|
2142 |
|
# Check the compiler produces executables we can run. If not, either |
2143 |
|
# the compiler is broken, or we cross compile. |
2144 |
|
echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2145 |
|
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
2146 |
|
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2147 |
|
# If not cross compiling, check that we can run a simple program. |
2148 |
|
if test "$cross_compiling" != yes; then |
2149 |
|
if { ac_try='./$ac_file' |
2150 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2151 |
|
(eval $ac_try) 2>&5 |
2152 |
|
ac_status=$? |
2153 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2154 |
|
(exit $ac_status); }; }; then |
2155 |
|
cross_compiling=no |
2156 |
|
else |
2157 |
|
if test "$cross_compiling" = maybe; then |
2158 |
|
cross_compiling=yes |
2159 |
|
else |
2160 |
|
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2161 |
|
If you meant to cross compile, use \`--host'. |
2162 |
|
See \`config.log' for more details." >&5 |
2163 |
|
echo "$as_me: error: cannot run C compiled programs. |
2164 |
|
If you meant to cross compile, use \`--host'. |
2165 |
|
See \`config.log' for more details." >&2;} |
2166 |
|
{ (exit 1); exit 1; }; } |
2167 |
|
fi |
2168 |
|
fi |
2169 |
|
fi |
2170 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
2171 |
|
echo "${ECHO_T}yes" >&6 |
2172 |
|
|
2173 |
|
rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2174 |
|
ac_clean_files=$ac_clean_files_save |
2175 |
|
# Check the compiler produces executables we can run. If not, either |
2176 |
|
# the compiler is broken, or we cross compile. |
2177 |
|
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2178 |
|
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
2179 |
|
echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2180 |
|
echo "${ECHO_T}$cross_compiling" >&6 |
2181 |
|
|
2182 |
|
echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2183 |
|
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
2184 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2185 |
|
(eval $ac_link) 2>&5 |
2186 |
|
ac_status=$? |
2187 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2188 |
|
(exit $ac_status); }; then |
2189 |
|
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
2190 |
|
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2191 |
|
# work properly (i.e., refer to `conftest.exe'), while it won't with |
2192 |
|
# `rm'. |
2193 |
|
for ac_file in conftest.exe conftest conftest.*; do |
2194 |
|
test -f "$ac_file" || continue |
2195 |
|
case $ac_file in |
2196 |
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
2197 |
|
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2198 |
|
export ac_cv_exeext |
2199 |
|
break;; |
2200 |
|
* ) break;; |
2201 |
|
esac |
2202 |
|
done |
2203 |
|
else |
2204 |
|
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2205 |
|
See \`config.log' for more details." >&5 |
2206 |
|
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2207 |
|
See \`config.log' for more details." >&2;} |
2208 |
|
{ (exit 1); exit 1; }; } |
2209 |
|
fi |
2210 |
|
|
2211 |
|
rm -f conftest$ac_cv_exeext |
2212 |
|
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2213 |
|
echo "${ECHO_T}$ac_cv_exeext" >&6 |
2214 |
|
|
2215 |
|
rm -f conftest.$ac_ext |
2216 |
|
EXEEXT=$ac_cv_exeext |
2217 |
|
ac_exeext=$EXEEXT |
2218 |
|
fi |
2219 |
|
echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2220 |
|
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
2221 |
|
if test "${ac_cv_objext+set}" = set; then |
2222 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2223 |
|
else |
2224 |
|
cat >conftest.$ac_ext <<_ACEOF |
2225 |
|
#line $LINENO "configure" |
2226 |
|
/* confdefs.h. */ |
2227 |
|
_ACEOF |
2228 |
|
cat confdefs.h >>conftest.$ac_ext |
2229 |
|
cat >>conftest.$ac_ext <<_ACEOF |
2230 |
|
/* end confdefs.h. */ |
2231 |
|
|
2232 |
|
int |
2233 |
|
main () |
2234 |
|
{ |
2235 |
|
|
2236 |
|
; |
2237 |
|
return 0; |
2238 |
|
} |
2239 |
|
_ACEOF |
2240 |
|
rm -f conftest.o conftest.obj |
2241 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2242 |
|
(eval $ac_compile) 2>&5 |
2243 |
|
ac_status=$? |
2244 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2245 |
|
(exit $ac_status); }; then |
2246 |
|
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
2247 |
|
case $ac_file in |
2248 |
|
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
2249 |
|
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
2250 |
|
break;; |
2251 |
|
esac |
2252 |
|
done |
2253 |
else |
else |
2254 |
echo 'void f(){}' > conftest.c |
echo "$as_me: failed program was:" >&5 |
2255 |
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then |
sed 's/^/| /' conftest.$ac_ext >&5 |
2256 |
|
|
2257 |
|
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2258 |
|
See \`config.log' for more details." >&5 |
2259 |
|
echo "$as_me: error: cannot compute suffix of object files: cannot compile |
2260 |
|
See \`config.log' for more details." >&2;} |
2261 |
|
{ (exit 1); exit 1; }; } |
2262 |
|
fi |
2263 |
|
|
2264 |
|
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
2265 |
|
fi |
2266 |
|
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2267 |
|
echo "${ECHO_T}$ac_cv_objext" >&6 |
2268 |
|
OBJEXT=$ac_cv_objext |
2269 |
|
ac_objext=$OBJEXT |
2270 |
|
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
2271 |
|
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
2272 |
|
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
2273 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2274 |
|
else |
2275 |
|
cat >conftest.$ac_ext <<_ACEOF |
2276 |
|
#line $LINENO "configure" |
2277 |
|
/* confdefs.h. */ |
2278 |
|
_ACEOF |
2279 |
|
cat confdefs.h >>conftest.$ac_ext |
2280 |
|
cat >>conftest.$ac_ext <<_ACEOF |
2281 |
|
/* end confdefs.h. */ |
2282 |
|
|
2283 |
|
int |
2284 |
|
main () |
2285 |
|
{ |
2286 |
|
#ifndef __GNUC__ |
2287 |
|
choke me |
2288 |
|
#endif |
2289 |
|
|
2290 |
|
; |
2291 |
|
return 0; |
2292 |
|
} |
2293 |
|
_ACEOF |
2294 |
|
rm -f conftest.$ac_objext |
2295 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2296 |
|
(eval $ac_compile) 2>&5 |
2297 |
|
ac_status=$? |
2298 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2299 |
|
(exit $ac_status); } && |
2300 |
|
{ ac_try='test -s conftest.$ac_objext' |
2301 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2302 |
|
(eval $ac_try) 2>&5 |
2303 |
|
ac_status=$? |
2304 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2305 |
|
(exit $ac_status); }; }; then |
2306 |
|
ac_compiler_gnu=yes |
2307 |
|
else |
2308 |
|
echo "$as_me: failed program was:" >&5 |
2309 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2310 |
|
|
2311 |
|
ac_compiler_gnu=no |
2312 |
|
fi |
2313 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
2314 |
|
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2315 |
|
|
2316 |
|
fi |
2317 |
|
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2318 |
|
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
2319 |
|
GCC=`test $ac_compiler_gnu = yes && echo yes` |
2320 |
|
ac_test_CFLAGS=${CFLAGS+set} |
2321 |
|
ac_save_CFLAGS=$CFLAGS |
2322 |
|
CFLAGS="-g" |
2323 |
|
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
2324 |
|
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
2325 |
|
if test "${ac_cv_prog_cc_g+set}" = set; then |
2326 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2327 |
|
else |
2328 |
|
cat >conftest.$ac_ext <<_ACEOF |
2329 |
|
#line $LINENO "configure" |
2330 |
|
/* confdefs.h. */ |
2331 |
|
_ACEOF |
2332 |
|
cat confdefs.h >>conftest.$ac_ext |
2333 |
|
cat >>conftest.$ac_ext <<_ACEOF |
2334 |
|
/* end confdefs.h. */ |
2335 |
|
|
2336 |
|
int |
2337 |
|
main () |
2338 |
|
{ |
2339 |
|
|
2340 |
|
; |
2341 |
|
return 0; |
2342 |
|
} |
2343 |
|
_ACEOF |
2344 |
|
rm -f conftest.$ac_objext |
2345 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2346 |
|
(eval $ac_compile) 2>&5 |
2347 |
|
ac_status=$? |
2348 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2349 |
|
(exit $ac_status); } && |
2350 |
|
{ ac_try='test -s conftest.$ac_objext' |
2351 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2352 |
|
(eval $ac_try) 2>&5 |
2353 |
|
ac_status=$? |
2354 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2355 |
|
(exit $ac_status); }; }; then |
2356 |
ac_cv_prog_cc_g=yes |
ac_cv_prog_cc_g=yes |
2357 |
else |
else |
2358 |
ac_cv_prog_cc_g=no |
echo "$as_me: failed program was:" >&5 |
2359 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2360 |
|
|
2361 |
|
ac_cv_prog_cc_g=no |
2362 |
|
fi |
2363 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
2364 |
|
fi |
2365 |
|
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2366 |
|
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
2367 |
|
if test "$ac_test_CFLAGS" = set; then |
2368 |
|
CFLAGS=$ac_save_CFLAGS |
2369 |
|
elif test $ac_cv_prog_cc_g = yes; then |
2370 |
|
if test "$GCC" = yes; then |
2371 |
|
CFLAGS="-g -O2" |
2372 |
|
else |
2373 |
|
CFLAGS="-g" |
2374 |
|
fi |
2375 |
|
else |
2376 |
|
if test "$GCC" = yes; then |
2377 |
|
CFLAGS="-O2" |
2378 |
|
else |
2379 |
|
CFLAGS= |
2380 |
|
fi |
2381 |
|
fi |
2382 |
|
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2383 |
|
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
2384 |
|
if test "${ac_cv_prog_cc_stdc+set}" = set; then |
2385 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2386 |
|
else |
2387 |
|
ac_cv_prog_cc_stdc=no |
2388 |
|
ac_save_CC=$CC |
2389 |
|
cat >conftest.$ac_ext <<_ACEOF |
2390 |
|
#line $LINENO "configure" |
2391 |
|
/* confdefs.h. */ |
2392 |
|
_ACEOF |
2393 |
|
cat confdefs.h >>conftest.$ac_ext |
2394 |
|
cat >>conftest.$ac_ext <<_ACEOF |
2395 |
|
/* end confdefs.h. */ |
2396 |
|
#include <stdarg.h> |
2397 |
|
#include <stdio.h> |
2398 |
|
#include <sys/types.h> |
2399 |
|
#include <sys/stat.h> |
2400 |
|
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
2401 |
|
struct buf { int x; }; |
2402 |
|
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
2403 |
|
static char *e (p, i) |
2404 |
|
char **p; |
2405 |
|
int i; |
2406 |
|
{ |
2407 |
|
return p[i]; |
2408 |
|
} |
2409 |
|
static char *f (char * (*g) (char **, int), char **p, ...) |
2410 |
|
{ |
2411 |
|
char *s; |
2412 |
|
va_list v; |
2413 |
|
va_start (v,p); |
2414 |
|
s = g (p, va_arg (v,int)); |
2415 |
|
va_end (v); |
2416 |
|
return s; |
2417 |
|
} |
2418 |
|
int test (int i, double x); |
2419 |
|
struct s1 {int (*f) (int a);}; |
2420 |
|
struct s2 {int (*f) (double a);}; |
2421 |
|
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
2422 |
|
int argc; |
2423 |
|
char **argv; |
2424 |
|
int |
2425 |
|
main () |
2426 |
|
{ |
2427 |
|
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
2428 |
|
; |
2429 |
|
return 0; |
2430 |
|
} |
2431 |
|
_ACEOF |
2432 |
|
# Don't try gcc -ansi; that turns off useful extensions and |
2433 |
|
# breaks some systems' header files. |
2434 |
|
# AIX -qlanglvl=ansi |
2435 |
|
# Ultrix and OSF/1 -std1 |
2436 |
|
# HP-UX 10.20 and later -Ae |
2437 |
|
# HP-UX older versions -Aa -D_HPUX_SOURCE |
2438 |
|
# SVR4 -Xc -D__EXTENSIONS__ |
2439 |
|
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
2440 |
|
do |
2441 |
|
CC="$ac_save_CC $ac_arg" |
2442 |
|
rm -f conftest.$ac_objext |
2443 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2444 |
|
(eval $ac_compile) 2>&5 |
2445 |
|
ac_status=$? |
2446 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2447 |
|
(exit $ac_status); } && |
2448 |
|
{ ac_try='test -s conftest.$ac_objext' |
2449 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2450 |
|
(eval $ac_try) 2>&5 |
2451 |
|
ac_status=$? |
2452 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2453 |
|
(exit $ac_status); }; }; then |
2454 |
|
ac_cv_prog_cc_stdc=$ac_arg |
2455 |
|
break |
2456 |
|
else |
2457 |
|
echo "$as_me: failed program was:" >&5 |
2458 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2459 |
|
|
2460 |
|
fi |
2461 |
|
rm -f conftest.$ac_objext |
2462 |
|
done |
2463 |
|
rm -f conftest.$ac_ext conftest.$ac_objext |
2464 |
|
CC=$ac_save_CC |
2465 |
|
|
2466 |
|
fi |
2467 |
|
|
2468 |
|
case "x$ac_cv_prog_cc_stdc" in |
2469 |
|
x|xno) |
2470 |
|
echo "$as_me:$LINENO: result: none needed" >&5 |
2471 |
|
echo "${ECHO_T}none needed" >&6 ;; |
2472 |
|
*) |
2473 |
|
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2474 |
|
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
2475 |
|
CC="$CC $ac_cv_prog_cc_stdc" ;; |
2476 |
|
esac |
2477 |
|
|
2478 |
|
# Some people use a C++ compiler to compile C. Since we use `exit', |
2479 |
|
# in C++ we need to declare it. In case someone uses the same compiler |
2480 |
|
# for both compiling C and C++ we need to have the C++ compiler decide |
2481 |
|
# the declaration of exit, since it's the most demanding environment. |
2482 |
|
cat >conftest.$ac_ext <<_ACEOF |
2483 |
|
#ifndef __cplusplus |
2484 |
|
choke me |
2485 |
|
#endif |
2486 |
|
_ACEOF |
2487 |
|
rm -f conftest.$ac_objext |
2488 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2489 |
|
(eval $ac_compile) 2>&5 |
2490 |
|
ac_status=$? |
2491 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2492 |
|
(exit $ac_status); } && |
2493 |
|
{ ac_try='test -s conftest.$ac_objext' |
2494 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2495 |
|
(eval $ac_try) 2>&5 |
2496 |
|
ac_status=$? |
2497 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2498 |
|
(exit $ac_status); }; }; then |
2499 |
|
for ac_declaration in \ |
2500 |
|
''\ |
2501 |
|
'#include <stdlib.h>' \ |
2502 |
|
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2503 |
|
'extern "C" void std::exit (int); using std::exit;' \ |
2504 |
|
'extern "C" void exit (int) throw ();' \ |
2505 |
|
'extern "C" void exit (int);' \ |
2506 |
|
'void exit (int);' |
2507 |
|
do |
2508 |
|
cat >conftest.$ac_ext <<_ACEOF |
2509 |
|
#line $LINENO "configure" |
2510 |
|
/* confdefs.h. */ |
2511 |
|
_ACEOF |
2512 |
|
cat confdefs.h >>conftest.$ac_ext |
2513 |
|
cat >>conftest.$ac_ext <<_ACEOF |
2514 |
|
/* end confdefs.h. */ |
2515 |
|
#include <stdlib.h> |
2516 |
|
$ac_declaration |
2517 |
|
int |
2518 |
|
main () |
2519 |
|
{ |
2520 |
|
exit (42); |
2521 |
|
; |
2522 |
|
return 0; |
2523 |
|
} |
2524 |
|
_ACEOF |
2525 |
|
rm -f conftest.$ac_objext |
2526 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2527 |
|
(eval $ac_compile) 2>&5 |
2528 |
|
ac_status=$? |
2529 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2530 |
|
(exit $ac_status); } && |
2531 |
|
{ ac_try='test -s conftest.$ac_objext' |
2532 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2533 |
|
(eval $ac_try) 2>&5 |
2534 |
|
ac_status=$? |
2535 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2536 |
|
(exit $ac_status); }; }; then |
2537 |
|
: |
2538 |
|
else |
2539 |
|
echo "$as_me: failed program was:" >&5 |
2540 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2541 |
|
|
2542 |
|
continue |
2543 |
fi |
fi |
2544 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
2545 |
|
cat >conftest.$ac_ext <<_ACEOF |
2546 |
|
#line $LINENO "configure" |
2547 |
|
/* confdefs.h. */ |
2548 |
|
_ACEOF |
2549 |
|
cat confdefs.h >>conftest.$ac_ext |
2550 |
|
cat >>conftest.$ac_ext <<_ACEOF |
2551 |
|
/* end confdefs.h. */ |
2552 |
|
$ac_declaration |
2553 |
|
int |
2554 |
|
main () |
2555 |
|
{ |
2556 |
|
exit (42); |
2557 |
|
; |
2558 |
|
return 0; |
2559 |
|
} |
2560 |
|
_ACEOF |
2561 |
|
rm -f conftest.$ac_objext |
2562 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2563 |
|
(eval $ac_compile) 2>&5 |
2564 |
|
ac_status=$? |
2565 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2566 |
|
(exit $ac_status); } && |
2567 |
|
{ ac_try='test -s conftest.$ac_objext' |
2568 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2569 |
|
(eval $ac_try) 2>&5 |
2570 |
|
ac_status=$? |
2571 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2572 |
|
(exit $ac_status); }; }; then |
2573 |
|
break |
2574 |
|
else |
2575 |
|
echo "$as_me: failed program was:" >&5 |
2576 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2577 |
|
|
2578 |
|
fi |
2579 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
2580 |
|
done |
2581 |
rm -f conftest* |
rm -f conftest* |
2582 |
|
if test -n "$ac_declaration"; then |
2583 |
|
echo '#ifdef __cplusplus' >>confdefs.h |
2584 |
|
echo $ac_declaration >>confdefs.h |
2585 |
|
echo '#endif' >>confdefs.h |
2586 |
|
fi |
2587 |
|
|
2588 |
|
else |
2589 |
|
echo "$as_me: failed program was:" >&5 |
2590 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2591 |
|
|
2592 |
fi |
fi |
2593 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
2594 |
|
ac_ext=c |
2595 |
|
ac_cpp='$CPP $CPPFLAGS' |
2596 |
|
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2597 |
|
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2598 |
|
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2599 |
|
|
2600 |
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 |
ac_ext=c |
2601 |
if test "$ac_test_CFLAGS" = set; then |
ac_cpp='$CPP $CPPFLAGS' |
2602 |
CFLAGS="$ac_save_CFLAGS" |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2603 |
elif test $ac_cv_prog_cc_g = yes; then |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2604 |
CFLAGS="-g -O2" |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2605 |
|
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
2606 |
|
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
2607 |
|
# On Suns, sometimes $CPP names a directory. |
2608 |
|
if test -n "$CPP" && test -d "$CPP"; then |
2609 |
|
CPP= |
2610 |
|
fi |
2611 |
|
if test -z "$CPP"; then |
2612 |
|
if test "${ac_cv_prog_CPP+set}" = set; then |
2613 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2614 |
|
else |
2615 |
|
# Double quotes because CPP needs to be expanded |
2616 |
|
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
2617 |
|
do |
2618 |
|
ac_preproc_ok=false |
2619 |
|
for ac_c_preproc_warn_flag in '' yes |
2620 |
|
do |
2621 |
|
# Use a header file that comes with gcc, so configuring glibc |
2622 |
|
# with a fresh cross-compiler works. |
2623 |
|
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
2624 |
|
# <limits.h> exists even on freestanding compilers. |
2625 |
|
# On the NeXT, cc -E runs the code through the compiler's parser, |
2626 |
|
# not just through cpp. "Syntax error" is here to catch this case. |
2627 |
|
cat >conftest.$ac_ext <<_ACEOF |
2628 |
|
#line $LINENO "configure" |
2629 |
|
/* confdefs.h. */ |
2630 |
|
_ACEOF |
2631 |
|
cat confdefs.h >>conftest.$ac_ext |
2632 |
|
cat >>conftest.$ac_ext <<_ACEOF |
2633 |
|
/* end confdefs.h. */ |
2634 |
|
#ifdef __STDC__ |
2635 |
|
# include <limits.h> |
2636 |
|
#else |
2637 |
|
# include <assert.h> |
2638 |
|
#endif |
2639 |
|
Syntax error |
2640 |
|
_ACEOF |
2641 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2642 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2643 |
|
ac_status=$? |
2644 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
2645 |
|
rm -f conftest.er1 |
2646 |
|
cat conftest.err >&5 |
2647 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2648 |
|
(exit $ac_status); } >/dev/null; then |
2649 |
|
if test -s conftest.err; then |
2650 |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
2651 |
else |
else |
2652 |
CFLAGS="-O2" |
ac_cpp_err= |
2653 |
fi |
fi |
2654 |
else |
else |
2655 |
GCC= |
ac_cpp_err=yes |
|
ac_libiberty_warn_cflags= |
|
|
test "${CFLAGS+set}" = set || CFLAGS="-g" |
|
2656 |
fi |
fi |
2657 |
|
if test -z "$ac_cpp_err"; then |
2658 |
|
: |
2659 |
|
else |
2660 |
|
echo "$as_me: failed program was:" >&5 |
2661 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2662 |
|
|
2663 |
|
# Broken: fails on valid input. |
2664 |
|
continue |
2665 |
|
fi |
2666 |
|
rm -f conftest.err conftest.$ac_ext |
2667 |
|
|
2668 |
|
# OK, works on sane cases. Now check whether non-existent headers |
2669 |
|
# can be detected and how. |
2670 |
|
cat >conftest.$ac_ext <<_ACEOF |
2671 |
|
#line $LINENO "configure" |
2672 |
|
/* confdefs.h. */ |
2673 |
|
_ACEOF |
2674 |
|
cat confdefs.h >>conftest.$ac_ext |
2675 |
|
cat >>conftest.$ac_ext <<_ACEOF |
2676 |
|
/* end confdefs.h. */ |
2677 |
|
#include <ac_nonexistent.h> |
2678 |
|
_ACEOF |
2679 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2680 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2681 |
|
ac_status=$? |
2682 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
2683 |
|
rm -f conftest.er1 |
2684 |
|
cat conftest.err >&5 |
2685 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2686 |
|
(exit $ac_status); } >/dev/null; then |
2687 |
|
if test -s conftest.err; then |
2688 |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
2689 |
|
else |
2690 |
|
ac_cpp_err= |
2691 |
|
fi |
2692 |
|
else |
2693 |
|
ac_cpp_err=yes |
2694 |
|
fi |
2695 |
|
if test -z "$ac_cpp_err"; then |
2696 |
|
# Broken: success on invalid input. |
2697 |
|
continue |
2698 |
|
else |
2699 |
|
echo "$as_me: failed program was:" >&5 |
2700 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2701 |
|
|
2702 |
echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 |
# Passes both tests. |
2703 |
echo "configure:876: checking for POSIXized ISC" >&5 |
ac_preproc_ok=: |
2704 |
if test -d /etc/conf/kconfig.d && |
break |
2705 |
grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 |
fi |
2706 |
then |
rm -f conftest.err conftest.$ac_ext |
|
echo "$ac_t""yes" 1>&6 |
|
|
ISC=yes # If later tests want to check for ISC. |
|
|
cat >> confdefs.h <<\EOF |
|
|
#define _POSIX_SOURCE 1 |
|
|
EOF |
|
2707 |
|
|
2708 |
if test "$GCC" = yes; then |
done |
2709 |
CC="$CC -posix" |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
2710 |
|
rm -f conftest.err conftest.$ac_ext |
2711 |
|
if $ac_preproc_ok; then |
2712 |
|
break |
2713 |
|
fi |
2714 |
|
|
2715 |
|
done |
2716 |
|
ac_cv_prog_CPP=$CPP |
2717 |
|
|
2718 |
|
fi |
2719 |
|
CPP=$ac_cv_prog_CPP |
2720 |
|
else |
2721 |
|
ac_cv_prog_CPP=$CPP |
2722 |
|
fi |
2723 |
|
echo "$as_me:$LINENO: result: $CPP" >&5 |
2724 |
|
echo "${ECHO_T}$CPP" >&6 |
2725 |
|
ac_preproc_ok=false |
2726 |
|
for ac_c_preproc_warn_flag in '' yes |
2727 |
|
do |
2728 |
|
# Use a header file that comes with gcc, so configuring glibc |
2729 |
|
# with a fresh cross-compiler works. |
2730 |
|
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
2731 |
|
# <limits.h> exists even on freestanding compilers. |
2732 |
|
# On the NeXT, cc -E runs the code through the compiler's parser, |
2733 |
|
# not just through cpp. "Syntax error" is here to catch this case. |
2734 |
|
cat >conftest.$ac_ext <<_ACEOF |
2735 |
|
#line $LINENO "configure" |
2736 |
|
/* confdefs.h. */ |
2737 |
|
_ACEOF |
2738 |
|
cat confdefs.h >>conftest.$ac_ext |
2739 |
|
cat >>conftest.$ac_ext <<_ACEOF |
2740 |
|
/* end confdefs.h. */ |
2741 |
|
#ifdef __STDC__ |
2742 |
|
# include <limits.h> |
2743 |
|
#else |
2744 |
|
# include <assert.h> |
2745 |
|
#endif |
2746 |
|
Syntax error |
2747 |
|
_ACEOF |
2748 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2749 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2750 |
|
ac_status=$? |
2751 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
2752 |
|
rm -f conftest.er1 |
2753 |
|
cat conftest.err >&5 |
2754 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2755 |
|
(exit $ac_status); } >/dev/null; then |
2756 |
|
if test -s conftest.err; then |
2757 |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
2758 |
else |
else |
2759 |
CC="$CC -Xp" |
ac_cpp_err= |
2760 |
fi |
fi |
2761 |
else |
else |
2762 |
echo "$ac_t""no" 1>&6 |
ac_cpp_err=yes |
|
ISC= |
|
2763 |
fi |
fi |
2764 |
|
if test -z "$ac_cpp_err"; then |
2765 |
|
: |
2766 |
|
else |
2767 |
|
echo "$as_me: failed program was:" >&5 |
2768 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2769 |
|
|
2770 |
echo $ac_n "checking for working const""... $ac_c" 1>&6 |
# Broken: fails on valid input. |
2771 |
echo "configure:897: checking for working const" >&5 |
continue |
2772 |
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
fi |
2773 |
echo $ac_n "(cached) $ac_c" 1>&6 |
rm -f conftest.err conftest.$ac_ext |
2774 |
|
|
2775 |
|
# OK, works on sane cases. Now check whether non-existent headers |
2776 |
|
# can be detected and how. |
2777 |
|
cat >conftest.$ac_ext <<_ACEOF |
2778 |
|
#line $LINENO "configure" |
2779 |
|
/* confdefs.h. */ |
2780 |
|
_ACEOF |
2781 |
|
cat confdefs.h >>conftest.$ac_ext |
2782 |
|
cat >>conftest.$ac_ext <<_ACEOF |
2783 |
|
/* end confdefs.h. */ |
2784 |
|
#include <ac_nonexistent.h> |
2785 |
|
_ACEOF |
2786 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2787 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
2788 |
|
ac_status=$? |
2789 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
2790 |
|
rm -f conftest.er1 |
2791 |
|
cat conftest.err >&5 |
2792 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2793 |
|
(exit $ac_status); } >/dev/null; then |
2794 |
|
if test -s conftest.err; then |
2795 |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
2796 |
|
else |
2797 |
|
ac_cpp_err= |
2798 |
|
fi |
2799 |
else |
else |
2800 |
cat > conftest.$ac_ext <<EOF |
ac_cpp_err=yes |
2801 |
#line 902 "configure" |
fi |
2802 |
#include "confdefs.h" |
if test -z "$ac_cpp_err"; then |
2803 |
|
# Broken: success on invalid input. |
2804 |
|
continue |
2805 |
|
else |
2806 |
|
echo "$as_me: failed program was:" >&5 |
2807 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
2808 |
|
|
2809 |
int main() { |
# Passes both tests. |
2810 |
|
ac_preproc_ok=: |
2811 |
|
break |
2812 |
|
fi |
2813 |
|
rm -f conftest.err conftest.$ac_ext |
2814 |
|
|
2815 |
/* Ultrix mips cc rejects this. */ |
done |
2816 |
typedef int charset[2]; const charset x; |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
2817 |
/* SunOS 4.1.1 cc rejects this. */ |
rm -f conftest.err conftest.$ac_ext |
2818 |
char const *const *ccp; |
if $ac_preproc_ok; then |
2819 |
char **p; |
: |
2820 |
/* NEC SVR4.0.2 mips cc rejects this. */ |
else |
2821 |
struct point {int x, y;}; |
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
2822 |
static struct point const zero = {0,0}; |
See \`config.log' for more details." >&5 |
2823 |
/* AIX XL C 1.02.0.0 rejects this. |
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
2824 |
It does not let you subtract one const X* pointer from another in an arm |
See \`config.log' for more details." >&2;} |
2825 |
of an if-expression whose if-part is not a constant expression */ |
{ (exit 1); exit 1; }; } |
2826 |
const char *g = "string"; |
fi |
|
ccp = &g + (g ? g-g : 0); |
|
|
/* HPUX 7.0 cc rejects these. */ |
|
|
++ccp; |
|
|
p = (char**) ccp; |
|
|
ccp = (char const *const *) p; |
|
|
{ /* SCO 3.2v4 cc rejects this. */ |
|
|
char *t; |
|
|
char const *s = 0 ? (char *) 0 : (char const *) 0; |
|
|
|
|
|
*t++ = 0; |
|
|
} |
|
|
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
|
|
int x[] = {25, 17}; |
|
|
const int *foo = &x[0]; |
|
|
++foo; |
|
|
} |
|
|
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
|
|
typedef const int *iptr; |
|
|
iptr p = 0; |
|
|
++p; |
|
|
} |
|
|
{ /* AIX XL C 1.02.0.0 rejects this saying |
|
|
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
|
|
struct s { int j; const int *ap[3]; }; |
|
|
struct s *b; b->j = 5; |
|
|
} |
|
|
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
|
|
const int foo = 10; |
|
|
} |
|
2827 |
|
|
2828 |
; return 0; } |
ac_ext=c |
2829 |
EOF |
ac_cpp='$CPP $CPPFLAGS' |
2830 |
if { (eval echo configure:951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2831 |
rm -rf conftest* |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2832 |
ac_cv_c_const=yes |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2833 |
|
|
2834 |
|
|
2835 |
|
ac_c_preproc_warn_flag=yes |
2836 |
|
|
2837 |
|
if test x$GCC = xyes; then |
2838 |
|
ac_libiberty_warn_cflags='-W -Wall -Wtraditional -pedantic' |
2839 |
|
fi |
2840 |
|
|
2841 |
|
|
2842 |
|
if test "x$CC" != xcc; then |
2843 |
|
echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 |
2844 |
|
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6 |
2845 |
|
else |
2846 |
|
echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 |
2847 |
|
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6 |
2848 |
|
fi |
2849 |
|
set dummy $CC; ac_cc=`echo $2 | |
2850 |
|
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
2851 |
|
if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then |
2852 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2853 |
|
else |
2854 |
|
cat >conftest.$ac_ext <<_ACEOF |
2855 |
|
#line $LINENO "configure" |
2856 |
|
/* confdefs.h. */ |
2857 |
|
_ACEOF |
2858 |
|
cat confdefs.h >>conftest.$ac_ext |
2859 |
|
cat >>conftest.$ac_ext <<_ACEOF |
2860 |
|
/* end confdefs.h. */ |
2861 |
|
|
2862 |
|
int |
2863 |
|
main () |
2864 |
|
{ |
2865 |
|
|
2866 |
|
; |
2867 |
|
return 0; |
2868 |
|
} |
2869 |
|
_ACEOF |
2870 |
|
# Make sure it works both with $CC and with simple cc. |
2871 |
|
# We do the test twice because some compilers refuse to overwrite an |
2872 |
|
# existing .o file with -o, though they will create one. |
2873 |
|
ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5' |
2874 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2875 |
|
(eval $ac_try) 2>&5 |
2876 |
|
ac_status=$? |
2877 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2878 |
|
(exit $ac_status); } && |
2879 |
|
test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2880 |
|
(eval $ac_try) 2>&5 |
2881 |
|
ac_status=$? |
2882 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2883 |
|
(exit $ac_status); }; |
2884 |
|
then |
2885 |
|
eval ac_cv_prog_cc_${ac_cc}_c_o=yes |
2886 |
|
if test "x$CC" != xcc; then |
2887 |
|
# Test first that cc exists at all. |
2888 |
|
if { ac_try='cc -c conftest.$ac_ext >&5' |
2889 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2890 |
|
(eval $ac_try) 2>&5 |
2891 |
|
ac_status=$? |
2892 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2893 |
|
(exit $ac_status); }; }; then |
2894 |
|
ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5' |
2895 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2896 |
|
(eval $ac_try) 2>&5 |
2897 |
|
ac_status=$? |
2898 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2899 |
|
(exit $ac_status); } && |
2900 |
|
test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2901 |
|
(eval $ac_try) 2>&5 |
2902 |
|
ac_status=$? |
2903 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2904 |
|
(exit $ac_status); }; |
2905 |
|
then |
2906 |
|
# cc works too. |
2907 |
|
: |
2908 |
|
else |
2909 |
|
# cc exists but doesn't like -o. |
2910 |
|
eval ac_cv_prog_cc_${ac_cc}_c_o=no |
2911 |
|
fi |
2912 |
|
fi |
2913 |
|
fi |
2914 |
else |
else |
2915 |
echo "configure: failed program was:" >&5 |
eval ac_cv_prog_cc_${ac_cc}_c_o=no |
|
cat conftest.$ac_ext >&5 |
|
|
rm -rf conftest* |
|
|
ac_cv_c_const=no |
|
2916 |
fi |
fi |
2917 |
rm -f conftest* |
rm -f conftest* |
2918 |
|
|
2919 |
fi |
fi |
2920 |
|
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then |
2921 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
2922 |
|
echo "${ECHO_T}yes" >&6 |
2923 |
|
else |
2924 |
|
echo "$as_me:$LINENO: result: no" >&5 |
2925 |
|
echo "${ECHO_T}no" >&6 |
2926 |
|
|
2927 |
echo "$ac_t""$ac_cv_c_const" 1>&6 |
cat >>confdefs.h <<\_ACEOF |
2928 |
|
#define NO_MINUS_C_MINUS_O 1 |
2929 |
|
_ACEOF |
2930 |
|
|
2931 |
|
fi |
2932 |
|
|
2933 |
|
# autoconf is lame and doesn't give us any substitution variable for this. |
2934 |
|
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then |
2935 |
|
NO_MINUS_C_MINUS_O=yes |
2936 |
|
else |
2937 |
|
OUTPUT_OPTION='-o $@' |
2938 |
|
fi |
2939 |
|
|
2940 |
|
|
2941 |
|
|
2942 |
|
|
2943 |
|
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
2944 |
|
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
2945 |
|
if test "${ac_cv_c_const+set}" = set; then |
2946 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
2947 |
|
else |
2948 |
|
cat >conftest.$ac_ext <<_ACEOF |
2949 |
|
#line $LINENO "configure" |
2950 |
|
/* confdefs.h. */ |
2951 |
|
_ACEOF |
2952 |
|
cat confdefs.h >>conftest.$ac_ext |
2953 |
|
cat >>conftest.$ac_ext <<_ACEOF |
2954 |
|
/* end confdefs.h. */ |
2955 |
|
|
2956 |
|
int |
2957 |
|
main () |
2958 |
|
{ |
2959 |
|
/* FIXME: Include the comments suggested by Paul. */ |
2960 |
|
#ifndef __cplusplus |
2961 |
|
/* Ultrix mips cc rejects this. */ |
2962 |
|
typedef int charset[2]; |
2963 |
|
const charset x; |
2964 |
|
/* SunOS 4.1.1 cc rejects this. */ |
2965 |
|
char const *const *ccp; |
2966 |
|
char **p; |
2967 |
|
/* NEC SVR4.0.2 mips cc rejects this. */ |
2968 |
|
struct point {int x, y;}; |
2969 |
|
static struct point const zero = {0,0}; |
2970 |
|
/* AIX XL C 1.02.0.0 rejects this. |
2971 |
|
It does not let you subtract one const X* pointer from another in |
2972 |
|
an arm of an if-expression whose if-part is not a constant |
2973 |
|
expression */ |
2974 |
|
const char *g = "string"; |
2975 |
|
ccp = &g + (g ? g-g : 0); |
2976 |
|
/* HPUX 7.0 cc rejects these. */ |
2977 |
|
++ccp; |
2978 |
|
p = (char**) ccp; |
2979 |
|
ccp = (char const *const *) p; |
2980 |
|
{ /* SCO 3.2v4 cc rejects this. */ |
2981 |
|
char *t; |
2982 |
|
char const *s = 0 ? (char *) 0 : (char const *) 0; |
2983 |
|
|
2984 |
|
*t++ = 0; |
2985 |
|
} |
2986 |
|
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
2987 |
|
int x[] = {25, 17}; |
2988 |
|
const int *foo = &x[0]; |
2989 |
|
++foo; |
2990 |
|
} |
2991 |
|
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
2992 |
|
typedef const int *iptr; |
2993 |
|
iptr p = 0; |
2994 |
|
++p; |
2995 |
|
} |
2996 |
|
{ /* AIX XL C 1.02.0.0 rejects this saying |
2997 |
|
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
2998 |
|
struct s { int j; const int *ap[3]; }; |
2999 |
|
struct s *b; b->j = 5; |
3000 |
|
} |
3001 |
|
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
3002 |
|
const int foo = 10; |
3003 |
|
} |
3004 |
|
#endif |
3005 |
|
|
3006 |
|
; |
3007 |
|
return 0; |
3008 |
|
} |
3009 |
|
_ACEOF |
3010 |
|
rm -f conftest.$ac_objext |
3011 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3012 |
|
(eval $ac_compile) 2>&5 |
3013 |
|
ac_status=$? |
3014 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3015 |
|
(exit $ac_status); } && |
3016 |
|
{ ac_try='test -s conftest.$ac_objext' |
3017 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3018 |
|
(eval $ac_try) 2>&5 |
3019 |
|
ac_status=$? |
3020 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3021 |
|
(exit $ac_status); }; }; then |
3022 |
|
ac_cv_c_const=yes |
3023 |
|
else |
3024 |
|
echo "$as_me: failed program was:" >&5 |
3025 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3026 |
|
|
3027 |
|
ac_cv_c_const=no |
3028 |
|
fi |
3029 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
3030 |
|
fi |
3031 |
|
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
3032 |
|
echo "${ECHO_T}$ac_cv_c_const" >&6 |
3033 |
if test $ac_cv_c_const = no; then |
if test $ac_cv_c_const = no; then |
3034 |
cat >> confdefs.h <<\EOF |
|
3035 |
#define const |
cat >>confdefs.h <<\_ACEOF |
3036 |
EOF |
#define const |
3037 |
|
_ACEOF |
3038 |
|
|
3039 |
fi |
fi |
3040 |
|
|
3041 |
echo $ac_n "checking for inline""... $ac_c" 1>&6 |
echo "$as_me:$LINENO: checking for inline" >&5 |
3042 |
echo "configure:972: checking for inline" >&5 |
echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
3043 |
if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
if test "${ac_cv_c_inline+set}" = set; then |
3044 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3045 |
else |
else |
3046 |
ac_cv_c_inline=no |
ac_cv_c_inline=no |
3047 |
for ac_kw in inline __inline__ __inline; do |
for ac_kw in inline __inline__ __inline; do |
3048 |
cat > conftest.$ac_ext <<EOF |
cat >conftest.$ac_ext <<_ACEOF |
3049 |
#line 979 "configure" |
#line $LINENO "configure" |
3050 |
#include "confdefs.h" |
/* confdefs.h. */ |
3051 |
|
_ACEOF |
3052 |
|
cat confdefs.h >>conftest.$ac_ext |
3053 |
|
cat >>conftest.$ac_ext <<_ACEOF |
3054 |
|
/* end confdefs.h. */ |
3055 |
|
#ifndef __cplusplus |
3056 |
|
typedef int foo_t; |
3057 |
|
static $ac_kw foo_t static_foo () {return 0; } |
3058 |
|
$ac_kw foo_t foo () {return 0; } |
3059 |
|
#endif |
3060 |
|
|
3061 |
int main() { |
_ACEOF |
3062 |
} $ac_kw foo() { |
rm -f conftest.$ac_objext |
3063 |
; return 0; } |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3064 |
EOF |
(eval $ac_compile) 2>&5 |
3065 |
if { (eval echo configure:986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
ac_status=$? |
3066 |
rm -rf conftest* |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3067 |
|
(exit $ac_status); } && |
3068 |
|
{ ac_try='test -s conftest.$ac_objext' |
3069 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3070 |
|
(eval $ac_try) 2>&5 |
3071 |
|
ac_status=$? |
3072 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3073 |
|
(exit $ac_status); }; }; then |
3074 |
ac_cv_c_inline=$ac_kw; break |
ac_cv_c_inline=$ac_kw; break |
3075 |
else |
else |
3076 |
echo "configure: failed program was:" >&5 |
echo "$as_me: failed program was:" >&5 |
3077 |
cat conftest.$ac_ext >&5 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3078 |
|
|
3079 |
fi |
fi |
3080 |
rm -f conftest* |
rm -f conftest.$ac_objext conftest.$ac_ext |
3081 |
done |
done |
3082 |
|
|
3083 |
fi |
fi |
3084 |
|
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
3085 |
echo "$ac_t""$ac_cv_c_inline" 1>&6 |
echo "${ECHO_T}$ac_cv_c_inline" >&6 |
3086 |
case "$ac_cv_c_inline" in |
case $ac_cv_c_inline in |
3087 |
inline | yes) ;; |
inline | yes) ;; |
3088 |
no) cat >> confdefs.h <<\EOF |
no) |
3089 |
#define inline |
cat >>confdefs.h <<\_ACEOF |
3090 |
EOF |
#define inline |
3091 |
|
_ACEOF |
3092 |
;; |
;; |
3093 |
*) cat >> confdefs.h <<EOF |
*) cat >>confdefs.h <<_ACEOF |
3094 |
#define inline $ac_cv_c_inline |
#define inline $ac_cv_c_inline |
3095 |
EOF |
_ACEOF |
3096 |
;; |
;; |
3097 |
esac |
esac |
3098 |
|
|
3099 |
|
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
3100 |
|
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
3101 |
|
if test "${ac_cv_c_bigendian+set}" = set; then |
3102 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3103 |
|
else |
3104 |
|
ac_cv_c_bigendian=unknown |
3105 |
|
# See if sys/param.h defines the BYTE_ORDER macro. |
3106 |
|
cat >conftest.$ac_ext <<_ACEOF |
3107 |
|
#line $LINENO "configure" |
3108 |
|
/* confdefs.h. */ |
3109 |
|
_ACEOF |
3110 |
|
cat confdefs.h >>conftest.$ac_ext |
3111 |
|
cat >>conftest.$ac_ext <<_ACEOF |
3112 |
|
/* end confdefs.h. */ |
3113 |
|
#include <sys/types.h> |
3114 |
|
#include <sys/param.h> |
3115 |
|
int |
3116 |
|
main () |
3117 |
|
{ |
3118 |
|
|
3119 |
|
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
3120 |
|
bogus endian macros |
3121 |
|
#endif |
3122 |
|
; |
3123 |
|
return 0; |
3124 |
|
} |
3125 |
|
_ACEOF |
3126 |
|
rm -f conftest.$ac_objext |
3127 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3128 |
|
(eval $ac_compile) 2>&5 |
3129 |
|
ac_status=$? |
3130 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3131 |
|
(exit $ac_status); } && |
3132 |
|
{ ac_try='test -s conftest.$ac_objext' |
3133 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3134 |
|
(eval $ac_try) 2>&5 |
3135 |
|
ac_status=$? |
3136 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3137 |
|
(exit $ac_status); }; }; then |
3138 |
|
# It does; now see whether it defined to BIG_ENDIAN or not. |
3139 |
|
cat >conftest.$ac_ext <<_ACEOF |
3140 |
|
#line $LINENO "configure" |
3141 |
|
/* confdefs.h. */ |
3142 |
|
_ACEOF |
3143 |
|
cat confdefs.h >>conftest.$ac_ext |
3144 |
|
cat >>conftest.$ac_ext <<_ACEOF |
3145 |
|
/* end confdefs.h. */ |
3146 |
|
#include <sys/types.h> |
3147 |
|
#include <sys/param.h> |
3148 |
|
int |
3149 |
|
main () |
3150 |
|
{ |
3151 |
|
|
3152 |
|
#if BYTE_ORDER != BIG_ENDIAN |
3153 |
|
not big endian |
3154 |
|
#endif |
3155 |
|
; |
3156 |
|
return 0; |
3157 |
|
} |
3158 |
|
_ACEOF |
3159 |
|
rm -f conftest.$ac_objext |
3160 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3161 |
|
(eval $ac_compile) 2>&5 |
3162 |
|
ac_status=$? |
3163 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3164 |
|
(exit $ac_status); } && |
3165 |
|
{ ac_try='test -s conftest.$ac_objext' |
3166 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3167 |
|
(eval $ac_try) 2>&5 |
3168 |
|
ac_status=$? |
3169 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3170 |
|
(exit $ac_status); }; }; then |
3171 |
|
ac_cv_c_bigendian=yes |
3172 |
|
else |
3173 |
|
echo "$as_me: failed program was:" >&5 |
3174 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3175 |
|
|
3176 |
|
ac_cv_c_bigendian=no |
3177 |
|
fi |
3178 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
3179 |
|
else |
3180 |
|
echo "$as_me: failed program was:" >&5 |
3181 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3182 |
|
|
3183 |
|
fi |
3184 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
3185 |
|
if test $ac_cv_c_bigendian = unknown; then |
3186 |
|
if test "$cross_compiling" = yes; then |
3187 |
|
echo $ac_n "cross-compiling... " 2>&6 |
3188 |
|
else |
3189 |
|
cat >conftest.$ac_ext <<_ACEOF |
3190 |
|
#line $LINENO "configure" |
3191 |
|
/* confdefs.h. */ |
3192 |
|
_ACEOF |
3193 |
|
cat confdefs.h >>conftest.$ac_ext |
3194 |
|
cat >>conftest.$ac_ext <<_ACEOF |
3195 |
|
/* end confdefs.h. */ |
3196 |
|
main () { |
3197 |
|
/* Are we little or big endian? From Harbison&Steele. */ |
3198 |
|
union |
3199 |
|
{ |
3200 |
|
long l; |
3201 |
|
char c[sizeof (long)]; |
3202 |
|
} u; |
3203 |
|
u.l = 1; |
3204 |
|
exit (u.c[sizeof (long) - 1] == 1); |
3205 |
|
} |
3206 |
|
_ACEOF |
3207 |
|
rm -f conftest$ac_exeext |
3208 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3209 |
|
(eval $ac_link) 2>&5 |
3210 |
|
ac_status=$? |
3211 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3212 |
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3213 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3214 |
|
(eval $ac_try) 2>&5 |
3215 |
|
ac_status=$? |
3216 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3217 |
|
(exit $ac_status); }; }; then |
3218 |
|
ac_cv_c_bigendian=no |
3219 |
|
else |
3220 |
|
echo "$as_me: program exited with status $ac_status" >&5 |
3221 |
|
echo "$as_me: failed program was:" >&5 |
3222 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3223 |
|
|
3224 |
|
( exit $ac_status ) |
3225 |
|
ac_cv_c_bigendian=yes |
3226 |
|
fi |
3227 |
|
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
3228 |
|
fi |
3229 |
|
fi |
3230 |
|
fi |
3231 |
|
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
3232 |
|
echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
3233 |
|
if test $ac_cv_c_bigendian = unknown; then |
3234 |
|
echo "$as_me:$LINENO: checking to probe for byte ordering" >&5 |
3235 |
|
echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6 |
3236 |
|
|
3237 |
|
cat >conftest.c <<EOF |
3238 |
|
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
3239 |
|
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
3240 |
|
void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; } |
3241 |
|
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
3242 |
|
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
3243 |
|
void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; } |
3244 |
|
int main() { _ascii (); _ebcdic (); return 0; } |
3245 |
|
EOF |
3246 |
|
if test -f conftest.c ; then |
3247 |
|
if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then |
3248 |
|
if test `grep -l BIGenDianSyS conftest.o` ; then |
3249 |
|
echo $ac_n ' big endian probe OK, ' 1>&6 |
3250 |
|
ac_cv_c_bigendian=yes |
3251 |
|
fi |
3252 |
|
if test `grep -l LiTTleEnDian conftest.o` ; then |
3253 |
|
echo $ac_n ' little endian probe OK, ' 1>&6 |
3254 |
|
if test $ac_cv_c_bigendian = yes ; then |
3255 |
|
ac_cv_c_bigendian=unknown; |
3256 |
|
else |
3257 |
|
ac_cv_c_bigendian=no |
3258 |
|
fi |
3259 |
|
fi |
3260 |
|
echo $ac_n 'guessing bigendian ... ' >&6 |
3261 |
|
fi |
3262 |
|
fi |
3263 |
|
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
3264 |
|
echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
3265 |
|
fi |
3266 |
|
if test $ac_cv_c_bigendian = yes; then |
3267 |
|
|
3268 |
|
cat >>confdefs.h <<\_ACEOF |
3269 |
|
#define WORDS_BIGENDIAN 1 |
3270 |
|
_ACEOF |
3271 |
|
|
3272 |
|
|
3273 |
|
cat >>confdefs.h <<\_ACEOF |
3274 |
|
#define HOST_WORDS_BIG_ENDIAN 1 |
3275 |
|
_ACEOF |
3276 |
|
|
3277 |
|
BYTEORDER=4321 |
3278 |
|
else |
3279 |
|
BYTEORDER=1234 |
3280 |
|
fi |
3281 |
|
|
3282 |
|
cat >>confdefs.h <<_ACEOF |
3283 |
|
#define BYTEORDER $BYTEORDER |
3284 |
|
_ACEOF |
3285 |
|
|
3286 |
|
if test $ac_cv_c_bigendian = unknown; then |
3287 |
|
{ { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5 |
3288 |
|
echo "$as_me: error: unknown endianess - sorry" >&2;} |
3289 |
|
{ (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; } |
3290 |
|
fi |
3291 |
|
|
3292 |
|
|
3293 |
|
|
3294 |
|
|
3295 |
|
ac_config_headers="$ac_config_headers config.h:config.in" |
3296 |
|
|
3297 |
|
|
3298 |
|
|
3299 |
# Find a good install program. We prefer a C program (faster), |
# Find a good install program. We prefer a C program (faster), |
3303 |
# SunOS /usr/etc/install |
# SunOS /usr/etc/install |
3304 |
# IRIX /sbin/install |
# IRIX /sbin/install |
3305 |
# AIX /bin/install |
# AIX /bin/install |
3306 |
|
# AmigaOS /C/install, which installs bootblocks on floppy discs |
3307 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3308 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3309 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
3310 |
# ./install, which can be erroneously created by make from ./install.sh. |
# ./install, which can be erroneously created by make from ./install.sh. |
3311 |
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 |
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3312 |
echo "configure:1029: checking for a BSD compatible install" >&5 |
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
3313 |
if test -z "$INSTALL"; then |
if test -z "$INSTALL"; then |
3314 |
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then |
if test "${ac_cv_path_install+set}" = set; then |
3315 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3316 |
else |
else |
3317 |
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3318 |
for ac_dir in $PATH; do |
for as_dir in $PATH |
3319 |
# Account for people who put trailing slashes in PATH elements. |
do |
3320 |
case "$ac_dir/" in |
IFS=$as_save_IFS |
3321 |
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; |
test -z "$as_dir" && as_dir=. |
3322 |
*) |
# Account for people who put trailing slashes in PATH elements. |
3323 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
case $as_dir/ in |
3324 |
# Don't use installbsd from OSF since it installs stuff as root |
./ | .// | /cC/* | \ |
3325 |
# by default. |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
3326 |
for ac_prog in ginstall scoinst install; do |
/usr/ucb/* ) ;; |
3327 |
if test -f $ac_dir/$ac_prog; then |
*) |
3328 |
if test $ac_prog = install && |
# OSF1 and SCO ODT 3.0 have their own names for install. |
3329 |
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then |
# Don't use installbsd from OSF since it installs stuff as root |
3330 |
# AIX install. It has an incompatible calling convention. |
# by default. |
3331 |
: |
for ac_prog in ginstall scoinst install; do |
3332 |
else |
for ac_exec_ext in '' $ac_executable_extensions; do |
3333 |
ac_cv_path_install="$ac_dir/$ac_prog -c" |
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
3334 |
break 2 |
if test $ac_prog = install && |
3335 |
fi |
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3336 |
fi |
# AIX install. It has an incompatible calling convention. |
3337 |
|
: |
3338 |
|
elif test $ac_prog = install && |
3339 |
|
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3340 |
|
# program-specific install script used by HP pwplus--don't use. |
3341 |
|
: |
3342 |
|
else |
3343 |
|
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3344 |
|
break 3 |
3345 |
|
fi |
3346 |
|
fi |
3347 |
done |
done |
3348 |
;; |
done |
3349 |
esac |
;; |
3350 |
done |
esac |
3351 |
IFS="$ac_save_IFS" |
done |
3352 |
|
|
3353 |
|
|
3354 |
fi |
fi |
3355 |
if test "${ac_cv_path_install+set}" = set; then |
if test "${ac_cv_path_install+set}" = set; then |
3356 |
INSTALL="$ac_cv_path_install" |
INSTALL=$ac_cv_path_install |
3357 |
else |
else |
3358 |
# As a last resort, use the slow shell script. We don't cache a |
# As a last resort, use the slow shell script. We don't cache a |
3359 |
# path for INSTALL within a source directory, because that will |
# path for INSTALL within a source directory, because that will |
3360 |
# break other packages using the cache if that directory is |
# break other packages using the cache if that directory is |
3361 |
# removed, or if the path is relative. |
# removed, or if the path is relative. |
3362 |
INSTALL="$ac_install_sh" |
INSTALL=$ac_install_sh |
3363 |
fi |
fi |
3364 |
fi |
fi |
3365 |
echo "$ac_t""$INSTALL" 1>&6 |
echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3366 |
|
echo "${ECHO_T}$INSTALL" >&6 |
3367 |
|
|
3368 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3369 |
# It thinks the first close brace ends the variable substitution. |
# It thinks the first close brace ends the variable substitution. |
3370 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
3371 |
|
|
3372 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3373 |
|
|
3374 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3375 |
|
|
3381 |
# It's OK to check for header files. Although the compiler may not be |
# It's OK to check for header files. Although the compiler may not be |
3382 |
# able to link anything, it had better be able to at least compile |
# able to link anything, it had better be able to at least compile |
3383 |
# something. |
# something. |
3384 |
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 |
|
3385 |
echo "configure:1090: checking how to run the C preprocessor" >&5 |
|
3386 |
# On Suns, sometimes $CPP names a directory. |
|
3387 |
if test -n "$CPP" && test -d "$CPP"; then |
|
3388 |
CPP= |
|
3389 |
fi |
|
3390 |
if test -z "$CPP"; then |
|
3391 |
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then |
|
3392 |
echo $ac_n "(cached) $ac_c" 1>&6 |
|
3393 |
else |
|
3394 |
# This must be in double quotes, not single quotes, because CPP may get |
|
3395 |
# substituted into the Makefile and "${CC-cc}" will confuse make. |
|
3396 |
CPP="${CC-cc} -E" |
|
3397 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
|
3398 |
# not just through cpp. |
|
3399 |
cat > conftest.$ac_ext <<EOF |
|
3400 |
#line 1105 "configure" |
|
3401 |
#include "confdefs.h" |
|
3402 |
#include <assert.h> |
|
3403 |
Syntax Error |
|
3404 |
EOF |
|
3405 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
|
3406 |
{ (eval echo configure:1111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|
3407 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
for ac_header in sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h |
3408 |
if test -z "$ac_err"; then |
do |
3409 |
: |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3410 |
else |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3411 |
echo "$ac_err" >&5 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
3412 |
echo "configure: failed program was:" >&5 |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3413 |
cat conftest.$ac_ext >&5 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3414 |
rm -rf conftest* |
else |
3415 |
CPP="${CC-cc} -E -traditional-cpp" |
cat >conftest.$ac_ext <<_ACEOF |
3416 |
cat > conftest.$ac_ext <<EOF |
#line $LINENO "configure" |
3417 |
#line 1122 "configure" |
/* confdefs.h. */ |
3418 |
#include "confdefs.h" |
_ACEOF |
3419 |
#include <assert.h> |
cat confdefs.h >>conftest.$ac_ext |
3420 |
Syntax Error |
cat >>conftest.$ac_ext <<_ACEOF |
3421 |
EOF |
/* end confdefs.h. */ |
3422 |
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
#include <$ac_header> |
3423 |
{ (eval echo configure:1128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
_ACEOF |
3424 |
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3425 |
if test -z "$ac_err"; then |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3426 |
: |
ac_status=$? |
3427 |
else |
grep -v '^ *+' conftest.er1 >conftest.err |
3428 |
echo "$ac_err" >&5 |
rm -f conftest.er1 |
3429 |
echo "configure: failed program was:" >&5 |
cat conftest.err >&5 |
3430 |
cat conftest.$ac_ext >&5 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3431 |
rm -rf conftest* |
(exit $ac_status); } >/dev/null; then |
3432 |
CPP="${CC-cc} -nologo -E" |
if test -s conftest.err; then |
3433 |
cat > conftest.$ac_ext <<EOF |
ac_cpp_err=$ac_c_preproc_warn_flag |
3434 |
#line 1139 "configure" |
else |
3435 |
#include "confdefs.h" |
ac_cpp_err= |
3436 |
#include <assert.h> |
fi |
|
Syntax Error |
|
|
EOF |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
|
|
{ (eval echo configure:1145: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
|
|
if test -z "$ac_err"; then |
|
|
: |
|
3437 |
else |
else |
3438 |
echo "$ac_err" >&5 |
ac_cpp_err=yes |
|
echo "configure: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
rm -rf conftest* |
|
|
CPP=/lib/cpp |
|
3439 |
fi |
fi |
3440 |
rm -f conftest* |
if test -z "$ac_cpp_err"; then |
3441 |
fi |
eval "$as_ac_Header=yes" |
|
rm -f conftest* |
|
|
fi |
|
|
rm -f conftest* |
|
|
ac_cv_prog_CPP="$CPP" |
|
|
fi |
|
|
CPP="$ac_cv_prog_CPP" |
|
3442 |
else |
else |
3443 |
ac_cv_prog_CPP="$CPP" |
echo "$as_me: failed program was:" >&5 |
3444 |
fi |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
echo "$ac_t""$CPP" 1>&6 |
|
3445 |
|
|
3446 |
for ac_hdr in sys/file.h sys/param.h limits.h stdlib.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h |
eval "$as_ac_Header=no" |
|
do |
|
|
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
|
|
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
|
|
echo "configure:1173: checking for $ac_hdr" >&5 |
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
cat > conftest.$ac_ext <<EOF |
|
|
#line 1178 "configure" |
|
|
#include "confdefs.h" |
|
|
#include <$ac_hdr> |
|
|
EOF |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
|
|
{ (eval echo configure:1183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
|
|
if test -z "$ac_err"; then |
|
|
rm -rf conftest* |
|
|
eval "ac_cv_header_$ac_safe=yes" |
|
|
else |
|
|
echo "$ac_err" >&5 |
|
|
echo "configure: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
rm -rf conftest* |
|
|
eval "ac_cv_header_$ac_safe=no" |
|
3447 |
fi |
fi |
3448 |
rm -f conftest* |
rm -f conftest.err conftest.$ac_ext |
3449 |
fi |
fi |
3450 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3451 |
echo "$ac_t""yes" 1>&6 |
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
3452 |
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
3453 |
cat >> confdefs.h <<EOF |
cat >>confdefs.h <<_ACEOF |
3454 |
#define $ac_tr_hdr 1 |
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3455 |
EOF |
_ACEOF |
3456 |
|
|
|
else |
|
|
echo "$ac_t""no" 1>&6 |
|
3457 |
fi |
fi |
3458 |
done |
done |
3459 |
|
|
3460 |
echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 |
echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
3461 |
echo "configure:1210: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
3462 |
if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then |
if test "${ac_cv_header_sys_wait_h+set}" = set; then |
3463 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3464 |
else |
else |
3465 |
cat > conftest.$ac_ext <<EOF |
cat >conftest.$ac_ext <<_ACEOF |
3466 |
#line 1215 "configure" |
#line $LINENO "configure" |
3467 |
#include "confdefs.h" |
/* confdefs.h. */ |
3468 |
|
_ACEOF |
3469 |
|
cat confdefs.h >>conftest.$ac_ext |
3470 |
|
cat >>conftest.$ac_ext <<_ACEOF |
3471 |
|
/* end confdefs.h. */ |
3472 |
#include <sys/types.h> |
#include <sys/types.h> |
3473 |
#include <sys/wait.h> |
#include <sys/wait.h> |
3474 |
#ifndef WEXITSTATUS |
#ifndef WEXITSTATUS |
3475 |
#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
3476 |
#endif |
#endif |
3477 |
#ifndef WIFEXITED |
#ifndef WIFEXITED |
3478 |
#define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
3479 |
#endif |
#endif |
3480 |
int main() { |
|
3481 |
int s; |
int |
3482 |
wait (&s); |
main () |
3483 |
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
{ |
3484 |
; return 0; } |
int s; |
3485 |
EOF |
wait (&s); |
3486 |
if { (eval echo configure:1231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
3487 |
rm -rf conftest* |
; |
3488 |
|
return 0; |
3489 |
|
} |
3490 |
|
_ACEOF |
3491 |
|
rm -f conftest.$ac_objext |
3492 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3493 |
|
(eval $ac_compile) 2>&5 |
3494 |
|
ac_status=$? |
3495 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3496 |
|
(exit $ac_status); } && |
3497 |
|
{ ac_try='test -s conftest.$ac_objext' |
3498 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3499 |
|
(eval $ac_try) 2>&5 |
3500 |
|
ac_status=$? |
3501 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3502 |
|
(exit $ac_status); }; }; then |
3503 |
ac_cv_header_sys_wait_h=yes |
ac_cv_header_sys_wait_h=yes |
3504 |
else |
else |
3505 |
echo "configure: failed program was:" >&5 |
echo "$as_me: failed program was:" >&5 |
3506 |
cat conftest.$ac_ext >&5 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3507 |
rm -rf conftest* |
|
3508 |
ac_cv_header_sys_wait_h=no |
ac_cv_header_sys_wait_h=no |
3509 |
fi |
fi |
3510 |
rm -f conftest* |
rm -f conftest.$ac_objext conftest.$ac_ext |
3511 |
fi |
fi |
3512 |
|
echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
3513 |
echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6 |
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
3514 |
if test $ac_cv_header_sys_wait_h = yes; then |
if test $ac_cv_header_sys_wait_h = yes; then |
3515 |
cat >> confdefs.h <<\EOF |
|
3516 |
|
cat >>confdefs.h <<\_ACEOF |
3517 |
#define HAVE_SYS_WAIT_H 1 |
#define HAVE_SYS_WAIT_H 1 |
3518 |
EOF |
_ACEOF |
3519 |
|
|
3520 |
fi |
fi |
3521 |
|
|
3522 |
echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 |
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
3523 |
echo "configure:1252: checking whether time.h and sys/time.h may both be included" >&5 |
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
3524 |
if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then |
if test "${ac_cv_header_time+set}" = set; then |
3525 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3526 |
else |
else |
3527 |
cat > conftest.$ac_ext <<EOF |
cat >conftest.$ac_ext <<_ACEOF |
3528 |
#line 1257 "configure" |
#line $LINENO "configure" |
3529 |
#include "confdefs.h" |
/* confdefs.h. */ |
3530 |
|
_ACEOF |
3531 |
|
cat confdefs.h >>conftest.$ac_ext |
3532 |
|
cat >>conftest.$ac_ext <<_ACEOF |
3533 |
|
/* end confdefs.h. */ |
3534 |
#include <sys/types.h> |
#include <sys/types.h> |
3535 |
#include <sys/time.h> |
#include <sys/time.h> |
3536 |
#include <time.h> |
#include <time.h> |
3537 |
int main() { |
|
3538 |
struct tm *tp; |
int |
3539 |
; return 0; } |
main () |
3540 |
EOF |
{ |
3541 |
if { (eval echo configure:1266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
if ((struct tm *) 0) |
3542 |
rm -rf conftest* |
return 0; |
3543 |
|
; |
3544 |
|
return 0; |
3545 |
|
} |
3546 |
|
_ACEOF |
3547 |
|
rm -f conftest.$ac_objext |
3548 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3549 |
|
(eval $ac_compile) 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_header_time=yes |
ac_cv_header_time=yes |
3560 |
else |
else |
3561 |
echo "configure: failed program was:" >&5 |
echo "$as_me: failed program was:" >&5 |
3562 |
cat conftest.$ac_ext >&5 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3563 |
rm -rf conftest* |
|
3564 |
ac_cv_header_time=no |
ac_cv_header_time=no |
3565 |
fi |
fi |
3566 |
rm -f conftest* |
rm -f conftest.$ac_objext conftest.$ac_ext |
3567 |
fi |
fi |
3568 |
|
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
3569 |
echo "$ac_t""$ac_cv_header_time" 1>&6 |
echo "${ECHO_T}$ac_cv_header_time" >&6 |
3570 |
if test $ac_cv_header_time = yes; then |
if test $ac_cv_header_time = yes; then |
3571 |
cat >> confdefs.h <<\EOF |
|
3572 |
|
cat >>confdefs.h <<\_ACEOF |
3573 |
#define TIME_WITH_SYS_TIME 1 |
#define TIME_WITH_SYS_TIME 1 |
3574 |
EOF |
_ACEOF |
3575 |
|
|
3576 |
fi |
fi |
3577 |
|
|
3578 |
|
|
3579 |
echo $ac_n "checking whether errno must be declared""... $ac_c" 1>&6 |
echo "$as_me:$LINENO: checking whether errno must be declared" >&5 |
3580 |
echo "configure:1288: checking whether errno must be declared" >&5 |
echo $ECHO_N "checking whether errno must be declared... $ECHO_C" >&6 |
3581 |
if eval "test \"`echo '$''{'libiberty_cv_declare_errno'+set}'`\" = set"; then |
if test "${libiberty_cv_declare_errno+set}" = set; then |
3582 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3583 |
else |
else |
3584 |
cat > conftest.$ac_ext <<EOF |
cat >conftest.$ac_ext <<_ACEOF |
3585 |
#line 1293 "configure" |
#line $LINENO "configure" |
3586 |
#include "confdefs.h" |
/* confdefs.h. */ |
3587 |
|
_ACEOF |
3588 |
|
cat confdefs.h >>conftest.$ac_ext |
3589 |
|
cat >>conftest.$ac_ext <<_ACEOF |
3590 |
|
/* end confdefs.h. */ |
3591 |
#include <errno.h> |
#include <errno.h> |
3592 |
int main() { |
int |
3593 |
|
main () |
3594 |
|
{ |
3595 |
int x = errno; |
int x = errno; |
3596 |
; return 0; } |
; |
3597 |
EOF |
return 0; |
3598 |
if { (eval echo configure:1300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
} |
3599 |
rm -rf conftest* |
_ACEOF |
3600 |
|
rm -f conftest.$ac_objext |
3601 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3602 |
|
(eval $ac_compile) 2>&5 |
3603 |
|
ac_status=$? |
3604 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3605 |
|
(exit $ac_status); } && |
3606 |
|
{ ac_try='test -s conftest.$ac_objext' |
3607 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3608 |
|
(eval $ac_try) 2>&5 |
3609 |
|
ac_status=$? |
3610 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3611 |
|
(exit $ac_status); }; }; then |
3612 |
libiberty_cv_declare_errno=no |
libiberty_cv_declare_errno=no |
3613 |
else |
else |
3614 |
echo "configure: failed program was:" >&5 |
echo "$as_me: failed program was:" >&5 |
3615 |
cat conftest.$ac_ext >&5 |
sed 's/^/| /' conftest.$ac_ext >&5 |
3616 |
rm -rf conftest* |
|
3617 |
libiberty_cv_declare_errno=yes |
libiberty_cv_declare_errno=yes |
3618 |
fi |
fi |
3619 |
rm -f conftest* |
rm -f conftest.$ac_objext conftest.$ac_ext |
3620 |
fi |
fi |
3621 |
|
echo "$as_me:$LINENO: result: $libiberty_cv_declare_errno" >&5 |
3622 |
echo "$ac_t""$libiberty_cv_declare_errno" 1>&6 |
echo "${ECHO_T}$libiberty_cv_declare_errno" >&6 |
3623 |
if test $libiberty_cv_declare_errno = yes |
if test $libiberty_cv_declare_errno = yes |
3624 |
then cat >> confdefs.h <<\EOF |
then |
3625 |
|
cat >>confdefs.h <<\_ACEOF |
3626 |
#define NEED_DECLARATION_ERRNO 1 |
#define NEED_DECLARATION_ERRNO 1 |
3627 |
EOF |
_ACEOF |
3628 |
|
|
3629 |
|
fi |
3630 |
|
|
3631 |
|
|
3632 |
|
echo "$as_me:$LINENO: checking for egrep" >&5 |
3633 |
|
echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
3634 |
|
if test "${ac_cv_prog_egrep+set}" = set; then |
3635 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3636 |
|
else |
3637 |
|
if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
3638 |
|
then ac_cv_prog_egrep='grep -E' |
3639 |
|
else ac_cv_prog_egrep='egrep' |
3640 |
|
fi |
3641 |
|
fi |
3642 |
|
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
3643 |
|
echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
3644 |
|
EGREP=$ac_cv_prog_egrep |
3645 |
|
|
3646 |
|
|
3647 |
|
echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3648 |
|
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
3649 |
|
if test "${ac_cv_header_stdc+set}" = set; then |
3650 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3651 |
|
else |
3652 |
|
cat >conftest.$ac_ext <<_ACEOF |
3653 |
|
#line $LINENO "configure" |
3654 |
|
/* confdefs.h. */ |
3655 |
|
_ACEOF |
3656 |
|
cat confdefs.h >>conftest.$ac_ext |
3657 |
|
cat >>conftest.$ac_ext <<_ACEOF |
3658 |
|
/* end confdefs.h. */ |
3659 |
|
#include <stdlib.h> |
3660 |
|
#include <stdarg.h> |
3661 |
|
#include <string.h> |
3662 |
|
#include <float.h> |
3663 |
|
|
3664 |
|
int |
3665 |
|
main () |
3666 |
|
{ |
3667 |
|
|
3668 |
|
; |
3669 |
|
return 0; |
3670 |
|
} |
3671 |
|
_ACEOF |
3672 |
|
rm -f conftest.$ac_objext |
3673 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3674 |
|
(eval $ac_compile) 2>&5 |
3675 |
|
ac_status=$? |
3676 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3677 |
|
(exit $ac_status); } && |
3678 |
|
{ ac_try='test -s conftest.$ac_objext' |
3679 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3680 |
|
(eval $ac_try) 2>&5 |
3681 |
|
ac_status=$? |
3682 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3683 |
|
(exit $ac_status); }; }; then |
3684 |
|
ac_cv_header_stdc=yes |
3685 |
|
else |
3686 |
|
echo "$as_me: failed program was:" >&5 |
3687 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3688 |
|
|
3689 |
|
ac_cv_header_stdc=no |
3690 |
|
fi |
3691 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
3692 |
|
|
3693 |
|
if test $ac_cv_header_stdc = yes; then |
3694 |
|
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
3695 |
|
cat >conftest.$ac_ext <<_ACEOF |
3696 |
|
#line $LINENO "configure" |
3697 |
|
/* confdefs.h. */ |
3698 |
|
_ACEOF |
3699 |
|
cat confdefs.h >>conftest.$ac_ext |
3700 |
|
cat >>conftest.$ac_ext <<_ACEOF |
3701 |
|
/* end confdefs.h. */ |
3702 |
|
#include <string.h> |
3703 |
|
|
3704 |
|
_ACEOF |
3705 |
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3706 |
|
$EGREP "memchr" >/dev/null 2>&1; then |
3707 |
|
: |
3708 |
|
else |
3709 |
|
ac_cv_header_stdc=no |
3710 |
|
fi |
3711 |
|
rm -f conftest* |
3712 |
|
|
3713 |
|
fi |
3714 |
|
|
3715 |
|
if test $ac_cv_header_stdc = yes; then |
3716 |
|
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
3717 |
|
cat >conftest.$ac_ext <<_ACEOF |
3718 |
|
#line $LINENO "configure" |
3719 |
|
/* confdefs.h. */ |
3720 |
|
_ACEOF |
3721 |
|
cat confdefs.h >>conftest.$ac_ext |
3722 |
|
cat >>conftest.$ac_ext <<_ACEOF |
3723 |
|
/* end confdefs.h. */ |
3724 |
|
#include <stdlib.h> |
3725 |
|
|
3726 |
|
_ACEOF |
3727 |
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3728 |
|
$EGREP "free" >/dev/null 2>&1; then |
3729 |
|
: |
3730 |
|
else |
3731 |
|
ac_cv_header_stdc=no |
3732 |
|
fi |
3733 |
|
rm -f conftest* |
3734 |
|
|
3735 |
|
fi |
3736 |
|
|
3737 |
|
if test $ac_cv_header_stdc = yes; then |
3738 |
|
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
3739 |
|
if test "$cross_compiling" = yes; then |
3740 |
|
: |
3741 |
|
else |
3742 |
|
cat >conftest.$ac_ext <<_ACEOF |
3743 |
|
#line $LINENO "configure" |
3744 |
|
/* confdefs.h. */ |
3745 |
|
_ACEOF |
3746 |
|
cat confdefs.h >>conftest.$ac_ext |
3747 |
|
cat >>conftest.$ac_ext <<_ACEOF |
3748 |
|
/* end confdefs.h. */ |
3749 |
|
#include <ctype.h> |
3750 |
|
#if ((' ' & 0x0FF) == 0x020) |
3751 |
|
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
3752 |
|
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
3753 |
|
#else |
3754 |
|
# define ISLOWER(c) \ |
3755 |
|
(('a' <= (c) && (c) <= 'i') \ |
3756 |
|
|| ('j' <= (c) && (c) <= 'r') \ |
3757 |
|
|| ('s' <= (c) && (c) <= 'z')) |
3758 |
|
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
3759 |
|
#endif |
3760 |
|
|
3761 |
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3762 |
|
int |
3763 |
|
main () |
3764 |
|
{ |
3765 |
|
int i; |
3766 |
|
for (i = 0; i < 256; i++) |
3767 |
|
if (XOR (islower (i), ISLOWER (i)) |
3768 |
|
|| toupper (i) != TOUPPER (i)) |
3769 |
|
exit(2); |
3770 |
|
exit (0); |
3771 |
|
} |
3772 |
|
_ACEOF |
3773 |
|
rm -f conftest$ac_exeext |
3774 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
3775 |
|
(eval $ac_link) 2>&5 |
3776 |
|
ac_status=$? |
3777 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3778 |
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
3779 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3780 |
|
(eval $ac_try) 2>&5 |
3781 |
|
ac_status=$? |
3782 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3783 |
|
(exit $ac_status); }; }; then |
3784 |
|
: |
3785 |
|
else |
3786 |
|
echo "$as_me: program exited with status $ac_status" >&5 |
3787 |
|
echo "$as_me: failed program was:" >&5 |
3788 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3789 |
|
|
3790 |
|
( exit $ac_status ) |
3791 |
|
ac_cv_header_stdc=no |
3792 |
|
fi |
3793 |
|
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
3794 |
|
fi |
3795 |
|
fi |
3796 |
|
fi |
3797 |
|
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
3798 |
|
echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
3799 |
|
if test $ac_cv_header_stdc = yes; then |
3800 |
|
|
3801 |
|
cat >>confdefs.h <<\_ACEOF |
3802 |
|
#define STDC_HEADERS 1 |
3803 |
|
_ACEOF |
3804 |
|
|
3805 |
|
fi |
3806 |
|
|
3807 |
|
# On IRIX 5.3, sys/types and inttypes.h are conflicting. |
3808 |
|
|
3809 |
|
|
3810 |
|
|
3811 |
|
|
3812 |
|
|
3813 |
|
|
3814 |
|
|
3815 |
|
|
3816 |
|
|
3817 |
|
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
3818 |
|
inttypes.h stdint.h unistd.h |
3819 |
|
do |
3820 |
|
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3821 |
|
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3822 |
|
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
3823 |
|
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3824 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3825 |
|
else |
3826 |
|
cat >conftest.$ac_ext <<_ACEOF |
3827 |
|
#line $LINENO "configure" |
3828 |
|
/* confdefs.h. */ |
3829 |
|
_ACEOF |
3830 |
|
cat confdefs.h >>conftest.$ac_ext |
3831 |
|
cat >>conftest.$ac_ext <<_ACEOF |
3832 |
|
/* end confdefs.h. */ |
3833 |
|
#include <$ac_header> |
3834 |
|
_ACEOF |
3835 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
3836 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
3837 |
|
ac_status=$? |
3838 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
3839 |
|
rm -f conftest.er1 |
3840 |
|
cat conftest.err >&5 |
3841 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3842 |
|
(exit $ac_status); } >/dev/null; then |
3843 |
|
if test -s conftest.err; then |
3844 |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
3845 |
|
else |
3846 |
|
ac_cpp_err= |
3847 |
|
fi |
3848 |
|
else |
3849 |
|
ac_cpp_err=yes |
3850 |
|
fi |
3851 |
|
if test -z "$ac_cpp_err"; then |
3852 |
|
eval "$as_ac_Header=yes" |
3853 |
|
else |
3854 |
|
echo "$as_me: failed program was:" >&5 |
3855 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3856 |
|
|
3857 |
|
eval "$as_ac_Header=no" |
3858 |
|
fi |
3859 |
|
rm -f conftest.err conftest.$ac_ext |
3860 |
|
fi |
3861 |
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3862 |
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
3863 |
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
3864 |
|
cat >>confdefs.h <<_ACEOF |
3865 |
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
3866 |
|
_ACEOF |
3867 |
|
|
3868 |
|
fi |
3869 |
|
done |
3870 |
|
|
3871 |
|
|
3872 |
|
echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
3873 |
|
echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 |
3874 |
|
if test "${ac_cv_type_uintptr_t+set}" = set; then |
3875 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3876 |
|
else |
3877 |
|
cat >conftest.$ac_ext <<_ACEOF |
3878 |
|
#line $LINENO "configure" |
3879 |
|
/* confdefs.h. */ |
3880 |
|
_ACEOF |
3881 |
|
cat confdefs.h >>conftest.$ac_ext |
3882 |
|
cat >>conftest.$ac_ext <<_ACEOF |
3883 |
|
/* end confdefs.h. */ |
3884 |
|
$ac_includes_default |
3885 |
|
int |
3886 |
|
main () |
3887 |
|
{ |
3888 |
|
if ((uintptr_t *) 0) |
3889 |
|
return 0; |
3890 |
|
if (sizeof (uintptr_t)) |
3891 |
|
return 0; |
3892 |
|
; |
3893 |
|
return 0; |
3894 |
|
} |
3895 |
|
_ACEOF |
3896 |
|
rm -f conftest.$ac_objext |
3897 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3898 |
|
(eval $ac_compile) 2>&5 |
3899 |
|
ac_status=$? |
3900 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3901 |
|
(exit $ac_status); } && |
3902 |
|
{ ac_try='test -s conftest.$ac_objext' |
3903 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3904 |
|
(eval $ac_try) 2>&5 |
3905 |
|
ac_status=$? |
3906 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3907 |
|
(exit $ac_status); }; }; then |
3908 |
|
ac_cv_type_uintptr_t=yes |
3909 |
|
else |
3910 |
|
echo "$as_me: failed program was:" >&5 |
3911 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3912 |
|
|
3913 |
|
ac_cv_type_uintptr_t=no |
3914 |
|
fi |
3915 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
3916 |
|
fi |
3917 |
|
echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
3918 |
|
echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 |
3919 |
|
if test $ac_cv_type_uintptr_t = yes; then |
3920 |
|
: |
3921 |
|
else |
3922 |
|
|
3923 |
|
cat >>confdefs.h <<_ACEOF |
3924 |
|
#define uintptr_t unsigned long |
3925 |
|
_ACEOF |
3926 |
|
|
3927 |
|
fi |
3928 |
|
|
3929 |
|
# Given the above check, we always have uintptr_t or a fallback |
3930 |
|
# definition. So define HAVE_UINTPTR_T in case any imported code |
3931 |
|
# relies on it. |
3932 |
|
|
3933 |
|
cat >>confdefs.h <<\_ACEOF |
3934 |
|
#define HAVE_UINTPTR_T 1 |
3935 |
|
_ACEOF |
3936 |
|
|
3937 |
|
|
3938 |
|
echo "$as_me:$LINENO: checking for pid_t" >&5 |
3939 |
|
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
3940 |
|
if test "${ac_cv_type_pid_t+set}" = set; then |
3941 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
3942 |
|
else |
3943 |
|
cat >conftest.$ac_ext <<_ACEOF |
3944 |
|
#line $LINENO "configure" |
3945 |
|
/* confdefs.h. */ |
3946 |
|
_ACEOF |
3947 |
|
cat confdefs.h >>conftest.$ac_ext |
3948 |
|
cat >>conftest.$ac_ext <<_ACEOF |
3949 |
|
/* end confdefs.h. */ |
3950 |
|
$ac_includes_default |
3951 |
|
int |
3952 |
|
main () |
3953 |
|
{ |
3954 |
|
if ((pid_t *) 0) |
3955 |
|
return 0; |
3956 |
|
if (sizeof (pid_t)) |
3957 |
|
return 0; |
3958 |
|
; |
3959 |
|
return 0; |
3960 |
|
} |
3961 |
|
_ACEOF |
3962 |
|
rm -f conftest.$ac_objext |
3963 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3964 |
|
(eval $ac_compile) 2>&5 |
3965 |
|
ac_status=$? |
3966 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3967 |
|
(exit $ac_status); } && |
3968 |
|
{ ac_try='test -s conftest.$ac_objext' |
3969 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3970 |
|
(eval $ac_try) 2>&5 |
3971 |
|
ac_status=$? |
3972 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3973 |
|
(exit $ac_status); }; }; then |
3974 |
|
ac_cv_type_pid_t=yes |
3975 |
|
else |
3976 |
|
echo "$as_me: failed program was:" >&5 |
3977 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
3978 |
|
|
3979 |
|
ac_cv_type_pid_t=no |
3980 |
|
fi |
3981 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
3982 |
|
fi |
3983 |
|
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
3984 |
|
echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
3985 |
|
if test $ac_cv_type_pid_t = yes; then |
3986 |
|
: |
3987 |
|
else |
3988 |
|
|
3989 |
|
cat >>confdefs.h <<_ACEOF |
3990 |
|
#define pid_t int |
3991 |
|
_ACEOF |
3992 |
|
|
3993 |
fi |
fi |
3994 |
|
|
4005 |
funcs="$funcs bzero" |
funcs="$funcs bzero" |
4006 |
funcs="$funcs calloc" |
funcs="$funcs calloc" |
4007 |
funcs="$funcs clock" |
funcs="$funcs clock" |
4008 |
|
funcs="$funcs ffs" |
4009 |
funcs="$funcs getcwd" |
funcs="$funcs getcwd" |
4010 |
funcs="$funcs getpagesize" |
funcs="$funcs getpagesize" |
4011 |
funcs="$funcs index" |
funcs="$funcs index" |
4014 |
funcs="$funcs memcmp" |
funcs="$funcs memcmp" |
4015 |
funcs="$funcs memcpy" |
funcs="$funcs memcpy" |
4016 |
funcs="$funcs memmove" |
funcs="$funcs memmove" |
4017 |
|
funcs="$funcs mempcpy" |
4018 |
funcs="$funcs memset" |
funcs="$funcs memset" |
4019 |
funcs="$funcs mkstemps" |
funcs="$funcs mkstemps" |
4020 |
funcs="$funcs putenv" |
funcs="$funcs putenv" |
4022 |
funcs="$funcs rename" |
funcs="$funcs rename" |
4023 |
funcs="$funcs rindex" |
funcs="$funcs rindex" |
4024 |
funcs="$funcs setenv" |
funcs="$funcs setenv" |
4025 |
|
funcs="$funcs snprintf" |
4026 |
funcs="$funcs sigsetmask" |
funcs="$funcs sigsetmask" |
4027 |
|
funcs="$funcs stpcpy" |
4028 |
|
funcs="$funcs stpncpy" |
4029 |
funcs="$funcs strcasecmp" |
funcs="$funcs strcasecmp" |
4030 |
funcs="$funcs strchr" |
funcs="$funcs strchr" |
4031 |
funcs="$funcs strdup" |
funcs="$funcs strdup" |
4039 |
funcs="$funcs vasprintf" |
funcs="$funcs vasprintf" |
4040 |
funcs="$funcs vfprintf" |
funcs="$funcs vfprintf" |
4041 |
funcs="$funcs vprintf" |
funcs="$funcs vprintf" |
4042 |
|
funcs="$funcs vsnprintf" |
4043 |
funcs="$funcs vsprintf" |
funcs="$funcs vsprintf" |
4044 |
funcs="$funcs waitpid" |
funcs="$funcs waitpid" |
4045 |
|
|
4048 |
vars="sys_errlist sys_nerr sys_siglist" |
vars="sys_errlist sys_nerr sys_siglist" |
4049 |
|
|
4050 |
checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday" |
checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday" |
4051 |
|
checkfuncs="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp" |
4052 |
|
checkfuncs="$checkfuncs getsysinfo table sysctl" |
4053 |
|
|
4054 |
# These are neither executed nor required, but they help keep |
# These are neither executed nor required, but they help keep |
4055 |
# autoheader happy without adding a bunch of text to acconfig.h. |
# autoheader happy without adding a bunch of text to acconfig.h. |
4056 |
if test "x" = "y"; then |
if test "x" = "y"; then |
|
for ac_func in asprintf atexit basename bcmp bcopy bsearch bzero calloc clock |
|
|
do |
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
|
|
echo "configure:1377: checking for $ac_func" >&5 |
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
cat > conftest.$ac_ext <<EOF |
|
|
#line 1382 "configure" |
|
|
#include "confdefs.h" |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
|
|
which can conflict with char $ac_func(); below. */ |
|
|
#include <assert.h> |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
builtin and then its argument prototype would still apply. */ |
|
|
char $ac_func(); |
|
4057 |
|
|
|
int main() { |
|
4058 |
|
|
|
/* The GNU C library defines this for functions which it implements |
|
|
to always fail with ENOSYS. Some functions are actually named |
|
|
something starting with __ and the normal name is an alias. */ |
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
choke me |
|
|
#else |
|
|
$ac_func(); |
|
|
#endif |
|
4059 |
|
|
|
; return 0; } |
|
|
EOF |
|
|
if { (eval echo configure:1405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
|
|
rm -rf conftest* |
|
|
eval "ac_cv_func_$ac_func=yes" |
|
|
else |
|
|
echo "configure: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
rm -rf conftest* |
|
|
eval "ac_cv_func_$ac_func=no" |
|
|
fi |
|
|
rm -f conftest* |
|
|
fi |
|
4060 |
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
|
|
echo "$ac_t""yes" 1>&6 |
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
|
|
cat >> confdefs.h <<EOF |
|
|
#define $ac_tr_func 1 |
|
|
EOF |
|
|
|
|
|
else |
|
|
echo "$ac_t""no" 1>&6 |
|
|
fi |
|
|
done |
|
4061 |
|
|
|
for ac_func in getcwd getpagesize index insque mkstemps memchr memcmp memcpy |
|
|
do |
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
|
|
echo "configure:1432: checking for $ac_func" >&5 |
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
cat > conftest.$ac_ext <<EOF |
|
|
#line 1437 "configure" |
|
|
#include "confdefs.h" |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
|
|
which can conflict with char $ac_func(); below. */ |
|
|
#include <assert.h> |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
builtin and then its argument prototype would still apply. */ |
|
|
char $ac_func(); |
|
4062 |
|
|
|
int main() { |
|
4063 |
|
|
|
/* The GNU C library defines this for functions which it implements |
|
|
to always fail with ENOSYS. Some functions are actually named |
|
|
something starting with __ and the normal name is an alias. */ |
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
choke me |
|
|
#else |
|
|
$ac_func(); |
|
|
#endif |
|
4064 |
|
|
|
; return 0; } |
|
|
EOF |
|
|
if { (eval echo configure:1460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
|
|
rm -rf conftest* |
|
|
eval "ac_cv_func_$ac_func=yes" |
|
|
else |
|
|
echo "configure: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
rm -rf conftest* |
|
|
eval "ac_cv_func_$ac_func=no" |
|
|
fi |
|
|
rm -f conftest* |
|
|
fi |
|
4065 |
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
|
|
echo "$ac_t""yes" 1>&6 |
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
|
|
cat >> confdefs.h <<EOF |
|
|
#define $ac_tr_func 1 |
|
|
EOF |
|
|
|
|
|
else |
|
|
echo "$ac_t""no" 1>&6 |
|
|
fi |
|
|
done |
|
4066 |
|
|
|
for ac_func in memmove memset putenv random rename rindex sigsetmask |
|
|
do |
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
|
|
echo "configure:1487: checking for $ac_func" >&5 |
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
cat > conftest.$ac_ext <<EOF |
|
|
#line 1492 "configure" |
|
|
#include "confdefs.h" |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
|
|
which can conflict with char $ac_func(); below. */ |
|
|
#include <assert.h> |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
builtin and then its argument prototype would still apply. */ |
|
|
char $ac_func(); |
|
4067 |
|
|
|
int main() { |
|
4068 |
|
|
|
/* The GNU C library defines this for functions which it implements |
|
|
to always fail with ENOSYS. Some functions are actually named |
|
|
something starting with __ and the normal name is an alias. */ |
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
choke me |
|
|
#else |
|
|
$ac_func(); |
|
|
#endif |
|
4069 |
|
|
|
; return 0; } |
|
|
EOF |
|
|
if { (eval echo configure:1515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
|
|
rm -rf conftest* |
|
|
eval "ac_cv_func_$ac_func=yes" |
|
|
else |
|
|
echo "configure: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
rm -rf conftest* |
|
|
eval "ac_cv_func_$ac_func=no" |
|
|
fi |
|
|
rm -f conftest* |
|
|
fi |
|
4070 |
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
|
|
echo "$ac_t""yes" 1>&6 |
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
|
|
cat >> confdefs.h <<EOF |
|
|
#define $ac_tr_func 1 |
|
|
EOF |
|
|
|
|
|
else |
|
|
echo "$ac_t""no" 1>&6 |
|
|
fi |
|
|
done |
|
4071 |
|
|
|
for ac_func in strcasecmp setenv strchr strdup strncasecmp strrchr strstr |
|
|
do |
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
|
|
echo "configure:1542: checking for $ac_func" >&5 |
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
cat > conftest.$ac_ext <<EOF |
|
|
#line 1547 "configure" |
|
|
#include "confdefs.h" |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
|
|
which can conflict with char $ac_func(); below. */ |
|
|
#include <assert.h> |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
builtin and then its argument prototype would still apply. */ |
|
|
char $ac_func(); |
|
4072 |
|
|
|
int main() { |
|
4073 |
|
|
|
/* The GNU C library defines this for functions which it implements |
|
|
to always fail with ENOSYS. Some functions are actually named |
|
|
something starting with __ and the normal name is an alias. */ |
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
choke me |
|
|
#else |
|
|
$ac_func(); |
|
|
#endif |
|
4074 |
|
|
|
; return 0; } |
|
|
EOF |
|
|
if { (eval echo configure:1570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
|
|
rm -rf conftest* |
|
|
eval "ac_cv_func_$ac_func=yes" |
|
|
else |
|
|
echo "configure: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
rm -rf conftest* |
|
|
eval "ac_cv_func_$ac_func=no" |
|
|
fi |
|
|
rm -f conftest* |
|
|
fi |
|
4075 |
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
|
|
echo "$ac_t""yes" 1>&6 |
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
|
|
cat >> confdefs.h <<EOF |
|
|
#define $ac_tr_func 1 |
|
|
EOF |
|
|
|
|
|
else |
|
|
echo "$ac_t""no" 1>&6 |
|
|
fi |
|
|
done |
|
4076 |
|
|
|
for ac_func in strtod strtol strtoul tmpnam vasprintf vfprintf vprintf |
|
|
do |
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
|
|
echo "configure:1597: checking for $ac_func" >&5 |
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
cat > conftest.$ac_ext <<EOF |
|
|
#line 1602 "configure" |
|
|
#include "confdefs.h" |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
|
|
which can conflict with char $ac_func(); below. */ |
|
|
#include <assert.h> |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
builtin and then its argument prototype would still apply. */ |
|
|
char $ac_func(); |
|
4077 |
|
|
|
int main() { |
|
4078 |
|
|
|
/* The GNU C library defines this for functions which it implements |
|
|
to always fail with ENOSYS. Some functions are actually named |
|
|
something starting with __ and the normal name is an alias. */ |
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
choke me |
|
|
#else |
|
|
$ac_func(); |
|
|
#endif |
|
4079 |
|
|
|
; return 0; } |
|
|
EOF |
|
|
if { (eval echo configure:1625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
|
|
rm -rf conftest* |
|
|
eval "ac_cv_func_$ac_func=yes" |
|
|
else |
|
|
echo "configure: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
rm -rf conftest* |
|
|
eval "ac_cv_func_$ac_func=no" |
|
|
fi |
|
|
rm -f conftest* |
|
|
fi |
|
4080 |
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
|
|
echo "$ac_t""yes" 1>&6 |
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
|
|
cat >> confdefs.h <<EOF |
|
|
#define $ac_tr_func 1 |
|
|
EOF |
|
|
|
|
|
else |
|
|
echo "$ac_t""no" 1>&6 |
|
|
fi |
|
|
done |
|
4081 |
|
|
|
for ac_func in vsprintf waitpid getrusage on_exit psignal strerror strsignal |
|
|
do |
|
|
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
|
|
echo "configure:1652: checking for $ac_func" >&5 |
|
|
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
cat > conftest.$ac_ext <<EOF |
|
|
#line 1657 "configure" |
|
|
#include "confdefs.h" |
|
|
/* System header to define __stub macros and hopefully few prototypes, |
|
|
which can conflict with char $ac_func(); below. */ |
|
|
#include <assert.h> |
|
|
/* Override any gcc2 internal prototype to avoid an error. */ |
|
|
/* We use char because int might match the return type of a gcc2 |
|
|
builtin and then its argument prototype would still apply. */ |
|
|
char $ac_func(); |
|
4082 |
|
|
|
int main() { |
|
4083 |
|
|
|
/* The GNU C library defines this for functions which it implements |
|
|
to always fail with ENOSYS. Some functions are actually named |
|
|
something starting with __ and the normal name is an alias. */ |
|
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
|
|
choke me |
|
|
#else |
|
|
$ac_func(); |
|
|
#endif |
|
4084 |
|
|
|
; return 0; } |
|
|
EOF |
|
|
if { (eval echo configure:1680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
|
|
rm -rf conftest* |
|
|
eval "ac_cv_func_$ac_func=yes" |
|
|
else |
|
|
echo "configure: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
rm -rf conftest* |
|
|
eval "ac_cv_func_$ac_func=no" |
|
|
fi |
|
|
rm -f conftest* |
|
|
fi |
|
4085 |
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
|
|
echo "$ac_t""yes" 1>&6 |
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
|
|
cat >> confdefs.h <<EOF |
|
|
#define $ac_tr_func 1 |
|
|
EOF |
|
|
|
|
|
else |
|
|
echo "$ac_t""no" 1>&6 |
|
|
fi |
|
|
done |
|
4086 |
|
|
4087 |
for ac_func in sysconf times sbrk gettimeofday |
|
4088 |
|
|
4089 |
|
|
4090 |
|
|
4091 |
|
|
4092 |
|
|
4093 |
|
|
4094 |
|
|
4095 |
|
|
4096 |
|
|
4097 |
|
|
4098 |
|
|
4099 |
|
|
4100 |
|
|
4101 |
|
|
4102 |
|
|
4103 |
|
|
4104 |
|
|
4105 |
|
|
4106 |
|
|
4107 |
|
|
4108 |
|
|
4109 |
|
|
4110 |
|
|
4111 |
|
|
4112 |
|
|
4113 |
|
|
4114 |
|
|
4115 |
|
|
4116 |
|
|
4117 |
|
|
4118 |
|
|
4119 |
|
|
4120 |
|
for ac_func in asprintf atexit basename bcmp bcopy bsearch bzero calloc clock \ |
4121 |
|
getcwd getpagesize index insque mkstemps memchr memcmp memcpy \ |
4122 |
|
memmove mempcpy memset putenv random rename rindex sigsetmask \ |
4123 |
|
strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strrchr strstr \ |
4124 |
|
strtod strtol strtoul tmpnam vasprintf vfprintf vprintf \ |
4125 |
|
vsprintf waitpid getrusage on_exit psignal strerror strsignal \ |
4126 |
|
sysconf times sbrk gettimeofday ffs snprintf vsnprintf \ |
4127 |
|
pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl \ |
4128 |
|
realpath canonicalize_file_name |
4129 |
do |
do |
4130 |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4131 |
echo "configure:1707: checking for $ac_func" >&5 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
4132 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
4133 |
echo $ac_n "(cached) $ac_c" 1>&6 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
4134 |
else |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4135 |
cat > conftest.$ac_ext <<EOF |
else |
4136 |
#line 1712 "configure" |
if test x$gcc_no_link = xyes; then |
4137 |
#include "confdefs.h" |
{ { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 |
4138 |
|
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} |
4139 |
|
{ (exit 1); exit 1; }; } |
4140 |
|
fi |
4141 |
|
cat >conftest.$ac_ext <<_ACEOF |
4142 |
|
#line $LINENO "configure" |
4143 |
|
/* confdefs.h. */ |
4144 |
|
_ACEOF |
4145 |
|
cat confdefs.h >>conftest.$ac_ext |
4146 |
|
cat >>conftest.$ac_ext <<_ACEOF |
4147 |
|
/* end confdefs.h. */ |
4148 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
4149 |
which can conflict with char $ac_func(); below. */ |
which can conflict with char $ac_func (); below. |
4150 |
#include <assert.h> |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4151 |
|
<limits.h> exists even on freestanding compilers. Under hpux, |
4152 |
|
including <limits.h> includes <sys/time.h> and causes problems |
4153 |
|
checking for functions defined therein. */ |
4154 |
|
#if defined (__STDC__) && !defined (_HPUX_SOURCE) |
4155 |
|
# include <limits.h> |
4156 |
|
#else |
4157 |
|
# include <assert.h> |
4158 |
|
#endif |
4159 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
4160 |
|
#ifdef __cplusplus |
4161 |
|
extern "C" |
4162 |
|
{ |
4163 |
|
#endif |
4164 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
4165 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
4166 |
char $ac_func(); |
char $ac_func (); |
|
|
|
|
int main() { |
|
|
|
|
4167 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
4168 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
4169 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
4170 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
4171 |
choke me |
choke me |
4172 |
#else |
#else |
4173 |
$ac_func(); |
char (*f) () = $ac_func; |
4174 |
|
#endif |
4175 |
|
#ifdef __cplusplus |
4176 |
|
} |
4177 |
#endif |
#endif |
4178 |
|
|
4179 |
; return 0; } |
int |
4180 |
EOF |
main () |
4181 |
if { (eval echo configure:1735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
{ |
4182 |
rm -rf conftest* |
return f != $ac_func; |
4183 |
eval "ac_cv_func_$ac_func=yes" |
; |
4184 |
else |
return 0; |
4185 |
echo "configure: failed program was:" >&5 |
} |
4186 |
cat conftest.$ac_ext >&5 |
_ACEOF |
4187 |
rm -rf conftest* |
rm -f conftest.$ac_objext conftest$ac_exeext |
4188 |
eval "ac_cv_func_$ac_func=no" |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4189 |
fi |
(eval $ac_link) 2>&5 |
4190 |
rm -f conftest* |
ac_status=$? |
4191 |
fi |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4192 |
|
(exit $ac_status); } && |
4193 |
|
{ ac_try='test -s conftest$ac_exeext' |
4194 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4195 |
|
(eval $ac_try) 2>&5 |
4196 |
|
ac_status=$? |
4197 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4198 |
|
(exit $ac_status); }; }; then |
4199 |
|
eval "$as_ac_var=yes" |
4200 |
|
else |
4201 |
|
echo "$as_me: failed program was:" >&5 |
4202 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
4203 |
|
|
4204 |
|
eval "$as_ac_var=no" |
4205 |
|
fi |
4206 |
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4207 |
|
fi |
4208 |
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
4209 |
|
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
4210 |
|
if test `eval echo '${'$as_ac_var'}'` = yes; then |
4211 |
|
cat >>confdefs.h <<_ACEOF |
4212 |
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
4213 |
|
_ACEOF |
4214 |
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
|
|
echo "$ac_t""yes" 1>&6 |
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
|
|
cat >> confdefs.h <<EOF |
|
|
#define $ac_tr_func 1 |
|
|
EOF |
|
|
|
|
|
else |
|
|
echo "$ac_t""no" 1>&6 |
|
4215 |
fi |
fi |
4216 |
done |
done |
4217 |
|
|
4218 |
cat >> confdefs.h <<\EOF |
|
4219 |
|
cat >>confdefs.h <<\_ACEOF |
4220 |
#define HAVE_SYS_ERRLIST 1 |
#define HAVE_SYS_ERRLIST 1 |
4221 |
EOF |
_ACEOF |
4222 |
|
|
4223 |
cat >> confdefs.h <<\EOF |
|
4224 |
|
cat >>confdefs.h <<\_ACEOF |
4225 |
#define HAVE_SYS_NERR 1 |
#define HAVE_SYS_NERR 1 |
4226 |
EOF |
_ACEOF |
4227 |
|
|
4228 |
cat >> confdefs.h <<\EOF |
|
4229 |
|
cat >>confdefs.h <<\_ACEOF |
4230 |
#define HAVE_SYS_SIGLIST 1 |
#define HAVE_SYS_SIGLIST 1 |
4231 |
EOF |
_ACEOF |
4232 |
|
|
4233 |
fi |
fi |
4234 |
|
|
4235 |
# For each of these functions, if the host does not provide the |
# For each of these functions, if the host does not provide the |
4236 |
# function we want to put FN.o in LIBOBJS, and if the host does |
# function we want to put FN.o in LIBOBJS, and if the host does |
4237 |
# provide the function, we want to define HAVE_FN in config.h. Also, |
# provide the function, we want to define HAVE_FN in config.h. |
|
# if the host does not provide alloca, we set ALLOCA to alloca.o |
|
4238 |
|
|
4239 |
setobjs= |
setobjs= |
4240 |
CHECK= |
CHECK= |
4241 |
|
target_header_dir= |
4242 |
if test -n "${with_target_subdir}"; then |
if test -n "${with_target_subdir}"; then |
4243 |
|
|
4244 |
# We are being configured as a target library. AC_REPLACE_FUNCS |
# We are being configured as a target library. AC_REPLACE_FUNCS |
4250 |
# newlib provide and which ones we will be expected to provide. |
# newlib provide and which ones we will be expected to provide. |
4251 |
|
|
4252 |
if test "x${with_newlib}" = "xyes"; then |
if test "x${with_newlib}" = "xyes"; then |
4253 |
ALLOCA="alloca.o" |
LIBOBJS="$LIBOBJS asprintf.$ac_objext" |
4254 |
LIBOBJS="asprintf.o basename.o insque.o random.o strdup.o vasprintf.o" |
LIBOBJS="$LIBOBJS basename.$ac_objext" |
4255 |
|
LIBOBJS="$LIBOBJS insque.$ac_objext" |
4256 |
|
LIBOBJS="$LIBOBJS random.$ac_objext" |
4257 |
|
LIBOBJS="$LIBOBJS strdup.$ac_objext" |
4258 |
|
LIBOBJS="$LIBOBJS vasprintf.$ac_objext" |
4259 |
|
|
4260 |
for f in $funcs; do |
for f in $funcs; do |
4261 |
case "$f" in |
case "$f" in |
4263 |
;; |
;; |
4264 |
*) |
*) |
4265 |
n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
4266 |
cat >> confdefs.h <<EOF |
cat >>confdefs.h <<_ACEOF |
4267 |
#define $n 1 |
#define $n 1 |
4268 |
EOF |
_ACEOF |
4269 |
|
|
4270 |
;; |
;; |
4271 |
esac |
esac |
4284 |
|
|
4285 |
fi |
fi |
4286 |
|
|
4287 |
|
# We may wish to install the target headers somewhere. |
4288 |
|
# Check whether --enable-install-libiberty or --disable-install-libiberty was given. |
4289 |
|
if test "${enable_install_libiberty+set}" = set; then |
4290 |
|
enableval="$enable_install_libiberty" |
4291 |
|
enable_install_libiberty=$enableval |
4292 |
|
else |
4293 |
|
enable_install_libiberty=no |
4294 |
|
fi; |
4295 |
|
# Option parsed, now set things appropriately. |
4296 |
|
case x"$enable_install_libiberty" in |
4297 |
|
xyes|x) |
4298 |
|
target_header_dir=libiberty |
4299 |
|
;; |
4300 |
|
xno) |
4301 |
|
target_header_dir= |
4302 |
|
;; |
4303 |
|
*) |
4304 |
|
# This could be sanity-checked in various ways... |
4305 |
|
target_header_dir="${enable_install_libiberty}" |
4306 |
|
;; |
4307 |
|
esac |
4308 |
|
|
4309 |
|
|
4310 |
else |
else |
4311 |
|
|
4312 |
# Not a target library, so we set things up to run the test suite. |
# Not a target library, so we set things up to run the test suite. |
4316 |
|
|
4317 |
|
|
4318 |
|
|
4319 |
|
|
4320 |
case "${host}" in |
case "${host}" in |
4321 |
*-*-cygwin*) |
*-*-cygwin* | *-*-mingw*) |
4322 |
cat >> confdefs.h <<\EOF |
cat >> confdefs.h <<\EOF |
4323 |
#define HAVE_SYS_ERRLIST 1 |
#define HAVE_SYS_ERRLIST 1 |
4324 |
EOF |
EOF |
4337 |
# Handle VxWorks configuration specially, since on VxWorks the |
# Handle VxWorks configuration specially, since on VxWorks the |
4338 |
# libraries are actually on the target board, not in the file |
# libraries are actually on the target board, not in the file |
4339 |
# system. |
# system. |
4340 |
LIBOBJS="basename.o getpagesize.o insque.o random.o strcasecmp.o" |
LIBOBJS="$LIBOBJS basename.$ac_objext" |
4341 |
LIBOBJS="$LIBOBJS strncasecmp.o strdup.o vfork.o waitpid.o vasprintf.o" |
LIBOBJS="$LIBOBJS getpagesize.$ac_objext" |
4342 |
|
LIBOBJS="$LIBOBJS insque.$ac_objext" |
4343 |
|
LIBOBJS="$LIBOBJS random.$ac_objext" |
4344 |
|
LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" |
4345 |
|
LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" |
4346 |
|
LIBOBJS="$LIBOBJS strdup.$ac_objext" |
4347 |
|
LIBOBJS="$LIBOBJS vfork.$ac_objext" |
4348 |
|
LIBOBJS="$LIBOBJS waitpid.$ac_objext" |
4349 |
|
LIBOBJS="$LIBOBJS vasprintf.$ac_objext" |
4350 |
for f in $funcs; do |
for f in $funcs; do |
4351 |
case "$f" in |
case "$f" in |
4352 |
basename | getpagesize | insque | random | strcasecmp) |
basename | getpagesize | insque | random | strcasecmp) |
4355 |
;; |
;; |
4356 |
*) |
*) |
4357 |
n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
n=HAVE_`echo $f | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
4358 |
cat >> confdefs.h <<EOF |
cat >>confdefs.h <<_ACEOF |
4359 |
#define $n 1 |
#define $n 1 |
4360 |
EOF |
_ACEOF |
4361 |
|
|
4362 |
;; |
;; |
4363 |
esac |
esac |
4395 |
# missing. |
# missing. |
4396 |
|
|
4397 |
# DJ - only if we're *building* cygwin, not just building *with* cygwin |
# DJ - only if we're *building* cygwin, not just building *with* cygwin |
4398 |
|
|
4399 |
if test -n "${with_target_subdir}" |
if test -n "${with_target_subdir}" |
4400 |
then |
then |
4401 |
funcs="`echo $funcs | sed -e 's/random//'`" |
funcs="`echo $funcs | sed -e 's/random//'`" |
4402 |
LIBOBJS="$LIBOBJS random.o" |
LIBOBJS="$LIBOBJS random.$ac_objext" |
4403 |
vars="`echo $vars | sed -e 's/sys_siglist//'`" |
vars="`echo $vars | sed -e 's/sys_siglist//'`" |
4404 |
checkfuncs="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`" |
checkfuncs="`echo $checkfuncs | sed -e 's/strsignal//' -e 's/psignal//'`" |
4405 |
fi |
fi |
4413 |
;; |
;; |
4414 |
|
|
4415 |
*-*-uwin*) |
*-*-uwin*) |
4416 |
# Under some versions of uwin, vfork is notoriously buggy and the test |
# Under some versions of uwin, vfork is notoriously buggy and the test |
4417 |
# can hang configure; on other versions, vfork exists just as a stub. |
# can hang configure; on other versions, vfork exists just as a stub. |
4418 |
# FIXME: This should be removed once vfork in uwin's runtime is fixed. |
# FIXME: This should be removed once vfork in uwin's runtime is fixed. |
4419 |
ac_cv_func_vfork_works=no |
ac_cv_func_vfork_works=no |
4420 |
# Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are |
# Under uwin 2.0+, sys_nerr and sys_errlist exist, but they are |
4421 |
# macros (actually, these are imported from a DLL, but the end effect |
# macros (actually, these are imported from a DLL, but the end effect |
4422 |
# is the same), so the test below won't find them. |
# is the same), so the test below won't find them. |
4423 |
libiberty_cv_var_sys_nerr=yes |
libiberty_cv_var_sys_nerr=yes |
4424 |
libiberty_cv_var_sys_errlist=yes |
libiberty_cv_var_sys_errlist=yes |
4425 |
;; |
;; |
4426 |
|
|
4427 |
|
*-*-*vms*) |
4428 |
|
# Under VMS, vfork works very different than on Unix. The standard test |
4429 |
|
# won't work, and it isn't easily adaptable. It makes more sense to |
4430 |
|
# just force it. |
4431 |
|
ac_cv_func_vfork_works=yes |
4432 |
|
;; |
4433 |
|
|
4434 |
esac |
esac |
4435 |
|
|
4436 |
# We haven't set the list of objects yet. Use the standard autoconf |
# We haven't set the list of objects yet. Use the standard autoconf |
4437 |
# tests. This will only work if the compiler works. |
# tests. This will only work if the compiler works. |
4438 |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 |
echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
4439 |
echo "configure:1934: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 |
4440 |
|
if test "${ac_cv_search_strerror+set}" = set; then |
4441 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4442 |
|
else |
4443 |
|
ac_func_search_save_LIBS=$LIBS |
4444 |
|
ac_cv_search_strerror=no |
4445 |
|
if test x$gcc_no_link = xyes; then |
4446 |
|
{ { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 |
4447 |
|
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} |
4448 |
|
{ (exit 1); exit 1; }; } |
4449 |
|
fi |
4450 |
|
cat >conftest.$ac_ext <<_ACEOF |
4451 |
|
#line $LINENO "configure" |
4452 |
|
/* confdefs.h. */ |
4453 |
|
_ACEOF |
4454 |
|
cat confdefs.h >>conftest.$ac_ext |
4455 |
|
cat >>conftest.$ac_ext <<_ACEOF |
4456 |
|
/* end confdefs.h. */ |
4457 |
|
|
4458 |
ac_ext=c |
/* Override any gcc2 internal prototype to avoid an error. */ |
4459 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
#ifdef __cplusplus |
4460 |
ac_cpp='$CPP $CPPFLAGS' |
extern "C" |
4461 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
#endif |
4462 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
/* We use char because int might match the return type of a gcc2 |
4463 |
cross_compiling=$ac_cv_prog_cc_cross |
builtin and then its argument prototype would still apply. */ |
4464 |
|
char strerror (); |
4465 |
|
int |
4466 |
|
main () |
4467 |
|
{ |
4468 |
|
strerror (); |
4469 |
|
; |
4470 |
|
return 0; |
4471 |
|
} |
4472 |
|
_ACEOF |
4473 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
4474 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4475 |
|
(eval $ac_link) 2>&5 |
4476 |
|
ac_status=$? |
4477 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4478 |
|
(exit $ac_status); } && |
4479 |
|
{ ac_try='test -s conftest$ac_exeext' |
4480 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4481 |
|
(eval $ac_try) 2>&5 |
4482 |
|
ac_status=$? |
4483 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4484 |
|
(exit $ac_status); }; }; then |
4485 |
|
ac_cv_search_strerror="none required" |
4486 |
|
else |
4487 |
|
echo "$as_me: failed program was:" >&5 |
4488 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
4489 |
|
|
4490 |
|
fi |
4491 |
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4492 |
|
if test "$ac_cv_search_strerror" = no; then |
4493 |
|
for ac_lib in cposix; do |
4494 |
|
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
4495 |
|
if test x$gcc_no_link = xyes; then |
4496 |
|
{ { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 |
4497 |
|
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} |
4498 |
|
{ (exit 1); exit 1; }; } |
4499 |
|
fi |
4500 |
|
cat >conftest.$ac_ext <<_ACEOF |
4501 |
|
#line $LINENO "configure" |
4502 |
|
/* confdefs.h. */ |
4503 |
|
_ACEOF |
4504 |
|
cat confdefs.h >>conftest.$ac_ext |
4505 |
|
cat >>conftest.$ac_ext <<_ACEOF |
4506 |
|
/* end confdefs.h. */ |
4507 |
|
|
4508 |
cat > conftest.$ac_ext << EOF |
/* Override any gcc2 internal prototype to avoid an error. */ |
4509 |
|
#ifdef __cplusplus |
4510 |
|
extern "C" |
4511 |
|
#endif |
4512 |
|
/* We use char because int might match the return type of a gcc2 |
4513 |
|
builtin and then its argument prototype would still apply. */ |
4514 |
|
char strerror (); |
4515 |
|
int |
4516 |
|
main () |
4517 |
|
{ |
4518 |
|
strerror (); |
4519 |
|
; |
4520 |
|
return 0; |
4521 |
|
} |
4522 |
|
_ACEOF |
4523 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
4524 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4525 |
|
(eval $ac_link) 2>&5 |
4526 |
|
ac_status=$? |
4527 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4528 |
|
(exit $ac_status); } && |
4529 |
|
{ ac_try='test -s conftest$ac_exeext' |
4530 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4531 |
|
(eval $ac_try) 2>&5 |
4532 |
|
ac_status=$? |
4533 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4534 |
|
(exit $ac_status); }; }; then |
4535 |
|
ac_cv_search_strerror="-l$ac_lib" |
4536 |
|
break |
4537 |
|
else |
4538 |
|
echo "$as_me: failed program was:" >&5 |
4539 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
4540 |
|
|
4541 |
#line 1945 "configure" |
fi |
4542 |
#include "confdefs.h" |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4543 |
|
done |
4544 |
|
fi |
4545 |
|
LIBS=$ac_func_search_save_LIBS |
4546 |
|
fi |
4547 |
|
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
4548 |
|
echo "${ECHO_T}$ac_cv_search_strerror" >&6 |
4549 |
|
if test "$ac_cv_search_strerror" != no; then |
4550 |
|
test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" |
4551 |
|
|
|
main(){return(0);} |
|
|
EOF |
|
|
if { (eval echo configure:1950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
|
|
ac_cv_prog_cc_works=yes |
|
|
# If we can't run a trivial program, we are probably using a cross compiler. |
|
|
if (./conftest; exit) 2>/dev/null; then |
|
|
ac_cv_prog_cc_cross=no |
|
|
else |
|
|
ac_cv_prog_cc_cross=yes |
|
|
fi |
|
|
else |
|
|
echo "configure: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
ac_cv_prog_cc_works=no |
|
4552 |
fi |
fi |
4553 |
rm -fr conftest* |
|
4554 |
ac_ext=c |
|
4555 |
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. |
for ac_func in $funcs |
4556 |
ac_cpp='$CPP $CPPFLAGS' |
do |
4557 |
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4558 |
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
4559 |
cross_compiling=$ac_cv_prog_cc_cross |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
4560 |
|
if eval "test \"\${$as_ac_var+set}\" = set"; then |
4561 |
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4562 |
if test $ac_cv_prog_cc_works = no; then |
else |
4563 |
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } |
if test x$gcc_no_link = xyes; then |
4564 |
fi |
{ { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 |
4565 |
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 |
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} |
4566 |
echo "configure:1976: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
{ (exit 1); exit 1; }; } |
4567 |
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
fi |
4568 |
cross_compiling=$ac_cv_prog_cc_cross |
cat >conftest.$ac_ext <<_ACEOF |
4569 |
|
#line $LINENO "configure" |
4570 |
for ac_func in $funcs |
/* confdefs.h. */ |
4571 |
do |
_ACEOF |
4572 |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
cat confdefs.h >>conftest.$ac_ext |
4573 |
echo "configure:1983: checking for $ac_func" >&5 |
cat >>conftest.$ac_ext <<_ACEOF |
4574 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
/* end confdefs.h. */ |
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
cat > conftest.$ac_ext <<EOF |
|
|
#line 1988 "configure" |
|
|
#include "confdefs.h" |
|
4575 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
4576 |
which can conflict with char $ac_func(); below. */ |
which can conflict with char $ac_func (); below. |
4577 |
#include <assert.h> |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4578 |
|
<limits.h> exists even on freestanding compilers. Under hpux, |
4579 |
|
including <limits.h> includes <sys/time.h> and causes problems |
4580 |
|
checking for functions defined therein. */ |
4581 |
|
#if defined (__STDC__) && !defined (_HPUX_SOURCE) |
4582 |
|
# include <limits.h> |
4583 |
|
#else |
4584 |
|
# include <assert.h> |
4585 |
|
#endif |
4586 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
4587 |
|
#ifdef __cplusplus |
4588 |
|
extern "C" |
4589 |
|
{ |
4590 |
|
#endif |
4591 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
4592 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
4593 |
char $ac_func(); |
char $ac_func (); |
|
|
|
|
int main() { |
|
|
|
|
4594 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
4595 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
4596 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
4597 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
4598 |
choke me |
choke me |
4599 |
#else |
#else |
4600 |
$ac_func(); |
char (*f) () = $ac_func; |
4601 |
|
#endif |
4602 |
|
#ifdef __cplusplus |
4603 |
|
} |
4604 |
#endif |
#endif |
4605 |
|
|
4606 |
; return 0; } |
int |
4607 |
EOF |
main () |
4608 |
if { (eval echo configure:2011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
{ |
4609 |
rm -rf conftest* |
return f != $ac_func; |
4610 |
eval "ac_cv_func_$ac_func=yes" |
; |
4611 |
else |
return 0; |
4612 |
echo "configure: failed program was:" >&5 |
} |
4613 |
cat conftest.$ac_ext >&5 |
_ACEOF |
4614 |
rm -rf conftest* |
rm -f conftest.$ac_objext conftest$ac_exeext |
4615 |
eval "ac_cv_func_$ac_func=no" |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4616 |
fi |
(eval $ac_link) 2>&5 |
4617 |
rm -f conftest* |
ac_status=$? |
4618 |
fi |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4619 |
|
(exit $ac_status); } && |
4620 |
|
{ ac_try='test -s conftest$ac_exeext' |
4621 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4622 |
|
(eval $ac_try) 2>&5 |
4623 |
|
ac_status=$? |
4624 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4625 |
|
(exit $ac_status); }; }; then |
4626 |
|
eval "$as_ac_var=yes" |
4627 |
|
else |
4628 |
|
echo "$as_me: failed program was:" >&5 |
4629 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
4630 |
|
|
4631 |
|
eval "$as_ac_var=no" |
4632 |
|
fi |
4633 |
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4634 |
|
fi |
4635 |
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
4636 |
|
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
4637 |
|
if test `eval echo '${'$as_ac_var'}'` = yes; then |
4638 |
|
cat >>confdefs.h <<_ACEOF |
4639 |
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
4640 |
|
_ACEOF |
4641 |
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
|
|
echo "$ac_t""yes" 1>&6 |
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
|
|
cat >> confdefs.h <<EOF |
|
|
#define $ac_tr_func 1 |
|
|
EOF |
|
|
|
|
4642 |
else |
else |
4643 |
echo "$ac_t""no" 1>&6 |
LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
|
LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" |
|
4644 |
fi |
fi |
4645 |
done |
done |
4646 |
|
|
4647 |
|
|
4648 |
|
echo "$as_me:$LINENO: checking whether alloca needs Cray hooks" >&5 |
4649 |
case "${host}" in |
echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" >&6 |
4650 |
*-*-interix) |
if test "${ac_cv_os_cray+set}" = set; then |
4651 |
# On Interix, it wrongly concludes that the MSVC compiler supports alloca. |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4652 |
# (MSVC does on Win32, not on Interix.) |
else |
4653 |
# This should be temporary. |
cat >conftest.$ac_ext <<_ACEOF |
4654 |
|
#line $LINENO "configure" |
4655 |
ac_cv_header_alloca_h=no |
/* confdefs.h. */ |
4656 |
ac_cv_func_alloca_works=no |
_ACEOF |
4657 |
ALLOCA=alloca.o |
cat confdefs.h >>conftest.$ac_ext |
4658 |
cat >> confdefs.h <<\EOF |
cat >>conftest.$ac_ext <<_ACEOF |
4659 |
#define C_ALLOCA 1 |
/* end confdefs.h. */ |
|
EOF |
|
|
cat >> confdefs.h <<EOF |
|
|
#define STACK_DIRECTION -1 |
|
|
EOF |
|
|
;; |
|
|
*) |
|
|
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
|
|
# for constant arguments. Useless! |
|
|
echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 |
|
|
echo "configure:2058: checking for working alloca.h" >&5 |
|
|
if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
cat > conftest.$ac_ext <<EOF |
|
|
#line 2063 "configure" |
|
|
#include "confdefs.h" |
|
|
#include <alloca.h> |
|
|
int main() { |
|
|
char *p = alloca(2 * sizeof(int)); |
|
|
; return 0; } |
|
|
EOF |
|
|
if { (eval echo configure:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
|
|
rm -rf conftest* |
|
|
ac_cv_header_alloca_h=yes |
|
|
else |
|
|
echo "configure: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
rm -rf conftest* |
|
|
ac_cv_header_alloca_h=no |
|
|
fi |
|
|
rm -f conftest* |
|
|
fi |
|
|
|
|
|
echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 |
|
|
if test $ac_cv_header_alloca_h = yes; then |
|
|
cat >> confdefs.h <<\EOF |
|
|
#define HAVE_ALLOCA_H 1 |
|
|
EOF |
|
|
|
|
|
fi |
|
|
|
|
|
echo $ac_n "checking for alloca""... $ac_c" 1>&6 |
|
|
echo "configure:2091: checking for alloca" >&5 |
|
|
if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
cat > conftest.$ac_ext <<EOF |
|
|
#line 2096 "configure" |
|
|
#include "confdefs.h" |
|
|
|
|
|
#ifdef __GNUC__ |
|
|
# define alloca __builtin_alloca |
|
|
#else |
|
|
# ifdef _MSC_VER |
|
|
# include <malloc.h> |
|
|
# define alloca _alloca |
|
|
# else |
|
|
# if HAVE_ALLOCA_H |
|
|
# include <alloca.h> |
|
|
# else |
|
|
# ifdef _AIX |
|
|
#pragma alloca |
|
|
# else |
|
|
# ifndef alloca /* predefined by HP cc +Olibcalls */ |
|
|
char *alloca (); |
|
|
# endif |
|
|
# endif |
|
|
# endif |
|
|
# endif |
|
|
#endif |
|
|
|
|
|
int main() { |
|
|
char *p = (char *) alloca(1); |
|
|
; return 0; } |
|
|
EOF |
|
|
if { (eval echo configure:2124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
|
|
rm -rf conftest* |
|
|
ac_cv_func_alloca_works=yes |
|
|
else |
|
|
echo "configure: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
rm -rf conftest* |
|
|
ac_cv_func_alloca_works=no |
|
|
fi |
|
|
rm -f conftest* |
|
|
fi |
|
|
|
|
|
echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 |
|
|
if test $ac_cv_func_alloca_works = yes; then |
|
|
cat >> confdefs.h <<\EOF |
|
|
#define HAVE_ALLOCA 1 |
|
|
EOF |
|
|
|
|
|
fi |
|
|
|
|
|
if test $ac_cv_func_alloca_works = no; then |
|
|
# The SVR3 libPW and SVR4 libucb both contain incompatible functions |
|
|
# that cause trouble. Some versions do not even contain alloca or |
|
|
# contain a buggy version. If you still want to use their alloca, |
|
|
# use ar to extract alloca.o from them instead of compiling alloca.c. |
|
|
ALLOCA=alloca.${ac_objext} |
|
|
cat >> confdefs.h <<\EOF |
|
|
#define C_ALLOCA 1 |
|
|
EOF |
|
|
|
|
|
|
|
|
echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 |
|
|
echo "configure:2156: checking whether alloca needs Cray hooks" >&5 |
|
|
if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
cat > conftest.$ac_ext <<EOF |
|
|
#line 2161 "configure" |
|
|
#include "confdefs.h" |
|
4660 |
#if defined(CRAY) && ! defined(CRAY2) |
#if defined(CRAY) && ! defined(CRAY2) |
4661 |
webecray |
webecray |
4662 |
#else |
#else |
4663 |
wenotbecray |
wenotbecray |
4664 |
#endif |
#endif |
4665 |
|
|
4666 |
EOF |
_ACEOF |
4667 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4668 |
egrep "webecray" >/dev/null 2>&1; then |
$EGREP "webecray" >/dev/null 2>&1; then |
|
rm -rf conftest* |
|
4669 |
ac_cv_os_cray=yes |
ac_cv_os_cray=yes |
4670 |
else |
else |
|
rm -rf conftest* |
|
4671 |
ac_cv_os_cray=no |
ac_cv_os_cray=no |
4672 |
fi |
fi |
4673 |
rm -f conftest* |
rm -f conftest* |
4674 |
|
|
4675 |
fi |
fi |
4676 |
|
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
4677 |
echo "$ac_t""$ac_cv_os_cray" 1>&6 |
echo "${ECHO_T}$ac_cv_os_cray" >&6 |
4678 |
if test $ac_cv_os_cray = yes; then |
if test $ac_cv_os_cray = yes; then |
4679 |
for ac_func in _getb67 GETB67 getb67; do |
for ac_func in _getb67 GETB67 getb67; do |
4680 |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4681 |
echo "configure:2186: checking for $ac_func" >&5 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
4682 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
4683 |
echo $ac_n "(cached) $ac_c" 1>&6 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
4684 |
else |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4685 |
cat > conftest.$ac_ext <<EOF |
else |
4686 |
#line 2191 "configure" |
if test x$gcc_no_link = xyes; then |
4687 |
#include "confdefs.h" |
{ { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 |
4688 |
|
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} |
4689 |
|
{ (exit 1); exit 1; }; } |
4690 |
|
fi |
4691 |
|
cat >conftest.$ac_ext <<_ACEOF |
4692 |
|
#line $LINENO "configure" |
4693 |
|
/* confdefs.h. */ |
4694 |
|
_ACEOF |
4695 |
|
cat confdefs.h >>conftest.$ac_ext |
4696 |
|
cat >>conftest.$ac_ext <<_ACEOF |
4697 |
|
/* end confdefs.h. */ |
4698 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
4699 |
which can conflict with char $ac_func(); below. */ |
which can conflict with char $ac_func (); below. |
4700 |
#include <assert.h> |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4701 |
|
<limits.h> exists even on freestanding compilers. Under hpux, |
4702 |
|
including <limits.h> includes <sys/time.h> and causes problems |
4703 |
|
checking for functions defined therein. */ |
4704 |
|
#if defined (__STDC__) && !defined (_HPUX_SOURCE) |
4705 |
|
# include <limits.h> |
4706 |
|
#else |
4707 |
|
# include <assert.h> |
4708 |
|
#endif |
4709 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
4710 |
|
#ifdef __cplusplus |
4711 |
|
extern "C" |
4712 |
|
{ |
4713 |
|
#endif |
4714 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
4715 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
4716 |
char $ac_func(); |
char $ac_func (); |
|
|
|
|
int main() { |
|
|
|
|
4717 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
4718 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
4719 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
4720 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
4721 |
choke me |
choke me |
4722 |
#else |
#else |
4723 |
$ac_func(); |
char (*f) () = $ac_func; |
4724 |
|
#endif |
4725 |
|
#ifdef __cplusplus |
4726 |
|
} |
4727 |
#endif |
#endif |
4728 |
|
|
4729 |
; return 0; } |
int |
4730 |
EOF |
main () |
4731 |
if { (eval echo configure:2214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
{ |
4732 |
rm -rf conftest* |
return f != $ac_func; |
4733 |
eval "ac_cv_func_$ac_func=yes" |
; |
4734 |
else |
return 0; |
4735 |
echo "configure: failed program was:" >&5 |
} |
4736 |
cat conftest.$ac_ext >&5 |
_ACEOF |
4737 |
rm -rf conftest* |
rm -f conftest.$ac_objext conftest$ac_exeext |
4738 |
eval "ac_cv_func_$ac_func=no" |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4739 |
fi |
(eval $ac_link) 2>&5 |
4740 |
rm -f conftest* |
ac_status=$? |
4741 |
fi |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4742 |
|
(exit $ac_status); } && |
4743 |
|
{ ac_try='test -s conftest$ac_exeext' |
4744 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4745 |
|
(eval $ac_try) 2>&5 |
4746 |
|
ac_status=$? |
4747 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4748 |
|
(exit $ac_status); }; }; then |
4749 |
|
eval "$as_ac_var=yes" |
4750 |
|
else |
4751 |
|
echo "$as_me: failed program was:" >&5 |
4752 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
4753 |
|
|
4754 |
|
eval "$as_ac_var=no" |
4755 |
|
fi |
4756 |
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4757 |
|
fi |
4758 |
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
4759 |
|
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
4760 |
|
if test `eval echo '${'$as_ac_var'}'` = yes; then |
4761 |
|
|
4762 |
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
cat >>confdefs.h <<_ACEOF |
|
echo "$ac_t""yes" 1>&6 |
|
|
cat >> confdefs.h <<EOF |
|
4763 |
#define CRAY_STACKSEG_END $ac_func |
#define CRAY_STACKSEG_END $ac_func |
4764 |
EOF |
_ACEOF |
|
|
|
4765 |
break |
break |
|
else |
|
|
echo "$ac_t""no" 1>&6 |
|
4766 |
fi |
fi |
4767 |
|
|
4768 |
done |
done |
4769 |
fi |
fi |
4770 |
|
|
4771 |
echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 |
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
4772 |
echo "configure:2241: checking stack direction for C alloca" >&5 |
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
4773 |
if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
if test "${ac_cv_c_stack_direction+set}" = set; then |
4774 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4775 |
else |
else |
4776 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
4777 |
ac_cv_c_stack_direction=0 |
ac_cv_c_stack_direction=0 |
4778 |
else |
else |
4779 |
cat > conftest.$ac_ext <<EOF |
cat >conftest.$ac_ext <<_ACEOF |
4780 |
#line 2249 "configure" |
#line $LINENO "configure" |
4781 |
#include "confdefs.h" |
/* confdefs.h. */ |
4782 |
|
_ACEOF |
4783 |
|
cat confdefs.h >>conftest.$ac_ext |
4784 |
|
cat >>conftest.$ac_ext <<_ACEOF |
4785 |
|
/* end confdefs.h. */ |
4786 |
find_stack_direction () |
find_stack_direction () |
4787 |
{ |
{ |
4788 |
static char *addr = 0; |
static char *addr = 0; |
4799 |
{ |
{ |
4800 |
exit (find_stack_direction() < 0); |
exit (find_stack_direction() < 0); |
4801 |
} |
} |
4802 |
EOF |
_ACEOF |
4803 |
if { (eval echo configure:2268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
rm -f conftest$ac_exeext |
4804 |
then |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4805 |
|
(eval $ac_link) 2>&5 |
4806 |
|
ac_status=$? |
4807 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4808 |
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4809 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4810 |
|
(eval $ac_try) 2>&5 |
4811 |
|
ac_status=$? |
4812 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4813 |
|
(exit $ac_status); }; }; then |
4814 |
ac_cv_c_stack_direction=1 |
ac_cv_c_stack_direction=1 |
4815 |
else |
else |
4816 |
echo "configure: failed program was:" >&5 |
echo "$as_me: program exited with status $ac_status" >&5 |
4817 |
cat conftest.$ac_ext >&5 |
echo "$as_me: failed program was:" >&5 |
4818 |
rm -fr conftest* |
sed 's/^/| /' conftest.$ac_ext >&5 |
4819 |
ac_cv_c_stack_direction=-1 |
|
4820 |
|
( exit $ac_status ) |
4821 |
|
ac_cv_c_stack_direction=-1 |
4822 |
fi |
fi |
4823 |
rm -fr conftest* |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4824 |
fi |
fi |
|
|
|
4825 |
fi |
fi |
4826 |
|
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
4827 |
|
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
4828 |
|
|
4829 |
echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 |
cat >>confdefs.h <<_ACEOF |
|
cat >> confdefs.h <<EOF |
|
4830 |
#define STACK_DIRECTION $ac_cv_c_stack_direction |
#define STACK_DIRECTION $ac_cv_c_stack_direction |
4831 |
EOF |
_ACEOF |
4832 |
|
|
|
fi |
|
4833 |
|
|
|
;; |
|
|
esac |
|
4834 |
|
|
|
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 |
|
|
echo "configure:2293: checking for ANSI C header files" >&5 |
|
|
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
cat > conftest.$ac_ext <<EOF |
|
|
#line 2298 "configure" |
|
|
#include "confdefs.h" |
|
|
#include <stdlib.h> |
|
|
#include <stdarg.h> |
|
|
#include <string.h> |
|
|
#include <float.h> |
|
|
EOF |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
|
|
{ (eval echo configure:2306: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
|
|
if test -z "$ac_err"; then |
|
|
rm -rf conftest* |
|
|
ac_cv_header_stdc=yes |
|
|
else |
|
|
echo "$ac_err" >&5 |
|
|
echo "configure: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
rm -rf conftest* |
|
|
ac_cv_header_stdc=no |
|
|
fi |
|
|
rm -f conftest* |
|
4835 |
|
|
4836 |
if test $ac_cv_header_stdc = yes; then |
for ac_header in unistd.h vfork.h |
4837 |
# SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
do |
4838 |
cat > conftest.$ac_ext <<EOF |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4839 |
#line 2323 "configure" |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4840 |
#include "confdefs.h" |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4841 |
#include <string.h> |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
4842 |
EOF |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4843 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
else |
4844 |
egrep "memchr" >/dev/null 2>&1; then |
cat >conftest.$ac_ext <<_ACEOF |
4845 |
: |
#line $LINENO "configure" |
4846 |
else |
/* confdefs.h. */ |
4847 |
rm -rf conftest* |
_ACEOF |
4848 |
ac_cv_header_stdc=no |
cat confdefs.h >>conftest.$ac_ext |
4849 |
fi |
cat >>conftest.$ac_ext <<_ACEOF |
4850 |
rm -f conftest* |
/* end confdefs.h. */ |
4851 |
|
#include <$ac_header> |
4852 |
fi |
_ACEOF |
4853 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
4854 |
if test $ac_cv_header_stdc = yes; then |
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
4855 |
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
ac_status=$? |
4856 |
cat > conftest.$ac_ext <<EOF |
grep -v '^ *+' conftest.er1 >conftest.err |
4857 |
#line 2341 "configure" |
rm -f conftest.er1 |
4858 |
#include "confdefs.h" |
cat conftest.err >&5 |
4859 |
#include <stdlib.h> |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4860 |
EOF |
(exit $ac_status); } >/dev/null; then |
4861 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
if test -s conftest.err; then |
4862 |
egrep "free" >/dev/null 2>&1; then |
ac_cpp_err=$ac_c_preproc_warn_flag |
4863 |
: |
else |
4864 |
|
ac_cpp_err= |
4865 |
|
fi |
4866 |
else |
else |
4867 |
rm -rf conftest* |
ac_cpp_err=yes |
|
ac_cv_header_stdc=no |
|
|
fi |
|
|
rm -f conftest* |
|
|
|
|
4868 |
fi |
fi |
4869 |
|
if test -z "$ac_cpp_err"; then |
4870 |
if test $ac_cv_header_stdc = yes; then |
eval "$as_ac_Header=yes" |
|
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
|
|
if test "$cross_compiling" = yes; then |
|
|
: |
|
4871 |
else |
else |
4872 |
cat > conftest.$ac_ext <<EOF |
echo "$as_me: failed program was:" >&5 |
4873 |
#line 2362 "configure" |
sed 's/^/| /' conftest.$ac_ext >&5 |
|
#include "confdefs.h" |
|
|
#include <ctype.h> |
|
|
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
|
|
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
|
|
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
|
|
int main () { int i; for (i = 0; i < 256; i++) |
|
|
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); |
|
|
exit (0); } |
|
4874 |
|
|
4875 |
EOF |
eval "$as_ac_Header=no" |
|
if { (eval echo configure:2373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
|
|
then |
|
|
: |
|
|
else |
|
|
echo "configure: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
rm -fr conftest* |
|
|
ac_cv_header_stdc=no |
|
4876 |
fi |
fi |
4877 |
rm -fr conftest* |
rm -f conftest.err conftest.$ac_ext |
4878 |
fi |
fi |
4879 |
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4880 |
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
4881 |
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
4882 |
|
cat >>confdefs.h <<_ACEOF |
4883 |
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
4884 |
|
_ACEOF |
4885 |
|
|
4886 |
fi |
fi |
4887 |
fi |
done |
|
|
|
|
echo "$ac_t""$ac_cv_header_stdc" 1>&6 |
|
|
if test $ac_cv_header_stdc = yes; then |
|
|
cat >> confdefs.h <<\EOF |
|
|
#define STDC_HEADERS 1 |
|
|
EOF |
|
|
|
|
|
fi |
|
|
|
|
|
echo $ac_n "checking for pid_t""... $ac_c" 1>&6 |
|
|
echo "configure:2397: checking for pid_t" >&5 |
|
|
if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
cat > conftest.$ac_ext <<EOF |
|
|
#line 2402 "configure" |
|
|
#include "confdefs.h" |
|
|
#include <sys/types.h> |
|
|
#if STDC_HEADERS |
|
|
#include <stdlib.h> |
|
|
#include <stddef.h> |
|
|
#endif |
|
|
EOF |
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
|
|
egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then |
|
|
rm -rf conftest* |
|
|
ac_cv_type_pid_t=yes |
|
|
else |
|
|
rm -rf conftest* |
|
|
ac_cv_type_pid_t=no |
|
|
fi |
|
|
rm -f conftest* |
|
|
|
|
|
fi |
|
|
echo "$ac_t""$ac_cv_type_pid_t" 1>&6 |
|
|
if test $ac_cv_type_pid_t = no; then |
|
|
cat >> confdefs.h <<\EOF |
|
|
#define pid_t int |
|
|
EOF |
|
4888 |
|
|
|
fi |
|
4889 |
|
|
|
ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` |
|
|
echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 |
|
|
echo "configure:2431: checking for vfork.h" >&5 |
|
|
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
|
|
echo $ac_n "(cached) $ac_c" 1>&6 |
|
|
else |
|
|
cat > conftest.$ac_ext <<EOF |
|
|
#line 2436 "configure" |
|
|
#include "confdefs.h" |
|
|
#include <vfork.h> |
|
|
EOF |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
|
|
{ (eval echo configure:2441: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
|
|
if test -z "$ac_err"; then |
|
|
rm -rf conftest* |
|
|
eval "ac_cv_header_$ac_safe=yes" |
|
|
else |
|
|
echo "$ac_err" >&5 |
|
|
echo "configure: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
rm -rf conftest* |
|
|
eval "ac_cv_header_$ac_safe=no" |
|
|
fi |
|
|
rm -f conftest* |
|
|
fi |
|
|
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
|
|
echo "$ac_t""yes" 1>&6 |
|
|
cat >> confdefs.h <<\EOF |
|
|
#define HAVE_VFORK_H 1 |
|
|
EOF |
|
|
|
|
|
else |
|
|
echo "$ac_t""no" 1>&6 |
|
|
fi |
|
4890 |
|
|
4891 |
echo $ac_n "checking for working vfork""... $ac_c" 1>&6 |
for ac_func in fork vfork |
4892 |
echo "configure:2466: checking for working vfork" >&5 |
do |
4893 |
if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4894 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
4895 |
else |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
4896 |
if test "$cross_compiling" = yes; then |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
4897 |
echo $ac_n "checking for vfork""... $ac_c" 1>&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4898 |
echo "configure:2472: checking for vfork" >&5 |
else |
4899 |
if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then |
if test x$gcc_no_link = xyes; then |
4900 |
echo $ac_n "(cached) $ac_c" 1>&6 |
{ { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 |
4901 |
else |
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} |
4902 |
cat > conftest.$ac_ext <<EOF |
{ (exit 1); exit 1; }; } |
4903 |
#line 2477 "configure" |
fi |
4904 |
#include "confdefs.h" |
cat >conftest.$ac_ext <<_ACEOF |
4905 |
|
#line $LINENO "configure" |
4906 |
|
/* confdefs.h. */ |
4907 |
|
_ACEOF |
4908 |
|
cat confdefs.h >>conftest.$ac_ext |
4909 |
|
cat >>conftest.$ac_ext <<_ACEOF |
4910 |
|
/* end confdefs.h. */ |
4911 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
4912 |
which can conflict with char vfork(); below. */ |
which can conflict with char $ac_func (); below. |
4913 |
#include <assert.h> |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4914 |
|
<limits.h> exists even on freestanding compilers. Under hpux, |
4915 |
|
including <limits.h> includes <sys/time.h> and causes problems |
4916 |
|
checking for functions defined therein. */ |
4917 |
|
#if defined (__STDC__) && !defined (_HPUX_SOURCE) |
4918 |
|
# include <limits.h> |
4919 |
|
#else |
4920 |
|
# include <assert.h> |
4921 |
|
#endif |
4922 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
4923 |
|
#ifdef __cplusplus |
4924 |
|
extern "C" |
4925 |
|
{ |
4926 |
|
#endif |
4927 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
4928 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
4929 |
char vfork(); |
char $ac_func (); |
|
|
|
|
int main() { |
|
|
|
|
4930 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
4931 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
4932 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
4933 |
#if defined (__stub_vfork) || defined (__stub___vfork) |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
4934 |
choke me |
choke me |
4935 |
#else |
#else |
4936 |
vfork(); |
char (*f) () = $ac_func; |
4937 |
|
#endif |
4938 |
|
#ifdef __cplusplus |
4939 |
|
} |
4940 |
#endif |
#endif |
4941 |
|
|
4942 |
; return 0; } |
int |
4943 |
EOF |
main () |
4944 |
if { (eval echo configure:2500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
{ |
4945 |
rm -rf conftest* |
return f != $ac_func; |
4946 |
eval "ac_cv_func_vfork=yes" |
; |
4947 |
else |
return 0; |
4948 |
echo "configure: failed program was:" >&5 |
} |
4949 |
cat conftest.$ac_ext >&5 |
_ACEOF |
4950 |
rm -rf conftest* |
rm -f conftest.$ac_objext conftest$ac_exeext |
4951 |
eval "ac_cv_func_vfork=no" |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
4952 |
fi |
(eval $ac_link) 2>&5 |
4953 |
rm -f conftest* |
ac_status=$? |
4954 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4955 |
|
(exit $ac_status); } && |
4956 |
|
{ ac_try='test -s conftest$ac_exeext' |
4957 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4958 |
|
(eval $ac_try) 2>&5 |
4959 |
|
ac_status=$? |
4960 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4961 |
|
(exit $ac_status); }; }; then |
4962 |
|
eval "$as_ac_var=yes" |
4963 |
|
else |
4964 |
|
echo "$as_me: failed program was:" >&5 |
4965 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
4966 |
|
|
4967 |
|
eval "$as_ac_var=no" |
4968 |
|
fi |
4969 |
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
4970 |
|
fi |
4971 |
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
4972 |
|
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
4973 |
|
if test `eval echo '${'$as_ac_var'}'` = yes; then |
4974 |
|
cat >>confdefs.h <<_ACEOF |
4975 |
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
4976 |
|
_ACEOF |
4977 |
|
|
4978 |
fi |
fi |
4979 |
|
done |
4980 |
|
|
4981 |
if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then |
if test "x$ac_cv_func_fork" = xyes; then |
4982 |
echo "$ac_t""yes" 1>&6 |
echo "$as_me:$LINENO: checking for working fork" >&5 |
4983 |
: |
echo $ECHO_N "checking for working fork... $ECHO_C" >&6 |
4984 |
|
if test "${ac_cv_func_fork_works+set}" = set; then |
4985 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
4986 |
|
else |
4987 |
|
if test "$cross_compiling" = yes; then |
4988 |
|
ac_cv_func_fork_works=cross |
4989 |
else |
else |
4990 |
echo "$ac_t""no" 1>&6 |
cat >conftest.$ac_ext <<_ACEOF |
4991 |
|
/* By Ruediger Kuhlmann. */ |
4992 |
|
#include <sys/types.h> |
4993 |
|
#if HAVE_UNISTD_H |
4994 |
|
# include <unistd.h> |
4995 |
|
#endif |
4996 |
|
/* Some systems only have a dummy stub for fork() */ |
4997 |
|
int main () |
4998 |
|
{ |
4999 |
|
if (fork() < 0) |
5000 |
|
exit (1); |
5001 |
|
exit (0); |
5002 |
|
} |
5003 |
|
_ACEOF |
5004 |
|
rm -f conftest$ac_exeext |
5005 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5006 |
|
(eval $ac_link) 2>&5 |
5007 |
|
ac_status=$? |
5008 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5009 |
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
5010 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5011 |
|
(eval $ac_try) 2>&5 |
5012 |
|
ac_status=$? |
5013 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5014 |
|
(exit $ac_status); }; }; then |
5015 |
|
ac_cv_func_fork_works=yes |
5016 |
|
else |
5017 |
|
echo "$as_me: program exited with status $ac_status" >&5 |
5018 |
|
echo "$as_me: failed program was:" >&5 |
5019 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5020 |
|
|
5021 |
|
( exit $ac_status ) |
5022 |
|
ac_cv_func_fork_works=no |
5023 |
|
fi |
5024 |
|
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5025 |
|
fi |
5026 |
|
fi |
5027 |
|
echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
5028 |
|
echo "${ECHO_T}$ac_cv_func_fork_works" >&6 |
5029 |
|
|
5030 |
|
else |
5031 |
|
ac_cv_func_fork_works=$ac_cv_func_fork |
5032 |
|
fi |
5033 |
|
if test "x$ac_cv_func_fork_works" = xcross; then |
5034 |
|
case $host in |
5035 |
|
*-*-amigaos* | *-*-msdosdjgpp*) |
5036 |
|
# Override, as these systems have only a dummy fork() stub |
5037 |
|
ac_cv_func_fork_works=no |
5038 |
|
;; |
5039 |
|
*) |
5040 |
|
ac_cv_func_fork_works=yes |
5041 |
|
;; |
5042 |
|
esac |
5043 |
|
{ echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
5044 |
|
echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
5045 |
fi |
fi |
|
|
|
5046 |
ac_cv_func_vfork_works=$ac_cv_func_vfork |
ac_cv_func_vfork_works=$ac_cv_func_vfork |
5047 |
|
if test "x$ac_cv_func_vfork" = xyes; then |
5048 |
|
echo "$as_me:$LINENO: checking for working vfork" >&5 |
5049 |
|
echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 |
5050 |
|
if test "${ac_cv_func_vfork_works+set}" = set; then |
5051 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5052 |
else |
else |
5053 |
cat > conftest.$ac_ext <<EOF |
if test "$cross_compiling" = yes; then |
5054 |
#line 2522 "configure" |
ac_cv_func_vfork_works=cross |
5055 |
#include "confdefs.h" |
else |
5056 |
|
cat >conftest.$ac_ext <<_ACEOF |
5057 |
|
#line $LINENO "configure" |
5058 |
|
/* confdefs.h. */ |
5059 |
|
_ACEOF |
5060 |
|
cat confdefs.h >>conftest.$ac_ext |
5061 |
|
cat >>conftest.$ac_ext <<_ACEOF |
5062 |
|
/* end confdefs.h. */ |
5063 |
/* Thanks to Paul Eggert for this test. */ |
/* Thanks to Paul Eggert for this test. */ |
5064 |
#include <stdio.h> |
#include <stdio.h> |
5065 |
|
#include <stdlib.h> |
5066 |
#include <sys/types.h> |
#include <sys/types.h> |
5067 |
#include <sys/stat.h> |
#include <sys/stat.h> |
5068 |
#ifdef HAVE_UNISTD_H |
#include <sys/wait.h> |
5069 |
#include <unistd.h> |
#if HAVE_UNISTD_H |
5070 |
|
# include <unistd.h> |
5071 |
#endif |
#endif |
5072 |
#ifdef HAVE_VFORK_H |
#if HAVE_VFORK_H |
5073 |
#include <vfork.h> |
# include <vfork.h> |
5074 |
#endif |
#endif |
5075 |
/* On some sparc systems, changes by the child to local and incoming |
/* On some sparc systems, changes by the child to local and incoming |
5076 |
argument registers are propagated back to the parent. |
argument registers are propagated back to the parent. The compiler |
5077 |
The compiler is told about this with #include <vfork.h>, |
is told about this with #include <vfork.h>, but some compilers |
5078 |
but some compilers (e.g. gcc -O) don't grok <vfork.h>. |
(e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
5079 |
Test for this by using a static variable whose address |
static variable whose address is put into a register that is |
5080 |
is put into a register that is clobbered by the vfork. */ |
clobbered by the vfork. */ |
5081 |
static |
static void |
5082 |
#ifdef __cplusplus |
#ifdef __cplusplus |
5083 |
sparc_address_test (int arg) |
sparc_address_test (int arg) |
5084 |
#else |
# else |
5085 |
sparc_address_test (arg) int arg; |
sparc_address_test (arg) int arg; |
5086 |
#endif |
#endif |
5087 |
{ |
{ |
5099 |
} |
} |
5100 |
} |
} |
5101 |
} |
} |
5102 |
main() { |
|
5103 |
|
int |
5104 |
|
main () |
5105 |
|
{ |
5106 |
pid_t parent = getpid (); |
pid_t parent = getpid (); |
5107 |
pid_t child; |
pid_t child; |
5108 |
|
|
5109 |
sparc_address_test (); |
sparc_address_test (0); |
5110 |
|
|
5111 |
child = vfork (); |
child = vfork (); |
5112 |
|
|
5113 |
if (child == 0) { |
if (child == 0) { |
5114 |
/* Here is another test for sparc vfork register problems. |
/* Here is another test for sparc vfork register problems. This |
5115 |
This test uses lots of local variables, at least |
test uses lots of local variables, at least as many local |
5116 |
as many local variables as main has allocated so far |
variables as main has allocated so far including compiler |
5117 |
including compiler temporaries. 4 locals are enough for |
temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
5118 |
gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. |
4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
5119 |
A buggy compiler should reuse the register of parent |
reuse the register of parent for one of the local variables, |
5120 |
for one of the local variables, since it will think that |
since it will think that parent can't possibly be used any more |
5121 |
parent can't possibly be used any more in this routine. |
in this routine. Assigning to the local variable will thus |
5122 |
Assigning to the local variable will thus munge parent |
munge parent in the parent process. */ |
|
in the parent process. */ |
|
5123 |
pid_t |
pid_t |
5124 |
p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
5125 |
p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
5129 |
|| p != p5 || p != p6 || p != p7) |
|| p != p5 || p != p6 || p != p7) |
5130 |
_exit(1); |
_exit(1); |
5131 |
|
|
5132 |
/* On some systems (e.g. IRIX 3.3), |
/* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
5133 |
vfork doesn't separate parent from child file descriptors. |
from child file descriptors. If the child closes a descriptor |
5134 |
If the child closes a descriptor before it execs or exits, |
before it execs or exits, this munges the parent's descriptor |
5135 |
this munges the parent's descriptor as well. |
as well. Test for this by closing stdout in the child. */ |
|
Test for this by closing stdout in the child. */ |
|
5136 |
_exit(close(fileno(stdout)) != 0); |
_exit(close(fileno(stdout)) != 0); |
5137 |
} else { |
} else { |
5138 |
int status; |
int status; |
5155 |
); |
); |
5156 |
} |
} |
5157 |
} |
} |
5158 |
EOF |
_ACEOF |
5159 |
if { (eval echo configure:2617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
rm -f conftest$ac_exeext |
5160 |
then |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5161 |
|
(eval $ac_link) 2>&5 |
5162 |
|
ac_status=$? |
5163 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5164 |
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
5165 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5166 |
|
(eval $ac_try) 2>&5 |
5167 |
|
ac_status=$? |
5168 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5169 |
|
(exit $ac_status); }; }; then |
5170 |
ac_cv_func_vfork_works=yes |
ac_cv_func_vfork_works=yes |
5171 |
else |
else |
5172 |
echo "configure: failed program was:" >&5 |
echo "$as_me: program exited with status $ac_status" >&5 |
5173 |
cat conftest.$ac_ext >&5 |
echo "$as_me: failed program was:" >&5 |
5174 |
rm -fr conftest* |
sed 's/^/| /' conftest.$ac_ext >&5 |
5175 |
ac_cv_func_vfork_works=no |
|
5176 |
|
( exit $ac_status ) |
5177 |
|
ac_cv_func_vfork_works=no |
5178 |
|
fi |
5179 |
|
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5180 |
fi |
fi |
|
rm -fr conftest* |
|
5181 |
fi |
fi |
5182 |
|
echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
5183 |
|
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 |
5184 |
|
|
5185 |
|
fi; |
5186 |
|
if test "x$ac_cv_func_fork_works" = xcross; then |
5187 |
|
ac_cv_func_vfork_works=ac_cv_func_vfork |
5188 |
|
{ echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
5189 |
|
echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
5190 |
fi |
fi |
5191 |
|
|
5192 |
echo "$ac_t""$ac_cv_func_vfork_works" 1>&6 |
if test "x$ac_cv_func_vfork_works" = xyes; then |
5193 |
if test $ac_cv_func_vfork_works = no; then |
|
5194 |
cat >> confdefs.h <<\EOF |
cat >>confdefs.h <<\_ACEOF |
5195 |
|
#define HAVE_WORKING_VFORK 1 |
5196 |
|
_ACEOF |
5197 |
|
|
5198 |
|
else |
5199 |
|
|
5200 |
|
cat >>confdefs.h <<\_ACEOF |
5201 |
#define vfork fork |
#define vfork fork |
5202 |
EOF |
_ACEOF |
5203 |
|
|
5204 |
|
fi |
5205 |
|
if test "x$ac_cv_func_fork_works" = xyes; then |
5206 |
|
|
5207 |
|
cat >>confdefs.h <<\_ACEOF |
5208 |
|
#define HAVE_WORKING_FORK 1 |
5209 |
|
_ACEOF |
5210 |
|
|
5211 |
fi |
fi |
5212 |
|
|
5213 |
if test $ac_cv_func_vfork_works = no; then |
if test $ac_cv_func_vfork_works = no; then |
5214 |
LIBOBJS="$LIBOBJS vfork.o" |
LIBOBJS="$LIBOBJS vfork.$ac_objext" |
5215 |
fi |
fi |
5216 |
for v in $vars; do |
# We only need _doprnt if we might use it to implement v*printf. |
5217 |
echo $ac_n "checking for $v""... $ac_c" 1>&6 |
if test $ac_cv_func_vprintf != yes \ |
5218 |
echo "configure:2644: checking for $v" >&5 |
|| test $ac_cv_func_vfprintf != yes \ |
5219 |
if eval "test \"`echo '$''{'libiberty_cv_var_$v'+set}'`\" = set"; then |
|| test $ac_cv_func_vsprintf != yes; then |
5220 |
echo $ac_n "(cached) $ac_c" 1>&6 |
|
5221 |
|
for ac_func in _doprnt |
5222 |
|
do |
5223 |
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5224 |
|
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5225 |
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
5226 |
|
if eval "test \"\${$as_ac_var+set}\" = set"; then |
5227 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5228 |
|
else |
5229 |
|
if test x$gcc_no_link = xyes; then |
5230 |
|
{ { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 |
5231 |
|
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} |
5232 |
|
{ (exit 1); exit 1; }; } |
5233 |
|
fi |
5234 |
|
cat >conftest.$ac_ext <<_ACEOF |
5235 |
|
#line $LINENO "configure" |
5236 |
|
/* confdefs.h. */ |
5237 |
|
_ACEOF |
5238 |
|
cat confdefs.h >>conftest.$ac_ext |
5239 |
|
cat >>conftest.$ac_ext <<_ACEOF |
5240 |
|
/* end confdefs.h. */ |
5241 |
|
/* System header to define __stub macros and hopefully few prototypes, |
5242 |
|
which can conflict with char $ac_func (); below. |
5243 |
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5244 |
|
<limits.h> exists even on freestanding compilers. Under hpux, |
5245 |
|
including <limits.h> includes <sys/time.h> and causes problems |
5246 |
|
checking for functions defined therein. */ |
5247 |
|
#if defined (__STDC__) && !defined (_HPUX_SOURCE) |
5248 |
|
# include <limits.h> |
5249 |
|
#else |
5250 |
|
# include <assert.h> |
5251 |
|
#endif |
5252 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
5253 |
|
#ifdef __cplusplus |
5254 |
|
extern "C" |
5255 |
|
{ |
5256 |
|
#endif |
5257 |
|
/* We use char because int might match the return type of a gcc2 |
5258 |
|
builtin and then its argument prototype would still apply. */ |
5259 |
|
char $ac_func (); |
5260 |
|
/* The GNU C library defines this for functions which it implements |
5261 |
|
to always fail with ENOSYS. Some functions are actually named |
5262 |
|
something starting with __ and the normal name is an alias. */ |
5263 |
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
5264 |
|
choke me |
5265 |
|
#else |
5266 |
|
char (*f) () = $ac_func; |
5267 |
|
#endif |
5268 |
|
#ifdef __cplusplus |
5269 |
|
} |
5270 |
|
#endif |
5271 |
|
|
5272 |
|
int |
5273 |
|
main () |
5274 |
|
{ |
5275 |
|
return f != $ac_func; |
5276 |
|
; |
5277 |
|
return 0; |
5278 |
|
} |
5279 |
|
_ACEOF |
5280 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5281 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5282 |
|
(eval $ac_link) 2>&5 |
5283 |
|
ac_status=$? |
5284 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5285 |
|
(exit $ac_status); } && |
5286 |
|
{ ac_try='test -s conftest$ac_exeext' |
5287 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5288 |
|
(eval $ac_try) 2>&5 |
5289 |
|
ac_status=$? |
5290 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5291 |
|
(exit $ac_status); }; }; then |
5292 |
|
eval "$as_ac_var=yes" |
5293 |
|
else |
5294 |
|
echo "$as_me: failed program was:" >&5 |
5295 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5296 |
|
|
5297 |
|
eval "$as_ac_var=no" |
5298 |
|
fi |
5299 |
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5300 |
|
fi |
5301 |
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
5302 |
|
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
5303 |
|
if test `eval echo '${'$as_ac_var'}'` = yes; then |
5304 |
|
cat >>confdefs.h <<_ACEOF |
5305 |
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
5306 |
|
_ACEOF |
5307 |
|
|
5308 |
else |
else |
5309 |
cat > conftest.$ac_ext <<EOF |
LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
5310 |
#line 2649 "configure" |
fi |
5311 |
#include "confdefs.h" |
done |
5312 |
|
|
5313 |
|
|
5314 |
|
else |
5315 |
|
|
5316 |
|
for ac_func in _doprnt |
5317 |
|
do |
5318 |
|
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5319 |
|
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5320 |
|
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
5321 |
|
if eval "test \"\${$as_ac_var+set}\" = set"; then |
5322 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5323 |
|
else |
5324 |
|
if test x$gcc_no_link = xyes; then |
5325 |
|
{ { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 |
5326 |
|
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} |
5327 |
|
{ (exit 1); exit 1; }; } |
5328 |
|
fi |
5329 |
|
cat >conftest.$ac_ext <<_ACEOF |
5330 |
|
#line $LINENO "configure" |
5331 |
|
/* confdefs.h. */ |
5332 |
|
_ACEOF |
5333 |
|
cat confdefs.h >>conftest.$ac_ext |
5334 |
|
cat >>conftest.$ac_ext <<_ACEOF |
5335 |
|
/* end confdefs.h. */ |
5336 |
|
/* System header to define __stub macros and hopefully few prototypes, |
5337 |
|
which can conflict with char $ac_func (); below. |
5338 |
|
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5339 |
|
<limits.h> exists even on freestanding compilers. Under hpux, |
5340 |
|
including <limits.h> includes <sys/time.h> and causes problems |
5341 |
|
checking for functions defined therein. */ |
5342 |
|
#if defined (__STDC__) && !defined (_HPUX_SOURCE) |
5343 |
|
# include <limits.h> |
5344 |
|
#else |
5345 |
|
# include <assert.h> |
5346 |
|
#endif |
5347 |
|
/* Override any gcc2 internal prototype to avoid an error. */ |
5348 |
|
#ifdef __cplusplus |
5349 |
|
extern "C" |
5350 |
|
{ |
5351 |
|
#endif |
5352 |
|
/* We use char because int might match the return type of a gcc2 |
5353 |
|
builtin and then its argument prototype would still apply. */ |
5354 |
|
char $ac_func (); |
5355 |
|
/* The GNU C library defines this for functions which it implements |
5356 |
|
to always fail with ENOSYS. Some functions are actually named |
5357 |
|
something starting with __ and the normal name is an alias. */ |
5358 |
|
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
5359 |
|
choke me |
5360 |
|
#else |
5361 |
|
char (*f) () = $ac_func; |
5362 |
|
#endif |
5363 |
|
#ifdef __cplusplus |
5364 |
|
} |
5365 |
|
#endif |
5366 |
|
|
5367 |
|
int |
5368 |
|
main () |
5369 |
|
{ |
5370 |
|
return f != $ac_func; |
5371 |
|
; |
5372 |
|
return 0; |
5373 |
|
} |
5374 |
|
_ACEOF |
5375 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5376 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5377 |
|
(eval $ac_link) 2>&5 |
5378 |
|
ac_status=$? |
5379 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5380 |
|
(exit $ac_status); } && |
5381 |
|
{ ac_try='test -s conftest$ac_exeext' |
5382 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5383 |
|
(eval $ac_try) 2>&5 |
5384 |
|
ac_status=$? |
5385 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5386 |
|
(exit $ac_status); }; }; then |
5387 |
|
eval "$as_ac_var=yes" |
5388 |
|
else |
5389 |
|
echo "$as_me: failed program was:" >&5 |
5390 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5391 |
|
|
5392 |
|
eval "$as_ac_var=no" |
5393 |
|
fi |
5394 |
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5395 |
|
fi |
5396 |
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
5397 |
|
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
5398 |
|
if test `eval echo '${'$as_ac_var'}'` = yes; then |
5399 |
|
cat >>confdefs.h <<_ACEOF |
5400 |
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
5401 |
|
_ACEOF |
5402 |
|
|
5403 |
|
fi |
5404 |
|
done |
5405 |
|
|
5406 |
|
fi |
5407 |
|
|
5408 |
|
for v in $vars; do |
5409 |
|
echo "$as_me:$LINENO: checking for $v" >&5 |
5410 |
|
echo $ECHO_N "checking for $v... $ECHO_C" >&6 |
5411 |
|
if eval "test \"\${libiberty_cv_var_$v+set}\" = set"; then |
5412 |
|
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5413 |
|
else |
5414 |
|
if test x$gcc_no_link = xyes; then |
5415 |
|
{ { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 |
5416 |
|
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} |
5417 |
|
{ (exit 1); exit 1; }; } |
5418 |
|
fi |
5419 |
|
cat >conftest.$ac_ext <<_ACEOF |
5420 |
|
#line $LINENO "configure" |
5421 |
|
/* confdefs.h. */ |
5422 |
|
_ACEOF |
5423 |
|
cat confdefs.h >>conftest.$ac_ext |
5424 |
|
cat >>conftest.$ac_ext <<_ACEOF |
5425 |
|
/* end confdefs.h. */ |
5426 |
int *p; |
int *p; |
5427 |
int main() { |
int |
5428 |
extern int $v; p = &$v; |
main () |
5429 |
; return 0; } |
{ |
5430 |
EOF |
extern int $v []; p = $v; |
5431 |
if { (eval echo configure:2656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
; |
5432 |
rm -rf conftest* |
return 0; |
5433 |
|
} |
5434 |
|
_ACEOF |
5435 |
|
rm -f conftest.$ac_objext conftest$ac_exeext |
5436 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5437 |
|
(eval $ac_link) 2>&5 |
5438 |
|
ac_status=$? |
5439 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5440 |
|
(exit $ac_status); } && |
5441 |
|
{ ac_try='test -s conftest$ac_exeext' |
5442 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5443 |
|
(eval $ac_try) 2>&5 |
5444 |
|
ac_status=$? |
5445 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5446 |
|
(exit $ac_status); }; }; then |
5447 |
eval "libiberty_cv_var_$v=yes" |
eval "libiberty_cv_var_$v=yes" |
5448 |
else |
else |
5449 |
echo "configure: failed program was:" >&5 |
echo "$as_me: failed program was:" >&5 |
5450 |
cat conftest.$ac_ext >&5 |
sed 's/^/| /' conftest.$ac_ext >&5 |
5451 |
rm -rf conftest* |
|
5452 |
eval "libiberty_cv_var_$v=no" |
eval "libiberty_cv_var_$v=no" |
5453 |
fi |
fi |
5454 |
rm -f conftest* |
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5455 |
fi |
fi |
5456 |
|
|
5457 |
if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then |
if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then |
5458 |
echo "$ac_t""yes" 1>&6 |
echo "$as_me:$LINENO: result: yes" >&5 |
5459 |
|
echo "${ECHO_T}yes" >&6 |
5460 |
n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
5461 |
cat >> confdefs.h <<EOF |
cat >>confdefs.h <<_ACEOF |
5462 |
#define $n 1 |
#define $n 1 |
5463 |
EOF |
_ACEOF |
5464 |
|
|
5465 |
else |
else |
5466 |
echo "$ac_t""no" 1>&6 |
echo "$as_me:$LINENO: result: no" >&5 |
5467 |
|
echo "${ECHO_T}no" >&6 |
5468 |
fi |
fi |
5469 |
done |
done |
5470 |
for ac_func in $checkfuncs |
|
5471 |
|
# special check for _system_configuration because AIX <4.3.2 do not |
5472 |
|
# contain the `physmem' member. |
5473 |
|
echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5 |
5474 |
|
echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6 |
5475 |
|
cat >conftest.$ac_ext <<_ACEOF |
5476 |
|
#line $LINENO "configure" |
5477 |
|
/* confdefs.h. */ |
5478 |
|
_ACEOF |
5479 |
|
cat confdefs.h >>conftest.$ac_ext |
5480 |
|
cat >>conftest.$ac_ext <<_ACEOF |
5481 |
|
/* end confdefs.h. */ |
5482 |
|
#include <sys/systemcfg.h> |
5483 |
|
int |
5484 |
|
main () |
5485 |
|
{ |
5486 |
|
double x = _system_configuration.physmem; |
5487 |
|
; |
5488 |
|
return 0; |
5489 |
|
} |
5490 |
|
_ACEOF |
5491 |
|
rm -f conftest.$ac_objext |
5492 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5493 |
|
(eval $ac_compile) 2>&5 |
5494 |
|
ac_status=$? |
5495 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5496 |
|
(exit $ac_status); } && |
5497 |
|
{ ac_try='test -s conftest.$ac_objext' |
5498 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5499 |
|
(eval $ac_try) 2>&5 |
5500 |
|
ac_status=$? |
5501 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5502 |
|
(exit $ac_status); }; }; then |
5503 |
|
echo "$as_me:$LINENO: result: yes" >&5 |
5504 |
|
echo "${ECHO_T}yes" >&6 |
5505 |
|
|
5506 |
|
cat >>confdefs.h <<\_ACEOF |
5507 |
|
#define HAVE__SYSTEM_CONFIGURATION 1 |
5508 |
|
_ACEOF |
5509 |
|
|
5510 |
|
else |
5511 |
|
echo "$as_me: failed program was:" >&5 |
5512 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5513 |
|
|
5514 |
|
echo "$as_me:$LINENO: result: no" >&5 |
5515 |
|
echo "${ECHO_T}no" >&6 |
5516 |
|
fi |
5517 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
5518 |
|
|
5519 |
|
|
5520 |
|
for ac_func in $checkfuncs |
5521 |
do |
do |
5522 |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5523 |
echo "configure:2682: checking for $ac_func" >&5 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5524 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
5525 |
echo $ac_n "(cached) $ac_c" 1>&6 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
5526 |
else |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5527 |
cat > conftest.$ac_ext <<EOF |
else |
5528 |
#line 2687 "configure" |
if test x$gcc_no_link = xyes; then |
5529 |
#include "confdefs.h" |
{ { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 |
5530 |
|
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} |
5531 |
|
{ (exit 1); exit 1; }; } |
5532 |
|
fi |
5533 |
|
cat >conftest.$ac_ext <<_ACEOF |
5534 |
|
#line $LINENO "configure" |
5535 |
|
/* confdefs.h. */ |
5536 |
|
_ACEOF |
5537 |
|
cat confdefs.h >>conftest.$ac_ext |
5538 |
|
cat >>conftest.$ac_ext <<_ACEOF |
5539 |
|
/* end confdefs.h. */ |
5540 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
5541 |
which can conflict with char $ac_func(); below. */ |
which can conflict with char $ac_func (); below. |
5542 |
#include <assert.h> |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5543 |
|
<limits.h> exists even on freestanding compilers. Under hpux, |
5544 |
|
including <limits.h> includes <sys/time.h> and causes problems |
5545 |
|
checking for functions defined therein. */ |
5546 |
|
#if defined (__STDC__) && !defined (_HPUX_SOURCE) |
5547 |
|
# include <limits.h> |
5548 |
|
#else |
5549 |
|
# include <assert.h> |
5550 |
|
#endif |
5551 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
5552 |
|
#ifdef __cplusplus |
5553 |
|
extern "C" |
5554 |
|
{ |
5555 |
|
#endif |
5556 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
5557 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
5558 |
char $ac_func(); |
char $ac_func (); |
|
|
|
|
int main() { |
|
|
|
|
5559 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
5560 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
5561 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
5562 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
5563 |
choke me |
choke me |
5564 |
#else |
#else |
5565 |
$ac_func(); |
char (*f) () = $ac_func; |
5566 |
|
#endif |
5567 |
|
#ifdef __cplusplus |
5568 |
|
} |
5569 |
#endif |
#endif |
5570 |
|
|
5571 |
; return 0; } |
int |
5572 |
EOF |
main () |
5573 |
if { (eval echo configure:2710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
{ |
5574 |
rm -rf conftest* |
return f != $ac_func; |
5575 |
eval "ac_cv_func_$ac_func=yes" |
; |
5576 |
else |
return 0; |
5577 |
echo "configure: failed program was:" >&5 |
} |
5578 |
cat conftest.$ac_ext >&5 |
_ACEOF |
5579 |
rm -rf conftest* |
rm -f conftest.$ac_objext conftest$ac_exeext |
5580 |
eval "ac_cv_func_$ac_func=no" |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5581 |
fi |
(eval $ac_link) 2>&5 |
5582 |
rm -f conftest* |
ac_status=$? |
5583 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5584 |
|
(exit $ac_status); } && |
5585 |
|
{ ac_try='test -s conftest$ac_exeext' |
5586 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5587 |
|
(eval $ac_try) 2>&5 |
5588 |
|
ac_status=$? |
5589 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5590 |
|
(exit $ac_status); }; }; then |
5591 |
|
eval "$as_ac_var=yes" |
5592 |
|
else |
5593 |
|
echo "$as_me: failed program was:" >&5 |
5594 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5595 |
|
|
5596 |
|
eval "$as_ac_var=no" |
5597 |
|
fi |
5598 |
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5599 |
|
fi |
5600 |
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
5601 |
|
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
5602 |
|
if test `eval echo '${'$as_ac_var'}'` = yes; then |
5603 |
|
cat >>confdefs.h <<_ACEOF |
5604 |
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
5605 |
|
_ACEOF |
5606 |
|
|
5607 |
fi |
fi |
5608 |
|
done |
5609 |
|
|
5610 |
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5 |
5611 |
echo "$ac_t""yes" 1>&6 |
echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6 |
5612 |
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
if test "${libiberty_cv_decl_needed_canonicalize_file_name+set}" = set; then |
5613 |
cat >> confdefs.h <<EOF |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5614 |
#define $ac_tr_func 1 |
else |
5615 |
EOF |
cat >conftest.$ac_ext <<_ACEOF |
5616 |
|
#line $LINENO "configure" |
5617 |
|
/* confdefs.h. */ |
5618 |
|
_ACEOF |
5619 |
|
cat confdefs.h >>conftest.$ac_ext |
5620 |
|
cat >>conftest.$ac_ext <<_ACEOF |
5621 |
|
/* end confdefs.h. */ |
5622 |
|
|
5623 |
|
#include "confdefs.h" |
5624 |
|
#include <stdio.h> |
5625 |
|
#ifdef HAVE_STRING_H |
5626 |
|
#include <string.h> |
5627 |
|
#else |
5628 |
|
#ifdef HAVE_STRINGS_H |
5629 |
|
#include <strings.h> |
5630 |
|
#endif |
5631 |
|
#endif |
5632 |
|
#ifdef HAVE_STDLIB_H |
5633 |
|
#include <stdlib.h> |
5634 |
|
#endif |
5635 |
|
#ifdef HAVE_UNISTD_H |
5636 |
|
#include <unistd.h> |
5637 |
|
#endif |
5638 |
|
int |
5639 |
|
main () |
5640 |
|
{ |
5641 |
|
char *(*pfn) = (char *(*)) canonicalize_file_name |
5642 |
|
; |
5643 |
|
return 0; |
5644 |
|
} |
5645 |
|
_ACEOF |
5646 |
|
rm -f conftest.$ac_objext |
5647 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5648 |
|
(eval $ac_compile) 2>&5 |
5649 |
|
ac_status=$? |
5650 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5651 |
|
(exit $ac_status); } && |
5652 |
|
{ ac_try='test -s conftest.$ac_objext' |
5653 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5654 |
|
(eval $ac_try) 2>&5 |
5655 |
|
ac_status=$? |
5656 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5657 |
|
(exit $ac_status); }; }; then |
5658 |
|
libiberty_cv_decl_needed_canonicalize_file_name=no |
5659 |
else |
else |
5660 |
echo "$ac_t""no" 1>&6 |
echo "$as_me: failed program was:" >&5 |
5661 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5662 |
|
|
5663 |
|
libiberty_cv_decl_needed_canonicalize_file_name=yes |
5664 |
|
fi |
5665 |
|
rm -f conftest.$ac_objext conftest.$ac_ext |
5666 |
|
fi |
5667 |
|
|
5668 |
|
echo "$as_me:$LINENO: result: $libiberty_cv_decl_needed_canonicalize_file_name" >&5 |
5669 |
|
echo "${ECHO_T}$libiberty_cv_decl_needed_canonicalize_file_name" >&6 |
5670 |
|
if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then |
5671 |
|
|
5672 |
|
cat >>confdefs.h <<\_ACEOF |
5673 |
|
#define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1 |
5674 |
|
_ACEOF |
5675 |
|
|
5676 |
|
fi |
5677 |
|
|
5678 |
fi |
fi |
|
done |
|
5679 |
|
|
5680 |
|
# Figure out which version of pexecute to use. |
5681 |
|
case "${host}" in |
5682 |
|
*-*-mingw* | *-*-winnt*) pexecute=pex-win32.o ;; |
5683 |
|
*-*-msdosdjgpp*) pexecute=pex-djgpp.o ;; |
5684 |
|
*-*-msdos*) pexecute=pex-msdos.o ;; |
5685 |
|
*-*-os2-emx*) pexecute=pex-os2.o ;; |
5686 |
|
*) pexecute=pex-unix.o ;; |
5687 |
|
esac |
5688 |
|
|
5689 |
|
|
5690 |
|
if test x$gcc_no_link = xyes; then |
5691 |
|
if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then |
5692 |
|
ac_cv_func_mmap_fixed_mapped=no |
5693 |
|
fi |
5694 |
fi |
fi |
5695 |
|
if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then |
5696 |
|
|
5697 |
|
|
5698 |
for ac_hdr in unistd.h |
for ac_header in stdlib.h unistd.h |
5699 |
do |
do |
5700 |
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` |
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5701 |
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 |
echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5702 |
echo "configure:2740: checking for $ac_hdr" >&5 |
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5703 |
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
if eval "test \"\${$as_ac_Header+set}\" = set"; then |
5704 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5705 |
|
else |
5706 |
|
cat >conftest.$ac_ext <<_ACEOF |
5707 |
|
#line $LINENO "configure" |
5708 |
|
/* confdefs.h. */ |
5709 |
|
_ACEOF |
5710 |
|
cat confdefs.h >>conftest.$ac_ext |
5711 |
|
cat >>conftest.$ac_ext <<_ACEOF |
5712 |
|
/* end confdefs.h. */ |
5713 |
|
#include <$ac_header> |
5714 |
|
_ACEOF |
5715 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5716 |
|
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
5717 |
|
ac_status=$? |
5718 |
|
grep -v '^ *+' conftest.er1 >conftest.err |
5719 |
|
rm -f conftest.er1 |
5720 |
|
cat conftest.err >&5 |
5721 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5722 |
|
(exit $ac_status); } >/dev/null; then |
5723 |
|
if test -s conftest.err; then |
5724 |
|
ac_cpp_err=$ac_c_preproc_warn_flag |
5725 |
|
else |
5726 |
|
ac_cpp_err= |
5727 |
|
fi |
5728 |
else |
else |
5729 |
cat > conftest.$ac_ext <<EOF |
ac_cpp_err=yes |
|
#line 2745 "configure" |
|
|
#include "confdefs.h" |
|
|
#include <$ac_hdr> |
|
|
EOF |
|
|
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" |
|
|
{ (eval echo configure:2750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
|
|
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
|
|
if test -z "$ac_err"; then |
|
|
rm -rf conftest* |
|
|
eval "ac_cv_header_$ac_safe=yes" |
|
|
else |
|
|
echo "$ac_err" >&5 |
|
|
echo "configure: failed program was:" >&5 |
|
|
cat conftest.$ac_ext >&5 |
|
|
rm -rf conftest* |
|
|
eval "ac_cv_header_$ac_safe=no" |
|
|
fi |
|
|
rm -f conftest* |
|
5730 |
fi |
fi |
5731 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
if test -z "$ac_cpp_err"; then |
5732 |
echo "$ac_t""yes" 1>&6 |
eval "$as_ac_Header=yes" |
|
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` |
|
|
cat >> confdefs.h <<EOF |
|
|
#define $ac_tr_hdr 1 |
|
|
EOF |
|
|
|
|
5733 |
else |
else |
5734 |
echo "$ac_t""no" 1>&6 |
echo "$as_me: failed program was:" >&5 |
5735 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5736 |
|
|
5737 |
|
eval "$as_ac_Header=no" |
5738 |
|
fi |
5739 |
|
rm -f conftest.err conftest.$ac_ext |
5740 |
|
fi |
5741 |
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5742 |
|
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
5743 |
|
if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5744 |
|
cat >>confdefs.h <<_ACEOF |
5745 |
|
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5746 |
|
_ACEOF |
5747 |
|
|
5748 |
fi |
fi |
5749 |
done |
done |
5750 |
|
|
5751 |
|
|
5752 |
for ac_func in getpagesize |
for ac_func in getpagesize |
5753 |
do |
do |
5754 |
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5755 |
echo "configure:2779: checking for $ac_func" >&5 |
echo "$as_me:$LINENO: checking for $ac_func" >&5 |
5756 |
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
5757 |
echo $ac_n "(cached) $ac_c" 1>&6 |
if eval "test \"\${$as_ac_var+set}\" = set"; then |
5758 |
else |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5759 |
cat > conftest.$ac_ext <<EOF |
else |
5760 |
#line 2784 "configure" |
if test x$gcc_no_link = xyes; then |
5761 |
#include "confdefs.h" |
{ { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 |
5762 |
|
echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} |
5763 |
|
{ (exit 1); exit 1; }; } |
5764 |
|
fi |
5765 |
|
cat >conftest.$ac_ext <<_ACEOF |
5766 |
|
#line $LINENO "configure" |
5767 |
|
/* confdefs.h. */ |
5768 |
|
_ACEOF |
5769 |
|
cat confdefs.h >>conftest.$ac_ext |
5770 |
|
cat >>conftest.$ac_ext <<_ACEOF |
5771 |
|
/* end confdefs.h. */ |
5772 |
/* System header to define __stub macros and hopefully few prototypes, |
/* System header to define __stub macros and hopefully few prototypes, |
5773 |
which can conflict with char $ac_func(); below. */ |
which can conflict with char $ac_func (); below. |
5774 |
#include <assert.h> |
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5775 |
|
<limits.h> exists even on freestanding compilers. Under hpux, |
5776 |
|
including <limits.h> includes <sys/time.h> and causes problems |
5777 |
|
checking for functions defined therein. */ |
5778 |
|
#if defined (__STDC__) && !defined (_HPUX_SOURCE) |
5779 |
|
# include <limits.h> |
5780 |
|
#else |
5781 |
|
# include <assert.h> |
5782 |
|
#endif |
5783 |
/* Override any gcc2 internal prototype to avoid an error. */ |
/* Override any gcc2 internal prototype to avoid an error. */ |
5784 |
|
#ifdef __cplusplus |
5785 |
|
extern "C" |
5786 |
|
{ |
5787 |
|
#endif |
5788 |
/* We use char because int might match the return type of a gcc2 |
/* We use char because int might match the return type of a gcc2 |
5789 |
builtin and then its argument prototype would still apply. */ |
builtin and then its argument prototype would still apply. */ |
5790 |
char $ac_func(); |
char $ac_func (); |
|
|
|
|
int main() { |
|
|
|
|
5791 |
/* The GNU C library defines this for functions which it implements |
/* The GNU C library defines this for functions which it implements |
5792 |
to always fail with ENOSYS. Some functions are actually named |
to always fail with ENOSYS. Some functions are actually named |
5793 |
something starting with __ and the normal name is an alias. */ |
something starting with __ and the normal name is an alias. */ |
5794 |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
#if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
5795 |
choke me |
choke me |
5796 |
#else |
#else |
5797 |
$ac_func(); |
char (*f) () = $ac_func; |
5798 |
|
#endif |
5799 |
|
#ifdef __cplusplus |
5800 |
|
} |
5801 |
#endif |
#endif |
5802 |
|
|
5803 |
; return 0; } |
int |
5804 |
EOF |
main () |
5805 |
if { (eval echo configure:2807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
{ |
5806 |
rm -rf conftest* |
return f != $ac_func; |
5807 |
eval "ac_cv_func_$ac_func=yes" |
; |
5808 |
else |
return 0; |
5809 |
echo "configure: failed program was:" >&5 |
} |
5810 |
cat conftest.$ac_ext >&5 |
_ACEOF |
5811 |
rm -rf conftest* |
rm -f conftest.$ac_objext conftest$ac_exeext |
5812 |
eval "ac_cv_func_$ac_func=no" |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5813 |
fi |
(eval $ac_link) 2>&5 |
5814 |
rm -f conftest* |
ac_status=$? |
5815 |
fi |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5816 |
|
(exit $ac_status); } && |
5817 |
|
{ ac_try='test -s conftest$ac_exeext' |
5818 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5819 |
|
(eval $ac_try) 2>&5 |
5820 |
|
ac_status=$? |
5821 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5822 |
|
(exit $ac_status); }; }; then |
5823 |
|
eval "$as_ac_var=yes" |
5824 |
|
else |
5825 |
|
echo "$as_me: failed program was:" >&5 |
5826 |
|
sed 's/^/| /' conftest.$ac_ext >&5 |
5827 |
|
|
5828 |
|
eval "$as_ac_var=no" |
5829 |
|
fi |
5830 |
|
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
5831 |
|
fi |
5832 |
|
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
5833 |
|
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
5834 |
|
if test `eval echo '${'$as_ac_var'}'` = yes; then |
5835 |
|
cat >>confdefs.h <<_ACEOF |
5836 |
|
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
5837 |
|
_ACEOF |
5838 |
|
|
|
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then |
|
|
echo "$ac_t""yes" 1>&6 |
|
|
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` |
|
|
cat >> confdefs.h <<EOF |
|
|
#define $ac_tr_func 1 |
|
|
EOF |
|
|
|
|
|
else |
|
|
echo "$ac_t""no" 1>&6 |
|
5839 |
fi |
fi |
5840 |
done |
done |
5841 |
|
|
5842 |
echo $ac_n "checking for working mmap""... $ac_c" 1>&6 |
echo "$as_me:$LINENO: checking for working mmap" >&5 |
5843 |
echo "configure:2832: checking for working mmap" >&5 |
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
5844 |
if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
5845 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
5846 |
else |
else |
5847 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
5848 |
ac_cv_func_mmap_fixed_mapped=no |
ac_cv_func_mmap_fixed_mapped=no |
5849 |
else |
else |
5850 |
cat > conftest.$ac_ext <<EOF |
cat >conftest.$ac_ext <<_ACEOF |
5851 |
#line 2840 "configure" |
#line $LINENO "configure" |
5852 |
#include "confdefs.h" |
/* confdefs.h. */ |
5853 |
|
_ACEOF |
5854 |
|
cat confdefs.h >>conftest.$ac_ext |
5855 |
|
cat >>conftest.$ac_ext <<_ACEOF |
5856 |
|
/* end confdefs.h. */ |
5857 |
|
$ac_includes_default |
5858 |
|
/* malloc might have been renamed as rpl_malloc. */ |
5859 |
|
#undef malloc |
5860 |
|
|
5861 |
/* Thanks to Mike Haertel and Jim Avera for this test. |
/* Thanks to Mike Haertel and Jim Avera for this test. |
5862 |
Here is a matrix of mmap possibilities: |
Here is a matrix of mmap possibilities: |
5870 |
back from the file, nor mmap's back from the file at a different |
back from the file, nor mmap's back from the file at a different |
5871 |
address. (There have been systems where private was not correctly |
address. (There have been systems where private was not correctly |
5872 |
implemented like the infamous i386 svr4.0, and systems where the |
implemented like the infamous i386 svr4.0, and systems where the |
5873 |
VM page cache was not coherent with the filesystem buffer cache |
VM page cache was not coherent with the file system buffer cache |
5874 |
like early versions of FreeBSD and possibly contemporary NetBSD.) |
like early versions of FreeBSD and possibly contemporary NetBSD.) |
5875 |
For shared mappings, we should conversely verify that changes get |
For shared mappings, we should conversely verify that changes get |
5876 |
propogated back to all the places they're supposed to be. |
propagated back to all the places they're supposed to be. |
5877 |
|
|
5878 |
Grep wants private fixed already mapped. |
Grep wants private fixed already mapped. |
5879 |
The main things grep needs to know about mmap are: |
The main things grep needs to know about mmap are: |
5880 |
* does it exist and is it safe to write into the mmap'd area |
* does it exist and is it safe to write into the mmap'd area |
5881 |
* how to use it (BSD variants) */ |
* how to use it (BSD variants) */ |
5882 |
#include <sys/types.h> |
|
5883 |
#include <fcntl.h> |
#include <fcntl.h> |
5884 |
#include <sys/mman.h> |
#include <sys/mman.h> |
5885 |
|
|
5886 |
/* This mess was copied from the GNU getpagesize.h. */ |
#if !STDC_HEADERS && !HAVE_STDLIB_H |
5887 |
#ifndef HAVE_GETPAGESIZE |
char *malloc (); |
5888 |
# ifdef HAVE_UNISTD_H |
#endif |
|
# include <unistd.h> |
|
|
# endif |
|
5889 |
|
|
5890 |
|
/* This mess was copied from the GNU getpagesize.h. */ |
5891 |
|
#if !HAVE_GETPAGESIZE |
5892 |
/* Assume that all systems that can run configure have sys/param.h. */ |
/* Assume that all systems that can run configure have sys/param.h. */ |
5893 |
# ifndef HAVE_SYS_PARAM_H |
# if !HAVE_SYS_PARAM_H |
5894 |
# define HAVE_SYS_PARAM_H 1 |
# define HAVE_SYS_PARAM_H 1 |
5895 |
# endif |
# endif |
5896 |
|
|
5897 |
# ifdef _SC_PAGESIZE |
# ifdef _SC_PAGESIZE |
5898 |
# define getpagesize() sysconf(_SC_PAGESIZE) |
# define getpagesize() sysconf(_SC_PAGESIZE) |
5899 |
# else /* no _SC_PAGESIZE */ |
# else /* no _SC_PAGESIZE */ |
5900 |
# ifdef HAVE_SYS_PARAM_H |
# if HAVE_SYS_PARAM_H |
5901 |
# include <sys/param.h> |
# include <sys/param.h> |
5902 |
# ifdef EXEC_PAGESIZE |
# ifdef EXEC_PAGESIZE |
5903 |
# define getpagesize() EXEC_PAGESIZE |
# define getpagesize() EXEC_PAGESIZE |
5924 |
|
|
5925 |
#endif /* no HAVE_GETPAGESIZE */ |
#endif /* no HAVE_GETPAGESIZE */ |
5926 |
|
|
|
#ifdef __cplusplus |
|
|
extern "C" { void *malloc(unsigned); } |
|
|
#else |
|
|
char *malloc(); |
|
|
#endif |
|
|
|
|
5927 |
int |
int |
5928 |
main() |
main () |
5929 |
{ |
{ |
5930 |
char *data, *data2, *data3; |
char *data, *data2, *data3; |
5931 |
int i, pagesize; |
int i, pagesize; |
5932 |
int fd; |
int fd; |
5933 |
|
|
5934 |
pagesize = getpagesize(); |
pagesize = getpagesize (); |
5935 |
|
|
5936 |
/* |
/* First, make a file with some known garbage in it. */ |
5937 |
* First, make a file with some known garbage in it. |
data = (char *) malloc (pagesize); |
5938 |
*/ |
if (!data) |
5939 |
data = malloc(pagesize); |
exit (1); |
5940 |
if (!data) |
for (i = 0; i < pagesize; ++i) |
5941 |
exit(1); |
*(data + i) = rand (); |
5942 |
for (i = 0; i < pagesize; ++i) |
umask (0); |
5943 |
*(data + i) = rand(); |
fd = creat ("conftest.mmap", 0600); |
5944 |
umask(0); |
if (fd < 0) |
5945 |
fd = creat("conftestmmap", 0600); |
exit (1); |
5946 |
if (fd < 0) |
if (write (fd, data, pagesize) != pagesize) |
5947 |
exit(1); |
exit (1); |
5948 |
if (write(fd, data, pagesize) != pagesize) |
close (fd); |
|
exit(1); |
|
|
close(fd); |
|
|
|
|
|
/* |
|
|
* Next, try to mmap the file at a fixed address which |
|
|
* already has something else allocated at it. If we can, |
|
|
* also make sure that we see the same garbage. |
|
|
*/ |
|
|
fd = open("conftestmmap", O_RDWR); |
|
|
if (fd < 0) |
|
|
exit(1); |
|
|
data2 = malloc(2 * pagesize); |
|
|
if (!data2) |
|
|
exit(1); |
|
|
data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
|
|
if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, |
|
|
MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
|
|
exit(1); |
|
|
for (i = 0; i < pagesize; ++i) |
|
|
if (*(data + i) != *(data2 + i)) |
|
|
exit(1); |
|
|
|
|
|
/* |
|
|
* Finally, make sure that changes to the mapped area |
|
|
* do not percolate back to the file as seen by read(). |
|
|
* (This is a bug on some variants of i386 svr4.0.) |
|
|
*/ |
|
|
for (i = 0; i < pagesize; ++i) |
|
|
*(data2 + i) = *(data2 + i) + 1; |
|
|
data3 = malloc(pagesize); |
|
|
if (!data3) |
|
|
exit(1); |
|
|
if (read(fd, data3, pagesize) != pagesize) |
|
|
exit(1); |
|
|
for (i = 0; i < pagesize; ++i) |
|
|
if (*(data + i) != *(data3 + i)) |
|
|
exit(1); |
|
|
close(fd); |
|
|
unlink("conftestmmap"); |
|
|
exit(0); |
|
|
} |
|
5949 |
|
|
5950 |
EOF |
/* Next, try to mmap the file at a fixed address which already has |
5951 |
if { (eval echo configure:2980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
something else allocated at it. If we can, also make sure that |
5952 |
then |
we see the same garbage. */ |
5953 |
|
fd = open ("conftest.mmap", O_RDWR); |
5954 |
|
if (fd < 0) |
5955 |
|
exit (1); |
5956 |
|
data2 = (char *) malloc (2 * pagesize); |
5957 |
|
if (!data2) |
5958 |
|
exit (1); |
5959 |
|
data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); |
5960 |
|
if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
5961 |
|
MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
5962 |
|
exit (1); |
5963 |
|
for (i = 0; i < pagesize; ++i) |
5964 |
|
if (*(data + i) != *(data2 + i)) |
5965 |
|
exit (1); |
5966 |
|
|
5967 |
|
/* Finally, make sure that changes to the mapped area do not |
5968 |
|
percolate back to the file as seen by read(). (This is a bug on |
5969 |
|
some variants of i386 svr4.0.) */ |
5970 |
|
for (i = 0; i < pagesize; ++i) |
5971 |
|
*(data2 + i) = *(data2 + i) + 1; |
5972 |
|
data3 = (char *) malloc (pagesize); |
5973 |
|
if (!data3) |
5974 |
|
exit (1); |
5975 |
|
if (read (fd, data3, pagesize) != pagesize) |
5976 |
|
exit (1); |
5977 |
|
for (i = 0; i < pagesize; ++i) |
5978 |
|
if (*(data + i) != *(data3 + i)) |
5979 |
|
exit (1); |
5980 |
|
close (fd); |
5981 |
|
exit (0); |
5982 |
|
} |
5983 |
|
_ACEOF |
5984 |
|
rm -f conftest$ac_exeext |
5985 |
|
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5986 |
|
(eval $ac_link) 2>&5 |
5987 |
|
ac_status=$? |
5988 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5989 |
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
5990 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5991 |
|
(eval $ac_try) 2>&5 |
5992 |
|
ac_status=$? |
5993 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5994 |
|
(exit $ac_status); }; }; then |
5995 |
ac_cv_func_mmap_fixed_mapped=yes |
ac_cv_func_mmap_fixed_mapped=yes |
5996 |
else |
else |
5997 |
echo "configure: failed program was:" >&5 |
echo "$as_me: program exited with status $ac_status" >&5 |
5998 |
cat conftest.$ac_ext >&5 |
echo "$as_me: failed program was:" >&5 |
5999 |
rm -fr conftest* |
sed 's/^/| /' conftest.$ac_ext >&5 |
6000 |
ac_cv_func_mmap_fixed_mapped=no |
|
6001 |
|
( exit $ac_status ) |
6002 |
|
ac_cv_func_mmap_fixed_mapped=no |
6003 |
fi |
fi |
6004 |
rm -fr conftest* |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6005 |
fi |
fi |
|
|
|
6006 |
fi |
fi |
6007 |
|
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
6008 |
echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 |
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
6009 |
if test $ac_cv_func_mmap_fixed_mapped = yes; then |
if test $ac_cv_func_mmap_fixed_mapped = yes; then |
6010 |
cat >> confdefs.h <<\EOF |
|
6011 |
|
cat >>confdefs.h <<\_ACEOF |
6012 |
#define HAVE_MMAP 1 |
#define HAVE_MMAP 1 |
6013 |
EOF |
_ACEOF |
6014 |
|
|
6015 |
fi |
fi |
6016 |
|
rm -f conftest.mmap |
6017 |
|
|
6018 |
|
fi |
6019 |
|
|
6020 |
echo $ac_n "checking for working strncmp""... $ac_c" 1>&6 |
echo "$as_me:$LINENO: checking for working strncmp" >&5 |
6021 |
echo "configure:3004: checking for working strncmp" >&5 |
echo $ECHO_N "checking for working strncmp... $ECHO_C" >&6 |
6022 |
if eval "test \"`echo '$''{'ac_cv_func_strncmp_works'+set}'`\" = set"; then |
if test "${ac_cv_func_strncmp_works+set}" = set; then |
6023 |
echo $ac_n "(cached) $ac_c" 1>&6 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
6024 |
else |
else |
6025 |
if test "$cross_compiling" = yes; then |
if test "$cross_compiling" = yes; then |
6026 |
ac_cv_func_strncmp_works=no |
ac_cv_func_strncmp_works=no |
6027 |
else |
else |
6028 |
cat > conftest.$ac_ext <<EOF |
cat >conftest.$ac_ext <<_ACEOF |
6029 |
#line 3012 "configure" |
#line $LINENO "configure" |
6030 |
#include "confdefs.h" |
/* confdefs.h. */ |
6031 |
|
_ACEOF |
6032 |
|
cat confdefs.h >>conftest.$ac_ext |
6033 |
|
cat >>conftest.$ac_ext <<_ACEOF |
6034 |
|
/* end confdefs.h. */ |
6035 |
|
|
6036 |
/* Test by Jim Wilson and Kaveh Ghazi. |
/* Test by Jim Wilson and Kaveh Ghazi. |
6037 |
Check whether strncmp reads past the end of its string parameters. */ |
Check whether strncmp reads past the end of its string parameters. */ |
6071 |
dev_zero = open ("/dev/zero", O_RDONLY); |
dev_zero = open ("/dev/zero", O_RDONLY); |
6072 |
if (dev_zero < 0) |
if (dev_zero < 0) |
6073 |
exit (1); |
exit (1); |
6074 |
|
|
6075 |
p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE, |
p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE, |
6076 |
MAP_ANON|MAP_PRIVATE, dev_zero, 0); |
MAP_ANON|MAP_PRIVATE, dev_zero, 0); |
6077 |
if (p == (char *)-1) |
if (p == (char *)-1) |
6078 |
|
p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE, |
6079 |
|
MAP_ANON|MAP_PRIVATE, -1, 0); |
6080 |
|
if (p == (char *)-1) |
6081 |
exit (2); |
exit (2); |
6082 |
else |
else |
6083 |
{ |
{ |
6093 |
exit (0); |
exit (0); |
6094 |
} |
} |
6095 |
|
|
6096 |
EOF |
_ACEOF |
6097 |
if { (eval echo configure:3073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
rm -f conftest$ac_exeext |
6098 |
then |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6099 |
|
(eval $ac_link) 2>&5 |
6100 |
|
ac_status=$? |
6101 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6102 |
|
(exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
6103 |
|
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6104 |
|
(eval $ac_try) 2>&5 |
6105 |
|
ac_status=$? |
6106 |
|
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6107 |
|
(exit $ac_status); }; }; then |
6108 |
ac_cv_func_strncmp_works=yes |
ac_cv_func_strncmp_works=yes |
6109 |
else |
else |
6110 |
echo "configure: failed program was:" >&5 |
echo "$as_me: program exited with status $ac_status" >&5 |
6111 |
cat conftest.$ac_ext >&5 |
echo "$as_me: failed program was:" >&5 |
6112 |
rm -fr conftest* |
sed 's/^/| /' conftest.$ac_ext >&5 |
6113 |
ac_cv_func_strncmp_works=no |
|
6114 |
|
( exit $ac_status ) |
6115 |
|
ac_cv_func_strncmp_works=no |
6116 |
fi |
fi |
6117 |
rm -fr conftest* |
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6118 |
fi |
fi |
|
|
|
6119 |
rm -f core core.* *.core |
rm -f core core.* *.core |
6120 |
fi |
fi |
6121 |
|
echo "$as_me:$LINENO: result: $ac_cv_func_strncmp_works" >&5 |
6122 |
echo "$ac_t""$ac_cv_func_strncmp_works" 1>&6 |
echo "${ECHO_T}$ac_cv_func_strncmp_works" >&6 |
6123 |
if test $ac_cv_func_strncmp_works = no ; then |
if test $ac_cv_func_strncmp_works = no ; then |
6124 |
LIBOBJS="$LIBOBJS strncmp.o" |
LIBOBJS="$LIBOBJS strncmp.$ac_objext" |
6125 |
fi |
fi |
6126 |
|
|
6127 |
|
|
6135 |
|
|
6136 |
|
|
6137 |
# We need multilib support, but only if configuring for the target. |
# We need multilib support, but only if configuring for the target. |
6138 |
trap '' 1 2 15 |
ac_config_files="$ac_config_files Makefile testsuite/Makefile" |
6139 |
cat > confcache <<\EOF |
ac_config_commands="$ac_config_commands default" |
6140 |
|
cat >confcache <<\_ACEOF |
6141 |
# This file is a shell script that caches the results of configure |
# This file is a shell script that caches the results of configure |
6142 |
# tests run on this system so they can be shared between configure |
# tests run on this system so they can be shared between configure |
6143 |
# scripts and configure runs. It is not useful on other systems. |
# scripts and configure runs, see configure's option --config-cache. |
6144 |
# If it contains results you don't want to keep, you may remove or edit it. |
# It is not useful on other systems. If it contains results you don't |
6145 |
|
# want to keep, you may remove or edit it. |
6146 |
# |
# |
6147 |
# By default, configure uses ./config.cache as the cache file, |
# config.status only pays attention to the cache file if you give it |
6148 |
# creating it if it does not exist already. You can give configure |
# the --recheck option to rerun configure. |
|
# the --cache-file=FILE option to use a different cache file; that is |
|
|
# what configure does when it calls configure scripts in |
|
|
# subdirectories, so they share the cache. |
|
|
# Giving --cache-file=/dev/null disables caching, for debugging configure. |
|
|
# config.status only pays attention to the cache file if you give it the |
|
|
# --recheck option to rerun configure. |
|
6149 |
# |
# |
6150 |
EOF |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
6151 |
|
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
6152 |
|
# following values. |
6153 |
|
|
6154 |
|
_ACEOF |
6155 |
|
|
6156 |
# The following way of writing the cache mishandles newlines in values, |
# The following way of writing the cache mishandles newlines in values, |
6157 |
# but we know of no workaround that is simple, portable, and efficient. |
# but we know of no workaround that is simple, portable, and efficient. |
6158 |
# So, don't put newlines in cache variables' values. |
# So, don't put newlines in cache variables' values. |
6159 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
# Ultrix sh set writes to stderr and can't be redirected directly, |
6160 |
# and sets the high bit in the cache file unless we assign to the vars. |
# and sets the high bit in the cache file unless we assign to the vars. |
6161 |
(set) 2>&1 | |
{ |
6162 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
(set) 2>&1 | |
6163 |
*ac_space=\ *) |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
6164 |
# `set' does not quote correctly, so add quotes (double-quote substitution |
*ac_space=\ *) |
6165 |
# turns \\\\ into \\, and sed turns \\ into \). |
# `set' does not quote correctly, so add quotes (double-quote |
6166 |
sed -n \ |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
6167 |
-e "s/'/'\\\\''/g" \ |
sed -n \ |
6168 |
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" |
"s/'/'\\\\''/g; |
6169 |
;; |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
6170 |
*) |
;; |
6171 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
*) |
6172 |
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
6173 |
;; |
sed -n \ |
6174 |
esac >> confcache |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
6175 |
if cmp -s $cache_file confcache; then |
;; |
6176 |
: |
esac; |
6177 |
else |
} | |
6178 |
|
sed ' |
6179 |
|
t clear |
6180 |
|
: clear |
6181 |
|
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
6182 |
|
t end |
6183 |
|
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
6184 |
|
: end' >>confcache |
6185 |
|
if diff $cache_file confcache >/dev/null 2>&1; then :; else |
6186 |
if test -w $cache_file; then |
if test -w $cache_file; then |
6187 |
echo "updating cache $cache_file" |
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
6188 |
cat confcache > $cache_file |
cat confcache >$cache_file |
6189 |
else |
else |
6190 |
echo "not updating unwritable cache $cache_file" |
echo "not updating unwritable cache $cache_file" |
6191 |
fi |
fi |
6192 |
fi |
fi |
6193 |
rm -f confcache |
rm -f confcache |
6194 |
|
|
|
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 |
|
|
|
|
6195 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
6196 |
# Let make expand exec_prefix. |
# Let make expand exec_prefix. |
6197 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
6198 |
|
|
6199 |
# Any assignment to VPATH causes Sun make to only execute |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
6200 |
# the first set of double-colon rules, so remove it if not needed. |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
6201 |
# If there is a colon in the path, we need to keep it. |
# trailing colons and then remove the whole line if VPATH becomes empty |
6202 |
|
# (actually we leave an empty line to preserve line numbers). |
6203 |
if test "x$srcdir" = x.; then |
if test "x$srcdir" = x.; then |
6204 |
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
6205 |
|
s/:*\$(srcdir):*/:/; |
6206 |
|
s/:*\${srcdir}:*/:/; |
6207 |
|
s/:*@srcdir@:*/:/; |
6208 |
|
s/^\([^=]*=[ ]*\):*/\1/; |
6209 |
|
s/:*$//; |
6210 |
|
s/^[^=]*=[ ]*$//; |
6211 |
|
}' |
6212 |
fi |
fi |
6213 |
|
|
|
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 |
|
|
|
|
6214 |
DEFS=-DHAVE_CONFIG_H |
DEFS=-DHAVE_CONFIG_H |
6215 |
|
|
6216 |
# Without the "./", some shells look in PATH for config.status. |
ac_libobjs= |
6217 |
: ${CONFIG_STATUS=./config.status} |
ac_ltlibobjs= |
6218 |
|
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
6219 |
|
# 1. Remove the extension, and $U if already installed. |
6220 |
|
ac_i=`echo "$ac_i" | |
6221 |
|
sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
6222 |
|
# 2. Add them. |
6223 |
|
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
6224 |
|
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
6225 |
|
done |
6226 |
|
LIBOBJS=$ac_libobjs |
6227 |
|
|
6228 |
echo creating $CONFIG_STATUS |
LTLIBOBJS=$ac_ltlibobjs |
6229 |
rm -f $CONFIG_STATUS |
|
6230 |
cat > $CONFIG_STATUS <<EOF |
|
6231 |
#! /bin/sh |
|
6232 |
# Generated automatically by configure. |
: ${CONFIG_STATUS=./config.status} |
6233 |
|
ac_clean_files_save=$ac_clean_files |
6234 |
|
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
6235 |
|
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
6236 |
|
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
6237 |
|
cat >$CONFIG_STATUS <<_ACEOF |
6238 |
|
#! $SHELL |
6239 |
|
# Generated by $as_me. |
6240 |
# Run this file to recreate the current configuration. |
# Run this file to recreate the current configuration. |
|
# This directory was configured as follows, |
|
|
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
|
|
# |
|
|
# $0 $ac_configure_args |
|
|
# |
|
6241 |
# Compiler output produced by configure, useful for debugging |
# Compiler output produced by configure, useful for debugging |
6242 |
# configure, is in ./config.log if it exists. |
# configure, is in config.log if it exists. |
6243 |
|
|
6244 |
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" |
debug=false |
6245 |
for ac_option |
ac_cs_recheck=false |
6246 |
|
ac_cs_silent=false |
6247 |
|
SHELL=\${CONFIG_SHELL-$SHELL} |
6248 |
|
_ACEOF |
6249 |
|
|
6250 |
|
cat >>$CONFIG_STATUS <<\_ACEOF |
6251 |
|
## --------------------- ## |
6252 |
|
## M4sh Initialization. ## |
6253 |
|
## --------------------- ## |
6254 |
|
|
6255 |
|
# Be Bourne compatible |
6256 |
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
6257 |
|
emulate sh |
6258 |
|
NULLCMD=: |
6259 |
|
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
6260 |
|
# is contrary to our usage. Disable this feature. |
6261 |
|
alias -g '${1+"$@"}'='"$@"' |
6262 |
|
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
6263 |
|
set -o posix |
6264 |
|
fi |
6265 |
|
|
6266 |
|
# Support unset when possible. |
6267 |
|
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
6268 |
|
as_unset=unset |
6269 |
|
else |
6270 |
|
as_unset=false |
6271 |
|
fi |
6272 |
|
|
6273 |
|
|
6274 |
|
# Work around bugs in pre-3.0 UWIN ksh. |
6275 |
|
$as_unset ENV MAIL MAILPATH |
6276 |
|
PS1='$ ' |
6277 |
|
PS2='> ' |
6278 |
|
PS4='+ ' |
6279 |
|
|
6280 |
|
# NLS nuisances. |
6281 |
|
for as_var in \ |
6282 |
|
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
6283 |
|
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
6284 |
|
LC_TELEPHONE LC_TIME |
6285 |
|
do |
6286 |
|
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
6287 |
|
eval $as_var=C; export $as_var |
6288 |
|
else |
6289 |
|
$as_unset $as_var |
6290 |
|
fi |
6291 |
|
done |
6292 |
|
|
6293 |
|
# Required to use basename. |
6294 |
|
if expr a : '\(a\)' >/dev/null 2>&1; then |
6295 |
|
as_expr=expr |
6296 |
|
else |
6297 |
|
as_expr=false |
6298 |
|
fi |
6299 |
|
|
6300 |
|
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
6301 |
|
as_basename=basename |
6302 |
|
else |
6303 |
|
as_basename=false |
6304 |
|
fi |
6305 |
|
|
6306 |
|
|
6307 |
|
# Name of the executable. |
6308 |
|
as_me=`$as_basename "$0" || |
6309 |
|
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
6310 |
|
X"$0" : 'X\(//\)$' \| \ |
6311 |
|
X"$0" : 'X\(/\)$' \| \ |
6312 |
|
. : '\(.\)' 2>/dev/null || |
6313 |
|
echo X/"$0" | |
6314 |
|
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
6315 |
|
/^X\/\(\/\/\)$/{ s//\1/; q; } |
6316 |
|
/^X\/\(\/\).*/{ s//\1/; q; } |
6317 |
|
s/.*/./; q'` |
6318 |
|
|
6319 |
|
|
6320 |
|
# PATH needs CR, and LINENO needs CR and PATH. |
6321 |
|
# Avoid depending upon Character Ranges. |
6322 |
|
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
6323 |
|
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
6324 |
|
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
6325 |
|
as_cr_digits='0123456789' |
6326 |
|
as_cr_alnum=$as_cr_Letters$as_cr_digits |
6327 |
|
|
6328 |
|
# The user is always right. |
6329 |
|
if test "${PATH_SEPARATOR+set}" != set; then |
6330 |
|
echo "#! /bin/sh" >conf$$.sh |
6331 |
|
echo "exit 0" >>conf$$.sh |
6332 |
|
chmod +x conf$$.sh |
6333 |
|
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
6334 |
|
PATH_SEPARATOR=';' |
6335 |
|
else |
6336 |
|
PATH_SEPARATOR=: |
6337 |
|
fi |
6338 |
|
rm -f conf$$.sh |
6339 |
|
fi |
6340 |
|
|
6341 |
|
|
6342 |
|
as_lineno_1=$LINENO |
6343 |
|
as_lineno_2=$LINENO |
6344 |
|
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
6345 |
|
test "x$as_lineno_1" != "x$as_lineno_2" && |
6346 |
|
test "x$as_lineno_3" = "x$as_lineno_2" || { |
6347 |
|
# Find who we are. Look in the path if we contain no path at all |
6348 |
|
# relative or not. |
6349 |
|
case $0 in |
6350 |
|
*[\\/]* ) as_myself=$0 ;; |
6351 |
|
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6352 |
|
for as_dir in $PATH |
6353 |
|
do |
6354 |
|
IFS=$as_save_IFS |
6355 |
|
test -z "$as_dir" && as_dir=. |
6356 |
|
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
6357 |
|
done |
6358 |
|
|
6359 |
|
;; |
6360 |
|
esac |
6361 |
|
# We did not find ourselves, most probably we were run as `sh COMMAND' |
6362 |
|
# in which case we are not to be found in the path. |
6363 |
|
if test "x$as_myself" = x; then |
6364 |
|
as_myself=$0 |
6365 |
|
fi |
6366 |
|
if test ! -f "$as_myself"; then |
6367 |
|
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
6368 |
|
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
6369 |
|
{ (exit 1); exit 1; }; } |
6370 |
|
fi |
6371 |
|
case $CONFIG_SHELL in |
6372 |
|
'') |
6373 |
|
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6374 |
|
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
6375 |
|
do |
6376 |
|
IFS=$as_save_IFS |
6377 |
|
test -z "$as_dir" && as_dir=. |
6378 |
|
for as_base in sh bash ksh sh5; do |
6379 |
|
case $as_dir in |
6380 |
|
/*) |
6381 |
|
if ("$as_dir/$as_base" -c ' |
6382 |
|
as_lineno_1=$LINENO |
6383 |
|
as_lineno_2=$LINENO |
6384 |
|
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
6385 |
|
test "x$as_lineno_1" != "x$as_lineno_2" && |
6386 |
|
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
6387 |
|
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
6388 |
|
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
6389 |
|
CONFIG_SHELL=$as_dir/$as_base |
6390 |
|
export CONFIG_SHELL |
6391 |
|
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
6392 |
|
fi;; |
6393 |
|
esac |
6394 |
|
done |
6395 |
|
done |
6396 |
|
;; |
6397 |
|
esac |
6398 |
|
|
6399 |
|
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
6400 |
|
# uniformly replaced by the line number. The first 'sed' inserts a |
6401 |
|
# line-number line before each line; the second 'sed' does the real |
6402 |
|
# work. The second script uses 'N' to pair each line-number line |
6403 |
|
# with the numbered line, and appends trailing '-' during |
6404 |
|
# substitution so that $LINENO is not a special case at line end. |
6405 |
|
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
6406 |
|
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
6407 |
|
sed '=' <$as_myself | |
6408 |
|
sed ' |
6409 |
|
N |
6410 |
|
s,$,-, |
6411 |
|
: loop |
6412 |
|
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
6413 |
|
t loop |
6414 |
|
s,-$,, |
6415 |
|
s,^['$as_cr_digits']*\n,, |
6416 |
|
' >$as_me.lineno && |
6417 |
|
chmod +x $as_me.lineno || |
6418 |
|
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
6419 |
|
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
6420 |
|
{ (exit 1); exit 1; }; } |
6421 |
|
|
6422 |
|
# Don't try to exec as it changes $[0], causing all sort of problems |
6423 |
|
# (the dirname of $[0] is not the place where we might find the |
6424 |
|
# original and so on. Autoconf is especially sensible to this). |
6425 |
|
. ./$as_me.lineno |
6426 |
|
# Exit status is that of the last command. |
6427 |
|
exit |
6428 |
|
} |
6429 |
|
|
6430 |
|
|
6431 |
|
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
6432 |
|
*c*,-n*) ECHO_N= ECHO_C=' |
6433 |
|
' ECHO_T=' ' ;; |
6434 |
|
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
6435 |
|
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
6436 |
|
esac |
6437 |
|
|
6438 |
|
if expr a : '\(a\)' >/dev/null 2>&1; then |
6439 |
|
as_expr=expr |
6440 |
|
else |
6441 |
|
as_expr=false |
6442 |
|
fi |
6443 |
|
|
6444 |
|
rm -f conf$$ conf$$.exe conf$$.file |
6445 |
|
echo >conf$$.file |
6446 |
|
if ln -s conf$$.file conf$$ 2>/dev/null; then |
6447 |
|
# We could just check for DJGPP; but this test a) works b) is more generic |
6448 |
|
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
6449 |
|
if test -f conf$$.exe; then |
6450 |
|
# Don't use ln at all; we don't have any links |
6451 |
|
as_ln_s='cp -p' |
6452 |
|
else |
6453 |
|
as_ln_s='ln -s' |
6454 |
|
fi |
6455 |
|
elif ln conf$$.file conf$$ 2>/dev/null; then |
6456 |
|
as_ln_s=ln |
6457 |
|
else |
6458 |
|
as_ln_s='cp -p' |
6459 |
|
fi |
6460 |
|
rm -f conf$$ conf$$.exe conf$$.file |
6461 |
|
|
6462 |
|
if mkdir -p . 2>/dev/null; then |
6463 |
|
as_mkdir_p=: |
6464 |
|
else |
6465 |
|
as_mkdir_p=false |
6466 |
|
fi |
6467 |
|
|
6468 |
|
as_executable_p="test -f" |
6469 |
|
|
6470 |
|
# Sed expression to map a string onto a valid CPP name. |
6471 |
|
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
6472 |
|
|
6473 |
|
# Sed expression to map a string onto a valid variable name. |
6474 |
|
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
6475 |
|
|
6476 |
|
|
6477 |
|
# IFS |
6478 |
|
# We need space, tab and new line, in precisely that order. |
6479 |
|
as_nl=' |
6480 |
|
' |
6481 |
|
IFS=" $as_nl" |
6482 |
|
|
6483 |
|
# CDPATH. |
6484 |
|
$as_unset CDPATH |
6485 |
|
|
6486 |
|
exec 6>&1 |
6487 |
|
|
6488 |
|
# Open the log real soon, to keep \$[0] and so on meaningful, and to |
6489 |
|
# report actual input values of CONFIG_FILES etc. instead of their |
6490 |
|
# values after options handling. Logging --version etc. is OK. |
6491 |
|
exec 5>>config.log |
6492 |
|
{ |
6493 |
|
echo |
6494 |
|
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
6495 |
|
## Running $as_me. ## |
6496 |
|
_ASBOX |
6497 |
|
} >&5 |
6498 |
|
cat >&5 <<_CSEOF |
6499 |
|
|
6500 |
|
This file was extended by $as_me, which was |
6501 |
|
generated by GNU Autoconf 2.57. Invocation command line was |
6502 |
|
|
6503 |
|
CONFIG_FILES = $CONFIG_FILES |
6504 |
|
CONFIG_HEADERS = $CONFIG_HEADERS |
6505 |
|
CONFIG_LINKS = $CONFIG_LINKS |
6506 |
|
CONFIG_COMMANDS = $CONFIG_COMMANDS |
6507 |
|
$ $0 $@ |
6508 |
|
|
6509 |
|
_CSEOF |
6510 |
|
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
6511 |
|
echo >&5 |
6512 |
|
_ACEOF |
6513 |
|
|
6514 |
|
# Files that config.status was made for. |
6515 |
|
if test -n "$ac_config_files"; then |
6516 |
|
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
6517 |
|
fi |
6518 |
|
|
6519 |
|
if test -n "$ac_config_headers"; then |
6520 |
|
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
6521 |
|
fi |
6522 |
|
|
6523 |
|
if test -n "$ac_config_links"; then |
6524 |
|
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
6525 |
|
fi |
6526 |
|
|
6527 |
|
if test -n "$ac_config_commands"; then |
6528 |
|
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
6529 |
|
fi |
6530 |
|
|
6531 |
|
cat >>$CONFIG_STATUS <<\_ACEOF |
6532 |
|
|
6533 |
|
ac_cs_usage="\ |
6534 |
|
\`$as_me' instantiates files from templates according to the |
6535 |
|
current configuration. |
6536 |
|
|
6537 |
|
Usage: $0 [OPTIONS] [FILE]... |
6538 |
|
|
6539 |
|
-h, --help print this help, then exit |
6540 |
|
-V, --version print version number, then exit |
6541 |
|
-q, --quiet do not print progress messages |
6542 |
|
-d, --debug don't remove temporary files |
6543 |
|
--recheck update $as_me by reconfiguring in the same conditions |
6544 |
|
--file=FILE[:TEMPLATE] |
6545 |
|
instantiate the configuration file FILE |
6546 |
|
--header=FILE[:TEMPLATE] |
6547 |
|
instantiate the configuration header FILE |
6548 |
|
|
6549 |
|
Configuration files: |
6550 |
|
$config_files |
6551 |
|
|
6552 |
|
Configuration headers: |
6553 |
|
$config_headers |
6554 |
|
|
6555 |
|
Configuration commands: |
6556 |
|
$config_commands |
6557 |
|
|
6558 |
|
Report bugs to <bug-autoconf@gnu.org>." |
6559 |
|
_ACEOF |
6560 |
|
|
6561 |
|
cat >>$CONFIG_STATUS <<_ACEOF |
6562 |
|
ac_cs_version="\\ |
6563 |
|
config.status |
6564 |
|
configured by $0, generated by GNU Autoconf 2.57, |
6565 |
|
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
6566 |
|
|
6567 |
|
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
6568 |
|
Free Software Foundation, Inc. |
6569 |
|
This config.status script is free software; the Free Software Foundation |
6570 |
|
gives unlimited permission to copy, distribute and modify it." |
6571 |
|
srcdir=$srcdir |
6572 |
|
INSTALL="$INSTALL" |
6573 |
|
_ACEOF |
6574 |
|
|
6575 |
|
cat >>$CONFIG_STATUS <<\_ACEOF |
6576 |
|
# If no file are specified by the user, then we need to provide default |
6577 |
|
# value. By we need to know if files were specified by the user. |
6578 |
|
ac_need_defaults=: |
6579 |
|
while test $# != 0 |
6580 |
do |
do |
6581 |
case "\$ac_option" in |
case $1 in |
6582 |
|
--*=*) |
6583 |
|
ac_option=`expr "x$1" : 'x\([^=]*\)='` |
6584 |
|
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
6585 |
|
ac_shift=: |
6586 |
|
;; |
6587 |
|
-*) |
6588 |
|
ac_option=$1 |
6589 |
|
ac_optarg=$2 |
6590 |
|
ac_shift=shift |
6591 |
|
;; |
6592 |
|
*) # This is not an option, so the user has probably given explicit |
6593 |
|
# arguments. |
6594 |
|
ac_option=$1 |
6595 |
|
ac_need_defaults=false;; |
6596 |
|
esac |
6597 |
|
|
6598 |
|
case $ac_option in |
6599 |
|
# Handling of the options. |
6600 |
|
_ACEOF |
6601 |
|
cat >>$CONFIG_STATUS <<\_ACEOF |
6602 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
6603 |
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" |
ac_cs_recheck=: ;; |
6604 |
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; |
--version | --vers* | -V ) |
6605 |
-version | --version | --versio | --versi | --vers | --ver | --ve | --v) |
echo "$ac_cs_version"; exit 0 ;; |
6606 |
echo "$CONFIG_STATUS generated by autoconf version 2.13" |
--he | --h) |
6607 |
exit 0 ;; |
# Conflict between --help and --header |
6608 |
-help | --help | --hel | --he | --h) |
{ { echo "$as_me:$LINENO: error: ambiguous option: $1 |
6609 |
echo "\$ac_cs_usage"; exit 0 ;; |
Try \`$0 --help' for more information." >&5 |
6610 |
*) echo "\$ac_cs_usage"; exit 1 ;; |
echo "$as_me: error: ambiguous option: $1 |
6611 |
|
Try \`$0 --help' for more information." >&2;} |
6612 |
|
{ (exit 1); exit 1; }; };; |
6613 |
|
--help | --hel | -h ) |
6614 |
|
echo "$ac_cs_usage"; exit 0 ;; |
6615 |
|
--debug | --d* | -d ) |
6616 |
|
debug=: ;; |
6617 |
|
--file | --fil | --fi | --f ) |
6618 |
|
$ac_shift |
6619 |
|
CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
6620 |
|
ac_need_defaults=false;; |
6621 |
|
--header | --heade | --head | --hea ) |
6622 |
|
$ac_shift |
6623 |
|
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
6624 |
|
ac_need_defaults=false;; |
6625 |
|
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
6626 |
|
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
6627 |
|
ac_cs_silent=: ;; |
6628 |
|
|
6629 |
|
# This is an error. |
6630 |
|
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
6631 |
|
Try \`$0 --help' for more information." >&5 |
6632 |
|
echo "$as_me: error: unrecognized option: $1 |
6633 |
|
Try \`$0 --help' for more information." >&2;} |
6634 |
|
{ (exit 1); exit 1; }; } ;; |
6635 |
|
|
6636 |
|
*) ac_config_targets="$ac_config_targets $1" ;; |
6637 |
|
|
6638 |
esac |
esac |
6639 |
|
shift |
6640 |
done |
done |
6641 |
|
|
6642 |
ac_given_srcdir=$srcdir |
ac_configure_extra_args= |
|
ac_given_INSTALL="$INSTALL" |
|
6643 |
|
|
6644 |
trap 'rm -fr `echo "Makefile testsuite/Makefile config.h:config.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 |
if $ac_cs_silent; then |
6645 |
EOF |
exec 6>/dev/null |
6646 |
cat >> $CONFIG_STATUS <<EOF |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
6647 |
|
fi |
6648 |
|
|
6649 |
# Protect against being on the right side of a sed subst in config.status. |
_ACEOF |
6650 |
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; |
cat >>$CONFIG_STATUS <<_ACEOF |
6651 |
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF |
if \$ac_cs_recheck; then |
6652 |
$ac_vpsub |
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
6653 |
$extrasub |
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
6654 |
s%@SHELL@%$SHELL%g |
fi |
6655 |
s%@CFLAGS@%$CFLAGS%g |
|
6656 |
s%@CPPFLAGS@%$CPPFLAGS%g |
_ACEOF |
|
s%@CXXFLAGS@%$CXXFLAGS%g |
|
|
s%@FFLAGS@%$FFLAGS%g |
|
|
s%@DEFS@%$DEFS%g |
|
|
s%@LDFLAGS@%$LDFLAGS%g |
|
|
s%@LIBS@%$LIBS%g |
|
|
s%@exec_prefix@%$exec_prefix%g |
|
|
s%@prefix@%$prefix%g |
|
|
s%@program_transform_name@%$program_transform_name%g |
|
|
s%@bindir@%$bindir%g |
|
|
s%@sbindir@%$sbindir%g |
|
|
s%@libexecdir@%$libexecdir%g |
|
|
s%@datadir@%$datadir%g |
|
|
s%@sysconfdir@%$sysconfdir%g |
|
|
s%@sharedstatedir@%$sharedstatedir%g |
|
|
s%@localstatedir@%$localstatedir%g |
|
|
s%@libdir@%$libdir%g |
|
|
s%@includedir@%$includedir%g |
|
|
s%@oldincludedir@%$oldincludedir%g |
|
|
s%@infodir@%$infodir%g |
|
|
s%@mandir@%$mandir%g |
|
|
s%@host@%$host%g |
|
|
s%@host_alias@%$host_alias%g |
|
|
s%@host_cpu@%$host_cpu%g |
|
|
s%@host_vendor@%$host_vendor%g |
|
|
s%@host_os@%$host_os%g |
|
|
s%@build@%$build%g |
|
|
s%@build_alias@%$build_alias%g |
|
|
s%@build_cpu@%$build_cpu%g |
|
|
s%@build_vendor@%$build_vendor%g |
|
|
s%@build_os@%$build_os%g |
|
|
s%@AR@%$AR%g |
|
|
s%@RANLIB@%$RANLIB%g |
|
|
s%@CC@%$CC%g |
|
|
s%@ac_libiberty_warn_cflags@%$ac_libiberty_warn_cflags%g |
|
|
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g |
|
|
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g |
|
|
s%@INSTALL_DATA@%$INSTALL_DATA%g |
|
|
/@host_makefile_frag@/r $host_makefile_frag |
|
|
s%@host_makefile_frag@%%g |
|
|
s%@CPP@%$CPP%g |
|
|
s%@CHECK@%$CHECK%g |
|
|
s%@LIBOBJS@%$LIBOBJS%g |
|
|
s%@ALLOCA@%$ALLOCA%g |
|
|
s%@INSTALL_DEST@%$INSTALL_DEST%g |
|
6657 |
|
|
6658 |
|
cat >>$CONFIG_STATUS <<_ACEOF |
6659 |
|
# |
6660 |
|
# INIT-COMMANDS section. |
6661 |
|
# |
6662 |
|
|
6663 |
|
srcdir=${srcdir} |
6664 |
|
host=${host} |
6665 |
|
target=${target} |
6666 |
|
with_target_subdir=${with_target_subdir} |
6667 |
|
with_build_subdir=${with_build_subdir} |
6668 |
|
with_multisubdir=${with_multisubdir} |
6669 |
|
ac_configure_args="--enable-multilib ${ac_configure_args}" |
6670 |
|
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
6671 |
|
ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}" |
6672 |
|
libiberty_topdir=${libiberty_topdir} |
6673 |
|
|
6674 |
|
|
6675 |
|
_ACEOF |
6676 |
|
|
6677 |
|
|
6678 |
|
|
6679 |
|
cat >>$CONFIG_STATUS <<\_ACEOF |
6680 |
|
for ac_config_target in $ac_config_targets |
6681 |
|
do |
6682 |
|
case "$ac_config_target" in |
6683 |
|
# Handling of arguments. |
6684 |
|
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
6685 |
|
"testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; |
6686 |
|
"default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
6687 |
|
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; |
6688 |
|
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
6689 |
|
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
6690 |
|
{ (exit 1); exit 1; }; };; |
6691 |
|
esac |
6692 |
|
done |
6693 |
|
|
6694 |
|
# If the user did not use the arguments to specify the items to instantiate, |
6695 |
|
# then the envvar interface is used. Set only those that are not. |
6696 |
|
# We use the long form for the default assignment because of an extremely |
6697 |
|
# bizarre bug on SunOS 4.1.3. |
6698 |
|
if $ac_need_defaults; then |
6699 |
|
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
6700 |
|
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
6701 |
|
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
6702 |
|
fi |
6703 |
|
|
6704 |
|
# Have a temporary directory for convenience. Make it in the build tree |
6705 |
|
# simply because there is no reason to put it here, and in addition, |
6706 |
|
# creating and moving files from /tmp can sometimes cause problems. |
6707 |
|
# Create a temporary directory, and hook for its removal unless debugging. |
6708 |
|
$debug || |
6709 |
|
{ |
6710 |
|
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
6711 |
|
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
6712 |
|
} |
6713 |
|
|
6714 |
|
# Create a (secure) tmp directory for tmp files. |
6715 |
|
|
6716 |
|
{ |
6717 |
|
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
6718 |
|
test -n "$tmp" && test -d "$tmp" |
6719 |
|
} || |
6720 |
|
{ |
6721 |
|
tmp=./confstat$$-$RANDOM |
6722 |
|
(umask 077 && mkdir $tmp) |
6723 |
|
} || |
6724 |
|
{ |
6725 |
|
echo "$me: cannot create a temporary directory in ." >&2 |
6726 |
|
{ (exit 1); exit 1; } |
6727 |
|
} |
6728 |
|
|
6729 |
|
_ACEOF |
6730 |
|
|
6731 |
|
cat >>$CONFIG_STATUS <<_ACEOF |
6732 |
|
|
6733 |
|
# |
6734 |
|
# CONFIG_FILES section. |
6735 |
|
# |
6736 |
|
|
6737 |
|
# No need to generate the scripts if there are no CONFIG_FILES. |
6738 |
|
# This happens for instance when ./config.status config.h |
6739 |
|
if test -n "\$CONFIG_FILES"; then |
6740 |
|
# Protect against being on the right side of a sed subst in config.status. |
6741 |
|
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
6742 |
|
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
6743 |
|
s,@SHELL@,$SHELL,;t t |
6744 |
|
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
6745 |
|
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
6746 |
|
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
6747 |
|
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
6748 |
|
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
6749 |
|
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
6750 |
|
s,@exec_prefix@,$exec_prefix,;t t |
6751 |
|
s,@prefix@,$prefix,;t t |
6752 |
|
s,@program_transform_name@,$program_transform_name,;t t |
6753 |
|
s,@bindir@,$bindir,;t t |
6754 |
|
s,@sbindir@,$sbindir,;t t |
6755 |
|
s,@libexecdir@,$libexecdir,;t t |
6756 |
|
s,@datadir@,$datadir,;t t |
6757 |
|
s,@sysconfdir@,$sysconfdir,;t t |
6758 |
|
s,@sharedstatedir@,$sharedstatedir,;t t |
6759 |
|
s,@localstatedir@,$localstatedir,;t t |
6760 |
|
s,@libdir@,$libdir,;t t |
6761 |
|
s,@includedir@,$includedir,;t t |
6762 |
|
s,@oldincludedir@,$oldincludedir,;t t |
6763 |
|
s,@infodir@,$infodir,;t t |
6764 |
|
s,@mandir@,$mandir,;t t |
6765 |
|
s,@build_alias@,$build_alias,;t t |
6766 |
|
s,@host_alias@,$host_alias,;t t |
6767 |
|
s,@target_alias@,$target_alias,;t t |
6768 |
|
s,@DEFS@,$DEFS,;t t |
6769 |
|
s,@ECHO_C@,$ECHO_C,;t t |
6770 |
|
s,@ECHO_N@,$ECHO_N,;t t |
6771 |
|
s,@ECHO_T@,$ECHO_T,;t t |
6772 |
|
s,@LIBS@,$LIBS,;t t |
6773 |
|
s,@libiberty_topdir@,$libiberty_topdir,;t t |
6774 |
|
s,@MAINT@,$MAINT,;t t |
6775 |
|
s,@NOTMAINT@,$NOTMAINT,;t t |
6776 |
|
s,@MAKEINFO@,$MAKEINFO,;t t |
6777 |
|
s,@BUILD_INFO@,$BUILD_INFO,;t t |
6778 |
|
s,@PERL@,$PERL,;t t |
6779 |
|
s,@HAVE_PERL@,$HAVE_PERL,;t t |
6780 |
|
s,@build@,$build,;t t |
6781 |
|
s,@build_cpu@,$build_cpu,;t t |
6782 |
|
s,@build_vendor@,$build_vendor,;t t |
6783 |
|
s,@build_os@,$build_os,;t t |
6784 |
|
s,@host@,$host,;t t |
6785 |
|
s,@host_cpu@,$host_cpu,;t t |
6786 |
|
s,@host_vendor@,$host_vendor,;t t |
6787 |
|
s,@host_os@,$host_os,;t t |
6788 |
|
s,@AR@,$AR,;t t |
6789 |
|
s,@ac_ct_AR@,$ac_ct_AR,;t t |
6790 |
|
s,@RANLIB@,$RANLIB,;t t |
6791 |
|
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
6792 |
|
s,@CC@,$CC,;t t |
6793 |
|
s,@CFLAGS@,$CFLAGS,;t t |
6794 |
|
s,@LDFLAGS@,$LDFLAGS,;t t |
6795 |
|
s,@CPPFLAGS@,$CPPFLAGS,;t t |
6796 |
|
s,@ac_ct_CC@,$ac_ct_CC,;t t |
6797 |
|
s,@EXEEXT@,$EXEEXT,;t t |
6798 |
|
s,@OBJEXT@,$OBJEXT,;t t |
6799 |
|
s,@CPP@,$CPP,;t t |
6800 |
|
s,@ac_libiberty_warn_cflags@,$ac_libiberty_warn_cflags,;t t |
6801 |
|
s,@NO_MINUS_C_MINUS_O@,$NO_MINUS_C_MINUS_O,;t t |
6802 |
|
s,@OUTPUT_OPTION@,$OUTPUT_OPTION,;t t |
6803 |
|
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
6804 |
|
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
6805 |
|
s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
6806 |
|
s,@EGREP@,$EGREP,;t t |
6807 |
|
s,@LIBOBJS@,$LIBOBJS,;t t |
6808 |
|
s,@CHECK@,$CHECK,;t t |
6809 |
|
s,@target_header_dir@,$target_header_dir,;t t |
6810 |
|
s,@pexecute@,$pexecute,;t t |
6811 |
|
s,@INSTALL_DEST@,$INSTALL_DEST,;t t |
6812 |
|
s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
6813 |
|
/@host_makefile_frag@/r $host_makefile_frag |
6814 |
|
s,@host_makefile_frag@,,;t t |
6815 |
CEOF |
CEOF |
|
EOF |
|
6816 |
|
|
6817 |
cat >> $CONFIG_STATUS <<\EOF |
_ACEOF |
6818 |
|
|
6819 |
# Split the substitutions into bite-sized pieces for seds with |
cat >>$CONFIG_STATUS <<\_ACEOF |
6820 |
# small command number limits, like on Digital OSF/1 and HP-UX. |
# Split the substitutions into bite-sized pieces for seds with |
6821 |
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. |
# small command number limits, like on Digital OSF/1 and HP-UX. |
6822 |
ac_file=1 # Number of current file. |
ac_max_sed_lines=48 |
6823 |
ac_beg=1 # First line for current file. |
ac_sed_frag=1 # Number of current file. |
6824 |
ac_end=$ac_max_sed_cmds # Line after last line for current file. |
ac_beg=1 # First line for current file. |
6825 |
ac_more_lines=: |
ac_end=$ac_max_sed_lines # Line after last line for current file. |
6826 |
ac_sed_cmds="" |
ac_more_lines=: |
6827 |
while $ac_more_lines; do |
ac_sed_cmds= |
6828 |
if test $ac_beg -gt 1; then |
while $ac_more_lines; do |
6829 |
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file |
if test $ac_beg -gt 1; then |
6830 |
else |
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
6831 |
sed "${ac_end}q" conftest.subs > conftest.s$ac_file |
else |
6832 |
fi |
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
6833 |
if test ! -s conftest.s$ac_file; then |
fi |
6834 |
ac_more_lines=false |
if test ! -s $tmp/subs.frag; then |
6835 |
rm -f conftest.s$ac_file |
ac_more_lines=false |
|
else |
|
|
if test -z "$ac_sed_cmds"; then |
|
|
ac_sed_cmds="sed -f conftest.s$ac_file" |
|
6836 |
else |
else |
6837 |
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" |
# The purpose of the label and of the branching condition is to |
6838 |
|
# speed up the sed processing (if there are no `@' at all, there |
6839 |
|
# is no need to browse any of the substitutions). |
6840 |
|
# These are the two extra sed commands mentioned above. |
6841 |
|
(echo ':t |
6842 |
|
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
6843 |
|
if test -z "$ac_sed_cmds"; then |
6844 |
|
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
6845 |
|
else |
6846 |
|
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
6847 |
|
fi |
6848 |
|
ac_sed_frag=`expr $ac_sed_frag + 1` |
6849 |
|
ac_beg=$ac_end |
6850 |
|
ac_end=`expr $ac_end + $ac_max_sed_lines` |
6851 |
fi |
fi |
6852 |
ac_file=`expr $ac_file + 1` |
done |
6853 |
ac_beg=$ac_end |
if test -z "$ac_sed_cmds"; then |
6854 |
ac_end=`expr $ac_end + $ac_max_sed_cmds` |
ac_sed_cmds=cat |
6855 |
fi |
fi |
6856 |
done |
fi # test -n "$CONFIG_FILES" |
|
if test -z "$ac_sed_cmds"; then |
|
|
ac_sed_cmds=cat |
|
|
fi |
|
|
EOF |
|
6857 |
|
|
6858 |
cat >> $CONFIG_STATUS <<EOF |
_ACEOF |
6859 |
|
cat >>$CONFIG_STATUS <<\_ACEOF |
6860 |
CONFIG_FILES=\${CONFIG_FILES-"Makefile testsuite/Makefile"} |
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
|
EOF |
|
|
cat >> $CONFIG_STATUS <<\EOF |
|
|
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then |
|
6861 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
6862 |
case "$ac_file" in |
case $ac_file in |
6863 |
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
- | *:- | *:-:* ) # input from stdin |
6864 |
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
cat >$tmp/stdin |
6865 |
*) ac_file_in="${ac_file}.in" ;; |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
6866 |
esac |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
6867 |
|
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
6868 |
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
6869 |
|
* ) ac_file_in=$ac_file.in ;; |
6870 |
# Remove last slash and all that follows it. Not all systems have dirname. |
esac |
6871 |
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
|
6872 |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
6873 |
# The file is in a subdirectory. |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
6874 |
test ! -d "$ac_dir" && mkdir "$ac_dir" |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
6875 |
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
6876 |
# A "../" for each directory in $ac_dir_suffix. |
X"$ac_file" : 'X\(//\)$' \| \ |
6877 |
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` |
X"$ac_file" : 'X\(/\)' \| \ |
6878 |
else |
. : '\(.\)' 2>/dev/null || |
6879 |
ac_dir_suffix= ac_dots= |
echo X"$ac_file" | |
6880 |
fi |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
6881 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
6882 |
case "$ac_given_srcdir" in |
/^X\(\/\/\)$/{ s//\1/; q; } |
6883 |
.) srcdir=. |
/^X\(\/\).*/{ s//\1/; q; } |
6884 |
if test -z "$ac_dots"; then top_srcdir=. |
s/.*/./; q'` |
6885 |
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; |
{ if $as_mkdir_p; then |
6886 |
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; |
mkdir -p "$ac_dir" |
6887 |
|
else |
6888 |
|
as_dir="$ac_dir" |
6889 |
|
as_dirs= |
6890 |
|
while test ! -d "$as_dir"; do |
6891 |
|
as_dirs="$as_dir $as_dirs" |
6892 |
|
as_dir=`(dirname "$as_dir") 2>/dev/null || |
6893 |
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
6894 |
|
X"$as_dir" : 'X\(//\)[^/]' \| \ |
6895 |
|
X"$as_dir" : 'X\(//\)$' \| \ |
6896 |
|
X"$as_dir" : 'X\(/\)' \| \ |
6897 |
|
. : '\(.\)' 2>/dev/null || |
6898 |
|
echo X"$as_dir" | |
6899 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
6900 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
6901 |
|
/^X\(\/\/\)$/{ s//\1/; q; } |
6902 |
|
/^X\(\/\).*/{ s//\1/; q; } |
6903 |
|
s/.*/./; q'` |
6904 |
|
done |
6905 |
|
test ! -n "$as_dirs" || mkdir $as_dirs |
6906 |
|
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
6907 |
|
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
6908 |
|
{ (exit 1); exit 1; }; }; } |
6909 |
|
|
6910 |
|
ac_builddir=. |
6911 |
|
|
6912 |
|
if test "$ac_dir" != .; then |
6913 |
|
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
6914 |
|
# A "../" for each directory in $ac_dir_suffix. |
6915 |
|
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
6916 |
|
else |
6917 |
|
ac_dir_suffix= ac_top_builddir= |
6918 |
|
fi |
6919 |
|
|
6920 |
|
case $srcdir in |
6921 |
|
.) # No --srcdir option. We are building in place. |
6922 |
|
ac_srcdir=. |
6923 |
|
if test -z "$ac_top_builddir"; then |
6924 |
|
ac_top_srcdir=. |
6925 |
|
else |
6926 |
|
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
6927 |
|
fi ;; |
6928 |
|
[\\/]* | ?:[\\/]* ) # Absolute path. |
6929 |
|
ac_srcdir=$srcdir$ac_dir_suffix; |
6930 |
|
ac_top_srcdir=$srcdir ;; |
6931 |
*) # Relative path. |
*) # Relative path. |
6932 |
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
6933 |
top_srcdir="$ac_dots$ac_given_srcdir" ;; |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
6934 |
|
esac |
6935 |
|
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
6936 |
|
# absolute. |
6937 |
|
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
6938 |
|
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
6939 |
|
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
6940 |
|
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
6941 |
|
|
6942 |
|
|
6943 |
|
case $INSTALL in |
6944 |
|
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
6945 |
|
*) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
6946 |
esac |
esac |
6947 |
|
|
6948 |
case "$ac_given_INSTALL" in |
if test x"$ac_file" != x-; then |
6949 |
[/$]*) INSTALL="$ac_given_INSTALL" ;; |
{ echo "$as_me:$LINENO: creating $ac_file" >&5 |
6950 |
*) INSTALL="$ac_dots$ac_given_INSTALL" ;; |
echo "$as_me: creating $ac_file" >&6;} |
6951 |
esac |
rm -f "$ac_file" |
6952 |
|
fi |
6953 |
echo creating "$ac_file" |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
6954 |
rm -f "$ac_file" |
# use $as_me), people would be surprised to read: |
6955 |
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." |
# /* config.h. Generated by config.status. */ |
6956 |
case "$ac_file" in |
if test x"$ac_file" = x-; then |
6957 |
*Makefile*) ac_comsub="1i\\ |
configure_input= |
6958 |
# $configure_input" ;; |
else |
6959 |
*) ac_comsub= ;; |
configure_input="$ac_file. " |
6960 |
esac |
fi |
6961 |
|
configure_input=$configure_input"Generated from `echo $ac_file_in | |
6962 |
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
sed 's,.*/,,'` by configure." |
6963 |
sed -e "$ac_comsub |
|
6964 |
s%@configure_input@%$configure_input%g |
# First look for the input files in the build tree, otherwise in the |
6965 |
s%@srcdir@%$srcdir%g |
# src tree. |
6966 |
s%@top_srcdir@%$top_srcdir%g |
ac_file_inputs=`IFS=: |
6967 |
s%@INSTALL@%$INSTALL%g |
for f in $ac_file_in; do |
6968 |
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file |
case $f in |
6969 |
fi; done |
-) echo $tmp/stdin ;; |
6970 |
rm -f conftest.s* |
[\\/$]*) |
6971 |
|
# Absolute (can't be DOS-style, as IFS=:) |
6972 |
|
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
6973 |
|
echo "$as_me: error: cannot find input file: $f" >&2;} |
6974 |
|
{ (exit 1); exit 1; }; } |
6975 |
|
echo $f;; |
6976 |
|
*) # Relative |
6977 |
|
if test -f "$f"; then |
6978 |
|
# Build tree |
6979 |
|
echo $f |
6980 |
|
elif test -f "$srcdir/$f"; then |
6981 |
|
# Source tree |
6982 |
|
echo $srcdir/$f |
6983 |
|
else |
6984 |
|
# /dev/null tree |
6985 |
|
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
6986 |
|
echo "$as_me: error: cannot find input file: $f" >&2;} |
6987 |
|
{ (exit 1); exit 1; }; } |
6988 |
|
fi;; |
6989 |
|
esac |
6990 |
|
done` || { (exit 1); exit 1; } |
6991 |
|
_ACEOF |
6992 |
|
cat >>$CONFIG_STATUS <<_ACEOF |
6993 |
|
sed "$ac_vpsub |
6994 |
|
$extrasub |
6995 |
|
_ACEOF |
6996 |
|
cat >>$CONFIG_STATUS <<\_ACEOF |
6997 |
|
:t |
6998 |
|
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
6999 |
|
s,@configure_input@,$configure_input,;t t |
7000 |
|
s,@srcdir@,$ac_srcdir,;t t |
7001 |
|
s,@abs_srcdir@,$ac_abs_srcdir,;t t |
7002 |
|
s,@top_srcdir@,$ac_top_srcdir,;t t |
7003 |
|
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
7004 |
|
s,@builddir@,$ac_builddir,;t t |
7005 |
|
s,@abs_builddir@,$ac_abs_builddir,;t t |
7006 |
|
s,@top_builddir@,$ac_top_builddir,;t t |
7007 |
|
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
7008 |
|
s,@INSTALL@,$ac_INSTALL,;t t |
7009 |
|
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
7010 |
|
rm -f $tmp/stdin |
7011 |
|
if test x"$ac_file" != x-; then |
7012 |
|
mv $tmp/out $ac_file |
7013 |
|
else |
7014 |
|
cat $tmp/out |
7015 |
|
rm -f $tmp/out |
7016 |
|
fi |
7017 |
|
|
7018 |
|
done |
7019 |
|
_ACEOF |
7020 |
|
cat >>$CONFIG_STATUS <<\_ACEOF |
7021 |
|
|
7022 |
|
# |
7023 |
|
# CONFIG_HEADER section. |
7024 |
|
# |
7025 |
|
|
7026 |
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
7027 |
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
7028 |
# |
# |
7029 |
# ac_d sets the value in "#define NAME VALUE" lines. |
# ac_d sets the value in "#define NAME VALUE" lines. |
7030 |
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
7031 |
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' |
ac_dB='[ ].*$,\1#\2' |
7032 |
ac_dC='\3' |
ac_dC=' ' |
7033 |
ac_dD='%g' |
ac_dD=',;t' |
7034 |
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". |
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
7035 |
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
7036 |
ac_uB='\([ ]\)%\1#\2define\3' |
ac_uB='$,\1#\2define\3' |
7037 |
ac_uC=' ' |
ac_uC=' ' |
7038 |
ac_uD='\4%g' |
ac_uD=',;t' |
|
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
|
|
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
|
|
ac_eB='$%\1#\2define\3' |
|
|
ac_eC=' ' |
|
|
ac_eD='%g' |
|
7039 |
|
|
7040 |
if test "${CONFIG_HEADERS+set}" != set; then |
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
|
EOF |
|
|
cat >> $CONFIG_STATUS <<EOF |
|
|
CONFIG_HEADERS="config.h:config.in" |
|
|
EOF |
|
|
cat >> $CONFIG_STATUS <<\EOF |
|
|
fi |
|
|
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then |
|
7041 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
7042 |
case "$ac_file" in |
case $ac_file in |
7043 |
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` |
- | *:- | *:-:* ) # input from stdin |
7044 |
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
cat >$tmp/stdin |
7045 |
*) ac_file_in="${ac_file}.in" ;; |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
7046 |
|
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
7047 |
|
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
7048 |
|
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
7049 |
|
* ) ac_file_in=$ac_file.in ;; |
7050 |
esac |
esac |
7051 |
|
|
7052 |
echo creating $ac_file |
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
7053 |
|
echo "$as_me: creating $ac_file" >&6;} |
7054 |
|
|
7055 |
rm -f conftest.frag conftest.in conftest.out |
# First look for the input files in the build tree, otherwise in the |
7056 |
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` |
# src tree. |
7057 |
cat $ac_file_inputs > conftest.in |
ac_file_inputs=`IFS=: |
7058 |
|
for f in $ac_file_in; do |
7059 |
EOF |
case $f in |
7060 |
|
-) echo $tmp/stdin ;; |
7061 |
# Transform confdefs.h into a sed script conftest.vals that substitutes |
[\\/$]*) |
7062 |
# the proper values into config.h.in to produce config.h. And first: |
# Absolute (can't be DOS-style, as IFS=:) |
7063 |
# Protect against being on the right side of a sed subst in config.status. |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
7064 |
# Protect against being in an unquoted here document in config.status. |
echo "$as_me: error: cannot find input file: $f" >&2;} |
7065 |
rm -f conftest.vals |
{ (exit 1); exit 1; }; } |
7066 |
cat > conftest.hdr <<\EOF |
echo $f;; |
7067 |
s/[\\&%]/\\&/g |
*) # Relative |
7068 |
s%[\\$`]%\\&%g |
if test -f "$f"; then |
7069 |
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp |
# Build tree |
7070 |
s%ac_d%ac_u%gp |
echo $f |
7071 |
s%ac_u%ac_e%gp |
elif test -f "$srcdir/$f"; then |
7072 |
EOF |
# Source tree |
7073 |
sed -n -f conftest.hdr confdefs.h > conftest.vals |
echo $srcdir/$f |
7074 |
rm -f conftest.hdr |
else |
7075 |
|
# /dev/null tree |
7076 |
|
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
7077 |
|
echo "$as_me: error: cannot find input file: $f" >&2;} |
7078 |
|
{ (exit 1); exit 1; }; } |
7079 |
|
fi;; |
7080 |
|
esac |
7081 |
|
done` || { (exit 1); exit 1; } |
7082 |
|
# Remove the trailing spaces. |
7083 |
|
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
7084 |
|
|
7085 |
|
_ACEOF |
7086 |
|
|
7087 |
|
# Transform confdefs.h into two sed scripts, `conftest.defines' and |
7088 |
|
# `conftest.undefs', that substitutes the proper values into |
7089 |
|
# config.h.in to produce config.h. The first handles `#define' |
7090 |
|
# templates, and the second `#undef' templates. |
7091 |
|
# And first: Protect against being on the right side of a sed subst in |
7092 |
|
# config.status. Protect against being in an unquoted here document |
7093 |
|
# in config.status. |
7094 |
|
rm -f conftest.defines conftest.undefs |
7095 |
|
# Using a here document instead of a string reduces the quoting nightmare. |
7096 |
|
# Putting comments in sed scripts is not portable. |
7097 |
|
# |
7098 |
|
# `end' is used to avoid that the second main sed command (meant for |
7099 |
|
# 0-ary CPP macros) applies to n-ary macro definitions. |
7100 |
|
# See the Autoconf documentation for `clear'. |
7101 |
|
cat >confdef2sed.sed <<\_ACEOF |
7102 |
|
s/[\\&,]/\\&/g |
7103 |
|
s,[\\$`],\\&,g |
7104 |
|
t clear |
7105 |
|
: clear |
7106 |
|
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
7107 |
|
t end |
7108 |
|
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
7109 |
|
: end |
7110 |
|
_ACEOF |
7111 |
|
# If some macros were called several times there might be several times |
7112 |
|
# the same #defines, which is useless. Nevertheless, we may not want to |
7113 |
|
# sort them, since we want the *last* AC-DEFINE to be honored. |
7114 |
|
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
7115 |
|
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
7116 |
|
rm -f confdef2sed.sed |
7117 |
|
|
7118 |
# This sed command replaces #undef with comments. This is necessary, for |
# This sed command replaces #undef with comments. This is necessary, for |
7119 |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
7120 |
# on some systems where configure will not decide to define it. |
# on some systems where configure will not decide to define it. |
7121 |
cat >> conftest.vals <<\EOF |
cat >>conftest.undefs <<\_ACEOF |
7122 |
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% |
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
7123 |
EOF |
_ACEOF |
7124 |
|
|
7125 |
# Break up conftest.vals because some shells have a limit on |
# Break up conftest.defines because some shells have a limit on the size |
7126 |
# the size of here documents, and old seds have small limits too. |
# of here documents, and old seds have small limits too (100 cmds). |
7127 |
|
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
7128 |
|
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
7129 |
|
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
7130 |
|
echo ' :' >>$CONFIG_STATUS |
7131 |
rm -f conftest.tail |
rm -f conftest.tail |
7132 |
while : |
while grep . conftest.defines >/dev/null |
7133 |
do |
do |
7134 |
ac_lines=`grep -c . conftest.vals` |
# Write a limited-size here document to $tmp/defines.sed. |
7135 |
# grep -c gives empty output for an empty file on some AIX systems. |
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
7136 |
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi |
# Speed up: don't consider the non `#define' lines. |
7137 |
# Write a limited-size here document to conftest.frag. |
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
7138 |
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS |
# Work around the forget-to-reset-the-flag bug. |
7139 |
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS |
echo 't clr' >>$CONFIG_STATUS |
7140 |
|
echo ': clr' >>$CONFIG_STATUS |
7141 |
|
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
7142 |
echo 'CEOF |
echo 'CEOF |
7143 |
sed -f conftest.frag conftest.in > conftest.out |
sed -f $tmp/defines.sed $tmp/in >$tmp/out |
7144 |
rm -f conftest.in |
rm -f $tmp/in |
7145 |
mv conftest.out conftest.in |
mv $tmp/out $tmp/in |
7146 |
' >> $CONFIG_STATUS |
' >>$CONFIG_STATUS |
7147 |
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail |
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
7148 |
rm -f conftest.vals |
rm -f conftest.defines |
7149 |
mv conftest.tail conftest.vals |
mv conftest.tail conftest.defines |
7150 |
done |
done |
7151 |
rm -f conftest.vals |
rm -f conftest.defines |
7152 |
|
echo ' fi # grep' >>$CONFIG_STATUS |
7153 |
cat >> $CONFIG_STATUS <<\EOF |
echo >>$CONFIG_STATUS |
7154 |
rm -f conftest.frag conftest.h |
|
7155 |
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h |
# Break up conftest.undefs because some shells have a limit on the size |
7156 |
cat conftest.in >> conftest.h |
# of here documents, and old seds have small limits too (100 cmds). |
7157 |
rm -f conftest.in |
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
7158 |
if cmp -s $ac_file conftest.h 2>/dev/null; then |
rm -f conftest.tail |
7159 |
echo "$ac_file is unchanged" |
while grep . conftest.undefs >/dev/null |
7160 |
rm -f conftest.h |
do |
7161 |
else |
# Write a limited-size here document to $tmp/undefs.sed. |
7162 |
# Remove last slash and all that follows it. Not all systems have dirname. |
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
7163 |
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` |
# Speed up: don't consider the non `#undef' |
7164 |
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
7165 |
# The file is in a subdirectory. |
# Work around the forget-to-reset-the-flag bug. |
7166 |
test ! -d "$ac_dir" && mkdir "$ac_dir" |
echo 't clr' >>$CONFIG_STATUS |
7167 |
|
echo ': clr' >>$CONFIG_STATUS |
7168 |
|
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
7169 |
|
echo 'CEOF |
7170 |
|
sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
7171 |
|
rm -f $tmp/in |
7172 |
|
mv $tmp/out $tmp/in |
7173 |
|
' >>$CONFIG_STATUS |
7174 |
|
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
7175 |
|
rm -f conftest.undefs |
7176 |
|
mv conftest.tail conftest.undefs |
7177 |
|
done |
7178 |
|
rm -f conftest.undefs |
7179 |
|
|
7180 |
|
cat >>$CONFIG_STATUS <<\_ACEOF |
7181 |
|
# Let's still pretend it is `configure' which instantiates (i.e., don't |
7182 |
|
# use $as_me), people would be surprised to read: |
7183 |
|
# /* config.h. Generated by config.status. */ |
7184 |
|
if test x"$ac_file" = x-; then |
7185 |
|
echo "/* Generated by configure. */" >$tmp/config.h |
7186 |
|
else |
7187 |
|
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
7188 |
|
fi |
7189 |
|
cat $tmp/in >>$tmp/config.h |
7190 |
|
rm -f $tmp/in |
7191 |
|
if test x"$ac_file" != x-; then |
7192 |
|
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
7193 |
|
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
7194 |
|
echo "$as_me: $ac_file is unchanged" >&6;} |
7195 |
|
else |
7196 |
|
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
7197 |
|
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
7198 |
|
X"$ac_file" : 'X\(//\)[^/]' \| \ |
7199 |
|
X"$ac_file" : 'X\(//\)$' \| \ |
7200 |
|
X"$ac_file" : 'X\(/\)' \| \ |
7201 |
|
. : '\(.\)' 2>/dev/null || |
7202 |
|
echo X"$ac_file" | |
7203 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
7204 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
7205 |
|
/^X\(\/\/\)$/{ s//\1/; q; } |
7206 |
|
/^X\(\/\).*/{ s//\1/; q; } |
7207 |
|
s/.*/./; q'` |
7208 |
|
{ if $as_mkdir_p; then |
7209 |
|
mkdir -p "$ac_dir" |
7210 |
|
else |
7211 |
|
as_dir="$ac_dir" |
7212 |
|
as_dirs= |
7213 |
|
while test ! -d "$as_dir"; do |
7214 |
|
as_dirs="$as_dir $as_dirs" |
7215 |
|
as_dir=`(dirname "$as_dir") 2>/dev/null || |
7216 |
|
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
7217 |
|
X"$as_dir" : 'X\(//\)[^/]' \| \ |
7218 |
|
X"$as_dir" : 'X\(//\)$' \| \ |
7219 |
|
X"$as_dir" : 'X\(/\)' \| \ |
7220 |
|
. : '\(.\)' 2>/dev/null || |
7221 |
|
echo X"$as_dir" | |
7222 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
7223 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
7224 |
|
/^X\(\/\/\)$/{ s//\1/; q; } |
7225 |
|
/^X\(\/\).*/{ s//\1/; q; } |
7226 |
|
s/.*/./; q'` |
7227 |
|
done |
7228 |
|
test ! -n "$as_dirs" || mkdir $as_dirs |
7229 |
|
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
7230 |
|
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
7231 |
|
{ (exit 1); exit 1; }; }; } |
7232 |
|
|
7233 |
|
rm -f $ac_file |
7234 |
|
mv $tmp/config.h $ac_file |
7235 |
fi |
fi |
7236 |
rm -f $ac_file |
else |
7237 |
mv conftest.h $ac_file |
cat $tmp/config.h |
7238 |
|
rm -f $tmp/config.h |
7239 |
fi |
fi |
7240 |
fi; done |
done |
7241 |
|
_ACEOF |
7242 |
|
cat >>$CONFIG_STATUS <<\_ACEOF |
7243 |
|
|
7244 |
EOF |
# |
7245 |
cat >> $CONFIG_STATUS <<EOF |
# CONFIG_COMMANDS section. |
7246 |
srcdir=${srcdir} |
# |
7247 |
host=${host} |
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
7248 |
target=${target} |
ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
7249 |
with_target_subdir=${with_target_subdir} |
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
7250 |
with_multisubdir=${with_multisubdir} |
ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
7251 |
ac_configure_args="--enable-multilib ${ac_configure_args}" |
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
7252 |
CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
X"$ac_dest" : 'X\(//\)[^/]' \| \ |
7253 |
libiberty_topdir=${libiberty_topdir} |
X"$ac_dest" : 'X\(//\)$' \| \ |
7254 |
|
X"$ac_dest" : 'X\(/\)' \| \ |
7255 |
|
. : '\(.\)' 2>/dev/null || |
7256 |
|
echo X"$ac_dest" | |
7257 |
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
7258 |
|
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
7259 |
|
/^X\(\/\/\)$/{ s//\1/; q; } |
7260 |
|
/^X\(\/\).*/{ s//\1/; q; } |
7261 |
|
s/.*/./; q'` |
7262 |
|
ac_builddir=. |
7263 |
|
|
7264 |
|
if test "$ac_dir" != .; then |
7265 |
|
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
7266 |
|
# A "../" for each directory in $ac_dir_suffix. |
7267 |
|
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
7268 |
|
else |
7269 |
|
ac_dir_suffix= ac_top_builddir= |
7270 |
|
fi |
7271 |
|
|
7272 |
|
case $srcdir in |
7273 |
|
.) # No --srcdir option. We are building in place. |
7274 |
|
ac_srcdir=. |
7275 |
|
if test -z "$ac_top_builddir"; then |
7276 |
|
ac_top_srcdir=. |
7277 |
|
else |
7278 |
|
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
7279 |
|
fi ;; |
7280 |
|
[\\/]* | ?:[\\/]* ) # Absolute path. |
7281 |
|
ac_srcdir=$srcdir$ac_dir_suffix; |
7282 |
|
ac_top_srcdir=$srcdir ;; |
7283 |
|
*) # Relative path. |
7284 |
|
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
7285 |
|
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
7286 |
|
esac |
7287 |
|
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
7288 |
|
# absolute. |
7289 |
|
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
7290 |
|
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
7291 |
|
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
7292 |
|
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
7293 |
|
|
7294 |
EOF |
|
7295 |
cat >> $CONFIG_STATUS <<\EOF |
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
7296 |
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h |
echo "$as_me: executing $ac_dest commands" >&6;} |
7297 |
|
case $ac_dest in |
7298 |
|
default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h |
7299 |
if test -n "$CONFIG_FILES"; then |
if test -n "$CONFIG_FILES"; then |
7300 |
if test -n "${with_target_subdir}"; then |
if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then |
7301 |
# FIXME: We shouldn't need to set ac_file |
# FIXME: We shouldn't need to set ac_file |
7302 |
ac_file=Makefile |
ac_file=Makefile |
7303 |
|
LD="${ORIGINAL_LD_FOR_MULTILIBS}" |
7304 |
. ${libiberty_topdir}/config-ml.in |
. ${libiberty_topdir}/config-ml.in |
7305 |
fi |
fi |
7306 |
fi |
fi ;; |
7307 |
exit 0 |
esac |
7308 |
EOF |
done |
7309 |
|
_ACEOF |
7310 |
|
|
7311 |
|
cat >>$CONFIG_STATUS <<\_ACEOF |
7312 |
|
|
7313 |
|
{ (exit 0); exit 0; } |
7314 |
|
_ACEOF |
7315 |
chmod +x $CONFIG_STATUS |
chmod +x $CONFIG_STATUS |
7316 |
rm -fr confdefs* $ac_clean_files |
ac_clean_files=$ac_clean_files_save |
7317 |
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 |
|
7318 |
|
|
7319 |
|
# configure is writing to config.log, and then calls config.status. |
7320 |
|
# config.status does its own redirection, appending to config.log. |
7321 |
|
# Unfortunately, on DOS this fails, as config.log is still kept open |
7322 |
|
# by configure, so config.status won't be able to write to it; its |
7323 |
|
# output is simply discarded. So we exec the FD to /dev/null, |
7324 |
|
# effectively closing config.log, so it can be properly (re)opened and |
7325 |
|
# appended to by config.status. When coming back to configure, we |
7326 |
|
# need to make the FD available again. |
7327 |
|
if test "$no_create" != yes; then |
7328 |
|
ac_cs_success=: |
7329 |
|
ac_config_status_args= |
7330 |
|
test "$silent" = yes && |
7331 |
|
ac_config_status_args="$ac_config_status_args --quiet" |
7332 |
|
exec 5>/dev/null |
7333 |
|
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
7334 |
|
exec 5>>config.log |
7335 |
|
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
7336 |
|
# would make configure fail if this is the last instruction. |
7337 |
|
$ac_cs_success || { (exit 1); exit 1; } |
7338 |
|
fi |
7339 |
|
|