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