]>
Commit | Line | Data |
---|---|---|
b2dad0e3 | 1 | #! /bin/sh |
b2dad0e3 | 2 | # Guess values for system-dependent variables and create Makefiles. |
ec2075e9 | 3 | # Generated by GNU Autoconf 2.59 for package-unused version-unused. |
b2dad0e3 | 4 | # |
ec2075e9 | 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 | |
ec2075e9 | 22 | DUALCASE=1; export DUALCASE # for MKS sh |
ff66d28f PE |
23 | |
24 | # Support unset when possible. | |
ec2075e9 | 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 | |
ec2075e9 | 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 | |
ec2075e9 | 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. | |
ec2075e9 | 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. | |
ec2075e9 | 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 | ||
825bd0e1 | 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 install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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 CMESSAGES_H CCODECVT_CC CCOLLATE_CC CCTYPE_CC CMESSAGES_CC CMONEY_CC CNUMERIC_CC CTIME_H CTIME_CC CLOCALE_CC CLOCALE_INTERNAL_H ALLOCATOR_H ALLOCATOR_NAME 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 LIBICONV 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_THREAD_TRUE GLIBCXX_TEST_THREAD_FALSE GLIBCXX_TEST_ABI_TRUE GLIBCXX_TEST_ABI_FALSE ATOMICITY_SRCDIR ATOMIC_WORD_SRCDIR ABI_TWEAKS_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 \ | |
ec2075e9 | 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\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
ec2075e9 BK |
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 | |
ec2075e9 | 798 | [$ac_default_prefix] |
ff66d28f | 799 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
ec2075e9 | 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] | |
7eaf73d7 KC |
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 | |
ff66d28f PE |
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 |
517da0ce MM |
857 | force use of builtin_setjmp for exceptions |
858 | [default=auto] | |
859 | --enable-libstdcxx-pch build pre-compiled libstdc++ headers | |
860 | [default=$is_hosted] | |
861 | --enable-cstdio=PACKAGE use target-specific I/O package | |
862 | [default=stdio] | |
ff66d28f | 863 | --enable-clocale[=MODEL] |
517da0ce MM |
864 | use MODEL for target locale package |
865 | [default=auto] | |
866 | --enable-nls use Native Language Support (default) | |
8b0d6051 BK |
867 | --enable-libstdcxx-allocator=KIND |
868 | use KIND for target std::allocator base | |
869 | [default=auto] | |
517da0ce MM |
870 | --enable-cheaders=KIND construct "C" headers for g++ |
871 | [default=$c_model] | |
872 | --enable-c-mbchar enable multibyte (wide) characters | |
873 | [default=yes] | |
874 | --enable-c99 turns on ISO/IEC 9899:1999 support | |
875 | [default=yes] | |
876 | --enable-long-long enables I/O support for 'long long' | |
877 | [default=yes] | |
878 | --enable-concept-checks use Boost-derived template checks [default=no] | |
ff66d28f | 879 | --enable-libstdcxx-debug-flags=FLAGS |
517da0ce MM |
880 | pass compiler FLAGS when building debug library |
881 | [default="-g3 -O0"] | |
ff66d28f PE |
882 | --enable-libstdcxx-debug |
883 | build extra debug library [default=no] | |
884 | --enable-cxx-flags=FLAGS | |
517da0ce MM |
885 | pass compiler FLAGS when building library |
886 | [default=] | |
1165dc50 PC |
887 | --enable-fully-dynamic-string |
888 | do not put empty strings in per-process static | |
889 | memory [default=no] | |
517da0ce MM |
890 | --enable-symvers=STYLE enables symbol versioning of the shared library |
891 | [default=yes] | |
ff66d28f | 892 | --enable-version-specific-runtime-libs |
517da0ce MM |
893 | Specify that runtime libraries should be installed |
894 | in a compiler-specific directory | |
ff66d28f PE |
895 | |
896 | Optional Packages: | |
897 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
898 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
899 | --with-target-subdir=SUBDIR | |
900 | configuring in a subdirectory | |
517da0ce MM |
901 | --with-cross-host=HOST configuring with a cross compiler |
902 | --with-newlib assume newlib as a system C library | |
ff66d28f PE |
903 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
904 | --with-pic try to use only PIC/non-PIC objects default=use both | |
905 | --with-gxx-include-dir=DIR | |
906 | installation directory for include files | |
907 | ||
908 | Some influential environment variables: | |
517da0ce MM |
909 | CC C compiler command |
910 | CFLAGS C compiler flags | |
911 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
912 | nonstandard directory <lib dir> | |
913 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
914 | headers in a nonstandard directory <include dir> | |
915 | CXX C++ compiler command | |
916 | CXXFLAGS C++ compiler flags | |
917 | CXXCPP C++ preprocessor | |
918 | CPP C preprocessor | |
ff66d28f PE |
919 | |
920 | Use these variables to override the choices made by `configure' or to help | |
921 | it to find libraries and programs with nonstandard names/locations. | |
922 | ||
923 | _ACEOF | |
924 | fi | |
925 | ||
926 | if test "$ac_init_help" = "recursive"; then | |
927 | # If there are subdirs, report their specific --help. | |
928 | ac_popdir=`pwd` | |
929 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
930 | test -d $ac_dir || continue | |
931 | ac_builddir=. | |
932 | ||
933 | if test "$ac_dir" != .; then | |
934 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
935 | # A "../" for each directory in $ac_dir_suffix. | |
936 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
937 | else | |
938 | ac_dir_suffix= ac_top_builddir= | |
939 | fi | |
940 | ||
941 | case $srcdir in | |
942 | .) # No --srcdir option. We are building in place. | |
943 | ac_srcdir=. | |
944 | if test -z "$ac_top_builddir"; then | |
945 | ac_top_srcdir=. | |
946 | else | |
947 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
948 | fi ;; | |
949 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
950 | ac_srcdir=$srcdir$ac_dir_suffix; | |
951 | ac_top_srcdir=$srcdir ;; | |
952 | *) # Relative path. | |
953 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
954 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
955 | esac | |
ec2075e9 BK |
956 | |
957 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
958 | # the directories may not exist. | |
959 | case `pwd` in | |
960 | .) ac_abs_builddir="$ac_dir";; | |
961 | *) | |
962 | case "$ac_dir" in | |
963 | .) ac_abs_builddir=`pwd`;; | |
964 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
965 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
966 | esac;; | |
967 | esac | |
968 | case $ac_abs_builddir in | |
969 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
970 | *) | |
971 | case ${ac_top_builddir}. in | |
972 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
973 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
974 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
975 | esac;; | |
976 | esac | |
977 | case $ac_abs_builddir in | |
978 | .) ac_abs_srcdir=$ac_srcdir;; | |
979 | *) | |
980 | case $ac_srcdir in | |
981 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
982 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
983 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
984 | esac;; | |
985 | esac | |
986 | case $ac_abs_builddir in | |
987 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
988 | *) | |
989 | case $ac_top_srcdir in | |
990 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
991 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
992 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
993 | esac;; | |
994 | esac | |
ff66d28f PE |
995 | |
996 | cd $ac_dir | |
997 | # Check for guested configure; otherwise get Cygnus style configure. | |
998 | if test -f $ac_srcdir/configure.gnu; then | |
999 | echo | |
1000 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1001 | elif test -f $ac_srcdir/configure; then | |
1002 | echo | |
1003 | $SHELL $ac_srcdir/configure --help=recursive | |
1004 | elif test -f $ac_srcdir/configure.ac || | |
ec2075e9 | 1005 | test -f $ac_srcdir/configure.in; then |
ff66d28f PE |
1006 | echo |
1007 | $ac_configure --help | |
1008 | else | |
1009 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1010 | fi | |
780028b6 | 1011 | cd $ac_popdir |
ff66d28f PE |
1012 | done |
1013 | fi | |
1014 | ||
1015 | test -n "$ac_init_help" && exit 0 | |
1016 | if $ac_init_version; then | |
1017 | cat <<\_ACEOF | |
fbe057bb | 1018 | package-unused configure version-unused |
ec2075e9 | 1019 | generated by GNU Autoconf 2.59 |
ff66d28f | 1020 | |
ec2075e9 | 1021 | Copyright (C) 2003 Free Software Foundation, Inc. |
ff66d28f PE |
1022 | This configure script is free software; the Free Software Foundation |
1023 | gives unlimited permission to copy, distribute and modify it. | |
1024 | _ACEOF | |
1025 | exit 0 | |
b2dad0e3 | 1026 | fi |
ff66d28f PE |
1027 | exec 5>config.log |
1028 | cat >&5 <<_ACEOF | |
1029 | This file contains any messages produced by compilers while | |
1030 | running configure, to aid debugging if configure makes a mistake. | |
1031 | ||
fbe057bb | 1032 | It was created by package-unused $as_me version-unused, which was |
ec2075e9 | 1033 | generated by GNU Autoconf 2.59. Invocation command line was |
ff66d28f PE |
1034 | |
1035 | $ $0 $@ | |
1036 | ||
1037 | _ACEOF | |
1038 | { | |
1039 | cat <<_ASUNAME | |
1040 | ## --------- ## | |
1041 | ## Platform. ## | |
1042 | ## --------- ## | |
1043 | ||
1044 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1045 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1046 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1047 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1048 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1049 | ||
1050 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1051 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1052 | ||
1053 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1054 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1055 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1056 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1057 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1058 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1059 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1060 | ||
1061 | _ASUNAME | |
1062 | ||
1063 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1064 | for as_dir in $PATH | |
1065 | do | |
1066 | IFS=$as_save_IFS | |
1067 | test -z "$as_dir" && as_dir=. | |
1068 | echo "PATH: $as_dir" | |
1069 | done | |
1070 | ||
1071 | } >&5 | |
1072 | ||
1073 | cat >&5 <<_ACEOF | |
1074 | ||
1075 | ||
1076 | ## ----------- ## | |
1077 | ## Core tests. ## | |
1078 | ## ----------- ## | |
1079 | ||
1080 | _ACEOF | |
1081 | ||
1082 | ||
1083 | # Keep a trace of the command line. | |
1084 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1085 | # Strip out --silent because we don't want to record it for future runs. | |
1086 | # Also quote any args containing shell meta-characters. | |
1087 | # Make two passes to allow for proper duplicate-argument suppression. | |
1088 | ac_configure_args= | |
1089 | ac_configure_args0= | |
1090 | ac_configure_args1= | |
1091 | ac_sep= | |
1092 | ac_must_keep_next=false | |
1093 | for ac_pass in 1 2 | |
1094 | do | |
1095 | for ac_arg | |
1096 | do | |
1097 | case $ac_arg in | |
1098 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1099 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1100 | | -silent | --silent | --silen | --sile | --sil) | |
1101 | continue ;; | |
1102 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1103 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1104 | esac | |
1105 | case $ac_pass in | |
1106 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1107 | 2) | |
1108 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1109 | if test $ac_must_keep_next = true; then | |
ec2075e9 | 1110 | ac_must_keep_next=false # Got value, back to normal. |
ff66d28f | 1111 | else |
ec2075e9 BK |
1112 | case $ac_arg in |
1113 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1114 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1115 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1116 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1117 | case "$ac_configure_args0 " in | |
1118 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1119 | esac | |
1120 | ;; | |
1121 | -* ) ac_must_keep_next=true ;; | |
1122 | esac | |
ff66d28f PE |
1123 | fi |
1124 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1125 | # Get rid of the leading space. | |
1126 | ac_sep=" " | |
1127 | ;; | |
1128 | esac | |
1129 | done | |
1130 | done | |
1131 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1132 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1133 | ||
1134 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1135 | # config.log. We remove comments because anyway the quotes in there | |
1136 | # would cause problems or look ugly. | |
1137 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1138 | # such as our DU 5.0 friend, will then `close' the trap. | |
1139 | trap 'exit_status=$? | |
1140 | # Save into config.log some information that might help in debugging. | |
1141 | { | |
1142 | echo | |
1143 | ||
1144 | cat <<\_ASBOX | |
1145 | ## ---------------- ## | |
1146 | ## Cache variables. ## | |
1147 | ## ---------------- ## | |
1148 | _ASBOX | |
1149 | echo | |
1150 | # The following way of writing the cache mishandles newlines in values, | |
1151 | { | |
1152 | (set) 2>&1 | | |
1153 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1154 | *ac_space=\ *) | |
1155 | sed -n \ | |
ec2075e9 BK |
1156 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1157 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
ff66d28f PE |
1158 | ;; |
1159 | *) | |
1160 | sed -n \ | |
ec2075e9 | 1161 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
ff66d28f PE |
1162 | ;; |
1163 | esac; | |
1164 | } | |
1165 | echo | |
1166 | ||
1167 | cat <<\_ASBOX | |
1168 | ## ----------------- ## | |
1169 | ## Output variables. ## | |
1170 | ## ----------------- ## | |
1171 | _ASBOX | |
1172 | echo | |
1173 | for ac_var in $ac_subst_vars | |
1174 | do | |
1175 | eval ac_val=$`echo $ac_var` | |
1176 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1177 | done | sort | |
1178 | echo | |
1179 | ||
1180 | if test -n "$ac_subst_files"; then | |
1181 | cat <<\_ASBOX | |
1182 | ## ------------- ## | |
1183 | ## Output files. ## | |
1184 | ## ------------- ## | |
1185 | _ASBOX | |
1186 | echo | |
1187 | for ac_var in $ac_subst_files | |
1188 | do | |
1189 | eval ac_val=$`echo $ac_var` | |
ec2075e9 | 1190 | echo "$ac_var='"'"'$ac_val'"'"'" |
ff66d28f PE |
1191 | done | sort |
1192 | echo | |
1193 | fi | |
1194 | ||
1195 | if test -s confdefs.h; then | |
1196 | cat <<\_ASBOX | |
1197 | ## ----------- ## | |
1198 | ## confdefs.h. ## | |
1199 | ## ----------- ## | |
1200 | _ASBOX | |
1201 | echo | |
1202 | sed "/^$/d" confdefs.h | sort | |
1203 | echo | |
1204 | fi | |
1205 | test "$ac_signal" != 0 && | |
1206 | echo "$as_me: caught signal $ac_signal" | |
1207 | echo "$as_me: exit $exit_status" | |
1208 | } >&5 | |
ec2075e9 | 1209 | rm -f core *.core && |
ff66d28f PE |
1210 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1211 | exit $exit_status | |
1212 | ' 0 | |
1213 | for ac_signal in 1 2 13 15; do | |
1214 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1215 | done | |
1216 | ac_signal=0 | |
1217 | ||
1218 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1219 | rm -rf conftest* confdefs.h | |
1220 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1221 | echo >confdefs.h | |
1222 | ||
1223 | # Predefined preprocessor variables. | |
1224 | ||
1225 | cat >>confdefs.h <<_ACEOF | |
1226 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1227 | _ACEOF | |
1228 | ||
1229 | ||
1230 | cat >>confdefs.h <<_ACEOF | |
1231 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1232 | _ACEOF | |
1233 | ||
1234 | ||
1235 | cat >>confdefs.h <<_ACEOF | |
1236 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1237 | _ACEOF | |
1238 | ||
b2dad0e3 | 1239 | |
ff66d28f PE |
1240 | cat >>confdefs.h <<_ACEOF |
1241 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1242 | _ACEOF | |
1243 | ||
1244 | ||
1245 | cat >>confdefs.h <<_ACEOF | |
1246 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1247 | _ACEOF | |
1248 | ||
1249 | ||
1250 | # Let the site file select an alternate cache file if it wants to. | |
b2dad0e3 | 1251 | # Prefer explicitly selected file to automatically selected ones. |
a0f27776 PE |
1252 | if test -z "$CONFIG_SITE"; then |
1253 | if test "x$prefix" != xNONE; then | |
1254 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1255 | else | |
1256 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
b2dad0e3 BK |
1257 | fi |
1258 | fi | |
1259 | for ac_site_file in $CONFIG_SITE; do | |
1260 | if test -r "$ac_site_file"; then | |
ff66d28f PE |
1261 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1262 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1263 | sed 's/^/| /' "$ac_site_file" >&5 | |
b2dad0e3 BK |
1264 | . "$ac_site_file" |
1265 | fi | |
1266 | done | |
1267 | ||
1268 | if test -r "$cache_file"; then | |
ff66d28f PE |
1269 | # Some versions of bash will fail to source /dev/null (special |
1270 | # files actually), so we avoid doing that. | |
1271 | if test -f "$cache_file"; then | |
1272 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1273 | echo "$as_me: loading cache $cache_file" >&6;} | |
1274 | case $cache_file in | |
1275 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1276 | *) . ./$cache_file;; | |
1277 | esac | |
1278 | fi | |
b2dad0e3 | 1279 | else |
ff66d28f PE |
1280 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1281 | echo "$as_me: creating cache $cache_file" >&6;} | |
1282 | >$cache_file | |
1283 | fi | |
1284 | ||
1285 | # Check that the precious variables saved in the cache have kept the same | |
1286 | # value. | |
1287 | ac_cache_corrupted=false | |
1288 | for ac_var in `(set) 2>&1 | | |
ec2075e9 | 1289 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
ff66d28f PE |
1290 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1291 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1292 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1293 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1294 | case $ac_old_set,$ac_new_set in | |
1295 | set,) | |
1296 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1297 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1298 | ac_cache_corrupted=: ;; | |
1299 | ,set) | |
1300 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1301 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1302 | ac_cache_corrupted=: ;; | |
1303 | ,);; | |
1304 | *) | |
1305 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
ec2075e9 | 1306 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
ff66d28f | 1307 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
ec2075e9 | 1308 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
ff66d28f | 1309 | echo "$as_me: former value: $ac_old_val" >&2;} |
ec2075e9 | 1310 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
ff66d28f | 1311 | echo "$as_me: current value: $ac_new_val" >&2;} |
ec2075e9 | 1312 | ac_cache_corrupted=: |
ff66d28f PE |
1313 | fi;; |
1314 | esac | |
1315 | # Pass precious variables to config.status. | |
1316 | if test "$ac_new_set" = set; then | |
1317 | case $ac_new_val in | |
1318 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1319 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1320 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1321 | esac | |
1322 | case " $ac_configure_args " in | |
1323 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1324 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1325 | esac | |
1326 | fi | |
1327 | done | |
1328 | if $ac_cache_corrupted; then | |
1329 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1330 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1331 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1332 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1333 | { (exit 1); exit 1; }; } | |
b2dad0e3 BK |
1334 | fi |
1335 | ||
1336 | ac_ext=c | |
b2dad0e3 | 1337 | ac_cpp='$CPP $CPPFLAGS' |
ff66d28f PE |
1338 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1339 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1340 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b2dad0e3 BK |
1341 | |
1342 | ||
e2c20fae | 1343 | |
6706f116 | 1344 | |
33590f13 BK |
1345 | |
1346 | ||
1347 | ||
aebb8c22 | 1348 | |
aebb8c22 | 1349 | |
ff66d28f PE |
1350 | |
1351 | ||
1352 | ||
1353 | ||
1354 | ||
1355 | ||
1356 | ||
1357 | ||
1358 | ||
1359 | ||
1360 | ||
1361 | ||
1362 | ||
1363 | ||
1364 | ||
1365 | ||
1366 | ||
1367 | ||
1368 | ||
1369 | ac_config_headers="$ac_config_headers config.h" | |
1370 | ||
1371 | ||
1372 | # This works around the fact that libtool configuration may change LD | |
1373 | # for this particular configuration, but some shells, instead of | |
1374 | # keeping the changes in LD private, export them just because LD is | |
1375 | # exported. Only used at the end of this file. | |
1376 | ### am handles this now? ORIGINAL_LD_FOR_MULTILIBS=$LD | |
1377 | ||
1378 | # For libtool versioning info, format is CURRENT:REVISION:AGE | |
8736cbe6 | 1379 | libtool_VERSION=6:4:0 |
ff66d28f PE |
1380 | |
1381 | ||
1382 | # Find the rest of the source tree framework. | |
076e5443 | 1383 | # Default to --enable-multilib |
ff66d28f PE |
1384 | # Check whether --enable-multilib or --disable-multilib was given. |
1385 | if test "${enable_multilib+set}" = set; then | |
1386 | enableval="$enable_multilib" | |
1387 | case "$enableval" in | |
1388 | yes) multilib=yes ;; | |
1389 | no) multilib=no ;; | |
1390 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5 | |
1391 | echo "$as_me: error: bad value $enableval for multilib option" >&2;} | |
1392 | { (exit 1); exit 1; }; } ;; | |
1393 | esac | |
1394 | else | |
1395 | multilib=yes | |
1396 | fi; | |
1397 | ||
1398 | # We may get other options which we leave undocumented: | |
1399 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
1400 | # See config-ml.in if you want the gory details. | |
1401 | ||
1402 | if test "$srcdir" = "."; then | |
1403 | if test "$with_target_subdir" != "."; then | |
1404 | multi_basedir="$srcdir/$with_multisrctop../.." | |
1405 | else | |
1406 | multi_basedir="$srcdir/$with_multisrctop.." | |
1407 | fi | |
1408 | else | |
1409 | multi_basedir="$srcdir/.." | |
1410 | fi | |
1411 | ||
1412 | ||
1413 | ac_config_commands="$ac_config_commands default-1" | |
1414 | ||
1415 | ||
076e5443 PB |
1416 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. |
1417 | # | |
1418 | # You will slowly go insane if you do not grok the following fact: when | |
1419 | # building v3 as part of the compiler, the top-level /target/ becomes the | |
1420 | # library's /host/. configure then causes --target to default to --host, | |
1421 | # exactly like any other package using autoconf. Therefore, 'target' and | |
1422 | # 'host' will always be the same. This makes sense both for native and | |
1423 | # cross compilers, just think about it for a little while. :-) | |
1424 | # | |
1425 | # Also, if v3 is being configured as part of a cross compiler, the top-level | |
1426 | # configure script will pass the "real" host as $with_cross_host. | |
1427 | # | |
1428 | # Do not delete or change the following two lines. For why, see | |
1429 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
1430 | ac_aux_dir= | |
1431 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
ff66d28f PE |
1432 | if test -f $ac_dir/install-sh; then |
1433 | ac_aux_dir=$ac_dir | |
1434 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1435 | break | |
1436 | elif test -f $ac_dir/install.sh; then | |
1437 | ac_aux_dir=$ac_dir | |
b2dad0e3 BK |
1438 | ac_install_sh="$ac_aux_dir/install.sh -c" |
1439 | break | |
ff66d28f PE |
1440 | elif test -f $ac_dir/shtool; then |
1441 | ac_aux_dir=$ac_dir | |
1442 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1443 | break | |
b2dad0e3 BK |
1444 | fi |
1445 | done | |
1446 | if test -z "$ac_aux_dir"; then | |
076e5443 PB |
1447 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
1448 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
ff66d28f | 1449 | { (exit 1); exit 1; }; } |
b2dad0e3 | 1450 | fi |
ff66d28f PE |
1451 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
1452 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1453 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1454 | ||
ff66d28f PE |
1455 | # Make sure we can run config.sub. |
1456 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1457 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1458 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1459 | { (exit 1); exit 1; }; } | |
1460 | ||
1461 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1462 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1463 | if test "${ac_cv_build+set}" = set; then | |
1464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1465 | else | |
1466 | ac_cv_build_alias=$build_alias | |
1467 | test -z "$ac_cv_build_alias" && | |
1468 | ac_cv_build_alias=`$ac_config_guess` | |
1469 | test -z "$ac_cv_build_alias" && | |
1470 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1471 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1472 | { (exit 1); exit 1; }; } | |
1473 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1474 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1475 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1476 | { (exit 1); exit 1; }; } | |
1477 | ||
1478 | fi | |
1479 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1480 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1481 | build=$ac_cv_build | |
1482 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1483 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1484 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1485 | ||
1486 | ||
1487 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1488 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1489 | if test "${ac_cv_host+set}" = set; then | |
1490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1491 | else | |
1492 | ac_cv_host_alias=$host_alias | |
1493 | test -z "$ac_cv_host_alias" && | |
1494 | ac_cv_host_alias=$ac_cv_build_alias | |
1495 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1496 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1497 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1498 | { (exit 1); exit 1; }; } | |
1499 | ||
1500 | fi | |
1501 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1502 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1503 | host=$ac_cv_host | |
1504 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1505 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1506 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1507 | ||
1508 | ||
1509 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1510 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1511 | if test "${ac_cv_target+set}" = set; then | |
1512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1513 | else | |
1514 | ac_cv_target_alias=$target_alias | |
1515 | test "x$ac_cv_target_alias" = "x" && | |
1516 | ac_cv_target_alias=$ac_cv_host_alias | |
1517 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1518 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1519 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1520 | { (exit 1); exit 1; }; } | |
1521 | ||
1522 | fi | |
1523 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1524 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1525 | target=$ac_cv_target | |
1526 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1527 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1528 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
b2dad0e3 | 1529 | |
b2dad0e3 BK |
1530 | |
1531 | # The aliases save the names the user supplied, while $host etc. | |
1532 | # will get canonicalized. | |
ff66d28f PE |
1533 | test -n "$target_alias" && |
1534 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1535 | NONENONEs,x,x, && | |
1536 | program_prefix=${target_alias}- | |
1537 | target_alias=${target_alias-$host_alias} | |
1538 | ||
1539 | # Handy for debugging: | |
1540 | #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5 | |
1541 | ||
0df3f383 PE |
1542 | if test "$build" != "$host"; then |
1543 | # We are being configured with some form of cross compiler. | |
1544 | GLIBCXX_IS_NATIVE=false | |
72730fdb | 1545 | |
0df3f383 PE |
1546 | else |
1547 | GLIBCXX_IS_NATIVE=true | |
1548 | fi | |
1549 | ||
ff66d28f PE |
1550 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the |
1551 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
1552 | # 1.x: minimum required version | |
1553 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch | |
1554 | # of other PACKAGE_* variables will, however, and there's nothing | |
fbe057bb | 1555 | # we can do about that; they come from AC_INIT). |
ff66d28f PE |
1556 | # foreign: we don't follow the normal rules for GNU packages (no COPYING |
1557 | # file in the top srcdir, etc, etc), so stop complaining. | |
1558 | # no-dependencies: turns off auto dependency generation (just for now) | |
2d52e9e3 PE |
1559 | # -Wall: turns on all automake warnings... |
1560 | # -Wno-portability: ...except this one, since GNU make is now required. | |
a60945f8 | 1561 | am__api_version="1.9" |
ff66d28f PE |
1562 | # Find a good install program. We prefer a C program (faster), |
1563 | # so one script is as good as another. But avoid the broken or | |
1564 | # incompatible versions: | |
1565 | # SysV /etc/install, /usr/sbin/install | |
1566 | # SunOS /usr/etc/install | |
1567 | # IRIX /sbin/install | |
1568 | # AIX /bin/install | |
1569 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1570 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1571 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1572 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
ec2075e9 | 1573 | # OS/2's system install, which has a completely different semantic |
ff66d28f PE |
1574 | # ./install, which can be erroneously created by make from ./install.sh. |
1575 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1576 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1577 | if test -z "$INSTALL"; then | |
1578 | if test "${ac_cv_path_install+set}" = set; then | |
1579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1580 | else | |
1581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1582 | for as_dir in $PATH | |
1583 | do | |
1584 | IFS=$as_save_IFS | |
1585 | test -z "$as_dir" && as_dir=. | |
1586 | # Account for people who put trailing slashes in PATH elements. | |
1587 | case $as_dir/ in | |
1588 | ./ | .// | /cC/* | \ | |
1589 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
ec2075e9 | 1590 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
ff66d28f PE |
1591 | /usr/ucb/* ) ;; |
1592 | *) | |
1593 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1594 | # Don't use installbsd from OSF since it installs stuff as root | |
1595 | # by default. | |
1596 | for ac_prog in ginstall scoinst install; do | |
1597 | for ac_exec_ext in '' $ac_executable_extensions; do | |
ec2075e9 BK |
1598 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
1599 | if test $ac_prog = install && | |
1600 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1601 | # AIX install. It has an incompatible calling convention. | |
1602 | : | |
1603 | elif test $ac_prog = install && | |
1604 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1605 | # program-specific install script used by HP pwplus--don't use. | |
1606 | : | |
1607 | else | |
1608 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1609 | break 3 | |
1610 | fi | |
1611 | fi | |
ff66d28f PE |
1612 | done |
1613 | done | |
1614 | ;; | |
b2dad0e3 | 1615 | esac |
ff66d28f | 1616 | done |
b2dad0e3 BK |
1617 | |
1618 | ||
b2dad0e3 | 1619 | fi |
ff66d28f PE |
1620 | if test "${ac_cv_path_install+set}" = set; then |
1621 | INSTALL=$ac_cv_path_install | |
1622 | else | |
1623 | # As a last resort, use the slow shell script. We don't cache a | |
1624 | # path for INSTALL within a source directory, because that will | |
1625 | # break other packages using the cache if that directory is | |
1626 | # removed, or if the path is relative. | |
1627 | INSTALL=$ac_install_sh | |
1628 | fi | |
1629 | fi | |
1630 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1631 | echo "${ECHO_T}$INSTALL" >&6 | |
b2dad0e3 | 1632 | |
ff66d28f PE |
1633 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
1634 | # It thinks the first close brace ends the variable substitution. | |
1635 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
b2dad0e3 | 1636 | |
ff66d28f | 1637 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
b2dad0e3 | 1638 | |
ff66d28f | 1639 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
b2dad0e3 | 1640 | |
ff66d28f PE |
1641 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
1642 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1643 | # Just in case | |
1644 | sleep 1 | |
1645 | echo timestamp > conftest.file | |
1646 | # Do `set' in a subshell so we don't clobber the current shell's | |
1647 | # arguments. Must try -L first in case configure is actually a | |
1648 | # symlink; some systems play weird games with the mod time of symlinks | |
1649 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1650 | # directory). | |
1651 | if ( | |
1652 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1653 | if test "$*" = "X"; then | |
1654 | # -L didn't work. | |
1655 | set X `ls -t $srcdir/configure conftest.file` | |
1656 | fi | |
1657 | rm -f conftest.file | |
1658 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1659 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
b2dad0e3 | 1660 | |
ff66d28f PE |
1661 | # If neither matched, then we have a broken ls. This can happen |
1662 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1663 | # broken ls alias from the environment. This has actually | |
1664 | # happened. Such a system could not be considered "sane". | |
1665 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1666 | alias in your environment" >&5 | |
1667 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1668 | alias in your environment" >&2;} | |
1669 | { (exit 1); exit 1; }; } | |
1670 | fi | |
b2dad0e3 | 1671 | |
ff66d28f PE |
1672 | test "$2" = conftest.file |
1673 | ) | |
1674 | then | |
1675 | # Ok. | |
1676 | : | |
33590f13 | 1677 | else |
ff66d28f PE |
1678 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
1679 | Check your system clock" >&5 | |
1680 | echo "$as_me: error: newly created file is older than distributed files! | |
1681 | Check your system clock" >&2;} | |
1682 | { (exit 1); exit 1; }; } | |
33590f13 | 1683 | fi |
ff66d28f PE |
1684 | echo "$as_me:$LINENO: result: yes" >&5 |
1685 | echo "${ECHO_T}yes" >&6 | |
1686 | test "$program_prefix" != NONE && | |
1687 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1688 | # Use a double $ so make ignores it. | |
1689 | test "$program_suffix" != NONE && | |
1690 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1691 | # Double any \ or $. echo might interpret backslashes. | |
1692 | # By default was `s,x,x', remove it if useless. | |
1693 | cat <<\_ACEOF >conftest.sed | |
1694 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1695 | _ACEOF | |
1696 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1697 | rm conftest.sed | |
b2dad0e3 | 1698 | |
ff66d28f PE |
1699 | # expand $ac_aux_dir to an absolute path |
1700 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
33590f13 | 1701 | |
ff66d28f PE |
1702 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
1703 | # Use eval to expand $SHELL | |
1704 | if eval "$MISSING --run true"; then | |
1705 | am_missing_run="$MISSING --run " | |
b2dad0e3 | 1706 | else |
ff66d28f PE |
1707 | am_missing_run= |
1708 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1709 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
33590f13 BK |
1710 | fi |
1711 | ||
7eaf73d7 | 1712 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
a60945f8 PC |
1713 | # We used to keeping the `.' as first argument, in order to |
1714 | # allow $(mkdir_p) to be used without argument. As in | |
7eaf73d7 | 1715 | # $(mkdir_p) $(somedir) |
a60945f8 PC |
1716 | # where $(somedir) is conditionally defined. However this is wrong |
1717 | # for two reasons: | |
1718 | # 1. if the package is installed by a user who cannot write `.' | |
1719 | # make install will fail, | |
1720 | # 2. the above comment should most certainly read | |
1721 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
1722 | # so it does not work when $(somedir) is undefined and | |
1723 | # $(DESTDIR) is not. | |
1724 | # To support the latter case, we have to write | |
1725 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
1726 | # so the `.' trick is pointless. | |
1727 | mkdir_p='mkdir -p --' | |
7eaf73d7 KC |
1728 | else |
1729 | # On NextStep and OpenStep, the `mkdir' command does not | |
1730 | # recognize any option. It will interpret all options as | |
1731 | # directories to create, and then abort because `.' already | |
1732 | # exists. | |
1733 | for d in ./-p ./--version; | |
1734 | do | |
1735 | test -d $d && rmdir $d | |
1736 | done | |
1737 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
1738 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
1739 | mkdir_p='$(mkinstalldirs)' | |
1740 | else | |
1741 | mkdir_p='$(install_sh) -d' | |
1742 | fi | |
1743 | fi | |
1744 | ||
ff66d28f | 1745 | for ac_prog in gawk mawk nawk awk |
c98b201b | 1746 | do |
ff66d28f | 1747 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
c98b201b | 1748 | set dummy $ac_prog; ac_word=$2 |
ff66d28f PE |
1749 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1750 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1751 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c98b201b PE |
1753 | else |
1754 | if test -n "$AWK"; then | |
1755 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1756 | else | |
ff66d28f PE |
1757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1758 | for as_dir in $PATH | |
1759 | do | |
1760 | IFS=$as_save_IFS | |
1761 | test -z "$as_dir" && as_dir=. | |
1762 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1763 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1764 | ac_cv_prog_AWK="$ac_prog" | |
1765 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1766 | break 2 | |
1767 | fi | |
1768 | done | |
1769 | done | |
1770 | ||
c98b201b PE |
1771 | fi |
1772 | fi | |
ff66d28f | 1773 | AWK=$ac_cv_prog_AWK |
c98b201b | 1774 | if test -n "$AWK"; then |
ff66d28f PE |
1775 | echo "$as_me:$LINENO: result: $AWK" >&5 |
1776 | echo "${ECHO_T}$AWK" >&6 | |
c98b201b | 1777 | else |
ff66d28f PE |
1778 | echo "$as_me:$LINENO: result: no" >&5 |
1779 | echo "${ECHO_T}no" >&6 | |
c98b201b PE |
1780 | fi |
1781 | ||
ff66d28f | 1782 | test -n "$AWK" && break |
c98b201b PE |
1783 | done |
1784 | ||
ff66d28f PE |
1785 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
1786 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
ec2075e9 | 1787 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
ff66d28f PE |
1788 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
1789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1790 | else | |
1791 | cat >conftest.make <<\_ACEOF | |
1792 | all: | |
1793 | @echo 'ac_maketemp="$(MAKE)"' | |
1794 | _ACEOF | |
1795 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1796 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1797 | if test -n "$ac_maketemp"; then | |
1798 | eval ac_cv_prog_make_${ac_make}_set=yes | |
33590f13 | 1799 | else |
ff66d28f | 1800 | eval ac_cv_prog_make_${ac_make}_set=no |
33590f13 | 1801 | fi |
ff66d28f | 1802 | rm -f conftest.make |
33590f13 | 1803 | fi |
ff66d28f PE |
1804 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
1805 | echo "$as_me:$LINENO: result: yes" >&5 | |
1806 | echo "${ECHO_T}yes" >&6 | |
1807 | SET_MAKE= | |
33590f13 | 1808 | else |
ff66d28f PE |
1809 | echo "$as_me:$LINENO: result: no" >&5 |
1810 | echo "${ECHO_T}no" >&6 | |
1811 | SET_MAKE="MAKE=${MAKE-make}" | |
33590f13 BK |
1812 | fi |
1813 | ||
ff66d28f PE |
1814 | rm -rf .tst 2>/dev/null |
1815 | mkdir .tst 2>/dev/null | |
1816 | if test -d .tst; then | |
1817 | am__leading_dot=. | |
1818 | else | |
1819 | am__leading_dot=_ | |
1820 | fi | |
1821 | rmdir .tst 2>/dev/null | |
33590f13 | 1822 | |
7eaf73d7 | 1823 | # test to see if srcdir already configured |
ff66d28f PE |
1824 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
1825 | test -f $srcdir/config.status; then | |
1826 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
1827 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1828 | { (exit 1); exit 1; }; } | |
33590f13 BK |
1829 | fi |
1830 | ||
ff66d28f PE |
1831 | # test whether we have cygpath |
1832 | if test -z "$CYGPATH_W"; then | |
1833 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
1834 | CYGPATH_W='cygpath -w' | |
1835 | else | |
1836 | CYGPATH_W=echo | |
1837 | fi | |
33590f13 BK |
1838 | fi |
1839 | ||
1840 | ||
ff66d28f | 1841 | # Define the identity of the package. |
fbe057bb | 1842 | PACKAGE='libstdc++' |
ff66d28f | 1843 | VERSION='version-unused' |
b731048b BK |
1844 | |
1845 | ||
ff66d28f | 1846 | # Some tools Automake needs. |
33590f13 | 1847 | |
ff66d28f | 1848 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
33590f13 | 1849 | |
33590f13 | 1850 | |
ff66d28f | 1851 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
33590f13 | 1852 | |
ff66d28f PE |
1853 | |
1854 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
1855 | ||
1856 | ||
1857 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
1858 | ||
1859 | ||
1860 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1861 | ||
ff66d28f PE |
1862 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
1863 | ||
1864 | # Installed binaries are usually stripped using `strip' when the user | |
1865 | # run `make install-strip'. However `strip' might not be the right | |
1866 | # tool to use in cross-compilation environments, therefore Automake | |
1867 | # will honor the `STRIP' environment variable to overrule this program. | |
1868 | if test "$cross_compiling" != no; then | |
1869 | if test -n "$ac_tool_prefix"; then | |
1870 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1871 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1872 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1873 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1874 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
1875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33590f13 | 1876 | else |
ff66d28f PE |
1877 | if test -n "$STRIP"; then |
1878 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
33590f13 | 1879 | else |
ff66d28f PE |
1880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1881 | for as_dir in $PATH | |
1882 | do | |
1883 | IFS=$as_save_IFS | |
1884 | test -z "$as_dir" && as_dir=. | |
1885 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1886 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1887 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1888 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1889 | break 2 | |
1890 | fi | |
1891 | done | |
1892 | done | |
1893 | ||
33590f13 BK |
1894 | fi |
1895 | fi | |
ff66d28f PE |
1896 | STRIP=$ac_cv_prog_STRIP |
1897 | if test -n "$STRIP"; then | |
1898 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
1899 | echo "${ECHO_T}$STRIP" >&6 | |
33590f13 | 1900 | else |
ff66d28f PE |
1901 | echo "$as_me:$LINENO: result: no" >&5 |
1902 | echo "${ECHO_T}no" >&6 | |
33590f13 BK |
1903 | fi |
1904 | ||
ff66d28f PE |
1905 | fi |
1906 | if test -z "$ac_cv_prog_STRIP"; then | |
1907 | ac_ct_STRIP=$STRIP | |
1908 | # Extract the first word of "strip", so it can be a program name with args. | |
1909 | set dummy strip; ac_word=$2 | |
1910 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1911 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1912 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
1913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33590f13 | 1914 | else |
ff66d28f PE |
1915 | if test -n "$ac_ct_STRIP"; then |
1916 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
33590f13 | 1917 | else |
ff66d28f PE |
1918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1919 | for as_dir in $PATH | |
1920 | do | |
1921 | IFS=$as_save_IFS | |
1922 | test -z "$as_dir" && as_dir=. | |
1923 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1924 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1925 | ac_cv_prog_ac_ct_STRIP="strip" | |
1926 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1927 | break 2 | |
b2dad0e3 | 1928 | fi |
ff66d28f PE |
1929 | done |
1930 | done | |
1931 | ||
1932 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
b2dad0e3 BK |
1933 | fi |
1934 | fi | |
ff66d28f PE |
1935 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
1936 | if test -n "$ac_ct_STRIP"; then | |
1937 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
1938 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
b2dad0e3 | 1939 | else |
ff66d28f PE |
1940 | echo "$as_me:$LINENO: result: no" >&5 |
1941 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 BK |
1942 | fi |
1943 | ||
ff66d28f | 1944 | STRIP=$ac_ct_STRIP |
b2dad0e3 | 1945 | else |
ff66d28f | 1946 | STRIP="$ac_cv_prog_STRIP" |
b2dad0e3 | 1947 | fi |
ff66d28f | 1948 | |
b2dad0e3 | 1949 | fi |
ff66d28f | 1950 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
b2dad0e3 | 1951 | |
ff66d28f PE |
1952 | # We need awk for the "check" target. The system "awk" is bad on |
1953 | # some platforms. | |
a60945f8 PC |
1954 | # Always define AMTAR for backward compatibility. |
1955 | ||
1956 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
1957 | ||
1958 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
1959 | ||
1960 | ||
b2dad0e3 | 1961 | |
b2dad0e3 | 1962 | |
b2dad0e3 | 1963 | |
ff66d28f | 1964 | |
ff66d28f PE |
1965 | # Runs configure.host, finds CC, CXX, and assorted other critical bits. Sets |
1966 | # up critical shell variables. | |
1967 | ||
82ba99d5 PE |
1968 | # Keep these sync'd with the list in Makefile.am. The first provides an |
1969 | # expandable list at autoconf time; the second provides an expandable list | |
1970 | # (i.e., shell variable) at configure time. | |
1971 | ||
1972 | SUBDIRS='include libmath libsupc++ src po testsuite' | |
1973 | ||
ff66d28f PE |
1974 | # These need to be absolute paths, yet at the same time need to |
1975 | # canonicalize only relative paths, because then amd will not unmount | |
1976 | # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd. | |
1977 | glibcxx_builddir=`${PWDCMD-pwd}` | |
1978 | case $srcdir in | |
1979 | \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;; | |
1980 | *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;; | |
1981 | esac | |
1982 | toplevel_srcdir=${glibcxx_srcdir}/.. | |
1983 | ||
1984 | ||
1985 | ||
1986 | ||
1987 | # We use these options to decide which functions to include. They are | |
1988 | # set from the top level. | |
1989 | ||
1990 | # Check whether --with-target-subdir or --without-target-subdir was given. | |
1991 | if test "${with_target_subdir+set}" = set; then | |
1992 | withval="$with_target_subdir" | |
1993 | ||
1994 | fi; | |
1995 | ||
1996 | ||
1997 | # Check whether --with-cross-host or --without-cross-host was given. | |
1998 | if test "${with_cross_host+set}" = set; then | |
1999 | withval="$with_cross_host" | |
2000 | ||
2001 | fi; | |
2002 | ||
2003 | ||
2004 | # Check whether --with-newlib or --without-newlib was given. | |
2005 | if test "${with_newlib+set}" = set; then | |
2006 | withval="$with_newlib" | |
2007 | ||
2008 | fi; | |
2009 | ||
f6dda651 PE |
2010 | # We're almost certainly being configured before anything else which uses |
2011 | # C++, so all of our AC_PROG_* discoveries will be cached. It's vital that | |
2012 | # we not cache the value of CXX that we "discover" here, because it's set | |
2013 | # to something unique for us and libjava. Other target libraries need to | |
2014 | # find CXX for themselves. We yank the rug out from under the normal AC_* | |
2015 | # process by sneakily renaming the cache variable. This also lets us debug | |
2016 | # the value of "our" CXX in postmortems. | |
2017 | # | |
2018 | # We must also force CXX to /not/ be a precious variable, otherwise the | |
2019 | # wrong (non-multilib-adjusted) value will be used in multilibs. This | |
2020 | # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS. And as a side | |
2021 | # effect, CXXFLAGS is no longer automagically subst'd, so we have to do | |
2022 | # that ourselves. Un-preciousing AC_PROG_CC also affects CC and CFLAGS. | |
2023 | # | |
2024 | # -fno-builtin must be present here so that a non-conflicting form of | |
2025 | # std::exit can be guessed by AC_PROG_CXX, and used in later tests. | |
2026 | ||
2027 | ||
2028 | ||
2029 | ||
2030 | save_CXXFLAGS="$CXXFLAGS" | |
2031 | CXXFLAGS="$CXXFLAGS -fno-builtin" | |
ff66d28f PE |
2032 | ac_ext=c |
2033 | ac_cpp='$CPP $CPPFLAGS' | |
2034 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2035 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2036 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2037 | if test -n "$ac_tool_prefix"; then | |
2038 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2039 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2040 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2041 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2042 | if test "${ac_cv_prog_CC+set}" = set; then | |
2043 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 2044 | else |
ff66d28f PE |
2045 | if test -n "$CC"; then |
2046 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
b2dad0e3 | 2047 | else |
ff66d28f PE |
2048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2049 | for as_dir in $PATH | |
2050 | do | |
2051 | IFS=$as_save_IFS | |
2052 | test -z "$as_dir" && as_dir=. | |
2053 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2054 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2055 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2056 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2057 | break 2 | |
2058 | fi | |
2059 | done | |
2060 | done | |
2061 | ||
b2dad0e3 BK |
2062 | fi |
2063 | fi | |
ff66d28f PE |
2064 | CC=$ac_cv_prog_CC |
2065 | if test -n "$CC"; then | |
2066 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2067 | echo "${ECHO_T}$CC" >&6 | |
b2dad0e3 | 2068 | else |
ff66d28f PE |
2069 | echo "$as_me:$LINENO: result: no" >&5 |
2070 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 BK |
2071 | fi |
2072 | ||
ff66d28f PE |
2073 | fi |
2074 | if test -z "$ac_cv_prog_CC"; then | |
2075 | ac_ct_CC=$CC | |
2076 | # Extract the first word of "gcc", so it can be a program name with args. | |
2077 | set dummy gcc; ac_word=$2 | |
2078 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2079 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2080 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 2082 | else |
ff66d28f PE |
2083 | if test -n "$ac_ct_CC"; then |
2084 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
b2dad0e3 | 2085 | else |
ff66d28f PE |
2086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2087 | for as_dir in $PATH | |
2088 | do | |
2089 | IFS=$as_save_IFS | |
2090 | test -z "$as_dir" && as_dir=. | |
2091 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2092 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2093 | ac_cv_prog_ac_ct_CC="gcc" | |
2094 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2095 | break 2 | |
2096 | fi | |
2097 | done | |
2098 | done | |
2099 | ||
b2dad0e3 BK |
2100 | fi |
2101 | fi | |
ff66d28f PE |
2102 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2103 | if test -n "$ac_ct_CC"; then | |
2104 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2105 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
b2dad0e3 | 2106 | else |
ff66d28f PE |
2107 | echo "$as_me:$LINENO: result: no" >&5 |
2108 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 | 2109 | fi |
b2dad0e3 | 2110 | |
ff66d28f PE |
2111 | CC=$ac_ct_CC |
2112 | else | |
2113 | CC="$ac_cv_prog_CC" | |
b2dad0e3 BK |
2114 | fi |
2115 | ||
ff66d28f PE |
2116 | if test -z "$CC"; then |
2117 | if test -n "$ac_tool_prefix"; then | |
2118 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2119 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2120 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2121 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2122 | if test "${ac_cv_prog_CC+set}" = set; then | |
2123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2124 | else | |
2125 | if test -n "$CC"; then | |
2126 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2127 | else | |
2128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2129 | for as_dir in $PATH | |
2130 | do | |
2131 | IFS=$as_save_IFS | |
2132 | test -z "$as_dir" && as_dir=. | |
2133 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2134 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2135 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2136 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2137 | break 2 | |
b2dad0e3 | 2138 | fi |
ff66d28f PE |
2139 | done |
2140 | done | |
93b85586 | 2141 | |
ff66d28f PE |
2142 | fi |
2143 | fi | |
2144 | CC=$ac_cv_prog_CC | |
2145 | if test -n "$CC"; then | |
2146 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2147 | echo "${ECHO_T}$CC" >&6 | |
974e336b | 2148 | else |
ff66d28f PE |
2149 | echo "$as_me:$LINENO: result: no" >&5 |
2150 | echo "${ECHO_T}no" >&6 | |
2151 | fi | |
974e336b | 2152 | |
974e336b | 2153 | fi |
ff66d28f PE |
2154 | if test -z "$ac_cv_prog_CC"; then |
2155 | ac_ct_CC=$CC | |
2156 | # Extract the first word of "cc", so it can be a program name with args. | |
2157 | set dummy cc; ac_word=$2 | |
2158 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2159 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2160 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2162 | else | |
2163 | if test -n "$ac_ct_CC"; then | |
2164 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2165 | else | |
2166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2167 | for as_dir in $PATH | |
2168 | do | |
2169 | IFS=$as_save_IFS | |
2170 | test -z "$as_dir" && as_dir=. | |
2171 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2172 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2173 | ac_cv_prog_ac_ct_CC="cc" | |
2174 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2175 | break 2 | |
2176 | fi | |
2177 | done | |
2178 | done | |
33590f13 | 2179 | |
974e336b | 2180 | fi |
ff66d28f PE |
2181 | fi |
2182 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2183 | if test -n "$ac_ct_CC"; then | |
2184 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2185 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
33590f13 | 2186 | else |
ff66d28f PE |
2187 | echo "$as_me:$LINENO: result: no" >&5 |
2188 | echo "${ECHO_T}no" >&6 | |
33590f13 BK |
2189 | fi |
2190 | ||
ff66d28f PE |
2191 | CC=$ac_ct_CC |
2192 | else | |
2193 | CC="$ac_cv_prog_CC" | |
2194 | fi | |
33590f13 | 2195 | |
ff66d28f PE |
2196 | fi |
2197 | if test -z "$CC"; then | |
2198 | # Extract the first word of "cc", so it can be a program name with args. | |
2199 | set dummy cc; ac_word=$2 | |
2200 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2201 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2202 | if test "${ac_cv_prog_CC+set}" = set; then | |
2203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 2204 | else |
ff66d28f PE |
2205 | if test -n "$CC"; then |
2206 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
b2dad0e3 | 2207 | else |
ff66d28f PE |
2208 | ac_prog_rejected=no |
2209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2210 | for as_dir in $PATH | |
2211 | do | |
2212 | IFS=$as_save_IFS | |
2213 | test -z "$as_dir" && as_dir=. | |
2214 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2215 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2216 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2217 | ac_prog_rejected=yes | |
2218 | continue | |
2219 | fi | |
2220 | ac_cv_prog_CC="cc" | |
2221 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2222 | break 2 | |
2223 | fi | |
2224 | done | |
2225 | done | |
2226 | ||
2227 | if test $ac_prog_rejected = yes; then | |
2228 | # We found a bogon in the path, so make sure we never use it. | |
2229 | set dummy $ac_cv_prog_CC | |
2230 | shift | |
2231 | if test $# != 0; then | |
2232 | # We chose a different compiler from the bogus one. | |
2233 | # However, it has the same basename, so the bogon will be chosen | |
2234 | # first if we set CC to just the basename; use the full file name. | |
2235 | shift | |
2236 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2237 | fi | |
b2dad0e3 BK |
2238 | fi |
2239 | fi | |
ff66d28f PE |
2240 | fi |
2241 | CC=$ac_cv_prog_CC | |
2242 | if test -n "$CC"; then | |
2243 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2244 | echo "${ECHO_T}$CC" >&6 | |
b2dad0e3 | 2245 | else |
ff66d28f PE |
2246 | echo "$as_me:$LINENO: result: no" >&5 |
2247 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 BK |
2248 | fi |
2249 | ||
ff66d28f PE |
2250 | fi |
2251 | if test -z "$CC"; then | |
2252 | if test -n "$ac_tool_prefix"; then | |
2253 | for ac_prog in cl | |
2254 | do | |
2255 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2256 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2257 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2258 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2259 | if test "${ac_cv_prog_CC+set}" = set; then | |
2260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 2261 | else |
ff66d28f PE |
2262 | if test -n "$CC"; then |
2263 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
b2dad0e3 | 2264 | else |
ff66d28f PE |
2265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2266 | for as_dir in $PATH | |
2267 | do | |
2268 | IFS=$as_save_IFS | |
2269 | test -z "$as_dir" && as_dir=. | |
2270 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2271 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2272 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2273 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2274 | break 2 | |
2275 | fi | |
2276 | done | |
2277 | done | |
2278 | ||
b2dad0e3 BK |
2279 | fi |
2280 | fi | |
ff66d28f PE |
2281 | CC=$ac_cv_prog_CC |
2282 | if test -n "$CC"; then | |
2283 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2284 | echo "${ECHO_T}$CC" >&6 | |
b2dad0e3 | 2285 | else |
ff66d28f PE |
2286 | echo "$as_me:$LINENO: result: no" >&5 |
2287 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 BK |
2288 | fi |
2289 | ||
ff66d28f PE |
2290 | test -n "$CC" && break |
2291 | done | |
2292 | fi | |
2293 | if test -z "$CC"; then | |
2294 | ac_ct_CC=$CC | |
2295 | for ac_prog in cl | |
2296 | do | |
2297 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2298 | set dummy $ac_prog; ac_word=$2 | |
2299 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2300 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2301 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 2303 | else |
ff66d28f PE |
2304 | if test -n "$ac_ct_CC"; then |
2305 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
b2dad0e3 | 2306 | else |
ff66d28f PE |
2307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2308 | for as_dir in $PATH | |
2309 | do | |
2310 | IFS=$as_save_IFS | |
2311 | test -z "$as_dir" && as_dir=. | |
2312 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2313 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2314 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2315 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2316 | break 2 | |
2317 | fi | |
2318 | done | |
2319 | done | |
2320 | ||
b2dad0e3 BK |
2321 | fi |
2322 | fi | |
ff66d28f PE |
2323 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2324 | if test -n "$ac_ct_CC"; then | |
2325 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2326 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
b2dad0e3 | 2327 | else |
ff66d28f PE |
2328 | echo "$as_me:$LINENO: result: no" >&5 |
2329 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 BK |
2330 | fi |
2331 | ||
ff66d28f PE |
2332 | test -n "$ac_ct_CC" && break |
2333 | done | |
b2dad0e3 | 2334 | |
ff66d28f PE |
2335 | CC=$ac_ct_CC |
2336 | fi | |
2337 | ||
2338 | fi | |
2339 | ||
2340 | ||
2341 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2342 | See \`config.log' for more details." >&5 | |
2343 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2344 | See \`config.log' for more details." >&2;} | |
2345 | { (exit 1); exit 1; }; } | |
2346 | ||
2347 | # Provide some information about the compiler. | |
2348 | echo "$as_me:$LINENO:" \ | |
2349 | "checking for C compiler version" >&5 | |
2350 | ac_compiler=`set X $ac_compile; echo $2` | |
2351 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2352 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2353 | ac_status=$? | |
2354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2355 | (exit $ac_status); } | |
2356 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2357 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2358 | ac_status=$? | |
2359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2360 | (exit $ac_status); } | |
2361 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2362 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2363 | ac_status=$? | |
2364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2365 | (exit $ac_status); } | |
2366 | ||
2367 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
2368 | /* confdefs.h. */ |
2369 | _ACEOF | |
2370 | cat confdefs.h >>conftest.$ac_ext | |
2371 | cat >>conftest.$ac_ext <<_ACEOF | |
2372 | /* end confdefs.h. */ | |
2373 | ||
72730fdb DJ |
2374 | int |
2375 | main () | |
2376 | { | |
2377 | ||
2378 | ; | |
2379 | return 0; | |
2380 | } | |
2381 | _ACEOF | |
2382 | # FIXME: Cleanup? | |
2383 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2384 | (eval $ac_link) 2>&5 | |
2385 | ac_status=$? | |
2386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2387 | (exit $ac_status); }; then | |
2388 | gcc_no_link=no | |
2389 | else | |
2390 | gcc_no_link=yes | |
2391 | fi | |
2392 | ||
2393 | if test x$gcc_no_link = xyes; then | |
2394 | # Setting cross_compile will disable run tests; it will | |
2395 | # also disable AC_CHECK_FILE but that's generally | |
2396 | # correct if we can't link. | |
2397 | cross_compiling=yes | |
2398 | EXEEXT= | |
2399 | else | |
2400 | cat >conftest.$ac_ext <<_ACEOF | |
72730fdb DJ |
2401 | /* confdefs.h. */ |
2402 | _ACEOF | |
2403 | cat confdefs.h >>conftest.$ac_ext | |
2404 | cat >>conftest.$ac_ext <<_ACEOF | |
2405 | /* end confdefs.h. */ | |
2406 | ||
ff66d28f PE |
2407 | int |
2408 | main () | |
2409 | { | |
2410 | ||
2411 | ; | |
2412 | return 0; | |
2413 | } | |
2414 | _ACEOF | |
2415 | ac_clean_files_save=$ac_clean_files | |
2416 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2417 | # Try to create an executable without -o first, disregard a.out. | |
2418 | # It will help us diagnose broken compilers, and finding out an intuition | |
2419 | # of exeext. | |
ec2075e9 BK |
2420 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2421 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
ff66d28f PE |
2422 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2423 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2424 | (eval $ac_link_default) 2>&5 | |
2425 | ac_status=$? | |
2426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2427 | (exit $ac_status); }; then | |
2428 | # Find the output, starting from the most likely. This scheme is | |
2429 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2430 | # resort. | |
2431 | ||
2432 | # Be careful to initialize this variable, since it used to be cached. | |
2433 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2434 | ac_cv_exeext= | |
2435 | # b.out is created by i960 compilers. | |
2436 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2437 | do | |
2438 | test -f "$ac_file" || continue | |
2439 | case $ac_file in | |
2440 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
ec2075e9 | 2441 | ;; |
ff66d28f | 2442 | conftest.$ac_ext ) |
ec2075e9 BK |
2443 | # This is the source file. |
2444 | ;; | |
ff66d28f | 2445 | [ab].out ) |
ec2075e9 BK |
2446 | # We found the default executable, but exeext='' is most |
2447 | # certainly right. | |
2448 | break;; | |
ff66d28f | 2449 | *.* ) |
ec2075e9 BK |
2450 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2451 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2452 | # but it would be cool to find out if it's true. Does anybody | |
2453 | # maintain Libtool? --akim. | |
2454 | export ac_cv_exeext | |
2455 | break;; | |
ff66d28f | 2456 | * ) |
ec2075e9 | 2457 | break;; |
ff66d28f PE |
2458 | esac |
2459 | done | |
b2dad0e3 | 2460 | else |
ff66d28f PE |
2461 | echo "$as_me: failed program was:" >&5 |
2462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2463 | ||
2464 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2465 | See \`config.log' for more details." >&5 | |
2466 | echo "$as_me: error: C compiler cannot create executables | |
2467 | See \`config.log' for more details." >&2;} | |
2468 | { (exit 77); exit 77; }; } | |
2469 | fi | |
2470 | ||
2471 | ac_exeext=$ac_cv_exeext | |
2472 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2473 | echo "${ECHO_T}$ac_file" >&6 | |
2474 | ||
2475 | # Check the compiler produces executables we can run. If not, either | |
2476 | # the compiler is broken, or we cross compile. | |
2477 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2478 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2479 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2480 | # If not cross compiling, check that we can run a simple program. | |
2481 | if test "$cross_compiling" != yes; then | |
2482 | if { ac_try='./$ac_file' | |
2483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2484 | (eval $ac_try) 2>&5 | |
2485 | ac_status=$? | |
2486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2487 | (exit $ac_status); }; }; then | |
2488 | cross_compiling=no | |
2489 | else | |
2490 | if test "$cross_compiling" = maybe; then | |
2491 | cross_compiling=yes | |
2492 | else | |
2493 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2494 | If you meant to cross compile, use \`--host'. | |
2495 | See \`config.log' for more details." >&5 | |
2496 | echo "$as_me: error: cannot run C compiled programs. | |
2497 | If you meant to cross compile, use \`--host'. | |
2498 | See \`config.log' for more details." >&2;} | |
2499 | { (exit 1); exit 1; }; } | |
b2dad0e3 | 2500 | fi |
ff66d28f | 2501 | fi |
b2dad0e3 | 2502 | fi |
ff66d28f PE |
2503 | echo "$as_me:$LINENO: result: yes" >&5 |
2504 | echo "${ECHO_T}yes" >&6 | |
2505 | ||
2506 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2507 | ac_clean_files=$ac_clean_files_save | |
2508 | # Check the compiler produces executables we can run. If not, either | |
2509 | # the compiler is broken, or we cross compile. | |
2510 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2511 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2512 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2513 | echo "${ECHO_T}$cross_compiling" >&6 | |
2514 | ||
2515 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2516 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2517 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2518 | (eval $ac_link) 2>&5 | |
2519 | ac_status=$? | |
2520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2521 | (exit $ac_status); }; then | |
2522 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2523 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2524 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2525 | # `rm'. | |
2526 | for ac_file in conftest.exe conftest conftest.*; do | |
2527 | test -f "$ac_file" || continue | |
2528 | case $ac_file in | |
2529 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2530 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
ec2075e9 BK |
2531 | export ac_cv_exeext |
2532 | break;; | |
ff66d28f PE |
2533 | * ) break;; |
2534 | esac | |
2535 | done | |
b2dad0e3 | 2536 | else |
ff66d28f PE |
2537 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2538 | See \`config.log' for more details." >&5 | |
2539 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2540 | See \`config.log' for more details." >&2;} | |
2541 | { (exit 1); exit 1; }; } | |
b2dad0e3 BK |
2542 | fi |
2543 | ||
ff66d28f PE |
2544 | rm -f conftest$ac_cv_exeext |
2545 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2546 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2547 | ||
2548 | rm -f conftest.$ac_ext | |
2549 | EXEEXT=$ac_cv_exeext | |
2550 | ac_exeext=$EXEEXT | |
72730fdb | 2551 | fi |
ff66d28f PE |
2552 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2553 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2554 | if test "${ac_cv_objext+set}" = set; then | |
2555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2556 | else | |
2557 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
2558 | /* confdefs.h. */ |
2559 | _ACEOF | |
2560 | cat confdefs.h >>conftest.$ac_ext | |
2561 | cat >>conftest.$ac_ext <<_ACEOF | |
2562 | /* end confdefs.h. */ | |
2563 | ||
2564 | int | |
2565 | main () | |
2566 | { | |
2567 | ||
2568 | ; | |
2569 | return 0; | |
2570 | } | |
2571 | _ACEOF | |
2572 | rm -f conftest.o conftest.obj | |
2573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2574 | (eval $ac_compile) 2>&5 | |
2575 | ac_status=$? | |
2576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2577 | (exit $ac_status); }; then | |
2578 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2579 | case $ac_file in | |
2580 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2581 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2582 | break;; | |
2583 | esac | |
2584 | done | |
b2dad0e3 | 2585 | else |
ff66d28f PE |
2586 | echo "$as_me: failed program was:" >&5 |
2587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2588 | ||
2589 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2590 | See \`config.log' for more details." >&5 | |
2591 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2592 | See \`config.log' for more details." >&2;} | |
2593 | { (exit 1); exit 1; }; } | |
46840bcd | 2594 | fi |
ff66d28f PE |
2595 | |
2596 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
46840bcd | 2597 | fi |
ff66d28f PE |
2598 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
2599 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2600 | OBJEXT=$ac_cv_objext | |
2601 | ac_objext=$OBJEXT | |
2602 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2603 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2604 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2606 | else | |
2607 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
2608 | /* confdefs.h. */ |
2609 | _ACEOF | |
2610 | cat confdefs.h >>conftest.$ac_ext | |
2611 | cat >>conftest.$ac_ext <<_ACEOF | |
2612 | /* end confdefs.h. */ | |
46840bcd | 2613 | |
ff66d28f PE |
2614 | int |
2615 | main () | |
2616 | { | |
2617 | #ifndef __GNUC__ | |
2618 | choke me | |
2619 | #endif | |
2620 | ||
2621 | ; | |
2622 | return 0; | |
2623 | } | |
2624 | _ACEOF | |
2625 | rm -f conftest.$ac_objext | |
2626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 2627 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 2628 | ac_status=$? |
ec2075e9 BK |
2629 | grep -v '^ *+' conftest.er1 >conftest.err |
2630 | rm -f conftest.er1 | |
2631 | cat conftest.err >&5 | |
ff66d28f PE |
2632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2633 | (exit $ac_status); } && | |
780028b6 BK |
2634 | { ac_try='test -z "$ac_c_werror_flag" |
2635 | || test ! -s conftest.err' | |
ec2075e9 BK |
2636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2637 | (eval $ac_try) 2>&5 | |
2638 | ac_status=$? | |
2639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2640 | (exit $ac_status); }; } && | |
2641 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
2642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2643 | (eval $ac_try) 2>&5 | |
2644 | ac_status=$? | |
2645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2646 | (exit $ac_status); }; }; then | |
2647 | ac_compiler_gnu=yes | |
2648 | else | |
2649 | echo "$as_me: failed program was:" >&5 | |
2650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2651 | ||
2652 | ac_compiler_gnu=no | |
2653 | fi | |
ec2075e9 | 2654 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
2655 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
2656 | ||
2657 | fi | |
2658 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2659 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2660 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2661 | ac_test_CFLAGS=${CFLAGS+set} | |
2662 | ac_save_CFLAGS=$CFLAGS | |
2663 | CFLAGS="-g" | |
2664 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2665 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2666 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2668 | else | |
2669 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
2670 | /* confdefs.h. */ |
2671 | _ACEOF | |
2672 | cat confdefs.h >>conftest.$ac_ext | |
2673 | cat >>conftest.$ac_ext <<_ACEOF | |
2674 | /* end confdefs.h. */ | |
2675 | ||
2676 | int | |
2677 | main () | |
2678 | { | |
2679 | ||
2680 | ; | |
2681 | return 0; | |
2682 | } | |
2683 | _ACEOF | |
2684 | rm -f conftest.$ac_objext | |
2685 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 2686 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 2687 | ac_status=$? |
ec2075e9 BK |
2688 | grep -v '^ *+' conftest.er1 >conftest.err |
2689 | rm -f conftest.er1 | |
2690 | cat conftest.err >&5 | |
ff66d28f PE |
2691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2692 | (exit $ac_status); } && | |
780028b6 BK |
2693 | { ac_try='test -z "$ac_c_werror_flag" |
2694 | || test ! -s conftest.err' | |
ec2075e9 BK |
2695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2696 | (eval $ac_try) 2>&5 | |
2697 | ac_status=$? | |
2698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2699 | (exit $ac_status); }; } && | |
2700 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
2701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2702 | (eval $ac_try) 2>&5 | |
2703 | ac_status=$? | |
2704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2705 | (exit $ac_status); }; }; then | |
2706 | ac_cv_prog_cc_g=yes | |
b2dad0e3 | 2707 | else |
ff66d28f PE |
2708 | echo "$as_me: failed program was:" >&5 |
2709 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b2dad0e3 | 2710 | |
ff66d28f | 2711 | ac_cv_prog_cc_g=no |
b2dad0e3 | 2712 | fi |
ec2075e9 | 2713 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
2714 | fi |
2715 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2716 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2717 | if test "$ac_test_CFLAGS" = set; then | |
2718 | CFLAGS=$ac_save_CFLAGS | |
2719 | elif test $ac_cv_prog_cc_g = yes; then | |
2720 | if test "$GCC" = yes; then | |
2721 | CFLAGS="-g -O2" | |
b2dad0e3 | 2722 | else |
ff66d28f | 2723 | CFLAGS="-g" |
b2dad0e3 | 2724 | fi |
ff66d28f PE |
2725 | else |
2726 | if test "$GCC" = yes; then | |
2727 | CFLAGS="-O2" | |
2728 | else | |
2729 | CFLAGS= | |
2730 | fi | |
2731 | fi | |
2732 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2733 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2734 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2736 | else | |
2737 | ac_cv_prog_cc_stdc=no | |
2738 | ac_save_CC=$CC | |
2739 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
2740 | /* confdefs.h. */ |
2741 | _ACEOF | |
2742 | cat confdefs.h >>conftest.$ac_ext | |
2743 | cat >>conftest.$ac_ext <<_ACEOF | |
2744 | /* end confdefs.h. */ | |
2745 | #include <stdarg.h> | |
2746 | #include <stdio.h> | |
2747 | #include <sys/types.h> | |
2748 | #include <sys/stat.h> | |
2749 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2750 | struct buf { int x; }; | |
2751 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2752 | static char *e (p, i) | |
2753 | char **p; | |
2754 | int i; | |
2755 | { | |
2756 | return p[i]; | |
2757 | } | |
2758 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2759 | { | |
2760 | char *s; | |
2761 | va_list v; | |
2762 | va_start (v,p); | |
2763 | s = g (p, va_arg (v,int)); | |
2764 | va_end (v); | |
2765 | return s; | |
2766 | } | |
ec2075e9 BK |
2767 | |
2768 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2769 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2770 | These don't provoke an error unfortunately, instead are silently treated | |
2771 | as 'x'. The following induces an error, until -std1 is added to get | |
2772 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2773 | array size at least. It's necessary to write '\x00'==0 to get something | |
2774 | that's true only with -std1. */ | |
2775 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2776 | ||
ff66d28f PE |
2777 | int test (int i, double x); |
2778 | struct s1 {int (*f) (int a);}; | |
2779 | struct s2 {int (*f) (double a);}; | |
2780 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2781 | int argc; | |
2782 | char **argv; | |
2783 | int | |
2784 | main () | |
2785 | { | |
2786 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2787 | ; | |
2788 | return 0; | |
2789 | } | |
2790 | _ACEOF | |
2791 | # Don't try gcc -ansi; that turns off useful extensions and | |
2792 | # breaks some systems' header files. | |
2793 | # AIX -qlanglvl=ansi | |
2794 | # Ultrix and OSF/1 -std1 | |
2795 | # HP-UX 10.20 and later -Ae | |
2796 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2797 | # SVR4 -Xc -D__EXTENSIONS__ | |
2798 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2799 | do | |
2800 | CC="$ac_save_CC $ac_arg" | |
2801 | rm -f conftest.$ac_objext | |
2802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 2803 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 2804 | ac_status=$? |
ec2075e9 BK |
2805 | grep -v '^ *+' conftest.er1 >conftest.err |
2806 | rm -f conftest.er1 | |
2807 | cat conftest.err >&5 | |
ff66d28f PE |
2808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2809 | (exit $ac_status); } && | |
780028b6 BK |
2810 | { ac_try='test -z "$ac_c_werror_flag" |
2811 | || test ! -s conftest.err' | |
ec2075e9 BK |
2812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2813 | (eval $ac_try) 2>&5 | |
2814 | ac_status=$? | |
2815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2816 | (exit $ac_status); }; } && | |
2817 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
2818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2819 | (eval $ac_try) 2>&5 | |
2820 | ac_status=$? | |
2821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2822 | (exit $ac_status); }; }; then | |
2823 | ac_cv_prog_cc_stdc=$ac_arg | |
2824 | break | |
2825 | else | |
2826 | echo "$as_me: failed program was:" >&5 | |
2827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2828 | ||
b2dad0e3 | 2829 | fi |
ec2075e9 | 2830 | rm -f conftest.err conftest.$ac_objext |
ff66d28f PE |
2831 | done |
2832 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2833 | CC=$ac_save_CC | |
b2dad0e3 | 2834 | |
ff66d28f | 2835 | fi |
b2dad0e3 | 2836 | |
ff66d28f PE |
2837 | case "x$ac_cv_prog_cc_stdc" in |
2838 | x|xno) | |
2839 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2840 | echo "${ECHO_T}none needed" >&6 ;; | |
2841 | *) | |
2842 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2843 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2844 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2845 | esac | |
b2dad0e3 | 2846 | |
ff66d28f PE |
2847 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2848 | # in C++ we need to declare it. In case someone uses the same compiler | |
2849 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2850 | # the declaration of exit, since it's the most demanding environment. | |
2851 | cat >conftest.$ac_ext <<_ACEOF | |
2852 | #ifndef __cplusplus | |
2853 | choke me | |
2854 | #endif | |
2855 | _ACEOF | |
2856 | rm -f conftest.$ac_objext | |
2857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 2858 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 2859 | ac_status=$? |
ec2075e9 BK |
2860 | grep -v '^ *+' conftest.er1 >conftest.err |
2861 | rm -f conftest.er1 | |
2862 | cat conftest.err >&5 | |
ff66d28f PE |
2863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2864 | (exit $ac_status); } && | |
780028b6 BK |
2865 | { ac_try='test -z "$ac_c_werror_flag" |
2866 | || test ! -s conftest.err' | |
ec2075e9 BK |
2867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2868 | (eval $ac_try) 2>&5 | |
2869 | ac_status=$? | |
2870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2871 | (exit $ac_status); }; } && | |
2872 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
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); }; }; then | |
2878 | for ac_declaration in \ | |
ec2075e9 | 2879 | '' \ |
ff66d28f PE |
2880 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
2881 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2882 | 'extern "C" void exit (int) throw ();' \ | |
2883 | 'extern "C" void exit (int);' \ | |
2884 | 'void exit (int);' | |
2885 | do | |
2886 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
2887 | /* confdefs.h. */ |
2888 | _ACEOF | |
2889 | cat confdefs.h >>conftest.$ac_ext | |
2890 | cat >>conftest.$ac_ext <<_ACEOF | |
2891 | /* end confdefs.h. */ | |
158960ba | 2892 | $ac_declaration |
ec2075e9 | 2893 | #include <stdlib.h> |
ff66d28f PE |
2894 | int |
2895 | main () | |
2896 | { | |
2897 | exit (42); | |
2898 | ; | |
2899 | return 0; | |
2900 | } | |
2901 | _ACEOF | |
2902 | rm -f conftest.$ac_objext | |
2903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 2904 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 2905 | ac_status=$? |
ec2075e9 BK |
2906 | grep -v '^ *+' conftest.er1 >conftest.err |
2907 | rm -f conftest.er1 | |
2908 | cat conftest.err >&5 | |
ff66d28f PE |
2909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2910 | (exit $ac_status); } && | |
780028b6 BK |
2911 | { ac_try='test -z "$ac_c_werror_flag" |
2912 | || test ! -s conftest.err' | |
ec2075e9 BK |
2913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2914 | (eval $ac_try) 2>&5 | |
2915 | ac_status=$? | |
2916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2917 | (exit $ac_status); }; } && | |
2918 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
2919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2920 | (eval $ac_try) 2>&5 | |
2921 | ac_status=$? | |
2922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2923 | (exit $ac_status); }; }; then | |
2924 | : | |
2925 | else | |
2926 | echo "$as_me: failed program was:" >&5 | |
2927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b2dad0e3 | 2928 | |
ff66d28f PE |
2929 | continue |
2930 | fi | |
ec2075e9 | 2931 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f | 2932 | cat >conftest.$ac_ext <<_ACEOF |
ff66d28f PE |
2933 | /* confdefs.h. */ |
2934 | _ACEOF | |
2935 | cat confdefs.h >>conftest.$ac_ext | |
2936 | cat >>conftest.$ac_ext <<_ACEOF | |
2937 | /* end confdefs.h. */ | |
2938 | $ac_declaration | |
2939 | int | |
2940 | main () | |
2941 | { | |
2942 | exit (42); | |
2943 | ; | |
2944 | return 0; | |
2945 | } | |
2946 | _ACEOF | |
2947 | rm -f conftest.$ac_objext | |
2948 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 2949 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 2950 | ac_status=$? |
ec2075e9 BK |
2951 | grep -v '^ *+' conftest.er1 >conftest.err |
2952 | rm -f conftest.er1 | |
2953 | cat conftest.err >&5 | |
ff66d28f PE |
2954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2955 | (exit $ac_status); } && | |
780028b6 BK |
2956 | { ac_try='test -z "$ac_c_werror_flag" |
2957 | || test ! -s conftest.err' | |
ec2075e9 BK |
2958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2959 | (eval $ac_try) 2>&5 | |
2960 | ac_status=$? | |
2961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2962 | (exit $ac_status); }; } && | |
2963 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
2964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2965 | (eval $ac_try) 2>&5 | |
2966 | ac_status=$? | |
2967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2968 | (exit $ac_status); }; }; then | |
2969 | break | |
2970 | else | |
2971 | echo "$as_me: failed program was:" >&5 | |
2972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2973 | ||
2974 | fi | |
ec2075e9 | 2975 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
2976 | done |
2977 | rm -f conftest* | |
2978 | if test -n "$ac_declaration"; then | |
2979 | echo '#ifdef __cplusplus' >>confdefs.h | |
2980 | echo $ac_declaration >>confdefs.h | |
2981 | echo '#endif' >>confdefs.h | |
2982 | fi | |
b2dad0e3 | 2983 | |
b2dad0e3 | 2984 | else |
ff66d28f PE |
2985 | echo "$as_me: failed program was:" >&5 |
2986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2987 | ||
b2dad0e3 | 2988 | fi |
ec2075e9 | 2989 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
2990 | ac_ext=c |
2991 | ac_cpp='$CPP $CPPFLAGS' | |
2992 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2993 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2994 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2995 | ||
ff66d28f PE |
2996 | ac_ext=cc |
2997 | ac_cpp='$CXXCPP $CPPFLAGS' | |
2998 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2999 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3000 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3001 | if test -n "$ac_tool_prefix"; then | |
3002 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
3003 | do | |
3004 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3005 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3006 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3007 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3008 | if test "${glibcxx_cv_prog_CXX+set}" = set; then | |
3009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3010 | else | |
3011 | if test -n "$CXX"; then | |
3012 | glibcxx_cv_prog_CXX="$CXX" # Let the user override the test. | |
3013 | else | |
3014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3015 | for as_dir in $PATH | |
3016 | do | |
3017 | IFS=$as_save_IFS | |
3018 | test -z "$as_dir" && as_dir=. | |
3019 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3020 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3021 | glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
3022 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3023 | break 2 | |
3024 | fi | |
3025 | done | |
3026 | done | |
3027 | ||
3028 | fi | |
3029 | fi | |
3030 | CXX=$glibcxx_cv_prog_CXX | |
3031 | if test -n "$CXX"; then | |
3032 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
3033 | echo "${ECHO_T}$CXX" >&6 | |
b2dad0e3 | 3034 | else |
ff66d28f PE |
3035 | echo "$as_me:$LINENO: result: no" >&5 |
3036 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 | 3037 | fi |
b2dad0e3 | 3038 | |
ff66d28f PE |
3039 | test -n "$CXX" && break |
3040 | done | |
3041 | fi | |
3042 | if test -z "$CXX"; then | |
3043 | ac_ct_CXX=$CXX | |
3044 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
3045 | do | |
3046 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3047 | set dummy $ac_prog; ac_word=$2 | |
3048 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3049 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3050 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
3051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3052 | else | |
3053 | if test -n "$ac_ct_CXX"; then | |
3054 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3055 | else | |
3056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3057 | for as_dir in $PATH | |
3058 | do | |
3059 | IFS=$as_save_IFS | |
3060 | test -z "$as_dir" && as_dir=. | |
3061 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3062 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3063 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
3064 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3065 | break 2 | |
b2dad0e3 | 3066 | fi |
ff66d28f PE |
3067 | done |
3068 | done | |
3069 | ||
b2dad0e3 | 3070 | fi |
ff66d28f PE |
3071 | fi |
3072 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3073 | if test -n "$ac_ct_CXX"; then | |
3074 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
3075 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
3076 | else | |
3077 | echo "$as_me:$LINENO: result: no" >&5 | |
3078 | echo "${ECHO_T}no" >&6 | |
b2dad0e3 BK |
3079 | fi |
3080 | ||
ff66d28f PE |
3081 | test -n "$ac_ct_CXX" && break |
3082 | done | |
3083 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
3084 | ||
3085 | CXX=$ac_ct_CXX | |
3086 | fi | |
3087 | ||
3088 | ||
3089 | # Provide some information about the compiler. | |
3090 | echo "$as_me:$LINENO:" \ | |
3091 | "checking for C++ compiler version" >&5 | |
3092 | ac_compiler=`set X $ac_compile; echo $2` | |
3093 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
3094 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
3095 | ac_status=$? | |
3096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3097 | (exit $ac_status); } | |
3098 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
3099 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
3100 | ac_status=$? | |
3101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3102 | (exit $ac_status); } | |
3103 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
3104 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
3105 | ac_status=$? | |
3106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3107 | (exit $ac_status); } | |
3108 | ||
3109 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
3110 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
3111 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
3112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3113 | else | |
3114 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
3115 | /* confdefs.h. */ |
3116 | _ACEOF | |
3117 | cat confdefs.h >>conftest.$ac_ext | |
3118 | cat >>conftest.$ac_ext <<_ACEOF | |
3119 | /* end confdefs.h. */ | |
3120 | ||
3121 | int | |
3122 | main () | |
3123 | { | |
3124 | #ifndef __GNUC__ | |
3125 | choke me | |
3126 | #endif | |
3127 | ||
3128 | ; | |
3129 | return 0; | |
3130 | } | |
3131 | _ACEOF | |
3132 | rm -f conftest.$ac_objext | |
3133 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 3134 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 3135 | ac_status=$? |
ec2075e9 BK |
3136 | grep -v '^ *+' conftest.er1 >conftest.err |
3137 | rm -f conftest.er1 | |
3138 | cat conftest.err >&5 | |
ff66d28f PE |
3139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3140 | (exit $ac_status); } && | |
780028b6 BK |
3141 | { ac_try='test -z "$ac_cxx_werror_flag" |
3142 | || test ! -s conftest.err' | |
ec2075e9 BK |
3143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3144 | (eval $ac_try) 2>&5 | |
3145 | ac_status=$? | |
3146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3147 | (exit $ac_status); }; } && | |
3148 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
3149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3150 | (eval $ac_try) 2>&5 | |
3151 | ac_status=$? | |
3152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3153 | (exit $ac_status); }; }; then | |
3154 | ac_compiler_gnu=yes | |
3155 | else | |
3156 | echo "$as_me: failed program was:" >&5 | |
3157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3158 | ||
3159 | ac_compiler_gnu=no | |
3160 | fi | |
ec2075e9 | 3161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
3162 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
3163 | ||
3164 | fi | |
3165 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
3166 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
3167 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
3168 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
3169 | ac_save_CXXFLAGS=$CXXFLAGS | |
3170 | CXXFLAGS="-g" | |
3171 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
3172 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
3173 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
3174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3175 | else | |
3176 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
3177 | /* confdefs.h. */ |
3178 | _ACEOF | |
3179 | cat confdefs.h >>conftest.$ac_ext | |
3180 | cat >>conftest.$ac_ext <<_ACEOF | |
3181 | /* end confdefs.h. */ | |
3182 | ||
3183 | int | |
3184 | main () | |
3185 | { | |
b2dad0e3 | 3186 | |
ff66d28f PE |
3187 | ; |
3188 | return 0; | |
3189 | } | |
3190 | _ACEOF | |
3191 | rm -f conftest.$ac_objext | |
3192 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 3193 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 3194 | ac_status=$? |
ec2075e9 BK |
3195 | grep -v '^ *+' conftest.er1 >conftest.err |
3196 | rm -f conftest.er1 | |
3197 | cat conftest.err >&5 | |
ff66d28f PE |
3198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3199 | (exit $ac_status); } && | |
780028b6 BK |
3200 | { ac_try='test -z "$ac_cxx_werror_flag" |
3201 | || test ! -s conftest.err' | |
ec2075e9 BK |
3202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3203 | (eval $ac_try) 2>&5 | |
3204 | ac_status=$? | |
3205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3206 | (exit $ac_status); }; } && | |
3207 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
3208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3209 | (eval $ac_try) 2>&5 | |
3210 | ac_status=$? | |
3211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3212 | (exit $ac_status); }; }; then | |
3213 | ac_cv_prog_cxx_g=yes | |
3214 | else | |
3215 | echo "$as_me: failed program was:" >&5 | |
3216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3217 | ||
3218 | ac_cv_prog_cxx_g=no | |
3219 | fi | |
ec2075e9 | 3220 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
3221 | fi |
3222 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
3223 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
3224 | if test "$ac_test_CXXFLAGS" = set; then | |
3225 | CXXFLAGS=$ac_save_CXXFLAGS | |
3226 | elif test $ac_cv_prog_cxx_g = yes; then | |
3227 | if test "$GXX" = yes; then | |
3228 | CXXFLAGS="-g -O2" | |
3229 | else | |
3230 | CXXFLAGS="-g" | |
3231 | fi | |
3232 | else | |
3233 | if test "$GXX" = yes; then | |
3234 | CXXFLAGS="-O2" | |
3235 | else | |
3236 | CXXFLAGS= | |
5780a46b | 3237 | fi |
ff66d28f PE |
3238 | fi |
3239 | for ac_declaration in \ | |
ec2075e9 | 3240 | '' \ |
ff66d28f PE |
3241 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
3242 | 'extern "C" void std::exit (int); using std::exit;' \ | |
3243 | 'extern "C" void exit (int) throw ();' \ | |
3244 | 'extern "C" void exit (int);' \ | |
3245 | 'void exit (int);' | |
3246 | do | |
3247 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
3248 | /* confdefs.h. */ |
3249 | _ACEOF | |
3250 | cat confdefs.h >>conftest.$ac_ext | |
3251 | cat >>conftest.$ac_ext <<_ACEOF | |
3252 | /* end confdefs.h. */ | |
158960ba | 3253 | $ac_declaration |
ec2075e9 | 3254 | #include <stdlib.h> |
ff66d28f PE |
3255 | int |
3256 | main () | |
3257 | { | |
3258 | exit (42); | |
3259 | ; | |
3260 | return 0; | |
3261 | } | |
3262 | _ACEOF | |
3263 | rm -f conftest.$ac_objext | |
3264 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 3265 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 3266 | ac_status=$? |
ec2075e9 BK |
3267 | grep -v '^ *+' conftest.er1 >conftest.err |
3268 | rm -f conftest.er1 | |
3269 | cat conftest.err >&5 | |
ff66d28f PE |
3270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3271 | (exit $ac_status); } && | |
780028b6 BK |
3272 | { ac_try='test -z "$ac_cxx_werror_flag" |
3273 | || test ! -s conftest.err' | |
ec2075e9 BK |
3274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3275 | (eval $ac_try) 2>&5 | |
3276 | ac_status=$? | |
3277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3278 | (exit $ac_status); }; } && | |
3279 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
3280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3281 | (eval $ac_try) 2>&5 | |
3282 | ac_status=$? | |
3283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3284 | (exit $ac_status); }; }; then | |
3285 | : | |
3286 | else | |
3287 | echo "$as_me: failed program was:" >&5 | |
3288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b2dad0e3 | 3289 | |
ff66d28f PE |
3290 | continue |
3291 | fi | |
ec2075e9 | 3292 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f | 3293 | cat >conftest.$ac_ext <<_ACEOF |
ff66d28f PE |
3294 | /* confdefs.h. */ |
3295 | _ACEOF | |
3296 | cat confdefs.h >>conftest.$ac_ext | |
3297 | cat >>conftest.$ac_ext <<_ACEOF | |
3298 | /* end confdefs.h. */ | |
3299 | $ac_declaration | |
3300 | int | |
3301 | main () | |
3302 | { | |
3303 | exit (42); | |
3304 | ; | |
3305 | return 0; | |
3306 | } | |
3307 | _ACEOF | |
3308 | rm -f conftest.$ac_objext | |
3309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 3310 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 3311 | ac_status=$? |
ec2075e9 BK |
3312 | grep -v '^ *+' conftest.er1 >conftest.err |
3313 | rm -f conftest.er1 | |
3314 | cat conftest.err >&5 | |
ff66d28f PE |
3315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3316 | (exit $ac_status); } && | |
780028b6 BK |
3317 | { ac_try='test -z "$ac_cxx_werror_flag" |
3318 | || test ! -s conftest.err' | |
ec2075e9 BK |
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 | |
ec2075e9 | 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 | 3925 | darwin* | rhapsody*) |
29d4adf4 | 3926 | # this will be overwritten by pass_all, but leave it in just in case |
c21b6f87 | 3927 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' |
47e982b2 BK |
3928 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
3929 | case "$host_os" in | |
3930 | rhapsody* | darwin1.012) | |
3931 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
3932 | ;; | |
3933 | *) # Darwin 1.3 on | |
3934 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
3935 | ;; | |
3936 | esac | |
29d4adf4 | 3937 | lt_cv_deplibs_check_method=pass_all |
c21b6f87 PE |
3938 | ;; |
3939 | ||
dc7c62ae | 3940 | freebsd* | kfreebsd*-gnu) |
3df64633 | 3941 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
c21b6f87 | 3942 | case $host_cpu in |
3df64633 | 3943 | i*86 ) |
6d93bca4 AO |
3944 | # Not sure whether the presence of OpenBSD here was a mistake. |
3945 | # Let's accept both of them until this is cleared up. | |
c21b6f87 PE |
3946 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
3947 | lt_cv_file_magic_cmd=/usr/bin/file | |
3df64633 AO |
3948 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3949 | ;; | |
3950 | esac | |
3951 | else | |
3952 | lt_cv_deplibs_check_method=pass_all | |
3953 | fi | |
3954 | ;; | |
3955 | ||
3956 | gnu*) | |
3957 | lt_cv_deplibs_check_method=pass_all | |
3958 | ;; | |
3959 | ||
c21b6f87 | 3960 | hpux10.20*|hpux11*) |
38cca750 BK |
3961 | case $host_cpu in |
3962 | hppa*) | |
3963 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3964 | lt_cv_file_magic_cmd=/usr/bin/file | |
3965 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3966 | ;; | |
3967 | ia64*) | |
3968 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3969 | lt_cv_file_magic_cmd=/usr/bin/file | |
3970 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3971 | ;; | |
3972 | esac | |
3df64633 AO |
3973 | ;; |
3974 | ||
3975 | irix5* | irix6*) | |
c21b6f87 | 3976 | case $host_os in |
3df64633 AO |
3977 | irix5*) |
3978 | # this will be overridden with pass_all, but let us keep it just in case | |
3979 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
3980 | ;; | |
3981 | *) | |
c21b6f87 | 3982 | case $LD in |
3df64633 AO |
3983 | *-32|*"-32 ") libmagic=32-bit;; |
3984 | *-n32|*"-n32 ") libmagic=N32;; | |
3985 | *-64|*"-64 ") libmagic=64-bit;; | |
3986 | *) libmagic=never-match;; | |
3987 | esac | |
3988 | # this will be overridden with pass_all, but let us keep it just in case | |
c21b6f87 PE |
3989 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
3990 | ;; | |
3df64633 AO |
3991 | esac |
3992 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
3993 | lt_cv_deplibs_check_method=pass_all | |
3994 | ;; | |
3995 | ||
3996 | # This must be Linux ELF. | |
6d93bca4 | 3997 | linux-gnu*) |
2c92e90f | 3998 | lt_cv_deplibs_check_method=pass_all |
3df64633 AO |
3999 | ;; |
4000 | ||
dc7c62ae | 4001 | netbsd* | knetbsd*-gnu) |
c21b6f87 | 4002 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
47e982b2 | 4003 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
3df64633 | 4004 | else |
47e982b2 | 4005 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
3df64633 | 4006 | fi |
c21b6f87 PE |
4007 | ;; |
4008 | ||
4009 | newsos6) | |
4010 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
4011 | lt_cv_file_magic_cmd=/usr/bin/file | |
4012 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3df64633 AO |
4013 | ;; |
4014 | ||
4015 | osf3* | osf4* | osf5*) | |
4016 | # this will be overridden with pass_all, but let us keep it just in case | |
4017 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
4018 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4019 | lt_cv_deplibs_check_method=pass_all | |
4020 | ;; | |
4021 | ||
4022 | sco3.2v5*) | |
4023 | lt_cv_deplibs_check_method=pass_all | |
4024 | ;; | |
4025 | ||
4026 | solaris*) | |
4027 | lt_cv_deplibs_check_method=pass_all | |
4028 | lt_cv_file_magic_test_file=/lib/libc.so | |
4029 | ;; | |
4030 | ||
bfa1e6b1 BK |
4031 | sysv5uw[78]* | sysv4*uw2*) |
4032 | lt_cv_deplibs_check_method=pass_all | |
4033 | ;; | |
4034 | ||
3df64633 | 4035 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
c21b6f87 | 4036 | case $host_vendor in |
3df64633 AO |
4037 | ncr) |
4038 | lt_cv_deplibs_check_method=pass_all | |
4039 | ;; | |
4040 | motorola) | |
c21b6f87 PE |
4041 | 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]' |
4042 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
3df64633 AO |
4043 | ;; |
4044 | esac | |
4045 | ;; | |
4046 | esac | |
4047 | ||
4048 | fi | |
ff66d28f PE |
4049 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
4050 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
3df64633 AO |
4051 | file_magic_cmd=$lt_cv_file_magic_cmd |
4052 | deplibs_check_method=$lt_cv_deplibs_check_method | |
4053 | ||
3df64633 | 4054 | |
ff66d28f | 4055 | |
3df64633 | 4056 | |
ec0d7421 | 4057 | |
3df64633 AO |
4058 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
4059 | ||
4060 | # Only perform the check for file, if the check method requires it | |
c21b6f87 | 4061 | case $deplibs_check_method in |
3df64633 | 4062 | file_magic*) |
3dd7094e | 4063 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
ff66d28f PE |
4064 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
4065 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
4066 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
4067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 | 4068 | else |
c21b6f87 | 4069 | case $MAGIC_CMD in |
3df64633 | 4070 | /*) |
3dd7094e | 4071 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
3df64633 AO |
4072 | ;; |
4073 | ?:/*) | |
3dd7094e | 4074 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
3df64633 AO |
4075 | ;; |
4076 | *) | |
3dd7094e | 4077 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
3df64633 AO |
4078 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
4079 | ac_dummy="/usr/bin:$PATH" | |
4080 | for ac_dir in $ac_dummy; do | |
4081 | test -z "$ac_dir" && ac_dir=. | |
4082 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
3dd7094e | 4083 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
3df64633 | 4084 | if test -n "$file_magic_test_file"; then |
c21b6f87 | 4085 | case $deplibs_check_method in |
3df64633 AO |
4086 | "file_magic "*) |
4087 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
3dd7094e | 4088 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3df64633 AO |
4089 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
4090 | egrep "$file_magic_regex" > /dev/null; then | |
4091 | : | |
4092 | else | |
4093 | cat <<EOF 1>&2 | |
4094 | ||
4095 | *** Warning: the command libtool uses to detect shared libraries, | |
4096 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
4097 | *** The result is that libtool may fail to recognize shared libraries | |
4098 | *** as such. This will affect the creation of libtool libraries that | |
4099 | *** depend on shared libraries, but programs linked with such libtool | |
4100 | *** libraries will work regardless of this problem. Nevertheless, you | |
4101 | *** may want to report the problem to your system manager and/or to | |
4102 | *** bug-libtool@gnu.org | |
4103 | ||
4104 | EOF | |
4105 | fi ;; | |
4106 | esac | |
4107 | fi | |
4108 | break | |
4109 | fi | |
4110 | done | |
4111 | IFS="$ac_save_ifs" | |
3dd7094e | 4112 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
3df64633 AO |
4113 | ;; |
4114 | esac | |
4115 | fi | |
4116 | ||
3dd7094e AO |
4117 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
4118 | if test -n "$MAGIC_CMD"; then | |
ff66d28f PE |
4119 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
4120 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
3df64633 | 4121 | else |
ff66d28f PE |
4122 | echo "$as_me:$LINENO: result: no" >&5 |
4123 | echo "${ECHO_T}no" >&6 | |
3df64633 AO |
4124 | fi |
4125 | ||
3dd7094e | 4126 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
3df64633 | 4127 | if test -n "$ac_tool_prefix"; then |
ff66d28f PE |
4128 | echo "$as_me:$LINENO: checking for file" >&5 |
4129 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
4130 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
4131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 | 4132 | else |
c21b6f87 | 4133 | case $MAGIC_CMD in |
3df64633 | 4134 | /*) |
3dd7094e | 4135 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
3df64633 AO |
4136 | ;; |
4137 | ?:/*) | |
3dd7094e | 4138 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
3df64633 AO |
4139 | ;; |
4140 | *) | |
3dd7094e | 4141 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
3df64633 AO |
4142 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
4143 | ac_dummy="/usr/bin:$PATH" | |
4144 | for ac_dir in $ac_dummy; do | |
4145 | test -z "$ac_dir" && ac_dir=. | |
4146 | if test -f $ac_dir/file; then | |
3dd7094e | 4147 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
3df64633 | 4148 | if test -n "$file_magic_test_file"; then |
c21b6f87 | 4149 | case $deplibs_check_method in |
3df64633 AO |
4150 | "file_magic "*) |
4151 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
3dd7094e | 4152 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3df64633 AO |
4153 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
4154 | egrep "$file_magic_regex" > /dev/null; then | |
4155 | : | |
4156 | else | |
4157 | cat <<EOF 1>&2 | |
4158 | ||
4159 | *** Warning: the command libtool uses to detect shared libraries, | |
4160 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
4161 | *** The result is that libtool may fail to recognize shared libraries | |
4162 | *** as such. This will affect the creation of libtool libraries that | |
4163 | *** depend on shared libraries, but programs linked with such libtool | |
4164 | *** libraries will work regardless of this problem. Nevertheless, you | |
4165 | *** may want to report the problem to your system manager and/or to | |
4166 | *** bug-libtool@gnu.org | |
4167 | ||
4168 | EOF | |
4169 | fi ;; | |
4170 | esac | |
4171 | fi | |
4172 | break | |
4173 | fi | |
4174 | done | |
4175 | IFS="$ac_save_ifs" | |
3dd7094e | 4176 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
3df64633 AO |
4177 | ;; |
4178 | esac | |
4179 | fi | |
4180 | ||
3dd7094e AO |
4181 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
4182 | if test -n "$MAGIC_CMD"; then | |
ff66d28f PE |
4183 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
4184 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
3df64633 | 4185 | else |
ff66d28f PE |
4186 | echo "$as_me:$LINENO: result: no" >&5 |
4187 | echo "${ECHO_T}no" >&6 | |
3df64633 AO |
4188 | fi |
4189 | ||
4190 | else | |
3dd7094e | 4191 | MAGIC_CMD=: |
3df64633 AO |
4192 | fi |
4193 | fi | |
4194 | ||
4195 | fi | |
4196 | ;; | |
4197 | esac | |
4198 | ||
ff66d28f PE |
4199 | if test -n "$ac_tool_prefix"; then |
4200 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3df64633 | 4201 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
ff66d28f PE |
4202 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4203 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4204 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
4205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 AO |
4206 | else |
4207 | if test -n "$RANLIB"; then | |
4208 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4209 | else | |
ff66d28f PE |
4210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4211 | for as_dir in $PATH | |
4212 | do | |
4213 | IFS=$as_save_IFS | |
4214 | test -z "$as_dir" && as_dir=. | |
4215 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4216 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4217 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4218 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4219 | break 2 | |
4220 | fi | |
4221 | done | |
4222 | done | |
4223 | ||
3df64633 AO |
4224 | fi |
4225 | fi | |
ff66d28f | 4226 | RANLIB=$ac_cv_prog_RANLIB |
3df64633 | 4227 | if test -n "$RANLIB"; then |
ff66d28f PE |
4228 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
4229 | echo "${ECHO_T}$RANLIB" >&6 | |
3df64633 | 4230 | else |
ff66d28f PE |
4231 | echo "$as_me:$LINENO: result: no" >&5 |
4232 | echo "${ECHO_T}no" >&6 | |
3df64633 AO |
4233 | fi |
4234 | ||
ff66d28f | 4235 | fi |
3df64633 | 4236 | if test -z "$ac_cv_prog_RANLIB"; then |
ff66d28f | 4237 | ac_ct_RANLIB=$RANLIB |
3df64633 AO |
4238 | # Extract the first word of "ranlib", so it can be a program name with args. |
4239 | set dummy ranlib; ac_word=$2 | |
ff66d28f PE |
4240 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4241 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4242 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
4243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 | 4244 | else |
ff66d28f PE |
4245 | if test -n "$ac_ct_RANLIB"; then |
4246 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3df64633 | 4247 | else |
ff66d28f PE |
4248 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4249 | for as_dir in $PATH | |
4250 | do | |
4251 | IFS=$as_save_IFS | |
4252 | test -z "$as_dir" && as_dir=. | |
4253 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4254 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4255 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4256 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4257 | break 2 | |
4258 | fi | |
4259 | done | |
4260 | done | |
4261 | ||
4262 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
3df64633 AO |
4263 | fi |
4264 | fi | |
ff66d28f PE |
4265 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
4266 | if test -n "$ac_ct_RANLIB"; then | |
4267 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
4268 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
3df64633 | 4269 | else |
ff66d28f PE |
4270 | echo "$as_me:$LINENO: result: no" >&5 |
4271 | echo "${ECHO_T}no" >&6 | |
3df64633 AO |
4272 | fi |
4273 | ||
ff66d28f | 4274 | RANLIB=$ac_ct_RANLIB |
3df64633 | 4275 | else |
ff66d28f | 4276 | RANLIB="$ac_cv_prog_RANLIB" |
3df64633 AO |
4277 | fi |
4278 | ||
ff66d28f PE |
4279 | if test -n "$ac_tool_prefix"; then |
4280 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3df64633 | 4281 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
ff66d28f PE |
4282 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4283 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4284 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
4285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 AO |
4286 | else |
4287 | if test -n "$STRIP"; then | |
4288 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4289 | else | |
ff66d28f PE |
4290 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4291 | for as_dir in $PATH | |
4292 | do | |
4293 | IFS=$as_save_IFS | |
4294 | test -z "$as_dir" && as_dir=. | |
4295 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4296 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4297 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4298 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4299 | break 2 | |
4300 | fi | |
4301 | done | |
4302 | done | |
4303 | ||
3df64633 AO |
4304 | fi |
4305 | fi | |
ff66d28f | 4306 | STRIP=$ac_cv_prog_STRIP |
3df64633 | 4307 | if test -n "$STRIP"; then |
ff66d28f PE |
4308 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
4309 | echo "${ECHO_T}$STRIP" >&6 | |
3df64633 | 4310 | else |
ff66d28f PE |
4311 | echo "$as_me:$LINENO: result: no" >&5 |
4312 | echo "${ECHO_T}no" >&6 | |
3df64633 AO |
4313 | fi |
4314 | ||
ff66d28f | 4315 | fi |
3df64633 | 4316 | if test -z "$ac_cv_prog_STRIP"; then |
ff66d28f | 4317 | ac_ct_STRIP=$STRIP |
3df64633 AO |
4318 | # Extract the first word of "strip", so it can be a program name with args. |
4319 | set dummy strip; ac_word=$2 | |
ff66d28f PE |
4320 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4321 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4322 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
4323 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3df64633 | 4324 | else |
ff66d28f PE |
4325 | if test -n "$ac_ct_STRIP"; then |
4326 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3df64633 | 4327 | else |
ff66d28f PE |
4328 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4329 | for as_dir in $PATH | |
4330 | do | |
4331 | IFS=$as_save_IFS | |
4332 | test -z "$as_dir" && as_dir=. | |
4333 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4334 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4335 | ac_cv_prog_ac_ct_STRIP="strip" | |
4336 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4337 | break 2 | |
4338 | fi | |
4339 | done | |
4340 | done | |
4341 | ||
4342 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
3df64633 AO |
4343 | fi |
4344 | fi | |
ff66d28f PE |
4345 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
4346 | if test -n "$ac_ct_STRIP"; then | |
4347 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
4348 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
3df64633 | 4349 | else |
ff66d28f PE |
4350 | echo "$as_me:$LINENO: result: no" >&5 |
4351 | echo "${ECHO_T}no" >&6 | |
3df64633 AO |
4352 | fi |
4353 | ||
ff66d28f | 4354 | STRIP=$ac_ct_STRIP |
3df64633 | 4355 | else |
ff66d28f | 4356 | STRIP="$ac_cv_prog_STRIP" |
3df64633 AO |
4357 | fi |
4358 | ||
b2dad0e3 | 4359 | |
b2dad0e3 BK |
4360 | # Check for any special flags to pass to ltconfig. |
4361 | libtool_flags="--cache-file=$cache_file" | |
4362 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
4363 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
4364 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
c21b6f87 PE |
4365 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" |
4366 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
ff66d28f | 4367 | |
3840fa2a BK |
4368 | |
4369 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
4370 | if test "${enable_libtool_lock+set}" = set; then | |
4371 | enableval="$enable_libtool_lock" | |
3840fa2a | 4372 | |
ff66d28f | 4373 | fi; |
3840fa2a BK |
4374 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
4375 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
b2dad0e3 | 4376 | |
ff66d28f | 4377 | |
3df64633 AO |
4378 | # Check whether --with-pic or --without-pic was given. |
4379 | if test "${with_pic+set}" = set; then | |
4380 | withval="$with_pic" | |
4381 | pic_mode="$withval" | |
4382 | else | |
4383 | pic_mode=default | |
ff66d28f | 4384 | fi; |
3df64633 AO |
4385 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" |
4386 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
4387 | ||
b2dad0e3 BK |
4388 | # Some flags need to be propagated to the compiler or linker for good |
4389 | # libtool support. | |
c21b6f87 | 4390 | case $host in |
b2dad0e3 BK |
4391 | *-*-irix6*) |
4392 | # Find out which ABI we are using. | |
2c92e90f | 4393 | echo '#line 4393 "configure"' > conftest.$ac_ext |
ff66d28f PE |
4394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4395 | (eval $ac_compile) 2>&5 | |
4396 | ac_status=$? | |
4397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4398 | (exit $ac_status); }; then | |
3a15abf1 BK |
4399 | if test "$lt_cv_prog_gnu_ld" = yes; then |
4400 | case `/usr/bin/file conftest.$ac_objext` in | |
4401 | *32-bit*) | |
4402 | LD="${LD-ld} -melf32bsmip" | |
4403 | ;; | |
4404 | *N32*) | |
4405 | LD="${LD-ld} -melf32bmipn32" | |
4406 | ;; | |
4407 | *64-bit*) | |
4408 | LD="${LD-ld} -melf64bmip" | |
4409 | ;; | |
4410 | esac | |
4411 | else | |
c21b6f87 | 4412 | case `/usr/bin/file conftest.$ac_objext` in |
b2dad0e3 BK |
4413 | *32-bit*) |
4414 | LD="${LD-ld} -32" | |
4415 | ;; | |
4416 | *N32*) | |
4417 | LD="${LD-ld} -n32" | |
4418 | ;; | |
4419 | *64-bit*) | |
4420 | LD="${LD-ld} -64" | |
4421 | ;; | |
4422 | esac | |
3a15abf1 | 4423 | fi |
b2dad0e3 BK |
4424 | fi |
4425 | rm -rf conftest* | |
4426 | ;; | |
4427 | ||
38cca750 BK |
4428 | ia64-*-hpux*) |
4429 | # Find out which ABI we are using. | |
4430 | echo 'int i;' > conftest.$ac_ext | |
ff66d28f PE |
4431 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4432 | (eval $ac_compile) 2>&5 | |
4433 | ac_status=$? | |
4434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4435 | (exit $ac_status); }; then | |
38cca750 BK |
4436 | case "`/usr/bin/file conftest.o`" in |
4437 | *ELF-32*) | |
4438 | HPUX_IA64_MODE="32" | |
4439 | ;; | |
4440 | *ELF-64*) | |
4441 | HPUX_IA64_MODE="64" | |
4442 | ;; | |
4443 | esac | |
4444 | fi | |
4445 | rm -rf conftest* | |
4446 | ;; | |
4447 | ||
162c7cd9 SW |
4448 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
4449 | # Find out which ABI we are using. | |
4450 | echo 'int i;' > conftest.$ac_ext | |
ff66d28f PE |
4451 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4452 | (eval $ac_compile) 2>&5 | |
4453 | ac_status=$? | |
4454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4455 | (exit $ac_status); }; then | |
162c7cd9 SW |
4456 | case "`/usr/bin/file conftest.o`" in |
4457 | *32-bit*) | |
4458 | case $host in | |
4459 | x86_64-*linux*) | |
4460 | LD="${LD-ld} -m elf_i386" | |
4461 | ;; | |
e517f636 | 4462 | ppc64-*linux*|powerpc64-*linux*) |
162c7cd9 SW |
4463 | LD="${LD-ld} -m elf32ppclinux" |
4464 | ;; | |
4465 | s390x-*linux*) | |
4466 | LD="${LD-ld} -m elf_s390" | |
4467 | ;; | |
4468 | sparc64-*linux*) | |
4469 | LD="${LD-ld} -m elf32_sparc" | |
4470 | ;; | |
4471 | esac | |
4472 | ;; | |
4473 | *64-bit*) | |
4474 | case $host in | |
4475 | x86_64-*linux*) | |
4476 | LD="${LD-ld} -m elf_x86_64" | |
4477 | ;; | |
4478 | ppc*-*linux*|powerpc*-*linux*) | |
4479 | LD="${LD-ld} -m elf64ppc" | |
4480 | ;; | |
4481 | s390*-*linux*) | |
4482 | LD="${LD-ld} -m elf64_s390" | |
4483 | ;; | |
4484 | sparc*-*linux*) | |
4485 | LD="${LD-ld} -m elf64_sparc" | |
4486 | ;; | |
4487 | esac | |
4488 | ;; | |
4489 | esac | |
4490 | fi | |
4491 | rm -rf conftest* | |
4492 | ;; | |
4493 | ||
b2dad0e3 BK |
4494 | *-*-sco3.2v5*) |
4495 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
4496 | SAVE_CFLAGS="$CFLAGS" | |
4497 | CFLAGS="$CFLAGS -belf" | |
ff66d28f PE |
4498 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
4499 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
4500 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
4501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2dad0e3 | 4502 | else |
ff66d28f PE |
4503 | |
4504 | ||
3df64633 | 4505 | ac_ext=c |
3df64633 | 4506 | ac_cpp='$CPP $CPPFLAGS' |
ff66d28f PE |
4507 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4508 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4509 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4510 | ||
72730fdb DJ |
4511 | if test x$gcc_no_link = xyes; then |
4512 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
4513 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
4514 | { (exit 1); exit 1; }; } | |
4515 | fi | |
4516 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
4517 | /* confdefs.h. */ |
4518 | _ACEOF | |
4519 | cat confdefs.h >>conftest.$ac_ext | |
4520 | cat >>conftest.$ac_ext <<_ACEOF | |
4521 | /* end confdefs.h. */ | |
3df64633 | 4522 | |
ff66d28f PE |
4523 | int |
4524 | main () | |
4525 | { | |
b2dad0e3 | 4526 | |
ff66d28f PE |
4527 | ; |
4528 | return 0; | |
4529 | } | |
4530 | _ACEOF | |
4531 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4532 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
ec2075e9 | 4533 | (eval $ac_link) 2>conftest.er1 |
ff66d28f | 4534 | ac_status=$? |
ec2075e9 BK |
4535 | grep -v '^ *+' conftest.er1 >conftest.err |
4536 | rm -f conftest.er1 | |
4537 | cat conftest.err >&5 | |
ff66d28f PE |
4538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4539 | (exit $ac_status); } && | |
780028b6 BK |
4540 | { ac_try='test -z "$ac_c_werror_flag" |
4541 | || test ! -s conftest.err' | |
ec2075e9 BK |
4542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4543 | (eval $ac_try) 2>&5 | |
4544 | ac_status=$? | |
4545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4546 | (exit $ac_status); }; } && | |
4547 | { ac_try='test -s conftest$ac_exeext' | |
ff66d28f PE |
4548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4549 | (eval $ac_try) 2>&5 | |
4550 | ac_status=$? | |
4551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4552 | (exit $ac_status); }; }; then | |
b2dad0e3 BK |
4553 | lt_cv_cc_needs_belf=yes |
4554 | else | |
ff66d28f PE |
4555 | echo "$as_me: failed program was:" >&5 |
4556 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4557 | ||
4558 | lt_cv_cc_needs_belf=no | |
b2dad0e3 | 4559 | fi |
ec2075e9 BK |
4560 | rm -f conftest.err conftest.$ac_objext \ |
4561 | conftest$ac_exeext conftest.$ac_ext | |
3df64633 | 4562 | ac_ext=c |
3df64633 | 4563 | ac_cpp='$CPP $CPPFLAGS' |
ff66d28f PE |
4564 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4565 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4566 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3df64633 | 4567 | |
b2dad0e3 | 4568 | fi |
ff66d28f PE |
4569 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4570 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
b2dad0e3 BK |
4571 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4572 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4573 | CFLAGS="$SAVE_CFLAGS" | |
4574 | fi | |
4575 | ;; | |
4576 | ||
4577 | ||
4578 | esac | |
4579 | ||
4580 | ||
4581 | # Save cache, so that ltconfig can load it | |
ff66d28f | 4582 | cat >confcache <<\_ACEOF |
b2dad0e3 BK |
4583 | # This file is a shell script that caches the results of configure |
4584 | # tests run on this system so they can be shared between configure | |
ff66d28f PE |
4585 | # scripts and configure runs, see configure's option --config-cache. |
4586 | # It is not useful on other systems. If it contains results you don't | |
4587 | # want to keep, you may remove or edit it. | |
b2dad0e3 | 4588 | # |
ff66d28f PE |
4589 | # config.status only pays attention to the cache file if you give it |
4590 | # the --recheck option to rerun configure. | |
b2dad0e3 | 4591 | # |
ff66d28f PE |
4592 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
4593 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4594 | # following values. | |
4595 | ||
4596 | _ACEOF | |
4597 | ||
b2dad0e3 BK |
4598 | # The following way of writing the cache mishandles newlines in values, |
4599 | # but we know of no workaround that is simple, portable, and efficient. | |
4600 | # So, don't put newlines in cache variables' values. | |
4601 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4602 | # and sets the high bit in the cache file unless we assign to the vars. | |
ff66d28f PE |
4603 | { |
4604 | (set) 2>&1 | | |
4605 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
4606 | *ac_space=\ *) | |
4607 | # `set' does not quote correctly, so add quotes (double-quote | |
4608 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
4609 | sed -n \ | |
ec2075e9 BK |
4610 | "s/'/'\\\\''/g; |
4611 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
ff66d28f PE |
4612 | ;; |
4613 | *) | |
4614 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4615 | sed -n \ | |
ec2075e9 | 4616 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
ff66d28f PE |
4617 | ;; |
4618 | esac; | |
4619 | } | | |
4620 | sed ' | |
4621 | t clear | |
4622 | : clear | |
4623 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
4624 | t end | |
4625 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
4626 | : end' >>confcache | |
4627 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
b2dad0e3 | 4628 | if test -w $cache_file; then |
ff66d28f PE |
4629 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
4630 | cat confcache >$cache_file | |
b2dad0e3 BK |
4631 | else |
4632 | echo "not updating unwritable cache $cache_file" | |
4633 | fi | |
4634 | fi | |
4635 | rm -f confcache | |
4636 | ||
b2dad0e3 | 4637 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
3df64633 | 4638 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
3dd7094e | 4639 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
3df64633 AO |
4640 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
4641 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
4642 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
4643 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
b2dad0e3 | 4644 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
3df64633 | 4645 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
ff66d28f PE |
4646 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 |
4647 | echo "$as_me: error: libtool configure failed" >&2;} | |
4648 | { (exit 1); exit 1; }; } | |
b2dad0e3 BK |
4649 | |
4650 | # Reload cache, that may have been modified by ltconfig | |
4651 | if test -r "$cache_file"; then | |
ff66d28f PE |
4652 | # Some versions of bash will fail to source /dev/null (special |
4653 | # files actually), so we avoid doing that. | |
4654 | if test -f "$cache_file"; then | |
4655 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
4656 | echo "$as_me: loading cache $cache_file" >&6;} | |
4657 | case $cache_file in | |
4658 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
4659 | *) . ./$cache_file;; | |
4660 | esac | |
4661 | fi | |
b2dad0e3 | 4662 | else |
ff66d28f PE |
4663 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
4664 | echo "$as_me: creating cache $cache_file" >&6;} | |
4665 | >$cache_file | |
b2dad0e3 BK |
4666 | fi |
4667 | ||
4668 | ||
4669 | # This can be used to rebuild libtool when needed | |
3df64633 | 4670 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
b2dad0e3 BK |
4671 | |
4672 | # Always use our own libtool. | |
4673 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
4674 | ||
4675 | # Redirect the config.log output again, so that the ltconfig log is not | |
4676 | # clobbered by the next message. | |
4677 | exec 5>>./config.log | |
4678 | ||
ff66d28f PE |
4679 | ac_ext=cc |
4680 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4681 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4682 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4683 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4684 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
4685 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
4686 | if test -z "$CXXCPP"; then | |
4687 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
4688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4689 | else | |
4690 | # Double quotes because CXXCPP needs to be expanded | |
4691 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
4692 | do | |
4693 | ac_preproc_ok=false | |
4694 | for ac_cxx_preproc_warn_flag in '' yes | |
4695 | do | |
4696 | # Use a header file that comes with gcc, so configuring glibc | |
4697 | # with a fresh cross-compiler works. | |
4698 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4699 | # <limits.h> exists even on freestanding compilers. | |
4700 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4701 | # not just through cpp. "Syntax error" is here to catch this case. | |
4702 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
4703 | /* confdefs.h. */ |
4704 | _ACEOF | |
4705 | cat confdefs.h >>conftest.$ac_ext | |
4706 | cat >>conftest.$ac_ext <<_ACEOF | |
4707 | /* end confdefs.h. */ | |
4708 | #ifdef __STDC__ | |
4709 | # include <limits.h> | |
4710 | #else | |
4711 | # include <assert.h> | |
4712 | #endif | |
ec2075e9 | 4713 | Syntax error |
ff66d28f PE |
4714 | _ACEOF |
4715 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4716 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4717 | ac_status=$? | |
4718 | grep -v '^ *+' conftest.er1 >conftest.err | |
4719 | rm -f conftest.er1 | |
4720 | cat conftest.err >&5 | |
4721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4722 | (exit $ac_status); } >/dev/null; then | |
4723 | if test -s conftest.err; then | |
4724 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ec2075e9 | 4725 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
ff66d28f PE |
4726 | else |
4727 | ac_cpp_err= | |
4728 | fi | |
4729 | else | |
4730 | ac_cpp_err=yes | |
4731 | fi | |
4732 | if test -z "$ac_cpp_err"; then | |
4733 | : | |
4734 | else | |
4735 | echo "$as_me: failed program was:" >&5 | |
4736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4737 | ||
4738 | # Broken: fails on valid input. | |
4739 | continue | |
4740 | fi | |
4741 | rm -f conftest.err conftest.$ac_ext | |
4742 | ||
4743 | # OK, works on sane cases. Now check whether non-existent headers | |
4744 | # can be detected and how. | |
4745 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
4746 | /* confdefs.h. */ |
4747 | _ACEOF | |
4748 | cat confdefs.h >>conftest.$ac_ext | |
4749 | cat >>conftest.$ac_ext <<_ACEOF | |
4750 | /* end confdefs.h. */ | |
4751 | #include <ac_nonexistent.h> | |
4752 | _ACEOF | |
4753 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4754 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4755 | ac_status=$? | |
4756 | grep -v '^ *+' conftest.er1 >conftest.err | |
4757 | rm -f conftest.er1 | |
4758 | cat conftest.err >&5 | |
4759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4760 | (exit $ac_status); } >/dev/null; then | |
4761 | if test -s conftest.err; then | |
4762 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ec2075e9 | 4763 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
ff66d28f PE |
4764 | else |
4765 | ac_cpp_err= | |
4766 | fi | |
4767 | else | |
4768 | ac_cpp_err=yes | |
4769 | fi | |
4770 | if test -z "$ac_cpp_err"; then | |
4771 | # Broken: success on invalid input. | |
4772 | continue | |
4773 | else | |
4774 | echo "$as_me: failed program was:" >&5 | |
4775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4776 | ||
4777 | # Passes both tests. | |
4778 | ac_preproc_ok=: | |
4779 | break | |
4780 | fi | |
4781 | rm -f conftest.err conftest.$ac_ext | |
4782 | ||
4783 | done | |
4784 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4785 | rm -f conftest.err conftest.$ac_ext | |
4786 | if $ac_preproc_ok; then | |
4787 | break | |
4788 | fi | |
4789 | ||
4790 | done | |
4791 | ac_cv_prog_CXXCPP=$CXXCPP | |
4792 | ||
4793 | fi | |
4794 | CXXCPP=$ac_cv_prog_CXXCPP | |
4795 | else | |
4796 | ac_cv_prog_CXXCPP=$CXXCPP | |
4797 | fi | |
4798 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
4799 | echo "${ECHO_T}$CXXCPP" >&6 | |
4800 | ac_preproc_ok=false | |
4801 | for ac_cxx_preproc_warn_flag in '' yes | |
4802 | do | |
4803 | # Use a header file that comes with gcc, so configuring glibc | |
4804 | # with a fresh cross-compiler works. | |
4805 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4806 | # <limits.h> exists even on freestanding compilers. | |
4807 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4808 | # not just through cpp. "Syntax error" is here to catch this case. | |
4809 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
4810 | /* confdefs.h. */ |
4811 | _ACEOF | |
4812 | cat confdefs.h >>conftest.$ac_ext | |
4813 | cat >>conftest.$ac_ext <<_ACEOF | |
4814 | /* end confdefs.h. */ | |
4815 | #ifdef __STDC__ | |
4816 | # include <limits.h> | |
4817 | #else | |
4818 | # include <assert.h> | |
4819 | #endif | |
ec2075e9 | 4820 | Syntax error |
ff66d28f PE |
4821 | _ACEOF |
4822 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4823 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4824 | ac_status=$? | |
4825 | grep -v '^ *+' conftest.er1 >conftest.err | |
4826 | rm -f conftest.er1 | |
4827 | cat conftest.err >&5 | |
4828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4829 | (exit $ac_status); } >/dev/null; then | |
4830 | if test -s conftest.err; then | |
4831 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ec2075e9 | 4832 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
ff66d28f PE |
4833 | else |
4834 | ac_cpp_err= | |
4835 | fi | |
4836 | else | |
4837 | ac_cpp_err=yes | |
4838 | fi | |
4839 | if test -z "$ac_cpp_err"; then | |
4840 | : | |
4841 | else | |
4842 | echo "$as_me: failed program was:" >&5 | |
4843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4844 | ||
4845 | # Broken: fails on valid input. | |
4846 | continue | |
4847 | fi | |
4848 | rm -f conftest.err conftest.$ac_ext | |
4849 | ||
4850 | # OK, works on sane cases. Now check whether non-existent headers | |
4851 | # can be detected and how. | |
4852 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
4853 | /* confdefs.h. */ |
4854 | _ACEOF | |
4855 | cat confdefs.h >>conftest.$ac_ext | |
4856 | cat >>conftest.$ac_ext <<_ACEOF | |
4857 | /* end confdefs.h. */ | |
4858 | #include <ac_nonexistent.h> | |
4859 | _ACEOF | |
4860 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4861 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4862 | ac_status=$? | |
4863 | grep -v '^ *+' conftest.er1 >conftest.err | |
4864 | rm -f conftest.er1 | |
4865 | cat conftest.err >&5 | |
4866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4867 | (exit $ac_status); } >/dev/null; then | |
4868 | if test -s conftest.err; then | |
4869 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
ec2075e9 | 4870 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
ff66d28f PE |
4871 | else |
4872 | ac_cpp_err= | |
4873 | fi | |
4874 | else | |
4875 | ac_cpp_err=yes | |
4876 | fi | |
4877 | if test -z "$ac_cpp_err"; then | |
4878 | # Broken: success on invalid input. | |
4879 | continue | |
4880 | else | |
4881 | echo "$as_me: failed program was:" >&5 | |
4882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4883 | ||
4884 | # Passes both tests. | |
4885 | ac_preproc_ok=: | |
4886 | break | |
4887 | fi | |
4888 | rm -f conftest.err conftest.$ac_ext | |
4889 | ||
4890 | done | |
4891 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4892 | rm -f conftest.err conftest.$ac_ext | |
4893 | if $ac_preproc_ok; then | |
4894 | : | |
4895 | else | |
4896 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
4897 | See \`config.log' for more details." >&5 | |
4898 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
4899 | See \`config.log' for more details." >&2;} | |
4900 | { (exit 1); exit 1; }; } | |
4901 | fi | |
4902 | ||
4903 | ac_ext=c | |
4904 | ac_cpp='$CPP $CPPFLAGS' | |
4905 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4906 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4907 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4908 | ||
3df64633 AO |
4909 | |
4910 | ||
3df64633 AO |
4911 | LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh" |
4912 | lt_save_CC="$CC" | |
4913 | lt_save_CFLAGS="$CFLAGS" | |
4914 | AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
c21b6f87 | 4915 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
3df64633 AO |
4916 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
4917 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
4918 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
4919 | deplibs_check_method="$deplibs_check_method" \ | |
4920 | file_magic_cmd="$file_magic_cmd" \ | |
4921 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \ | |
4922 | --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \ | |
ff66d28f PE |
4923 | || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5 |
4924 | echo "$as_me: error: libtool tag configuration failed" >&2;} | |
4925 | { (exit 1); exit 1; }; } | |
3df64633 AO |
4926 | CC="$lt_save_CC" |
4927 | CFLAGS="$lt_save_CFLAGS" | |
4928 | ||
4929 | # Redirect the config.log output again, so that the ltconfig log is not | |
4930 | # clobbered by the next message. | |
4931 | exec 5>>./config.log | |
4932 | ||
3df64633 | 4933 | |
34791641 PE |
4934 | |
4935 | ||
33590f13 | 4936 | |
ff66d28f PE |
4937 | |
4938 | ||
4939 | ||
4940 | #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10 | |
4941 | ||
92eabea2 PE |
4942 | # Possibly disable most of the library. |
4943 | ## XXX Consider skipping unncessary tests altogether in this case, rather | |
4944 | ## than just ignoring the results. Faster /and/ more correct, win win. | |
4945 | ||
4946 | # Check whether --enable-hosted-libstdcxx or --disable-hosted-libstdcxx was given. | |
4947 | if test "${enable_hosted_libstdcxx+set}" = set; then | |
4948 | enableval="$enable_hosted_libstdcxx" | |
4949 | ||
4950 | else | |
4c24b21a MM |
4951 | case "$host" in |
4952 | arm*-*-symbianelf*) | |
4953 | enable_hosted_libstdcxx=no | |
4954 | ;; | |
4955 | *) | |
4956 | enable_hosted_libstdcxx=yes | |
4957 | ;; | |
4958 | esac | |
92eabea2 PE |
4959 | fi; |
4960 | if test "$enable_hosted_libstdcxx" = no; then | |
4961 | { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5 | |
4962 | echo "$as_me: Only freestanding libraries will be built" >&6;} | |
4963 | is_hosted=no | |
3660e02f | 4964 | hosted_define=0 |
92eabea2 PE |
4965 | enable_abi_check=no |
4966 | enable_libstdcxx_pch=no | |
4967 | else | |
4968 | is_hosted=yes | |
3660e02f | 4969 | hosted_define=1 |
92eabea2 PE |
4970 | fi |
4971 | ||
4972 | ||
3660e02f PE |
4973 | cat >>confdefs.h <<_ACEOF |
4974 | #define _GLIBCXX_HOSTED $hosted_define | |
4975 | _ACEOF | |
4976 | ||
4977 | ||
92eabea2 | 4978 | |
44f0760e | 4979 | # Check for support bits and g++ features that don't require linking. |
5780a46b | 4980 | |
ff66d28f PE |
4981 | echo "$as_me:$LINENO: checking for exception model to use" >&5 |
4982 | echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6 | |
249ed716 | 4983 | |
ff66d28f PE |
4984 | |
4985 | ac_ext=cc | |
44f0760e | 4986 | ac_cpp='$CXXCPP $CPPFLAGS' |
ff66d28f PE |
4987 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4988 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4989 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
44f0760e | 4990 | |
ff66d28f | 4991 | # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given. |
44f0760e BK |
4992 | if test "${enable_sjlj_exceptions+set}" = set; then |
4993 | enableval="$enable_sjlj_exceptions" | |
1260d70f PE |
4994 | |
4995 | case "$enableval" in | |
4996 | yes|no|auto) ;; | |
4997 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5 | |
4998 | echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;} | |
4999 | { (exit 1); exit 1; }; } ;; | |
5000 | esac | |
5001 | ||
44f0760e | 5002 | else |
1260d70f | 5003 | enable_sjlj_exceptions=auto |
ff66d28f | 5004 | fi; |
44f0760e | 5005 | |
1260d70f PE |
5006 | |
5007 | if test $enable_sjlj_exceptions = auto; then | |
5008 | # Botheration. Now we've got to detect the exception model. Link tests | |
5009 | # against libgcc.a are problematic since we've not been given proper -L | |
5010 | # bits for single-tree newlib and libgloss. | |
5011 | # | |
5012 | # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style. | |
5013 | cat > conftest.$ac_ext << EOF | |
2c92e90f | 5014 | #line 5014 "configure" |
1260d70f PE |
5015 | struct S { ~S(); }; |
5016 | void bar(); | |
5017 | void foo() | |
5018 | { | |
5019 | S s; | |
5020 | bar(); | |
5021 | } | |
5022 | EOF | |
5023 | old_CXXFLAGS="$CXXFLAGS" | |
5024 | CXXFLAGS=-S | |
5025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5026 | (eval $ac_compile) 2>&5 | |
5027 | ac_status=$? | |
5028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5029 | (exit $ac_status); }; then | |
5030 | if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then | |
5031 | enable_sjlj_exceptions=yes | |
5032 | elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then | |
5033 | enable_sjlj_exceptions=no | |
5034 | fi | |
5035 | fi | |
5036 | CXXFLAGS="$old_CXXFLAGS" | |
5037 | rm -f conftest* | |
5038 | fi | |
5039 | ||
5040 | # This is a tad weird, for hysterical raisins. We have to map enable/disable | |
5041 | # to two different models. | |
5042 | case $enable_sjlj_exceptions in | |
5043 | yes) | |
44f0760e | 5044 | |
ff66d28f PE |
5045 | cat >>confdefs.h <<\_ACEOF |
5046 | #define _GLIBCXX_SJLJ_EXCEPTIONS 1 | |
5047 | _ACEOF | |
5048 | ||
1260d70f PE |
5049 | ac_exception_model_name=sjlj |
5050 | ;; | |
5051 | no) | |
5052 | ac_exception_model_name="call frame" | |
5053 | ;; | |
5054 | *) | |
5055 | { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5 | |
ff66d28f PE |
5056 | echo "$as_me: error: unable to detect exception model" >&2;} |
5057 | { (exit 1); exit 1; }; } | |
1260d70f PE |
5058 | ;; |
5059 | esac | |
ff66d28f | 5060 | ac_ext=c |
44f0760e | 5061 | ac_cpp='$CPP $CPPFLAGS' |
ff66d28f PE |
5062 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5063 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5064 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
44f0760e | 5065 | |
ff66d28f PE |
5066 | echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5 |
5067 | echo "${ECHO_T}$ac_exception_model_name" >&6 | |
44f0760e BK |
5068 | |
5069 | ||
ff66d28f PE |
5070 | echo "$as_me:$LINENO: checking for enabled PCH" >&5 |
5071 | echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6 | |
5072 | # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given. | |
d8d81f62 BK |
5073 | if test "${enable_libstdcxx_pch+set}" = set; then |
5074 | enableval="$enable_libstdcxx_pch" | |
ff66d28f PE |
5075 | |
5076 | case "$enableval" in | |
5077 | yes|no) ;; | |
5078 | *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5 | |
5079 | echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;} | |
5080 | { (exit 1); exit 1; }; } ;; | |
5081 | esac | |
5082 | ||
44f0760e | 5083 | else |
92eabea2 | 5084 | enable_libstdcxx_pch=$is_hosted |
ff66d28f | 5085 | fi; |
44f0760e | 5086 | |
ff66d28f PE |
5087 | echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5 |
5088 | echo "${ECHO_T}$enable_libstdcxx_pch" >&6 | |
5089 | ||
5090 | if test $enable_libstdcxx_pch = yes; then | |
5091 | echo "$as_me:$LINENO: checking for compiler with PCH support" >&5 | |
5092 | echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6 | |
5093 | if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then | |
5094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
249ed716 | 5095 | else |
ff66d28f PE |
5096 | ac_save_CXXFLAGS="$CXXFLAGS" |
5097 | CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated" | |
5098 | ||
5099 | ||
5100 | ac_ext=cc | |
249ed716 | 5101 | ac_cpp='$CXXCPP $CPPFLAGS' |
ff66d28f PE |
5102 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5103 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5104 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5105 | ||
5106 | echo '#include <math.h>' > conftest.h | |
5107 | if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \ | |
5108 | -o conftest.h.gch 1>&5 2>&1 && | |
5109 | echo '#error "pch failed"' > conftest.h && | |
5110 | echo '#include "conftest.h"' > conftest.cc && | |
5111 | $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ; | |
5112 | then | |
5113 | glibcxx_cv_prog_CXX_pch=yes | |
5114 | else | |
5115 | glibcxx_cv_prog_CXX_pch=no | |
5116 | fi | |
5117 | rm -f conftest* | |
5118 | CXXFLAGS=$ac_save_CXXFLAGS | |
5119 | ac_ext=c | |
249ed716 | 5120 | ac_cpp='$CPP $CPPFLAGS' |
ff66d28f PE |
5121 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5122 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5123 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
249ed716 | 5124 | |
249ed716 | 5125 | |
ff66d28f PE |
5126 | fi |
5127 | echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5 | |
5128 | echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6 | |
5129 | enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch | |
44f0760e BK |
5130 | fi |
5131 | ||
44f0760e | 5132 | |
ff66d28f PE |
5133 | if test $enable_libstdcxx_pch = yes; then |
5134 | glibcxx_PCHFLAGS="-include bits/stdc++.h" | |
bddc3107 | 5135 | else |
ff66d28f | 5136 | glibcxx_PCHFLAGS="" |
bddc3107 | 5137 | fi |
249ed716 | 5138 | |
04e78786 | 5139 | |
ff66d28f PE |
5140 | |
5141 | # Enable all the variable C++ runtime options. | |
44f0760e | 5142 | # NB: C_MBCHAR must come early. |
58ac1d7f | 5143 | |
ff66d28f PE |
5144 | echo "$as_me:$LINENO: checking for underlying I/O to use" >&5 |
5145 | echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6 | |
5146 | # Check whether --enable-cstdio or --disable-cstdio was given. | |
58ac1d7f BK |
5147 | if test "${enable_cstdio+set}" = set; then |
5148 | enableval="$enable_cstdio" | |
ff66d28f PE |
5149 | |
5150 | case "$enableval" in | |
5151 | stdio) ;; | |
5152 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5 | |
5153 | echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;} | |
5154 | { (exit 1); exit 1; }; } ;; | |
5155 | esac | |
5156 | ||
58ac1d7f BK |
5157 | else |
5158 | enable_cstdio=stdio | |
ff66d28f | 5159 | fi; |
58ac1d7f BK |
5160 | |
5161 | ||
ff66d28f PE |
5162 | # Now that libio has been removed, you can have any color you want as long |
5163 | # as it's black. This is one big no-op until other packages are added, but | |
5164 | # showing the framework never hurts. | |
5165 | case ${enable_cstdio} in | |
5166 | stdio) | |
58ac1d7f BK |
5167 | CSTDIO_H=config/io/c_io_stdio.h |
5168 | BASIC_FILE_H=config/io/basic_file_stdio.h | |
5169 | BASIC_FILE_CC=config/io/basic_file_stdio.cc | |
ff66d28f PE |
5170 | echo "$as_me:$LINENO: result: stdio" >&5 |
5171 | echo "${ECHO_T}stdio" >&6 | |
58ac1d7f BK |
5172 | ;; |
5173 | esac | |
cc5112c9 | 5174 | |
ff66d28f PE |
5175 | |
5176 | ||
5177 | ||
5178 | ||
5179 | ac_ext=c | |
5180 | ac_cpp='$CPP $CPPFLAGS' | |
5181 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5182 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5183 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5184 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
5185 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
c470c17d BK |
5186 | # On Suns, sometimes $CPP names a directory. |
5187 | if test -n "$CPP" && test -d "$CPP"; then | |
5188 | CPP= | |
5189 | fi | |
5190 | if test -z "$CPP"; then | |
ff66d28f PE |
5191 | if test "${ac_cv_prog_CPP+set}" = set; then |
5192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5193 | else | |
5194 | # Double quotes because CPP needs to be expanded | |
5195 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5196 | do | |
5197 | ac_preproc_ok=false | |
5198 | for ac_c_preproc_warn_flag in '' yes | |
5199 | do | |
5200 | # Use a header file that comes with gcc, so configuring glibc | |
5201 | # with a fresh cross-compiler works. | |
5202 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5203 | # <limits.h> exists even on freestanding compilers. | |
5204 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5205 | # not just through cpp. "Syntax error" is here to catch this case. | |
5206 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
5207 | /* confdefs.h. */ |
5208 | _ACEOF | |
5209 | cat confdefs.h >>conftest.$ac_ext | |
5210 | cat >>conftest.$ac_ext <<_ACEOF | |
5211 | /* end confdefs.h. */ | |
5212 | #ifdef __STDC__ | |
5213 | # include <limits.h> | |
5214 | #else | |
5215 | # include <assert.h> | |
5216 | #endif | |
ec2075e9 | 5217 | Syntax error |
ff66d28f PE |
5218 | _ACEOF |
5219 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5220 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5221 | ac_status=$? | |
5222 | grep -v '^ *+' conftest.er1 >conftest.err | |
5223 | rm -f conftest.er1 | |
5224 | cat conftest.err >&5 | |
5225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5226 | (exit $ac_status); } >/dev/null; then | |
5227 | if test -s conftest.err; then | |
5228 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ec2075e9 | 5229 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ff66d28f PE |
5230 | else |
5231 | ac_cpp_err= | |
5232 | fi | |
5233 | else | |
5234 | ac_cpp_err=yes | |
5235 | fi | |
5236 | if test -z "$ac_cpp_err"; then | |
5237 | : | |
5238 | else | |
5239 | echo "$as_me: failed program was:" >&5 | |
5240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5241 | ||
5242 | # Broken: fails on valid input. | |
5243 | continue | |
5244 | fi | |
5245 | rm -f conftest.err conftest.$ac_ext | |
5246 | ||
5247 | # OK, works on sane cases. Now check whether non-existent headers | |
5248 | # can be detected and how. | |
5249 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
5250 | /* confdefs.h. */ |
5251 | _ACEOF | |
5252 | cat confdefs.h >>conftest.$ac_ext | |
5253 | cat >>conftest.$ac_ext <<_ACEOF | |
5254 | /* end confdefs.h. */ | |
5255 | #include <ac_nonexistent.h> | |
5256 | _ACEOF | |
5257 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5258 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5259 | ac_status=$? | |
5260 | grep -v '^ *+' conftest.er1 >conftest.err | |
5261 | rm -f conftest.er1 | |
5262 | cat conftest.err >&5 | |
5263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5264 | (exit $ac_status); } >/dev/null; then | |
5265 | if test -s conftest.err; then | |
5266 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ec2075e9 | 5267 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ff66d28f PE |
5268 | else |
5269 | ac_cpp_err= | |
5270 | fi | |
5271 | else | |
5272 | ac_cpp_err=yes | |
5273 | fi | |
5274 | if test -z "$ac_cpp_err"; then | |
5275 | # Broken: success on invalid input. | |
5276 | continue | |
5277 | else | |
5278 | echo "$as_me: failed program was:" >&5 | |
5279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5280 | ||
5281 | # Passes both tests. | |
5282 | ac_preproc_ok=: | |
5283 | break | |
5284 | fi | |
5285 | rm -f conftest.err conftest.$ac_ext | |
5286 | ||
5287 | done | |
5288 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5289 | rm -f conftest.err conftest.$ac_ext | |
5290 | if $ac_preproc_ok; then | |
5291 | break | |
5292 | fi | |
5293 | ||
5294 | done | |
5295 | ac_cv_prog_CPP=$CPP | |
5296 | ||
5297 | fi | |
5298 | CPP=$ac_cv_prog_CPP | |
b2dad0e3 | 5299 | else |
ff66d28f PE |
5300 | ac_cv_prog_CPP=$CPP |
5301 | fi | |
5302 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
5303 | echo "${ECHO_T}$CPP" >&6 | |
5304 | ac_preproc_ok=false | |
5305 | for ac_c_preproc_warn_flag in '' yes | |
5306 | do | |
5307 | # Use a header file that comes with gcc, so configuring glibc | |
5308 | # with a fresh cross-compiler works. | |
5309 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5310 | # <limits.h> exists even on freestanding compilers. | |
c470c17d | 5311 | # On the NeXT, cc -E runs the code through the compiler's parser, |
ff66d28f PE |
5312 | # not just through cpp. "Syntax error" is here to catch this case. |
5313 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
5314 | /* confdefs.h. */ |
5315 | _ACEOF | |
5316 | cat confdefs.h >>conftest.$ac_ext | |
5317 | cat >>conftest.$ac_ext <<_ACEOF | |
5318 | /* end confdefs.h. */ | |
5319 | #ifdef __STDC__ | |
5320 | # include <limits.h> | |
5321 | #else | |
5322 | # include <assert.h> | |
5323 | #endif | |
ec2075e9 | 5324 | Syntax error |
ff66d28f PE |
5325 | _ACEOF |
5326 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5327 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5328 | ac_status=$? | |
5329 | grep -v '^ *+' conftest.er1 >conftest.err | |
5330 | rm -f conftest.er1 | |
5331 | cat conftest.err >&5 | |
5332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5333 | (exit $ac_status); } >/dev/null; then | |
5334 | if test -s conftest.err; then | |
5335 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ec2075e9 | 5336 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ff66d28f PE |
5337 | else |
5338 | ac_cpp_err= | |
5339 | fi | |
5340 | else | |
5341 | ac_cpp_err=yes | |
5342 | fi | |
5343 | if test -z "$ac_cpp_err"; then | |
b2dad0e3 BK |
5344 | : |
5345 | else | |
ff66d28f PE |
5346 | echo "$as_me: failed program was:" >&5 |
5347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5348 | ||
5349 | # Broken: fails on valid input. | |
5350 | continue | |
5351 | fi | |
5352 | rm -f conftest.err conftest.$ac_ext | |
5353 | ||
5354 | # OK, works on sane cases. Now check whether non-existent headers | |
5355 | # can be detected and how. | |
5356 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
5357 | /* confdefs.h. */ |
5358 | _ACEOF | |
5359 | cat confdefs.h >>conftest.$ac_ext | |
5360 | cat >>conftest.$ac_ext <<_ACEOF | |
5361 | /* end confdefs.h. */ | |
5362 | #include <ac_nonexistent.h> | |
5363 | _ACEOF | |
5364 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5365 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5366 | ac_status=$? | |
5367 | grep -v '^ *+' conftest.er1 >conftest.err | |
5368 | rm -f conftest.er1 | |
5369 | cat conftest.err >&5 | |
5370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5371 | (exit $ac_status); } >/dev/null; then | |
5372 | if test -s conftest.err; then | |
5373 | ac_cpp_err=$ac_c_preproc_warn_flag | |
ec2075e9 | 5374 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
ff66d28f PE |
5375 | else |
5376 | ac_cpp_err= | |
5377 | fi | |
5378 | else | |
5379 | ac_cpp_err=yes | |
5380 | fi | |
5381 | if test -z "$ac_cpp_err"; then | |
5382 | # Broken: success on invalid input. | |
5383 | continue | |
5384 | else | |
5385 | echo "$as_me: failed program was:" >&5 | |
5386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5387 | ||
5388 | # Passes both tests. | |
5389 | ac_preproc_ok=: | |
5390 | break | |
5391 | fi | |
5392 | rm -f conftest.err conftest.$ac_ext | |
5393 | ||
5394 | done | |
5395 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5396 | rm -f conftest.err conftest.$ac_ext | |
5397 | if $ac_preproc_ok; then | |
c470c17d BK |
5398 | : |
5399 | else | |
ff66d28f PE |
5400 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
5401 | See \`config.log' for more details." >&5 | |
5402 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
5403 | See \`config.log' for more details." >&2;} | |
5404 | { (exit 1); exit 1; }; } | |
5405 | fi | |
5406 | ||
5407 | ac_ext=c | |
5408 | ac_cpp='$CPP $CPPFLAGS' | |
5409 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5410 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5411 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5412 | ||
5413 | ||
5414 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
5415 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
5416 | if test "${ac_cv_prog_egrep+set}" = set; then | |
5417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5418 | else | |
5419 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
5420 | then ac_cv_prog_egrep='grep -E' | |
5421 | else ac_cv_prog_egrep='egrep' | |
5422 | fi | |
5423 | fi | |
5424 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
5425 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
5426 | EGREP=$ac_cv_prog_egrep | |
5427 | ||
5428 | ||
5429 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
5430 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5431 | if test "${ac_cv_header_stdc+set}" = set; then | |
5432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5433 | else | |
5434 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
5435 | /* confdefs.h. */ |
5436 | _ACEOF | |
5437 | cat confdefs.h >>conftest.$ac_ext | |
5438 | cat >>conftest.$ac_ext <<_ACEOF | |
5439 | /* end confdefs.h. */ | |
5440 | #include <stdlib.h> | |
5441 | #include <stdarg.h> | |
5442 | #include <string.h> | |
5443 | #include <float.h> | |
5444 | ||
5445 | int | |
5446 | main () | |
5447 | { | |
5448 | ||
5449 | ; | |
5450 | return 0; | |
5451 | } | |
5452 | _ACEOF | |
5453 | rm -f conftest.$ac_objext | |
5454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 5455 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 5456 | ac_status=$? |
ec2075e9 BK |
5457 | grep -v '^ *+' conftest.er1 >conftest.err |
5458 | rm -f conftest.er1 | |
5459 | cat conftest.err >&5 | |
ff66d28f PE |
5460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5461 | (exit $ac_status); } && | |
780028b6 BK |
5462 | { ac_try='test -z "$ac_c_werror_flag" |
5463 | || test ! -s conftest.err' | |
ec2075e9 BK |
5464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5465 | (eval $ac_try) 2>&5 | |
5466 | ac_status=$? | |
5467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5468 | (exit $ac_status); }; } && | |
5469 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
5470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5471 | (eval $ac_try) 2>&5 | |
5472 | ac_status=$? | |
5473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5474 | (exit $ac_status); }; }; then | |
5475 | ac_cv_header_stdc=yes | |
5476 | else | |
5477 | echo "$as_me: failed program was:" >&5 | |
5478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5479 | ||
5480 | ac_cv_header_stdc=no | |
5481 | fi | |
ec2075e9 | 5482 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
5483 | |
5484 | if test $ac_cv_header_stdc = yes; then | |
5485 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5486 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
5487 | /* confdefs.h. */ |
5488 | _ACEOF | |
5489 | cat confdefs.h >>conftest.$ac_ext | |
5490 | cat >>conftest.$ac_ext <<_ACEOF | |
5491 | /* end confdefs.h. */ | |
5492 | #include <string.h> | |
5493 | ||
5494 | _ACEOF | |
5495 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5496 | $EGREP "memchr" >/dev/null 2>&1; then | |
c470c17d BK |
5497 | : |
5498 | else | |
ff66d28f PE |
5499 | ac_cv_header_stdc=no |
5500 | fi | |
5501 | rm -f conftest* | |
5502 | ||
5503 | fi | |
5504 | ||
5505 | if test $ac_cv_header_stdc = yes; then | |
5506 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5507 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
5508 | /* confdefs.h. */ |
5509 | _ACEOF | |
5510 | cat confdefs.h >>conftest.$ac_ext | |
5511 | cat >>conftest.$ac_ext <<_ACEOF | |
5512 | /* end confdefs.h. */ | |
5513 | #include <stdlib.h> | |
5514 | ||
5515 | _ACEOF | |
5516 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5517 | $EGREP "free" >/dev/null 2>&1; then | |
5518 | : | |
5519 | else | |
5520 | ac_cv_header_stdc=no | |
5521 | fi | |
5522 | rm -f conftest* | |
5523 | ||
5524 | fi | |
5525 | ||
5526 | if test $ac_cv_header_stdc = yes; then | |
5527 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5528 | if test "$cross_compiling" = yes; then | |
5529 | : | |
5530 | else | |
5531 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
5532 | /* confdefs.h. */ |
5533 | _ACEOF | |
5534 | cat confdefs.h >>conftest.$ac_ext | |
5535 | cat >>conftest.$ac_ext <<_ACEOF | |
5536 | /* end confdefs.h. */ | |
5537 | #include <ctype.h> | |
5538 | #if ((' ' & 0x0FF) == 0x020) | |
5539 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5540 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5541 | #else | |
5542 | # define ISLOWER(c) \ | |
ec2075e9 BK |
5543 | (('a' <= (c) && (c) <= 'i') \ |
5544 | || ('j' <= (c) && (c) <= 'r') \ | |
5545 | || ('s' <= (c) && (c) <= 'z')) | |
ff66d28f PE |
5546 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
5547 | #endif | |
5548 | ||
5549 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5550 | int | |
5551 | main () | |
5552 | { | |
5553 | int i; | |
5554 | for (i = 0; i < 256; i++) | |
5555 | if (XOR (islower (i), ISLOWER (i)) | |
ec2075e9 | 5556 | || toupper (i) != TOUPPER (i)) |
ff66d28f PE |
5557 | exit(2); |
5558 | exit (0); | |
5559 | } | |
5560 | _ACEOF | |
5561 | rm -f conftest$ac_exeext | |
5562 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5563 | (eval $ac_link) 2>&5 | |
5564 | ac_status=$? | |
5565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5566 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5568 | (eval $ac_try) 2>&5 | |
5569 | ac_status=$? | |
5570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5571 | (exit $ac_status); }; }; then | |
5572 | : | |
5573 | else | |
5574 | echo "$as_me: program exited with status $ac_status" >&5 | |
5575 | echo "$as_me: failed program was:" >&5 | |
5576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5577 | ||
5578 | ( exit $ac_status ) | |
5579 | ac_cv_header_stdc=no | |
b2dad0e3 | 5580 | fi |
ec2075e9 | 5581 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b2dad0e3 | 5582 | fi |
33590f13 | 5583 | fi |
33590f13 | 5584 | fi |
ff66d28f PE |
5585 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5586 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
5587 | if test $ac_cv_header_stdc = yes; then | |
5588 | ||
5589 | cat >>confdefs.h <<\_ACEOF | |
5590 | #define STDC_HEADERS 1 | |
5591 | _ACEOF | |
5592 | ||
5593 | fi | |
5594 | ||
5595 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5596 | ||
5597 | ||
5598 | ||
5599 | ||
5600 | ||
5601 | ||
5602 | ||
5603 | ||
5604 | ||
5605 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
ec2075e9 | 5606 | inttypes.h stdint.h unistd.h |
ff66d28f PE |
5607 | do |
5608 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5609 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5610 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5611 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5613 | else | |
5614 | cat >conftest.$ac_ext <<_ACEOF | |
ff66d28f PE |
5615 | /* confdefs.h. */ |
5616 | _ACEOF | |
5617 | cat confdefs.h >>conftest.$ac_ext | |
5618 | cat >>conftest.$ac_ext <<_ACEOF | |
5619 | /* end confdefs.h. */ | |
5620 | $ac_includes_default | |
5621 | ||
5622 | #include <$ac_header> | |
5623 | _ACEOF | |
5624 | rm -f conftest.$ac_objext | |
5625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
ec2075e9 | 5626 | (eval $ac_compile) 2>conftest.er1 |
ff66d28f | 5627 | ac_status=$? |
ec2075e9 BK |
5628 | grep -v '^ *+' conftest.er1 >conftest.err |
5629 | rm -f conftest.er1 | |
5630 | cat conftest.err >&5 | |
ff66d28f PE |
5631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5632 | (exit $ac_status); } && | |
780028b6 BK |
5633 | { ac_try='test -z "$ac_c_werror_flag" |
5634 | || test ! -s conftest.err' | |
ec2075e9 BK |
5635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5636 | (eval $ac_try) 2>&5 | |
5637 | ac_status=$? | |
5638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5639 | (exit $ac_status); }; } && | |
5640 | { ac_try='test -s conftest.$ac_objext' | |
ff66d28f PE |
5641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5642 | (eval $ac_try) 2>&5 | |
5643 | ac_status=$? | |
5644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5645 | (exit $ac_status); }; }; then | |
5646 | eval "$as_ac_Header=yes" | |
5647 | else | |
5648 | echo "$as_me: failed program was:" >&5 | |
5649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5650 | ||
5651 | eval "$as_ac_Header=no" | |
5652 | fi | |
ec2075e9 | 5653 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ff66d28f PE |
5654 | fi |
5655 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5656 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5657 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5658 | cat >>confdefs.h <<_ACEOF | |
5659 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5660 | _ACEOF | |
5661 | ||
33590f13 | 5662 | fi |
ff66d28f PE |
5663 | |
5664 | done | |
5665 | ||
33590f13 BK |
5666 | |
5667 | ||
ff66d28f PE |
5668 | echo "$as_me:$LINENO: checking for C locale to use" >&5 |
5669 | echo $ECHO_N "checking for C locale to use... $ECHO_C" >&6 | |
5670 | # Check whether --enable-clocale or --disable-clocale was given. | |
4e10943d BK |
5671 | if test "${enable_clocale+set}" = set; then |
5672 | enableval="$enable_clocale" | |
ff66d28f PE |
5673 | |
5674 | case "$enableval" in | |
5675 | generic|gnu|ieee_1003.1-2001|yes|no|auto) ;; | |
5676 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5 | |
5677 | echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;} | |
5678 | { (exit 1); exit 1; }; } ;; | |
5679 | esac | |
5680 | ||
b2dad0e3 | 5681 | else |
ff66d28f PE |
5682 | enable_clocale=auto |
5683 | fi; | |
b2dad0e3 | 5684 | |
20427c6b | 5685 | |
ff66d28f PE |
5686 | # If they didn't use this option switch, or if they specified --enable |
5687 | # with no specific model, we'll have to look for one. If they | |
5688 | # specified --disable (???), do likewise. | |
5689 | if test $enable_clocale = no || test $enable_clocale = yes; then | |
5690 | enable_clocale=auto | |
5691 | fi | |
5692 | ||
5693 | # Either a known package, or "auto" | |
4e10943d | 5694 | enable_clocale_flag=$enable_clocale |
dd75251f | 5695 | |
ff66d28f PE |
5696 | # Probe for locale support if no specific model is specified. |
5697 | # Default to "generic". | |
5698 | if test $enable_clocale_flag = auto; then | |
7d3998a4 PE |
5699 | case ${target_os} in |
5700 | linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu) | |
ff66d28f | 5701 | cat >conftest.$ac_ext <<_ACEOF |
ff66d28f PE |
5702 | /* confdefs.h. */ |
5703 | _ACEOF | |
5704 | cat confdefs.h >>conftest.$ac_ext | |
5705 | cat >>conftest.$ac_ext <<_ACEOF | |
5706 | /* end confdefs.h. */ | |
56deb74c BK |
5707 | |
5708 | #include <features.h> | |
37bc6ca2 | 5709 | #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) |
3d7c150e | 5710 | _GLIBCXX_ok |
56deb74c | 5711 | #endif |
ff66d28f PE |
5712 | |
5713 | _ACEOF | |
56deb74c | 5714 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
ff66d28f | 5715 | $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then |
56deb74c BK |
5716 | enable_clocale_flag=gnu |
5717 | else | |
56deb74c BK |
5718 | enable_clocale_flag=generic |
5719 | fi | |
5720 | rm -f conftest* | |
5721 | ||
1451a492 | 5722 | |
ff66d28f | 5723 | # Test for bugs early in glibc-2.2.x series |
7d3998a4 | 5724 | if test $enable_clocale_flag = gnu; then |
ff66d28f | 5725 | if test "$cross_compiling" = yes; then |
1451a492 BK |
5726 | enable_clocale_flag=generic |
5727 | else | |
ff66d28f | 5728 | cat >conftest.$ac_ext <<_ACEOF |
ff66d28f PE |
5729 | /* confdefs.h. */ |
5730 | _ACEOF | |
5731 | cat confdefs.h >>conftest.$ac_ext | |
5732 | cat >>conftest.$ac_ext <<_ACEOF | |
5733 | /* end confdefs.h. */ | |
5734 | ||
5735 | #define _GNU_SOURCE 1 | |
5736 | #include <locale.h> | |
5737 | #include <string.h> | |
5738 | #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) | |
5739 | extern __typeof(newlocale) __newlocale; | |
5740 | extern __typeof(duplocale) __duplocale; | |
5741 | extern __typeof(strcoll_l) __strcoll_l; | |
5742 | #endif | |
5743 | int main() | |
5744 | { | |
5745 |