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