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