]>
Commit | Line | Data |
---|---|---|
1 | #! /bin/sh | |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.57 for package-unused version-unused. | |
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 | |
8 | # 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 | as_executable_p="test -f" | |
225 | ||
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 | |
254 | ac_config_libobj_dir=. | |
255 | cross_compiling=no | |
256 | subdirs= | |
257 | MFLAGS= | |
258 | MAKEFLAGS= | |
259 | SHELL=${CONFIG_SHELL-/bin/sh} | |
260 | ||
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='package-unused' | |
268 | PACKAGE_TARNAME='libstdc++' | |
269 | PACKAGE_VERSION='version-unused' | |
270 | PACKAGE_STRING='package-unused version-unused' | |
271 | PACKAGE_BUGREPORT='' | |
272 | ||
273 | ac_unique_file="src/ios.cc" | |
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 libtool_VERSION multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot glibcxx_builddir glibcxx_srcdir toplevel_srcdir CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LN_S AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOL CXXCPP CPPFLAGS enable_shared enable_static GLIBCXX_HOSTED_TRUE GLIBCXX_HOSTED_FALSE GLIBCXX_BUILD_PCH_TRUE GLIBCXX_BUILD_PCH_FALSE glibcxx_PCHFLAGS CSTDIO_H BASIC_FILE_H BASIC_FILE_CC CPP EGREP check_msgfmt glibcxx_MOFILES glibcxx_POFILES glibcxx_localedir USE_NLS CLOCALE_H CCODECVT_H CMESSAGES_H CCODECVT_CC CCOLLATE_CC CCTYPE_CC CMESSAGES_CC CMONEY_CC CNUMERIC_CC CTIME_H CTIME_CC CLOCALE_CC CLOCALE_INTERNAL_H C_INCLUDE_DIR GLIBCXX_C_HEADERS_C_TRUE GLIBCXX_C_HEADERS_C_FALSE GLIBCXX_C_HEADERS_C_STD_TRUE GLIBCXX_C_HEADERS_C_STD_FALSE GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE glibcxx_thread_h DEBUG_FLAGS GLIBCXX_BUILD_DEBUG_TRUE GLIBCXX_BUILD_DEBUG_FALSE EXTRA_CXX_FLAGS WERROR SECTION_FLAGS SECTION_LDFLAGS OPT_LDFLAGS LIBMATHOBJS SYMVER_MAP port_specific_symbol_files GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE GLIBCXX_BUILD_VERSIONED_SHLIB_FALSE baseline_dir GLIBCXX_TEST_WCHAR_T_TRUE GLIBCXX_TEST_WCHAR_T_FALSE GLIBCXX_TEST_ABI_TRUE GLIBCXX_TEST_ABI_FALSE ATOMICITY_INC_SRCDIR OS_INC_SRCDIR glibcxx_prefixdir gxx_include_dir glibcxx_toolexecdir glibcxx_toolexeclibdir GLIBCXX_INCLUDES TOPLEVEL_INCLUDES OPTIMIZE_CXXFLAGS WARN_FLAGS LIBSUPCXX_PICFLAGS LIBOBJS LTLIBOBJS' | |
312 | ac_subst_files='' | |
313 | ||
314 | # 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 | |
318 | # dashes changed to underlines. | |
319 | cache_file=/dev/null | |
320 | exec_prefix=NONE | |
321 | no_create= | |
322 | no_recursion= | |
323 | prefix=NONE | |
324 | program_prefix=NONE | |
325 | program_suffix=NONE | |
326 | program_transform_name=s,x,x, | |
327 | silent= | |
328 | site= | |
329 | srcdir= | |
330 | verbose= | |
331 | x_includes=NONE | |
332 | 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' | |
340 | sbindir='${exec_prefix}/sbin' | |
341 | libexecdir='${exec_prefix}/libexec' | |
342 | datadir='${prefix}/share' | |
343 | sysconfdir='${prefix}/etc' | |
344 | sharedstatedir='${prefix}/com' | |
345 | localstatedir='${prefix}/var' | |
346 | libdir='${exec_prefix}/lib' | |
347 | includedir='${prefix}/include' | |
348 | oldincludedir='/usr/include' | |
349 | infodir='${prefix}/info' | |
350 | mandir='${prefix}/man' | |
351 | ||
352 | ac_prev= | |
353 | for ac_option | |
354 | do | |
355 | # If the previous option needs an argument, assign it. | |
356 | if test -n "$ac_prev"; then | |
357 | eval "$ac_prev=\$ac_option" | |
358 | ac_prev= | |
359 | continue | |
360 | fi | |
361 | ||
362 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
363 | ||
364 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
365 | ||
366 | case $ac_option in | |
367 | ||
368 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
369 | ac_prev=bindir ;; | |
370 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
371 | bindir=$ac_optarg ;; | |
372 | ||
373 | -build | --build | --buil | --bui | --bu) | |
374 | ac_prev=build_alias ;; | |
375 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
376 | build_alias=$ac_optarg ;; | |
377 | ||
378 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
379 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
380 | ac_prev=cache_file ;; | |
381 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
382 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
383 | cache_file=$ac_optarg ;; | |
384 | ||
385 | --config-cache | -C) | |
386 | cache_file=config.cache ;; | |
387 | ||
388 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
389 | ac_prev=datadir ;; | |
390 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
391 | | --da=*) | |
392 | datadir=$ac_optarg ;; | |
393 | ||
394 | -disable-* | --disable-*) | |
395 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
396 | # Reject names that are not valid shell variable names. | |
397 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
398 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
399 | { (exit 1); exit 1; }; } | |
400 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
401 | eval "enable_$ac_feature=no" ;; | |
402 | ||
403 | -enable-* | --enable-*) | |
404 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
405 | # Reject names that are not valid shell variable names. | |
406 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
407 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
408 | { (exit 1); exit 1; }; } | |
409 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
410 | case $ac_option in | |
411 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
412 | *) ac_optarg=yes ;; | |
413 | esac | |
414 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
415 | ||
416 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
417 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
418 | | --exec | --exe | --ex) | |
419 | ac_prev=exec_prefix ;; | |
420 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
421 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
422 | | --exec=* | --exe=* | --ex=*) | |
423 | exec_prefix=$ac_optarg ;; | |
424 | ||
425 | -gas | --gas | --ga | --g) | |
426 | # Obsolete; use --with-gas. | |
427 | with_gas=yes ;; | |
428 | ||
429 | -help | --help | --hel | --he | -h) | |
430 | ac_init_help=long ;; | |
431 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
432 | ac_init_help=recursive ;; | |
433 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
434 | ac_init_help=short ;; | |
435 | ||
436 | -host | --host | --hos | --ho) | |
437 | ac_prev=host_alias ;; | |
438 | -host=* | --host=* | --hos=* | --ho=*) | |
439 | host_alias=$ac_optarg ;; | |
440 | ||
441 | -includedir | --includedir | --includedi | --included | --include \ | |
442 | | --includ | --inclu | --incl | --inc) | |
443 | ac_prev=includedir ;; | |
444 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
445 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
446 | includedir=$ac_optarg ;; | |
447 | ||
448 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
449 | ac_prev=infodir ;; | |
450 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
451 | infodir=$ac_optarg ;; | |
452 | ||
453 | -libdir | --libdir | --libdi | --libd) | |
454 | ac_prev=libdir ;; | |
455 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
456 | libdir=$ac_optarg ;; | |
457 | ||
458 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
459 | | --libexe | --libex | --libe) | |
460 | ac_prev=libexecdir ;; | |
461 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
462 | | --libexe=* | --libex=* | --libe=*) | |
463 | libexecdir=$ac_optarg ;; | |
464 | ||
465 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
466 | | --localstate | --localstat | --localsta | --localst \ | |
467 | | --locals | --local | --loca | --loc | --lo) | |
468 | ac_prev=localstatedir ;; | |
469 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
470 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
471 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
472 | localstatedir=$ac_optarg ;; | |
473 | ||
474 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
475 | ac_prev=mandir ;; | |
476 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
477 | mandir=$ac_optarg ;; | |
478 | ||
479 | -nfp | --nfp | --nf) | |
480 | # Obsolete; use --without-fp. | |
481 | with_fp=no ;; | |
482 | ||
483 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
484 | | --no-cr | --no-c | -n) | |
485 | no_create=yes ;; | |
486 | ||
487 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
488 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
489 | no_recursion=yes ;; | |
490 | ||
491 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
492 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
493 | | --oldin | --oldi | --old | --ol | --o) | |
494 | ac_prev=oldincludedir ;; | |
495 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
496 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
497 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
498 | oldincludedir=$ac_optarg ;; | |
499 | ||
500 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
501 | ac_prev=prefix ;; | |
502 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
503 | prefix=$ac_optarg ;; | |
504 | ||
505 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
506 | | --program-pre | --program-pr | --program-p) | |
507 | ac_prev=program_prefix ;; | |
508 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
509 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
510 | program_prefix=$ac_optarg ;; | |
511 | ||
512 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
513 | | --program-suf | --program-su | --program-s) | |
514 | ac_prev=program_suffix ;; | |
515 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
516 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
517 | program_suffix=$ac_optarg ;; | |
518 | ||
519 | -program-transform-name | --program-transform-name \ | |
520 | | --program-transform-nam | --program-transform-na \ | |
521 | | --program-transform-n | --program-transform- \ | |
522 | | --program-transform | --program-transfor \ | |
523 | | --program-transfo | --program-transf \ | |
524 | | --program-trans | --program-tran \ | |
525 | | --progr-tra | --program-tr | --program-t) | |
526 | ac_prev=program_transform_name ;; | |
527 | -program-transform-name=* | --program-transform-name=* \ | |
528 | | --program-transform-nam=* | --program-transform-na=* \ | |
529 | | --program-transform-n=* | --program-transform-=* \ | |
530 | | --program-transform=* | --program-transfor=* \ | |
531 | | --program-transfo=* | --program-transf=* \ | |
532 | | --program-trans=* | --program-tran=* \ | |
533 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
534 | program_transform_name=$ac_optarg ;; | |
535 | ||
536 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
537 | | -silent | --silent | --silen | --sile | --sil) | |
538 | silent=yes ;; | |
539 | ||
540 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
541 | ac_prev=sbindir ;; | |
542 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
543 | | --sbi=* | --sb=*) | |
544 | sbindir=$ac_optarg ;; | |
545 | ||
546 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
547 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
548 | | --sharedst | --shareds | --shared | --share | --shar \ | |
549 | | --sha | --sh) | |
550 | ac_prev=sharedstatedir ;; | |
551 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
552 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
553 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
554 | | --sha=* | --sh=*) | |
555 | sharedstatedir=$ac_optarg ;; | |
556 | ||
557 | -site | --site | --sit) | |
558 | ac_prev=site ;; | |
559 | -site=* | --site=* | --sit=*) | |
560 | site=$ac_optarg ;; | |
561 | ||
562 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
563 | ac_prev=srcdir ;; | |
564 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
565 | srcdir=$ac_optarg ;; | |
566 | ||
567 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
568 | | --syscon | --sysco | --sysc | --sys | --sy) | |
569 | ac_prev=sysconfdir ;; | |
570 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
571 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
572 | sysconfdir=$ac_optarg ;; | |
573 | ||
574 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
575 | ac_prev=target_alias ;; | |
576 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
577 | target_alias=$ac_optarg ;; | |
578 | ||
579 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
580 | verbose=yes ;; | |
581 | ||
582 | -version | --version | --versio | --versi | --vers | -V) | |
583 | ac_init_version=: ;; | |
584 | ||
585 | -with-* | --with-*) | |
586 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
587 | # Reject names that are not valid shell variable names. | |
588 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
589 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
590 | { (exit 1); exit 1; }; } | |
591 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
592 | case $ac_option in | |
593 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
594 | *) ac_optarg=yes ;; | |
595 | esac | |
596 | eval "with_$ac_package='$ac_optarg'" ;; | |
597 | ||
598 | -without-* | --without-*) | |
599 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
600 | # Reject names that are not valid shell variable names. | |
601 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
602 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
603 | { (exit 1); exit 1; }; } | |
604 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
605 | eval "with_$ac_package=no" ;; | |
606 | ||
607 | --x) | |
608 | # Obsolete; use --with-x. | |
609 | with_x=yes ;; | |
610 | ||
611 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
612 | | --x-incl | --x-inc | --x-in | --x-i) | |
613 | ac_prev=x_includes ;; | |
614 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
615 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
616 | x_includes=$ac_optarg ;; | |
617 | ||
618 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
619 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
620 | ac_prev=x_libraries ;; | |
621 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
622 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
623 | x_libraries=$ac_optarg ;; | |
624 | ||
625 | -*) { 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 | # FIXME: should be removed in autoconf 3.0. | |
642 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
643 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
644 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
645 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
646 | ;; | |
647 | ||
648 | esac | |
649 | done | |
650 | ||
651 | if test -n "$ac_prev"; then | |
652 | 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 | |
656 | ||
657 | # Be sure to have absolute paths. | |
658 | for ac_var in exec_prefix prefix | |
659 | do | |
660 | eval ac_val=$`echo $ac_var` | |
661 | case $ac_val in | |
662 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
663 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
664 | { (exit 1); exit 1; }; };; | |
665 | esac | |
666 | done | |
667 | ||
668 | # Be sure to have absolute paths. | |
669 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
670 | localstatedir libdir includedir oldincludedir infodir mandir | |
671 | do | |
672 | eval ac_val=$`echo $ac_var` | |
673 | case $ac_val in | |
674 | [\\/$]* | ?:[\\/]* ) ;; | |
675 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
676 | { (exit 1); exit 1; }; };; | |
677 | esac | |
678 | done | |
679 | ||
680 | # There might be people who depend on the old broken behavior: `$host' | |
681 | # used to hold the argument of --host etc. | |
682 | # FIXME: To remove some day. | |
683 | build=$build_alias | |
684 | host=$host_alias | |
685 | target=$target_alias | |
686 | ||
687 | # FIXME: To remove some day. | |
688 | 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 | ac_tool_prefix= | |
699 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
700 | ||
701 | test "$silent" = yes && exec 6>/dev/null | |
702 | ||
703 | ||
704 | # Find the source files, if location was not specified. | |
705 | if test -z "$srcdir"; then | |
706 | ac_srcdir_defaulted=yes | |
707 | # Try the directory containing this script, then its parent. | |
708 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
709 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
710 | 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 | |
721 | if test ! -r $srcdir/$ac_unique_file; then | |
722 | srcdir=.. | |
723 | fi | |
724 | else | |
725 | ac_srcdir_defaulted=no | |
726 | fi | |
727 | if test ! -r $srcdir/$ac_unique_file; then | |
728 | if test "$ac_srcdir_defaulted" = yes; then | |
729 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
730 | { (exit 1); exit 1; }; } | |
731 | else | |
732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
733 | { (exit 1); exit 1; }; } | |
734 | fi | |
735 | fi | |
736 | (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_CXXCPP_set=${CXXCPP+set} | |
753 | ac_env_CXXCPP_value=$CXXCPP | |
754 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
755 | ac_cv_env_CXXCPP_value=$CXXCPP | |
756 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
757 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
758 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
759 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
760 | ac_env_CPP_set=${CPP+set} | |
761 | ac_env_CPP_value=$CPP | |
762 | ac_cv_env_CPP_set=${CPP+set} | |
763 | ac_cv_env_CPP_value=$CPP | |
764 | ||
765 | # | |
766 | # Report the --help message. | |
767 | # | |
768 | if test "$ac_init_help" = "long"; then | |
769 | # Omit some internal or obsolete options to make the list less imposing. | |
770 | # This message is too long to be a string in the A/UX 3.1 sh. | |
771 | cat <<_ACEOF | |
772 | \`configure' configures package-unused version-unused to adapt to many kinds of systems. | |
773 | ||
774 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
775 | ||
776 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
777 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
778 | ||
779 | Defaults for the options are specified in brackets. | |
780 | ||
781 | Configuration: | |
782 | -h, --help display this help and exit | |
783 | --help=short display options specific to this package | |
784 | --help=recursive display the short help of all the included packages | |
785 | -V, --version display version information and exit | |
786 | -q, --quiet, --silent do not print \`checking...' messages | |
787 | --cache-file=FILE cache test results in FILE [disabled] | |
788 | -C, --config-cache alias for \`--cache-file=config.cache' | |
789 | -n, --no-create do not create output files | |
790 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
791 | ||
792 | _ACEOF | |
793 | ||
794 | cat <<_ACEOF | |
795 | Installation directories: | |
796 | --prefix=PREFIX install architecture-independent files in PREFIX | |
797 | [$ac_default_prefix] | |
798 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
799 | [PREFIX] | |
800 | ||
801 | By default, \`make install' will install all the files in | |
802 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
803 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
804 | for instance \`--prefix=\$HOME'. | |
805 | ||
806 | For better control, use the options below. | |
807 | ||
808 | Fine tuning of the installation directories: | |
809 | --bindir=DIR user executables [EPREFIX/bin] | |
810 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
811 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
812 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
813 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
814 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
815 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
816 | --libdir=DIR object code libraries [EPREFIX/lib] | |
817 | --includedir=DIR C header files [PREFIX/include] | |
818 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
819 | --infodir=DIR info documentation [PREFIX/info] | |
820 | --mandir=DIR man documentation [PREFIX/man] | |
821 | _ACEOF | |
822 | ||
823 | cat <<\_ACEOF | |
824 | ||
825 | Program names: | |
826 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
827 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
828 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
829 | ||
830 | System types: | |
831 | --build=BUILD configure for building on BUILD [guessed] | |
832 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
833 | --target=TARGET configure for building compilers for TARGET [HOST] | |
834 | _ACEOF | |
835 | fi | |
836 | ||
837 | if test -n "$ac_init_help"; then | |
838 | case $ac_init_help in | |
839 | short | recursive ) echo "Configuration of package-unused version-unused:";; | |
840 | esac | |
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-multilib build many library versions (default) | |
847 | --enable-maintainer-mode enable make rules and dependencies not useful | |
848 | (and sometimes confusing) to the casual installer | |
849 | --enable-shared=PKGS build shared libraries default=yes | |
850 | --enable-static=PKGS build static libraries default=yes | |
851 | --enable-fast-install=PKGS optimize for fast installation default=yes | |
852 | --disable-libtool-lock avoid locking (might break parallel builds) | |
853 | --disable-hosted-libstdcxx | |
854 | only build freestanding C++ runtime support | |
855 | --enable-sjlj-exceptions | |
856 | force use of builtin_setjmp for exceptions | |
857 | [default=auto] | |
858 | --enable-libstdcxx-pch build pre-compiled libstdc++ headers | |
859 | [default=$is_hosted] | |
860 | --enable-cstdio=PACKAGE use target-specific I/O package | |
861 | [default=stdio] | |
862 | --enable-clocale[=MODEL] | |
863 | use MODEL for target locale package | |
864 | [default=auto] | |
865 | --enable-nls use Native Language Support (default) | |
866 | --enable-cheaders=KIND construct "C" headers for g++ | |
867 | [default=$c_model] | |
868 | --enable-c-mbchar enable multibyte (wide) characters | |
869 | [default=yes] | |
870 | --enable-c99 turns on ISO/IEC 9899:1999 support | |
871 | [default=yes] | |
872 | --enable-long-long enables I/O support for 'long long' | |
873 | [default=yes] | |
874 | --enable-concept-checks use Boost-derived template checks [default=no] | |
875 | --enable-libstdcxx-debug-flags=FLAGS | |
876 | pass compiler FLAGS when building debug library | |
877 | [default="-g3 -O0"] | |
878 | --enable-libstdcxx-debug | |
879 | build extra debug library [default=no] | |
880 | --enable-cxx-flags=FLAGS | |
881 | pass compiler FLAGS when building library | |
882 | [default=] | |
883 | --enable-symvers=STYLE enables symbol versioning of the shared library | |
884 | [default=yes] | |
885 | --enable-version-specific-runtime-libs | |
886 | Specify that runtime libraries should be installed | |
887 | in a compiler-specific directory | |
888 | ||
889 | Optional Packages: | |
890 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
891 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
892 | --with-target-subdir=SUBDIR | |
893 | configuring in a subdirectory | |
894 | --with-cross-host=HOST configuring with a cross compiler | |
895 | --with-newlib assume newlib as a system C library | |
896 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
897 | --with-pic try to use only PIC/non-PIC objects default=use both | |
898 | --with-gxx-include-dir=DIR | |
899 | installation directory for include files | |
900 | ||
901 | Some influential environment variables: | |
902 | CC C compiler command | |
903 | CFLAGS C compiler flags | |
904 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
905 | nonstandard directory <lib dir> | |
906 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
907 | headers in a nonstandard directory <include dir> | |
908 | CXX C++ compiler command | |
909 | CXXFLAGS C++ compiler flags | |
910 | CXXCPP C++ preprocessor | |
911 | CPP C preprocessor | |
912 | ||
913 | Use these variables to override the choices made by `configure' or to help | |
914 | it to find libraries and programs with nonstandard names/locations. | |
915 | ||
916 | _ACEOF | |
917 | fi | |
918 | ||
919 | if test "$ac_init_help" = "recursive"; then | |
920 | # If there are subdirs, report their specific --help. | |
921 | ac_popdir=`pwd` | |
922 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
923 | test -d $ac_dir || continue | |
924 | ac_builddir=. | |
925 | ||
926 | if test "$ac_dir" != .; then | |
927 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
928 | # A "../" for each directory in $ac_dir_suffix. | |
929 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
930 | else | |
931 | ac_dir_suffix= ac_top_builddir= | |
932 | fi | |
933 | ||
934 | case $srcdir in | |
935 | .) # No --srcdir option. We are building in place. | |
936 | ac_srcdir=. | |
937 | if test -z "$ac_top_builddir"; then | |
938 | ac_top_srcdir=. | |
939 | else | |
940 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
941 | fi ;; | |
942 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
943 | ac_srcdir=$srcdir$ac_dir_suffix; | |
944 | ac_top_srcdir=$srcdir ;; | |
945 | *) # Relative path. | |
946 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
947 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
948 | esac | |
949 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
950 | # absolute. | |
951 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
952 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
953 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
954 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
955 | ||
956 | cd $ac_dir | |
957 | # Check for guested configure; otherwise get Cygnus style configure. | |
958 | if test -f $ac_srcdir/configure.gnu; then | |
959 | echo | |
960 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
961 | elif test -f $ac_srcdir/configure; then | |
962 | echo | |
963 | $SHELL $ac_srcdir/configure --help=recursive | |
964 | elif test -f $ac_srcdir/configure.ac || | |
965 | test -f $ac_srcdir/configure.in; then | |
966 | echo | |
967 | $ac_configure --help | |
968 | else | |
969 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
970 | fi | |
971 | cd $ac_popdir | |
972 | done | |
973 | fi | |
974 | ||
975 | test -n "$ac_init_help" && exit 0 | |
976 | if $ac_init_version; then | |
977 | cat <<\_ACEOF | |
978 | package-unused configure version-unused | |
979 | generated by GNU Autoconf 2.57 | |
980 | ||
981 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | |
982 | Free Software Foundation, Inc. | |
983 | This configure script is free software; the Free Software Foundation | |
984 | gives unlimited permission to copy, distribute and modify it. | |
985 | _ACEOF | |
986 | exit 0 | |
987 | fi | |
988 | exec 5>config.log | |
989 | cat >&5 <<_ACEOF | |
990 | This file contains any messages produced by compilers while | |
991 | running configure, to aid debugging if configure makes a mistake. | |
992 | ||
993 | It was created by package-unused $as_me version-unused, which was | |
994 | generated by GNU Autoconf 2.57. Invocation command line was | |
995 | ||
996 | $ $0 $@ | |
997 | ||
998 | _ACEOF | |
999 | { | |
1000 | cat <<_ASUNAME | |
1001 | ## --------- ## | |
1002 | ## Platform. ## | |
1003 | ## --------- ## | |
1004 | ||
1005 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1006 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1007 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1008 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1009 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1010 | ||
1011 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1012 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1013 | ||
1014 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1015 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1016 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1017 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1018 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1019 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1020 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1021 | ||
1022 | _ASUNAME | |
1023 | ||
1024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1025 | for as_dir in $PATH | |
1026 | do | |
1027 | IFS=$as_save_IFS | |
1028 | test -z "$as_dir" && as_dir=. | |
1029 | echo "PATH: $as_dir" | |
1030 | done | |
1031 | ||
1032 | } >&5 | |
1033 | ||
1034 | cat >&5 <<_ACEOF | |
1035 | ||
1036 | ||
1037 | ## ----------- ## | |
1038 | ## Core tests. ## | |
1039 | ## ----------- ## | |
1040 | ||
1041 | _ACEOF | |
1042 | ||
1043 | ||
1044 | # Keep a trace of the command line. | |
1045 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1046 | # Strip out --silent because we don't want to record it for future runs. | |
1047 | # Also quote any args containing shell meta-characters. | |
1048 | # Make two passes to allow for proper duplicate-argument suppression. | |
1049 | ac_configure_args= | |
1050 | ac_configure_args0= | |
1051 | ac_configure_args1= | |
1052 | ac_sep= | |
1053 | ac_must_keep_next=false | |
1054 | for ac_pass in 1 2 | |
1055 | do | |
1056 | for ac_arg | |
1057 | do | |
1058 | case $ac_arg in | |
1059 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1060 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1061 | | -silent | --silent | --silen | --sile | --sil) | |
1062 | continue ;; | |
1063 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1064 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1065 | esac | |
1066 | case $ac_pass in | |
1067 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1068 | 2) | |
1069 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1070 | if test $ac_must_keep_next = true; then | |
1071 | ac_must_keep_next=false # Got value, back to normal. | |
1072 | else | |
1073 | case $ac_arg in | |
1074 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1075 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1076 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1077 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1078 | case "$ac_configure_args0 " in | |
1079 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1080 | esac | |
1081 | ;; | |
1082 | -* ) ac_must_keep_next=true ;; | |
1083 | esac | |
1084 | fi | |
1085 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1086 | # Get rid of the leading space. | |
1087 | ac_sep=" " | |
1088 | ;; | |
1089 | esac | |
1090 | done | |
1091 | done | |
1092 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1093 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1094 | ||
1095 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1096 | # config.log. We remove comments because anyway the quotes in there | |
1097 | # would cause problems or look ugly. | |
1098 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1099 | # such as our DU 5.0 friend, will then `close' the trap. | |
1100 | trap 'exit_status=$? | |
1101 | # Save into config.log some information that might help in debugging. | |
1102 | { | |
1103 | echo | |
1104 | ||
1105 | cat <<\_ASBOX | |
1106 | ## ---------------- ## | |
1107 | ## Cache variables. ## | |
1108 | ## ---------------- ## | |
1109 | _ASBOX | |
1110 | echo | |
1111 | # The following way of writing the cache mishandles newlines in values, | |
1112 | { | |
1113 | (set) 2>&1 | | |
1114 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1115 | *ac_space=\ *) | |
1116 | sed -n \ | |
1117 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1118 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1119 | ;; | |
1120 | *) | |
1121 | sed -n \ | |
1122 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1123 | ;; | |
1124 | esac; | |
1125 | } | |
1126 | echo | |
1127 | ||
1128 | cat <<\_ASBOX | |
1129 | ## ----------------- ## | |
1130 | ## Output variables. ## | |
1131 | ## ----------------- ## | |
1132 | _ASBOX | |
1133 | echo | |
1134 | for ac_var in $ac_subst_vars | |
1135 | do | |
1136 | eval ac_val=$`echo $ac_var` | |
1137 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1138 | done | sort | |
1139 | echo | |
1140 | ||
1141 | if test -n "$ac_subst_files"; then | |
1142 | cat <<\_ASBOX | |
1143 | ## ------------- ## | |
1144 | ## Output files. ## | |
1145 | ## ------------- ## | |
1146 | _ASBOX | |
1147 | echo | |
1148 | for ac_var in $ac_subst_files | |
1149 | do | |
1150 | eval ac_val=$`echo $ac_var` | |
1151 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1152 | done | sort | |
1153 | echo | |
1154 | fi | |
1155 | ||
1156 | if test -s confdefs.h; then | |
1157 | cat <<\_ASBOX | |
1158 | ## ----------- ## | |
1159 | ## confdefs.h. ## | |
1160 | ## ----------- ## | |
1161 | _ASBOX | |
1162 | echo | |
1163 | sed "/^$/d" confdefs.h | sort | |
1164 | echo | |
1165 | fi | |
1166 | test "$ac_signal" != 0 && | |
1167 | echo "$as_me: caught signal $ac_signal" | |
1168 | echo "$as_me: exit $exit_status" | |
1169 | } >&5 | |
1170 | rm -f core core.* *.core && | |
1171 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1172 | exit $exit_status | |
1173 | ' 0 | |
1174 | for ac_signal in 1 2 13 15; do | |
1175 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1176 | done | |
1177 | ac_signal=0 | |
1178 | ||
1179 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1180 | rm -rf conftest* confdefs.h | |
1181 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1182 | echo >confdefs.h | |
1183 | ||
1184 | # Predefined preprocessor variables. | |
1185 | ||
1186 | cat >>confdefs.h <<_ACEOF | |
1187 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1188 | _ACEOF | |
1189 | ||
1190 | ||
1191 | cat >>confdefs.h <<_ACEOF | |
1192 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1193 | _ACEOF | |
1194 | ||
1195 | ||
1196 | cat >>confdefs.h <<_ACEOF | |
1197 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1198 | _ACEOF | |
1199 | ||
1200 | ||
1201 | cat >>confdefs.h <<_ACEOF | |
1202 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1203 | _ACEOF | |
1204 | ||
1205 | ||
1206 | cat >>confdefs.h <<_ACEOF | |
1207 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1208 | _ACEOF | |
1209 | ||
1210 | ||
1211 | # Let the site file select an alternate cache file if it wants to. | |
1212 | # Prefer explicitly selected file to automatically selected ones. | |
1213 | if test -z "$CONFIG_SITE"; then | |
1214 | if test "x$prefix" != xNONE; then | |
1215 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1216 | else | |
1217 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1218 | fi | |
1219 | fi | |
1220 | for ac_site_file in $CONFIG_SITE; do | |
1221 | if test -r "$ac_site_file"; then | |
1222 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1223 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1224 | sed 's/^/| /' "$ac_site_file" >&5 | |
1225 | . "$ac_site_file" | |
1226 | fi | |
1227 | done | |
1228 | ||
1229 | if test -r "$cache_file"; then | |
1230 | # Some versions of bash will fail to source /dev/null (special | |
1231 | # files actually), so we avoid doing that. | |
1232 | if test -f "$cache_file"; then | |
1233 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1234 | echo "$as_me: loading cache $cache_file" >&6;} | |
1235 | case $cache_file in | |
1236 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1237 | *) . ./$cache_file;; | |
1238 | esac | |
1239 | fi | |
1240 | else | |
1241 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1242 | echo "$as_me: creating cache $cache_file" >&6;} | |
1243 | >$cache_file | |
1244 | fi | |
1245 | ||
1246 | # Check that the precious variables saved in the cache have kept the same | |
1247 | # value. | |
1248 | ac_cache_corrupted=false | |
1249 | for ac_var in `(set) 2>&1 | | |
1250 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1251 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1252 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1253 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1254 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1255 | case $ac_old_set,$ac_new_set in | |
1256 | set,) | |
1257 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1258 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1259 | ac_cache_corrupted=: ;; | |
1260 | ,set) | |
1261 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1262 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1263 | ac_cache_corrupted=: ;; | |
1264 | ,);; | |
1265 | *) | |
1266 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1267 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1268 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1269 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1270 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1271 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1272 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1273 | ac_cache_corrupted=: | |
1274 | fi;; | |
1275 | esac | |
1276 | # Pass precious variables to config.status. | |
1277 | if test "$ac_new_set" = set; then | |
1278 | case $ac_new_val in | |
1279 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1280 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1281 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1282 | esac | |
1283 | case " $ac_configure_args " in | |
1284 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1285 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1286 | esac | |
1287 | fi | |
1288 | done | |
1289 | if $ac_cache_corrupted; then | |
1290 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1291 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1292 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1293 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1294 | { (exit 1); exit 1; }; } | |
1295 | fi | |
1296 | ||
1297 | ac_ext=c | |
1298 | ac_cpp='$CPP $CPPFLAGS' | |
1299 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1300 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1301 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1302 | ||
1303 | ||
1304 | ||
1305 | ||
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
1324 | ||
1325 | ||
1326 | ||
1327 | ||
1328 | ||
1329 | ||
1330 | ac_config_headers="$ac_config_headers config.h" | |
1331 | ||
1332 | ||
1333 | # This works around the fact that libtool configuration may change LD | |
1334 | # for this particular configuration, but some shells, instead of | |
1335 | # keeping the changes in LD private, export them just because LD is | |
1336 | # exported. Only used at the end of this file. | |
1337 | ### am handles this now? ORIGINAL_LD_FOR_MULTILIBS=$LD | |
1338 | ||
1339 | # For libtool versioning info, format is CURRENT:REVISION:AGE | |
1340 | libtool_VERSION=6:0:0 | |
1341 | ||
1342 | ||
1343 | # Find the rest of the source tree framework. | |
1344 | ||
1345 | # Sets up multi_basedir, which is srcdir/.. plus the usual | |
1346 | # "multi_source_toprel_bottom_adjust" lunacy as needed. | |
1347 | # Default to --enable-multilib | |
1348 | # Check whether --enable-multilib or --disable-multilib was given. | |
1349 | if test "${enable_multilib+set}" = set; then | |
1350 | enableval="$enable_multilib" | |
1351 | case "$enableval" in | |
1352 | yes) multilib=yes ;; | |
1353 | no) multilib=no ;; | |
1354 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5 | |
1355 | echo "$as_me: error: bad value $enableval for multilib option" >&2;} | |
1356 | { (exit 1); exit 1; }; } ;; | |
1357 | esac | |
1358 | else | |
1359 | multilib=yes | |
1360 | fi; | |
1361 | ||
1362 | # We may get other options which we leave undocumented: | |
1363 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
1364 | # See config-ml.in if you want the gory details. | |
1365 | ||
1366 | if test "$srcdir" = "."; then | |
1367 | if test "$with_target_subdir" != "."; then | |
1368 | multi_basedir="$srcdir/$with_multisrctop../.." | |
1369 | else | |
1370 | multi_basedir="$srcdir/$with_multisrctop.." | |
1371 | fi | |
1372 | else | |
1373 | multi_basedir="$srcdir/.." | |
1374 | fi | |
1375 | ||
1376 | ||
1377 | ac_config_commands="$ac_config_commands default-1" | |
1378 | ||
1379 | ||
1380 | # The generated code is exactly the same, except that automake's looks in | |
1381 | # ".. $srcdir/.." and autoconf's looks in multi_basedir. Apparently other | |
1382 | # things are triggered on the presence of the two ...AUX_DIR[S], but I don't | |
1383 | # know what they are or what the other differences might be (and they keep | |
1384 | # changing anyhow). | |
1385 | # | |
1386 | # Looking in multi_basedir seems smarter, so actually execute that branch. | |
1387 | if false; then | |
1388 | # this is for automake | |
1389 | ac_aux_dir= | |
1390 | for ac_dir in .. $srcdir/..; do | |
1391 | if test -f $ac_dir/install-sh; then | |
1392 | ac_aux_dir=$ac_dir | |
1393 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1394 | break | |
1395 | elif test -f $ac_dir/install.sh; then | |
1396 | ac_aux_dir=$ac_dir | |
1397 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1398 | break | |
1399 | elif test -f $ac_dir/shtool; then | |
1400 | ac_aux_dir=$ac_dir | |
1401 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1402 | break | |
1403 | fi | |
1404 | done | |
1405 | if test -z "$ac_aux_dir"; then | |
1406 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5 | |
1407 | echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;} | |
1408 | { (exit 1); exit 1; }; } | |
1409 | fi | |
1410 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1411 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1412 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1413 | ||
1414 | else | |
1415 | # this is for autoconf | |
1416 | ac_aux_dir= | |
1417 | for ac_dir in ${multi_basedir}; do | |
1418 | if test -f $ac_dir/install-sh; then | |
1419 | ac_aux_dir=$ac_dir | |
1420 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1421 | break | |
1422 | elif test -f $ac_dir/install.sh; then | |
1423 | ac_aux_dir=$ac_dir | |
1424 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1425 | break | |
1426 | elif test -f $ac_dir/shtool; then | |
1427 | ac_aux_dir=$ac_dir | |
1428 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1429 | break | |
1430 | fi | |
1431 | done | |
1432 | if test -z "$ac_aux_dir"; then | |
1433 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${multi_basedir}" >&5 | |
1434 | echo "$as_me: error: cannot find install-sh or install.sh in ${multi_basedir}" >&2;} | |
1435 | { (exit 1); exit 1; }; } | |
1436 | fi | |
1437 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1438 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1439 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1440 | ||
1441 | fi | |
1442 | ||
1443 | ||
1444 | ||
1445 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. | |
1446 | # | |
1447 | # You will slowly go insane if you do not grok the following fact: when | |
1448 | # building v3 as part of the compiler, the top-level /target/ becomes the | |
1449 | # library's /host/. configure then causes --target to default to --host, | |
1450 | # exactly like any other package using autoconf. Therefore, 'target' and | |
1451 | # 'host' will always be the same. This makes sense both for native and | |
1452 | # cross compilers, just think about it for a little while. :-) | |
1453 | # | |
1454 | # Also, if v3 is being configured as part of a cross compiler, the top-level | |
1455 | # configure script will pass the "real" host as $with_cross_host. | |
1456 | # | |
1457 | # Do not delete or change the following two lines. For why, see | |
1458 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
1459 | # Make sure we can run config.sub. | |
1460 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1461 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1462 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1463 | { (exit 1); exit 1; }; } | |
1464 | ||
1465 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1466 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1467 | if test "${ac_cv_build+set}" = set; then | |
1468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1469 | else | |
1470 | ac_cv_build_alias=$build_alias | |
1471 | test -z "$ac_cv_build_alias" && | |
1472 | ac_cv_build_alias=`$ac_config_guess` | |
1473 | test -z "$ac_cv_build_alias" && | |
1474 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1475 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1476 | { (exit 1); exit 1; }; } | |
1477 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1478 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1479 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1480 | { (exit 1); exit 1; }; } | |
1481 | ||
1482 | fi | |
1483 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1484 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1485 | build=$ac_cv_build | |
1486 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1487 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1488 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1489 | ||
1490 | ||
1491 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1492 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1493 | if test "${ac_cv_host+set}" = set; then | |
1494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1495 | else | |
1496 | ac_cv_host_alias=$host_alias | |
1497 | test -z "$ac_cv_host_alias" && | |
1498 | ac_cv_host_alias=$ac_cv_build_alias | |
1499 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1500 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1501 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1502 | { (exit 1); exit 1; }; } | |
1503 | ||
1504 | fi | |
1505 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1506 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1507 | host=$ac_cv_host | |
1508 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1509 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1510 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1511 | ||
1512 | ||
1513 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1514 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1515 | if test "${ac_cv_target+set}" = set; then | |
1516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1517 | else | |
1518 | ac_cv_target_alias=$target_alias | |
1519 | test "x$ac_cv_target_alias" = "x" && | |
1520 | ac_cv_target_alias=$ac_cv_host_alias | |
1521 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1522 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1523 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1524 | { (exit 1); exit 1; }; } | |
1525 | ||
1526 | fi | |
1527 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1528 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1529 | target=$ac_cv_target | |
1530 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1531 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1532 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1533 | ||
1534 | ||
1535 | # The aliases save the names the user supplied, while $host etc. | |
1536 | # will get canonicalized. | |
1537 | test -n "$target_alias" && | |
1538 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1539 | NONENONEs,x,x, && | |
1540 | program_prefix=${target_alias}- | |
1541 | target_alias=${target_alias-$host_alias} | |
1542 | ||
1543 | # Handy for debugging: | |
1544 | #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5 | |
1545 | ||
1546 | if test "$build" != "$host"; then | |
1547 | # We are being configured with some form of cross compiler. | |
1548 | GLIBCXX_IS_NATIVE=false | |
1549 | ||
1550 | else | |
1551 | GLIBCXX_IS_NATIVE=true | |
1552 | fi | |
1553 | ||
1554 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the | |
1555 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
1556 | # 1.x: minimum required version | |
1557 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch | |
1558 | # of other PACKAGE_* variables will, however, and there's nothing | |
1559 | # we can do about that; they come from AC_INIT). | |
1560 | # foreign: we don't follow the normal rules for GNU packages (no COPYING | |
1561 | # file in the top srcdir, etc, etc), so stop complaining. | |
1562 | # no-dependencies: turns off auto dependency generation (just for now) | |
1563 | # -Wall: turns on all automake warnings | |
1564 | am__api_version="1.7" | |
1565 | # Find a good install program. We prefer a C program (faster), | |
1566 | # so one script is as good as another. But avoid the broken or | |
1567 | # incompatible versions: | |
1568 | # SysV /etc/install, /usr/sbin/install | |
1569 | # SunOS /usr/etc/install | |
1570 | # IRIX /sbin/install | |
1571 | # AIX /bin/install | |
1572 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1573 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1574 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1575 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1576 | # ./install, which can be erroneously created by make from ./install.sh. | |
1577 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1578 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1579 | if test -z "$INSTALL"; then | |
1580 | if test "${ac_cv_path_install+set}" = set; then | |
1581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1582 | else | |
1583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1584 | for as_dir in $PATH | |
1585 | do | |
1586 | IFS=$as_save_IFS | |
1587 | test -z "$as_dir" && as_dir=. | |
1588 | # Account for people who put trailing slashes in PATH elements. | |
1589 | case $as_dir/ in | |
1590 | ./ | .// | /cC/* | \ | |
1591 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1592 | /usr/ucb/* ) ;; | |
1593 | *) | |
1594 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1595 | # Don't use installbsd from OSF since it installs stuff as root | |
1596 | # by default. | |
1597 | for ac_prog in ginstall scoinst install; do | |
1598 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1599 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1600 | if test $ac_prog = install && | |
1601 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1602 | # AIX install. It has an incompatible calling convention. | |
1603 | : | |
1604 | elif test $ac_prog = install && | |
1605 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1606 | # program-specific install script used by HP pwplus--don't use. | |
1607 | : | |
1608 | else | |
1609 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1610 | break 3 | |
1611 | fi | |
1612 | fi | |
1613 | done | |
1614 | done | |
1615 | ;; | |
1616 | esac | |
1617 | done | |
1618 | ||
1619 | ||
1620 | fi | |
1621 | if test "${ac_cv_path_install+set}" = set; then | |
1622 | INSTALL=$ac_cv_path_install | |
1623 | else | |
1624 | # As a last resort, use the slow shell script. We don't cache a | |
1625 | # path for INSTALL within a source directory, because that will | |
1626 | # break other packages using the cache if that directory is | |
1627 | # removed, or if the path is relative. | |
1628 | INSTALL=$ac_install_sh | |
1629 | fi | |
1630 | fi | |
1631 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1632 | echo "${ECHO_T}$INSTALL" >&6 | |
1633 | ||
1634 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1635 | # It thinks the first close brace ends the variable substitution. | |
1636 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1637 | ||
1638 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1639 | ||
1640 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1641 | ||
1642 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
1643 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1644 | # Just in case | |
1645 | sleep 1 | |
1646 | echo timestamp > conftest.file | |
1647 | # Do `set' in a subshell so we don't clobber the current shell's | |
1648 | # arguments. Must try -L first in case configure is actually a | |
1649 | # symlink; some systems play weird games with the mod time of symlinks | |
1650 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1651 | # directory). | |
1652 | if ( | |
1653 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1654 | if test "$*" = "X"; then | |
1655 | # -L didn't work. | |
1656 | set X `ls -t $srcdir/configure conftest.file` | |
1657 | fi | |
1658 | rm -f conftest.file | |
1659 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1660 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1661 | ||
1662 | # If neither matched, then we have a broken ls. This can happen | |
1663 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1664 | # broken ls alias from the environment. This has actually | |
1665 | # happened. Such a system could not be considered "sane". | |
1666 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1667 | alias in your environment" >&5 | |
1668 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1669 | alias in your environment" >&2;} | |
1670 | { (exit 1); exit 1; }; } | |
1671 | fi | |
1672 | ||
1673 | test "$2" = conftest.file | |
1674 | ) | |
1675 | then | |
1676 | # Ok. | |
1677 | : | |
1678 | else | |
1679 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1680 | Check your system clock" >&5 | |
1681 | echo "$as_me: error: newly created file is older than distributed files! | |
1682 | Check your system clock" >&2;} | |
1683 | { (exit 1); exit 1; }; } | |
1684 | fi | |
1685 | echo "$as_me:$LINENO: result: yes" >&5 | |
1686 | echo "${ECHO_T}yes" >&6 | |
1687 | test "$program_prefix" != NONE && | |
1688 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1689 | # Use a double $ so make ignores it. | |
1690 | test "$program_suffix" != NONE && | |
1691 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1692 | # Double any \ or $. echo might interpret backslashes. | |
1693 | # By default was `s,x,x', remove it if useless. | |
1694 | cat <<\_ACEOF >conftest.sed | |
1695 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1696 | _ACEOF | |
1697 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1698 | rm conftest.sed | |
1699 | ||
1700 | ||
1701 | # expand $ac_aux_dir to an absolute path | |
1702 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
1703 | ||
1704 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1705 | # Use eval to expand $SHELL | |
1706 | if eval "$MISSING --run true"; then | |
1707 | am_missing_run="$MISSING --run " | |
1708 | else | |
1709 | am_missing_run= | |
1710 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1711 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1712 | fi | |
1713 | ||
1714 | for ac_prog in gawk mawk nawk awk | |
1715 | do | |
1716 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1717 | set dummy $ac_prog; ac_word=$2 | |
1718 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1719 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1720 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1722 | else | |
1723 | if test -n "$AWK"; then | |
1724 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1725 | else | |
1726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1727 | for as_dir in $PATH | |
1728 | do | |
1729 | IFS=$as_save_IFS | |
1730 | test -z "$as_dir" && as_dir=. | |
1731 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1732 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1733 | ac_cv_prog_AWK="$ac_prog" | |
1734 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1735 | break 2 | |
1736 | fi | |
1737 | done | |
1738 | done | |
1739 | ||
1740 | fi | |
1741 | fi | |
1742 | AWK=$ac_cv_prog_AWK | |
1743 | if test -n "$AWK"; then | |
1744 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
1745 | echo "${ECHO_T}$AWK" >&6 | |
1746 | else | |
1747 | echo "$as_me:$LINENO: result: no" >&5 | |
1748 | echo "${ECHO_T}no" >&6 | |
1749 | fi | |
1750 | ||
1751 | test -n "$AWK" && break | |
1752 | done | |
1753 | ||
1754 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
1755 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
1756 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
1757 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1759 | else | |
1760 | cat >conftest.make <<\_ACEOF | |
1761 | all: | |
1762 | @echo 'ac_maketemp="$(MAKE)"' | |
1763 | _ACEOF | |
1764 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1765 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1766 | if test -n "$ac_maketemp"; then | |
1767 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1768 | else | |
1769 | eval ac_cv_prog_make_${ac_make}_set=no | |
1770 | fi | |
1771 | rm -f conftest.make | |
1772 | fi | |
1773 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1774 | echo "$as_me:$LINENO: result: yes" >&5 | |
1775 | echo "${ECHO_T}yes" >&6 | |
1776 | SET_MAKE= | |
1777 | else | |
1778 | echo "$as_me:$LINENO: result: no" >&5 | |
1779 | echo "${ECHO_T}no" >&6 | |
1780 | SET_MAKE="MAKE=${MAKE-make}" | |
1781 | fi | |
1782 | ||
1783 | rm -rf .tst 2>/dev/null | |
1784 | mkdir .tst 2>/dev/null | |
1785 | if test -d .tst; then | |
1786 | am__leading_dot=. | |
1787 | else | |
1788 | am__leading_dot=_ | |
1789 | fi | |
1790 | rmdir .tst 2>/dev/null | |
1791 | ||
1792 | # test to see if srcdir already configured | |
1793 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
1794 | test -f $srcdir/config.status; then | |
1795 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
1796 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1797 | { (exit 1); exit 1; }; } | |
1798 | fi | |
1799 | ||
1800 | # test whether we have cygpath | |
1801 | if test -z "$CYGPATH_W"; then | |
1802 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
1803 | CYGPATH_W='cygpath -w' | |
1804 | else | |
1805 | CYGPATH_W=echo | |
1806 | fi | |
1807 | fi | |
1808 | ||
1809 | ||
1810 | # Define the identity of the package. | |
1811 | PACKAGE='libstdc++' | |
1812 | VERSION='version-unused' | |
1813 | ||
1814 | ||
1815 | # Some tools Automake needs. | |
1816 | ||
1817 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
1818 | ||
1819 | ||
1820 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
1821 | ||
1822 | ||
1823 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
1824 | ||
1825 | ||
1826 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
1827 | ||
1828 | ||
1829 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1830 | ||
1831 | ||
1832 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
1833 | ||
1834 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
1835 | ||
1836 | # Installed binaries are usually stripped using `strip' when the user | |
1837 | # run `make install-strip'. However `strip' might not be the right | |
1838 | # tool to use in cross-compilation environments, therefore Automake | |
1839 | # will honor the `STRIP' environment variable to overrule this program. | |
1840 | if test "$cross_compiling" != no; then | |
1841 | if test -n "$ac_tool_prefix"; then | |
1842 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1843 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1844 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1845 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1846 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
1847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1848 | else | |
1849 | if test -n "$STRIP"; then | |
1850 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1851 | else | |
1852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1853 | for as_dir in $PATH | |
1854 | do | |
1855 | IFS=$as_save_IFS | |
1856 | test -z "$as_dir" && as_dir=. | |
1857 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1858 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1859 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1860 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1861 | break 2 | |
1862 | fi | |
1863 | done | |
1864 | done | |
1865 | ||
1866 | fi | |
1867 | fi | |
1868 | STRIP=$ac_cv_prog_STRIP | |
1869 | if test -n "$STRIP"; then | |
1870 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
1871 | echo "${ECHO_T}$STRIP" >&6 | |
1872 | else | |
1873 | echo "$as_me:$LINENO: result: no" >&5 | |
1874 | echo "${ECHO_T}no" >&6 | |
1875 | fi | |
1876 | ||
1877 | fi | |
1878 | if test -z "$ac_cv_prog_STRIP"; then | |
1879 | ac_ct_STRIP=$STRIP | |
1880 | # Extract the first word of "strip", so it can be a program name with args. | |
1881 | set dummy strip; ac_word=$2 | |
1882 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1883 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1884 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
1885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1886 | else | |
1887 | if test -n "$ac_ct_STRIP"; then | |
1888 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
1889 | else | |
1890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1891 | for as_dir in $PATH | |
1892 | do | |
1893 | IFS=$as_save_IFS | |
1894 | test -z "$as_dir" && as_dir=. | |
1895 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1896 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1897 | ac_cv_prog_ac_ct_STRIP="strip" | |
1898 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1899 | break 2 | |
1900 | fi | |
1901 | done | |
1902 | done | |
1903 | ||
1904 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
1905 | fi | |
1906 | fi | |
1907 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
1908 | if test -n "$ac_ct_STRIP"; then | |
1909 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
1910 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
1911 | else | |
1912 | echo "$as_me:$LINENO: result: no" >&5 | |
1913 | echo "${ECHO_T}no" >&6 | |
1914 | fi | |
1915 | ||
1916 | STRIP=$ac_ct_STRIP | |
1917 | else | |
1918 | STRIP="$ac_cv_prog_STRIP" | |
1919 | fi | |
1920 | ||
1921 | fi | |
1922 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
1923 | ||
1924 | # We need awk for the "check" target. The system "awk" is bad on | |
1925 | # some platforms. | |
1926 | ||
1927 | ||
1928 | ||
1929 | ||
1930 | # Runs configure.host, finds CC, CXX, and assorted other critical bits. Sets | |
1931 | # up critical shell variables. | |
1932 | ||
1933 | # Keep these sync'd with the list in Makefile.am. The first provides an | |
1934 | # expandable list at autoconf time; the second provides an expandable list | |
1935 | # (i.e., shell variable) at configure time. | |
1936 | ||
1937 | SUBDIRS='include libmath libsupc++ src po testsuite' | |
1938 | ||
1939 | # These need to be absolute paths, yet at the same time need to | |
1940 | # canonicalize only relative paths, because then amd will not unmount | |
1941 | # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd. | |
1942 | glibcxx_builddir=`${PWDCMD-pwd}` | |
1943 | case $srcdir in | |
1944 | \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;; | |
1945 | *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;; | |
1946 | esac | |
1947 | toplevel_srcdir=${glibcxx_srcdir}/.. | |
1948 | ||
1949 | ||
1950 | ||
1951 | ||
1952 | # We use these options to decide which functions to include. They are | |
1953 | # set from the top level. | |
1954 | ||
1955 | # Check whether --with-target-subdir or --without-target-subdir was given. | |
1956 | if test "${with_target_subdir+set}" = set; then | |
1957 | withval="$with_target_subdir" | |
1958 | ||
1959 | fi; | |
1960 | ||
1961 | ||
1962 | # Check whether --with-cross-host or --without-cross-host was given. | |
1963 | if test "${with_cross_host+set}" = set; then | |
1964 | withval="$with_cross_host" | |
1965 | ||
1966 | fi; | |
1967 | ||
1968 | ||
1969 | # Check whether --with-newlib or --without-newlib was given. | |
1970 | if test "${with_newlib+set}" = set; then | |
1971 | withval="$with_newlib" | |
1972 | ||
1973 | fi; | |
1974 | ||
1975 | # We're almost certainly being configured before anything else which uses | |
1976 | # C++, so all of our AC_PROG_* discoveries will be cached. It's vital that | |
1977 | # we not cache the value of CXX that we "discover" here, because it's set | |
1978 | # to something unique for us and libjava. Other target libraries need to | |
1979 | # find CXX for themselves. We yank the rug out from under the normal AC_* | |
1980 | # process by sneakily renaming the cache variable. This also lets us debug | |
1981 | # the value of "our" CXX in postmortems. | |
1982 | # | |
1983 | # We must also force CXX to /not/ be a precious variable, otherwise the | |
1984 | # wrong (non-multilib-adjusted) value will be used in multilibs. This | |
1985 | # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS. And as a side | |
1986 | # effect, CXXFLAGS is no longer automagically subst'd, so we have to do | |
1987 | # that ourselves. Un-preciousing AC_PROG_CC also affects CC and CFLAGS. | |
1988 | # | |
1989 | # -fno-builtin must be present here so that a non-conflicting form of | |
1990 | # std::exit can be guessed by AC_PROG_CXX, and used in later tests. | |
1991 | ||
1992 | ||
1993 | ||
1994 | ||
1995 | save_CXXFLAGS="$CXXFLAGS" | |
1996 | CXXFLAGS="$CXXFLAGS -fno-builtin" | |
1997 | ac_ext=c | |
1998 | ac_cpp='$CPP $CPPFLAGS' | |
1999 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2000 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2001 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2002 | if test -n "$ac_tool_prefix"; then | |
2003 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2004 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2005 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2006 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2007 | if test "${ac_cv_prog_CC+set}" = set; then | |
2008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2009 | else | |
2010 | if test -n "$CC"; then | |
2011 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2012 | else | |
2013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2014 | for as_dir in $PATH | |
2015 | do | |
2016 | IFS=$as_save_IFS | |
2017 | test -z "$as_dir" && as_dir=. | |
2018 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2019 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2020 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2021 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2022 | break 2 | |
2023 | fi | |
2024 | done | |
2025 | done | |
2026 | ||
2027 | fi | |
2028 | fi | |
2029 | CC=$ac_cv_prog_CC | |
2030 | if test -n "$CC"; then | |
2031 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2032 | echo "${ECHO_T}$CC" >&6 | |
2033 | else | |
2034 | echo "$as_me:$LINENO: result: no" >&5 | |
2035 | echo "${ECHO_T}no" >&6 | |
2036 | fi | |
2037 | ||
2038 | fi | |
2039 | if test -z "$ac_cv_prog_CC"; then | |
2040 | ac_ct_CC=$CC | |
2041 | # Extract the first word of "gcc", so it can be a program name with args. | |
2042 | set dummy gcc; ac_word=$2 | |
2043 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2044 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2045 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2047 | else | |
2048 | if test -n "$ac_ct_CC"; then | |
2049 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2050 | else | |
2051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2052 | for as_dir in $PATH | |
2053 | do | |
2054 | IFS=$as_save_IFS | |
2055 | test -z "$as_dir" && as_dir=. | |
2056 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2057 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2058 | ac_cv_prog_ac_ct_CC="gcc" | |
2059 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2060 | break 2 | |
2061 | fi | |
2062 | done | |
2063 | done | |
2064 | ||
2065 | fi | |
2066 | fi | |
2067 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2068 | if test -n "$ac_ct_CC"; then | |
2069 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2070 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2071 | else | |
2072 | echo "$as_me:$LINENO: result: no" >&5 | |
2073 | echo "${ECHO_T}no" >&6 | |
2074 | fi | |
2075 | ||
2076 | CC=$ac_ct_CC | |
2077 | else | |
2078 | CC="$ac_cv_prog_CC" | |
2079 | fi | |
2080 | ||
2081 | if test -z "$CC"; then | |
2082 | if test -n "$ac_tool_prefix"; then | |
2083 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2084 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2085 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2086 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2087 | if test "${ac_cv_prog_CC+set}" = set; then | |
2088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2089 | else | |
2090 | if test -n "$CC"; then | |
2091 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2092 | else | |
2093 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2094 | for as_dir in $PATH | |
2095 | do | |
2096 | IFS=$as_save_IFS | |
2097 | test -z "$as_dir" && as_dir=. | |
2098 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2099 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2100 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2101 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2102 | break 2 | |
2103 | fi | |
2104 | done | |
2105 | done | |
2106 | ||
2107 | fi | |
2108 | fi | |
2109 | CC=$ac_cv_prog_CC | |
2110 | if test -n "$CC"; then | |
2111 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2112 | echo "${ECHO_T}$CC" >&6 | |
2113 | else | |
2114 | echo "$as_me:$LINENO: result: no" >&5 | |
2115 | echo "${ECHO_T}no" >&6 | |
2116 | fi | |
2117 | ||
2118 | fi | |
2119 | if test -z "$ac_cv_prog_CC"; then | |
2120 | ac_ct_CC=$CC | |
2121 | # Extract the first word of "cc", so it can be a program name with args. | |
2122 | set dummy cc; ac_word=$2 | |
2123 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2124 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2125 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2127 | else | |
2128 | if test -n "$ac_ct_CC"; then | |
2129 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2130 | else | |
2131 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2132 | for as_dir in $PATH | |
2133 | do | |
2134 | IFS=$as_save_IFS | |
2135 | test -z "$as_dir" && as_dir=. | |
2136 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2137 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2138 | ac_cv_prog_ac_ct_CC="cc" | |
2139 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2140 | break 2 | |
2141 | fi | |
2142 | done | |
2143 | done | |
2144 | ||
2145 | fi | |
2146 | fi | |
2147 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2148 | if test -n "$ac_ct_CC"; then | |
2149 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2150 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2151 | else | |
2152 | echo "$as_me:$LINENO: result: no" >&5 | |
2153 | echo "${ECHO_T}no" >&6 | |
2154 | fi | |
2155 | ||
2156 | CC=$ac_ct_CC | |
2157 | else | |
2158 | CC="$ac_cv_prog_CC" | |
2159 | fi | |
2160 | ||
2161 | fi | |
2162 | if test -z "$CC"; then | |
2163 | # Extract the first word of "cc", so it can be a program name with args. | |
2164 | set dummy cc; ac_word=$2 | |
2165 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2166 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2167 | if test "${ac_cv_prog_CC+set}" = set; then | |
2168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2169 | else | |
2170 | if test -n "$CC"; then | |
2171 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2172 | else | |
2173 | ac_prog_rejected=no | |
2174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2175 | for as_dir in $PATH | |
2176 | do | |
2177 | IFS=$as_save_IFS | |
2178 | test -z "$as_dir" && as_dir=. | |
2179 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2180 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2181 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2182 | ac_prog_rejected=yes | |
2183 | continue | |
2184 | fi | |
2185 | ac_cv_prog_CC="cc" | |
2186 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2187 | break 2 | |
2188 | fi | |
2189 | done | |
2190 | done | |
2191 | ||
2192 | if test $ac_prog_rejected = yes; then | |
2193 | # We found a bogon in the path, so make sure we never use it. | |
2194 | set dummy $ac_cv_prog_CC | |
2195 | shift | |
2196 | if test $# != 0; then | |
2197 | # We chose a different compiler from the bogus one. | |
2198 | # However, it has the same basename, so the bogon will be chosen | |
2199 | # first if we set CC to just the basename; use the full file name. | |
2200 | shift | |
2201 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2202 | fi | |
2203 | fi | |
2204 | fi | |
2205 | fi | |
2206 | CC=$ac_cv_prog_CC | |
2207 | if test -n "$CC"; then | |
2208 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2209 | echo "${ECHO_T}$CC" >&6 | |
2210 | else | |
2211 | echo "$as_me:$LINENO: result: no" >&5 | |
2212 | echo "${ECHO_T}no" >&6 | |
2213 | fi | |
2214 | ||
2215 | fi | |
2216 | if test -z "$CC"; then | |
2217 | if test -n "$ac_tool_prefix"; then | |
2218 | for ac_prog in cl | |
2219 | do | |
2220 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2221 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2222 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2223 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2224 | if test "${ac_cv_prog_CC+set}" = set; then | |
2225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2226 | else | |
2227 | if test -n "$CC"; then | |
2228 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2229 | else | |
2230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2231 | for as_dir in $PATH | |
2232 | do | |
2233 | IFS=$as_save_IFS | |
2234 | test -z "$as_dir" && as_dir=. | |
2235 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2236 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2237 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2238 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2239 | break 2 | |
2240 | fi | |
2241 | done | |
2242 | done | |
2243 | ||
2244 | fi | |
2245 | fi | |
2246 | CC=$ac_cv_prog_CC | |
2247 | if test -n "$CC"; then | |
2248 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2249 | echo "${ECHO_T}$CC" >&6 | |
2250 | else | |
2251 | echo "$as_me:$LINENO: result: no" >&5 | |
2252 | echo "${ECHO_T}no" >&6 | |
2253 | fi | |
2254 | ||
2255 | test -n "$CC" && break | |
2256 | done | |
2257 | fi | |
2258 | if test -z "$CC"; then | |
2259 | ac_ct_CC=$CC | |
2260 | for ac_prog in cl | |
2261 | do | |
2262 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2263 | set dummy $ac_prog; ac_word=$2 | |
2264 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2265 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2266 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2268 | else | |
2269 | if test -n "$ac_ct_CC"; then | |
2270 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2271 | else | |
2272 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2273 | for as_dir in $PATH | |
2274 | do | |
2275 | IFS=$as_save_IFS | |
2276 | test -z "$as_dir" && as_dir=. | |
2277 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2278 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2279 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2280 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2281 | break 2 | |
2282 | fi | |
2283 | done | |
2284 | done | |
2285 | ||
2286 | fi | |
2287 | fi | |
2288 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2289 | if test -n "$ac_ct_CC"; then | |
2290 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2291 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2292 | else | |
2293 | echo "$as_me:$LINENO: result: no" >&5 | |
2294 | echo "${ECHO_T}no" >&6 | |
2295 | fi | |
2296 | ||
2297 | test -n "$ac_ct_CC" && break | |
2298 | done | |
2299 | ||
2300 | CC=$ac_ct_CC | |
2301 | fi | |
2302 | ||
2303 | fi | |
2304 | ||
2305 | ||
2306 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2307 | See \`config.log' for more details." >&5 | |
2308 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2309 | See \`config.log' for more details." >&2;} | |
2310 | { (exit 1); exit 1; }; } | |
2311 | ||
2312 | # Provide some information about the compiler. | |
2313 | echo "$as_me:$LINENO:" \ | |
2314 | "checking for C compiler version" >&5 | |
2315 | ac_compiler=`set X $ac_compile; echo $2` | |
2316 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2317 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2318 | ac_status=$? | |
2319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2320 | (exit $ac_status); } | |
2321 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2322 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2323 | ac_status=$? | |
2324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2325 | (exit $ac_status); } | |
2326 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2327 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2328 | ac_status=$? | |
2329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2330 | (exit $ac_status); } | |
2331 | ||
2332 | cat >conftest.$ac_ext <<_ACEOF | |
2333 | #line $LINENO "configure" | |
2334 | /* confdefs.h. */ | |
2335 | _ACEOF | |
2336 | cat confdefs.h >>conftest.$ac_ext | |
2337 | cat >>conftest.$ac_ext <<_ACEOF | |
2338 | /* end confdefs.h. */ | |
2339 | ||
2340 | int | |
2341 | main () | |
2342 | { | |
2343 | ||
2344 | ; | |
2345 | return 0; | |
2346 | } | |
2347 | _ACEOF | |
2348 | # FIXME: Cleanup? | |
2349 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2350 | (eval $ac_link) 2>&5 | |
2351 | ac_status=$? | |
2352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2353 | (exit $ac_status); }; then | |
2354 | gcc_no_link=no | |
2355 | else | |
2356 | gcc_no_link=yes | |
2357 | fi | |
2358 | ||
2359 | if test x$gcc_no_link = xyes; then | |
2360 | # Setting cross_compile will disable run tests; it will | |
2361 | # also disable AC_CHECK_FILE but that's generally | |
2362 | # correct if we can't link. | |
2363 | cross_compiling=yes | |
2364 | EXEEXT= | |
2365 | else | |
2366 | cat >conftest.$ac_ext <<_ACEOF | |
2367 | #line $LINENO "configure" | |
2368 | /* confdefs.h. */ | |
2369 | _ACEOF | |
2370 | cat confdefs.h >>conftest.$ac_ext | |
2371 | cat >>conftest.$ac_ext <<_ACEOF | |
2372 | /* end confdefs.h. */ | |
2373 | ||
2374 | int | |
2375 | main () | |
2376 | { | |
2377 | ||
2378 | ; | |
2379 | return 0; | |
2380 | } | |
2381 | _ACEOF | |
2382 | ac_clean_files_save=$ac_clean_files | |
2383 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2384 | # Try to create an executable without -o first, disregard a.out. | |
2385 | # It will help us diagnose broken compilers, and finding out an intuition | |
2386 | # of exeext. | |
2387 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 | |
2388 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
2389 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2390 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2391 | (eval $ac_link_default) 2>&5 | |
2392 | ac_status=$? | |
2393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2394 | (exit $ac_status); }; then | |
2395 | # Find the output, starting from the most likely. This scheme is | |
2396 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2397 | # resort. | |
2398 | ||
2399 | # Be careful to initialize this variable, since it used to be cached. | |
2400 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2401 | ac_cv_exeext= | |
2402 | # b.out is created by i960 compilers. | |
2403 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2404 | do | |
2405 | test -f "$ac_file" || continue | |
2406 | case $ac_file in | |
2407 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
2408 | ;; | |
2409 | conftest.$ac_ext ) | |
2410 | # This is the source file. | |
2411 | ;; | |
2412 | [ab].out ) | |
2413 | # We found the default executable, but exeext='' is most | |
2414 | # certainly right. | |
2415 | break;; | |
2416 | *.* ) | |
2417 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2418 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2419 | # but it would be cool to find out if it's true. Does anybody | |
2420 | # maintain Libtool? --akim. | |
2421 | export ac_cv_exeext | |
2422 | break;; | |
2423 | * ) | |
2424 | break;; | |
2425 | esac | |
2426 | done | |
2427 | else | |
2428 | echo "$as_me: failed program was:" >&5 | |
2429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2430 | ||
2431 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2432 | See \`config.log' for more details." >&5 | |
2433 | echo "$as_me: error: C compiler cannot create executables | |
2434 | See \`config.log' for more details." >&2;} | |
2435 | { (exit 77); exit 77; }; } | |
2436 | fi | |
2437 | ||
2438 | ac_exeext=$ac_cv_exeext | |
2439 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2440 | echo "${ECHO_T}$ac_file" >&6 | |
2441 | ||
2442 | # Check the compiler produces executables we can run. If not, either | |
2443 | # the compiler is broken, or we cross compile. | |
2444 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2445 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2446 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2447 | # If not cross compiling, check that we can run a simple program. | |
2448 | if test "$cross_compiling" != yes; then | |
2449 | if { ac_try='./$ac_file' | |
2450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2451 | (eval $ac_try) 2>&5 | |
2452 | ac_status=$? | |
2453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2454 | (exit $ac_status); }; }; then | |
2455 | cross_compiling=no | |
2456 | else | |
2457 | if test "$cross_compiling" = maybe; then | |
2458 | cross_compiling=yes | |
2459 | else | |
2460 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2461 | If you meant to cross compile, use \`--host'. | |
2462 | See \`config.log' for more details." >&5 | |
2463 | echo "$as_me: error: cannot run C compiled programs. | |
2464 | If you meant to cross compile, use \`--host'. | |
2465 | See \`config.log' for more details." >&2;} | |
2466 | { (exit 1); exit 1; }; } | |
2467 | fi | |
2468 | fi | |
2469 | fi | |
2470 | echo "$as_me:$LINENO: result: yes" >&5 | |
2471 | echo "${ECHO_T}yes" >&6 | |
2472 | ||
2473 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2474 | ac_clean_files=$ac_clean_files_save | |
2475 | # Check the compiler produces executables we can run. If not, either | |
2476 | # the compiler is broken, or we cross compile. | |
2477 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2478 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2479 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2480 | echo "${ECHO_T}$cross_compiling" >&6 | |
2481 | ||
2482 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2483 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2484 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2485 | (eval $ac_link) 2>&5 | |
2486 | ac_status=$? | |
2487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2488 | (exit $ac_status); }; then | |
2489 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2490 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2491 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2492 | # `rm'. | |
2493 | for ac_file in conftest.exe conftest conftest.*; do | |
2494 | test -f "$ac_file" || continue | |
2495 | case $ac_file in | |
2496 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2497 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2498 | export ac_cv_exeext | |
2499 | break;; | |
2500 | * ) break;; | |
2501 | esac | |
2502 | done | |
2503 | else | |
2504 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2505 | See \`config.log' for more details." >&5 | |
2506 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2507 | See \`config.log' for more details." >&2;} | |
2508 | { (exit 1); exit 1; }; } | |
2509 | fi | |
2510 | ||
2511 | rm -f conftest$ac_cv_exeext | |
2512 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2513 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2514 | ||
2515 | rm -f conftest.$ac_ext | |
2516 | EXEEXT=$ac_cv_exeext | |
2517 | ac_exeext=$EXEEXT | |
2518 | fi | |
2519 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2520 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2521 | if test "${ac_cv_objext+set}" = set; then | |
2522 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2523 | else | |
2524 | cat >conftest.$ac_ext <<_ACEOF | |
2525 | #line $LINENO "configure" | |
2526 | /* confdefs.h. */ | |
2527 | _ACEOF | |
2528 | cat confdefs.h >>conftest.$ac_ext | |
2529 | cat >>conftest.$ac_ext <<_ACEOF | |
2530 | /* end confdefs.h. */ | |
2531 | ||
2532 | int | |
2533 | main () | |
2534 | { | |
2535 | ||
2536 | ; | |
2537 | return 0; | |
2538 | } | |
2539 | _ACEOF | |
2540 | rm -f conftest.o conftest.obj | |
2541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2542 | (eval $ac_compile) 2>&5 | |
2543 | ac_status=$? | |
2544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2545 | (exit $ac_status); }; then | |
2546 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2547 | case $ac_file in | |
2548 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2549 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2550 | break;; | |
2551 | esac | |
2552 | done | |
2553 | else | |
2554 | echo "$as_me: failed program was:" >&5 | |
2555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2556 | ||
2557 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2558 | See \`config.log' for more details." >&5 | |
2559 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2560 | See \`config.log' for more details." >&2;} | |
2561 | { (exit 1); exit 1; }; } | |
2562 | fi | |
2563 | ||
2564 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2565 | fi | |
2566 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2567 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2568 | OBJEXT=$ac_cv_objext | |
2569 | ac_objext=$OBJEXT | |
2570 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2571 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2572 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2574 | else | |
2575 | cat >conftest.$ac_ext <<_ACEOF | |
2576 | #line $LINENO "configure" | |
2577 | /* confdefs.h. */ | |
2578 | _ACEOF | |
2579 | cat confdefs.h >>conftest.$ac_ext | |
2580 | cat >>conftest.$ac_ext <<_ACEOF | |
2581 | /* end confdefs.h. */ | |
2582 | ||
2583 | int | |
2584 | main () | |
2585 | { | |
2586 | #ifndef __GNUC__ | |
2587 | choke me | |
2588 | #endif | |
2589 | ||
2590 | ; | |
2591 | return 0; | |
2592 | } | |
2593 | _ACEOF | |
2594 | rm -f conftest.$ac_objext | |
2595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2596 | (eval $ac_compile) 2>&5 | |
2597 | ac_status=$? | |
2598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2599 | (exit $ac_status); } && | |
2600 | { ac_try='test -s conftest.$ac_objext' | |
2601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2602 | (eval $ac_try) 2>&5 | |
2603 | ac_status=$? | |
2604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2605 | (exit $ac_status); }; }; then | |
2606 | ac_compiler_gnu=yes | |
2607 | else | |
2608 | echo "$as_me: failed program was:" >&5 | |
2609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2610 | ||
2611 | ac_compiler_gnu=no | |
2612 | fi | |
2613 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2614 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2615 | ||
2616 | fi | |
2617 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2618 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2619 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2620 | ac_test_CFLAGS=${CFLAGS+set} | |
2621 | ac_save_CFLAGS=$CFLAGS | |
2622 | CFLAGS="-g" | |
2623 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2624 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2625 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2627 | else | |
2628 | cat >conftest.$ac_ext <<_ACEOF | |
2629 | #line $LINENO "configure" | |
2630 | /* confdefs.h. */ | |
2631 | _ACEOF | |
2632 | cat confdefs.h >>conftest.$ac_ext | |
2633 | cat >>conftest.$ac_ext <<_ACEOF | |
2634 | /* end confdefs.h. */ | |
2635 | ||
2636 | int | |
2637 | main () | |
2638 | { | |
2639 | ||
2640 | ; | |
2641 | return 0; | |
2642 | } | |
2643 | _ACEOF | |
2644 | rm -f conftest.$ac_objext | |
2645 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2646 | (eval $ac_compile) 2>&5 | |
2647 | ac_status=$? | |
2648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2649 | (exit $ac_status); } && | |
2650 | { ac_try='test -s conftest.$ac_objext' | |
2651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2652 | (eval $ac_try) 2>&5 | |
2653 | ac_status=$? | |
2654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2655 | (exit $ac_status); }; }; then | |
2656 | ac_cv_prog_cc_g=yes | |
2657 | else | |
2658 | echo "$as_me: failed program was:" >&5 | |
2659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2660 | ||
2661 | ac_cv_prog_cc_g=no | |
2662 | fi | |
2663 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2664 | fi | |
2665 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2666 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2667 | if test "$ac_test_CFLAGS" = set; then | |
2668 | CFLAGS=$ac_save_CFLAGS | |
2669 | elif test $ac_cv_prog_cc_g = yes; then | |
2670 | if test "$GCC" = yes; then | |
2671 | CFLAGS="-g -O2" | |
2672 | else | |
2673 | CFLAGS="-g" | |
2674 | fi | |
2675 | else | |
2676 | if test "$GCC" = yes; then | |
2677 | CFLAGS="-O2" | |
2678 | else | |
2679 | CFLAGS= | |
2680 | fi | |
2681 | fi | |
2682 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2683 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2684 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2686 | else | |
2687 | ac_cv_prog_cc_stdc=no | |
2688 | ac_save_CC=$CC | |
2689 | cat >conftest.$ac_ext <<_ACEOF | |
2690 | #line $LINENO "configure" | |
2691 | /* confdefs.h. */ | |
2692 | _ACEOF | |
2693 | cat confdefs.h >>conftest.$ac_ext | |
2694 | cat >>conftest.$ac_ext <<_ACEOF | |
2695 | /* end confdefs.h. */ | |
2696 | #include <stdarg.h> | |
2697 | #include <stdio.h> | |
2698 | #include <sys/types.h> | |
2699 | #include <sys/stat.h> | |
2700 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2701 | struct buf { int x; }; | |
2702 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2703 | static char *e (p, i) | |
2704 | char **p; | |
2705 | int i; | |
2706 | { | |
2707 | return p[i]; | |
2708 | } | |
2709 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2710 | { | |
2711 | char *s; | |
2712 | va_list v; | |
2713 | va_start (v,p); | |
2714 | s = g (p, va_arg (v,int)); | |
2715 | va_end (v); | |
2716 | return s; | |
2717 | } | |
2718 | int test (int i, double x); | |
2719 | struct s1 {int (*f) (int a);}; | |
2720 | struct s2 {int (*f) (double a);}; | |
2721 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2722 | int argc; | |
2723 | char **argv; | |
2724 | int | |
2725 | main () | |
2726 | { | |
2727 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2728 | ; | |
2729 | return 0; | |
2730 | } | |
2731 | _ACEOF | |
2732 | # Don't try gcc -ansi; that turns off useful extensions and | |
2733 | # breaks some systems' header files. | |
2734 | # AIX -qlanglvl=ansi | |
2735 | # Ultrix and OSF/1 -std1 | |
2736 | # HP-UX 10.20 and later -Ae | |
2737 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2738 | # SVR4 -Xc -D__EXTENSIONS__ | |
2739 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2740 | do | |
2741 | CC="$ac_save_CC $ac_arg" | |
2742 | rm -f conftest.$ac_objext | |
2743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2744 | (eval $ac_compile) 2>&5 | |
2745 | ac_status=$? | |
2746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2747 | (exit $ac_status); } && | |
2748 | { ac_try='test -s conftest.$ac_objext' | |
2749 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2750 | (eval $ac_try) 2>&5 | |
2751 | ac_status=$? | |
2752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2753 | (exit $ac_status); }; }; then | |
2754 | ac_cv_prog_cc_stdc=$ac_arg | |
2755 | break | |
2756 | else | |
2757 | echo "$as_me: failed program was:" >&5 | |
2758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2759 | ||
2760 | fi | |
2761 | rm -f conftest.$ac_objext | |
2762 | done | |
2763 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2764 | CC=$ac_save_CC | |
2765 | ||
2766 | fi | |
2767 | ||
2768 | case "x$ac_cv_prog_cc_stdc" in | |
2769 | x|xno) | |
2770 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2771 | echo "${ECHO_T}none needed" >&6 ;; | |
2772 | *) | |
2773 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2774 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2775 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2776 | esac | |
2777 | ||
2778 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2779 | # in C++ we need to declare it. In case someone uses the same compiler | |
2780 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2781 | # the declaration of exit, since it's the most demanding environment. | |
2782 | cat >conftest.$ac_ext <<_ACEOF | |
2783 | #ifndef __cplusplus | |
2784 | choke me | |
2785 | #endif | |
2786 | _ACEOF | |
2787 | rm -f conftest.$ac_objext | |
2788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2789 | (eval $ac_compile) 2>&5 | |
2790 | ac_status=$? | |
2791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2792 | (exit $ac_status); } && | |
2793 | { ac_try='test -s conftest.$ac_objext' | |
2794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2795 | (eval $ac_try) 2>&5 | |
2796 | ac_status=$? | |
2797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2798 | (exit $ac_status); }; }; then | |
2799 | for ac_declaration in \ | |
2800 | ''\ | |
2801 | '#include <stdlib.h>' \ | |
2802 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2803 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2804 | 'extern "C" void exit (int) throw ();' \ | |
2805 | 'extern "C" void exit (int);' \ | |
2806 | 'void exit (int);' | |
2807 | do | |
2808 | cat >conftest.$ac_ext <<_ACEOF | |
2809 | #line $LINENO "configure" | |
2810 | /* confdefs.h. */ | |
2811 | _ACEOF | |
2812 | cat confdefs.h >>conftest.$ac_ext | |
2813 | cat >>conftest.$ac_ext <<_ACEOF | |
2814 | /* end confdefs.h. */ | |
2815 | #include <stdlib.h> | |
2816 | $ac_declaration | |
2817 | int | |
2818 | main () | |
2819 | { | |
2820 | exit (42); | |
2821 | ; | |
2822 | return 0; | |
2823 | } | |
2824 | _ACEOF | |
2825 | rm -f conftest.$ac_objext | |
2826 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2827 | (eval $ac_compile) 2>&5 | |
2828 | ac_status=$? | |
2829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2830 | (exit $ac_status); } && | |
2831 | { ac_try='test -s conftest.$ac_objext' | |
2832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2833 | (eval $ac_try) 2>&5 | |
2834 | ac_status=$? | |
2835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2836 | (exit $ac_status); }; }; then | |
2837 | : | |
2838 | else | |
2839 | echo "$as_me: failed program was:" >&5 | |
2840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2841 | ||
2842 | continue | |
2843 | fi | |
2844 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2845 | cat >conftest.$ac_ext <<_ACEOF | |
2846 | #line $LINENO "configure" | |
2847 | /* confdefs.h. */ | |
2848 | _ACEOF | |
2849 | cat confdefs.h >>conftest.$ac_ext | |
2850 | cat >>conftest.$ac_ext <<_ACEOF | |
2851 | /* end confdefs.h. */ | |
2852 | $ac_declaration | |
2853 | int | |
2854 | main () | |
2855 | { | |
2856 | exit (42); | |
2857 | ; | |
2858 | return 0; | |
2859 | } | |
2860 | _ACEOF | |
2861 | rm -f conftest.$ac_objext | |
2862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2863 | (eval $ac_compile) 2>&5 | |
2864 | ac_status=$? | |
2865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2866 | (exit $ac_status); } && | |
2867 | { ac_try='test -s conftest.$ac_objext' | |
2868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2869 | (eval $ac_try) 2>&5 | |
2870 | ac_status=$? | |
2871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2872 | (exit $ac_status); }; }; then | |
2873 | break | |
2874 | else | |
2875 | echo "$as_me: failed program was:" >&5 | |
2876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2877 | ||
2878 | fi | |
2879 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2880 | done | |
2881 | rm -f conftest* | |
2882 | if test -n "$ac_declaration"; then | |
2883 | echo '#ifdef __cplusplus' >>confdefs.h | |
2884 | echo $ac_declaration >>confdefs.h | |
2885 | echo '#endif' >>confdefs.h | |
2886 | fi | |
2887 | ||
2888 | else | |
2889 | echo "$as_me: failed program was:" >&5 | |
2890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2891 | ||
2892 | fi | |
2893 | rm -f conftest.$ac_objext conftest.$ac_ext | |
2894 | ac_ext=c | |
2895 | ac_cpp='$CPP $CPPFLAGS' | |
2896 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2897 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2898 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2899 | ||
2900 | ac_ext=cc | |
2901 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2902 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2903 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2904 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
2905 | if test -n "$ac_tool_prefix"; then | |
2906 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
2907 | do | |
2908 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2909 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2910 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2911 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2912 | if test "${glibcxx_cv_prog_CXX+set}" = set; then | |
2913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2914 | else | |
2915 | if test -n "$CXX"; then | |
2916 | glibcxx_cv_prog_CXX="$CXX" # Let the user override the test. | |
2917 | else | |
2918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2919 | for as_dir in $PATH | |
2920 | do | |
2921 | IFS=$as_save_IFS | |
2922 | test -z "$as_dir" && as_dir=. | |
2923 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2924 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2925 | glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
2926 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2927 | break 2 | |
2928 | fi | |
2929 | done | |
2930 | done | |
2931 | ||
2932 | fi | |
2933 | fi | |
2934 | CXX=$glibcxx_cv_prog_CXX | |
2935 | if test -n "$CXX"; then | |
2936 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
2937 | echo "${ECHO_T}$CXX" >&6 | |
2938 | else | |
2939 | echo "$as_me:$LINENO: result: no" >&5 | |
2940 | echo "${ECHO_T}no" >&6 | |
2941 | fi | |
2942 | ||
2943 | test -n "$CXX" && break | |
2944 | done | |
2945 | fi | |
2946 | if test -z "$CXX"; then | |
2947 | ac_ct_CXX=$CXX | |
2948 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
2949 | do | |
2950 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2951 | set dummy $ac_prog; ac_word=$2 | |
2952 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2953 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2954 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
2955 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2956 | else | |
2957 | if test -n "$ac_ct_CXX"; then | |
2958 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
2959 | else | |
2960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2961 | for as_dir in $PATH | |
2962 | do | |
2963 | IFS=$as_save_IFS | |
2964 | test -z "$as_dir" && as_dir=. | |
2965 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2966 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2967 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
2968 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2969 | break 2 | |
2970 | fi | |
2971 | done | |
2972 | done | |
2973 | ||
2974 | fi | |
2975 | fi | |
2976 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
2977 | if test -n "$ac_ct_CXX"; then | |
2978 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
2979 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
2980 | else | |
2981 | echo "$as_me:$LINENO: result: no" >&5 | |
2982 | echo "${ECHO_T}no" >&6 | |
2983 | fi | |
2984 | ||
2985 | test -n "$ac_ct_CXX" && break | |
2986 | done | |
2987 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
2988 | ||
2989 | CXX=$ac_ct_CXX | |
2990 | fi | |
2991 | ||
2992 | ||
2993 | # Provide some information about the compiler. | |
2994 | echo "$as_me:$LINENO:" \ | |
2995 | "checking for C++ compiler version" >&5 | |
2996 | ac_compiler=`set X $ac_compile; echo $2` | |
2997 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2998 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2999 | ac_status=$? | |
3000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3001 | (exit $ac_status); } | |
3002 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
3003 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
3004 | ac_status=$? | |
3005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3006 | (exit $ac_status); } | |
3007 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
3008 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
3009 | ac_status=$? | |
3010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3011 | (exit $ac_status); } | |
3012 | ||
3013 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
3014 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
3015 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
3016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3017 | else | |
3018 | cat >conftest.$ac_ext <<_ACEOF | |
3019 | #line $LINENO "configure" | |
3020 | /* confdefs.h. */ | |
3021 | _ACEOF | |
3022 | cat confdefs.h >>conftest.$ac_ext | |
3023 | cat >>conftest.$ac_ext <<_ACEOF | |
3024 | /* end confdefs.h. */ | |
3025 | ||
3026 | int | |
3027 | main () | |
3028 | { | |
3029 | #ifndef __GNUC__ | |
3030 | choke me | |
3031 | #endif | |
3032 | ||
3033 | ; | |
3034 | return 0; | |
3035 | } | |
3036 | _ACEOF | |
3037 | rm -f conftest.$ac_objext | |
3038 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3039 | (eval $ac_compile) 2>&5 | |
3040 | ac_status=$? | |
3041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3042 | (exit $ac_status); } && | |
3043 | { ac_try='test -s conftest.$ac_objext' | |
3044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3045 | (eval $ac_try) 2>&5 | |
3046 | ac_status=$? | |
3047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3048 | (exit $ac_status); }; }; then | |
3049 | ac_compiler_gnu=yes | |
3050 | else | |
3051 | echo "$as_me: failed program was:" >&5 | |
3052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3053 | ||
3054 | ac_compiler_gnu=no | |
3055 | fi | |
3056 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3057 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
3058 | ||
3059 | fi | |
3060 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
3061 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
3062 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
3063 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
3064 | ac_save_CXXFLAGS=$CXXFLAGS | |
3065 | CXXFLAGS="-g" | |
3066 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
3067 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
3068 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
3069 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3070 | else | |
3071 | cat >conftest.$ac_ext <<_ACEOF | |
3072 | #line $LINENO "configure" | |
3073 | /* confdefs.h. */ | |
3074 | _ACEOF | |
3075 | cat confdefs.h >>conftest.$ac_ext | |
3076 | cat >>conftest.$ac_ext <<_ACEOF | |
3077 | /* end confdefs.h. */ | |
3078 | ||
3079 | int | |
3080 | main () | |
3081 | { | |
3082 | ||
3083 | ; | |
3084 | return 0; | |
3085 | } | |
3086 | _ACEOF | |
3087 | rm -f conftest.$ac_objext | |
3088 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3089 | (eval $ac_compile) 2>&5 | |
3090 | ac_status=$? | |
3091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3092 | (exit $ac_status); } && | |
3093 | { ac_try='test -s conftest.$ac_objext' | |
3094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3095 | (eval $ac_try) 2>&5 | |
3096 | ac_status=$? | |
3097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3098 | (exit $ac_status); }; }; then | |
3099 | ac_cv_prog_cxx_g=yes | |
3100 | else | |
3101 | echo "$as_me: failed program was:" >&5 | |
3102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3103 | ||
3104 | ac_cv_prog_cxx_g=no | |
3105 | fi | |
3106 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3107 | fi | |
3108 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
3109 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
3110 | if test "$ac_test_CXXFLAGS" = set; then | |
3111 | CXXFLAGS=$ac_save_CXXFLAGS | |
3112 | elif test $ac_cv_prog_cxx_g = yes; then | |
3113 | if test "$GXX" = yes; then | |
3114 | CXXFLAGS="-g -O2" | |
3115 | else | |
3116 | CXXFLAGS="-g" | |
3117 | fi | |
3118 | else | |
3119 | if test "$GXX" = yes; then | |
3120 | CXXFLAGS="-O2" | |
3121 | else | |
3122 | CXXFLAGS= | |
3123 | fi | |
3124 | fi | |
3125 | for ac_declaration in \ | |
3126 | ''\ | |
3127 | '#include <stdlib.h>' \ | |
3128 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
3129 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3130 | 'extern "C" void exit (int) throw ();' \ | |
3131 | 'extern "C" void exit (int);' \ | |
3132 | 'void exit (int);' | |
3133 | do | |
3134 | cat >conftest.$ac_ext <<_ACEOF | |
3135 | #line $LINENO "configure" | |
3136 | /* confdefs.h. */ | |
3137 | _ACEOF | |
3138 | cat confdefs.h >>conftest.$ac_ext | |
3139 | cat >>conftest.$ac_ext <<_ACEOF | |
3140 | /* end confdefs.h. */ | |
3141 | #include <stdlib.h> | |
3142 | $ac_declaration | |
3143 | int | |
3144 | main () | |
3145 | { | |
3146 | exit (42); | |
3147 | ; | |
3148 | return 0; | |
3149 | } | |
3150 | _ACEOF | |
3151 | rm -f conftest.$ac_objext | |
3152 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3153 | (eval $ac_compile) 2>&5 | |
3154 | ac_status=$? | |
3155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3156 | (exit $ac_status); } && | |
3157 | { ac_try='test -s conftest.$ac_objext' | |
3158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3159 | (eval $ac_try) 2>&5 | |
3160 | ac_status=$? | |
3161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3162 | (exit $ac_status); }; }; then | |
3163 | : | |
3164 | else | |
3165 | echo "$as_me: failed program was:" >&5 | |
3166 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3167 | ||
3168 | continue | |
3169 | fi | |
3170 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3171 | cat >conftest.$ac_ext <<_ACEOF | |
3172 | #line $LINENO "configure" | |
3173 | /* confdefs.h. */ | |
3174 | _ACEOF | |
3175 | cat confdefs.h >>conftest.$ac_ext | |
3176 | cat >>conftest.$ac_ext <<_ACEOF | |
3177 | /* end confdefs.h. */ | |
3178 | $ac_declaration | |
3179 | int | |
3180 | main () | |
3181 | { | |
3182 | exit (42); | |
3183 | ; | |
3184 | return 0; | |
3185 | } | |
3186 | _ACEOF | |
3187 | rm -f conftest.$ac_objext | |
3188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3189 | (eval $ac_compile) 2>&5 | |
3190 | ac_status=$? | |
3191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3192 | (exit $ac_status); } && | |
3193 | { ac_try='test -s conftest.$ac_objext' | |
3194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3195 | (eval $ac_try) 2>&5 | |
3196 | ac_status=$? | |
3197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3198 | (exit $ac_status); }; }; then | |
3199 | break | |
3200 | else | |
3201 | echo "$as_me: failed program was:" >&5 | |
3202 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3203 | ||
3204 | fi | |
3205 | rm -f conftest.$ac_objext conftest.$ac_ext | |
3206 | done | |
3207 | rm -f conftest* | |
3208 | if test -n "$ac_declaration"; then | |
3209 | echo '#ifdef __cplusplus' >>confdefs.h | |
3210 | echo $ac_declaration >>confdefs.h | |
3211 | echo '#endif' >>confdefs.h | |
3212 | fi | |
3213 | ||
3214 | ac_ext=c | |
3215 | ac_cpp='$CPP $CPPFLAGS' | |
3216 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3217 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3218 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3219 | ||
3220 | CXXFLAGS="$save_CXXFLAGS" | |
3221 | ||
3222 | ||
3223 | ||
3224 | ||
3225 | # For directory versioning (e.g., headers) and other variables. | |
3226 | echo "$as_me:$LINENO: checking for GCC version number" >&5 | |
3227 | echo $ECHO_N "checking for GCC version number... $ECHO_C" >&6 | |
3228 | gcc_version=`$CXX -dumpversion` | |
3229 | echo "$as_me:$LINENO: result: $gcc_version" >&5 | |
3230 | echo "${ECHO_T}$gcc_version" >&6 | |
3231 | ||
3232 | # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't | |
3233 | # available). Uncomment the next line to force a particular method. | |
3234 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
3235 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3236 | LN_S=$as_ln_s | |
3237 | if test "$LN_S" = "ln -s"; then | |
3238 | echo "$as_me:$LINENO: result: yes" >&5 | |
3239 | echo "${ECHO_T}yes" >&6 | |
3240 | else | |
3241 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
3242 | echo "${ECHO_T}no, using $LN_S" >&6 | |
3243 | fi | |
3244 | ||
3245 | #LN_S='cp -p' | |
3246 | ||
3247 | if test -n "$ac_tool_prefix"; then | |
3248 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
3249 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
3250 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3251 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3252 | if test "${ac_cv_prog_AS+set}" = set; then | |
3253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3254 | else | |
3255 | if test -n "$AS"; then | |
3256 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
3257 | else | |
3258 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3259 | for as_dir in $PATH | |
3260 | do | |
3261 | IFS=$as_save_IFS | |
3262 | test -z "$as_dir" && as_dir=. | |
3263 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3264 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3265 | ac_cv_prog_AS="${ac_tool_prefix}as" | |
3266 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3267 | break 2 | |
3268 | fi | |
3269 | done | |
3270 | done | |
3271 | ||
3272 | fi | |
3273 | fi | |
3274 | AS=$ac_cv_prog_AS | |
3275 | if test -n "$AS"; then | |
3276 | echo "$as_me:$LINENO: result: $AS" >&5 | |
3277 | echo "${ECHO_T}$AS" >&6 | |
3278 | else | |
3279 | echo "$as_me:$LINENO: result: no" >&5 | |
3280 | echo "${ECHO_T}no" >&6 | |
3281 | fi | |
3282 | ||
3283 | fi | |
3284 | if test -z "$ac_cv_prog_AS"; then | |
3285 | ac_ct_AS=$AS | |
3286 | # Extract the first word of "as", so it can be a program name with args. | |
3287 | set dummy as; ac_word=$2 | |
3288 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3289 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3290 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then | |
3291 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3292 | else | |
3293 | if test -n "$ac_ct_AS"; then | |
3294 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
3295 | else | |
3296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3297 | for as_dir in $PATH | |
3298 | do | |
3299 | IFS=$as_save_IFS | |
3300 | test -z "$as_dir" && as_dir=. | |
3301 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3302 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3303 | ac_cv_prog_ac_ct_AS="as" | |
3304 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3305 | break 2 | |
3306 | fi | |
3307 | done | |
3308 | done | |
3309 | ||
3310 | fi | |
3311 | fi | |
3312 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
3313 | if test -n "$ac_ct_AS"; then | |
3314 | echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 | |
3315 | echo "${ECHO_T}$ac_ct_AS" >&6 | |
3316 | else | |
3317 | echo "$as_me:$LINENO: result: no" >&5 | |
3318 | echo "${ECHO_T}no" >&6 | |
3319 | fi | |
3320 | ||
3321 | AS=$ac_ct_AS | |
3322 | else | |
3323 | AS="$ac_cv_prog_AS" | |
3324 | fi | |
3325 | ||
3326 | if test -n "$ac_tool_prefix"; then | |
3327 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
3328 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
3329 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3330 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3331 | if test "${ac_cv_prog_AR+set}" = set; then | |
3332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3333 | else | |
3334 | if test -n "$AR"; then | |
3335 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3336 | else | |
3337 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3338 | for as_dir in $PATH | |
3339 | do | |
3340 | IFS=$as_save_IFS | |
3341 | test -z "$as_dir" && as_dir=. | |
3342 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3343 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3344 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
3345 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3346 | break 2 | |
3347 | fi | |
3348 | done | |
3349 | done | |
3350 | ||
3351 | fi | |
3352 | fi | |
3353 | AR=$ac_cv_prog_AR | |
3354 | if test -n "$AR"; then | |
3355 | echo "$as_me:$LINENO: result: $AR" >&5 | |
3356 | echo "${ECHO_T}$AR" >&6 | |
3357 | else | |
3358 | echo "$as_me:$LINENO: result: no" >&5 | |
3359 | echo "${ECHO_T}no" >&6 | |
3360 | fi | |
3361 | ||
3362 | fi | |
3363 | if test -z "$ac_cv_prog_AR"; then | |
3364 | ac_ct_AR=$AR | |
3365 | # Extract the first word of "ar", so it can be a program name with args. | |
3366 | set dummy ar; ac_word=$2 | |
3367 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3368 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3369 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
3370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3371 | else | |
3372 | if test -n "$ac_ct_AR"; then | |
3373 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
3374 | else | |
3375 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3376 | for as_dir in $PATH | |
3377 | do | |
3378 | IFS=$as_save_IFS | |
3379 | test -z "$as_dir" && as_dir=. | |
3380 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3381 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3382 | ac_cv_prog_ac_ct_AR="ar" | |
3383 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3384 | break 2 | |
3385 | fi | |
3386 | done | |
3387 | done | |
3388 | ||
3389 | fi | |
3390 | fi | |
3391 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
3392 | if test -n "$ac_ct_AR"; then | |
3393 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
3394 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
3395 | else | |
3396 | echo "$as_me:$LINENO: result: no" >&5 | |
3397 | echo "${ECHO_T}no" >&6 | |
3398 | fi | |
3399 | ||
3400 | AR=$ac_ct_AR | |
3401 | else | |
3402 | AR="$ac_cv_prog_AR" | |
3403 | fi | |
3404 | ||
3405 | if test -n "$ac_tool_prefix"; then | |
3406 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3407 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3408 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3409 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3410 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3412 | else | |
3413 | if test -n "$RANLIB"; then | |
3414 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3415 | else | |
3416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3417 | for as_dir in $PATH | |
3418 | do | |
3419 | IFS=$as_save_IFS | |
3420 | test -z "$as_dir" && as_dir=. | |
3421 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3422 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3423 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3424 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3425 | break 2 | |
3426 | fi | |
3427 | done | |
3428 | done | |
3429 | ||
3430 | fi | |
3431 | fi | |
3432 | RANLIB=$ac_cv_prog_RANLIB | |
3433 | if test -n "$RANLIB"; then | |
3434 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
3435 | echo "${ECHO_T}$RANLIB" >&6 | |
3436 | else | |
3437 | echo "$as_me:$LINENO: result: no" >&5 | |
3438 | echo "${ECHO_T}no" >&6 | |
3439 | fi | |
3440 | ||
3441 | fi | |
3442 | if test -z "$ac_cv_prog_RANLIB"; then | |
3443 | ac_ct_RANLIB=$RANLIB | |
3444 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3445 | set dummy ranlib; ac_word=$2 | |
3446 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3447 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3448 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3450 | else | |
3451 | if test -n "$ac_ct_RANLIB"; then | |
3452 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3453 | else | |
3454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3455 | for as_dir in $PATH | |
3456 | do | |
3457 | IFS=$as_save_IFS | |
3458 | test -z "$as_dir" && as_dir=. | |
3459 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3460 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3461 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3462 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3463 | break 2 | |
3464 | fi | |
3465 | done | |
3466 | done | |
3467 | ||
3468 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error" | |
3469 | fi | |
3470 | fi | |
3471 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3472 | if test -n "$ac_ct_RANLIB"; then | |
3473 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3474 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
3475 | else | |
3476 | echo "$as_me:$LINENO: result: no" >&5 | |
3477 | echo "${ECHO_T}no" >&6 | |
3478 | fi | |
3479 | ||
3480 | RANLIB=$ac_ct_RANLIB | |
3481 | else | |
3482 | RANLIB="$ac_cv_prog_RANLIB" | |
3483 | fi | |
3484 | ||
3485 | ||
3486 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
3487 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
3488 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
3489 | if test "${enable_maintainer_mode+set}" = set; then | |
3490 | enableval="$enable_maintainer_mode" | |
3491 | USE_MAINTAINER_MODE=$enableval | |
3492 | else | |
3493 | USE_MAINTAINER_MODE=no | |
3494 | fi; | |
3495 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
3496 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
3497 | ||
3498 | ||
3499 | if test $USE_MAINTAINER_MODE = yes; then | |
3500 | MAINTAINER_MODE_TRUE= | |
3501 | MAINTAINER_MODE_FALSE='#' | |
3502 | else | |
3503 | MAINTAINER_MODE_TRUE='#' | |
3504 | MAINTAINER_MODE_FALSE= | |
3505 | fi | |
3506 | ||
3507 | MAINT=$MAINTAINER_MODE_TRUE | |
3508 | ||
3509 | ||
3510 | ||
3511 | # Set up safe default values for all subsequent AM_CONDITIONAL tests | |
3512 | # which are themselves conditionally expanded. | |
3513 | ## (Right now, this only matters for enable_wchar_t, but nothing prevents | |
3514 | ## other macros from doing the same. This should be automated.) -pme | |
3515 | need_libmath=no | |
3516 | enable_wchar_t=no | |
3517 | #enable_libstdcxx_debug=no | |
3518 | #enable_libstdcxx_pch=no | |
3519 | #enable_cheaders=c | |
3520 | #c_compatibility=no | |
3521 | #enable_abi_check=no | |
3522 | #enable_symvers=no | |
3523 | #enable_hosted_libstdcxx=yes | |
3524 | ||
3525 | # Find platform-specific directories containing configuration info. | |
3526 | # Also possibly modify flags used elsewhere, as needed by the platform. | |
3527 | ||
3528 | . $glibcxx_srcdir/configure.host | |
3529 | { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5 | |
3530 | echo "$as_me: CPU config directory is $cpu_include_dir" >&6;} | |
3531 | { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5 | |
3532 | echo "$as_me: OS config directory is $os_include_dir" >&6;} | |
3533 | ||
3534 | ||
3535 | ||
3536 | #AC_MSG_NOTICE([====== Starting libtool configuration]) | |
3537 | ||
3538 | # Check whether --enable-shared or --disable-shared was given. | |
3539 | if test "${enable_shared+set}" = set; then | |
3540 | enableval="$enable_shared" | |
3541 | p=${PACKAGE-default} | |
3542 | case $enableval in | |
3543 | yes) enable_shared=yes ;; | |
3544 | no) enable_shared=no ;; | |
3545 | *) | |
3546 | enable_shared=no | |
3547 | # Look at the argument we got. We use all the common list separators. | |
3548 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3549 | for pkg in $enableval; do | |
3550 | if test "X$pkg" = "X$p"; then | |
3551 | enable_shared=yes | |
3552 | fi | |
3553 | done | |
3554 | IFS="$ac_save_ifs" | |
3555 | ;; | |
3556 | esac | |
3557 | else | |
3558 | enable_shared=yes | |
3559 | fi; | |
3560 | # Check whether --enable-static or --disable-static was given. | |
3561 | if test "${enable_static+set}" = set; then | |
3562 | enableval="$enable_static" | |
3563 | p=${PACKAGE-default} | |
3564 | case $enableval in | |
3565 | yes) enable_static=yes ;; | |
3566 | no) enable_static=no ;; | |
3567 | *) | |
3568 | enable_static=no | |
3569 | # Look at the argument we got. We use all the common list separators. | |
3570 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3571 | for pkg in $enableval; do | |
3572 | if test "X$pkg" = "X$p"; then | |
3573 | enable_static=yes | |
3574 | fi | |
3575 | done | |
3576 | IFS="$ac_save_ifs" | |
3577 | ;; | |
3578 | esac | |
3579 | else | |
3580 | enable_static=yes | |
3581 | fi; | |
3582 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
3583 | if test "${enable_fast_install+set}" = set; then | |
3584 | enableval="$enable_fast_install" | |
3585 | p=${PACKAGE-default} | |
3586 | case $enableval in | |
3587 | yes) enable_fast_install=yes ;; | |
3588 | no) enable_fast_install=no ;; | |
3589 | *) | |
3590 | enable_fast_install=no | |
3591 | # Look at the argument we got. We use all the common list separators. | |
3592 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3593 | for pkg in $enableval; do | |
3594 | if test "X$pkg" = "X$p"; then | |
3595 | enable_fast_install=yes | |
3596 | fi | |
3597 | done | |
3598 | IFS="$ac_save_ifs" | |
3599 | ;; | |
3600 | esac | |
3601 | else | |
3602 | enable_fast_install=yes | |
3603 | fi; | |
3604 | ||
3605 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
3606 | if test "${with_gnu_ld+set}" = set; then | |
3607 | withval="$with_gnu_ld" | |
3608 | test "$withval" = no || with_gnu_ld=yes | |
3609 | else | |
3610 | with_gnu_ld=no | |
3611 | fi; | |
3612 | ac_prog=ld | |
3613 | if test "$GCC" = yes; then | |
3614 | # Check if gcc -print-prog-name=ld gives a path. | |
3615 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | |
3616 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
3617 | case $host in | |
3618 | *-*-mingw*) | |
3619 | # gcc leaves a trailing carriage return which upsets mingw | |
3620 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3621 | *) | |
3622 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3623 | esac | |
3624 | case $ac_prog in | |
3625 | # Accept absolute paths. | |
3626 | [\\/]* | [A-Za-z]:[\\/]*) | |
3627 | re_direlt='/[^/][^/]*/\.\./' | |
3628 | # Canonicalize the path of ld | |
3629 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3630 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3631 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3632 | done | |
3633 | test -z "$LD" && LD="$ac_prog" | |
3634 | ;; | |
3635 | "") | |
3636 | # If it fails, then pretend we aren't using GCC. | |
3637 | ac_prog=ld | |
3638 | ;; | |
3639 | *) | |
3640 | # If it is relative, then search for the first ld in PATH. | |
3641 | with_gnu_ld=unknown | |
3642 | ;; | |
3643 | esac | |
3644 | elif test "$with_gnu_ld" = yes; then | |
3645 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
3646 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
3647 | else | |
3648 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
3649 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
3650 | fi | |
3651 | if test "${lt_cv_path_LD+set}" = set; then | |
3652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3653 | else | |
3654 | if test -z "$LD"; then | |
3655 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
3656 | for ac_dir in $PATH; do | |
3657 | test -z "$ac_dir" && ac_dir=. | |
3658 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3659 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
3660 | # Check to see if the program is GNU ld. I'd rather use --version, | |
3661 | # but apparently some GNU ld's only accept -v. | |
3662 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
3663 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
3664 | test "$with_gnu_ld" != no && break | |
3665 | else | |
3666 | test "$with_gnu_ld" != yes && break | |
3667 | fi | |
3668 | fi | |
3669 | done | |
3670 | IFS="$ac_save_ifs" | |
3671 | else | |
3672 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
3673 | fi | |
3674 | fi | |
3675 | ||
3676 | LD="$lt_cv_path_LD" | |
3677 | if test -n "$LD"; then | |
3678 | echo "$as_me:$LINENO: result: $LD" >&5 | |
3679 | echo "${ECHO_T}$LD" >&6 | |
3680 | else | |
3681 | echo "$as_me:$LINENO: result: no" >&5 | |
3682 | echo "${ECHO_T}no" >&6 | |
3683 | fi | |
3684 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
3685 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3686 | { (exit 1); exit 1; }; } | |
3687 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3688 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3689 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3691 | else | |
3692 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3693 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
3694 | lt_cv_prog_gnu_ld=yes | |
3695 | else | |
3696 | lt_cv_prog_gnu_ld=no | |
3697 | fi | |
3698 | fi | |
3699 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
3700 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
3701 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
3702 | ||
3703 | ||
3704 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
3705 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3706 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3708 | else | |
3709 | lt_cv_ld_reload_flag='-r' | |
3710 | fi | |
3711 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
3712 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
3713 | reload_flag=$lt_cv_ld_reload_flag | |
3714 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
3715 | ||
3716 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | |
3717 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3718 | if test "${lt_cv_path_NM+set}" = set; then | |
3719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3720 | else | |
3721 | if test -n "$NM"; then | |
3722 | # Let the user override the test. | |
3723 | lt_cv_path_NM="$NM" | |
3724 | else | |
3725 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
3726 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | |
3727 | test -z "$ac_dir" && ac_dir=. | |
3728 | tmp_nm=$ac_dir/${ac_tool_prefix}nm | |
3729 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
3730 | # Check to see if the nm accepts a BSD-compat flag. | |
3731 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3732 | # nm: unknown option "B" ignored | |
3733 | # Tru64's nm complains that /dev/null is an invalid object file | |
3734 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
3735 | lt_cv_path_NM="$tmp_nm -B" | |
3736 | break | |
3737 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | |
3738 | lt_cv_path_NM="$tmp_nm -p" | |
3739 | break | |
3740 | else | |
3741 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3742 | continue # so that we can try to find one that supports BSD flags | |
3743 | fi | |
3744 | fi | |
3745 | done | |
3746 | IFS="$ac_save_ifs" | |
3747 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | |
3748 | fi | |
3749 | fi | |
3750 | ||
3751 | NM="$lt_cv_path_NM" | |
3752 | echo "$as_me:$LINENO: result: $NM" >&5 | |
3753 | echo "${ECHO_T}$NM" >&6 | |
3754 | ||
3755 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 | |
3756 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
3757 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3759 | else | |
3760 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
3761 | lt_cv_file_magic_test_file= | |
3762 | lt_cv_deplibs_check_method='unknown' | |
3763 | # Need to set the preceding variable on all platforms that support | |
3764 | # interlibrary dependencies. | |
3765 | # 'none' -- dependencies not supported. | |
3766 | # `unknown' -- same as none, but documents that we really don't know. | |
3767 | # 'pass_all' -- all dependencies passed with no checks. | |
3768 | # 'test_compile' -- check by making test program. | |
3769 | # 'file_magic [regex]' -- check by looking for files in library path | |
3770 | # which responds to the $file_magic_cmd with a given egrep regex. | |
3771 | # If you have `file' or equivalent on your system and you're not sure | |
3772 | # whether `pass_all' will *always* work, you probably want this one. | |
3773 | ||
3774 | case $host_os in | |
3775 | aix*) | |
3776 | lt_cv_deplibs_check_method=pass_all | |
3777 | ;; | |
3778 | ||
3779 | beos*) | |
3780 | lt_cv_deplibs_check_method=pass_all | |
3781 | ;; | |
3782 | ||
3783 | bsdi4*) | |
3784 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
3785 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3786 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3787 | ;; | |
3788 | ||
3789 | cygwin* | mingw* |pw32*) | |
3790 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
3791 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
3792 | ;; | |
3793 | ||
3794 | darwin* | rhapsody*) | |
3795 | # this will be overwritten by pass_all, but leave it in just in case | |
3796 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
3797 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3798 | case "$host_os" in | |
3799 | rhapsody* | darwin1.012) | |
3800 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
3801 | ;; | |
3802 | *) # Darwin 1.3 on | |
3803 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
3804 | ;; | |
3805 | esac | |
3806 | lt_cv_deplibs_check_method=pass_all | |
3807 | ;; | |
3808 | ||
3809 | freebsd* ) | |
3810 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3811 | case $host_cpu in | |
3812 | i*86 ) | |
3813 | # Not sure whether the presence of OpenBSD here was a mistake. | |
3814 | # Let's accept both of them until this is cleared up. | |
3815 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | |
3816 | lt_cv_file_magic_cmd=/usr/bin/file | |
3817 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
3818 | ;; | |
3819 | esac | |
3820 | else | |
3821 | lt_cv_deplibs_check_method=pass_all | |
3822 | fi | |
3823 | ;; | |
3824 | ||
3825 | gnu*) | |
3826 | lt_cv_deplibs_check_method=pass_all | |
3827 | ;; | |
3828 | ||
3829 | hpux10.20*|hpux11*) | |
3830 | case $host_cpu in | |
3831 | hppa*) | |
3832 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3833 | lt_cv_file_magic_cmd=/usr/bin/file | |
3834 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3835 | ;; | |
3836 | ia64*) | |
3837 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3838 | lt_cv_file_magic_cmd=/usr/bin/file | |
3839 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3840 | ;; | |
3841 | esac | |
3842 | ;; | |
3843 | ||
3844 | irix5* | irix6*) | |
3845 | case $host_os in | |
3846 | irix5*) | |
3847 | # this will be overridden with pass_all, but let us keep it just in case | |
3848 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
3849 | ;; | |
3850 | *) | |
3851 | case $LD in | |
3852 | *-32|*"-32 ") libmagic=32-bit;; | |
3853 | *-n32|*"-n32 ") libmagic=N32;; | |
3854 | *-64|*"-64 ") libmagic=64-bit;; | |
3855 | *) libmagic=never-match;; | |
3856 | esac | |
3857 | # this will be overridden with pass_all, but let us keep it just in case | |
3858 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | |
3859 | ;; | |
3860 | esac | |
3861 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
3862 | lt_cv_deplibs_check_method=pass_all | |
3863 | ;; | |
3864 | ||
3865 | # This must be Linux ELF. | |
3866 | linux-gnu*) | |
3867 | case $host_cpu in | |
3868 | alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* ) | |
3869 | lt_cv_deplibs_check_method=pass_all ;; | |
3870 | *) | |
3871 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
3872 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; | |
3873 | esac | |
3874 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | |
3875 | ;; | |
3876 | ||
3877 | netbsd*) | |
3878 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3879 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | |
3880 | else | |
3881 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' | |
3882 | fi | |
3883 | ;; | |
3884 | ||
3885 | newsos6) | |
3886 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3887 | lt_cv_file_magic_cmd=/usr/bin/file | |
3888 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3889 | ;; | |
3890 | ||
3891 | osf3* | osf4* | osf5*) | |
3892 | # this will be overridden with pass_all, but let us keep it just in case | |
3893 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
3894 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3895 | lt_cv_deplibs_check_method=pass_all | |
3896 | ;; | |
3897 | ||
3898 | sco3.2v5*) | |
3899 | lt_cv_deplibs_check_method=pass_all | |
3900 | ;; | |
3901 | ||
3902 | solaris*) | |
3903 | lt_cv_deplibs_check_method=pass_all | |
3904 | lt_cv_file_magic_test_file=/lib/libc.so | |
3905 | ;; | |
3906 | ||
3907 | sysv5uw[78]* | sysv4*uw2*) | |
3908 | lt_cv_deplibs_check_method=pass_all | |
3909 | ;; | |
3910 | ||
3911 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
3912 | case $host_vendor in | |
3913 | ncr) | |
3914 | lt_cv_deplibs_check_method=pass_all | |
3915 | ;; | |
3916 | motorola) | |
3917 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' | |
3918 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
3919 | ;; | |
3920 | esac | |
3921 | ;; | |
3922 | esac | |
3923 | ||
3924 | fi | |
3925 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
3926 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
3927 | file_magic_cmd=$lt_cv_file_magic_cmd | |
3928 | deplibs_check_method=$lt_cv_deplibs_check_method | |
3929 | ||
3930 | ||
3931 | ||
3932 | ||
3933 | ||
3934 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
3935 | ||
3936 | # Only perform the check for file, if the check method requires it | |
3937 | case $deplibs_check_method in | |
3938 | file_magic*) | |
3939 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
3940 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
3941 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
3942 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3944 | else | |
3945 | case $MAGIC_CMD in | |
3946 | /*) | |
3947 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
3948 | ;; | |
3949 | ?:/*) | |
3950 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
3951 | ;; | |
3952 | *) | |
3953 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
3954 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3955 | ac_dummy="/usr/bin:$PATH" | |
3956 | for ac_dir in $ac_dummy; do | |
3957 | test -z "$ac_dir" && ac_dir=. | |
3958 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
3959 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
3960 | if test -n "$file_magic_test_file"; then | |
3961 | case $deplibs_check_method in | |
3962 | "file_magic "*) | |
3963 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
3964 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
3965 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
3966 | egrep "$file_magic_regex" > /dev/null; then | |
3967 | : | |
3968 | else | |
3969 | cat <<EOF 1>&2 | |
3970 | ||
3971 | *** Warning: the command libtool uses to detect shared libraries, | |
3972 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3973 | *** The result is that libtool may fail to recognize shared libraries | |
3974 | *** as such. This will affect the creation of libtool libraries that | |
3975 | *** depend on shared libraries, but programs linked with such libtool | |
3976 | *** libraries will work regardless of this problem. Nevertheless, you | |
3977 | *** may want to report the problem to your system manager and/or to | |
3978 | *** bug-libtool@gnu.org | |
3979 | ||
3980 | EOF | |
3981 | fi ;; | |
3982 | esac | |
3983 | fi | |
3984 | break | |
3985 | fi | |
3986 | done | |
3987 | IFS="$ac_save_ifs" | |
3988 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
3989 | ;; | |
3990 | esac | |
3991 | fi | |
3992 | ||
3993 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
3994 | if test -n "$MAGIC_CMD"; then | |
3995 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
3996 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
3997 | else | |
3998 | echo "$as_me:$LINENO: result: no" >&5 | |
3999 | echo "${ECHO_T}no" >&6 | |
4000 | fi | |
4001 | ||
4002 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
4003 | if test -n "$ac_tool_prefix"; then | |
4004 | echo "$as_me:$LINENO: checking for file" >&5 | |
4005 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
4006 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
4007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4008 | else | |
4009 | case $MAGIC_CMD in | |
4010 | /*) | |
4011 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
4012 | ;; | |
4013 | ?:/*) | |
4014 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
4015 | ;; | |
4016 | *) | |
4017 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
4018 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
4019 | ac_dummy="/usr/bin:$PATH" | |
4020 | for ac_dir in $ac_dummy; do | |
4021 | test -z "$ac_dir" && ac_dir=. | |
4022 | if test -f $ac_dir/file; then | |
4023 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
4024 | if test -n "$file_magic_test_file"; then | |
4025 | case $deplibs_check_method in | |
4026 | "file_magic "*) | |
4027 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
4028 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
4029 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
4030 | egrep "$file_magic_regex" > /dev/null; then | |
4031 | : | |
4032 | else | |
4033 | cat <<EOF 1>&2 | |
4034 | ||
4035 | *** Warning: the command libtool uses to detect shared libraries, | |
4036 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
4037 | *** The result is that libtool may fail to recognize shared libraries | |
4038 | *** as such. This will affect the creation of libtool libraries that | |
4039 | *** depend on shared libraries, but programs linked with such libtool | |
4040 | *** libraries will work regardless of this problem. Nevertheless, you | |
4041 | *** may want to report the problem to your system manager and/or to | |
4042 | *** bug-libtool@gnu.org | |
4043 | ||
4044 | EOF | |
4045 | fi ;; | |
4046 | esac | |
4047 | fi | |
4048 | break | |
4049 | fi | |
4050 | done | |
4051 | IFS="$ac_save_ifs" | |
4052 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
4053 | ;; | |
4054 | esac | |
4055 | fi | |
4056 | ||
4057 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
4058 | if test -n "$MAGIC_CMD"; then | |
4059 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
4060 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
4061 | else | |
4062 | echo "$as_me:$LINENO: result: no" >&5 | |
4063 | echo "${ECHO_T}no" >&6 | |
4064 | fi | |
4065 | ||
4066 | else | |
4067 | MAGIC_CMD=: | |
4068 | fi | |
4069 | fi | |
4070 | ||
4071 | fi | |
4072 | ;; | |
4073 | esac | |
4074 | ||
4075 | if test -n "$ac_tool_prefix"; then | |
4076 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4077 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4078 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4079 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4080 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
4081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4082 | else | |
4083 | if test -n "$RANLIB"; then | |
4084 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4085 | else | |
4086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4087 | for as_dir in $PATH | |
4088 | do | |
4089 | IFS=$as_save_IFS | |
4090 | test -z "$as_dir" && as_dir=. | |
4091 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4092 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4093 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4094 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4095 | break 2 | |
4096 | fi | |
4097 | done | |
4098 | done | |
4099 | ||
4100 | fi | |
4101 | fi | |
4102 | RANLIB=$ac_cv_prog_RANLIB | |
4103 | if test -n "$RANLIB"; then | |
4104 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
4105 | echo "${ECHO_T}$RANLIB" >&6 | |
4106 | else | |
4107 | echo "$as_me:$LINENO: result: no" >&5 | |
4108 | echo "${ECHO_T}no" >&6 | |
4109 | fi | |
4110 | ||
4111 | fi | |
4112 | if test -z "$ac_cv_prog_RANLIB"; then | |
4113 | ac_ct_RANLIB=$RANLIB | |
4114 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4115 | set dummy ranlib; ac_word=$2 | |
4116 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4117 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4118 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
4119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4120 | else | |
4121 | if test -n "$ac_ct_RANLIB"; then | |
4122 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4123 | else | |
4124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4125 | for as_dir in $PATH | |
4126 | do | |
4127 | IFS=$as_save_IFS | |
4128 | test -z "$as_dir" && as_dir=. | |
4129 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4130 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4131 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4132 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4133 | break 2 | |
4134 | fi | |
4135 | done | |
4136 | done | |
4137 | ||
4138 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
4139 | fi | |
4140 | fi | |
4141 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4142 | if test -n "$ac_ct_RANLIB"; then | |
4143 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
4144 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
4145 | else | |
4146 | echo "$as_me:$LINENO: result: no" >&5 | |
4147 | echo "${ECHO_T}no" >&6 | |
4148 | fi | |
4149 | ||
4150 | RANLIB=$ac_ct_RANLIB | |
4151 | else | |
4152 | RANLIB="$ac_cv_prog_RANLIB" | |
4153 | fi | |
4154 | ||
4155 | if test -n "$ac_tool_prefix"; then | |
4156 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4157 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4158 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4159 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4160 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
4161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4162 | else | |
4163 | if test -n "$STRIP"; then | |
4164 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4165 | else | |
4166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4167 | for as_dir in $PATH | |
4168 | do | |
4169 | IFS=$as_save_IFS | |
4170 | test -z "$as_dir" && as_dir=. | |
4171 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4172 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4173 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4174 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4175 | break 2 | |
4176 | fi | |
4177 | done | |
4178 | done | |
4179 | ||
4180 | fi | |
4181 | fi | |
4182 | STRIP=$ac_cv_prog_STRIP | |
4183 | if test -n "$STRIP"; then | |
4184 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
4185 | echo "${ECHO_T}$STRIP" >&6 | |
4186 | else | |
4187 | echo "$as_me:$LINENO: result: no" >&5 | |
4188 | echo "${ECHO_T}no" >&6 | |
4189 | fi | |
4190 | ||
4191 | fi | |
4192 | if test -z "$ac_cv_prog_STRIP"; then | |
4193 | ac_ct_STRIP=$STRIP | |
4194 | # Extract the first word of "strip", so it can be a program name with args. | |
4195 | set dummy strip; ac_word=$2 | |
4196 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4197 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4198 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
4199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4200 | else | |
4201 | if test -n "$ac_ct_STRIP"; then | |
4202 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4203 | else | |
4204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4205 | for as_dir in $PATH | |
4206 | do | |
4207 | IFS=$as_save_IFS | |
4208 | test -z "$as_dir" && as_dir=. | |
4209 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4210 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4211 | ac_cv_prog_ac_ct_STRIP="strip" | |
4212 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4213 | break 2 | |
4214 | fi | |
4215 | done | |
4216 | done | |
4217 | ||
4218 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
4219 | fi | |
4220 | fi | |
4221 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
4222 | if test -n "$ac_ct_STRIP"; then | |
4223 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
4224 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
4225 | else | |
4226 | echo "$as_me:$LINENO: result: no" >&5 | |
4227 | echo "${ECHO_T}no" >&6 | |
4228 | fi | |
4229 | ||
4230 | STRIP=$ac_ct_STRIP | |
4231 | else | |
4232 | STRIP="$ac_cv_prog_STRIP" | |
4233 | fi | |
4234 | ||
4235 | ||
4236 | # Check for any special flags to pass to ltconfig. | |
4237 | libtool_flags="--cache-file=$cache_file" | |
4238 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
4239 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
4240 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
4241 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" | |
4242 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
4243 | ||
4244 | ||
4245 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
4246 | if test "${enable_libtool_lock+set}" = set; then | |
4247 | enableval="$enable_libtool_lock" | |
4248 | ||
4249 | fi; | |
4250 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
4251 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
4252 | ||
4253 | ||
4254 | # Check whether --with-pic or --without-pic was given. | |
4255 | if test "${with_pic+set}" = set; then | |
4256 | withval="$with_pic" | |
4257 | pic_mode="$withval" | |
4258 | else | |
4259 | pic_mode=default | |
4260 | fi; | |
4261 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" | |
4262 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
4263 | ||
4264 | # Some flags need to be propagated to the compiler or linker for good | |
4265 | # libtool support. | |
4266 | case $host in | |
4267 | *-*-irix6*) | |
4268 | # Find out which ABI we are using. | |
4269 | echo '#line 4269 "configure"' > conftest.$ac_ext | |
4270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4271 | (eval $ac_compile) 2>&5 | |
4272 | ac_status=$? | |
4273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4274 | (exit $ac_status); }; then | |
4275 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
4276 | case `/usr/bin/file conftest.$ac_objext` in | |
4277 | *32-bit*) | |
4278 | LD="${LD-ld} -melf32bsmip" | |
4279 | ;; | |
4280 | *N32*) | |
4281 | LD="${LD-ld} -melf32bmipn32" | |
4282 | ;; | |
4283 | *64-bit*) | |
4284 | LD="${LD-ld} -melf64bmip" | |
4285 | ;; | |
4286 | esac | |
4287 | else | |
4288 | case `/usr/bin/file conftest.$ac_objext` in | |
4289 | *32-bit*) | |
4290 | LD="${LD-ld} -32" | |
4291 | ;; | |
4292 | *N32*) | |
4293 | LD="${LD-ld} -n32" | |
4294 | ;; | |
4295 | *64-bit*) | |
4296 | LD="${LD-ld} -64" | |
4297 | ;; | |
4298 | esac | |
4299 | fi | |
4300 | fi | |
4301 | rm -rf conftest* | |
4302 | ;; | |
4303 | ||
4304 | ia64-*-hpux*) | |
4305 | # Find out which ABI we are using. | |
4306 | echo 'int i;' > conftest.$ac_ext | |
4307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4308 | (eval $ac_compile) 2>&5 | |
4309 | ac_status=$? | |
4310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4311 | (exit $ac_status); }; then | |
4312 | case "`/usr/bin/file conftest.o`" in | |
4313 | *ELF-32*) | |
4314 | HPUX_IA64_MODE="32" | |
4315 | ;; | |
4316 | *ELF-64*) | |
4317 | HPUX_IA64_MODE="64" | |
4318 | ;; | |
4319 | esac | |
4320 | fi | |
4321 | rm -rf conftest* | |
4322 | ;; | |
4323 | ||
4324 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | |
4325 | # Find out which ABI we are using. | |
4326 | echo 'int i;' > conftest.$ac_ext | |
4327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4328 | (eval $ac_compile) 2>&5 | |
4329 | ac_status=$? | |
4330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4331 | (exit $ac_status); }; then | |
4332 | case "`/usr/bin/file conftest.o`" in | |
4333 | *32-bit*) | |
4334 | case $host in | |
4335 | x86_64-*linux*) | |
4336 | LD="${LD-ld} -m elf_i386" | |
4337 | ;; | |
4338 | ppc64-*linux*|powerpc64-*linux*) | |
4339 | LD="${LD-ld} -m elf32ppclinux" | |
4340 | ;; | |
4341 | s390x-*linux*) | |
4342 | LD="${LD-ld} -m elf_s390" | |
4343 | ;; | |
4344 | sparc64-*linux*) | |
4345 | LD="${LD-ld} -m elf32_sparc" | |
4346 | ;; | |
4347 | esac | |
4348 | ;; | |
4349 | *64-bit*) | |
4350 | case $host in | |
4351 | x86_64-*linux*) | |
4352 | LD="${LD-ld} -m elf_x86_64" | |
4353 | ;; | |
4354 | ppc*-*linux*|powerpc*-*linux*) | |
4355 | LD="${LD-ld} -m elf64ppc" | |
4356 | ;; | |
4357 | s390*-*linux*) | |
4358 | LD="${LD-ld} -m elf64_s390" | |
4359 | ;; | |
4360 | sparc*-*linux*) | |
4361 | LD="${LD-ld} -m elf64_sparc" | |
4362 | ;; | |
4363 | esac | |
4364 | ;; | |
4365 | esac | |
4366 | fi | |
4367 | rm -rf conftest* | |
4368 | ;; | |
4369 | ||
4370 | *-*-sco3.2v5*) | |
4371 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
4372 | SAVE_CFLAGS="$CFLAGS" | |
4373 | CFLAGS="$CFLAGS -belf" | |
4374 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
4375 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
4376 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
4377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4378 | else | |
4379 | ||
4380 | ||
4381 | ac_ext=c | |
4382 | ac_cpp='$CPP $CPPFLAGS' | |
4383 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4384 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4385 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4386 | ||
4387 | if test x$gcc_no_link = xyes; then | |
4388 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
4389 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
4390 | { (exit 1); exit 1; }; } | |
4391 | fi | |
4392 | cat >conftest.$ac_ext <<_ACEOF | |
4393 | #line $LINENO "configure" | |
4394 | /* confdefs.h. */ | |
4395 | _ACEOF | |
4396 | cat confdefs.h >>conftest.$ac_ext | |
4397 | cat >>conftest.$ac_ext <<_ACEOF | |
4398 | /* end confdefs.h. */ | |
4399 | ||
4400 | int | |
4401 | main () | |
4402 | { | |
4403 | ||
4404 | ; | |
4405 | return 0; | |
4406 | } | |
4407 | _ACEOF | |
4408 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4409 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4410 | (eval $ac_link) 2>&5 | |
4411 | ac_status=$? | |
4412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4413 | (exit $ac_status); } && | |
4414 | { ac_try='test -s conftest$ac_exeext' | |
4415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4416 | (eval $ac_try) 2>&5 | |
4417 | ac_status=$? | |
4418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4419 | (exit $ac_status); }; }; then | |
4420 | lt_cv_cc_needs_belf=yes | |
4421 | else | |
4422 | echo "$as_me: failed program was:" >&5 | |
4423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4424 | ||
4425 | lt_cv_cc_needs_belf=no | |
4426 | fi | |
4427 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
4428 | ac_ext=c | |
4429 | ac_cpp='$CPP $CPPFLAGS' | |
4430 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4431 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4432 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4433 | ||
4434 | fi | |
4435 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
4436 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
4437 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
4438 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4439 | CFLAGS="$SAVE_CFLAGS" | |
4440 | fi | |
4441 | ;; | |
4442 | ||
4443 | ||
4444 | esac | |
4445 | ||
4446 | ||
4447 | # Save cache, so that ltconfig can load it | |
4448 | cat >confcache <<\_ACEOF | |
4449 | # This file is a shell script that caches the results of configure | |
4450 | # tests run on this system so they can be shared between configure | |
4451 | # scripts and configure runs, see configure's option --config-cache. | |
4452 | # It is not useful on other systems. If it contains results you don't | |
4453 | # want to keep, you may remove or edit it. | |
4454 | # | |
4455 | # config.status only pays attention to the cache file if you give it | |
4456 | # the --recheck option to rerun configure. | |
4457 | # | |
4458 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
4459 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4460 | # following values. | |
4461 | ||
4462 | _ACEOF | |
4463 | ||
4464 | # The following way of writing the cache mishandles newlines in values, | |
4465 | # but we know of no workaround that is simple, portable, and efficient. | |
4466 | # So, don't put newlines in cache variables' values. | |
4467 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4468 | # and sets the high bit in the cache file unless we assign to the vars. | |
4469 | { | |
4470 | (set) 2>&1 | | |
4471 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
4472 | *ac_space=\ *) | |
4473 | # `set' does not quote correctly, so add quotes (double-quote | |
4474 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
4475 | sed -n \ | |
4476 | "s/'/'\\\\''/g; | |
4477 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
4478 | ;; | |
4479 | *) | |
4480 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4481 | sed -n \ | |
4482 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
4483 | ;; | |
4484 | esac; | |
4485 | } | | |
4486 | sed ' | |
4487 | t clear | |
4488 | : clear | |
4489 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
4490 | t end | |
4491 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
4492 | : end' >>confcache | |
4493 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
4494 | if test -w $cache_file; then | |
4495 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
4496 | cat confcache >$cache_file | |
4497 | else | |
4498 | echo "not updating unwritable cache $cache_file" | |
4499 | fi | |
4500 | fi | |
4501 | rm -f confcache | |
4502 | ||
4503 | # Actually configure libtool. ac_aux_dir is where install-sh is found. | |
4504 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
4505 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | |
4506 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ | |
4507 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
4508 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
4509 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
4510 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ | |
4511 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ | |
4512 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 | |
4513 | echo "$as_me: error: libtool configure failed" >&2;} | |
4514 | { (exit 1); exit 1; }; } | |
4515 | ||
4516 | # Reload cache, that may have been modified by ltconfig | |
4517 | if test -r "$cache_file"; then | |
4518 | # Some versions of bash will fail to source /dev/null (special | |
4519 | # files actually), so we avoid doing that. | |
4520 | if test -f "$cache_file"; then | |
4521 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
4522 | echo "$as_me: loading cache $cache_file" >&6;} | |
4523 | case $cache_file in | |
4524 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
4525 | *) . ./$cache_file;; | |
4526 | esac | |
4527 | fi | |
4528 | else | |
4529 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
4530 | echo "$as_me: creating cache $cache_file" >&6;} | |
4531 | >$cache_file | |
4532 | fi | |
4533 | ||
4534 | ||
4535 | # This can be used to rebuild libtool when needed | |
4536 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" | |
4537 | ||
4538 | # Always use our own libtool. | |
4539 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
4540 | ||
4541 | # Redirect the config.log output again, so that the ltconfig log is not | |
4542 | # clobbered by the next message. | |
4543 | exec 5>>./config.log | |
4544 | ||
4545 | ac_ext=cc | |
4546 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4547 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4548 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4549 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4550 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
4551 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
4552 | if test -z "$CXXCPP"; then | |
4553 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
4554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4555 | else | |
4556 | # Double quotes because CXXCPP needs to be expanded | |
4557 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
4558 | do | |
4559 | ac_preproc_ok=false | |
4560 | for ac_cxx_preproc_warn_flag in '' yes | |
4561 | do | |
4562 | # Use a header file that comes with gcc, so configuring glibc | |
4563 | # with a fresh cross-compiler works. | |
4564 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4565 | # <limits.h> exists even on freestanding compilers. | |
4566 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4567 | # not just through cpp. "Syntax error" is here to catch this case. | |
4568 | cat >conftest.$ac_ext <<_ACEOF | |
4569 | #line $LINENO "configure" | |
4570 | /* confdefs.h. */ | |
4571 | _ACEOF | |
4572 | cat confdefs.h >>conftest.$ac_ext | |
4573 | cat >>conftest.$ac_ext <<_ACEOF | |
4574 | /* end confdefs.h. */ | |
4575 | #ifdef __STDC__ | |
4576 | # include <limits.h> | |
4577 | #else | |
4578 | # include <assert.h> | |
4579 | #endif | |
4580 | Syntax error | |
4581 | _ACEOF | |
4582 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4583 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4584 | ac_status=$? | |
4585 | grep -v '^ *+' conftest.er1 >conftest.err | |
4586 | rm -f conftest.er1 | |
4587 | cat conftest.err >&5 | |
4588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4589 | (exit $ac_status); } >/dev/null; then | |
4590 | if test -s conftest.err; then | |
4591 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
4592 | else | |
4593 | ac_cpp_err= | |
4594 | fi | |
4595 | else | |
4596 | ac_cpp_err=yes | |
4597 | fi | |
4598 | if test -z "$ac_cpp_err"; then | |
4599 | : | |
4600 | else | |
4601 | echo "$as_me: failed program was:" >&5 | |
4602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4603 | ||
4604 | # Broken: fails on valid input. | |
4605 | continue | |
4606 | fi | |
4607 | rm -f conftest.err conftest.$ac_ext | |
4608 | ||
4609 | # OK, works on sane cases. Now check whether non-existent headers | |
4610 | # can be detected and how. | |
4611 | cat >conftest.$ac_ext <<_ACEOF | |
4612 | #line $LINENO "configure" | |
4613 | /* confdefs.h. */ | |
4614 | _ACEOF | |
4615 | cat confdefs.h >>conftest.$ac_ext | |
4616 | cat >>conftest.$ac_ext <<_ACEOF | |
4617 | /* end confdefs.h. */ | |
4618 | #include <ac_nonexistent.h> | |
4619 | _ACEOF | |
4620 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4621 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4622 | ac_status=$? | |
4623 | grep -v '^ *+' conftest.er1 >conftest.err | |
4624 | rm -f conftest.er1 | |
4625 | cat conftest.err >&5 | |
4626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4627 | (exit $ac_status); } >/dev/null; then | |
4628 | if test -s conftest.err; then | |
4629 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
4630 | else | |
4631 | ac_cpp_err= | |
4632 | fi | |
4633 | else | |
4634 | ac_cpp_err=yes | |
4635 | fi | |
4636 | if test -z "$ac_cpp_err"; then | |
4637 | # Broken: success on invalid input. | |
4638 | continue | |
4639 | else | |
4640 | echo "$as_me: failed program was:" >&5 | |
4641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4642 | ||
4643 | # Passes both tests. | |
4644 | ac_preproc_ok=: | |
4645 | break | |
4646 | fi | |
4647 | rm -f conftest.err conftest.$ac_ext | |
4648 | ||
4649 | done | |
4650 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4651 | rm -f conftest.err conftest.$ac_ext | |
4652 | if $ac_preproc_ok; then | |
4653 | break | |
4654 | fi | |
4655 | ||
4656 | done | |
4657 | ac_cv_prog_CXXCPP=$CXXCPP | |
4658 | ||
4659 | fi | |
4660 | CXXCPP=$ac_cv_prog_CXXCPP | |
4661 | else | |
4662 | ac_cv_prog_CXXCPP=$CXXCPP | |
4663 | fi | |
4664 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
4665 | echo "${ECHO_T}$CXXCPP" >&6 | |
4666 | ac_preproc_ok=false | |
4667 | for ac_cxx_preproc_warn_flag in '' yes | |
4668 | do | |
4669 | # Use a header file that comes with gcc, so configuring glibc | |
4670 | # with a fresh cross-compiler works. | |
4671 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4672 | # <limits.h> exists even on freestanding compilers. | |
4673 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4674 | # not just through cpp. "Syntax error" is here to catch this case. | |
4675 | cat >conftest.$ac_ext <<_ACEOF | |
4676 | #line $LINENO "configure" | |
4677 | /* confdefs.h. */ | |
4678 | _ACEOF | |
4679 | cat confdefs.h >>conftest.$ac_ext | |
4680 | cat >>conftest.$ac_ext <<_ACEOF | |
4681 | /* end confdefs.h. */ | |
4682 | #ifdef __STDC__ | |
4683 | # include <limits.h> | |
4684 | #else | |
4685 | # include <assert.h> | |
4686 | #endif | |
4687 | Syntax error | |
4688 | _ACEOF | |
4689 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4690 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4691 | ac_status=$? | |
4692 | grep -v '^ *+' conftest.er1 >conftest.err | |
4693 | rm -f conftest.er1 | |
4694 | cat conftest.err >&5 | |
4695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4696 | (exit $ac_status); } >/dev/null; then | |
4697 | if test -s conftest.err; then | |
4698 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
4699 | else | |
4700 | ac_cpp_err= | |
4701 | fi | |
4702 | else | |
4703 | ac_cpp_err=yes | |
4704 | fi | |
4705 | if test -z "$ac_cpp_err"; then | |
4706 | : | |
4707 | else | |
4708 | echo "$as_me: failed program was:" >&5 | |
4709 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4710 | ||
4711 | # Broken: fails on valid input. | |
4712 | continue | |
4713 | fi | |
4714 | rm -f conftest.err conftest.$ac_ext | |
4715 | ||
4716 | # OK, works on sane cases. Now check whether non-existent headers | |
4717 | # can be detected and how. | |
4718 | cat >conftest.$ac_ext <<_ACEOF | |
4719 | #line $LINENO "configure" | |
4720 | /* confdefs.h. */ | |
4721 | _ACEOF | |
4722 | cat confdefs.h >>conftest.$ac_ext | |
4723 | cat >>conftest.$ac_ext <<_ACEOF | |
4724 | /* end confdefs.h. */ | |
4725 | #include <ac_nonexistent.h> | |
4726 | _ACEOF | |
4727 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4728 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4729 | ac_status=$? | |
4730 | grep -v '^ *+' conftest.er1 >conftest.err | |
4731 | rm -f conftest.er1 | |
4732 | cat conftest.err >&5 | |
4733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4734 | (exit $ac_status); } >/dev/null; then | |
4735 | if test -s conftest.err; then | |
4736 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
4737 | else | |
4738 | ac_cpp_err= | |
4739 | fi | |
4740 | else | |
4741 | ac_cpp_err=yes | |
4742 | fi | |
4743 | if test -z "$ac_cpp_err"; then | |
4744 | # Broken: success on invalid input. | |
4745 | continue | |
4746 | else | |
4747 | echo "$as_me: failed program was:" >&5 | |
4748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4749 | ||
4750 | # Passes both tests. | |
4751 | ac_preproc_ok=: | |
4752 | break | |
4753 | fi | |
4754 | rm -f conftest.err conftest.$ac_ext | |
4755 | ||
4756 | done | |
4757 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4758 | rm -f conftest.err conftest.$ac_ext | |
4759 | if $ac_preproc_ok; then | |
4760 | : | |
4761 | else | |
4762 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
4763 | See \`config.log' for more details." >&5 | |
4764 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
4765 | See \`config.log' for more details." >&2;} | |
4766 | { (exit 1); exit 1; }; } | |
4767 | fi | |
4768 | ||
4769 | ac_ext=c | |
4770 | ac_cpp='$CPP $CPPFLAGS' | |
4771 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4772 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4773 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4774 | ||
4775 | ||
4776 | ||
4777 | LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh" | |
4778 | lt_save_CC="$CC" | |
4779 | lt_save_CFLAGS="$CFLAGS" | |
4780 | AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
4781 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | |
4782 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ | |
4783 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
4784 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
4785 | deplibs_check_method="$deplibs_check_method" \ | |
4786 | file_magic_cmd="$file_magic_cmd" \ | |
4787 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \ | |
4788 | --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \ | |
4789 | || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5 | |
4790 | echo "$as_me: error: libtool tag configuration failed" >&2;} | |
4791 | { (exit 1); exit 1; }; } | |
4792 | CC="$lt_save_CC" | |
4793 | CFLAGS="$lt_save_CFLAGS" | |
4794 | ||
4795 | # Redirect the config.log output again, so that the ltconfig log is not | |
4796 | # clobbered by the next message. | |
4797 | exec 5>>./config.log | |
4798 | ||
4799 | ||
4800 | ||
4801 | ||
4802 | ||
4803 | ||
4804 | ||
4805 | ||
4806 | #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10 | |
4807 | ||
4808 | # Possibly disable most of the library. | |
4809 | ## XXX Consider skipping unncessary tests altogether in this case, rather | |
4810 | ## than just ignoring the results. Faster /and/ more correct, win win. | |
4811 | ||
4812 | # Check whether --enable-hosted-libstdcxx or --disable-hosted-libstdcxx was given. | |
4813 | if test "${enable_hosted_libstdcxx+set}" = set; then | |
4814 | enableval="$enable_hosted_libstdcxx" | |
4815 | ||
4816 | else | |
4817 | enable_hosted_libstdcxx=yes | |
4818 | fi; | |
4819 | if test "$enable_hosted_libstdcxx" = no; then | |
4820 | { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5 | |
4821 | echo "$as_me: Only freestanding libraries will be built" >&6;} | |
4822 | is_hosted=no | |
4823 | hosted_define=0 | |
4824 | enable_abi_check=no | |
4825 | enable_libstdcxx_pch=no | |
4826 | else | |
4827 | is_hosted=yes | |
4828 | hosted_define=1 | |
4829 | fi | |
4830 | ||
4831 | ||
4832 | cat >>confdefs.h <<_ACEOF | |
4833 | #define _GLIBCXX_HOSTED $hosted_define | |
4834 | _ACEOF | |
4835 | ||
4836 | ||
4837 | ||
4838 | # Check for support bits and g++ features that don't require linking. | |
4839 | ||
4840 | echo "$as_me:$LINENO: checking for exception model to use" >&5 | |
4841 | echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6 | |
4842 | ||
4843 | ||
4844 | ac_ext=cc | |
4845 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4846 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4847 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4848 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4849 | ||
4850 | # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given. | |
4851 | if test "${enable_sjlj_exceptions+set}" = set; then | |
4852 | enableval="$enable_sjlj_exceptions" | |
4853 | ||
4854 | case "$enableval" in | |
4855 | yes|no|auto) ;; | |
4856 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5 | |
4857 | echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;} | |
4858 | { (exit 1); exit 1; }; } ;; | |
4859 | esac | |
4860 | ||
4861 | else | |
4862 | enable_sjlj_exceptions=auto | |
4863 | fi; | |
4864 | ||
4865 | ||
4866 | if test $enable_sjlj_exceptions = auto; then | |
4867 | # Botheration. Now we've got to detect the exception model. Link tests | |
4868 | # against libgcc.a are problematic since we've not been given proper -L | |
4869 | # bits for single-tree newlib and libgloss. | |
4870 | # | |
4871 | # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style. | |
4872 | cat > conftest.$ac_ext << EOF | |
4873 | #line 4873 "configure" | |
4874 | struct S { ~S(); }; | |
4875 | void bar(); | |
4876 | void foo() | |
4877 | { | |
4878 | S s; | |
4879 | bar(); | |
4880 | } | |
4881 | EOF | |
4882 | old_CXXFLAGS="$CXXFLAGS" | |
4883 | CXXFLAGS=-S | |
4884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4885 | (eval $ac_compile) 2>&5 | |
4886 | ac_status=$? | |
4887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4888 | (exit $ac_status); }; then | |
4889 | if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then | |
4890 | enable_sjlj_exceptions=yes | |
4891 | elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then | |
4892 | enable_sjlj_exceptions=no | |
4893 | fi | |
4894 | fi | |
4895 | CXXFLAGS="$old_CXXFLAGS" | |
4896 | rm -f conftest* | |
4897 | fi | |
4898 | ||
4899 | # This is a tad weird, for hysterical raisins. We have to map enable/disable | |
4900 | # to two different models. | |
4901 | case $enable_sjlj_exceptions in | |
4902 | yes) | |
4903 | ||
4904 | cat >>confdefs.h <<\_ACEOF | |
4905 | #define _GLIBCXX_SJLJ_EXCEPTIONS 1 | |
4906 | _ACEOF | |
4907 | ||
4908 | ac_exception_model_name=sjlj | |
4909 | ;; | |
4910 | no) | |
4911 | ac_exception_model_name="call frame" | |
4912 | ;; | |
4913 | *) | |
4914 | { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5 | |
4915 | echo "$as_me: error: unable to detect exception model" >&2;} | |
4916 | { (exit 1); exit 1; }; } | |
4917 | ;; | |
4918 | esac | |
4919 | ac_ext=c | |
4920 | ac_cpp='$CPP $CPPFLAGS' | |
4921 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4922 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4923 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4924 | ||
4925 | echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5 | |
4926 | echo "${ECHO_T}$ac_exception_model_name" >&6 | |
4927 | ||
4928 | ||
4929 | echo "$as_me:$LINENO: checking for enabled PCH" >&5 | |
4930 | echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6 | |
4931 | # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given. | |
4932 | if test "${enable_libstdcxx_pch+set}" = set; then | |
4933 | enableval="$enable_libstdcxx_pch" | |
4934 | ||
4935 | case "$enableval" in | |
4936 | yes|no) ;; | |
4937 | *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5 | |
4938 | echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;} | |
4939 | { (exit 1); exit 1; }; } ;; | |
4940 | esac | |
4941 | ||
4942 | else | |
4943 | enable_libstdcxx_pch=$is_hosted | |
4944 | fi; | |
4945 | ||
4946 | echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5 | |
4947 | echo "${ECHO_T}$enable_libstdcxx_pch" >&6 | |
4948 | ||
4949 | if test $enable_libstdcxx_pch = yes; then | |
4950 | echo "$as_me:$LINENO: checking for compiler with PCH support" >&5 | |
4951 | echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6 | |
4952 | if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then | |
4953 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4954 | else | |
4955 | ac_save_CXXFLAGS="$CXXFLAGS" | |
4956 | CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated" | |
4957 | ||
4958 | ||
4959 | ac_ext=cc | |
4960 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4961 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4962 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4963 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4964 | ||
4965 | echo '#include <math.h>' > conftest.h | |
4966 | if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \ | |
4967 | -o conftest.h.gch 1>&5 2>&1 && | |
4968 | echo '#error "pch failed"' > conftest.h && | |
4969 | echo '#include "conftest.h"' > conftest.cc && | |
4970 | $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ; | |
4971 | then | |
4972 | glibcxx_cv_prog_CXX_pch=yes | |
4973 | else | |
4974 | glibcxx_cv_prog_CXX_pch=no | |
4975 | fi | |
4976 | rm -f conftest* | |
4977 | CXXFLAGS=$ac_save_CXXFLAGS | |
4978 | ac_ext=c | |
4979 | ac_cpp='$CPP $CPPFLAGS' | |
4980 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4981 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4982 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4983 | ||
4984 | ||
4985 | fi | |
4986 | echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5 | |
4987 | echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6 | |
4988 | enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch | |
4989 | fi | |
4990 | ||
4991 | ||
4992 | if test $enable_libstdcxx_pch = yes; then | |
4993 | glibcxx_PCHFLAGS="-include bits/stdc++.h" | |
4994 | else | |
4995 | glibcxx_PCHFLAGS="" | |
4996 | fi | |
4997 | ||
4998 | ||
4999 | ||
5000 | # Enable all the variable C++ runtime options. | |
5001 | # NB: C_MBCHAR must come early. | |
5002 | ||
5003 | echo "$as_me:$LINENO: checking for underlying I/O to use" >&5 | |
5004 | echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6 | |
5005 | # Check whether --enable-cstdio or --disable-cstdio was given. | |
5006 | if test "${enable_cstdio+set}" = set; then | |
5007 | enableval="$enable_cstdio" | |
5008 | ||
5009 | case "$enableval" in | |
5010 | stdio) ;; | |
5011 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5 | |
5012 | echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;} | |
5013 | { (exit 1); exit 1; }; } ;; | |
5014 | esac | |
5015 | ||
5016 | else | |
5017 | enable_cstdio=stdio | |
5018 | fi; | |
5019 | ||
5020 | ||
5021 | # Now that libio has been removed, you can have any color you want as long | |
5022 | # as it's black. This is one big no-op until other packages are added, but | |
5023 | # showing the framework never hurts. | |
5024 | case ${enable_cstdio} in | |
5025 | stdio) | |
5026 | CSTDIO_H=config/io/c_io_stdio.h | |
5027 | BASIC_FILE_H=config/io/basic_file_stdio.h | |
5028 | BASIC_FILE_CC=config/io/basic_file_stdio.cc | |
5029 | echo "$as_me:$LINENO: result: stdio" >&5 | |
5030 | echo "${ECHO_T}stdio" >&6 | |
5031 | ;; | |
5032 | esac | |
5033 | ||
5034 | ||
5035 | ||
5036 | ||
5037 | ||
5038 | ac_ext=c | |
5039 | ac_cpp='$CPP $CPPFLAGS' | |
5040 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5041 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5042 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5043 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
5044 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
5045 | # On Suns, sometimes $CPP names a directory. | |
5046 | if test -n "$CPP" && test -d "$CPP"; then | |
5047 | CPP= | |
5048 | fi | |
5049 | if test -z "$CPP"; then | |
5050 | if test "${ac_cv_prog_CPP+set}" = set; then | |
5051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5052 | else | |
5053 | # Double quotes because CPP needs to be expanded | |
5054 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5055 | do | |
5056 | ac_preproc_ok=false | |
5057 | for ac_c_preproc_warn_flag in '' yes | |
5058 | do | |
5059 | # Use a header file that comes with gcc, so configuring glibc | |
5060 | # with a fresh cross-compiler works. | |
5061 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5062 | # <limits.h> exists even on freestanding compilers. | |
5063 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5064 | # not just through cpp. "Syntax error" is here to catch this case. | |
5065 | cat >conftest.$ac_ext <<_ACEOF | |
5066 | #line $LINENO "configure" | |
5067 | /* confdefs.h. */ | |
5068 | _ACEOF | |
5069 | cat confdefs.h >>conftest.$ac_ext | |
5070 | cat >>conftest.$ac_ext <<_ACEOF | |
5071 | /* end confdefs.h. */ | |
5072 | #ifdef __STDC__ | |
5073 | # include <limits.h> | |
5074 | #else | |
5075 | # include <assert.h> | |
5076 | #endif | |
5077 | Syntax error | |
5078 | _ACEOF | |
5079 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5080 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5081 | ac_status=$? | |
5082 | grep -v '^ *+' conftest.er1 >conftest.err | |
5083 | rm -f conftest.er1 | |
5084 | cat conftest.err >&5 | |
5085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5086 | (exit $ac_status); } >/dev/null; then | |
5087 | if test -s conftest.err; then | |
5088 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5089 | else | |
5090 | ac_cpp_err= | |
5091 | fi | |
5092 | else | |
5093 | ac_cpp_err=yes | |
5094 | fi | |
5095 | if test -z "$ac_cpp_err"; then | |
5096 | : | |
5097 | else | |
5098 | echo "$as_me: failed program was:" >&5 | |
5099 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5100 | ||
5101 | # Broken: fails on valid input. | |
5102 | continue | |
5103 | fi | |
5104 | rm -f conftest.err conftest.$ac_ext | |
5105 | ||
5106 | # OK, works on sane cases. Now check whether non-existent headers | |
5107 | # can be detected and how. | |
5108 | cat >conftest.$ac_ext <<_ACEOF | |
5109 | #line $LINENO "configure" | |
5110 | /* confdefs.h. */ | |
5111 | _ACEOF | |
5112 | cat confdefs.h >>conftest.$ac_ext | |
5113 | cat >>conftest.$ac_ext <<_ACEOF | |
5114 | /* end confdefs.h. */ | |
5115 | #include <ac_nonexistent.h> | |
5116 | _ACEOF | |
5117 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5118 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5119 | ac_status=$? | |
5120 | grep -v '^ *+' conftest.er1 >conftest.err | |
5121 | rm -f conftest.er1 | |
5122 | cat conftest.err >&5 | |
5123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5124 | (exit $ac_status); } >/dev/null; then | |
5125 | if test -s conftest.err; then | |
5126 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5127 | else | |
5128 | ac_cpp_err= | |
5129 | fi | |
5130 | else | |
5131 | ac_cpp_err=yes | |
5132 | fi | |
5133 | if test -z "$ac_cpp_err"; then | |
5134 | # Broken: success on invalid input. | |
5135 | continue | |
5136 | else | |
5137 | echo "$as_me: failed program was:" >&5 | |
5138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5139 | ||
5140 | # Passes both tests. | |
5141 | ac_preproc_ok=: | |
5142 | break | |
5143 | fi | |
5144 | rm -f conftest.err conftest.$ac_ext | |
5145 | ||
5146 | done | |
5147 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5148 | rm -f conftest.err conftest.$ac_ext | |
5149 | if $ac_preproc_ok; then | |
5150 | break | |
5151 | fi | |
5152 | ||
5153 | done | |
5154 | ac_cv_prog_CPP=$CPP | |
5155 | ||
5156 | fi | |
5157 | CPP=$ac_cv_prog_CPP | |
5158 | else | |
5159 | ac_cv_prog_CPP=$CPP | |
5160 | fi | |
5161 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
5162 | echo "${ECHO_T}$CPP" >&6 | |
5163 | ac_preproc_ok=false | |
5164 | for ac_c_preproc_warn_flag in '' yes | |
5165 | do | |
5166 | # Use a header file that comes with gcc, so configuring glibc | |
5167 | # with a fresh cross-compiler works. | |
5168 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5169 | # <limits.h> exists even on freestanding compilers. | |
5170 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5171 | # not just through cpp. "Syntax error" is here to catch this case. | |
5172 | cat >conftest.$ac_ext <<_ACEOF | |
5173 | #line $LINENO "configure" | |
5174 | /* confdefs.h. */ | |
5175 | _ACEOF | |
5176 | cat confdefs.h >>conftest.$ac_ext | |
5177 | cat >>conftest.$ac_ext <<_ACEOF | |
5178 | /* end confdefs.h. */ | |
5179 | #ifdef __STDC__ | |
5180 | # include <limits.h> | |
5181 | #else | |
5182 | # include <assert.h> | |
5183 | #endif | |
5184 | Syntax error | |
5185 | _ACEOF | |
5186 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5187 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5188 | ac_status=$? | |
5189 | grep -v '^ *+' conftest.er1 >conftest.err | |
5190 | rm -f conftest.er1 | |
5191 | cat conftest.err >&5 | |
5192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5193 | (exit $ac_status); } >/dev/null; then | |
5194 | if test -s conftest.err; then | |
5195 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5196 | else | |
5197 | ac_cpp_err= | |
5198 | fi | |
5199 | else | |
5200 | ac_cpp_err=yes | |
5201 | fi | |
5202 | if test -z "$ac_cpp_err"; then | |
5203 | : | |
5204 | else | |
5205 | echo "$as_me: failed program was:" >&5 | |
5206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5207 | ||
5208 | # Broken: fails on valid input. | |
5209 | continue | |
5210 | fi | |
5211 | rm -f conftest.err conftest.$ac_ext | |
5212 | ||
5213 | # OK, works on sane cases. Now check whether non-existent headers | |
5214 | # can be detected and how. | |
5215 | cat >conftest.$ac_ext <<_ACEOF | |
5216 | #line $LINENO "configure" | |
5217 | /* confdefs.h. */ | |
5218 | _ACEOF | |
5219 | cat confdefs.h >>conftest.$ac_ext | |
5220 | cat >>conftest.$ac_ext <<_ACEOF | |
5221 | /* end confdefs.h. */ | |
5222 | #include <ac_nonexistent.h> | |
5223 | _ACEOF | |
5224 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5225 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5226 | ac_status=$? | |
5227 | grep -v '^ *+' conftest.er1 >conftest.err | |
5228 | rm -f conftest.er1 | |
5229 | cat conftest.err >&5 | |
5230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5231 | (exit $ac_status); } >/dev/null; then | |
5232 | if test -s conftest.err; then | |
5233 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5234 | else | |
5235 | ac_cpp_err= | |
5236 | fi | |
5237 | else | |
5238 | ac_cpp_err=yes | |
5239 | fi | |
5240 | if test -z "$ac_cpp_err"; then | |
5241 | # Broken: success on invalid input. | |
5242 | continue | |
5243 | else | |
5244 | echo "$as_me: failed program was:" >&5 | |
5245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5246 | ||
5247 | # Passes both tests. | |
5248 | ac_preproc_ok=: | |
5249 | break | |
5250 | fi | |
5251 | rm -f conftest.err conftest.$ac_ext | |
5252 | ||
5253 | done | |
5254 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5255 | rm -f conftest.err conftest.$ac_ext | |
5256 | if $ac_preproc_ok; then | |
5257 | : | |
5258 | else | |
5259 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
5260 | See \`config.log' for more details." >&5 | |
5261 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
5262 | See \`config.log' for more details." >&2;} | |
5263 | { (exit 1); exit 1; }; } | |
5264 | fi | |
5265 | ||
5266 | ac_ext=c | |
5267 | ac_cpp='$CPP $CPPFLAGS' | |
5268 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5269 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5270 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5271 | ||
5272 | ||
5273 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
5274 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
5275 | if test "${ac_cv_prog_egrep+set}" = set; then | |
5276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5277 | else | |
5278 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
5279 | then ac_cv_prog_egrep='grep -E' | |
5280 | else ac_cv_prog_egrep='egrep' | |
5281 | fi | |
5282 | fi | |
5283 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
5284 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
5285 | EGREP=$ac_cv_prog_egrep | |
5286 | ||
5287 | ||
5288 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
5289 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5290 | if test "${ac_cv_header_stdc+set}" = set; then | |
5291 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5292 | else | |
5293 | cat >conftest.$ac_ext <<_ACEOF | |
5294 | #line $LINENO "configure" | |
5295 | /* confdefs.h. */ | |
5296 | _ACEOF | |
5297 | cat confdefs.h >>conftest.$ac_ext | |
5298 | cat >>conftest.$ac_ext <<_ACEOF | |
5299 | /* end confdefs.h. */ | |
5300 | #include <stdlib.h> | |
5301 | #include <stdarg.h> | |
5302 | #include <string.h> | |
5303 | #include <float.h> | |
5304 | ||
5305 | int | |
5306 | main () | |
5307 | { | |
5308 | ||
5309 | ; | |
5310 | return 0; | |
5311 | } | |
5312 | _ACEOF | |
5313 | rm -f conftest.$ac_objext | |
5314 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5315 | (eval $ac_compile) 2>&5 | |
5316 | ac_status=$? | |
5317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5318 | (exit $ac_status); } && | |
5319 | { ac_try='test -s conftest.$ac_objext' | |
5320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5321 | (eval $ac_try) 2>&5 | |
5322 | ac_status=$? | |
5323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5324 | (exit $ac_status); }; }; then | |
5325 | ac_cv_header_stdc=yes | |
5326 | else | |
5327 | echo "$as_me: failed program was:" >&5 | |
5328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5329 | ||
5330 | ac_cv_header_stdc=no | |
5331 | fi | |
5332 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5333 | ||
5334 | if test $ac_cv_header_stdc = yes; then | |
5335 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5336 | cat >conftest.$ac_ext <<_ACEOF | |
5337 | #line $LINENO "configure" | |
5338 | /* confdefs.h. */ | |
5339 | _ACEOF | |
5340 | cat confdefs.h >>conftest.$ac_ext | |
5341 | cat >>conftest.$ac_ext <<_ACEOF | |
5342 | /* end confdefs.h. */ | |
5343 | #include <string.h> | |
5344 | ||
5345 | _ACEOF | |
5346 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5347 | $EGREP "memchr" >/dev/null 2>&1; then | |
5348 | : | |
5349 | else | |
5350 | ac_cv_header_stdc=no | |
5351 | fi | |
5352 | rm -f conftest* | |
5353 | ||
5354 | fi | |
5355 | ||
5356 | if test $ac_cv_header_stdc = yes; then | |
5357 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5358 | cat >conftest.$ac_ext <<_ACEOF | |
5359 | #line $LINENO "configure" | |
5360 | /* confdefs.h. */ | |
5361 | _ACEOF | |
5362 | cat confdefs.h >>conftest.$ac_ext | |
5363 | cat >>conftest.$ac_ext <<_ACEOF | |
5364 | /* end confdefs.h. */ | |
5365 | #include <stdlib.h> | |
5366 | ||
5367 | _ACEOF | |
5368 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5369 | $EGREP "free" >/dev/null 2>&1; then | |
5370 | : | |
5371 | else | |
5372 | ac_cv_header_stdc=no | |
5373 | fi | |
5374 | rm -f conftest* | |
5375 | ||
5376 | fi | |
5377 | ||
5378 | if test $ac_cv_header_stdc = yes; then | |
5379 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5380 | if test "$cross_compiling" = yes; then | |
5381 | : | |
5382 | else | |
5383 | cat >conftest.$ac_ext <<_ACEOF | |
5384 | #line $LINENO "configure" | |
5385 | /* confdefs.h. */ | |
5386 | _ACEOF | |
5387 | cat confdefs.h >>conftest.$ac_ext | |
5388 | cat >>conftest.$ac_ext <<_ACEOF | |
5389 | /* end confdefs.h. */ | |
5390 | #include <ctype.h> | |
5391 | #if ((' ' & 0x0FF) == 0x020) | |
5392 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5393 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5394 | #else | |
5395 | # define ISLOWER(c) \ | |
5396 | (('a' <= (c) && (c) <= 'i') \ | |
5397 | || ('j' <= (c) && (c) <= 'r') \ | |
5398 | || ('s' <= (c) && (c) <= 'z')) | |
5399 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5400 | #endif | |
5401 | ||
5402 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5403 | int | |
5404 | main () | |
5405 | { | |
5406 | int i; | |
5407 | for (i = 0; i < 256; i++) | |
5408 | if (XOR (islower (i), ISLOWER (i)) | |
5409 | || toupper (i) != TOUPPER (i)) | |
5410 | exit(2); | |
5411 | exit (0); | |
5412 | } | |
5413 | _ACEOF | |
5414 | rm -f conftest$ac_exeext | |
5415 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5416 | (eval $ac_link) 2>&5 | |
5417 | ac_status=$? | |
5418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5419 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5421 | (eval $ac_try) 2>&5 | |
5422 | ac_status=$? | |
5423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5424 | (exit $ac_status); }; }; then | |
5425 | : | |
5426 | else | |
5427 | echo "$as_me: program exited with status $ac_status" >&5 | |
5428 | echo "$as_me: failed program was:" >&5 | |
5429 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5430 | ||
5431 | ( exit $ac_status ) | |
5432 | ac_cv_header_stdc=no | |
5433 | fi | |
5434 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5435 | fi | |
5436 | fi | |
5437 | fi | |
5438 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
5439 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
5440 | if test $ac_cv_header_stdc = yes; then | |
5441 | ||
5442 | cat >>confdefs.h <<\_ACEOF | |
5443 | #define STDC_HEADERS 1 | |
5444 | _ACEOF | |
5445 | ||
5446 | fi | |
5447 | ||
5448 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5449 | ||
5450 | ||
5451 | ||
5452 | ||
5453 | ||
5454 | ||
5455 | ||
5456 | ||
5457 | ||
5458 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5459 | inttypes.h stdint.h unistd.h | |
5460 | do | |
5461 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5462 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5463 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5464 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5466 | else | |
5467 | cat >conftest.$ac_ext <<_ACEOF | |
5468 | #line $LINENO "configure" | |
5469 | /* confdefs.h. */ | |
5470 | _ACEOF | |
5471 | cat confdefs.h >>conftest.$ac_ext | |
5472 | cat >>conftest.$ac_ext <<_ACEOF | |
5473 | /* end confdefs.h. */ | |
5474 | $ac_includes_default | |
5475 | ||
5476 | #include <$ac_header> | |
5477 | _ACEOF | |
5478 | rm -f conftest.$ac_objext | |
5479 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5480 | (eval $ac_compile) 2>&5 | |
5481 | ac_status=$? | |
5482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5483 | (exit $ac_status); } && | |
5484 | { ac_try='test -s conftest.$ac_objext' | |
5485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5486 | (eval $ac_try) 2>&5 | |
5487 | ac_status=$? | |
5488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5489 | (exit $ac_status); }; }; then | |
5490 | eval "$as_ac_Header=yes" | |
5491 | else | |
5492 | echo "$as_me: failed program was:" >&5 | |
5493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5494 | ||
5495 | eval "$as_ac_Header=no" | |
5496 | fi | |
5497 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5498 | fi | |
5499 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5500 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5501 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5502 | cat >>confdefs.h <<_ACEOF | |
5503 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5504 | _ACEOF | |
5505 | ||
5506 | fi | |
5507 | ||
5508 | done | |
5509 | ||
5510 | ||
5511 | ||
5512 | echo "$as_me:$LINENO: checking for C locale to use" >&5 | |
5513 | echo $ECHO_N "checking for C locale to use... $ECHO_C" >&6 | |
5514 | # Check whether --enable-clocale or --disable-clocale was given. | |
5515 | if test "${enable_clocale+set}" = set; then | |
5516 | enableval="$enable_clocale" | |
5517 | ||
5518 | case "$enableval" in | |
5519 | generic|gnu|ieee_1003.1-2001|yes|no|auto) ;; | |
5520 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5 | |
5521 | echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;} | |
5522 | { (exit 1); exit 1; }; } ;; | |
5523 | esac | |
5524 | ||
5525 | else | |
5526 | enable_clocale=auto | |
5527 | fi; | |
5528 | ||
5529 | ||
5530 | # If they didn't use this option switch, or if they specified --enable | |
5531 | # with no specific model, we'll have to look for one. If they | |
5532 | # specified --disable (???), do likewise. | |
5533 | if test $enable_clocale = no || test $enable_clocale = yes; then | |
5534 | enable_clocale=auto | |
5535 | fi | |
5536 | ||
5537 | # Either a known package, or "auto" | |
5538 | enable_clocale_flag=$enable_clocale | |
5539 | ||
5540 | # Probe for locale support if no specific model is specified. | |
5541 | # Default to "generic". | |
5542 | if test $enable_clocale_flag = auto; then | |
5543 | case x${target_os} in | |
5544 | xlinux* | xgnu* | xkfreebsd*-gnu | xknetbsd*-gnu) | |
5545 | cat >conftest.$ac_ext <<_ACEOF | |
5546 | #line $LINENO "configure" | |
5547 | /* confdefs.h. */ | |
5548 | _ACEOF | |
5549 | cat confdefs.h >>conftest.$ac_ext | |
5550 | cat >>conftest.$ac_ext <<_ACEOF | |
5551 | /* end confdefs.h. */ | |
5552 | ||
5553 | #include <features.h> | |
5554 | #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) | |
5555 | _GLIBCXX_ok | |
5556 | #endif | |
5557 | ||
5558 | _ACEOF | |
5559 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5560 | $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then | |
5561 | enable_clocale_flag=gnu | |
5562 | else | |
5563 | enable_clocale_flag=generic | |
5564 | fi | |
5565 | rm -f conftest* | |
5566 | ||
5567 | ||
5568 | # Test for bugs early in glibc-2.2.x series | |
5569 | if test x$enable_clocale_flag = xgnu; then | |
5570 | if test "$cross_compiling" = yes; then | |
5571 | enable_clocale_flag=generic | |
5572 | else | |
5573 | cat >conftest.$ac_ext <<_ACEOF | |
5574 | #line $LINENO "configure" | |
5575 | /* confdefs.h. */ | |
5576 | _ACEOF | |
5577 | cat confdefs.h >>conftest.$ac_ext | |
5578 | cat >>conftest.$ac_ext <<_ACEOF | |
5579 | /* end confdefs.h. */ | |
5580 | ||
5581 | #define _GNU_SOURCE 1 | |
5582 | #include <locale.h> | |
5583 | #include <string.h> | |
5584 | #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) | |
5585 | extern __typeof(newlocale) __newlocale; | |
5586 | extern __typeof(duplocale) __duplocale; | |
5587 | extern __typeof(strcoll_l) __strcoll_l; | |
5588 | #endif | |
5589 | int main() | |
5590 | { | |
5591 |