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