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