]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/configure
jvmti.cc (_Jv_JVMTI_DisposeEnvironment): New function.
[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
464aea98 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 CPP CPPFLAGS EGREP LIBTOOL CXXCPP 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 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 GLIBCXX_LDBL_COMPAT_TRUE GLIBCXX_LDBL_COMPAT_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_CPP_set=${CPP+set}
754ac_env_CPP_value=$CPP
755ac_cv_env_CPP_set=${CPP+set}
756ac_cv_env_CPP_value=$CPP
464aea98
JM
757ac_env_CPPFLAGS_set=${CPPFLAGS+set}
758ac_env_CPPFLAGS_value=$CPPFLAGS
759ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
760ac_cv_env_CPPFLAGS_value=$CPPFLAGS
761ac_env_CXXCPP_set=${CXXCPP+set}
762ac_env_CXXCPP_value=$CXXCPP
763ac_cv_env_CXXCPP_set=${CXXCPP+set}
764ac_cv_env_CXXCPP_value=$CXXCPP
ff66d28f
PE
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]
347669a0
BK
872 --enable-long-long enable template specializations for 'long long'
873 [default=yes]
874 --enable-wchar_t enable template specializations for 'wchar_t'
517da0ce 875 [default=yes]
8a9b2875
PC
876 --enable-c99 turns on ISO/IEC 9899:1999 support
877 [default=yes]
517da0ce 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
517da0ce 919 CPP C preprocessor
464aea98 920 CXXCPP 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
0efaed01 1381libtool_VERSION=6:9: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
464aea98
JM
1991ac_ext=c
1992ac_cpp='$CPP $CPPFLAGS'
1993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1995ac_compiler_gnu=$ac_cv_c_compiler_gnu
1996echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
1997echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1998# On Suns, sometimes $CPP names a directory.
1999if test -n "$CPP" && test -d "$CPP"; then
2000 CPP=
2001fi
2002if test -z "$CPP"; then
2003 if test "${ac_cv_prog_CPP+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2005else
2006 # Double quotes because CPP needs to be expanded
2007 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2008 do
2009 ac_preproc_ok=false
2010for ac_c_preproc_warn_flag in '' yes
2011do
2012 # Use a header file that comes with gcc, so configuring glibc
2013 # with a fresh cross-compiler works.
2014 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2015 # <limits.h> exists even on freestanding compilers.
2016 # On the NeXT, cc -E runs the code through the compiler's parser,
2017 # not just through cpp. "Syntax error" is here to catch this case.
2018 cat >conftest.$ac_ext <<_ACEOF
2019/* confdefs.h. */
2020_ACEOF
2021cat confdefs.h >>conftest.$ac_ext
2022cat >>conftest.$ac_ext <<_ACEOF
2023/* end confdefs.h. */
2024#ifdef __STDC__
2025# include <limits.h>
2026#else
2027# include <assert.h>
2028#endif
2029 Syntax error
2030_ACEOF
2031if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2032 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2033 ac_status=$?
2034 grep -v '^ *+' conftest.er1 >conftest.err
2035 rm -f conftest.er1
2036 cat conftest.err >&5
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); } >/dev/null; then
2039 if test -s conftest.err; then
2040 ac_cpp_err=$ac_c_preproc_warn_flag
2041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2042 else
2043 ac_cpp_err=
2044 fi
2045else
2046 ac_cpp_err=yes
2047fi
2048if test -z "$ac_cpp_err"; then
2049 :
2050else
2051 echo "$as_me: failed program was:" >&5
2052sed 's/^/| /' conftest.$ac_ext >&5
2053
2054 # Broken: fails on valid input.
2055continue
2056fi
2057rm -f conftest.err conftest.$ac_ext
2058
2059 # OK, works on sane cases. Now check whether non-existent headers
2060 # can be detected and how.
2061 cat >conftest.$ac_ext <<_ACEOF
2062/* confdefs.h. */
2063_ACEOF
2064cat confdefs.h >>conftest.$ac_ext
2065cat >>conftest.$ac_ext <<_ACEOF
2066/* end confdefs.h. */
2067#include <ac_nonexistent.h>
2068_ACEOF
2069if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2071 ac_status=$?
2072 grep -v '^ *+' conftest.er1 >conftest.err
2073 rm -f conftest.er1
2074 cat conftest.err >&5
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); } >/dev/null; then
2077 if test -s conftest.err; then
2078 ac_cpp_err=$ac_c_preproc_warn_flag
2079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2080 else
2081 ac_cpp_err=
2082 fi
2083else
2084 ac_cpp_err=yes
2085fi
2086if test -z "$ac_cpp_err"; then
2087 # Broken: success on invalid input.
2088continue
2089else
2090 echo "$as_me: failed program was:" >&5
2091sed 's/^/| /' conftest.$ac_ext >&5
2092
2093 # Passes both tests.
2094ac_preproc_ok=:
2095break
2096fi
2097rm -f conftest.err conftest.$ac_ext
2098
2099done
2100# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2101rm -f conftest.err conftest.$ac_ext
2102if $ac_preproc_ok; then
2103 break
2104fi
2105
2106 done
2107 ac_cv_prog_CPP=$CPP
2108
2109fi
2110 CPP=$ac_cv_prog_CPP
2111else
2112 ac_cv_prog_CPP=$CPP
2113fi
2114echo "$as_me:$LINENO: result: $CPP" >&5
2115echo "${ECHO_T}$CPP" >&6
2116ac_preproc_ok=false
2117for ac_c_preproc_warn_flag in '' yes
2118do
2119 # Use a header file that comes with gcc, so configuring glibc
2120 # with a fresh cross-compiler works.
2121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2122 # <limits.h> exists even on freestanding compilers.
2123 # On the NeXT, cc -E runs the code through the compiler's parser,
2124 # not just through cpp. "Syntax error" is here to catch this case.
2125 cat >conftest.$ac_ext <<_ACEOF
2126/* confdefs.h. */
2127_ACEOF
2128cat confdefs.h >>conftest.$ac_ext
2129cat >>conftest.$ac_ext <<_ACEOF
2130/* end confdefs.h. */
2131#ifdef __STDC__
2132# include <limits.h>
2133#else
2134# include <assert.h>
2135#endif
2136 Syntax error
2137_ACEOF
2138if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2140 ac_status=$?
2141 grep -v '^ *+' conftest.er1 >conftest.err
2142 rm -f conftest.er1
2143 cat conftest.err >&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); } >/dev/null; then
2146 if test -s conftest.err; then
2147 ac_cpp_err=$ac_c_preproc_warn_flag
2148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2149 else
2150 ac_cpp_err=
2151 fi
2152else
2153 ac_cpp_err=yes
2154fi
2155if test -z "$ac_cpp_err"; then
2156 :
2157else
2158 echo "$as_me: failed program was:" >&5
2159sed 's/^/| /' conftest.$ac_ext >&5
2160
2161 # Broken: fails on valid input.
2162continue
2163fi
2164rm -f conftest.err conftest.$ac_ext
2165
2166 # OK, works on sane cases. Now check whether non-existent headers
2167 # can be detected and how.
2168 cat >conftest.$ac_ext <<_ACEOF
2169/* confdefs.h. */
2170_ACEOF
2171cat confdefs.h >>conftest.$ac_ext
2172cat >>conftest.$ac_ext <<_ACEOF
2173/* end confdefs.h. */
2174#include <ac_nonexistent.h>
2175_ACEOF
2176if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2178 ac_status=$?
2179 grep -v '^ *+' conftest.er1 >conftest.err
2180 rm -f conftest.er1
2181 cat conftest.err >&5
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); } >/dev/null; then
2184 if test -s conftest.err; then
2185 ac_cpp_err=$ac_c_preproc_warn_flag
2186 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2187 else
2188 ac_cpp_err=
2189 fi
2190else
2191 ac_cpp_err=yes
2192fi
2193if test -z "$ac_cpp_err"; then
2194 # Broken: success on invalid input.
2195continue
2196else
2197 echo "$as_me: failed program was:" >&5
2198sed 's/^/| /' conftest.$ac_ext >&5
2199
2200 # Passes both tests.
2201ac_preproc_ok=:
2202break
2203fi
2204rm -f conftest.err conftest.$ac_ext
2205
2206done
2207# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2208rm -f conftest.err conftest.$ac_ext
2209if $ac_preproc_ok; then
2210 :
2211else
2212 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2213See \`config.log' for more details." >&5
2214echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2215See \`config.log' for more details." >&2;}
2216 { (exit 1); exit 1; }; }
2217fi
2218
2219ac_ext=c
2220ac_cpp='$CPP $CPPFLAGS'
2221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2223ac_compiler_gnu=$ac_cv_c_compiler_gnu
2224
2225
2226echo "$as_me:$LINENO: checking for egrep" >&5
2227echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2228if test "${ac_cv_prog_egrep+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2230else
2231 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2232 then ac_cv_prog_egrep='grep -E'
2233 else ac_cv_prog_egrep='egrep'
2234 fi
2235fi
2236echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2237echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2238 EGREP=$ac_cv_prog_egrep
2239
2240
2241
82ba99d5
PE
2242 # Keep these sync'd with the list in Makefile.am. The first provides an
2243 # expandable list at autoconf time; the second provides an expandable list
2244 # (i.e., shell variable) at configure time.
2245
2246 SUBDIRS='include libmath libsupc++ src po testsuite'
2247
ff66d28f
PE
2248 # These need to be absolute paths, yet at the same time need to
2249 # canonicalize only relative paths, because then amd will not unmount
2250 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
2251 glibcxx_builddir=`${PWDCMD-pwd}`
2252 case $srcdir in
2253 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
2254 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
2255 esac
2256 toplevel_srcdir=${glibcxx_srcdir}/..
2257
2258
2259
2260
2261 # We use these options to decide which functions to include. They are
2262 # set from the top level.
2263
2264# Check whether --with-target-subdir or --without-target-subdir was given.
2265if test "${with_target_subdir+set}" = set; then
2266 withval="$with_target_subdir"
2267
2268fi;
2269
2270
2271# Check whether --with-cross-host or --without-cross-host was given.
2272if test "${with_cross_host+set}" = set; then
2273 withval="$with_cross_host"
2274
2275fi;
2276
2277
2278# Check whether --with-newlib or --without-newlib was given.
2279if test "${with_newlib+set}" = set; then
2280 withval="$with_newlib"
2281
2282fi;
2283
f6dda651
PE
2284 # We're almost certainly being configured before anything else which uses
2285 # C++, so all of our AC_PROG_* discoveries will be cached. It's vital that
2286 # we not cache the value of CXX that we "discover" here, because it's set
2287 # to something unique for us and libjava. Other target libraries need to
2288 # find CXX for themselves. We yank the rug out from under the normal AC_*
2289 # process by sneakily renaming the cache variable. This also lets us debug
2290 # the value of "our" CXX in postmortems.
2291 #
2292 # We must also force CXX to /not/ be a precious variable, otherwise the
2293 # wrong (non-multilib-adjusted) value will be used in multilibs. This
2294 # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS. And as a side
2295 # effect, CXXFLAGS is no longer automagically subst'd, so we have to do
2296 # that ourselves. Un-preciousing AC_PROG_CC also affects CC and CFLAGS.
2297 #
2298 # -fno-builtin must be present here so that a non-conflicting form of
2299 # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
2300
2301
2302
2303
2304 save_CXXFLAGS="$CXXFLAGS"
2305 CXXFLAGS="$CXXFLAGS -fno-builtin"
ff66d28f
PE
2306 ac_ext=c
2307ac_cpp='$CPP $CPPFLAGS'
2308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2310ac_compiler_gnu=$ac_cv_c_compiler_gnu
2311if test -n "$ac_tool_prefix"; then
2312 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2313set dummy ${ac_tool_prefix}gcc; ac_word=$2
2314echo "$as_me:$LINENO: checking for $ac_word" >&5
2315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2316if test "${ac_cv_prog_CC+set}" = set; then
2317 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2318else
ff66d28f
PE
2319 if test -n "$CC"; then
2320 ac_cv_prog_CC="$CC" # Let the user override the test.
b2dad0e3 2321else
ff66d28f
PE
2322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323for as_dir in $PATH
2324do
2325 IFS=$as_save_IFS
2326 test -z "$as_dir" && as_dir=.
2327 for ac_exec_ext in '' $ac_executable_extensions; do
2328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2329 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2331 break 2
2332 fi
2333done
2334done
2335
b2dad0e3
BK
2336fi
2337fi
ff66d28f
PE
2338CC=$ac_cv_prog_CC
2339if test -n "$CC"; then
2340 echo "$as_me:$LINENO: result: $CC" >&5
2341echo "${ECHO_T}$CC" >&6
b2dad0e3 2342else
ff66d28f
PE
2343 echo "$as_me:$LINENO: result: no" >&5
2344echo "${ECHO_T}no" >&6
b2dad0e3
BK
2345fi
2346
ff66d28f
PE
2347fi
2348if test -z "$ac_cv_prog_CC"; then
2349 ac_ct_CC=$CC
2350 # Extract the first word of "gcc", so it can be a program name with args.
2351set dummy gcc; ac_word=$2
2352echo "$as_me:$LINENO: checking for $ac_word" >&5
2353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2354if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2356else
ff66d28f
PE
2357 if test -n "$ac_ct_CC"; then
2358 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b2dad0e3 2359else
ff66d28f
PE
2360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361for as_dir in $PATH
2362do
2363 IFS=$as_save_IFS
2364 test -z "$as_dir" && as_dir=.
2365 for ac_exec_ext in '' $ac_executable_extensions; do
2366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2367 ac_cv_prog_ac_ct_CC="gcc"
2368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2369 break 2
2370 fi
2371done
2372done
2373
b2dad0e3
BK
2374fi
2375fi
ff66d28f
PE
2376ac_ct_CC=$ac_cv_prog_ac_ct_CC
2377if test -n "$ac_ct_CC"; then
2378 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2379echo "${ECHO_T}$ac_ct_CC" >&6
b2dad0e3 2380else
ff66d28f
PE
2381 echo "$as_me:$LINENO: result: no" >&5
2382echo "${ECHO_T}no" >&6
b2dad0e3 2383fi
b2dad0e3 2384
ff66d28f
PE
2385 CC=$ac_ct_CC
2386else
2387 CC="$ac_cv_prog_CC"
b2dad0e3
BK
2388fi
2389
ff66d28f
PE
2390if test -z "$CC"; then
2391 if test -n "$ac_tool_prefix"; then
2392 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2393set dummy ${ac_tool_prefix}cc; ac_word=$2
2394echo "$as_me:$LINENO: checking for $ac_word" >&5
2395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2396if test "${ac_cv_prog_CC+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2398else
2399 if test -n "$CC"; then
2400 ac_cv_prog_CC="$CC" # Let the user override the test.
2401else
2402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403for as_dir in $PATH
2404do
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2409 ac_cv_prog_CC="${ac_tool_prefix}cc"
2410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411 break 2
b2dad0e3 2412 fi
ff66d28f
PE
2413done
2414done
93b85586 2415
ff66d28f
PE
2416fi
2417fi
2418CC=$ac_cv_prog_CC
2419if test -n "$CC"; then
2420 echo "$as_me:$LINENO: result: $CC" >&5
2421echo "${ECHO_T}$CC" >&6
974e336b 2422else
ff66d28f
PE
2423 echo "$as_me:$LINENO: result: no" >&5
2424echo "${ECHO_T}no" >&6
2425fi
974e336b 2426
974e336b 2427fi
ff66d28f
PE
2428if test -z "$ac_cv_prog_CC"; then
2429 ac_ct_CC=$CC
2430 # Extract the first word of "cc", so it can be a program name with args.
2431set dummy cc; ac_word=$2
2432echo "$as_me:$LINENO: checking for $ac_word" >&5
2433echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2434if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2436else
2437 if test -n "$ac_ct_CC"; then
2438 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2439else
2440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441for as_dir in $PATH
2442do
2443 IFS=$as_save_IFS
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447 ac_cv_prog_ac_ct_CC="cc"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449 break 2
2450 fi
2451done
2452done
33590f13 2453
974e336b 2454fi
ff66d28f
PE
2455fi
2456ac_ct_CC=$ac_cv_prog_ac_ct_CC
2457if test -n "$ac_ct_CC"; then
2458 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2459echo "${ECHO_T}$ac_ct_CC" >&6
33590f13 2460else
ff66d28f
PE
2461 echo "$as_me:$LINENO: result: no" >&5
2462echo "${ECHO_T}no" >&6
33590f13
BK
2463fi
2464
ff66d28f
PE
2465 CC=$ac_ct_CC
2466else
2467 CC="$ac_cv_prog_CC"
2468fi
33590f13 2469
ff66d28f
PE
2470fi
2471if test -z "$CC"; then
2472 # Extract the first word of "cc", so it can be a program name with args.
2473set dummy cc; ac_word=$2
2474echo "$as_me:$LINENO: checking for $ac_word" >&5
2475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2476if test "${ac_cv_prog_CC+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2478else
ff66d28f
PE
2479 if test -n "$CC"; then
2480 ac_cv_prog_CC="$CC" # Let the user override the test.
b2dad0e3 2481else
ff66d28f
PE
2482 ac_prog_rejected=no
2483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484for as_dir in $PATH
2485do
2486 IFS=$as_save_IFS
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2490 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2491 ac_prog_rejected=yes
2492 continue
2493 fi
2494 ac_cv_prog_CC="cc"
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 break 2
2497 fi
2498done
2499done
2500
2501if test $ac_prog_rejected = yes; then
2502 # We found a bogon in the path, so make sure we never use it.
2503 set dummy $ac_cv_prog_CC
2504 shift
2505 if test $# != 0; then
2506 # We chose a different compiler from the bogus one.
2507 # However, it has the same basename, so the bogon will be chosen
2508 # first if we set CC to just the basename; use the full file name.
2509 shift
2510 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2511 fi
b2dad0e3
BK
2512fi
2513fi
ff66d28f
PE
2514fi
2515CC=$ac_cv_prog_CC
2516if test -n "$CC"; then
2517 echo "$as_me:$LINENO: result: $CC" >&5
2518echo "${ECHO_T}$CC" >&6
b2dad0e3 2519else
ff66d28f
PE
2520 echo "$as_me:$LINENO: result: no" >&5
2521echo "${ECHO_T}no" >&6
b2dad0e3
BK
2522fi
2523
ff66d28f
PE
2524fi
2525if test -z "$CC"; then
2526 if test -n "$ac_tool_prefix"; then
2527 for ac_prog in cl
2528 do
2529 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2530set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2531echo "$as_me:$LINENO: checking for $ac_word" >&5
2532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2533if test "${ac_cv_prog_CC+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2535else
ff66d28f
PE
2536 if test -n "$CC"; then
2537 ac_cv_prog_CC="$CC" # Let the user override the test.
b2dad0e3 2538else
ff66d28f
PE
2539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540for as_dir in $PATH
2541do
2542 IFS=$as_save_IFS
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2546 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2548 break 2
2549 fi
2550done
2551done
2552
b2dad0e3
BK
2553fi
2554fi
ff66d28f
PE
2555CC=$ac_cv_prog_CC
2556if test -n "$CC"; then
2557 echo "$as_me:$LINENO: result: $CC" >&5
2558echo "${ECHO_T}$CC" >&6
b2dad0e3 2559else
ff66d28f
PE
2560 echo "$as_me:$LINENO: result: no" >&5
2561echo "${ECHO_T}no" >&6
b2dad0e3
BK
2562fi
2563
ff66d28f
PE
2564 test -n "$CC" && break
2565 done
2566fi
2567if test -z "$CC"; then
2568 ac_ct_CC=$CC
2569 for ac_prog in cl
2570do
2571 # Extract the first word of "$ac_prog", so it can be a program name with args.
2572set dummy $ac_prog; ac_word=$2
2573echo "$as_me:$LINENO: checking for $ac_word" >&5
2574echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2575if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2577else
ff66d28f
PE
2578 if test -n "$ac_ct_CC"; then
2579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b2dad0e3 2580else
ff66d28f
PE
2581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2588 ac_cv_prog_ac_ct_CC="$ac_prog"
2589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 break 2
2591 fi
2592done
2593done
2594
b2dad0e3
BK
2595fi
2596fi
ff66d28f
PE
2597ac_ct_CC=$ac_cv_prog_ac_ct_CC
2598if test -n "$ac_ct_CC"; then
2599 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2600echo "${ECHO_T}$ac_ct_CC" >&6
b2dad0e3 2601else
ff66d28f
PE
2602 echo "$as_me:$LINENO: result: no" >&5
2603echo "${ECHO_T}no" >&6
b2dad0e3
BK
2604fi
2605
ff66d28f
PE
2606 test -n "$ac_ct_CC" && break
2607done
b2dad0e3 2608
ff66d28f
PE
2609 CC=$ac_ct_CC
2610fi
2611
2612fi
2613
2614
2615test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2616See \`config.log' for more details." >&5
2617echo "$as_me: error: no acceptable C compiler found in \$PATH
2618See \`config.log' for more details." >&2;}
2619 { (exit 1); exit 1; }; }
2620
2621# Provide some information about the compiler.
2622echo "$as_me:$LINENO:" \
2623 "checking for C compiler version" >&5
2624ac_compiler=`set X $ac_compile; echo $2`
2625{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2626 (eval $ac_compiler --version </dev/null >&5) 2>&5
2627 ac_status=$?
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }
2630{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2631 (eval $ac_compiler -v </dev/null >&5) 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }
2635{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2636 (eval $ac_compiler -V </dev/null >&5) 2>&5
2637 ac_status=$?
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }
2640
2641cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
2642/* confdefs.h. */
2643_ACEOF
2644cat confdefs.h >>conftest.$ac_ext
2645cat >>conftest.$ac_ext <<_ACEOF
2646/* end confdefs.h. */
2647
3a24bf5d
KC
2648int
2649main ()
2650{
2651
2652 ;
2653 return 0;
2654}
2655_ACEOF
2656# FIXME: Cleanup?
2657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2658 (eval $ac_link) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; then
2662 gcc_no_link=no
2663else
2664 gcc_no_link=yes
2665fi
2666
2667if test x$gcc_no_link = xyes; then
2668 # Setting cross_compile will disable run tests; it will
2669 # also disable AC_CHECK_FILE but that's generally
2670 # correct if we can't link.
2671 cross_compiling=yes
2672 EXEEXT=
2673else
2674 cat >conftest.$ac_ext <<_ACEOF
2675/* confdefs.h. */
2676_ACEOF
2677cat confdefs.h >>conftest.$ac_ext
2678cat >>conftest.$ac_ext <<_ACEOF
2679/* end confdefs.h. */
2680
ff66d28f
PE
2681int
2682main ()
2683{
2684
2685 ;
2686 return 0;
2687}
2688_ACEOF
2689ac_clean_files_save=$ac_clean_files
2690ac_clean_files="$ac_clean_files a.out a.exe b.out"
2691# Try to create an executable without -o first, disregard a.out.
2692# It will help us diagnose broken compilers, and finding out an intuition
2693# of exeext.
ec2075e9
BK
2694echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2695echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
ff66d28f
PE
2696ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2697if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2698 (eval $ac_link_default) 2>&5
2699 ac_status=$?
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; then
2702 # Find the output, starting from the most likely. This scheme is
2703# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2704# resort.
2705
2706# Be careful to initialize this variable, since it used to be cached.
2707# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2708ac_cv_exeext=
2709# b.out is created by i960 compilers.
2710for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2711do
2712 test -f "$ac_file" || continue
2713 case $ac_file in
2714 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ec2075e9 2715 ;;
ff66d28f 2716 conftest.$ac_ext )
ec2075e9
BK
2717 # This is the source file.
2718 ;;
ff66d28f 2719 [ab].out )
ec2075e9
BK
2720 # We found the default executable, but exeext='' is most
2721 # certainly right.
2722 break;;
ff66d28f 2723 *.* )
ec2075e9
BK
2724 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2725 # FIXME: I believe we export ac_cv_exeext for Libtool,
2726 # but it would be cool to find out if it's true. Does anybody
2727 # maintain Libtool? --akim.
2728 export ac_cv_exeext
2729 break;;
ff66d28f 2730 * )
ec2075e9 2731 break;;
ff66d28f
PE
2732 esac
2733done
b2dad0e3 2734else
ff66d28f
PE
2735 echo "$as_me: failed program was:" >&5
2736sed 's/^/| /' conftest.$ac_ext >&5
2737
2738{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2739See \`config.log' for more details." >&5
2740echo "$as_me: error: C compiler cannot create executables
2741See \`config.log' for more details." >&2;}
2742 { (exit 77); exit 77; }; }
2743fi
2744
2745ac_exeext=$ac_cv_exeext
2746echo "$as_me:$LINENO: result: $ac_file" >&5
2747echo "${ECHO_T}$ac_file" >&6
2748
2749# Check the compiler produces executables we can run. If not, either
2750# the compiler is broken, or we cross compile.
2751echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2752echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2753# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2754# If not cross compiling, check that we can run a simple program.
2755if test "$cross_compiling" != yes; then
2756 if { ac_try='./$ac_file'
2757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 (eval $ac_try) 2>&5
2759 ac_status=$?
2760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761 (exit $ac_status); }; }; then
2762 cross_compiling=no
2763 else
2764 if test "$cross_compiling" = maybe; then
2765 cross_compiling=yes
2766 else
2767 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2768If you meant to cross compile, use \`--host'.
2769See \`config.log' for more details." >&5
2770echo "$as_me: error: cannot run C compiled programs.
2771If you meant to cross compile, use \`--host'.
2772See \`config.log' for more details." >&2;}
2773 { (exit 1); exit 1; }; }
b2dad0e3 2774 fi
ff66d28f 2775 fi
b2dad0e3 2776fi
ff66d28f
PE
2777echo "$as_me:$LINENO: result: yes" >&5
2778echo "${ECHO_T}yes" >&6
2779
2780rm -f a.out a.exe conftest$ac_cv_exeext b.out
2781ac_clean_files=$ac_clean_files_save
2782# Check the compiler produces executables we can run. If not, either
2783# the compiler is broken, or we cross compile.
2784echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2785echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2786echo "$as_me:$LINENO: result: $cross_compiling" >&5
2787echo "${ECHO_T}$cross_compiling" >&6
2788
2789echo "$as_me:$LINENO: checking for suffix of executables" >&5
2790echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2792 (eval $ac_link) 2>&5
2793 ac_status=$?
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); }; then
2796 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2797# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2798# work properly (i.e., refer to `conftest.exe'), while it won't with
2799# `rm'.
2800for ac_file in conftest.exe conftest conftest.*; do
2801 test -f "$ac_file" || continue
2802 case $ac_file in
2803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2804 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ec2075e9
BK
2805 export ac_cv_exeext
2806 break;;
ff66d28f
PE
2807 * ) break;;
2808 esac
2809done
b2dad0e3 2810else
ff66d28f
PE
2811 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2812See \`config.log' for more details." >&5
2813echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2814See \`config.log' for more details." >&2;}
2815 { (exit 1); exit 1; }; }
b2dad0e3
BK
2816fi
2817
ff66d28f
PE
2818rm -f conftest$ac_cv_exeext
2819echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2820echo "${ECHO_T}$ac_cv_exeext" >&6
2821
2822rm -f conftest.$ac_ext
2823EXEEXT=$ac_cv_exeext
2824ac_exeext=$EXEEXT
3a24bf5d 2825fi
ff66d28f
PE
2826echo "$as_me:$LINENO: checking for suffix of object files" >&5
2827echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2828if test "${ac_cv_objext+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2830else
2831 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
2832/* confdefs.h. */
2833_ACEOF
2834cat confdefs.h >>conftest.$ac_ext
2835cat >>conftest.$ac_ext <<_ACEOF
2836/* end confdefs.h. */
2837
2838int
2839main ()
2840{
2841
2842 ;
2843 return 0;
2844}
2845_ACEOF
2846rm -f conftest.o conftest.obj
2847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2848 (eval $ac_compile) 2>&5
2849 ac_status=$?
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }; then
2852 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2853 case $ac_file in
2854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2855 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2856 break;;
2857 esac
2858done
b2dad0e3 2859else
ff66d28f
PE
2860 echo "$as_me: failed program was:" >&5
2861sed 's/^/| /' conftest.$ac_ext >&5
2862
2863{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2864See \`config.log' for more details." >&5
2865echo "$as_me: error: cannot compute suffix of object files: cannot compile
2866See \`config.log' for more details." >&2;}
2867 { (exit 1); exit 1; }; }
46840bcd 2868fi
ff66d28f
PE
2869
2870rm -f conftest.$ac_cv_objext conftest.$ac_ext
46840bcd 2871fi
ff66d28f
PE
2872echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2873echo "${ECHO_T}$ac_cv_objext" >&6
2874OBJEXT=$ac_cv_objext
2875ac_objext=$OBJEXT
2876echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2877echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2878if test "${ac_cv_c_compiler_gnu+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880else
2881 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
2882/* confdefs.h. */
2883_ACEOF
2884cat confdefs.h >>conftest.$ac_ext
2885cat >>conftest.$ac_ext <<_ACEOF
2886/* end confdefs.h. */
46840bcd 2887
ff66d28f
PE
2888int
2889main ()
2890{
2891#ifndef __GNUC__
2892 choke me
2893#endif
2894
2895 ;
2896 return 0;
2897}
2898_ACEOF
2899rm -f conftest.$ac_objext
2900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 2901 (eval $ac_compile) 2>conftest.er1
ff66d28f 2902 ac_status=$?
ec2075e9
BK
2903 grep -v '^ *+' conftest.er1 >conftest.err
2904 rm -f conftest.er1
2905 cat conftest.err >&5
ff66d28f
PE
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); } &&
780028b6
BK
2908 { ac_try='test -z "$ac_c_werror_flag"
2909 || test ! -s conftest.err'
ec2075e9
BK
2910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911 (eval $ac_try) 2>&5
2912 ac_status=$?
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); }; } &&
2915 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
2916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917 (eval $ac_try) 2>&5
2918 ac_status=$?
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; }; then
2921 ac_compiler_gnu=yes
2922else
2923 echo "$as_me: failed program was:" >&5
2924sed 's/^/| /' conftest.$ac_ext >&5
2925
2926ac_compiler_gnu=no
2927fi
ec2075e9 2928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
2929ac_cv_c_compiler_gnu=$ac_compiler_gnu
2930
2931fi
2932echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2933echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2934GCC=`test $ac_compiler_gnu = yes && echo yes`
2935ac_test_CFLAGS=${CFLAGS+set}
2936ac_save_CFLAGS=$CFLAGS
2937CFLAGS="-g"
2938echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2939echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2940if test "${ac_cv_prog_cc_g+set}" = set; then
2941 echo $ECHO_N "(cached) $ECHO_C" >&6
2942else
2943 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
2944/* confdefs.h. */
2945_ACEOF
2946cat confdefs.h >>conftest.$ac_ext
2947cat >>conftest.$ac_ext <<_ACEOF
2948/* end confdefs.h. */
2949
2950int
2951main ()
2952{
2953
2954 ;
2955 return 0;
2956}
2957_ACEOF
2958rm -f conftest.$ac_objext
2959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 2960 (eval $ac_compile) 2>conftest.er1
ff66d28f 2961 ac_status=$?
ec2075e9
BK
2962 grep -v '^ *+' conftest.er1 >conftest.err
2963 rm -f conftest.er1
2964 cat conftest.err >&5
ff66d28f
PE
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); } &&
780028b6
BK
2967 { ac_try='test -z "$ac_c_werror_flag"
2968 || test ! -s conftest.err'
ec2075e9
BK
2969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970 (eval $ac_try) 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; } &&
2974 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
2975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2976 (eval $ac_try) 2>&5
2977 ac_status=$?
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); }; }; then
2980 ac_cv_prog_cc_g=yes
b2dad0e3 2981else
ff66d28f
PE
2982 echo "$as_me: failed program was:" >&5
2983sed 's/^/| /' conftest.$ac_ext >&5
b2dad0e3 2984
ff66d28f 2985ac_cv_prog_cc_g=no
b2dad0e3 2986fi
ec2075e9 2987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
2988fi
2989echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2990echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2991if test "$ac_test_CFLAGS" = set; then
2992 CFLAGS=$ac_save_CFLAGS
2993elif test $ac_cv_prog_cc_g = yes; then
2994 if test "$GCC" = yes; then
2995 CFLAGS="-g -O2"
b2dad0e3 2996 else
ff66d28f 2997 CFLAGS="-g"
b2dad0e3 2998 fi
ff66d28f
PE
2999else
3000 if test "$GCC" = yes; then
3001 CFLAGS="-O2"
3002 else
3003 CFLAGS=
3004 fi
3005fi
3006echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3007echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3008if test "${ac_cv_prog_cc_stdc+set}" = set; then
3009 echo $ECHO_N "(cached) $ECHO_C" >&6
3010else
3011 ac_cv_prog_cc_stdc=no
3012ac_save_CC=$CC
3013cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3014/* confdefs.h. */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h. */
3019#include <stdarg.h>
3020#include <stdio.h>
3021#include <sys/types.h>
3022#include <sys/stat.h>
3023/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3024struct buf { int x; };
3025FILE * (*rcsopen) (struct buf *, struct stat *, int);
3026static char *e (p, i)
3027 char **p;
3028 int i;
3029{
3030 return p[i];
3031}
3032static char *f (char * (*g) (char **, int), char **p, ...)
3033{
3034 char *s;
3035 va_list v;
3036 va_start (v,p);
3037 s = g (p, va_arg (v,int));
3038 va_end (v);
3039 return s;
3040}
ec2075e9
BK
3041
3042/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3043 function prototypes and stuff, but not '\xHH' hex character constants.
3044 These don't provoke an error unfortunately, instead are silently treated
3045 as 'x'. The following induces an error, until -std1 is added to get
3046 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3047 array size at least. It's necessary to write '\x00'==0 to get something
3048 that's true only with -std1. */
3049int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3050
ff66d28f
PE
3051int test (int i, double x);
3052struct s1 {int (*f) (int a);};
3053struct s2 {int (*f) (double a);};
3054int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3055int argc;
3056char **argv;
3057int
3058main ()
3059{
3060return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3061 ;
3062 return 0;
3063}
3064_ACEOF
3065# Don't try gcc -ansi; that turns off useful extensions and
3066# breaks some systems' header files.
3067# AIX -qlanglvl=ansi
3068# Ultrix and OSF/1 -std1
3069# HP-UX 10.20 and later -Ae
3070# HP-UX older versions -Aa -D_HPUX_SOURCE
3071# SVR4 -Xc -D__EXTENSIONS__
3072for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3073do
3074 CC="$ac_save_CC $ac_arg"
3075 rm -f conftest.$ac_objext
3076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 3077 (eval $ac_compile) 2>conftest.er1
ff66d28f 3078 ac_status=$?
ec2075e9
BK
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
ff66d28f
PE
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
780028b6
BK
3084 { ac_try='test -z "$ac_c_werror_flag"
3085 || test ! -s conftest.err'
ec2075e9
BK
3086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 (eval $ac_try) 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; } &&
3091 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
3092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093 (eval $ac_try) 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3097 ac_cv_prog_cc_stdc=$ac_arg
3098break
3099else
3100 echo "$as_me: failed program was:" >&5
3101sed 's/^/| /' conftest.$ac_ext >&5
3102
b2dad0e3 3103fi
ec2075e9 3104rm -f conftest.err conftest.$ac_objext
ff66d28f
PE
3105done
3106rm -f conftest.$ac_ext conftest.$ac_objext
3107CC=$ac_save_CC
b2dad0e3 3108
ff66d28f 3109fi
b2dad0e3 3110
ff66d28f
PE
3111case "x$ac_cv_prog_cc_stdc" in
3112 x|xno)
3113 echo "$as_me:$LINENO: result: none needed" >&5
3114echo "${ECHO_T}none needed" >&6 ;;
3115 *)
3116 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3117echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3118 CC="$CC $ac_cv_prog_cc_stdc" ;;
3119esac
b2dad0e3 3120
ff66d28f
PE
3121# Some people use a C++ compiler to compile C. Since we use `exit',
3122# in C++ we need to declare it. In case someone uses the same compiler
3123# for both compiling C and C++ we need to have the C++ compiler decide
3124# the declaration of exit, since it's the most demanding environment.
3125cat >conftest.$ac_ext <<_ACEOF
3126#ifndef __cplusplus
3127 choke me
3128#endif
3129_ACEOF
3130rm -f conftest.$ac_objext
3131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 3132 (eval $ac_compile) 2>conftest.er1
ff66d28f 3133 ac_status=$?
ec2075e9
BK
3134 grep -v '^ *+' conftest.er1 >conftest.err
3135 rm -f conftest.er1
3136 cat conftest.err >&5
ff66d28f
PE
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } &&
780028b6
BK
3139 { ac_try='test -z "$ac_c_werror_flag"
3140 || test ! -s conftest.err'
ec2075e9
BK
3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3142 (eval $ac_try) 2>&5
3143 ac_status=$?
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; } &&
3146 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
3147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3148 (eval $ac_try) 2>&5
3149 ac_status=$?
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; }; then
3152 for ac_declaration in \
ec2075e9 3153 '' \
ff66d28f
PE
3154 'extern "C" void std::exit (int) throw (); using std::exit;' \
3155 'extern "C" void std::exit (int); using std::exit;' \
3156 'extern "C" void exit (int) throw ();' \
3157 'extern "C" void exit (int);' \
3158 'void exit (int);'
3159do
3160 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3161/* confdefs.h. */
3162_ACEOF
3163cat confdefs.h >>conftest.$ac_ext
3164cat >>conftest.$ac_ext <<_ACEOF
3165/* end confdefs.h. */
158960ba 3166$ac_declaration
ec2075e9 3167#include <stdlib.h>
ff66d28f
PE
3168int
3169main ()
3170{
3171exit (42);
3172 ;
3173 return 0;
3174}
3175_ACEOF
3176rm -f conftest.$ac_objext
3177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 3178 (eval $ac_compile) 2>conftest.er1
ff66d28f 3179 ac_status=$?
ec2075e9
BK
3180 grep -v '^ *+' conftest.er1 >conftest.err
3181 rm -f conftest.er1
3182 cat conftest.err >&5
ff66d28f
PE
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } &&
780028b6
BK
3185 { ac_try='test -z "$ac_c_werror_flag"
3186 || test ! -s conftest.err'
ec2075e9
BK
3187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188 (eval $ac_try) 2>&5
3189 ac_status=$?
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; } &&
3192 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
3193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194 (eval $ac_try) 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; }; then
3198 :
3199else
3200 echo "$as_me: failed program was:" >&5
3201sed 's/^/| /' conftest.$ac_ext >&5
b2dad0e3 3202
ff66d28f
PE
3203continue
3204fi
ec2075e9 3205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f 3206 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3207/* confdefs.h. */
3208_ACEOF
3209cat confdefs.h >>conftest.$ac_ext
3210cat >>conftest.$ac_ext <<_ACEOF
3211/* end confdefs.h. */
3212$ac_declaration
3213int
3214main ()
3215{
3216exit (42);
3217 ;
3218 return 0;
3219}
3220_ACEOF
3221rm -f conftest.$ac_objext
3222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 3223 (eval $ac_compile) 2>conftest.er1
ff66d28f 3224 ac_status=$?
ec2075e9
BK
3225 grep -v '^ *+' conftest.er1 >conftest.err
3226 rm -f conftest.er1
3227 cat conftest.err >&5
ff66d28f
PE
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } &&
780028b6
BK
3230 { ac_try='test -z "$ac_c_werror_flag"
3231 || test ! -s conftest.err'
ec2075e9
BK
3232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233 (eval $ac_try) 2>&5
3234 ac_status=$?
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; } &&
3237 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
3238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239 (eval $ac_try) 2>&5
3240 ac_status=$?
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); }; }; then
3243 break
3244else
3245 echo "$as_me: failed program was:" >&5
3246sed 's/^/| /' conftest.$ac_ext >&5
3247
3248fi
ec2075e9 3249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
3250done
3251rm -f conftest*
3252if test -n "$ac_declaration"; then
3253 echo '#ifdef __cplusplus' >>confdefs.h
3254 echo $ac_declaration >>confdefs.h
3255 echo '#endif' >>confdefs.h
3256fi
b2dad0e3 3257
b2dad0e3 3258else
ff66d28f
PE
3259 echo "$as_me: failed program was:" >&5
3260sed 's/^/| /' conftest.$ac_ext >&5
3261
b2dad0e3 3262fi
ec2075e9 3263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
3264ac_ext=c
3265ac_cpp='$CPP $CPPFLAGS'
3266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268ac_compiler_gnu=$ac_cv_c_compiler_gnu
3269
ff66d28f
PE
3270 ac_ext=cc
3271ac_cpp='$CXXCPP $CPPFLAGS'
3272ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3273ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3274ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3275if test -n "$ac_tool_prefix"; then
3276 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3277 do
3278 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3279set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3280echo "$as_me:$LINENO: checking for $ac_word" >&5
3281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3282if test "${glibcxx_cv_prog_CXX+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3284else
3285 if test -n "$CXX"; then
3286 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
3287else
3288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3289for as_dir in $PATH
3290do
3291 IFS=$as_save_IFS
3292 test -z "$as_dir" && as_dir=.
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3295 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3297 break 2
3298 fi
3299done
3300done
3301
3302fi
3303fi
3304CXX=$glibcxx_cv_prog_CXX
3305if test -n "$CXX"; then
3306 echo "$as_me:$LINENO: result: $CXX" >&5
3307echo "${ECHO_T}$CXX" >&6
b2dad0e3 3308else
ff66d28f
PE
3309 echo "$as_me:$LINENO: result: no" >&5
3310echo "${ECHO_T}no" >&6
b2dad0e3 3311fi
b2dad0e3 3312
ff66d28f
PE
3313 test -n "$CXX" && break
3314 done
3315fi
3316if test -z "$CXX"; then
3317 ac_ct_CXX=$CXX
3318 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3319do
3320 # Extract the first word of "$ac_prog", so it can be a program name with args.
3321set dummy $ac_prog; ac_word=$2
3322echo "$as_me:$LINENO: checking for $ac_word" >&5
3323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3324if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3326else
3327 if test -n "$ac_ct_CXX"; then
3328 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3329else
3330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331for as_dir in $PATH
3332do
3333 IFS=$as_save_IFS
3334 test -z "$as_dir" && as_dir=.
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337 ac_cv_prog_ac_ct_CXX="$ac_prog"
3338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 break 2
b2dad0e3 3340 fi
ff66d28f
PE
3341done
3342done
3343
b2dad0e3 3344fi
ff66d28f
PE
3345fi
3346ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3347if test -n "$ac_ct_CXX"; then
3348 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3349echo "${ECHO_T}$ac_ct_CXX" >&6
3350else
3351 echo "$as_me:$LINENO: result: no" >&5
3352echo "${ECHO_T}no" >&6
b2dad0e3
BK
3353fi
3354
ff66d28f
PE
3355 test -n "$ac_ct_CXX" && break
3356done
3357test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3358
3359 CXX=$ac_ct_CXX
3360fi
3361
3362
3363# Provide some information about the compiler.
3364echo "$as_me:$LINENO:" \
3365 "checking for C++ compiler version" >&5
3366ac_compiler=`set X $ac_compile; echo $2`
3367{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3368 (eval $ac_compiler --version </dev/null >&5) 2>&5
3369 ac_status=$?
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }
3372{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3373 (eval $ac_compiler -v </dev/null >&5) 2>&5
3374 ac_status=$?
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }
3377{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3378 (eval $ac_compiler -V </dev/null >&5) 2>&5
3379 ac_status=$?
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }
3382
3383echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3384echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3385if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3387else
3388 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3389/* confdefs.h. */
3390_ACEOF
3391cat confdefs.h >>conftest.$ac_ext
3392cat >>conftest.$ac_ext <<_ACEOF
3393/* end confdefs.h. */
3394
3395int
3396main ()
3397{
3398#ifndef __GNUC__
3399 choke me
3400#endif
3401
3402 ;
3403 return 0;
3404}
3405_ACEOF
3406rm -f conftest.$ac_objext
3407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 3408 (eval $ac_compile) 2>conftest.er1
ff66d28f 3409 ac_status=$?
ec2075e9
BK
3410 grep -v '^ *+' conftest.er1 >conftest.err
3411 rm -f conftest.er1
3412 cat conftest.err >&5
ff66d28f
PE
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); } &&
780028b6
BK
3415 { ac_try='test -z "$ac_cxx_werror_flag"
3416 || test ! -s conftest.err'
ec2075e9
BK
3417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3418 (eval $ac_try) 2>&5
3419 ac_status=$?
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; } &&
3422 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
3423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424 (eval $ac_try) 2>&5
3425 ac_status=$?
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }; }; then
3428 ac_compiler_gnu=yes
3429else
3430 echo "$as_me: failed program was:" >&5
3431sed 's/^/| /' conftest.$ac_ext >&5
3432
3433ac_compiler_gnu=no
3434fi
ec2075e9 3435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
3436ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3437
3438fi
3439echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3440echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3441GXX=`test $ac_compiler_gnu = yes && echo yes`
3442ac_test_CXXFLAGS=${CXXFLAGS+set}
3443ac_save_CXXFLAGS=$CXXFLAGS
3444CXXFLAGS="-g"
3445echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3446echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3447if test "${ac_cv_prog_cxx_g+set}" = set; then
3448 echo $ECHO_N "(cached) $ECHO_C" >&6
3449else
3450 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3451/* confdefs.h. */
3452_ACEOF
3453cat confdefs.h >>conftest.$ac_ext
3454cat >>conftest.$ac_ext <<_ACEOF
3455/* end confdefs.h. */
3456
3457int
3458main ()
3459{
b2dad0e3 3460
ff66d28f
PE
3461 ;
3462 return 0;
3463}
3464_ACEOF
3465rm -f conftest.$ac_objext
3466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 3467 (eval $ac_compile) 2>conftest.er1
ff66d28f 3468 ac_status=$?
ec2075e9
BK
3469 grep -v '^ *+' conftest.er1 >conftest.err
3470 rm -f conftest.er1
3471 cat conftest.err >&5
ff66d28f
PE
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } &&
780028b6
BK
3474 { ac_try='test -z "$ac_cxx_werror_flag"
3475 || test ! -s conftest.err'
ec2075e9
BK
3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477 (eval $ac_try) 2>&5
3478 ac_status=$?
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; } &&
3481 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
3482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3483 (eval $ac_try) 2>&5
3484 ac_status=$?
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }; }; then
3487 ac_cv_prog_cxx_g=yes
3488else
3489 echo "$as_me: failed program was:" >&5
3490sed 's/^/| /' conftest.$ac_ext >&5
3491
3492ac_cv_prog_cxx_g=no
3493fi
ec2075e9 3494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
3495fi
3496echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3497echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3498if test "$ac_test_CXXFLAGS" = set; then
3499 CXXFLAGS=$ac_save_CXXFLAGS
3500elif test $ac_cv_prog_cxx_g = yes; then
3501 if test "$GXX" = yes; then
3502 CXXFLAGS="-g -O2"
3503 else
3504 CXXFLAGS="-g"
3505 fi
3506else
3507 if test "$GXX" = yes; then
3508 CXXFLAGS="-O2"
3509 else
3510 CXXFLAGS=
5780a46b 3511 fi
ff66d28f
PE
3512fi
3513for ac_declaration in \
ec2075e9 3514 '' \
ff66d28f
PE
3515 'extern "C" void std::exit (int) throw (); using std::exit;' \
3516 'extern "C" void std::exit (int); using std::exit;' \
3517 'extern "C" void exit (int) throw ();' \
3518 'extern "C" void exit (int);' \
3519 'void exit (int);'
3520do
3521 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3522/* confdefs.h. */
3523_ACEOF
3524cat confdefs.h >>conftest.$ac_ext
3525cat >>conftest.$ac_ext <<_ACEOF
3526/* end confdefs.h. */
158960ba 3527$ac_declaration
ec2075e9 3528#include <stdlib.h>
ff66d28f
PE
3529int
3530main ()
3531{
3532exit (42);
3533 ;
3534 return 0;
3535}
3536_ACEOF
3537rm -f conftest.$ac_objext
3538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 3539 (eval $ac_compile) 2>conftest.er1
ff66d28f 3540 ac_status=$?
ec2075e9
BK
3541 grep -v '^ *+' conftest.er1 >conftest.err
3542 rm -f conftest.er1
3543 cat conftest.err >&5
ff66d28f
PE
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } &&
780028b6
BK
3546 { ac_try='test -z "$ac_cxx_werror_flag"
3547 || test ! -s conftest.err'
ec2075e9
BK
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 (eval $ac_try) 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; } &&
3553 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
3554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555 (eval $ac_try) 2>&5
3556 ac_status=$?
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); }; }; then
3559 :
3560else
3561 echo "$as_me: failed program was:" >&5
3562sed 's/^/| /' conftest.$ac_ext >&5
b2dad0e3 3563
ff66d28f
PE
3564continue
3565fi
ec2075e9 3566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f 3567 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3568/* confdefs.h. */
3569_ACEOF
3570cat confdefs.h >>conftest.$ac_ext
3571cat >>conftest.$ac_ext <<_ACEOF
3572/* end confdefs.h. */
3573$ac_declaration
3574int
3575main ()
3576{
3577exit (42);
3578 ;
3579 return 0;
3580}
3581_ACEOF
3582rm -f conftest.$ac_objext
3583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 3584 (eval $ac_compile) 2>conftest.er1
ff66d28f 3585 ac_status=$?
ec2075e9
BK
3586 grep -v '^ *+' conftest.er1 >conftest.err
3587 rm -f conftest.er1
3588 cat conftest.err >&5
ff66d28f
PE
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } &&
780028b6
BK
3591 { ac_try='test -z "$ac_cxx_werror_flag"
3592 || test ! -s conftest.err'
ec2075e9
BK
3593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3594 (eval $ac_try) 2>&5
3595 ac_status=$?
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }; } &&
3598 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 (eval $ac_try) 2>&5
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; }; then
3604 break
3605else
3606 echo "$as_me: failed program was:" >&5
3607sed 's/^/| /' conftest.$ac_ext >&5
3608
3609fi
ec2075e9 3610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
3611done
3612rm -f conftest*
3613if test -n "$ac_declaration"; then
3614 echo '#ifdef __cplusplus' >>confdefs.h
3615 echo $ac_declaration >>confdefs.h
3616 echo '#endif' >>confdefs.h
3617fi
3840fa2a 3618
ff66d28f
PE
3619ac_ext=c
3620ac_cpp='$CPP $CPPFLAGS'
3621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3623ac_compiler_gnu=$ac_cv_c_compiler_gnu
16da539b 3624
ff66d28f 3625 CXXFLAGS="$save_CXXFLAGS"
d0941a31
PE
3626
3627
33590f13 3628
f6dda651 3629
ff66d28f
PE
3630 # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
3631 # available). Uncomment the next line to force a particular method.
3632 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3633echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3634LN_S=$as_ln_s
3635if test "$LN_S" = "ln -s"; then
3636 echo "$as_me:$LINENO: result: yes" >&5
3637echo "${ECHO_T}yes" >&6
2f235b6d 3638else
ff66d28f
PE
3639 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3640echo "${ECHO_T}no, using $LN_S" >&6
2f235b6d 3641fi
2f235b6d 3642
ff66d28f 3643 #LN_S='cp -p'
2f235b6d 3644
ff66d28f
PE
3645 if test -n "$ac_tool_prefix"; then
3646 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3647set dummy ${ac_tool_prefix}as; ac_word=$2
3648echo "$as_me:$LINENO: checking for $ac_word" >&5
3649echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3650if test "${ac_cv_prog_AS+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
2f235b6d 3652else
ff66d28f
PE
3653 if test -n "$AS"; then
3654 ac_cv_prog_AS="$AS" # Let the user override the test.
2f235b6d 3655else
ff66d28f
PE
3656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657for as_dir in $PATH
3658do
3659 IFS=$as_save_IFS
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3663 ac_cv_prog_AS="${ac_tool_prefix}as"
3664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 break 2
3666 fi
3667done
3668done
3669
2f235b6d 3670fi
2f235b6d 3671fi
ff66d28f
PE
3672AS=$ac_cv_prog_AS
3673if test -n "$AS"; then
3674 echo "$as_me:$LINENO: result: $AS" >&5
3675echo "${ECHO_T}$AS" >&6
2f235b6d 3676else
ff66d28f
PE
3677 echo "$as_me:$LINENO: result: no" >&5
3678echo "${ECHO_T}no" >&6
2f235b6d
PE
3679fi
3680
ff66d28f
PE
3681fi
3682if test -z "$ac_cv_prog_AS"; then
3683 ac_ct_AS=$AS
3684 # Extract the first word of "as", so it can be a program name with args.
3685set dummy as; ac_word=$2
3686echo "$as_me:$LINENO: checking for $ac_word" >&5
3687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3688if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3690else
3691 if test -n "$ac_ct_AS"; then
3692 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3693else
3694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695for as_dir in $PATH
3696do
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3701 ac_cv_prog_ac_ct_AS="as"
3702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3703 break 2
3704 fi
3705done
3706done
2f235b6d 3707
ff66d28f
PE
3708fi
3709fi
3710ac_ct_AS=$ac_cv_prog_ac_ct_AS
3711if test -n "$ac_ct_AS"; then
3712 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3713echo "${ECHO_T}$ac_ct_AS" >&6
3714else
3715 echo "$as_me:$LINENO: result: no" >&5
3716echo "${ECHO_T}no" >&6
3717fi
2f235b6d 3718
ff66d28f
PE
3719 AS=$ac_ct_AS
3720else
3721 AS="$ac_cv_prog_AS"
2f235b6d 3722fi
2f235b6d 3723
ff66d28f
PE
3724 if test -n "$ac_tool_prefix"; then
3725 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3726set dummy ${ac_tool_prefix}ar; ac_word=$2
3727echo "$as_me:$LINENO: checking for $ac_word" >&5
3728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3729if test "${ac_cv_prog_AR+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3731else
3732 if test -n "$AR"; then
3733 ac_cv_prog_AR="$AR" # Let the user override the test.
3734else
3735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736for as_dir in $PATH
3737do
3738 IFS=$as_save_IFS
3739 test -z "$as_dir" && as_dir=.
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3742 ac_cv_prog_AR="${ac_tool_prefix}ar"
3743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 break 2
3745 fi
3746done
3747done
2f235b6d 3748
ff66d28f
PE
3749fi
3750fi
3751AR=$ac_cv_prog_AR
3752if test -n "$AR"; then
3753 echo "$as_me:$LINENO: result: $AR" >&5
3754echo "${ECHO_T}$AR" >&6
3755else
3756 echo "$as_me:$LINENO: result: no" >&5
3757echo "${ECHO_T}no" >&6
3758fi
2f235b6d 3759
ff66d28f
PE
3760fi
3761if test -z "$ac_cv_prog_AR"; then
3762 ac_ct_AR=$AR
3763 # Extract the first word of "ar", so it can be a program name with args.
3764set dummy ar; ac_word=$2
3765echo "$as_me:$LINENO: checking for $ac_word" >&5
3766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3767if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3769else
3770 if test -n "$ac_ct_AR"; then
3771 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3772else
3773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774for as_dir in $PATH
3775do
3776 IFS=$as_save_IFS
3777 test -z "$as_dir" && as_dir=.
3778 for ac_exec_ext in '' $ac_executable_extensions; do
3779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3780 ac_cv_prog_ac_ct_AR="ar"
3781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3782 break 2
3783 fi
3784done
3785done
2f235b6d 3786
ff66d28f
PE
3787fi
3788fi
3789ac_ct_AR=$ac_cv_prog_ac_ct_AR
3790if test -n "$ac_ct_AR"; then
3791 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3792echo "${ECHO_T}$ac_ct_AR" >&6
2f235b6d 3793else
ff66d28f
PE
3794 echo "$as_me:$LINENO: result: no" >&5
3795echo "${ECHO_T}no" >&6
2f235b6d
PE
3796fi
3797
ff66d28f 3798 AR=$ac_ct_AR
2f235b6d 3799else
ff66d28f 3800 AR="$ac_cv_prog_AR"
2f235b6d
PE
3801fi
3802
ff66d28f
PE
3803 if test -n "$ac_tool_prefix"; then
3804 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3805set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3806echo "$as_me:$LINENO: checking for $ac_word" >&5
3807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3808if test "${ac_cv_prog_RANLIB+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810else
3811 if test -n "$RANLIB"; then
3812 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3813else
3814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815for as_dir in $PATH
3816do
3817 IFS=$as_save_IFS
3818 test -z "$as_dir" && as_dir=.
3819 for ac_exec_ext in '' $ac_executable_extensions; do
3820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3821 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3823 break 2
3824 fi
3825done
3826done
3827
3828fi
3829fi
3830RANLIB=$ac_cv_prog_RANLIB
3831if test -n "$RANLIB"; then
3832 echo "$as_me:$LINENO: result: $RANLIB" >&5
3833echo "${ECHO_T}$RANLIB" >&6
2f235b6d 3834else
ff66d28f
PE
3835 echo "$as_me:$LINENO: result: no" >&5
3836echo "${ECHO_T}no" >&6
2f235b6d
PE
3837fi
3838
ff66d28f
PE
3839fi
3840if test -z "$ac_cv_prog_RANLIB"; then
3841 ac_ct_RANLIB=$RANLIB
3842 # Extract the first word of "ranlib", so it can be a program name with args.
3843set dummy ranlib; ac_word=$2
3844echo "$as_me:$LINENO: checking for $ac_word" >&5
3845echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3846if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848else
3849 if test -n "$ac_ct_RANLIB"; then
3850 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2f235b6d 3851else
ff66d28f
PE
3852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853for as_dir in $PATH
3854do
3855 IFS=$as_save_IFS
3856 test -z "$as_dir" && as_dir=.
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3859 ac_cv_prog_ac_ct_RANLIB="ranlib"
3860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3861 break 2
3862 fi
3863done
3864done
3865
3866 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
3867fi
3868fi
3869ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3870if test -n "$ac_ct_RANLIB"; then
3871 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3872echo "${ECHO_T}$ac_ct_RANLIB" >&6
3873else
3874 echo "$as_me:$LINENO: result: no" >&5
3875echo "${ECHO_T}no" >&6
2f235b6d
PE
3876fi
3877
ff66d28f 3878 RANLIB=$ac_ct_RANLIB
2f235b6d 3879else
ff66d28f 3880 RANLIB="$ac_cv_prog_RANLIB"
2f235b6d
PE
3881fi
3882
3883
ff66d28f
PE
3884 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3885echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3886 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3887if test "${enable_maintainer_mode+set}" = set; then
3888 enableval="$enable_maintainer_mode"
3889 USE_MAINTAINER_MODE=$enableval
3890else
3891 USE_MAINTAINER_MODE=no
3892fi;
3893 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3894echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2f235b6d
PE
3895
3896
ff66d28f
PE
3897if test $USE_MAINTAINER_MODE = yes; then
3898 MAINTAINER_MODE_TRUE=
3899 MAINTAINER_MODE_FALSE='#'
3900else
3901 MAINTAINER_MODE_TRUE='#'
3902 MAINTAINER_MODE_FALSE=
3903fi
3904
3905 MAINT=$MAINTAINER_MODE_TRUE
2f235b6d 3906
5780a46b 3907
f4c79fef 3908
92eabea2
PE
3909 # Set up safe default values for all subsequent AM_CONDITIONAL tests
3910 # which are themselves conditionally expanded.
3911 ## (Right now, this only matters for enable_wchar_t, but nothing prevents
3912 ## other macros from doing the same. This should be automated.) -pme
ff66d28f 3913 need_libmath=no
ff66d28f 3914
464aea98
JM
3915 # Check for uClibc since Linux platforms use different configuration
3916 # directories depending on the C library in use.
3917 cat >conftest.$ac_ext <<_ACEOF
3918/* confdefs.h. */
3919_ACEOF
3920cat confdefs.h >>conftest.$ac_ext
3921cat >>conftest.$ac_ext <<_ACEOF
3922/* end confdefs.h. */
3923
3924 #include <stdio.h>
3925 #if __UCLIBC__
3926 _using_uclibc
3927 #endif
3928
3929_ACEOF
3930if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3931 $EGREP "_using_uclibc" >/dev/null 2>&1; then
3932 uclibc=yes
3933else
3934 uclibc=no
3935fi
3936rm -f conftest*
3937
3938
ff66d28f
PE
3939 # Find platform-specific directories containing configuration info.
3940 # Also possibly modify flags used elsewhere, as needed by the platform.
3941
3942 . $glibcxx_srcdir/configure.host
3943 { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5
3944echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
3945 { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5
3946echo "$as_me: OS config directory is $os_include_dir" >&6;}
3947
3948
3949
ff66d28f 3950
b2dad0e3
BK
3951# Check whether --enable-shared or --disable-shared was given.
3952if test "${enable_shared+set}" = set; then
3953 enableval="$enable_shared"
3954 p=${PACKAGE-default}
c21b6f87 3955case $enableval in
b2dad0e3
BK
3956yes) enable_shared=yes ;;
3957no) enable_shared=no ;;
3958*)
3959 enable_shared=no
3960 # Look at the argument we got. We use all the common list separators.
3961 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3962 for pkg in $enableval; do
3963 if test "X$pkg" = "X$p"; then
3964 enable_shared=yes
3965 fi
3966 done
3967 IFS="$ac_save_ifs"
3968 ;;
3969esac
3970else
3971 enable_shared=yes
ff66d28f 3972fi;
b2dad0e3
BK
3973# Check whether --enable-static or --disable-static was given.
3974if test "${enable_static+set}" = set; then
3975 enableval="$enable_static"
3976 p=${PACKAGE-default}
c21b6f87 3977case $enableval in
b2dad0e3
BK
3978yes) enable_static=yes ;;
3979no) enable_static=no ;;
3980*)
3981 enable_static=no
3982 # Look at the argument we got. We use all the common list separators.
3983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3984 for pkg in $enableval; do
3985 if test "X$pkg" = "X$p"; then
3986 enable_static=yes
3987 fi
3988 done
3989 IFS="$ac_save_ifs"
3990 ;;
3991esac
3992else
3993 enable_static=yes
ff66d28f 3994fi;
b2dad0e3
BK
3995# Check whether --enable-fast-install or --disable-fast-install was given.
3996if test "${enable_fast_install+set}" = set; then
3997 enableval="$enable_fast_install"
3998 p=${PACKAGE-default}
c21b6f87 3999case $enableval in
b2dad0e3
BK
4000yes) enable_fast_install=yes ;;
4001no) enable_fast_install=no ;;
4002*)
4003 enable_fast_install=no
4004 # Look at the argument we got. We use all the common list separators.
4005 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4006 for pkg in $enableval; do
4007 if test "X$pkg" = "X$p"; then
4008 enable_fast_install=yes
4009 fi
4010 done
4011 IFS="$ac_save_ifs"
4012 ;;
4013esac
4014else
4015 enable_fast_install=yes
ff66d28f 4016fi;
b2dad0e3 4017
b2dad0e3
BK
4018# Check whether --with-gnu-ld or --without-gnu-ld was given.
4019if test "${with_gnu_ld+set}" = set; then
4020 withval="$with_gnu_ld"
4021 test "$withval" = no || with_gnu_ld=yes
4022else
4023 with_gnu_ld=no
ff66d28f 4024fi;
b2dad0e3 4025ac_prog=ld
c21b6f87 4026if test "$GCC" = yes; then
b2dad0e3 4027 # Check if gcc -print-prog-name=ld gives a path.
ff66d28f
PE
4028 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4029echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3df64633
AO
4030 case $host in
4031 *-*-mingw*)
4032 # gcc leaves a trailing carriage return which upsets mingw
4033 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4034 *)
4035 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4036 esac
c21b6f87 4037 case $ac_prog in
b2dad0e3 4038 # Accept absolute paths.
3840fa2a 4039 [\\/]* | [A-Za-z]:[\\/]*)
b2dad0e3
BK
4040 re_direlt='/[^/][^/]*/\.\./'
4041 # Canonicalize the path of ld
4042 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4043 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4044 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4045 done
4046 test -z "$LD" && LD="$ac_prog"
4047 ;;
4048 "")
4049 # If it fails, then pretend we aren't using GCC.
4050 ac_prog=ld
4051 ;;
4052 *)
4053 # If it is relative, then search for the first ld in PATH.
4054 with_gnu_ld=unknown
4055 ;;
4056 esac
4057elif test "$with_gnu_ld" = yes; then
ff66d28f
PE
4058 echo "$as_me:$LINENO: checking for GNU ld" >&5
4059echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
b2dad0e3 4060else
ff66d28f
PE
4061 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4062echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
b2dad0e3 4063fi
ff66d28f
PE
4064if test "${lt_cv_path_LD+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3
BK
4066else
4067 if test -z "$LD"; then
3840fa2a 4068 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2dad0e3
BK
4069 for ac_dir in $PATH; do
4070 test -z "$ac_dir" && ac_dir=.
3840fa2a 4071 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
c21b6f87 4072 lt_cv_path_LD="$ac_dir/$ac_prog"
b2dad0e3
BK
4073 # Check to see if the program is GNU ld. I'd rather use --version,
4074 # but apparently some GNU ld's only accept -v.
4075 # Break only if it was the GNU/non-GNU ld that we prefer.
c21b6f87 4076 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
b2dad0e3
BK
4077 test "$with_gnu_ld" != no && break
4078 else
4079 test "$with_gnu_ld" != yes && break
4080 fi
4081 fi
4082 done
4083 IFS="$ac_save_ifs"
4084else
c21b6f87 4085 lt_cv_path_LD="$LD" # Let the user override the test with a path.
b2dad0e3
BK
4086fi
4087fi
4088
c21b6f87 4089LD="$lt_cv_path_LD"
b2dad0e3 4090if test -n "$LD"; then
ff66d28f
PE
4091 echo "$as_me:$LINENO: result: $LD" >&5
4092echo "${ECHO_T}$LD" >&6
b2dad0e3 4093else
ff66d28f
PE
4094 echo "$as_me:$LINENO: result: no" >&5
4095echo "${ECHO_T}no" >&6
b2dad0e3 4096fi
ff66d28f
PE
4097test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4098echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4099 { (exit 1); exit 1; }; }
4100echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4101echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4102if test "${lt_cv_prog_gnu_ld+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3
BK
4104else
4105 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4106if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
c21b6f87 4107 lt_cv_prog_gnu_ld=yes
b2dad0e3 4108else
c21b6f87 4109 lt_cv_prog_gnu_ld=no
b2dad0e3
BK
4110fi
4111fi
ff66d28f
PE
4112echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4113echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
c21b6f87 4114with_gnu_ld=$lt_cv_prog_gnu_ld
3df64633 4115
b2dad0e3 4116
ff66d28f
PE
4117echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4118echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4119if test "${lt_cv_ld_reload_flag+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633
AO
4121else
4122 lt_cv_ld_reload_flag='-r'
4123fi
ff66d28f
PE
4124echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4125echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3df64633
AO
4126reload_flag=$lt_cv_ld_reload_flag
4127test -n "$reload_flag" && reload_flag=" $reload_flag"
b2dad0e3 4128
ff66d28f
PE
4129echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4130echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4131if test "${lt_cv_path_NM+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3
BK
4133else
4134 if test -n "$NM"; then
4135 # Let the user override the test.
c21b6f87 4136 lt_cv_path_NM="$NM"
b2dad0e3 4137else
3840fa2a 4138 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
b2dad0e3
BK
4139 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4140 test -z "$ac_dir" && ac_dir=.
3df64633
AO
4141 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4142 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
b2dad0e3
BK
4143 # Check to see if the nm accepts a BSD-compat flag.
4144 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4145 # nm: unknown option "B" ignored
6d93bca4
AO
4146 # Tru64's nm complains that /dev/null is an invalid object file
4147 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
c21b6f87 4148 lt_cv_path_NM="$tmp_nm -B"
b2dad0e3 4149 break
3df64633 4150 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
c21b6f87 4151 lt_cv_path_NM="$tmp_nm -p"
b2dad0e3
BK
4152 break
4153 else
c21b6f87 4154 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
b2dad0e3
BK
4155 continue # so that we can try to find one that supports BSD flags
4156 fi
4157 fi
4158 done
4159 IFS="$ac_save_ifs"
c21b6f87 4160 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
b2dad0e3
BK
4161fi
4162fi
4163
c21b6f87 4164NM="$lt_cv_path_NM"
ff66d28f
PE
4165echo "$as_me:$LINENO: result: $NM" >&5
4166echo "${ECHO_T}$NM" >&6
b2dad0e3 4167
ff66d28f
PE
4168echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4169echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4170if test "${lt_cv_deplibs_check_method+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 4172else
3dd7094e 4173 lt_cv_file_magic_cmd='$MAGIC_CMD'
3df64633
AO
4174lt_cv_file_magic_test_file=
4175lt_cv_deplibs_check_method='unknown'
4176# Need to set the preceding variable on all platforms that support
4177# interlibrary dependencies.
4178# 'none' -- dependencies not supported.
4179# `unknown' -- same as none, but documents that we really don't know.
4180# 'pass_all' -- all dependencies passed with no checks.
4181# 'test_compile' -- check by making test program.
4182# 'file_magic [regex]' -- check by looking for files in library path
4183# which responds to the $file_magic_cmd with a given egrep regex.
4184# If you have `file' or equivalent on your system and you're not sure
4185# whether `pass_all' will *always* work, you probably want this one.
4186
c21b6f87
PE
4187case $host_os in
4188aix*)
3df64633
AO
4189 lt_cv_deplibs_check_method=pass_all
4190 ;;
4191
4192beos*)
4193 lt_cv_deplibs_check_method=pass_all
4194 ;;
4195
4196bsdi4*)
c21b6f87
PE
4197 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4198 lt_cv_file_magic_cmd='/usr/bin/file -L'
3df64633
AO
4199 lt_cv_file_magic_test_file=/shlib/libc.so
4200 ;;
4201
3dd7094e 4202cygwin* | mingw* |pw32*)
3df64633 4203 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3dd7094e 4204 lt_cv_file_magic_cmd='$OBJDUMP -f'
3df64633
AO
4205 ;;
4206
c21b6f87 4207darwin* | rhapsody*)
29d4adf4 4208 # this will be overwritten by pass_all, but leave it in just in case
c21b6f87 4209 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
47e982b2
BK
4210 lt_cv_file_magic_cmd='/usr/bin/file -L'
4211 case "$host_os" in
4212 rhapsody* | darwin1.012)
4213 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4214 ;;
4215 *) # Darwin 1.3 on
4216 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4217 ;;
4218 esac
29d4adf4 4219 lt_cv_deplibs_check_method=pass_all
c21b6f87
PE
4220 ;;
4221
dc7c62ae 4222freebsd* | kfreebsd*-gnu)
3df64633 4223 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
c21b6f87 4224 case $host_cpu in
3df64633 4225 i*86 )
6d93bca4
AO
4226 # Not sure whether the presence of OpenBSD here was a mistake.
4227 # Let's accept both of them until this is cleared up.
c21b6f87
PE
4228 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4229 lt_cv_file_magic_cmd=/usr/bin/file
3df64633
AO
4230 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4231 ;;
4232 esac
4233 else
4234 lt_cv_deplibs_check_method=pass_all
4235 fi
4236 ;;
4237
4238gnu*)
4239 lt_cv_deplibs_check_method=pass_all
4240 ;;
4241
c21b6f87 4242hpux10.20*|hpux11*)
38cca750
BK
4243 case $host_cpu in
4244 hppa*)
4245 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4246 lt_cv_file_magic_cmd=/usr/bin/file
4247 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4248 ;;
4249 ia64*)
4250 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4251 lt_cv_file_magic_cmd=/usr/bin/file
4252 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4253 ;;
4254 esac
3df64633
AO
4255 ;;
4256
4257irix5* | irix6*)
c21b6f87 4258 case $host_os in
3df64633
AO
4259 irix5*)
4260 # this will be overridden with pass_all, but let us keep it just in case
4261 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4262 ;;
4263 *)
c21b6f87 4264 case $LD in
3df64633
AO
4265 *-32|*"-32 ") libmagic=32-bit;;
4266 *-n32|*"-n32 ") libmagic=N32;;
4267 *-64|*"-64 ") libmagic=64-bit;;
4268 *) libmagic=never-match;;
4269 esac
4270 # this will be overridden with pass_all, but let us keep it just in case
c21b6f87
PE
4271 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4272 ;;
3df64633
AO
4273 esac
4274 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4275 lt_cv_deplibs_check_method=pass_all
4276 ;;
4277
4278# This must be Linux ELF.
6d93bca4 4279linux-gnu*)
2c92e90f 4280 lt_cv_deplibs_check_method=pass_all
3df64633
AO
4281 ;;
4282
dc7c62ae 4283netbsd* | knetbsd*-gnu)
c21b6f87 4284 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
47e982b2 4285 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3df64633 4286 else
47e982b2 4287 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3df64633 4288 fi
c21b6f87
PE
4289 ;;
4290
4291newsos6)
4292 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4293 lt_cv_file_magic_cmd=/usr/bin/file
4294 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3df64633
AO
4295 ;;
4296
4297osf3* | osf4* | osf5*)
4298 # this will be overridden with pass_all, but let us keep it just in case
4299 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4300 lt_cv_file_magic_test_file=/shlib/libc.so
4301 lt_cv_deplibs_check_method=pass_all
4302 ;;
4303
4304sco3.2v5*)
4305 lt_cv_deplibs_check_method=pass_all
4306 ;;
4307
4308solaris*)
4309 lt_cv_deplibs_check_method=pass_all
4310 lt_cv_file_magic_test_file=/lib/libc.so
4311 ;;
4312
bfa1e6b1
BK
4313sysv5uw[78]* | sysv4*uw2*)
4314 lt_cv_deplibs_check_method=pass_all
4315 ;;
4316
3df64633 4317sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
c21b6f87 4318 case $host_vendor in
3df64633
AO
4319 ncr)
4320 lt_cv_deplibs_check_method=pass_all
4321 ;;
4322 motorola)
c21b6f87
PE
4323 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]'
4324 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3df64633
AO
4325 ;;
4326 esac
4327 ;;
4328esac
4329
4330fi
ff66d28f
PE
4331echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4332echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3df64633
AO
4333file_magic_cmd=$lt_cv_file_magic_cmd
4334deplibs_check_method=$lt_cv_deplibs_check_method
4335
3df64633 4336
ff66d28f 4337
3df64633
AO
4338
4339# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4340
6dab073b
MS
4341# find the maximum length of command line arguments
4342echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4343echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4344if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4346else
4347 i=0
4348 teststring="ABCD"
4349
4350 case $build_os in
4351 msdosdjgpp*)
4352 # On DJGPP, this test can blow up pretty badly due to problems in libc
4353 # (any single argument exceeding 2000 bytes causes a buffer overrun
4354 # during glob expansion). Even if it were fixed, the result of this
4355 # check would be larger than it should be.
4356 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4357 ;;
4358
4359 cygwin* | mingw*)
4360 # On Win9x/ME, this test blows up -- it succeeds, but takes
4361 # about 5 minutes as the teststring grows exponentially.
4362 # Worse, since 9x/ME are not pre-emptively multitasking,
4363 # you end up with a "frozen" computer, even though with patience
4364 # the test eventually succeeds (with a max line length of 256k).
4365 # Instead, let's just punt: use the minimum linelength reported by
4366 # all of the supported platforms: 8192 (on NT/2K/XP).
4367 lt_cv_sys_max_cmd_len=8192;
4368 ;;
4369
4370 amigaos*)
4371 # On AmigaOS with pdksh, this test takes hours, literally.
4372 # So we just punt and use a minimum line length of 8192.
4373 lt_cv_sys_max_cmd_len=8192;
4374 ;;
4375
4376 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4377 # This has been around since 386BSD, at least. Likely further.
4378 if test -x /sbin/sysctl; then
4379 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4380 elif test -x /usr/sbin/sysctl; then
4381 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4382 else
4383 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4384 fi
4385 # And add a safety zone
4386 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4387 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4388 ;;
4389 esac
4390
4391fi
4392
f4c767fd 4393if test -n "$lt_cv_sys_max_cmd_len" ; then
6dab073b
MS
4394 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4395echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4396else
4397 echo "$as_me:$LINENO: result: none" >&5
4398echo "${ECHO_T}none" >&6
4399fi
4400
4401
3df64633 4402# Only perform the check for file, if the check method requires it
c21b6f87 4403case $deplibs_check_method in
3df64633 4404file_magic*)
3dd7094e 4405 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
ff66d28f
PE
4406 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4407echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4408if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 4410else
c21b6f87 4411 case $MAGIC_CMD in
3df64633 4412 /*)
3dd7094e 4413 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3df64633
AO
4414 ;;
4415 ?:/*)
3dd7094e 4416 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3df64633
AO
4417 ;;
4418 *)
3dd7094e 4419 ac_save_MAGIC_CMD="$MAGIC_CMD"
3df64633
AO
4420 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4421 ac_dummy="/usr/bin:$PATH"
4422 for ac_dir in $ac_dummy; do
4423 test -z "$ac_dir" && ac_dir=.
4424 if test -f $ac_dir/${ac_tool_prefix}file; then
3dd7094e 4425 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3df64633 4426 if test -n "$file_magic_test_file"; then
c21b6f87 4427 case $deplibs_check_method in
3df64633
AO
4428 "file_magic "*)
4429 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3dd7094e 4430 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3df64633
AO
4431 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4432 egrep "$file_magic_regex" > /dev/null; then
4433 :
4434 else
4435 cat <<EOF 1>&2
4436
4437*** Warning: the command libtool uses to detect shared libraries,
4438*** $file_magic_cmd, produces output that libtool cannot recognize.
4439*** The result is that libtool may fail to recognize shared libraries
4440*** as such. This will affect the creation of libtool libraries that
4441*** depend on shared libraries, but programs linked with such libtool
4442*** libraries will work regardless of this problem. Nevertheless, you
4443*** may want to report the problem to your system manager and/or to
4444*** bug-libtool@gnu.org
4445
4446EOF
4447 fi ;;
4448 esac
4449 fi
4450 break
4451 fi
4452 done
4453 IFS="$ac_save_ifs"
3dd7094e 4454 MAGIC_CMD="$ac_save_MAGIC_CMD"
3df64633
AO
4455 ;;
4456esac
4457fi
4458
3dd7094e
AO
4459MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4460if test -n "$MAGIC_CMD"; then
ff66d28f
PE
4461 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4462echo "${ECHO_T}$MAGIC_CMD" >&6
3df64633 4463else
ff66d28f
PE
4464 echo "$as_me:$LINENO: result: no" >&5
4465echo "${ECHO_T}no" >&6
3df64633
AO
4466fi
4467
3dd7094e 4468if test -z "$lt_cv_path_MAGIC_CMD"; then
3df64633 4469 if test -n "$ac_tool_prefix"; then
ff66d28f
PE
4470 echo "$as_me:$LINENO: checking for file" >&5
4471echo $ECHO_N "checking for file... $ECHO_C" >&6
4472if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 4474else
c21b6f87 4475 case $MAGIC_CMD in
3df64633 4476 /*)
3dd7094e 4477 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3df64633
AO
4478 ;;
4479 ?:/*)
3dd7094e 4480 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3df64633
AO
4481 ;;
4482 *)
3dd7094e 4483 ac_save_MAGIC_CMD="$MAGIC_CMD"
3df64633
AO
4484 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4485 ac_dummy="/usr/bin:$PATH"
4486 for ac_dir in $ac_dummy; do
4487 test -z "$ac_dir" && ac_dir=.
4488 if test -f $ac_dir/file; then
3dd7094e 4489 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3df64633 4490 if test -n "$file_magic_test_file"; then
c21b6f87 4491 case $deplibs_check_method in
3df64633
AO
4492 "file_magic "*)
4493 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3dd7094e 4494 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3df64633
AO
4495 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4496 egrep "$file_magic_regex" > /dev/null; then
4497 :
4498 else
4499 cat <<EOF 1>&2
4500
4501*** Warning: the command libtool uses to detect shared libraries,
4502*** $file_magic_cmd, produces output that libtool cannot recognize.
4503*** The result is that libtool may fail to recognize shared libraries
4504*** as such. This will affect the creation of libtool libraries that
4505*** depend on shared libraries, but programs linked with such libtool
4506*** libraries will work regardless of this problem. Nevertheless, you
4507*** may want to report the problem to your system manager and/or to
4508*** bug-libtool@gnu.org
4509
4510EOF
4511 fi ;;
4512 esac
4513 fi
4514 break
4515 fi
4516 done
4517 IFS="$ac_save_ifs"
3dd7094e 4518 MAGIC_CMD="$ac_save_MAGIC_CMD"
3df64633
AO
4519 ;;
4520esac
4521fi
4522
3dd7094e
AO
4523MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4524if test -n "$MAGIC_CMD"; then
ff66d28f
PE
4525 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4526echo "${ECHO_T}$MAGIC_CMD" >&6
3df64633 4527else
ff66d28f
PE
4528 echo "$as_me:$LINENO: result: no" >&5
4529echo "${ECHO_T}no" >&6
3df64633
AO
4530fi
4531
4532 else
3dd7094e 4533 MAGIC_CMD=:
3df64633
AO
4534 fi
4535fi
4536
4537 fi
4538 ;;
4539esac
4540
ff66d28f
PE
4541if test -n "$ac_tool_prefix"; then
4542 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3df64633 4543set dummy ${ac_tool_prefix}ranlib; ac_word=$2
ff66d28f
PE
4544echo "$as_me:$LINENO: checking for $ac_word" >&5
4545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4546if test "${ac_cv_prog_RANLIB+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633
AO
4548else
4549 if test -n "$RANLIB"; then
4550 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4551else
ff66d28f
PE
4552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553for as_dir in $PATH
4554do
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4559 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 break 2
4562 fi
4563done
4564done
4565
3df64633
AO
4566fi
4567fi
ff66d28f 4568RANLIB=$ac_cv_prog_RANLIB
3df64633 4569if test -n "$RANLIB"; then
ff66d28f
PE
4570 echo "$as_me:$LINENO: result: $RANLIB" >&5
4571echo "${ECHO_T}$RANLIB" >&6
3df64633 4572else
ff66d28f
PE
4573 echo "$as_me:$LINENO: result: no" >&5
4574echo "${ECHO_T}no" >&6
3df64633
AO
4575fi
4576
ff66d28f 4577fi
3df64633 4578if test -z "$ac_cv_prog_RANLIB"; then
ff66d28f 4579 ac_ct_RANLIB=$RANLIB
3df64633
AO
4580 # Extract the first word of "ranlib", so it can be a program name with args.
4581set dummy ranlib; ac_word=$2
ff66d28f
PE
4582echo "$as_me:$LINENO: checking for $ac_word" >&5
4583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4584if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 4586else
ff66d28f
PE
4587 if test -n "$ac_ct_RANLIB"; then
4588 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3df64633 4589else
ff66d28f
PE
4590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591for as_dir in $PATH
4592do
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597 ac_cv_prog_ac_ct_RANLIB="ranlib"
4598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4600 fi
4601done
4602done
4603
4604 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3df64633
AO
4605fi
4606fi
ff66d28f
PE
4607ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4608if test -n "$ac_ct_RANLIB"; then
4609 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4610echo "${ECHO_T}$ac_ct_RANLIB" >&6
3df64633 4611else
ff66d28f
PE
4612 echo "$as_me:$LINENO: result: no" >&5
4613echo "${ECHO_T}no" >&6
3df64633
AO
4614fi
4615
ff66d28f 4616 RANLIB=$ac_ct_RANLIB
3df64633 4617else
ff66d28f 4618 RANLIB="$ac_cv_prog_RANLIB"
3df64633
AO
4619fi
4620
ff66d28f
PE
4621if test -n "$ac_tool_prefix"; then
4622 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3df64633 4623set dummy ${ac_tool_prefix}strip; ac_word=$2
ff66d28f
PE
4624echo "$as_me:$LINENO: checking for $ac_word" >&5
4625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4626if test "${ac_cv_prog_STRIP+set}" = set; then
4627 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633
AO
4628else
4629 if test -n "$STRIP"; then
4630 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4631else
ff66d28f
PE
4632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633for as_dir in $PATH
4634do
4635 IFS=$as_save_IFS
4636 test -z "$as_dir" && as_dir=.
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4639 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 break 2
4642 fi
4643done
4644done
4645
3df64633
AO
4646fi
4647fi
ff66d28f 4648STRIP=$ac_cv_prog_STRIP
3df64633 4649if test -n "$STRIP"; then
ff66d28f
PE
4650 echo "$as_me:$LINENO: result: $STRIP" >&5
4651echo "${ECHO_T}$STRIP" >&6
3df64633 4652else
ff66d28f
PE
4653 echo "$as_me:$LINENO: result: no" >&5
4654echo "${ECHO_T}no" >&6
3df64633
AO
4655fi
4656
ff66d28f 4657fi
3df64633 4658if test -z "$ac_cv_prog_STRIP"; then
ff66d28f 4659 ac_ct_STRIP=$STRIP
3df64633
AO
4660 # Extract the first word of "strip", so it can be a program name with args.
4661set dummy strip; ac_word=$2
ff66d28f
PE
4662echo "$as_me:$LINENO: checking for $ac_word" >&5
4663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4664if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 4666else
ff66d28f
PE
4667 if test -n "$ac_ct_STRIP"; then
4668 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3df64633 4669else
ff66d28f
PE
4670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671for as_dir in $PATH
4672do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677 ac_cv_prog_ac_ct_STRIP="strip"
4678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4680 fi
4681done
4682done
4683
4684 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3df64633
AO
4685fi
4686fi
ff66d28f
PE
4687ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4688if test -n "$ac_ct_STRIP"; then
4689 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4690echo "${ECHO_T}$ac_ct_STRIP" >&6
3df64633 4691else
ff66d28f
PE
4692 echo "$as_me:$LINENO: result: no" >&5
4693echo "${ECHO_T}no" >&6
3df64633
AO
4694fi
4695
ff66d28f 4696 STRIP=$ac_ct_STRIP
3df64633 4697else
ff66d28f 4698 STRIP="$ac_cv_prog_STRIP"
3df64633
AO
4699fi
4700
b2dad0e3 4701
b2dad0e3
BK
4702# Check for any special flags to pass to ltconfig.
4703libtool_flags="--cache-file=$cache_file"
4704test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4705test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4706test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
c21b6f87
PE
4707test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4708test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
ff66d28f 4709
3840fa2a
BK
4710
4711# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4712if test "${enable_libtool_lock+set}" = set; then
4713 enableval="$enable_libtool_lock"
3840fa2a 4714
ff66d28f 4715fi;
3840fa2a
BK
4716test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4717test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
b2dad0e3 4718
ff66d28f 4719
3df64633
AO
4720# Check whether --with-pic or --without-pic was given.
4721if test "${with_pic+set}" = set; then
4722 withval="$with_pic"
4723 pic_mode="$withval"
4724else
4725 pic_mode=default
ff66d28f 4726fi;
3df64633
AO
4727test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4728test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4729
b2dad0e3
BK
4730# Some flags need to be propagated to the compiler or linker for good
4731# libtool support.
c21b6f87 4732case $host in
b2dad0e3
BK
4733*-*-irix6*)
4734 # Find out which ABI we are using.
464aea98 4735 echo '#line 4735 "configure"' > conftest.$ac_ext
ff66d28f
PE
4736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4737 (eval $ac_compile) 2>&5
4738 ac_status=$?
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); }; then
3a15abf1
BK
4741 if test "$lt_cv_prog_gnu_ld" = yes; then
4742 case `/usr/bin/file conftest.$ac_objext` in
4743 *32-bit*)
4744 LD="${LD-ld} -melf32bsmip"
4745 ;;
4746 *N32*)
4747 LD="${LD-ld} -melf32bmipn32"
4748 ;;
4749 *64-bit*)
4750 LD="${LD-ld} -melf64bmip"
4751 ;;
4752 esac
4753 else
c21b6f87 4754 case `/usr/bin/file conftest.$ac_objext` in
b2dad0e3
BK
4755 *32-bit*)
4756 LD="${LD-ld} -32"
4757 ;;
4758 *N32*)
4759 LD="${LD-ld} -n32"
4760 ;;
4761 *64-bit*)
4762 LD="${LD-ld} -64"
4763 ;;
4764 esac
3a15abf1 4765 fi
b2dad0e3
BK
4766 fi
4767 rm -rf conftest*
4768 ;;
4769
38cca750
BK
4770ia64-*-hpux*)
4771 # Find out which ABI we are using.
4772 echo 'int i;' > conftest.$ac_ext
ff66d28f
PE
4773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774 (eval $ac_compile) 2>&5
4775 ac_status=$?
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); }; then
38cca750
BK
4778 case "`/usr/bin/file conftest.o`" in
4779 *ELF-32*)
4780 HPUX_IA64_MODE="32"
4781 ;;
4782 *ELF-64*)
4783 HPUX_IA64_MODE="64"
4784 ;;
4785 esac
4786 fi
4787 rm -rf conftest*
4788 ;;
4789
162c7cd9
SW
4790x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4791 # Find out which ABI we are using.
4792 echo 'int i;' > conftest.$ac_ext
ff66d28f
PE
4793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4794 (eval $ac_compile) 2>&5
4795 ac_status=$?
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }; then
162c7cd9
SW
4798 case "`/usr/bin/file conftest.o`" in
4799 *32-bit*)
4800 case $host in
4801 x86_64-*linux*)
4802 LD="${LD-ld} -m elf_i386"
4803 ;;
e517f636 4804 ppc64-*linux*|powerpc64-*linux*)
162c7cd9
SW
4805 LD="${LD-ld} -m elf32ppclinux"
4806 ;;
4807 s390x-*linux*)
4808 LD="${LD-ld} -m elf_s390"
4809 ;;
4810 sparc64-*linux*)
4811 LD="${LD-ld} -m elf32_sparc"
4812 ;;
4813 esac
4814 ;;
4815 *64-bit*)
4816 case $host in
4817 x86_64-*linux*)
4818 LD="${LD-ld} -m elf_x86_64"
4819 ;;
4820 ppc*-*linux*|powerpc*-*linux*)
4821 LD="${LD-ld} -m elf64ppc"
4822 ;;
4823 s390*-*linux*)
4824 LD="${LD-ld} -m elf64_s390"
4825 ;;
4826 sparc*-*linux*)
4827 LD="${LD-ld} -m elf64_sparc"
4828 ;;
4829 esac
4830 ;;
4831 esac
4832 fi
4833 rm -rf conftest*
4834 ;;
4835
b2dad0e3
BK
4836*-*-sco3.2v5*)
4837 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4838 SAVE_CFLAGS="$CFLAGS"
4839 CFLAGS="$CFLAGS -belf"
ff66d28f
PE
4840 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4841echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4842if test "${lt_cv_cc_needs_belf+set}" = set; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 4844else
ff66d28f
PE
4845
4846
3df64633 4847 ac_ext=c
3df64633 4848ac_cpp='$CPP $CPPFLAGS'
ff66d28f
PE
4849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851ac_compiler_gnu=$ac_cv_c_compiler_gnu
4852
3a24bf5d
KC
4853 if test x$gcc_no_link = xyes; then
4854 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4855echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4856 { (exit 1); exit 1; }; }
4857fi
4858cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
4859/* confdefs.h. */
4860_ACEOF
4861cat confdefs.h >>conftest.$ac_ext
4862cat >>conftest.$ac_ext <<_ACEOF
4863/* end confdefs.h. */
3df64633 4864
ff66d28f
PE
4865int
4866main ()
4867{
b2dad0e3 4868
ff66d28f
PE
4869 ;
4870 return 0;
4871}
4872_ACEOF
4873rm -f conftest.$ac_objext conftest$ac_exeext
4874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ec2075e9 4875 (eval $ac_link) 2>conftest.er1
ff66d28f 4876 ac_status=$?
ec2075e9
BK
4877 grep -v '^ *+' conftest.er1 >conftest.err
4878 rm -f conftest.er1
4879 cat conftest.err >&5
ff66d28f
PE
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } &&
780028b6
BK
4882 { ac_try='test -z "$ac_c_werror_flag"
4883 || test ! -s conftest.err'
ec2075e9
BK
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 (eval $ac_try) 2>&5
4886 ac_status=$?
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; } &&
4889 { ac_try='test -s conftest$ac_exeext'
ff66d28f
PE
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 (eval $ac_try) 2>&5
4892 ac_status=$?
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; }; then
b2dad0e3
BK
4895 lt_cv_cc_needs_belf=yes
4896else
ff66d28f
PE
4897 echo "$as_me: failed program was:" >&5
4898sed 's/^/| /' conftest.$ac_ext >&5
4899
4900lt_cv_cc_needs_belf=no
b2dad0e3 4901fi
ec2075e9
BK
4902rm -f conftest.err conftest.$ac_objext \
4903 conftest$ac_exeext conftest.$ac_ext
3df64633 4904 ac_ext=c
3df64633 4905ac_cpp='$CPP $CPPFLAGS'
ff66d28f
PE
4906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908ac_compiler_gnu=$ac_cv_c_compiler_gnu
3df64633 4909
b2dad0e3 4910fi
ff66d28f
PE
4911echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4912echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
b2dad0e3
BK
4913 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4914 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4915 CFLAGS="$SAVE_CFLAGS"
4916 fi
4917 ;;
4918
4919
4920esac
4921
4922
4923# Save cache, so that ltconfig can load it
ff66d28f 4924cat >confcache <<\_ACEOF
b2dad0e3
BK
4925# This file is a shell script that caches the results of configure
4926# tests run on this system so they can be shared between configure
ff66d28f
PE
4927# scripts and configure runs, see configure's option --config-cache.
4928# It is not useful on other systems. If it contains results you don't
4929# want to keep, you may remove or edit it.
b2dad0e3 4930#
ff66d28f
PE
4931# config.status only pays attention to the cache file if you give it
4932# the --recheck option to rerun configure.
b2dad0e3 4933#
ff66d28f
PE
4934# `ac_cv_env_foo' variables (set or unset) will be overridden when
4935# loading this file, other *unset* `ac_cv_foo' will be assigned the
4936# following values.
4937
4938_ACEOF
4939
b2dad0e3
BK
4940# The following way of writing the cache mishandles newlines in values,
4941# but we know of no workaround that is simple, portable, and efficient.
4942# So, don't put newlines in cache variables' values.
4943# Ultrix sh set writes to stderr and can't be redirected directly,
4944# and sets the high bit in the cache file unless we assign to the vars.
ff66d28f
PE
4945{
4946 (set) 2>&1 |
4947 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4948 *ac_space=\ *)
4949 # `set' does not quote correctly, so add quotes (double-quote
4950 # substitution turns \\\\ into \\, and sed turns \\ into \).
4951 sed -n \
ec2075e9
BK
4952 "s/'/'\\\\''/g;
4953 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
ff66d28f
PE
4954 ;;
4955 *)
4956 # `set' quotes correctly as required by POSIX, so do not add quotes.
4957 sed -n \
ec2075e9 4958 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
ff66d28f
PE
4959 ;;
4960 esac;
4961} |
4962 sed '
4963 t clear
4964 : clear
4965 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4966 t end
4967 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4968 : end' >>confcache
4969if diff $cache_file confcache >/dev/null 2>&1; then :; else
b2dad0e3 4970 if test -w $cache_file; then
ff66d28f
PE
4971 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4972 cat confcache >$cache_file
b2dad0e3
BK
4973 else
4974 echo "not updating unwritable cache $cache_file"
4975 fi
4976fi
4977rm -f confcache
4978
b2dad0e3 4979# Actually configure libtool. ac_aux_dir is where install-sh is found.
3df64633 4980AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3dd7094e 4981MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3df64633
AO
4982LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4983AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4984objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4985deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
b2dad0e3 4986${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3df64633 4987$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
ff66d28f
PE
4988|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4989echo "$as_me: error: libtool configure failed" >&2;}
4990 { (exit 1); exit 1; }; }
b2dad0e3
BK
4991
4992# Reload cache, that may have been modified by ltconfig
4993if test -r "$cache_file"; then
ff66d28f
PE
4994 # Some versions of bash will fail to source /dev/null (special
4995 # files actually), so we avoid doing that.
4996 if test -f "$cache_file"; then
4997 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4998echo "$as_me: loading cache $cache_file" >&6;}
4999 case $cache_file in
5000 [\\/]* | ?:[\\/]* ) . $cache_file;;
5001 *) . ./$cache_file;;
5002 esac
5003 fi
b2dad0e3 5004else
ff66d28f
PE
5005 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5006echo "$as_me: creating cache $cache_file" >&6;}
5007 >$cache_file
b2dad0e3
BK
5008fi
5009
5010
5011# This can be used to rebuild libtool when needed
3df64633 5012LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
b2dad0e3
BK
5013
5014# Always use our own libtool.
5015LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5016
5017# Redirect the config.log output again, so that the ltconfig log is not
5018# clobbered by the next message.
5019exec 5>>./config.log
5020
ff66d28f
PE
5021ac_ext=cc
5022ac_cpp='$CXXCPP $CPPFLAGS'
5023ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5024ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5025ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5026echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5027echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5028if test -z "$CXXCPP"; then
5029 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5031else
5032 # Double quotes because CXXCPP needs to be expanded
5033 for CXXCPP in "$CXX -E" "/lib/cpp"
5034 do
5035 ac_preproc_ok=false
5036for ac_cxx_preproc_warn_flag in '' yes
5037do
5038 # Use a header file that comes with gcc, so configuring glibc
5039 # with a fresh cross-compiler works.
5040 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5041 # <limits.h> exists even on freestanding compilers.
5042 # On the NeXT, cc -E runs the code through the compiler's parser,
5043 # not just through cpp. "Syntax error" is here to catch this case.
5044 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5045/* confdefs.h. */
5046_ACEOF
5047cat confdefs.h >>conftest.$ac_ext
5048cat >>conftest.$ac_ext <<_ACEOF
5049/* end confdefs.h. */
5050#ifdef __STDC__
5051# include <limits.h>
5052#else
5053# include <assert.h>
5054#endif
ec2075e9 5055 Syntax error
ff66d28f
PE
5056_ACEOF
5057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5059 ac_status=$?
5060 grep -v '^ *+' conftest.er1 >conftest.err
5061 rm -f conftest.er1
5062 cat conftest.err >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); } >/dev/null; then
5065 if test -s conftest.err; then
5066 ac_cpp_err=$ac_cxx_preproc_warn_flag
ec2075e9 5067 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
ff66d28f
PE
5068 else
5069 ac_cpp_err=
5070 fi
5071else
5072 ac_cpp_err=yes
5073fi
5074if test -z "$ac_cpp_err"; then
5075 :
5076else
5077 echo "$as_me: failed program was:" >&5
5078sed 's/^/| /' conftest.$ac_ext >&5
5079
5080 # Broken: fails on valid input.
5081continue
5082fi
5083rm -f conftest.err conftest.$ac_ext
5084
5085 # OK, works on sane cases. Now check whether non-existent headers
5086 # can be detected and how.
5087 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5088/* confdefs.h. */
5089_ACEOF
5090cat confdefs.h >>conftest.$ac_ext
5091cat >>conftest.$ac_ext <<_ACEOF
5092/* end confdefs.h. */
5093#include <ac_nonexistent.h>
5094_ACEOF
5095if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5097 ac_status=$?
5098 grep -v '^ *+' conftest.er1 >conftest.err
5099 rm -f conftest.er1
5100 cat conftest.err >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } >/dev/null; then
5103 if test -s conftest.err; then
5104 ac_cpp_err=$ac_cxx_preproc_warn_flag
ec2075e9 5105 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
ff66d28f
PE
5106 else
5107 ac_cpp_err=
5108 fi
5109else
5110 ac_cpp_err=yes
5111fi
5112if test -z "$ac_cpp_err"; then
5113 # Broken: success on invalid input.
5114continue
5115else
5116 echo "$as_me: failed program was:" >&5
5117sed 's/^/| /' conftest.$ac_ext >&5
5118
5119 # Passes both tests.
5120ac_preproc_ok=:
5121break
5122fi
5123rm -f conftest.err conftest.$ac_ext
5124
5125done
5126# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5127rm -f conftest.err conftest.$ac_ext
5128if $ac_preproc_ok; then
5129 break
5130fi
5131
5132 done
5133 ac_cv_prog_CXXCPP=$CXXCPP
5134
5135fi
5136 CXXCPP=$ac_cv_prog_CXXCPP
5137else
5138 ac_cv_prog_CXXCPP=$CXXCPP
5139fi
5140echo "$as_me:$LINENO: result: $CXXCPP" >&5
5141echo "${ECHO_T}$CXXCPP" >&6
5142ac_preproc_ok=false
5143for ac_cxx_preproc_warn_flag in '' yes
5144do
5145 # Use a header file that comes with gcc, so configuring glibc
5146 # with a fresh cross-compiler works.
5147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5148 # <limits.h> exists even on freestanding compilers.
5149 # On the NeXT, cc -E runs the code through the compiler's parser,
5150 # not just through cpp. "Syntax error" is here to catch this case.
5151 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5152/* confdefs.h. */
5153_ACEOF
5154cat confdefs.h >>conftest.$ac_ext
5155cat >>conftest.$ac_ext <<_ACEOF
5156/* end confdefs.h. */
5157#ifdef __STDC__
5158# include <limits.h>
5159#else
5160# include <assert.h>
5161#endif
ec2075e9 5162 Syntax error
ff66d28f
PE
5163_ACEOF
5164if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5166 ac_status=$?
5167 grep -v '^ *+' conftest.er1 >conftest.err
5168 rm -f conftest.er1
5169 cat conftest.err >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); } >/dev/null; then
5172 if test -s conftest.err; then
5173 ac_cpp_err=$ac_cxx_preproc_warn_flag
ec2075e9 5174 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
ff66d28f
PE
5175 else
5176 ac_cpp_err=
5177 fi
5178else
5179 ac_cpp_err=yes
5180fi
5181if test -z "$ac_cpp_err"; then
5182 :
5183else
5184 echo "$as_me: failed program was:" >&5
5185sed 's/^/| /' conftest.$ac_ext >&5
5186
5187 # Broken: fails on valid input.
5188continue
5189fi
5190rm -f conftest.err conftest.$ac_ext
5191
5192 # OK, works on sane cases. Now check whether non-existent headers
5193 # can be detected and how.
5194 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5195/* confdefs.h. */
5196_ACEOF
5197cat confdefs.h >>conftest.$ac_ext
5198cat >>conftest.$ac_ext <<_ACEOF
5199/* end confdefs.h. */
5200#include <ac_nonexistent.h>
5201_ACEOF
5202if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5204 ac_status=$?
5205 grep -v '^ *+' conftest.er1 >conftest.err
5206 rm -f conftest.er1
5207 cat conftest.err >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } >/dev/null; then
5210 if test -s conftest.err; then
5211 ac_cpp_err=$ac_cxx_preproc_warn_flag
ec2075e9 5212 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
ff66d28f
PE
5213 else
5214 ac_cpp_err=
5215 fi
5216else
5217 ac_cpp_err=yes
5218fi
5219if test -z "$ac_cpp_err"; then
5220 # Broken: success on invalid input.
5221continue
5222else
5223 echo "$as_me: failed program was:" >&5
5224sed 's/^/| /' conftest.$ac_ext >&5
5225
5226 # Passes both tests.
5227ac_preproc_ok=:
5228break
5229fi
5230rm -f conftest.err conftest.$ac_ext
5231
5232done
5233# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5234rm -f conftest.err conftest.$ac_ext
5235if $ac_preproc_ok; then
5236 :
5237else
5238 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5239See \`config.log' for more details." >&5
5240echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5241See \`config.log' for more details." >&2;}
5242 { (exit 1); exit 1; }; }
5243fi
5244
5245ac_ext=c
5246ac_cpp='$CPP $CPPFLAGS'
5247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5249ac_compiler_gnu=$ac_cv_c_compiler_gnu
5250
3df64633
AO
5251
5252
3df64633
AO
5253LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5254lt_save_CC="$CC"
5255lt_save_CFLAGS="$CFLAGS"
5256AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
c21b6f87 5257MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3df64633
AO
5258LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5259AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5260objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5261deplibs_check_method="$deplibs_check_method" \
5262file_magic_cmd="$file_magic_cmd" \
5263${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5264--build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
ff66d28f
PE
5265|| { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5266echo "$as_me: error: libtool tag configuration failed" >&2;}
5267 { (exit 1); exit 1; }; }
3df64633
AO
5268CC="$lt_save_CC"
5269CFLAGS="$lt_save_CFLAGS"
5270
5271# Redirect the config.log output again, so that the ltconfig log is not
5272# clobbered by the next message.
5273exec 5>>./config.log
5274
3df64633 5275
34791641
PE
5276
5277
33590f13 5278
ff66d28f
PE
5279
5280
5281
ff66d28f 5282
92eabea2 5283# Possibly disable most of the library.
347669a0 5284## TODO: Consider skipping unncessary tests altogether in this case, rather
92eabea2
PE
5285## than just ignoring the results. Faster /and/ more correct, win win.
5286
5287 # Check whether --enable-hosted-libstdcxx or --disable-hosted-libstdcxx was given.
5288if test "${enable_hosted_libstdcxx+set}" = set; then
5289 enableval="$enable_hosted_libstdcxx"
5290
5291else
4c24b21a
MM
5292 case "$host" in
5293 arm*-*-symbianelf*)
5294 enable_hosted_libstdcxx=no
5295 ;;
5296 *)
5297 enable_hosted_libstdcxx=yes
5298 ;;
5299 esac
92eabea2
PE
5300fi;
5301 if test "$enable_hosted_libstdcxx" = no; then
5302 { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5
5303echo "$as_me: Only freestanding libraries will be built" >&6;}
5304 is_hosted=no
3660e02f 5305 hosted_define=0
92eabea2
PE
5306 enable_abi_check=no
5307 enable_libstdcxx_pch=no
5308 else
5309 is_hosted=yes
3660e02f 5310 hosted_define=1
92eabea2
PE
5311 fi
5312
5313
3660e02f
PE
5314cat >>confdefs.h <<_ACEOF
5315#define _GLIBCXX_HOSTED $hosted_define
5316_ACEOF
5317
5318
92eabea2 5319
347669a0 5320# Check for compiler support that doesn't require linking.
5780a46b 5321
ff66d28f
PE
5322 echo "$as_me:$LINENO: checking for exception model to use" >&5
5323echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
249ed716 5324
ff66d28f
PE
5325
5326 ac_ext=cc
44f0760e 5327ac_cpp='$CXXCPP $CPPFLAGS'
ff66d28f
PE
5328ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5329ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5330ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
44f0760e 5331
ff66d28f 5332 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
44f0760e
BK
5333if test "${enable_sjlj_exceptions+set}" = set; then
5334 enableval="$enable_sjlj_exceptions"
1260d70f
PE
5335
5336 case "$enableval" in
5337 yes|no|auto) ;;
5338 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5
5339echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;}
5340 { (exit 1); exit 1; }; } ;;
5341 esac
5342
44f0760e 5343else
1260d70f 5344 enable_sjlj_exceptions=auto
ff66d28f 5345fi;
44f0760e 5346
1260d70f
PE
5347
5348 if test $enable_sjlj_exceptions = auto; then
5349 # Botheration. Now we've got to detect the exception model. Link tests
5350 # against libgcc.a are problematic since we've not been given proper -L
5351 # bits for single-tree newlib and libgloss.
5352 #
5353 # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style.
5354 cat > conftest.$ac_ext << EOF
464aea98 5355#line 5355 "configure"
1260d70f
PE
5356struct S { ~S(); };
5357void bar();
5358void foo()
5359{
5360 S s;
5361 bar();
5362}
5363EOF
5364 old_CXXFLAGS="$CXXFLAGS"
5365 CXXFLAGS=-S
5366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5367 (eval $ac_compile) 2>&5
5368 ac_status=$?
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; then
5371 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5372 enable_sjlj_exceptions=yes
5373 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5374 enable_sjlj_exceptions=no
617a1b71
PB
5375 elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
5376 enable_sjlj_exceptions=no
1260d70f
PE
5377 fi
5378 fi
5379 CXXFLAGS="$old_CXXFLAGS"
5380 rm -f conftest*
5381 fi
5382
cddfb1c7
BK
5383 # This is a tad weird, for hysterical raisins. We have to map
5384 # enable/disable to two different models.
1260d70f
PE
5385 case $enable_sjlj_exceptions in
5386 yes)
44f0760e 5387
ff66d28f
PE
5388cat >>confdefs.h <<\_ACEOF
5389#define _GLIBCXX_SJLJ_EXCEPTIONS 1
5390_ACEOF
5391
1260d70f
PE
5392 ac_exception_model_name=sjlj
5393 ;;
5394 no)
5395 ac_exception_model_name="call frame"
5396 ;;
5397 *)
5398 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
ff66d28f
PE
5399echo "$as_me: error: unable to detect exception model" >&2;}
5400 { (exit 1); exit 1; }; }
1260d70f
PE
5401 ;;
5402 esac
ff66d28f 5403 ac_ext=c
44f0760e 5404ac_cpp='$CPP $CPPFLAGS'
ff66d28f
PE
5405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5407ac_compiler_gnu=$ac_cv_c_compiler_gnu
44f0760e 5408
ff66d28f
PE
5409 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5410echo "${ECHO_T}$ac_exception_model_name" >&6
44f0760e
BK
5411
5412
ff66d28f 5413 # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given.
d8d81f62
BK
5414if test "${enable_libstdcxx_pch+set}" = set; then
5415 enableval="$enable_libstdcxx_pch"
ff66d28f
PE
5416
5417 case "$enableval" in
5418 yes|no) ;;
5419 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5
5420echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;}
5421 { (exit 1); exit 1; }; } ;;
5422 esac
5423
44f0760e 5424else
92eabea2 5425 enable_libstdcxx_pch=$is_hosted
ff66d28f 5426fi;
44f0760e 5427
ff66d28f
PE
5428 if test $enable_libstdcxx_pch = yes; then
5429 echo "$as_me:$LINENO: checking for compiler with PCH support" >&5
5430echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6
5431if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
249ed716 5433else
ff66d28f
PE
5434 ac_save_CXXFLAGS="$CXXFLAGS"
5435 CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
5436
5437
5438 ac_ext=cc
249ed716 5439ac_cpp='$CXXCPP $CPPFLAGS'
ff66d28f
PE
5440ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5441ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5442ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5443
5444 echo '#include <math.h>' > conftest.h
5445 if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
5446 -o conftest.h.gch 1>&5 2>&1 &&
5447 echo '#error "pch failed"' > conftest.h &&
5448 echo '#include "conftest.h"' > conftest.cc &&
5449 $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
5450 then
5451 glibcxx_cv_prog_CXX_pch=yes
5452 else
5453 glibcxx_cv_prog_CXX_pch=no
5454 fi
5455 rm -f conftest*
5456 CXXFLAGS=$ac_save_CXXFLAGS
5457 ac_ext=c
249ed716 5458ac_cpp='$CPP $CPPFLAGS'
ff66d28f
PE
5459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5461ac_compiler_gnu=$ac_cv_c_compiler_gnu
249ed716 5462
249ed716 5463
ff66d28f
PE
5464fi
5465echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5
5466echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6
5467 enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
44f0760e
BK
5468 fi
5469
797308b2
BK
5470 echo "$as_me:$LINENO: checking for enabled PCH" >&5
5471echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6
5472 echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5
5473echo "${ECHO_T}$enable_libstdcxx_pch" >&6
5474
44f0760e 5475
ff66d28f
PE
5476 if test $enable_libstdcxx_pch = yes; then
5477 glibcxx_PCHFLAGS="-include bits/stdc++.h"
bddc3107 5478 else
ff66d28f 5479 glibcxx_PCHFLAGS=""
bddc3107 5480 fi
249ed716 5481
04e78786 5482
ff66d28f
PE
5483
5484# Enable all the variable C++ runtime options.
58ac1d7f 5485
ff66d28f
PE
5486 echo "$as_me:$LINENO: checking for underlying I/O to use" >&5
5487echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6
5488 # Check whether --enable-cstdio or --disable-cstdio was given.
58ac1d7f
BK
5489if test "${enable_cstdio+set}" = set; then
5490 enableval="$enable_cstdio"
ff66d28f
PE
5491
5492 case "$enableval" in
5493 stdio) ;;
5494 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5
5495echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;}
5496 { (exit 1); exit 1; }; } ;;
5497 esac
5498
58ac1d7f
BK
5499else
5500 enable_cstdio=stdio
ff66d28f 5501fi;
58ac1d7f
BK
5502
5503
ff66d28f
PE
5504 # Now that libio has been removed, you can have any color you want as long
5505 # as it's black. This is one big no-op until other packages are added, but
5506 # showing the framework never hurts.
5507 case ${enable_cstdio} in
5508 stdio)
58ac1d7f
BK
5509 CSTDIO_H=config/io/c_io_stdio.h
5510 BASIC_FILE_H=config/io/basic_file_stdio.h
5511 BASIC_FILE_CC=config/io/basic_file_stdio.cc
ff66d28f
PE
5512 echo "$as_me:$LINENO: result: stdio" >&5
5513echo "${ECHO_T}stdio" >&6
58ac1d7f
BK
5514 ;;
5515 esac
cc5112c9 5516
ff66d28f
PE
5517
5518
5519
5520
ff66d28f
PE
5521echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5522echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5523if test "${ac_cv_header_stdc+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5525else
5526 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5527/* confdefs.h. */
5528_ACEOF
5529cat confdefs.h >>conftest.$ac_ext
5530cat >>conftest.$ac_ext <<_ACEOF
5531/* end confdefs.h. */
5532#include <stdlib.h>
5533#include <stdarg.h>
5534#include <string.h>
5535#include <float.h>
5536
5537int
5538main ()
5539{
5540
5541 ;
5542 return 0;
5543}
5544_ACEOF
5545rm -f conftest.$ac_objext
5546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 5547 (eval $ac_compile) 2>conftest.er1
ff66d28f 5548 ac_status=$?
ec2075e9
BK
5549 grep -v '^ *+' conftest.er1 >conftest.err
5550 rm -f conftest.er1
5551 cat conftest.err >&5
ff66d28f
PE
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); } &&
780028b6
BK
5554 { ac_try='test -z "$ac_c_werror_flag"
5555 || test ! -s conftest.err'
ec2075e9
BK
5556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5557 (eval $ac_try) 2>&5
5558 ac_status=$?
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); }; } &&
5561 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
5562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5563 (eval $ac_try) 2>&5
5564 ac_status=$?
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); }; }; then
5567 ac_cv_header_stdc=yes
5568else
5569 echo "$as_me: failed program was:" >&5
5570sed 's/^/| /' conftest.$ac_ext >&5
5571
5572ac_cv_header_stdc=no
5573fi
ec2075e9 5574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
5575
5576if test $ac_cv_header_stdc = yes; then
5577 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5578 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5579/* confdefs.h. */
5580_ACEOF
5581cat confdefs.h >>conftest.$ac_ext
5582cat >>conftest.$ac_ext <<_ACEOF
5583/* end confdefs.h. */
5584#include <string.h>
5585
5586_ACEOF
5587if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5588 $EGREP "memchr" >/dev/null 2>&1; then
c470c17d
BK
5589 :
5590else
ff66d28f
PE
5591 ac_cv_header_stdc=no
5592fi
5593rm -f conftest*
5594
5595fi
5596
5597if test $ac_cv_header_stdc = yes; then
5598 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
5606
5607_ACEOF
5608if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5609 $EGREP "free" >/dev/null 2>&1; then
5610 :
5611else
5612 ac_cv_header_stdc=no
5613fi
5614rm -f conftest*
5615
5616fi
5617
5618if test $ac_cv_header_stdc = yes; then
5619 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5620 if test "$cross_compiling" = yes; then
5621 :
5622else
5623 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5624/* confdefs.h. */
5625_ACEOF
5626cat confdefs.h >>conftest.$ac_ext
5627cat >>conftest.$ac_ext <<_ACEOF
5628/* end confdefs.h. */
5629#include <ctype.h>
5630#if ((' ' & 0x0FF) == 0x020)
5631# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5632# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5633#else
5634# define ISLOWER(c) \
ec2075e9
BK
5635 (('a' <= (c) && (c) <= 'i') \
5636 || ('j' <= (c) && (c) <= 'r') \
5637 || ('s' <= (c) && (c) <= 'z'))
ff66d28f
PE
5638# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5639#endif
5640
5641#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5642int
5643main ()
5644{
5645 int i;
5646 for (i = 0; i < 256; i++)
5647 if (XOR (islower (i), ISLOWER (i))
ec2075e9 5648 || toupper (i) != TOUPPER (i))
ff66d28f
PE
5649 exit(2);
5650 exit (0);
5651}
5652_ACEOF
5653rm -f conftest$ac_exeext
5654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5655 (eval $ac_link) 2>&5
5656 ac_status=$?
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5660 (eval $ac_try) 2>&5
5661 ac_status=$?
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); }; }; then
5664 :
5665else
5666 echo "$as_me: program exited with status $ac_status" >&5
5667echo "$as_me: failed program was:" >&5
5668sed 's/^/| /' conftest.$ac_ext >&5
5669
5670( exit $ac_status )
5671ac_cv_header_stdc=no
b2dad0e3 5672fi
ec2075e9 5673rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
b2dad0e3 5674fi
33590f13 5675fi
33590f13 5676fi
ff66d28f
PE
5677echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5678echo "${ECHO_T}$ac_cv_header_stdc" >&6
5679if test $ac_cv_header_stdc = yes; then
5680
5681cat >>confdefs.h <<\_ACEOF
5682#define STDC_HEADERS 1
5683_ACEOF
5684
5685fi
5686
5687# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ec2075e9 5698 inttypes.h stdint.h unistd.h
ff66d28f
PE
5699do
5700as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5701echo "$as_me:$LINENO: checking for $ac_header" >&5
5702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5703if eval "test \"\${$as_ac_Header+set}\" = set"; then
5704 echo $ECHO_N "(cached) $ECHO_C" >&6
5705else
5706 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5707/* confdefs.h. */
5708_ACEOF
5709cat confdefs.h >>conftest.$ac_ext
5710cat >>conftest.$ac_ext <<_ACEOF
5711/* end confdefs.h. */
5712$ac_includes_default
5713
5714#include <$ac_header>
5715_ACEOF
5716rm -f conftest.$ac_objext
5717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 5718 (eval $ac_compile) 2>conftest.er1
ff66d28f 5719 ac_status=$?
ec2075e9
BK
5720 grep -v '^ *+' conftest.er1 >conftest.err
5721 rm -f conftest.er1
5722 cat conftest.err >&5
ff66d28f
PE
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); } &&
780028b6
BK
5725 { ac_try='test -z "$ac_c_werror_flag"
5726 || test ! -s conftest.err'
ec2075e9
BK
5727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5728 (eval $ac_try) 2>&5
5729 ac_status=$?
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }; } &&
5732 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
5733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734 (eval $ac_try) 2>&5
5735 ac_status=$?
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; }; then
5738 eval "$as_ac_Header=yes"
5739else
5740 echo "$as_me: failed program was:" >&5
5741sed 's/^/| /' conftest.$ac_ext >&5
5742
5743eval "$as_ac_Header=no"
5744fi
ec2075e9 5745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
5746fi
5747echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5748echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5749if test `eval echo '${'$as_ac_Header'}'` = yes; then
5750 cat >>confdefs.h <<_ACEOF
5751#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5752_ACEOF
5753
33590f13 5754fi
ff66d28f
PE
5755
5756done
5757
33590f13
BK
5758
5759
ff66d28f
PE
5760 echo "$as_me:$LINENO: checking for C locale to use" >&5
5761echo $ECHO_N "checking for C locale to use... $ECHO_C" >&6
5762 # Check whether --enable-clocale or --disable-clocale was given.
4e10943d
BK
5763if test "${enable_clocale+set}" = set; then
5764 enableval="$enable_clocale"
ff66d28f
PE
5765
5766 case "$enableval" in
5767 generic|gnu|ieee_1003.1-2001|yes|no|auto) ;;
5768 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
5769echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
5770 { (exit 1); exit 1; }; } ;;
5771 esac
5772
b2dad0e3 5773else
ff66d28f
PE
5774 enable_clocale=auto
5775fi;
b2dad0e3 5776
20427c6b 5777
ff66d28f
PE
5778 # If they didn't use this option switch, or if they specified --enable
5779 # with no specific model, we'll have to look for one. If they
5780 # specified --disable (???), do likewise.
5781 if test $enable_clocale = no || test $enable_clocale = yes; then
5782 enable_clocale=auto
5783 fi
5784
5785 # Either a known package, or "auto"
4e10943d 5786 enable_clocale_flag=$enable_clocale
dd75251f 5787
ff66d28f
PE
5788 # Probe for locale support if no specific model is specified.
5789 # Default to "generic".
5790 if test $enable_clocale_flag = auto; then
7d3998a4
PE
5791 case ${target_os} in
5792 linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu)
ff66d28f 5793 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5794/* confdefs.h. */
5795_ACEOF
5796cat confdefs.h >>conftest.$ac_ext
5797cat >>conftest.$ac_ext <<_ACEOF
5798/* end confdefs.h. */
56deb74c
BK
5799
5800 #include <features.h>
37bc6ca2 5801 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
3d7c150e 5802 _GLIBCXX_ok
56deb74c 5803 #endif
ff66d28f
PE
5804
5805_ACEOF
56deb74c 5806if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ff66d28f 5807 $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then
56deb74c
BK
5808 enable_clocale_flag=gnu
5809else
56deb74c
BK
5810 enable_clocale_flag=generic
5811fi
5812rm -f conftest*
5813
1451a492 5814
ff66d28f 5815 # Test for bugs early in glibc-2.2.x series
7d3998a4 5816 if test $enable_clocale_flag = gnu; then
ff66d28f 5817 if test "$cross_compiling" = yes; then
1451a492
BK
5818 enable_clocale_flag=generic
5819else
ff66d28f 5820 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5821/* confdefs.h. */
5822_ACEOF
5823cat confdefs.h >>conftest.$ac_ext
5824cat >>conftest.$ac_ext <<_ACEOF
5825/* end confdefs.h. */
5826
5827 #define _GNU_SOURCE 1
5828 #include <locale.h>
5829 #include <string.h>
5830 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
5831 extern __typeof(newlocale) __newlocale;
5832 extern __typeof(duplocale) __duplocale;
5833 extern __typeof(strcoll_l) __strcoll_l;
5834 #endif
5835 int main()
5836 {
5837