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