]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/configure
configure.ac (RPATH_ENVVAR): Use PATH on Windows.
[thirdparty/gcc.git] / libstdc++-v3 / configure
CommitLineData
b2dad0e3 1#! /bin/sh
b2dad0e3 2# Guess values for system-dependent variables and create Makefiles.
7eed349e 3# Generated by GNU Autoconf 2.59 for package-unused version-unused.
b2dad0e3 4#
7eed349e 5# Copyright (C) 2003 Free Software Foundation, Inc.
b2dad0e3
BK
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
ff66d28f
PE
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
7eed349e 12# Be Bourne compatible
ff66d28f
PE
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
7eed349e
PC
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
ff66d28f 21fi
7eed349e 22DUALCASE=1; export DUALCASE # for MKS sh
ff66d28f
PE
23
24# Support unset when possible.
ec2075e9 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ff66d28f
PE
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
7eed349e 33$as_unset ENV MAIL MAILPATH
ff66d28f
PE
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
ec2075e9 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
ff66d28f
PE
45 eval $as_var=C; export $as_var
46 else
7eed349e 47 $as_unset $as_var
ff66d28f
PE
48 fi
49done
50
51# Required to use basename.
7eed349e 52if expr a : '\(a\)' >/dev/null 2>&1; then
ff66d28f
PE
53 as_expr=expr
54else
55 as_expr=false
56fi
57
7eed349e 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
ff66d28f
PE
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
7eed349e 66as_me=`$as_basename "$0" ||
ff66d28f
PE
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
7eed349e
PC
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
ff66d28f 71echo X/"$0" |
7eed349e
PC
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
ff66d28f 76
4312e020 77
7eed349e
PC
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
8a165db0 85
7eed349e
PC
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
8a165db0
BK
97fi
98
8a165db0 99
7eed349e
PC
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
8a165db0 116
7eed349e
PC
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 '')
ff66d28f
PE
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=.
7eed349e
PC
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
ff66d28f 137 /*)
7eed349e 138 if ("$as_dir/$as_base" -c '
8a165db0
BK
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
7eed349e 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8a165db0 142 test "x$as_lineno_1" != "x$as_lineno_2" &&
7eed349e
PC
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
ff66d28f
PE
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
7eed349e
PC
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.
ff66d28f 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7eed349e
PC
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
ff66d28f
PE
165 sed '
166 N
7eed349e
PC
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
ff66d28f 170 t loop
7eed349e
PC
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
ff66d28f 173 ' >$as_me.lineno &&
7eed349e 174 chmod +x $as_me.lineno ||
ff66d28f
PE
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
7eed349e
PC
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
ff66d28f
PE
182 # Exit status is that of the last command.
183 exit
184}
185
186
7eed349e
PC
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= ;;
ff66d28f
PE
192esac
193
7eed349e 194if expr a : '\(a\)' >/dev/null 2>&1; then
ff66d28f
PE
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
7eed349e
PC
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
ff66d28f 207 as_ln_s='cp -p'
7eed349e
PC
208 else
209 as_ln_s='ln -s'
210 fi
ff66d28f
PE
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
7eed349e 216rm -f conf$$ conf$$.exe conf$$.file
ff66d28f
PE
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
ec2075e9 221 test -d ./-p && rmdir ./-p
ff66d28f
PE
222 as_mkdir_p=false
223fi
224
7eed349e 225as_executable_p="test -f"
ff66d28f
PE
226
227# Sed expression to map a string onto a valid CPP name.
ec2075e9 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ff66d28f
PE
229
230# Sed expression to map a string onto a valid variable name.
ec2075e9 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ff66d28f
PE
232
233
7eed349e
PC
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
ff66d28f 243
1cf3d07d
SE
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$lt_ECHO in
249X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253esac
254
255ECHO=${lt_ECHO-echo}
256if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $ECHO works!
264 :
265else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<_LT_EOF
274$*
275_LT_EOF
276 exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$lt_ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
289 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
290 then
291 break
292 fi
293 done
294 fi
295
296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
298 test "X$echo_testing_string" = "X$echo_test_string"; then
299 :
300 else
301 # The Solaris, AIX, and Digital Unix default echo programs unquote
302 # backslashes. This makes it impossible to quote backslashes using
303 # echo "$something" | sed 's/\\/\\\\/g'
304 #
305 # So, first we look for a working echo in the user's PATH.
306
307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308 for dir in $PATH /usr/ucb; do
309 IFS="$lt_save_ifs"
310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313 test "X$echo_testing_string" = "X$echo_test_string"; then
314 ECHO="$dir/echo"
315 break
316 fi
317 done
318 IFS="$lt_save_ifs"
319
320 if test "X$ECHO" = Xecho; then
321 # We didn't find a better echo, so look for alternatives.
322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
324 test "X$echo_testing_string" = "X$echo_test_string"; then
325 # This shell has a builtin print -r that does the trick.
326 ECHO='print -r'
327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
328 test "X$CONFIG_SHELL" != X/bin/ksh; then
329 # If we have ksh, try running configure again with it.
330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331 export ORIGINAL_CONFIG_SHELL
332 CONFIG_SHELL=/bin/ksh
333 export CONFIG_SHELL
334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335 else
336 # Try using printf.
337 ECHO='printf %s\n'
338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
341 # Cool, printf works
342 :
343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344 test "X$echo_testing_string" = 'X\t' &&
345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346 test "X$echo_testing_string" = "X$echo_test_string"; then
347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348 export CONFIG_SHELL
349 SHELL="$CONFIG_SHELL"
350 export SHELL
351 ECHO="$CONFIG_SHELL $0 --fallback-echo"
352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353 test "X$echo_testing_string" = 'X\t' &&
354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355 test "X$echo_testing_string" = "X$echo_test_string"; then
356 ECHO="$CONFIG_SHELL $0 --fallback-echo"
357 else
358 # maybe with a smaller string...
359 prev=:
360
361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
363 then
364 break
365 fi
366 prev="$cmd"
367 done
368
369 if test "$prev" != 'sed 50q "$0"'; then
370 echo_test_string=`eval $prev`
371 export echo_test_string
372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373 else
374 # Oops. We lost completely, so just stick with echo.
375 ECHO=echo
376 fi
377 fi
378 fi
379 fi
380 fi
381fi
382
383# Copy echo and quote the copy suitably for passing to libtool from
384# the Makefile, instead of quoting the original, which is used later.
385lt_ECHO=$ECHO
386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388fi
389
390
391
392
ff66d28f
PE
393# Name of the host.
394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395# so uname gets run too.
396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
397
7eed349e
PC
398exec 6>&1
399
ff66d28f
PE
400#
401# Initializations.
402#
b2dad0e3 403ac_default_prefix=/usr/local
ff66d28f
PE
404ac_config_libobj_dir=.
405cross_compiling=no
406subdirs=
407MFLAGS=
408MAKEFLAGS=
409SHELL=${CONFIG_SHELL-/bin/sh}
410
7eed349e
PC
411# Maximum number of lines to put in a shell here document.
412# This variable seems obsolete. It should probably be removed, and
413# only ac_max_sed_lines should be used.
414: ${ac_max_here_lines=38}
415
ff66d28f 416# Identity of this package.
fbe057bb
PE
417PACKAGE_NAME='package-unused'
418PACKAGE_TARNAME='libstdc++'
ff66d28f 419PACKAGE_VERSION='version-unused'
fbe057bb 420PACKAGE_STRING='package-unused version-unused'
ff66d28f
PE
421PACKAGE_BUGREPORT=''
422
423ac_unique_file="src/ios.cc"
424# Factoring default headers for most tests.
425ac_includes_default="\
426#include <stdio.h>
7eed349e 427#if HAVE_SYS_TYPES_H
ff66d28f
PE
428# include <sys/types.h>
429#endif
7eed349e 430#if HAVE_SYS_STAT_H
ff66d28f
PE
431# include <sys/stat.h>
432#endif
7eed349e 433#if STDC_HEADERS
ff66d28f
PE
434# include <stdlib.h>
435# include <stddef.h>
436#else
7eed349e 437# if HAVE_STDLIB_H
ff66d28f
PE
438# include <stdlib.h>
439# endif
440#endif
7eed349e
PC
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
ff66d28f
PE
443# include <memory.h>
444# endif
445# include <string.h>
446#endif
7eed349e 447#if HAVE_STRINGS_H
ff66d28f
PE
448# include <strings.h>
449#endif
7eed349e 450#if HAVE_INTTYPES_H
ff66d28f 451# include <inttypes.h>
7eed349e
PC
452#else
453# if HAVE_STDINT_H
454# include <stdint.h>
455# endif
ff66d28f 456#endif
7eed349e 457#if HAVE_UNISTD_H
ff66d28f
PE
458# include <unistd.h>
459#endif"
460
610870b2 461ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libtool_VERSION multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar glibcxx_builddir glibcxx_srcdir toplevel_srcdir CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LN_S AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CPP CPPFLAGS EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM lt_ECHO LDFLAGS CXXCPP enable_shared enable_static GLIBCXX_HOSTED_TRUE GLIBCXX_HOSTED_FALSE GLIBCXX_BUILD_PCH_TRUE GLIBCXX_BUILD_PCH_FALSE glibcxx_PCHFLAGS glibcxx_thread_h WERROR SECTION_FLAGS CSTDIO_H BASIC_FILE_H BASIC_FILE_CC check_msgfmt glibcxx_MOFILES glibcxx_POFILES glibcxx_localedir USE_NLS CLOCALE_H CMESSAGES_H CCODECVT_CC CCOLLATE_CC CCTYPE_CC CMESSAGES_CC CMONEY_CC CNUMERIC_CC CTIME_H CTIME_CC CLOCALE_CC CLOCALE_INTERNAL_H ALLOCATOR_H ALLOCATOR_NAME C_INCLUDE_DIR GLIBCXX_C_HEADERS_C_TRUE GLIBCXX_C_HEADERS_C_FALSE GLIBCXX_C_HEADERS_C_STD_TRUE GLIBCXX_C_HEADERS_C_STD_FALSE GLIBCXX_C_HEADERS_C_GLOBAL_TRUE GLIBCXX_C_HEADERS_C_GLOBAL_FALSE GLIBCXX_C_HEADERS_COMPATIBILITY_TRUE GLIBCXX_C_HEADERS_COMPATIBILITY_FALSE GLIBCXX_C_HEADERS_EXTRA_TRUE GLIBCXX_C_HEADERS_EXTRA_FALSE DEBUG_FLAGS GLIBCXX_BUILD_DEBUG_TRUE GLIBCXX_BUILD_DEBUG_FALSE ENABLE_PARALLEL_TRUE ENABLE_PARALLEL_FALSE EXTRA_CXX_FLAGS GLIBCXX_LIBS SECTION_LDFLAGS OPT_LDFLAGS LIBMATHOBJS LIBICONV LTLIBICONV SYMVER_FILE port_specific_symbol_files ENABLE_SYMVERS_TRUE ENABLE_SYMVERS_FALSE ENABLE_SYMVERS_GNU_TRUE ENABLE_SYMVERS_GNU_FALSE ENABLE_SYMVERS_GNU_NAMESPACE_TRUE ENABLE_SYMVERS_GNU_NAMESPACE_FALSE ENABLE_SYMVERS_DARWIN_TRUE ENABLE_SYMVERS_DARWIN_FALSE ENABLE_VISIBILITY_TRUE ENABLE_VISIBILITY_FALSE GLIBCXX_LDBL_COMPAT_TRUE GLIBCXX_LDBL_COMPAT_FALSE baseline_dir ATOMICITY_SRCDIR ATOMIC_WORD_SRCDIR ATOMIC_FLAGS CPU_DEFINES_SRCDIR ABI_TWEAKS_SRCDIR OS_INC_SRCDIR ERROR_CONSTANTS_SRCDIR glibcxx_prefixdir gxx_include_dir glibcxx_toolexecdir glibcxx_toolexeclibdir GLIBCXX_INCLUDES TOPLEVEL_INCLUDES OPTIMIZE_CXXFLAGS WARN_FLAGS LIBSUPCXX_PICFLAGS LIBOBJS LTLIBOBJS'
ff66d28f 462ac_subst_files=''
18c04407 463ac_pwd=`pwd`
b2dad0e3
BK
464
465# Initialize some variables set by options.
ff66d28f
PE
466ac_init_help=
467ac_init_version=false
b2dad0e3
BK
468# The variables have the same names as the options, with
469# dashes changed to underlines.
ff66d28f 470cache_file=/dev/null
b2dad0e3 471exec_prefix=NONE
b2dad0e3 472no_create=
b2dad0e3
BK
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
b2dad0e3
BK
481verbose=
482x_includes=NONE
483x_libraries=NONE
ff66d28f
PE
484
485# Installation directory options.
486# These are left unexpanded so users can "make install exec_prefix=/foo"
487# and all the variables that are supposed to be based on exec_prefix
488# by default will actually change.
489# Use braces instead of parens because sh, perl, etc. also accept them.
b2dad0e3
BK
490bindir='${exec_prefix}/bin'
491sbindir='${exec_prefix}/sbin'
492libexecdir='${exec_prefix}/libexec'
7eed349e 493datadir='${prefix}/share'
b2dad0e3
BK
494sysconfdir='${prefix}/etc'
495sharedstatedir='${prefix}/com'
496localstatedir='${prefix}/var'
7eed349e 497libdir='${exec_prefix}/lib'
b2dad0e3
BK
498includedir='${prefix}/include'
499oldincludedir='/usr/include'
7eed349e
PC
500infodir='${prefix}/info'
501mandir='${prefix}/man'
b2dad0e3 502
b2dad0e3
BK
503ac_prev=
504for ac_option
505do
b2dad0e3
BK
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
7eed349e 508 eval "$ac_prev=\$ac_option"
b2dad0e3
BK
509 ac_prev=
510 continue
511 fi
512
7eed349e 513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
b2dad0e3
BK
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
7eed349e 517 case $ac_option in
b2dad0e3
BK
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ff66d28f 522 bindir=$ac_optarg ;;
b2dad0e3
BK
523
524 -build | --build | --buil | --bui | --bu)
ff66d28f 525 ac_prev=build_alias ;;
b2dad0e3 526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ff66d28f 527 build_alias=$ac_optarg ;;
b2dad0e3
BK
528
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ff66d28f
PE
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
b2dad0e3 538
7eed349e 539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
b2dad0e3 540 ac_prev=datadir ;;
7eed349e
PC
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
ff66d28f 543 datadir=$ac_optarg ;;
b2dad0e3
BK
544
545 -disable-* | --disable-*)
ff66d28f 546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
b2dad0e3 547 # Reject names that are not valid shell variable names.
7eed349e 548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
ff66d28f
PE
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
7eed349e
PC
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
b2dad0e3
BK
553
554 -enable-* | --enable-*)
ff66d28f 555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
b2dad0e3 556 # Reject names that are not valid shell variable names.
7eed349e 557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
ff66d28f
PE
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
7eed349e
PC
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
b2dad0e3
BK
566
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
ff66d28f 574 exec_prefix=$ac_optarg ;;
b2dad0e3
BK
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
ff66d28f
PE
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
b2dad0e3
BK
586
587 -host | --host | --hos | --ho)
ff66d28f 588 ac_prev=host_alias ;;
b2dad0e3 589 -host=* | --host=* | --hos=* | --ho=*)
ff66d28f 590 host_alias=$ac_optarg ;;
b2dad0e3
BK
591
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
ff66d28f 597 includedir=$ac_optarg ;;
b2dad0e3
BK
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ff66d28f 602 infodir=$ac_optarg ;;
b2dad0e3
BK
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ff66d28f 607 libdir=$ac_optarg ;;
b2dad0e3
BK
608
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
ff66d28f 614 libexecdir=$ac_optarg ;;
b2dad0e3
BK
615
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
7eed349e
PC
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
b2dad0e3
BK
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7eed349e
PC
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
ff66d28f 623 localstatedir=$ac_optarg ;;
b2dad0e3
BK
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ff66d28f 628 mandir=$ac_optarg ;;
b2dad0e3
BK
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ff66d28f 635 | --no-cr | --no-c | -n)
b2dad0e3
BK
636 no_create=yes ;;
637
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
641
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ff66d28f 649 oldincludedir=$ac_optarg ;;
b2dad0e3
BK
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ff66d28f 654 prefix=$ac_optarg ;;
b2dad0e3
BK
655
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ff66d28f 661 program_prefix=$ac_optarg ;;
b2dad0e3
BK
662
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ff66d28f 668 program_suffix=$ac_optarg ;;
b2dad0e3
BK
669
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
ff66d28f 685 program_transform_name=$ac_optarg ;;
b2dad0e3
BK
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
ff66d28f 695 sbindir=$ac_optarg ;;
b2dad0e3
BK
696
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
ff66d28f 706 sharedstatedir=$ac_optarg ;;
b2dad0e3
BK
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
ff66d28f 711 site=$ac_optarg ;;
b2dad0e3
BK
712
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ff66d28f 716 srcdir=$ac_optarg ;;
b2dad0e3
BK
717
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ff66d28f 723 sysconfdir=$ac_optarg ;;
b2dad0e3
BK
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
ff66d28f 726 ac_prev=target_alias ;;
b2dad0e3 727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ff66d28f 728 target_alias=$ac_optarg ;;
b2dad0e3
BK
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
ff66d28f
PE
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
b2dad0e3
BK
735
736 -with-* | --with-*)
ff66d28f 737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
b2dad0e3 738 # Reject names that are not valid shell variable names.
7eed349e 739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
ff66d28f
PE
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
7eed349e
PC
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
b2dad0e3
BK
748
749 -without-* | --without-*)
ff66d28f 750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
b2dad0e3 751 # Reject names that are not valid shell variable names.
7eed349e 752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
ff66d28f
PE
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
7eed349e
PC
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
b2dad0e3
BK
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ff66d28f 767 x_includes=$ac_optarg ;;
b2dad0e3
BK
768
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ff66d28f 774 x_libraries=$ac_optarg ;;
b2dad0e3 775
ff66d28f
PE
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
b2dad0e3
BK
779 ;;
780
ff66d28f
PE
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
7eed349e
PC
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
ff66d28f
PE
789 export $ac_envvar ;;
790
b2dad0e3 791 *)
ff66d28f
PE
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
b2dad0e3
BK
797 ;;
798
799 esac
800done
801
802if test -n "$ac_prev"; then
ff66d28f
PE
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
b2dad0e3 806fi
b2dad0e3 807
7eed349e
PC
808# Be sure to have absolute paths.
809for ac_var in exec_prefix prefix
ff66d28f 810do
7eed349e 811 eval ac_val=$`echo $ac_var`
ff66d28f 812 case $ac_val in
7eed349e
PC
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817done
818
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
822do
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
b2dad0e3
BK
828 esac
829done
830
ff66d28f
PE
831# There might be people who depend on the old broken behavior: `$host'
832# used to hold the argument of --host etc.
833# FIXME: To remove some day.
834build=$build_alias
835host=$host_alias
836target=$target_alias
b2dad0e3 837
ff66d28f
PE
838# FIXME: To remove some day.
839if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
846 fi
847fi
848
849ac_tool_prefix=
850test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852test "$silent" = yes && exec 6>/dev/null
b2dad0e3 853
b2dad0e3
BK
854
855# Find the source files, if location was not specified.
856if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
7eed349e
PC
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
ff66d28f 860$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ec2075e9
BK
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
7eed349e
PC
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
ff66d28f 865echo X"$0" |
7eed349e
PC
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
b2dad0e3 871 srcdir=$ac_confdir
7eed349e 872 if test ! -r $srcdir/$ac_unique_file; then
b2dad0e3
BK
873 srcdir=..
874 fi
875else
876 ac_srcdir_defaulted=no
877fi
7eed349e
PC
878if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
ff66d28f 881 { (exit 1); exit 1; }; }
7eed349e
PC
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
885 fi
886fi
887(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891ac_env_build_alias_set=${build_alias+set}
892ac_env_build_alias_value=$build_alias
893ac_cv_env_build_alias_set=${build_alias+set}
894ac_cv_env_build_alias_value=$build_alias
895ac_env_host_alias_set=${host_alias+set}
896ac_env_host_alias_value=$host_alias
897ac_cv_env_host_alias_set=${host_alias+set}
898ac_cv_env_host_alias_value=$host_alias
899ac_env_target_alias_set=${target_alias+set}
900ac_env_target_alias_value=$target_alias
901ac_cv_env_target_alias_set=${target_alias+set}
902ac_cv_env_target_alias_value=$target_alias
903ac_env_CPP_set=${CPP+set}
904ac_env_CPP_value=$CPP
905ac_cv_env_CPP_set=${CPP+set}
906ac_cv_env_CPP_value=$CPP
907ac_env_CPPFLAGS_set=${CPPFLAGS+set}
908ac_env_CPPFLAGS_value=$CPPFLAGS
909ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
910ac_cv_env_CPPFLAGS_value=$CPPFLAGS
911ac_env_CXX_set=${CXX+set}
912ac_env_CXX_value=$CXX
913ac_cv_env_CXX_set=${CXX+set}
914ac_cv_env_CXX_value=$CXX
915ac_env_CXXFLAGS_set=${CXXFLAGS+set}
916ac_env_CXXFLAGS_value=$CXXFLAGS
917ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
918ac_cv_env_CXXFLAGS_value=$CXXFLAGS
919ac_env_LDFLAGS_set=${LDFLAGS+set}
920ac_env_LDFLAGS_value=$LDFLAGS
921ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922ac_cv_env_LDFLAGS_value=$LDFLAGS
923ac_env_CXXCPP_set=${CXXCPP+set}
924ac_env_CXXCPP_value=$CXXCPP
925ac_cv_env_CXXCPP_set=${CXXCPP+set}
926ac_cv_env_CXXCPP_value=$CXXCPP
ff66d28f
PE
927
928#
929# Report the --help message.
930#
931if test "$ac_init_help" = "long"; then
932 # Omit some internal or obsolete options to make the list less imposing.
933 # This message is too long to be a string in the A/UX 3.1 sh.
934 cat <<_ACEOF
fbe057bb 935\`configure' configures package-unused version-unused to adapt to many kinds of systems.
ff66d28f
PE
936
937Usage: $0 [OPTION]... [VAR=VALUE]...
938
939To assign environment variables (e.g., CC, CFLAGS...), specify them as
940VAR=VALUE. See below for descriptions of some of the useful variables.
941
942Defaults for the options are specified in brackets.
943
944Configuration:
945 -h, --help display this help and exit
946 --help=short display options specific to this package
947 --help=recursive display the short help of all the included packages
948 -V, --version display version information and exit
949 -q, --quiet, --silent do not print \`checking...' messages
950 --cache-file=FILE cache test results in FILE [disabled]
951 -C, --config-cache alias for \`--cache-file=config.cache'
952 -n, --no-create do not create output files
953 --srcdir=DIR find the sources in DIR [configure dir or \`..']
954
7eed349e
PC
955_ACEOF
956
957 cat <<_ACEOF
ff66d28f
PE
958Installation directories:
959 --prefix=PREFIX install architecture-independent files in PREFIX
ec2075e9 960 [$ac_default_prefix]
ff66d28f 961 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec2075e9 962 [PREFIX]
ff66d28f
PE
963
964By default, \`make install' will install all the files in
965\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
966an installation prefix other than \`$ac_default_prefix' using \`--prefix',
967for instance \`--prefix=\$HOME'.
968
969For better control, use the options below.
970
971Fine tuning of the installation directories:
972 --bindir=DIR user executables [EPREFIX/bin]
973 --sbindir=DIR system admin executables [EPREFIX/sbin]
974 --libexecdir=DIR program executables [EPREFIX/libexec]
7eed349e 975 --datadir=DIR read-only architecture-independent data [PREFIX/share]
ff66d28f
PE
976 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
977 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
978 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
979 --libdir=DIR object code libraries [EPREFIX/lib]
980 --includedir=DIR C header files [PREFIX/include]
981 --oldincludedir=DIR C header files for non-gcc [/usr/include]
7eed349e
PC
982 --infodir=DIR info documentation [PREFIX/info]
983 --mandir=DIR man documentation [PREFIX/man]
ff66d28f
PE
984_ACEOF
985
986 cat <<\_ACEOF
987
988Program names:
989 --program-prefix=PREFIX prepend PREFIX to installed program names
990 --program-suffix=SUFFIX append SUFFIX to installed program names
991 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
992
993System types:
994 --build=BUILD configure for building on BUILD [guessed]
995 --host=HOST cross-compile to build programs to run on HOST [BUILD]
996 --target=TARGET configure for building compilers for TARGET [HOST]
997_ACEOF
998fi
999
1000if test -n "$ac_init_help"; then
1001 case $ac_init_help in
fbe057bb 1002 short | recursive ) echo "Configuration of package-unused version-unused:";;
ff66d28f
PE
1003 esac
1004 cat <<\_ACEOF
1005
1006Optional Features:
1007 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1008 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
7eaf73d7
KC
1009 --enable-multilib build many library versions (default)
1010 --enable-maintainer-mode enable make rules and dependencies not useful
1011 (and sometimes confusing) to the casual installer
7eed349e
PC
1012 --enable-shared[=PKGS]
1013 build shared libraries [default=yes]
1014 --enable-static[=PKGS]
1015 build static libraries [default=yes]
1cf3d07d
SE
1016 --enable-fast-install[=PKGS]
1017 optimize for fast installation [default=yes]
ff66d28f 1018 --disable-libtool-lock avoid locking (might break parallel builds)
92eabea2
PE
1019 --disable-hosted-libstdcxx
1020 only build freestanding C++ runtime support
ff66d28f 1021 --enable-sjlj-exceptions
517da0ce
MM
1022 force use of builtin_setjmp for exceptions
1023 [default=auto]
1024 --enable-libstdcxx-pch build pre-compiled libstdc++ headers
1025 [default=$is_hosted]
7eed349e
PC
1026 --enable-cstdio=PACKAGE use target-specific I/O package
1027 [default=stdio]
ff66d28f 1028 --enable-clocale[=MODEL]
7eed349e
PC
1029 use MODEL for target locale package
1030 [default=auto]
517da0ce 1031 --enable-nls use Native Language Support (default)
8b0d6051
BK
1032 --enable-libstdcxx-allocator=KIND
1033 use KIND for target std::allocator base
1034 [default=auto]
7eed349e
PC
1035 --enable-cheaders=KIND construct "C" headers for g++
1036 [default=$c_model]
347669a0
BK
1037 --enable-long-long enable template specializations for 'long long'
1038 [default=yes]
1039 --enable-wchar_t enable template specializations for 'wchar_t'
517da0ce 1040 [default=yes]
7eed349e
PC
1041 --enable-c99 turns on ISO/IEC 9899:1999 support
1042 [default=yes]
517da0ce 1043 --enable-concept-checks use Boost-derived template checks [default=no]
ff66d28f 1044 --enable-libstdcxx-debug-flags=FLAGS
517da0ce
MM
1045 pass compiler FLAGS when building debug library
1046 [default="-g3 -O0"]
ff66d28f
PE
1047 --enable-libstdcxx-debug
1048 build extra debug library [default=no]
1049 --enable-cxx-flags=FLAGS
7eed349e
PC
1050 pass compiler FLAGS when building library
1051 [default=]
1165dc50
PC
1052 --enable-fully-dynamic-string
1053 do not put empty strings in per-process static
1054 memory [default=no]
727cd0bc
PC
1055 --enable-clock-gettime=KIND
1056 use KIND for check type [default=no]
2fb31455 1057 --enable-tls Use thread-local storage [default=yes]
5f34ed87 1058 --disable-rpath do not hardcode runtime library paths
7eed349e
PC
1059 --enable-linux-futex use the Linux futex system call
1060 [default=default]
517da0ce
MM
1061 --enable-symvers=STYLE enables symbol versioning of the shared library
1062 [default=yes]
98e615b4 1063 --enable-visibility enables visibility safe usage [default=yes]
ff66d28f 1064 --enable-version-specific-runtime-libs
517da0ce
MM
1065 Specify that runtime libraries should be installed
1066 in a compiler-specific directory
ff66d28f
PE
1067
1068Optional Packages:
1069 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1070 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1071 --with-target-subdir=SUBDIR
1072 configuring in a subdirectory
517da0ce
MM
1073 --with-cross-host=HOST configuring with a cross compiler
1074 --with-newlib assume newlib as a system C library
1cf3d07d
SE
1075 --with-pic try to use only PIC/non-PIC objects [default=use
1076 both]
1077 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
ff66d28f 1078 --with-gnu-ld assume the C compiler uses GNU ld default=no
4ffe6e87
BK
1079 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1080 --without-libiconv-prefix don't search for libiconv in includedir and libdir
ff66d28f
PE
1081 --with-gxx-include-dir=DIR
1082 installation directory for include files
1083
1084Some influential environment variables:
517da0ce
MM
1085 CC C compiler command
1086 CFLAGS C compiler flags
1087 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1088 nonstandard directory <lib dir>
7eed349e
PC
1089 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1090 headers in a nonstandard directory <include dir>
517da0ce
MM
1091 CXX C++ compiler command
1092 CXXFLAGS C++ compiler flags
517da0ce 1093 CPP C preprocessor
464aea98 1094 CXXCPP C++ preprocessor
ff66d28f
PE
1095
1096Use these variables to override the choices made by `configure' or to help
1097it to find libraries and programs with nonstandard names/locations.
1098
1099_ACEOF
1100fi
1101
1102if test "$ac_init_help" = "recursive"; then
1103 # If there are subdirs, report their specific --help.
7eed349e 1104 ac_popdir=`pwd`
ff66d28f 1105 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
7eed349e 1106 test -d $ac_dir || continue
ff66d28f
PE
1107 ac_builddir=.
1108
7eed349e 1109if test "$ac_dir" != .; then
ff66d28f 1110 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7eed349e
PC
1111 # A "../" for each directory in $ac_dir_suffix.
1112 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1113else
1114 ac_dir_suffix= ac_top_builddir=
1115fi
ff66d28f
PE
1116
1117case $srcdir in
7eed349e 1118 .) # No --srcdir option. We are building in place.
ff66d28f 1119 ac_srcdir=.
7eed349e
PC
1120 if test -z "$ac_top_builddir"; then
1121 ac_top_srcdir=.
1122 else
1123 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1124 fi ;;
1125 [\\/]* | ?:[\\/]* ) # Absolute path.
ff66d28f 1126 ac_srcdir=$srcdir$ac_dir_suffix;
7eed349e
PC
1127 ac_top_srcdir=$srcdir ;;
1128 *) # Relative path.
1129 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1130 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1131esac
1132
1133# Do not use `cd foo && pwd` to compute absolute paths, because
1134# the directories may not exist.
1135case `pwd` in
1136.) ac_abs_builddir="$ac_dir";;
1137*)
1138 case "$ac_dir" in
1139 .) ac_abs_builddir=`pwd`;;
1140 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1141 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1142 esac;;
1143esac
1144case $ac_abs_builddir in
1145.) ac_abs_top_builddir=${ac_top_builddir}.;;
1146*)
1147 case ${ac_top_builddir}. in
1148 .) ac_abs_top_builddir=$ac_abs_builddir;;
1149 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1150 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1151 esac;;
1152esac
1153case $ac_abs_builddir in
1154.) ac_abs_srcdir=$ac_srcdir;;
1155*)
1156 case $ac_srcdir in
1157 .) ac_abs_srcdir=$ac_abs_builddir;;
1158 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1159 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1160 esac;;
1161esac
1162case $ac_abs_builddir in
1163.) ac_abs_top_srcdir=$ac_top_srcdir;;
1164*)
1165 case $ac_top_srcdir in
1166 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1167 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1168 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1169 esac;;
ec2075e9 1170esac
7eed349e
PC
1171
1172 cd $ac_dir
1173 # Check for guested configure; otherwise get Cygnus style configure.
1174 if test -f $ac_srcdir/configure.gnu; then
1175 echo
1176 $SHELL $ac_srcdir/configure.gnu --help=recursive
1177 elif test -f $ac_srcdir/configure; then
1178 echo
1179 $SHELL $ac_srcdir/configure --help=recursive
1180 elif test -f $ac_srcdir/configure.ac ||
1181 test -f $ac_srcdir/configure.in; then
1182 echo
1183 $ac_configure --help
ff66d28f
PE
1184 else
1185 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7eed349e
PC
1186 fi
1187 cd $ac_popdir
ff66d28f
PE
1188 done
1189fi
1190
7eed349e 1191test -n "$ac_init_help" && exit 0
ff66d28f
PE
1192if $ac_init_version; then
1193 cat <<\_ACEOF
fbe057bb 1194package-unused configure version-unused
7eed349e 1195generated by GNU Autoconf 2.59
ff66d28f 1196
7eed349e 1197Copyright (C) 2003 Free Software Foundation, Inc.
ff66d28f
PE
1198This configure script is free software; the Free Software Foundation
1199gives unlimited permission to copy, distribute and modify it.
1200_ACEOF
7eed349e 1201 exit 0
b2dad0e3 1202fi
7eed349e
PC
1203exec 5>config.log
1204cat >&5 <<_ACEOF
ff66d28f
PE
1205This file contains any messages produced by compilers while
1206running configure, to aid debugging if configure makes a mistake.
1207
fbe057bb 1208It was created by package-unused $as_me version-unused, which was
7eed349e 1209generated by GNU Autoconf 2.59. Invocation command line was
ff66d28f
PE
1210
1211 $ $0 $@
1212
1213_ACEOF
1214{
1215cat <<_ASUNAME
1216## --------- ##
1217## Platform. ##
1218## --------- ##
1219
1220hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1221uname -m = `(uname -m) 2>/dev/null || echo unknown`
1222uname -r = `(uname -r) 2>/dev/null || echo unknown`
1223uname -s = `(uname -s) 2>/dev/null || echo unknown`
1224uname -v = `(uname -v) 2>/dev/null || echo unknown`
1225
1226/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1227/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1228
1229/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1230/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1231/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7eed349e 1232hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
ff66d28f
PE
1233/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1234/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1235/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1236
1237_ASUNAME
1238
1239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1240for as_dir in $PATH
1241do
1242 IFS=$as_save_IFS
1243 test -z "$as_dir" && as_dir=.
1244 echo "PATH: $as_dir"
1245done
1246
1247} >&5
1248
1249cat >&5 <<_ACEOF
1250
1251
1252## ----------- ##
1253## Core tests. ##
1254## ----------- ##
1255
1256_ACEOF
1257
1258
1259# Keep a trace of the command line.
1260# Strip out --no-create and --no-recursion so they do not pile up.
1261# Strip out --silent because we don't want to record it for future runs.
1262# Also quote any args containing shell meta-characters.
1263# Make two passes to allow for proper duplicate-argument suppression.
1264ac_configure_args=
1265ac_configure_args0=
1266ac_configure_args1=
7eed349e 1267ac_sep=
ff66d28f
PE
1268ac_must_keep_next=false
1269for ac_pass in 1 2
1270do
1271 for ac_arg
1272 do
1273 case $ac_arg in
1274 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1276 | -silent | --silent | --silen | --sile | --sil)
1277 continue ;;
7eed349e 1278 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
ff66d28f
PE
1279 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1280 esac
1281 case $ac_pass in
1282 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1283 2)
1284 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1285 if test $ac_must_keep_next = true; then
ec2075e9 1286 ac_must_keep_next=false # Got value, back to normal.
ff66d28f 1287 else
ec2075e9
BK
1288 case $ac_arg in
1289 *=* | --config-cache | -C | -disable-* | --disable-* \
1290 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1291 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1292 | -with-* | --with-* | -without-* | --without-* | --x)
1293 case "$ac_configure_args0 " in
1294 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1295 esac
1296 ;;
1297 -* ) ac_must_keep_next=true ;;
1298 esac
ff66d28f 1299 fi
7eed349e
PC
1300 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1301 # Get rid of the leading space.
1302 ac_sep=" "
ff66d28f
PE
1303 ;;
1304 esac
1305 done
1306done
1307$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1308$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1309
1310# When interrupted or exit'd, cleanup temporary files, and complete
1311# config.log. We remove comments because anyway the quotes in there
1312# would cause problems or look ugly.
7eed349e
PC
1313# WARNING: Be sure not to use single quotes in there, as some shells,
1314# such as our DU 5.0 friend, will then `close' the trap.
ff66d28f
PE
1315trap 'exit_status=$?
1316 # Save into config.log some information that might help in debugging.
1317 {
1318 echo
1319
1320 cat <<\_ASBOX
1321## ---------------- ##
1322## Cache variables. ##
1323## ---------------- ##
1324_ASBOX
1325 echo
1326 # The following way of writing the cache mishandles newlines in values,
7eed349e 1327{
ff66d28f 1328 (set) 2>&1 |
7eed349e
PC
1329 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1330 *ac_space=\ *)
ff66d28f 1331 sed -n \
7eed349e
PC
1332 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1333 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1334 ;;
ff66d28f 1335 *)
7eed349e
PC
1336 sed -n \
1337 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
ff66d28f 1338 ;;
7eed349e
PC
1339 esac;
1340}
ff66d28f
PE
1341 echo
1342
1343 cat <<\_ASBOX
1344## ----------------- ##
1345## Output variables. ##
1346## ----------------- ##
1347_ASBOX
1348 echo
1349 for ac_var in $ac_subst_vars
1350 do
7eed349e
PC
1351 eval ac_val=$`echo $ac_var`
1352 echo "$ac_var='"'"'$ac_val'"'"'"
ff66d28f
PE
1353 done | sort
1354 echo
1355
1356 if test -n "$ac_subst_files"; then
1357 cat <<\_ASBOX
7eed349e
PC
1358## ------------- ##
1359## Output files. ##
1360## ------------- ##
ff66d28f
PE
1361_ASBOX
1362 echo
1363 for ac_var in $ac_subst_files
1364 do
7eed349e
PC
1365 eval ac_val=$`echo $ac_var`
1366 echo "$ac_var='"'"'$ac_val'"'"'"
ff66d28f
PE
1367 done | sort
1368 echo
1369 fi
1370
1371 if test -s confdefs.h; then
1372 cat <<\_ASBOX
1373## ----------- ##
1374## confdefs.h. ##
1375## ----------- ##
1376_ASBOX
1377 echo
7eed349e 1378 sed "/^$/d" confdefs.h | sort
ff66d28f
PE
1379 echo
1380 fi
1381 test "$ac_signal" != 0 &&
1382 echo "$as_me: caught signal $ac_signal"
1383 echo "$as_me: exit $exit_status"
1384 } >&5
7eed349e
PC
1385 rm -f core *.core &&
1386 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
ff66d28f 1387 exit $exit_status
7eed349e 1388 ' 0
ff66d28f
PE
1389for ac_signal in 1 2 13 15; do
1390 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1391done
1392ac_signal=0
1393
1394# confdefs.h avoids OS command line length limits that DEFS can exceed.
7eed349e
PC
1395rm -rf conftest* confdefs.h
1396# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1397echo >confdefs.h
ff66d28f
PE
1398
1399# Predefined preprocessor variables.
1400
1401cat >>confdefs.h <<_ACEOF
1402#define PACKAGE_NAME "$PACKAGE_NAME"
1403_ACEOF
1404
1405
1406cat >>confdefs.h <<_ACEOF
1407#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1408_ACEOF
1409
1410
1411cat >>confdefs.h <<_ACEOF
1412#define PACKAGE_VERSION "$PACKAGE_VERSION"
1413_ACEOF
1414
b2dad0e3 1415
ff66d28f
PE
1416cat >>confdefs.h <<_ACEOF
1417#define PACKAGE_STRING "$PACKAGE_STRING"
1418_ACEOF
1419
1420
1421cat >>confdefs.h <<_ACEOF
1422#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1423_ACEOF
1424
1425
1426# Let the site file select an alternate cache file if it wants to.
b2dad0e3 1427# Prefer explicitly selected file to automatically selected ones.
7eed349e
PC
1428if test -z "$CONFIG_SITE"; then
1429 if test "x$prefix" != xNONE; then
1430 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1431 else
1432 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1433 fi
b2dad0e3 1434fi
7eed349e 1435for ac_site_file in $CONFIG_SITE; do
b2dad0e3 1436 if test -r "$ac_site_file"; then
ff66d28f
PE
1437 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1438echo "$as_me: loading site script $ac_site_file" >&6;}
1439 sed 's/^/| /' "$ac_site_file" >&5
b2dad0e3
BK
1440 . "$ac_site_file"
1441 fi
1442done
1443
1444if test -r "$cache_file"; then
ff66d28f
PE
1445 # Some versions of bash will fail to source /dev/null (special
1446 # files actually), so we avoid doing that.
1447 if test -f "$cache_file"; then
1448 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1449echo "$as_me: loading cache $cache_file" >&6;}
1450 case $cache_file in
7eed349e
PC
1451 [\\/]* | ?:[\\/]* ) . $cache_file;;
1452 *) . ./$cache_file;;
ff66d28f
PE
1453 esac
1454 fi
b2dad0e3 1455else
ff66d28f
PE
1456 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1457echo "$as_me: creating cache $cache_file" >&6;}
1458 >$cache_file
1459fi
1460
1461# Check that the precious variables saved in the cache have kept the same
1462# value.
1463ac_cache_corrupted=false
7eed349e
PC
1464for ac_var in `(set) 2>&1 |
1465 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
ff66d28f
PE
1466 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1467 eval ac_new_set=\$ac_env_${ac_var}_set
7eed349e
PC
1468 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1469 eval ac_new_val="\$ac_env_${ac_var}_value"
ff66d28f
PE
1470 case $ac_old_set,$ac_new_set in
1471 set,)
1472 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1473echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1474 ac_cache_corrupted=: ;;
1475 ,set)
1476 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1477echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1478 ac_cache_corrupted=: ;;
1479 ,);;
1480 *)
1481 if test "x$ac_old_val" != "x$ac_new_val"; then
deb984e6
PB
1482 # differences in whitespace do not lead to failure.
1483 ac_old_val_w=`echo x $ac_old_val`
1484 ac_new_val_w=`echo x $ac_new_val`
1485 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1486 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
ff66d28f 1487echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
deb984e6
PB
1488 ac_cache_corrupted=:
1489 else
1490 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1491echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1492 eval $ac_var=\$ac_old_val
1493 fi
1494 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1495echo "$as_me: former value: \`$ac_old_val'" >&2;}
1496 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1497echo "$as_me: current value: \`$ac_new_val'" >&2;}
ff66d28f
PE
1498 fi;;
1499 esac
1500 # Pass precious variables to config.status.
1501 if test "$ac_new_set" = set; then
1502 case $ac_new_val in
7eed349e
PC
1503 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1504 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ff66d28f
PE
1505 *) ac_arg=$ac_var=$ac_new_val ;;
1506 esac
1507 case " $ac_configure_args " in
1508 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1509 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1510 esac
1511 fi
1512done
1513if $ac_cache_corrupted; then
18c04407
RW
1514 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1515echo "$as_me: error: in \`$ac_pwd':" >&2;}
ff66d28f
PE
1516 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1517echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1518 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1519echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1520 { (exit 1); exit 1; }; }
b2dad0e3
BK
1521fi
1522
7eed349e
PC
1523ac_ext=c
1524ac_cpp='$CPP $CPPFLAGS'
1525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1527ac_compiler_gnu=$ac_cv_c_compiler_gnu
1528
b2dad0e3 1529
e2c20fae 1530
6706f116 1531
33590f13
BK
1532
1533
1534
aebb8c22 1535
aebb8c22 1536
ff66d28f
PE
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
18c04407
RW
1552
1553
1554
ff66d28f
PE
1555
1556
1557
1558
7eed349e 1559 ac_config_headers="$ac_config_headers config.h"
ff66d28f
PE
1560
1561
1562# This works around the fact that libtool configuration may change LD
1563# for this particular configuration, but some shells, instead of
1564# keeping the changes in LD private, export them just because LD is
1565# exported. Only used at the end of this file.
1566### am handles this now? ORIGINAL_LD_FOR_MULTILIBS=$LD
1567
1568# For libtool versioning info, format is CURRENT:REVISION:AGE
074c0065 1569libtool_VERSION=6:11:0
ff66d28f
PE
1570
1571
1572# Find the rest of the source tree framework.
076e5443 1573# Default to --enable-multilib
7eed349e 1574# Check whether --enable-multilib or --disable-multilib was given.
ff66d28f 1575if test "${enable_multilib+set}" = set; then
7eed349e
PC
1576 enableval="$enable_multilib"
1577 case "$enableval" in
ff66d28f
PE
1578 yes) multilib=yes ;;
1579 no) multilib=no ;;
1580 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1581echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1582 { (exit 1); exit 1; }; } ;;
1583 esac
1584else
1585 multilib=yes
7eed349e 1586fi;
ff66d28f
PE
1587
1588# We may get other options which we leave undocumented:
1589# --with-target-subdir, --with-multisrctop, --with-multisubdir
1590# See config-ml.in if you want the gory details.
1591
1592if test "$srcdir" = "."; then
1593 if test "$with_target_subdir" != "."; then
1594 multi_basedir="$srcdir/$with_multisrctop../.."
1595 else
1596 multi_basedir="$srcdir/$with_multisrctop.."
1597 fi
1598else
1599 multi_basedir="$srcdir/.."
1600fi
1601
1602
5b043f08
GK
1603# Even if the default multilib is not a cross compilation,
1604# it may be that some of the other multilibs are.
1605if test $cross_compiling = no && test $multilib = yes \
1606 && test "x${with_multisubdir}" != x ; then
1607 cross_compiling=maybe
1608fi
1609
7eed349e 1610 ac_config_commands="$ac_config_commands default-1"
ff66d28f
PE
1611
1612
076e5443
PB
1613# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1614#
1615# You will slowly go insane if you do not grok the following fact: when
1616# building v3 as part of the compiler, the top-level /target/ becomes the
1617# library's /host/. configure then causes --target to default to --host,
1618# exactly like any other package using autoconf. Therefore, 'target' and
1619# 'host' will always be the same. This makes sense both for native and
1620# cross compilers, just think about it for a little while. :-)
1621#
1622# Also, if v3 is being configured as part of a cross compiler, the top-level
1623# configure script will pass the "real" host as $with_cross_host.
1624#
1625# Do not delete or change the following two lines. For why, see
1626# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1627ac_aux_dir=
7eed349e
PC
1628for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1629 if test -f $ac_dir/install-sh; then
ff66d28f
PE
1630 ac_aux_dir=$ac_dir
1631 ac_install_sh="$ac_aux_dir/install-sh -c"
1632 break
7eed349e 1633 elif test -f $ac_dir/install.sh; then
ff66d28f 1634 ac_aux_dir=$ac_dir
b2dad0e3
BK
1635 ac_install_sh="$ac_aux_dir/install.sh -c"
1636 break
7eed349e 1637 elif test -f $ac_dir/shtool; then
ff66d28f
PE
1638 ac_aux_dir=$ac_dir
1639 ac_install_sh="$ac_aux_dir/shtool install -c"
1640 break
b2dad0e3
BK
1641 fi
1642done
1643if test -z "$ac_aux_dir"; then
7eed349e
PC
1644 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1645echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
ff66d28f 1646 { (exit 1); exit 1; }; }
b2dad0e3 1647fi
7eed349e
PC
1648ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1649ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1650ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
ff66d28f 1651
ff66d28f 1652# Make sure we can run config.sub.
7eed349e
PC
1653$ac_config_sub sun4 >/dev/null 2>&1 ||
1654 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1655echo "$as_me: error: cannot run $ac_config_sub" >&2;}
ff66d28f
PE
1656 { (exit 1); exit 1; }; }
1657
7eed349e
PC
1658echo "$as_me:$LINENO: checking build system type" >&5
1659echo $ECHO_N "checking build system type... $ECHO_C" >&6
ff66d28f
PE
1660if test "${ac_cv_build+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1662else
7eed349e
PC
1663 ac_cv_build_alias=$build_alias
1664test -z "$ac_cv_build_alias" &&
1665 ac_cv_build_alias=`$ac_config_guess`
1666test -z "$ac_cv_build_alias" &&
ff66d28f
PE
1667 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1668echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1669 { (exit 1); exit 1; }; }
7eed349e
PC
1670ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1672echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
ff66d28f
PE
1673 { (exit 1); exit 1; }; }
1674
1675fi
7eed349e
PC
1676echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1677echo "${ECHO_T}$ac_cv_build" >&6
ff66d28f 1678build=$ac_cv_build
7eed349e
PC
1679build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1682
1683
1684echo "$as_me:$LINENO: checking host system type" >&5
1685echo $ECHO_N "checking host system type... $ECHO_C" >&6
ff66d28f
PE
1686if test "${ac_cv_host+set}" = set; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1688else
7eed349e
PC
1689 ac_cv_host_alias=$host_alias
1690test -z "$ac_cv_host_alias" &&
1691 ac_cv_host_alias=$ac_cv_build_alias
1692ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1693 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1694echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
ff66d28f
PE
1695 { (exit 1); exit 1; }; }
1696
1697fi
7eed349e
PC
1698echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1699echo "${ECHO_T}$ac_cv_host" >&6
ff66d28f 1700host=$ac_cv_host
7eed349e
PC
1701host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1702host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1703host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1704
1705
1706echo "$as_me:$LINENO: checking target system type" >&5
1707echo $ECHO_N "checking target system type... $ECHO_C" >&6
ff66d28f
PE
1708if test "${ac_cv_target+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
1710else
7eed349e
PC
1711 ac_cv_target_alias=$target_alias
1712test "x$ac_cv_target_alias" = "x" &&
1713 ac_cv_target_alias=$ac_cv_host_alias
1714ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1715 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1716echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
ff66d28f
PE
1717 { (exit 1); exit 1; }; }
1718
1719fi
7eed349e
PC
1720echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1721echo "${ECHO_T}$ac_cv_target" >&6
ff66d28f 1722target=$ac_cv_target
7eed349e
PC
1723target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1724target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1725target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
b2dad0e3 1726
b2dad0e3
BK
1727
1728# The aliases save the names the user supplied, while $host etc.
1729# will get canonicalized.
ff66d28f
PE
1730test -n "$target_alias" &&
1731 test "$program_prefix$program_suffix$program_transform_name" = \
1732 NONENONEs,x,x, &&
1733 program_prefix=${target_alias}-
1734target_alias=${target_alias-$host_alias}
1735
1736# Handy for debugging:
1737#AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1738
0df3f383
PE
1739if test "$build" != "$host"; then
1740 # We are being configured with some form of cross compiler.
1741 GLIBCXX_IS_NATIVE=false
0646b059
GK
1742 case "$host","$target" in
1743 # Darwin crosses can use the host system's libraries and headers,
1744 # because of the fat library support. Of course, it must be the
1745 # same version of Darwin on both sides. Allow the user to
1746 # just say --target=foo-darwin without a version number to mean
1747 # "the version on this system".
1748 *-*-darwin*,*-*-darwin*)
1749 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
1750 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
1751 if test $hostos = $targetos -o $targetos = darwin ; then
1752 GLIBCXX_IS_NATIVE=true
1753 fi
1754 ;;
1755
1756 *)
3a24bf5d 1757
0646b059
GK
1758 ;;
1759 esac
0df3f383
PE
1760else
1761 GLIBCXX_IS_NATIVE=true
1762fi
1763
ff66d28f
PE
1764# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1765# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1766# 1.x: minimum required version
1767# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1768# of other PACKAGE_* variables will, however, and there's nothing
fbe057bb 1769# we can do about that; they come from AC_INIT).
ff66d28f
PE
1770# foreign: we don't follow the normal rules for GNU packages (no COPYING
1771# file in the top srcdir, etc, etc), so stop complaining.
1772# no-dependencies: turns off auto dependency generation (just for now)
2d52e9e3
PE
1773# -Wall: turns on all automake warnings...
1774# -Wno-portability: ...except this one, since GNU make is now required.
7eed349e 1775am__api_version="1.9"
ff66d28f
PE
1776# Find a good install program. We prefer a C program (faster),
1777# so one script is as good as another. But avoid the broken or
1778# incompatible versions:
1779# SysV /etc/install, /usr/sbin/install
1780# SunOS /usr/etc/install
1781# IRIX /sbin/install
1782# AIX /bin/install
1783# AmigaOS /C/install, which installs bootblocks on floppy discs
1784# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1785# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1786# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ec2075e9 1787# OS/2's system install, which has a completely different semantic
ff66d28f 1788# ./install, which can be erroneously created by make from ./install.sh.
d60a2d4d 1789# Reject install programs that cannot install multiple files.
7eed349e
PC
1790echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1791echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
ff66d28f
PE
1792if test -z "$INSTALL"; then
1793if test "${ac_cv_path_install+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1795else
1796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797for as_dir in $PATH
1798do
1799 IFS=$as_save_IFS
1800 test -z "$as_dir" && as_dir=.
1801 # Account for people who put trailing slashes in PATH elements.
1802case $as_dir/ in
1803 ./ | .// | /cC/* | \
1804 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ec2075e9 1805 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
ff66d28f
PE
1806 /usr/ucb/* ) ;;
1807 *)
1808 # OSF1 and SCO ODT 3.0 have their own names for install.
1809 # Don't use installbsd from OSF since it installs stuff as root
1810 # by default.
1811 for ac_prog in ginstall scoinst install; do
1812 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 1813 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
ec2075e9
BK
1814 if test $ac_prog = install &&
1815 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1816 # AIX install. It has an incompatible calling convention.
1817 :
1818 elif test $ac_prog = install &&
1819 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1820 # program-specific install script used by HP pwplus--don't use.
1821 :
1822 else
d60a2d4d
ILT
1823 rm -rf conftest.one conftest.two conftest.dir
1824 echo one > conftest.one
1825 echo two > conftest.two
1826 mkdir conftest.dir
1827 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1828 test -s conftest.one && test -s conftest.two &&
1829 test -s conftest.dir/conftest.one &&
1830 test -s conftest.dir/conftest.two
1831 then
1832 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1833 break 3
1834 fi
ec2075e9
BK
1835 fi
1836 fi
ff66d28f
PE
1837 done
1838 done
1839 ;;
b2dad0e3 1840esac
ff66d28f 1841done
b2dad0e3 1842
d60a2d4d 1843rm -rf conftest.one conftest.two conftest.dir
b2dad0e3 1844
b2dad0e3 1845fi
ff66d28f
PE
1846 if test "${ac_cv_path_install+set}" = set; then
1847 INSTALL=$ac_cv_path_install
1848 else
d60a2d4d
ILT
1849 # As a last resort, use the slow shell script. Don't cache a
1850 # value for INSTALL within a source directory, because that will
ff66d28f 1851 # break other packages using the cache if that directory is
d60a2d4d 1852 # removed, or if the value is a relative name.
ff66d28f
PE
1853 INSTALL=$ac_install_sh
1854 fi
1855fi
7eed349e
PC
1856echo "$as_me:$LINENO: result: $INSTALL" >&5
1857echo "${ECHO_T}$INSTALL" >&6
b2dad0e3 1858
ff66d28f
PE
1859# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1860# It thinks the first close brace ends the variable substitution.
1861test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
b2dad0e3 1862
ff66d28f 1863test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
b2dad0e3 1864
ff66d28f 1865test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
b2dad0e3 1866
7eed349e
PC
1867echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1868echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
ff66d28f
PE
1869# Just in case
1870sleep 1
1871echo timestamp > conftest.file
1872# Do `set' in a subshell so we don't clobber the current shell's
1873# arguments. Must try -L first in case configure is actually a
1874# symlink; some systems play weird games with the mod time of symlinks
1875# (eg FreeBSD returns the mod time of the symlink's containing
1876# directory).
1877if (
1878 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1879 if test "$*" = "X"; then
1880 # -L didn't work.
1881 set X `ls -t $srcdir/configure conftest.file`
1882 fi
1883 rm -f conftest.file
1884 if test "$*" != "X $srcdir/configure conftest.file" \
1885 && test "$*" != "X conftest.file $srcdir/configure"; then
b2dad0e3 1886
ff66d28f
PE
1887 # If neither matched, then we have a broken ls. This can happen
1888 # if, for instance, CONFIG_SHELL is bash and it inherits a
1889 # broken ls alias from the environment. This has actually
1890 # happened. Such a system could not be considered "sane".
1891 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1892alias in your environment" >&5
1893echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1894alias in your environment" >&2;}
1895 { (exit 1); exit 1; }; }
1896 fi
b2dad0e3 1897
ff66d28f
PE
1898 test "$2" = conftest.file
1899 )
1900then
1901 # Ok.
1902 :
33590f13 1903else
ff66d28f
PE
1904 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1905Check your system clock" >&5
1906echo "$as_me: error: newly created file is older than distributed files!
1907Check your system clock" >&2;}
1908 { (exit 1); exit 1; }; }
33590f13 1909fi
7eed349e
PC
1910echo "$as_me:$LINENO: result: yes" >&5
1911echo "${ECHO_T}yes" >&6
ff66d28f 1912test "$program_prefix" != NONE &&
7eed349e 1913 program_transform_name="s,^,$program_prefix,;$program_transform_name"
ff66d28f
PE
1914# Use a double $ so make ignores it.
1915test "$program_suffix" != NONE &&
7eed349e 1916 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
ff66d28f
PE
1917# Double any \ or $. echo might interpret backslashes.
1918# By default was `s,x,x', remove it if useless.
1919cat <<\_ACEOF >conftest.sed
1920s/[\\$]/&&/g;s/;s,x,x,$//
1921_ACEOF
1922program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
7eed349e 1923rm conftest.sed
b2dad0e3 1924
ff66d28f
PE
1925# expand $ac_aux_dir to an absolute path
1926am_aux_dir=`cd $ac_aux_dir && pwd`
33590f13 1927
ff66d28f
PE
1928test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1929# Use eval to expand $SHELL
1930if eval "$MISSING --run true"; then
1931 am_missing_run="$MISSING --run "
b2dad0e3 1932else
ff66d28f
PE
1933 am_missing_run=
1934 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1935echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
33590f13
BK
1936fi
1937
7eed349e
PC
1938if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1939 # We used to keeping the `.' as first argument, in order to
1940 # allow $(mkdir_p) to be used without argument. As in
1941 # $(mkdir_p) $(somedir)
1942 # where $(somedir) is conditionally defined. However this is wrong
1943 # for two reasons:
1944 # 1. if the package is installed by a user who cannot write `.'
1945 # make install will fail,
1946 # 2. the above comment should most certainly read
1947 # $(mkdir_p) $(DESTDIR)$(somedir)
1948 # so it does not work when $(somedir) is undefined and
1949 # $(DESTDIR) is not.
1950 # To support the latter case, we have to write
1951 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1952 # so the `.' trick is pointless.
1953 mkdir_p='mkdir -p --'
1954else
1955 # On NextStep and OpenStep, the `mkdir' command does not
1956 # recognize any option. It will interpret all options as
1957 # directories to create, and then abort because `.' already
1958 # exists.
1959 for d in ./-p ./--version;
1960 do
1961 test -d $d && rmdir $d
1962 done
1963 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1964 if test -f "$ac_aux_dir/mkinstalldirs"; then
1965 mkdir_p='$(mkinstalldirs)'
7eaf73d7 1966 else
7eed349e 1967 mkdir_p='$(install_sh) -d'
7eaf73d7
KC
1968 fi
1969fi
1970
ff66d28f 1971for ac_prog in gawk mawk nawk awk
c98b201b 1972do
ff66d28f 1973 # Extract the first word of "$ac_prog", so it can be a program name with args.
c98b201b 1974set dummy $ac_prog; ac_word=$2
7eed349e
PC
1975echo "$as_me:$LINENO: checking for $ac_word" >&5
1976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
1977if test "${ac_cv_prog_AWK+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
c98b201b
PE
1979else
1980 if test -n "$AWK"; then
1981 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1982else
ff66d28f
PE
1983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984for as_dir in $PATH
1985do
1986 IFS=$as_save_IFS
1987 test -z "$as_dir" && as_dir=.
1988 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 1989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
1990 ac_cv_prog_AWK="$ac_prog"
1991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1992 break 2
1993 fi
1994done
1995done
1996
c98b201b
PE
1997fi
1998fi
ff66d28f 1999AWK=$ac_cv_prog_AWK
c98b201b 2000if test -n "$AWK"; then
7eed349e
PC
2001 echo "$as_me:$LINENO: result: $AWK" >&5
2002echo "${ECHO_T}$AWK" >&6
c98b201b 2003else
7eed349e
PC
2004 echo "$as_me:$LINENO: result: no" >&5
2005echo "${ECHO_T}no" >&6
c98b201b
PE
2006fi
2007
ff66d28f 2008 test -n "$AWK" && break
c98b201b
PE
2009done
2010
7eed349e
PC
2011echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2012echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2013set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2014if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
ff66d28f
PE
2015 echo $ECHO_N "(cached) $ECHO_C" >&6
2016else
2017 cat >conftest.make <<\_ACEOF
2018all:
7eed349e 2019 @echo 'ac_maketemp="$(MAKE)"'
ff66d28f
PE
2020_ACEOF
2021# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7eed349e
PC
2022eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2023if test -n "$ac_maketemp"; then
2024 eval ac_cv_prog_make_${ac_make}_set=yes
2025else
2026 eval ac_cv_prog_make_${ac_make}_set=no
2027fi
ff66d28f 2028rm -f conftest.make
33590f13 2029fi
7eed349e
PC
2030if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2031 echo "$as_me:$LINENO: result: yes" >&5
2032echo "${ECHO_T}yes" >&6
ff66d28f 2033 SET_MAKE=
33590f13 2034else
7eed349e
PC
2035 echo "$as_me:$LINENO: result: no" >&5
2036echo "${ECHO_T}no" >&6
ff66d28f 2037 SET_MAKE="MAKE=${MAKE-make}"
33590f13
BK
2038fi
2039
ff66d28f
PE
2040rm -rf .tst 2>/dev/null
2041mkdir .tst 2>/dev/null
2042if test -d .tst; then
2043 am__leading_dot=.
2044else
2045 am__leading_dot=_
2046fi
2047rmdir .tst 2>/dev/null
33590f13 2048
7eed349e
PC
2049# test to see if srcdir already configured
2050if test "`cd $srcdir && pwd`" != "`pwd`" &&
2051 test -f $srcdir/config.status; then
2052 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
ff66d28f
PE
2053echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2054 { (exit 1); exit 1; }; }
33590f13
BK
2055fi
2056
ff66d28f
PE
2057# test whether we have cygpath
2058if test -z "$CYGPATH_W"; then
2059 if (cygpath --version) >/dev/null 2>/dev/null; then
2060 CYGPATH_W='cygpath -w'
2061 else
2062 CYGPATH_W=echo
2063 fi
33590f13
BK
2064fi
2065
2066
ff66d28f 2067# Define the identity of the package.
fbe057bb 2068 PACKAGE='libstdc++'
ff66d28f 2069 VERSION='version-unused'
b731048b
BK
2070
2071
ff66d28f 2072# Some tools Automake needs.
33590f13 2073
ff66d28f 2074ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
33590f13 2075
33590f13 2076
ff66d28f 2077AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
33590f13 2078
ff66d28f
PE
2079
2080AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2081
2082
2083AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2084
2085
2086MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2087
7eed349e 2088install_sh=${install_sh-"$am_aux_dir/install-sh"}
ff66d28f
PE
2089
2090# Installed binaries are usually stripped using `strip' when the user
2091# run `make install-strip'. However `strip' might not be the right
2092# tool to use in cross-compilation environments, therefore Automake
2093# will honor the `STRIP' environment variable to overrule this program.
2094if test "$cross_compiling" != no; then
2095 if test -n "$ac_tool_prefix"; then
2096 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2097set dummy ${ac_tool_prefix}strip; ac_word=$2
7eed349e
PC
2098echo "$as_me:$LINENO: checking for $ac_word" >&5
2099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
2100if test "${ac_cv_prog_STRIP+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
33590f13 2102else
ff66d28f
PE
2103 if test -n "$STRIP"; then
2104 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
33590f13 2105else
ff66d28f
PE
2106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107for as_dir in $PATH
2108do
2109 IFS=$as_save_IFS
2110 test -z "$as_dir" && as_dir=.
2111 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 2112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
2113 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115 break 2
2116 fi
2117done
2118done
2119
33590f13
BK
2120fi
2121fi
ff66d28f
PE
2122STRIP=$ac_cv_prog_STRIP
2123if test -n "$STRIP"; then
7eed349e
PC
2124 echo "$as_me:$LINENO: result: $STRIP" >&5
2125echo "${ECHO_T}$STRIP" >&6
33590f13 2126else
7eed349e
PC
2127 echo "$as_me:$LINENO: result: no" >&5
2128echo "${ECHO_T}no" >&6
33590f13
BK
2129fi
2130
ff66d28f
PE
2131fi
2132if test -z "$ac_cv_prog_STRIP"; then
2133 ac_ct_STRIP=$STRIP
2134 # Extract the first word of "strip", so it can be a program name with args.
2135set dummy strip; ac_word=$2
7eed349e
PC
2136echo "$as_me:$LINENO: checking for $ac_word" >&5
2137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
2138if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
33590f13 2140else
ff66d28f
PE
2141 if test -n "$ac_ct_STRIP"; then
2142 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
33590f13 2143else
ff66d28f
PE
2144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145for as_dir in $PATH
2146do
2147 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=.
2149 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 2150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
2151 ac_cv_prog_ac_ct_STRIP="strip"
2152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153 break 2
b2dad0e3 2154 fi
ff66d28f
PE
2155done
2156done
2157
7eed349e 2158 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
b2dad0e3
BK
2159fi
2160fi
ff66d28f
PE
2161ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2162if test -n "$ac_ct_STRIP"; then
7eed349e
PC
2163 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2164echo "${ECHO_T}$ac_ct_STRIP" >&6
b2dad0e3 2165else
7eed349e
PC
2166 echo "$as_me:$LINENO: result: no" >&5
2167echo "${ECHO_T}no" >&6
b2dad0e3
BK
2168fi
2169
7eed349e 2170 STRIP=$ac_ct_STRIP
b2dad0e3 2171else
ff66d28f 2172 STRIP="$ac_cv_prog_STRIP"
b2dad0e3 2173fi
ff66d28f 2174
b2dad0e3 2175fi
7eed349e 2176INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
b2dad0e3 2177
ff66d28f
PE
2178# We need awk for the "check" target. The system "awk" is bad on
2179# some platforms.
a60945f8
PC
2180# Always define AMTAR for backward compatibility.
2181
2182AMTAR=${AMTAR-"${am_missing_run}tar"}
2183
2184am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2185
2186
b2dad0e3 2187
b2dad0e3 2188
b2dad0e3 2189
ff66d28f 2190
3a24bf5d
KC
2191
2192
2193
2194
ff66d28f
PE
2195# Runs configure.host, finds CC, CXX, and assorted other critical bits. Sets
2196# up critical shell variables.
2197
464aea98
JM
2198ac_ext=c
2199ac_cpp='$CPP $CPPFLAGS'
2200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2202ac_compiler_gnu=$ac_cv_c_compiler_gnu
7eed349e
PC
2203echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2204echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
464aea98
JM
2205# On Suns, sometimes $CPP names a directory.
2206if test -n "$CPP" && test -d "$CPP"; then
2207 CPP=
2208fi
2209if test -z "$CPP"; then
2210 if test "${ac_cv_prog_CPP+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212else
2213 # Double quotes because CPP needs to be expanded
2214 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2215 do
2216 ac_preproc_ok=false
2217for ac_c_preproc_warn_flag in '' yes
2218do
2219 # Use a header file that comes with gcc, so configuring glibc
2220 # with a fresh cross-compiler works.
2221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2222 # <limits.h> exists even on freestanding compilers.
2223 # On the NeXT, cc -E runs the code through the compiler's parser,
2224 # not just through cpp. "Syntax error" is here to catch this case.
2225 cat >conftest.$ac_ext <<_ACEOF
2226/* confdefs.h. */
2227_ACEOF
2228cat confdefs.h >>conftest.$ac_ext
2229cat >>conftest.$ac_ext <<_ACEOF
2230/* end confdefs.h. */
2231#ifdef __STDC__
2232# include <limits.h>
2233#else
2234# include <assert.h>
2235#endif
2236 Syntax error
2237_ACEOF
7eed349e
PC
2238if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
464aea98
JM
2240 ac_status=$?
2241 grep -v '^ *+' conftest.er1 >conftest.err
2242 rm -f conftest.er1
2243 cat conftest.err >&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
2245 (exit $ac_status); } >/dev/null; then
2246 if test -s conftest.err; then
2247 ac_cpp_err=$ac_c_preproc_warn_flag
2248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2249 else
2250 ac_cpp_err=
2251 fi
2252else
2253 ac_cpp_err=yes
2254fi
2255if test -z "$ac_cpp_err"; then
464aea98
JM
2256 :
2257else
2258 echo "$as_me: failed program was:" >&5
2259sed 's/^/| /' conftest.$ac_ext >&5
2260
2261 # Broken: fails on valid input.
2262continue
2263fi
2264rm -f conftest.err conftest.$ac_ext
2265
7eed349e 2266 # OK, works on sane cases. Now check whether non-existent headers
464aea98
JM
2267 # can be detected and how.
2268 cat >conftest.$ac_ext <<_ACEOF
2269/* confdefs.h. */
2270_ACEOF
2271cat confdefs.h >>conftest.$ac_ext
2272cat >>conftest.$ac_ext <<_ACEOF
2273/* end confdefs.h. */
2274#include <ac_nonexistent.h>
2275_ACEOF
7eed349e
PC
2276if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
464aea98
JM
2278 ac_status=$?
2279 grep -v '^ *+' conftest.er1 >conftest.err
2280 rm -f conftest.er1
2281 cat conftest.err >&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
2283 (exit $ac_status); } >/dev/null; then
2284 if test -s conftest.err; then
2285 ac_cpp_err=$ac_c_preproc_warn_flag
2286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2287 else
2288 ac_cpp_err=
2289 fi
2290else
2291 ac_cpp_err=yes
2292fi
2293if test -z "$ac_cpp_err"; then
464aea98
JM
2294 # Broken: success on invalid input.
2295continue
2296else
2297 echo "$as_me: failed program was:" >&5
2298sed 's/^/| /' conftest.$ac_ext >&5
2299
2300 # Passes both tests.
2301ac_preproc_ok=:
2302break
2303fi
2304rm -f conftest.err conftest.$ac_ext
2305
2306done
2307# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2308rm -f conftest.err conftest.$ac_ext
2309if $ac_preproc_ok; then
2310 break
2311fi
2312
2313 done
2314 ac_cv_prog_CPP=$CPP
2315
2316fi
2317 CPP=$ac_cv_prog_CPP
2318else
2319 ac_cv_prog_CPP=$CPP
2320fi
7eed349e
PC
2321echo "$as_me:$LINENO: result: $CPP" >&5
2322echo "${ECHO_T}$CPP" >&6
464aea98
JM
2323ac_preproc_ok=false
2324for ac_c_preproc_warn_flag in '' yes
2325do
2326 # Use a header file that comes with gcc, so configuring glibc
2327 # with a fresh cross-compiler works.
2328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2329 # <limits.h> exists even on freestanding compilers.
2330 # On the NeXT, cc -E runs the code through the compiler's parser,
2331 # not just through cpp. "Syntax error" is here to catch this case.
2332 cat >conftest.$ac_ext <<_ACEOF
2333/* confdefs.h. */
2334_ACEOF
2335cat confdefs.h >>conftest.$ac_ext
2336cat >>conftest.$ac_ext <<_ACEOF
2337/* end confdefs.h. */
2338#ifdef __STDC__
2339# include <limits.h>
2340#else
2341# include <assert.h>
2342#endif
2343 Syntax error
2344_ACEOF
7eed349e
PC
2345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
464aea98
JM
2347 ac_status=$?
2348 grep -v '^ *+' conftest.er1 >conftest.err
2349 rm -f conftest.er1
2350 cat conftest.err >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
2352 (exit $ac_status); } >/dev/null; then
2353 if test -s conftest.err; then
2354 ac_cpp_err=$ac_c_preproc_warn_flag
2355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2356 else
2357 ac_cpp_err=
2358 fi
2359else
2360 ac_cpp_err=yes
2361fi
2362if test -z "$ac_cpp_err"; then
464aea98
JM
2363 :
2364else
2365 echo "$as_me: failed program was:" >&5
2366sed 's/^/| /' conftest.$ac_ext >&5
2367
2368 # Broken: fails on valid input.
2369continue
2370fi
2371rm -f conftest.err conftest.$ac_ext
2372
7eed349e 2373 # OK, works on sane cases. Now check whether non-existent headers
464aea98
JM
2374 # can be detected and how.
2375 cat >conftest.$ac_ext <<_ACEOF
2376/* confdefs.h. */
2377_ACEOF
2378cat confdefs.h >>conftest.$ac_ext
2379cat >>conftest.$ac_ext <<_ACEOF
2380/* end confdefs.h. */
2381#include <ac_nonexistent.h>
2382_ACEOF
7eed349e
PC
2383if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
464aea98
JM
2385 ac_status=$?
2386 grep -v '^ *+' conftest.er1 >conftest.err
2387 rm -f conftest.er1
2388 cat conftest.err >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
2390 (exit $ac_status); } >/dev/null; then
2391 if test -s conftest.err; then
2392 ac_cpp_err=$ac_c_preproc_warn_flag
2393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2394 else
2395 ac_cpp_err=
2396 fi
2397else
2398 ac_cpp_err=yes
2399fi
2400if test -z "$ac_cpp_err"; then
464aea98
JM
2401 # Broken: success on invalid input.
2402continue
2403else
2404 echo "$as_me: failed program was:" >&5
2405sed 's/^/| /' conftest.$ac_ext >&5
2406
2407 # Passes both tests.
2408ac_preproc_ok=:
2409break
2410fi
2411rm -f conftest.err conftest.$ac_ext
2412
2413done
2414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2415rm -f conftest.err conftest.$ac_ext
2416if $ac_preproc_ok; then
2417 :
2418else
18c04407
RW
2419 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2420echo "$as_me: error: in \`$ac_pwd':" >&2;}
2421{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
464aea98
JM
2422See \`config.log' for more details." >&5
2423echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2424See \`config.log' for more details." >&2;}
18c04407 2425 { (exit 1); exit 1; }; }; }
464aea98
JM
2426fi
2427
2428ac_ext=c
2429ac_cpp='$CPP $CPPFLAGS'
2430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432ac_compiler_gnu=$ac_cv_c_compiler_gnu
2433
2434
7eed349e
PC
2435echo "$as_me:$LINENO: checking for egrep" >&5
2436echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2437if test "${ac_cv_prog_egrep+set}" = set; then
464aea98
JM
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2439else
7eed349e
PC
2440 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2441 then ac_cv_prog_egrep='grep -E'
2442 else ac_cv_prog_egrep='egrep'
464aea98
JM
2443 fi
2444fi
7eed349e
PC
2445echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2446echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2447 EGREP=$ac_cv_prog_egrep
464aea98
JM
2448
2449
2450
82ba99d5
PE
2451 # Keep these sync'd with the list in Makefile.am. The first provides an
2452 # expandable list at autoconf time; the second provides an expandable list
2453 # (i.e., shell variable) at configure time.
2454
4312e020 2455 SUBDIRS='include libmath libsupc++ src doc po testsuite'
82ba99d5 2456
ff66d28f
PE
2457 # These need to be absolute paths, yet at the same time need to
2458 # canonicalize only relative paths, because then amd will not unmount
2459 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
2460 glibcxx_builddir=`${PWDCMD-pwd}`
2461 case $srcdir in
2462 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
2463 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
2464 esac
2465 toplevel_srcdir=${glibcxx_srcdir}/..
2466
2467
2468
2469
2470 # We use these options to decide which functions to include. They are
2471 # set from the top level.
2472
7eed349e 2473# Check whether --with-target-subdir or --without-target-subdir was given.
ff66d28f 2474if test "${with_target_subdir+set}" = set; then
7eed349e 2475 withval="$with_target_subdir"
ff66d28f 2476
7eed349e 2477fi;
ff66d28f
PE
2478
2479
7eed349e 2480# Check whether --with-cross-host or --without-cross-host was given.
ff66d28f 2481if test "${with_cross_host+set}" = set; then
7eed349e 2482 withval="$with_cross_host"
ff66d28f 2483
7eed349e 2484fi;
ff66d28f
PE
2485
2486
7eed349e 2487# Check whether --with-newlib or --without-newlib was given.
ff66d28f 2488if test "${with_newlib+set}" = set; then
7eed349e 2489 withval="$with_newlib"
ff66d28f 2490
7eed349e 2491fi;
ff66d28f 2492
f6dda651
PE
2493 # We're almost certainly being configured before anything else which uses
2494 # C++, so all of our AC_PROG_* discoveries will be cached. It's vital that
2495 # we not cache the value of CXX that we "discover" here, because it's set
2496 # to something unique for us and libjava. Other target libraries need to
2497 # find CXX for themselves. We yank the rug out from under the normal AC_*
2498 # process by sneakily renaming the cache variable. This also lets us debug
2499 # the value of "our" CXX in postmortems.
2500 #
2501 # We must also force CXX to /not/ be a precious variable, otherwise the
2502 # wrong (non-multilib-adjusted) value will be used in multilibs. This
2503 # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS. And as a side
2504 # effect, CXXFLAGS is no longer automagically subst'd, so we have to do
2505 # that ourselves. Un-preciousing AC_PROG_CC also affects CC and CFLAGS.
2506 #
2507 # -fno-builtin must be present here so that a non-conflicting form of
2508 # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
2509
2510
2511
2512
2513 save_CXXFLAGS="$CXXFLAGS"
2514 CXXFLAGS="$CXXFLAGS -fno-builtin"
ff66d28f
PE
2515 ac_ext=c
2516ac_cpp='$CPP $CPPFLAGS'
2517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2519ac_compiler_gnu=$ac_cv_c_compiler_gnu
2520if test -n "$ac_tool_prefix"; then
2521 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2522set dummy ${ac_tool_prefix}gcc; ac_word=$2
7eed349e
PC
2523echo "$as_me:$LINENO: checking for $ac_word" >&5
2524echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
2525if test "${ac_cv_prog_CC+set}" = set; then
2526 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2527else
ff66d28f
PE
2528 if test -n "$CC"; then
2529 ac_cv_prog_CC="$CC" # Let the user override the test.
b2dad0e3 2530else
ff66d28f
PE
2531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532for as_dir in $PATH
2533do
2534 IFS=$as_save_IFS
2535 test -z "$as_dir" && as_dir=.
2536 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 2537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
2538 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 break 2
2541 fi
2542done
2543done
2544
b2dad0e3
BK
2545fi
2546fi
ff66d28f
PE
2547CC=$ac_cv_prog_CC
2548if test -n "$CC"; then
7eed349e
PC
2549 echo "$as_me:$LINENO: result: $CC" >&5
2550echo "${ECHO_T}$CC" >&6
b2dad0e3 2551else
7eed349e
PC
2552 echo "$as_me:$LINENO: result: no" >&5
2553echo "${ECHO_T}no" >&6
b2dad0e3
BK
2554fi
2555
ff66d28f
PE
2556fi
2557if test -z "$ac_cv_prog_CC"; then
2558 ac_ct_CC=$CC
2559 # Extract the first word of "gcc", so it can be a program name with args.
2560set dummy gcc; ac_word=$2
7eed349e
PC
2561echo "$as_me:$LINENO: checking for $ac_word" >&5
2562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
2563if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2565else
ff66d28f
PE
2566 if test -n "$ac_ct_CC"; then
2567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b2dad0e3 2568else
ff66d28f
PE
2569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570for as_dir in $PATH
2571do
2572 IFS=$as_save_IFS
2573 test -z "$as_dir" && as_dir=.
2574 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 2575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
2576 ac_cv_prog_ac_ct_CC="gcc"
2577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 break 2
2579 fi
2580done
2581done
2582
b2dad0e3
BK
2583fi
2584fi
ff66d28f
PE
2585ac_ct_CC=$ac_cv_prog_ac_ct_CC
2586if test -n "$ac_ct_CC"; then
7eed349e
PC
2587 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2588echo "${ECHO_T}$ac_ct_CC" >&6
b2dad0e3 2589else
7eed349e
PC
2590 echo "$as_me:$LINENO: result: no" >&5
2591echo "${ECHO_T}no" >&6
b2dad0e3 2592fi
b2dad0e3 2593
7eed349e 2594 CC=$ac_ct_CC
ff66d28f
PE
2595else
2596 CC="$ac_cv_prog_CC"
b2dad0e3
BK
2597fi
2598
ff66d28f 2599if test -z "$CC"; then
7eed349e
PC
2600 if test -n "$ac_tool_prefix"; then
2601 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ff66d28f 2602set dummy ${ac_tool_prefix}cc; ac_word=$2
7eed349e
PC
2603echo "$as_me:$LINENO: checking for $ac_word" >&5
2604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
2605if test "${ac_cv_prog_CC+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2607else
2608 if test -n "$CC"; then
2609 ac_cv_prog_CC="$CC" # Let the user override the test.
2610else
2611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612for as_dir in $PATH
2613do
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 2617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
2618 ac_cv_prog_CC="${ac_tool_prefix}cc"
2619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 break 2
b2dad0e3 2621 fi
ff66d28f
PE
2622done
2623done
93b85586 2624
ff66d28f
PE
2625fi
2626fi
2627CC=$ac_cv_prog_CC
2628if test -n "$CC"; then
7eed349e
PC
2629 echo "$as_me:$LINENO: result: $CC" >&5
2630echo "${ECHO_T}$CC" >&6
e08c673e 2631else
7eed349e
PC
2632 echo "$as_me:$LINENO: result: no" >&5
2633echo "${ECHO_T}no" >&6
e08c673e
PC
2634fi
2635
7eed349e
PC
2636fi
2637if test -z "$ac_cv_prog_CC"; then
2638 ac_ct_CC=$CC
2639 # Extract the first word of "cc", so it can be a program name with args.
2640set dummy cc; ac_word=$2
2641echo "$as_me:$LINENO: checking for $ac_word" >&5
2642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2643if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2645else
2646 if test -n "$ac_ct_CC"; then
2647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2648else
2649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2650for as_dir in $PATH
2651do
2652 IFS=$as_save_IFS
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2656 ac_cv_prog_ac_ct_CC="cc"
2657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 break 2
8a165db0 2659 fi
7eed349e
PC
2660done
2661done
2662
2663fi
2664fi
2665ac_ct_CC=$ac_cv_prog_ac_ct_CC
2666if test -n "$ac_ct_CC"; then
2667 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2668echo "${ECHO_T}$ac_ct_CC" >&6
2669else
2670 echo "$as_me:$LINENO: result: no" >&5
2671echo "${ECHO_T}no" >&6
2672fi
2673
2674 CC=$ac_ct_CC
2675else
2676 CC="$ac_cv_prog_CC"
2677fi
2678
ff66d28f
PE
2679fi
2680if test -z "$CC"; then
2681 # Extract the first word of "cc", so it can be a program name with args.
2682set dummy cc; ac_word=$2
7eed349e
PC
2683echo "$as_me:$LINENO: checking for $ac_word" >&5
2684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
2685if test "${ac_cv_prog_CC+set}" = set; then
2686 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2687else
ff66d28f
PE
2688 if test -n "$CC"; then
2689 ac_cv_prog_CC="$CC" # Let the user override the test.
b2dad0e3 2690else
ff66d28f
PE
2691 ac_prog_rejected=no
2692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693for as_dir in $PATH
2694do
2695 IFS=$as_save_IFS
2696 test -z "$as_dir" && as_dir=.
2697 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 2698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
2699 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2700 ac_prog_rejected=yes
2701 continue
2702 fi
2703 ac_cv_prog_CC="cc"
2704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 break 2
2706 fi
2707done
2708done
2709
2710if test $ac_prog_rejected = yes; then
2711 # We found a bogon in the path, so make sure we never use it.
2712 set dummy $ac_cv_prog_CC
2713 shift
2714 if test $# != 0; then
2715 # We chose a different compiler from the bogus one.
2716 # However, it has the same basename, so the bogon will be chosen
2717 # first if we set CC to just the basename; use the full file name.
2718 shift
2719 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2720 fi
b2dad0e3
BK
2721fi
2722fi
ff66d28f
PE
2723fi
2724CC=$ac_cv_prog_CC
2725if test -n "$CC"; then
7eed349e
PC
2726 echo "$as_me:$LINENO: result: $CC" >&5
2727echo "${ECHO_T}$CC" >&6
b2dad0e3 2728else
7eed349e
PC
2729 echo "$as_me:$LINENO: result: no" >&5
2730echo "${ECHO_T}no" >&6
b2dad0e3
BK
2731fi
2732
ff66d28f
PE
2733fi
2734if test -z "$CC"; then
2735 if test -n "$ac_tool_prefix"; then
7eed349e 2736 for ac_prog in cl
ff66d28f
PE
2737 do
2738 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2739set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7eed349e
PC
2740echo "$as_me:$LINENO: checking for $ac_word" >&5
2741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
2742if test "${ac_cv_prog_CC+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2744else
ff66d28f
PE
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC="$CC" # Let the user override the test.
b2dad0e3 2747else
ff66d28f
PE
2748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749for as_dir in $PATH
2750do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 2754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
2755 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2758 fi
2759done
2760done
2761
b2dad0e3
BK
2762fi
2763fi
ff66d28f
PE
2764CC=$ac_cv_prog_CC
2765if test -n "$CC"; then
7eed349e
PC
2766 echo "$as_me:$LINENO: result: $CC" >&5
2767echo "${ECHO_T}$CC" >&6
b2dad0e3 2768else
7eed349e
PC
2769 echo "$as_me:$LINENO: result: no" >&5
2770echo "${ECHO_T}no" >&6
b2dad0e3
BK
2771fi
2772
ff66d28f
PE
2773 test -n "$CC" && break
2774 done
2775fi
2776if test -z "$CC"; then
2777 ac_ct_CC=$CC
7eed349e 2778 for ac_prog in cl
ff66d28f
PE
2779do
2780 # Extract the first word of "$ac_prog", so it can be a program name with args.
2781set dummy $ac_prog; ac_word=$2
7eed349e
PC
2782echo "$as_me:$LINENO: checking for $ac_word" >&5
2783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
2784if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2786else
ff66d28f
PE
2787 if test -n "$ac_ct_CC"; then
2788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b2dad0e3 2789else
ff66d28f
PE
2790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH
2792do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 2796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
2797 ac_cv_prog_ac_ct_CC="$ac_prog"
2798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2800 fi
2801done
2802done
2803
b2dad0e3
BK
2804fi
2805fi
ff66d28f
PE
2806ac_ct_CC=$ac_cv_prog_ac_ct_CC
2807if test -n "$ac_ct_CC"; then
7eed349e
PC
2808 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2809echo "${ECHO_T}$ac_ct_CC" >&6
b2dad0e3 2810else
7eed349e
PC
2811 echo "$as_me:$LINENO: result: no" >&5
2812echo "${ECHO_T}no" >&6
b2dad0e3
BK
2813fi
2814
ff66d28f
PE
2815 test -n "$ac_ct_CC" && break
2816done
b2dad0e3 2817
7eed349e 2818 CC=$ac_ct_CC
ff66d28f
PE
2819fi
2820
2821fi
2822
2823
18c04407
RW
2824test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2825echo "$as_me: error: in \`$ac_pwd':" >&2;}
2826{ { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
ff66d28f
PE
2827See \`config.log' for more details." >&5
2828echo "$as_me: error: no acceptable C compiler found in \$PATH
2829See \`config.log' for more details." >&2;}
18c04407 2830 { (exit 1); exit 1; }; }; }
ff66d28f
PE
2831
2832# Provide some information about the compiler.
7eed349e
PC
2833echo "$as_me:$LINENO:" \
2834 "checking for C compiler version" >&5
ff66d28f 2835ac_compiler=`set X $ac_compile; echo $2`
7eed349e
PC
2836{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2837 (eval $ac_compiler --version </dev/null >&5) 2>&5
ff66d28f
PE
2838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }
7eed349e
PC
2841{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2842 (eval $ac_compiler -v </dev/null >&5) 2>&5
ff66d28f
PE
2843 ac_status=$?
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }
7eed349e
PC
2846{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2847 (eval $ac_compiler -V </dev/null >&5) 2>&5
ff66d28f
PE
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }
2851
2852cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
2853/* confdefs.h. */
2854_ACEOF
2855cat confdefs.h >>conftest.$ac_ext
2856cat >>conftest.$ac_ext <<_ACEOF
2857/* end confdefs.h. */
2858
3a24bf5d
KC
2859int
2860main ()
2861{
2862
2863 ;
2864 return 0;
2865}
2866_ACEOF
2867# FIXME: Cleanup?
2868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2869 (eval $ac_link) 2>&5
2870 ac_status=$?
2871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }; then
2873 gcc_no_link=no
2874else
2875 gcc_no_link=yes
2876fi
2877
2878if test x$gcc_no_link = xyes; then
2879 # Setting cross_compile will disable run tests; it will
2880 # also disable AC_CHECK_FILE but that's generally
2881 # correct if we can't link.
2882 cross_compiling=yes
2883 EXEEXT=
2884else
2885 cat >conftest.$ac_ext <<_ACEOF
2886/* confdefs.h. */
2887_ACEOF
2888cat confdefs.h >>conftest.$ac_ext
2889cat >>conftest.$ac_ext <<_ACEOF
2890/* end confdefs.h. */
2891
ff66d28f
PE
2892int
2893main ()
2894{
2895
2896 ;
2897 return 0;
2898}
2899_ACEOF
2900ac_clean_files_save=$ac_clean_files
2901ac_clean_files="$ac_clean_files a.out a.exe b.out"
2902# Try to create an executable without -o first, disregard a.out.
2903# It will help us diagnose broken compilers, and finding out an intuition
2904# of exeext.
7eed349e
PC
2905echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2906echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
ff66d28f 2907ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
7eed349e
PC
2908if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2909 (eval $ac_link_default) 2>&5
ff66d28f
PE
2910 ac_status=$?
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }; then
7eed349e
PC
2913 # Find the output, starting from the most likely. This scheme is
2914# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2915# resort.
2916
2917# Be careful to initialize this variable, since it used to be cached.
2918# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2919ac_cv_exeext=
2920# b.out is created by i960 compilers.
2921for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
ff66d28f
PE
2922do
2923 test -f "$ac_file" || continue
2924 case $ac_file in
7eed349e
PC
2925 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2926 ;;
2927 conftest.$ac_ext )
2928 # This is the source file.
ec2075e9 2929 ;;
ff66d28f 2930 [ab].out )
ec2075e9
BK
2931 # We found the default executable, but exeext='' is most
2932 # certainly right.
2933 break;;
ff66d28f 2934 *.* )
7eed349e
PC
2935 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2936 # FIXME: I believe we export ac_cv_exeext for Libtool,
2937 # but it would be cool to find out if it's true. Does anybody
2938 # maintain Libtool? --akim.
2939 export ac_cv_exeext
ec2075e9 2940 break;;
ff66d28f 2941 * )
ec2075e9 2942 break;;
ff66d28f
PE
2943 esac
2944done
b2dad0e3 2945else
ff66d28f
PE
2946 echo "$as_me: failed program was:" >&5
2947sed 's/^/| /' conftest.$ac_ext >&5
2948
18c04407
RW
2949{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2950echo "$as_me: error: in \`$ac_pwd':" >&2;}
ff66d28f
PE
2951{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2952See \`config.log' for more details." >&5
2953echo "$as_me: error: C compiler cannot create executables
2954See \`config.log' for more details." >&2;}
18c04407 2955 { (exit 77); exit 77; }; }; }
ff66d28f
PE
2956fi
2957
2958ac_exeext=$ac_cv_exeext
7eed349e
PC
2959echo "$as_me:$LINENO: result: $ac_file" >&5
2960echo "${ECHO_T}$ac_file" >&6
ff66d28f 2961
7eed349e 2962# Check the compiler produces executables we can run. If not, either
ff66d28f 2963# the compiler is broken, or we cross compile.
7eed349e
PC
2964echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2965echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
ff66d28f
PE
2966# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2967# If not cross compiling, check that we can run a simple program.
2968if test "$cross_compiling" != yes; then
2969 if { ac_try='./$ac_file'
7eed349e
PC
2970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971 (eval $ac_try) 2>&5
ff66d28f
PE
2972 ac_status=$?
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; }; then
2975 cross_compiling=no
2976 else
2977 if test "$cross_compiling" = maybe; then
2978 cross_compiling=yes
2979 else
18c04407
RW
2980 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2981echo "$as_me: error: in \`$ac_pwd':" >&2;}
2982{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
ff66d28f
PE
2983If you meant to cross compile, use \`--host'.
2984See \`config.log' for more details." >&5
2985echo "$as_me: error: cannot run C compiled programs.
2986If you meant to cross compile, use \`--host'.
2987See \`config.log' for more details." >&2;}
18c04407 2988 { (exit 1); exit 1; }; }; }
b2dad0e3 2989 fi
ff66d28f 2990 fi
b2dad0e3 2991fi
7eed349e
PC
2992echo "$as_me:$LINENO: result: yes" >&5
2993echo "${ECHO_T}yes" >&6
ff66d28f
PE
2994
2995rm -f a.out a.exe conftest$ac_cv_exeext b.out
2996ac_clean_files=$ac_clean_files_save
7eed349e 2997# Check the compiler produces executables we can run. If not, either
ff66d28f 2998# the compiler is broken, or we cross compile.
7eed349e
PC
2999echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3000echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3001echo "$as_me:$LINENO: result: $cross_compiling" >&5
3002echo "${ECHO_T}$cross_compiling" >&6
3003
3004echo "$as_me:$LINENO: checking for suffix of executables" >&5
3005echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3007 (eval $ac_link) 2>&5
ff66d28f
PE
3008 ac_status=$?
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; then
3011 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3012# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3013# work properly (i.e., refer to `conftest.exe'), while it won't with
3014# `rm'.
3015for ac_file in conftest.exe conftest conftest.*; do
3016 test -f "$ac_file" || continue
3017 case $ac_file in
7eed349e 3018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
ff66d28f 3019 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
7eed349e 3020 export ac_cv_exeext
ec2075e9 3021 break;;
ff66d28f
PE
3022 * ) break;;
3023 esac
3024done
b2dad0e3 3025else
18c04407
RW
3026 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3027echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
ff66d28f
PE
3029See \`config.log' for more details." >&5
3030echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3031See \`config.log' for more details." >&2;}
18c04407 3032 { (exit 1); exit 1; }; }; }
b2dad0e3
BK
3033fi
3034
ff66d28f 3035rm -f conftest$ac_cv_exeext
7eed349e
PC
3036echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3037echo "${ECHO_T}$ac_cv_exeext" >&6
ff66d28f
PE
3038
3039rm -f conftest.$ac_ext
3040EXEEXT=$ac_cv_exeext
3041ac_exeext=$EXEEXT
3a24bf5d 3042fi
7eed349e
PC
3043echo "$as_me:$LINENO: checking for suffix of object files" >&5
3044echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
ff66d28f
PE
3045if test "${ac_cv_objext+set}" = set; then
3046 echo $ECHO_N "(cached) $ECHO_C" >&6
3047else
3048 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3049/* confdefs.h. */
3050_ACEOF
3051cat confdefs.h >>conftest.$ac_ext
3052cat >>conftest.$ac_ext <<_ACEOF
3053/* end confdefs.h. */
3054
3055int
3056main ()
3057{
3058
3059 ;
3060 return 0;
3061}
3062_ACEOF
3063rm -f conftest.o conftest.obj
7eed349e
PC
3064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3065 (eval $ac_compile) 2>&5
ff66d28f
PE
3066 ac_status=$?
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }; then
7eed349e 3069 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
ff66d28f 3070 case $ac_file in
7eed349e 3071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
ff66d28f
PE
3072 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3073 break;;
3074 esac
3075done
b2dad0e3 3076else
ff66d28f
PE
3077 echo "$as_me: failed program was:" >&5
3078sed 's/^/| /' conftest.$ac_ext >&5
3079
18c04407
RW
3080{ { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3081echo "$as_me: error: in \`$ac_pwd':" >&2;}
ff66d28f
PE
3082{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3083See \`config.log' for more details." >&5
3084echo "$as_me: error: cannot compute suffix of object files: cannot compile
3085See \`config.log' for more details." >&2;}
18c04407 3086 { (exit 1); exit 1; }; }; }
46840bcd 3087fi
ff66d28f
PE
3088
3089rm -f conftest.$ac_cv_objext conftest.$ac_ext
46840bcd 3090fi
7eed349e
PC
3091echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3092echo "${ECHO_T}$ac_cv_objext" >&6
ff66d28f
PE
3093OBJEXT=$ac_cv_objext
3094ac_objext=$OBJEXT
7eed349e
PC
3095echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3096echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
ff66d28f
PE
3097if test "${ac_cv_c_compiler_gnu+set}" = set; then
3098 echo $ECHO_N "(cached) $ECHO_C" >&6
3099else
3100 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3101/* confdefs.h. */
3102_ACEOF
3103cat confdefs.h >>conftest.$ac_ext
3104cat >>conftest.$ac_ext <<_ACEOF
3105/* end confdefs.h. */
46840bcd 3106
ff66d28f
PE
3107int
3108main ()
3109{
3110#ifndef __GNUC__
3111 choke me
3112#endif
3113
3114 ;
3115 return 0;
3116}
3117_ACEOF
3118rm -f conftest.$ac_objext
7eed349e
PC
3119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3120 (eval $ac_compile) 2>conftest.er1
ff66d28f 3121 ac_status=$?
ec2075e9
BK
3122 grep -v '^ *+' conftest.er1 >conftest.err
3123 rm -f conftest.er1
3124 cat conftest.err >&5
ff66d28f 3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
3126 (exit $ac_status); } &&
3127 { ac_try='test -z "$ac_c_werror_flag"
3128 || test ! -s conftest.err'
3129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3130 (eval $ac_try) 2>&5
3131 ac_status=$?
3132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133 (exit $ac_status); }; } &&
3134 { ac_try='test -s conftest.$ac_objext'
3135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3136 (eval $ac_try) 2>&5
3137 ac_status=$?
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; }; then
ff66d28f
PE
3140 ac_compiler_gnu=yes
3141else
3142 echo "$as_me: failed program was:" >&5
3143sed 's/^/| /' conftest.$ac_ext >&5
3144
7eed349e 3145ac_compiler_gnu=no
ff66d28f 3146fi
7eed349e 3147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
3148ac_cv_c_compiler_gnu=$ac_compiler_gnu
3149
3150fi
7eed349e
PC
3151echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3152echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
ff66d28f
PE
3153GCC=`test $ac_compiler_gnu = yes && echo yes`
3154ac_test_CFLAGS=${CFLAGS+set}
3155ac_save_CFLAGS=$CFLAGS
7eed349e
PC
3156CFLAGS="-g"
3157echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3158echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
ff66d28f
PE
3159if test "${ac_cv_prog_cc_g+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3161else
7eed349e 3162 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3163/* confdefs.h. */
3164_ACEOF
3165cat confdefs.h >>conftest.$ac_ext
3166cat >>conftest.$ac_ext <<_ACEOF
3167/* end confdefs.h. */
3168
3169int
3170main ()
3171{
3172
3173 ;
3174 return 0;
3175}
3176_ACEOF
3177rm -f conftest.$ac_objext
7eed349e
PC
3178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3179 (eval $ac_compile) 2>conftest.er1
ff66d28f 3180 ac_status=$?
ec2075e9
BK
3181 grep -v '^ *+' conftest.er1 >conftest.err
3182 rm -f conftest.er1
3183 cat conftest.err >&5
ff66d28f 3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
3185 (exit $ac_status); } &&
3186 { ac_try='test -z "$ac_c_werror_flag"
3187 || test ! -s conftest.err'
3188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189 (eval $ac_try) 2>&5
ec2075e9
BK
3190 ac_status=$?
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
3192 (exit $ac_status); }; } &&
3193 { ac_try='test -s conftest.$ac_objext'
3194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195 (eval $ac_try) 2>&5
ff66d28f
PE
3196 ac_status=$?
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e 3198 (exit $ac_status); }; }; then
ff66d28f 3199 ac_cv_prog_cc_g=yes
b2dad0e3 3200else
ff66d28f
PE
3201 echo "$as_me: failed program was:" >&5
3202sed 's/^/| /' conftest.$ac_ext >&5
b2dad0e3 3203
7eed349e 3204ac_cv_prog_cc_g=no
b2dad0e3 3205fi
7eed349e 3206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f 3207fi
7eed349e
PC
3208echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3209echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
ff66d28f
PE
3210if test "$ac_test_CFLAGS" = set; then
3211 CFLAGS=$ac_save_CFLAGS
3212elif test $ac_cv_prog_cc_g = yes; then
3213 if test "$GCC" = yes; then
3214 CFLAGS="-g -O2"
b2dad0e3 3215 else
ff66d28f 3216 CFLAGS="-g"
b2dad0e3 3217 fi
ff66d28f
PE
3218else
3219 if test "$GCC" = yes; then
3220 CFLAGS="-O2"
3221 else
3222 CFLAGS=
3223 fi
3224fi
7eed349e
PC
3225echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3226echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3227if test "${ac_cv_prog_cc_stdc+set}" = set; then
ff66d28f
PE
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3229else
7eed349e 3230 ac_cv_prog_cc_stdc=no
ff66d28f
PE
3231ac_save_CC=$CC
3232cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3233/* confdefs.h. */
3234_ACEOF
3235cat confdefs.h >>conftest.$ac_ext
3236cat >>conftest.$ac_ext <<_ACEOF
3237/* end confdefs.h. */
3238#include <stdarg.h>
3239#include <stdio.h>
3240#include <sys/types.h>
3241#include <sys/stat.h>
3242/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3243struct buf { int x; };
3244FILE * (*rcsopen) (struct buf *, struct stat *, int);
3245static char *e (p, i)
3246 char **p;
3247 int i;
3248{
3249 return p[i];
3250}
3251static char *f (char * (*g) (char **, int), char **p, ...)
3252{
3253 char *s;
3254 va_list v;
3255 va_start (v,p);
3256 s = g (p, va_arg (v,int));
3257 va_end (v);
3258 return s;
3259}
ec2075e9
BK
3260
3261/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3262 function prototypes and stuff, but not '\xHH' hex character constants.
3263 These don't provoke an error unfortunately, instead are silently treated
7eed349e 3264 as 'x'. The following induces an error, until -std1 is added to get
ec2075e9
BK
3265 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3266 array size at least. It's necessary to write '\x00'==0 to get something
7eed349e 3267 that's true only with -std1. */
ec2075e9
BK
3268int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3269
ff66d28f
PE
3270int test (int i, double x);
3271struct s1 {int (*f) (int a);};
3272struct s2 {int (*f) (double a);};
3273int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3274int argc;
3275char **argv;
3276int
3277main ()
3278{
3279return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3280 ;
3281 return 0;
3282}
3283_ACEOF
7eed349e
PC
3284# Don't try gcc -ansi; that turns off useful extensions and
3285# breaks some systems' header files.
3286# AIX -qlanglvl=ansi
3287# Ultrix and OSF/1 -std1
3288# HP-UX 10.20 and later -Ae
3289# HP-UX older versions -Aa -D_HPUX_SOURCE
3290# SVR4 -Xc -D__EXTENSIONS__
3291for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ff66d28f
PE
3292do
3293 CC="$ac_save_CC $ac_arg"
3294 rm -f conftest.$ac_objext
7eed349e
PC
3295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3296 (eval $ac_compile) 2>conftest.er1
ff66d28f 3297 ac_status=$?
ec2075e9
BK
3298 grep -v '^ *+' conftest.er1 >conftest.err
3299 rm -f conftest.er1
3300 cat conftest.err >&5
ff66d28f 3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
3302 (exit $ac_status); } &&
3303 { ac_try='test -z "$ac_c_werror_flag"
3304 || test ! -s conftest.err'
3305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3306 (eval $ac_try) 2>&5
3307 ac_status=$?
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }; } &&
3310 { ac_try='test -s conftest.$ac_objext'
3311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3312 (eval $ac_try) 2>&5
3313 ac_status=$?
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); }; }; then
3316 ac_cv_prog_cc_stdc=$ac_arg
3317break
ff66d28f
PE
3318else
3319 echo "$as_me: failed program was:" >&5
3320sed 's/^/| /' conftest.$ac_ext >&5
3321
b2dad0e3 3322fi
7eed349e 3323rm -f conftest.err conftest.$ac_objext
ff66d28f 3324done
7eed349e 3325rm -f conftest.$ac_ext conftest.$ac_objext
ff66d28f 3326CC=$ac_save_CC
b2dad0e3 3327
ff66d28f 3328fi
7eed349e
PC
3329
3330case "x$ac_cv_prog_cc_stdc" in
3331 x|xno)
3332 echo "$as_me:$LINENO: result: none needed" >&5
3333echo "${ECHO_T}none needed" >&6 ;;
ff66d28f 3334 *)
7eed349e
PC
3335 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3336echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3337 CC="$CC $ac_cv_prog_cc_stdc" ;;
ff66d28f 3338esac
b2dad0e3 3339
7eed349e
PC
3340# Some people use a C++ compiler to compile C. Since we use `exit',
3341# in C++ we need to declare it. In case someone uses the same compiler
3342# for both compiling C and C++ we need to have the C++ compiler decide
3343# the declaration of exit, since it's the most demanding environment.
3344cat >conftest.$ac_ext <<_ACEOF
3345#ifndef __cplusplus
3346 choke me
3347#endif
3348_ACEOF
3349rm -f conftest.$ac_objext
3350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3351 (eval $ac_compile) 2>conftest.er1
3352 ac_status=$?
3353 grep -v '^ *+' conftest.er1 >conftest.err
3354 rm -f conftest.er1
3355 cat conftest.err >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } &&
3358 { ac_try='test -z "$ac_c_werror_flag"
3359 || test ! -s conftest.err'
3360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361 (eval $ac_try) 2>&5
3362 ac_status=$?
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }; } &&
3365 { ac_try='test -s conftest.$ac_objext'
3366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3367 (eval $ac_try) 2>&5
3368 ac_status=$?
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; }; then
3371 for ac_declaration in \
3372 '' \
3373 'extern "C" void std::exit (int) throw (); using std::exit;' \
3374 'extern "C" void std::exit (int); using std::exit;' \
3375 'extern "C" void exit (int) throw ();' \
3376 'extern "C" void exit (int);' \
3377 'void exit (int);'
3378do
3379 cat >conftest.$ac_ext <<_ACEOF
3380/* confdefs.h. */
3381_ACEOF
3382cat confdefs.h >>conftest.$ac_ext
3383cat >>conftest.$ac_ext <<_ACEOF
3384/* end confdefs.h. */
3385$ac_declaration
3386#include <stdlib.h>
3387int
3388main ()
3389{
3390exit (42);
3391 ;
3392 return 0;
3393}
3394_ACEOF
3395rm -f conftest.$ac_objext
3396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3397 (eval $ac_compile) 2>conftest.er1
3398 ac_status=$?
3399 grep -v '^ *+' conftest.er1 >conftest.err
3400 rm -f conftest.er1
3401 cat conftest.err >&5
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); } &&
3404 { ac_try='test -z "$ac_c_werror_flag"
3405 || test ! -s conftest.err'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 (eval $ac_try) 2>&5
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; } &&
3411 { ac_try='test -s conftest.$ac_objext'
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413 (eval $ac_try) 2>&5
3414 ac_status=$?
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }; }; then
3417 :
3418else
3419 echo "$as_me: failed program was:" >&5
3420sed 's/^/| /' conftest.$ac_ext >&5
3421
3422continue
3423fi
3424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3425 cat >conftest.$ac_ext <<_ACEOF
3426/* confdefs.h. */
3427_ACEOF
3428cat confdefs.h >>conftest.$ac_ext
3429cat >>conftest.$ac_ext <<_ACEOF
3430/* end confdefs.h. */
3431$ac_declaration
3432int
3433main ()
3434{
3435exit (42);
3436 ;
3437 return 0;
3438}
3439_ACEOF
3440rm -f conftest.$ac_objext
3441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3442 (eval $ac_compile) 2>conftest.er1
3443 ac_status=$?
3444 grep -v '^ *+' conftest.er1 >conftest.err
3445 rm -f conftest.er1
3446 cat conftest.err >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } &&
3449 { ac_try='test -z "$ac_c_werror_flag"
3450 || test ! -s conftest.err'
3451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452 (eval $ac_try) 2>&5
3453 ac_status=$?
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); }; } &&
3456 { ac_try='test -s conftest.$ac_objext'
3457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3458 (eval $ac_try) 2>&5
3459 ac_status=$?
3460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461 (exit $ac_status); }; }; then
3462 break
3463else
3464 echo "$as_me: failed program was:" >&5
3465sed 's/^/| /' conftest.$ac_ext >&5
3466
3467fi
3468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3469done
3470rm -f conftest*
3471if test -n "$ac_declaration"; then
3472 echo '#ifdef __cplusplus' >>confdefs.h
3473 echo $ac_declaration >>confdefs.h
3474 echo '#endif' >>confdefs.h
3475fi
3476
3477else
3478 echo "$as_me: failed program was:" >&5
3479sed 's/^/| /' conftest.$ac_ext >&5
ff66d28f 3480
7eed349e
PC
3481fi
3482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
3483ac_ext=c
3484ac_cpp='$CPP $CPPFLAGS'
3485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3487ac_compiler_gnu=$ac_cv_c_compiler_gnu
3488
7eed349e 3489 ac_ext=cc
ff66d28f
PE
3490ac_cpp='$CXXCPP $CPPFLAGS'
3491ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7eed349e
PC
3494if test -n "$ac_tool_prefix"; then
3495 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
ff66d28f
PE
3496 do
3497 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3498set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7eed349e
PC
3499echo "$as_me:$LINENO: checking for $ac_word" >&5
3500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
3501if test "${glibcxx_cv_prog_CXX+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3503else
3504 if test -n "$CXX"; then
3505 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
3506else
3507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508for as_dir in $PATH
3509do
3510 IFS=$as_save_IFS
3511 test -z "$as_dir" && as_dir=.
3512 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 3513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
3514 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3516 break 2
3517 fi
3518done
3519done
3520
3521fi
3522fi
3523CXX=$glibcxx_cv_prog_CXX
3524if test -n "$CXX"; then
7eed349e
PC
3525 echo "$as_me:$LINENO: result: $CXX" >&5
3526echo "${ECHO_T}$CXX" >&6
b2dad0e3 3527else
7eed349e
PC
3528 echo "$as_me:$LINENO: result: no" >&5
3529echo "${ECHO_T}no" >&6
b2dad0e3 3530fi
b2dad0e3 3531
ff66d28f
PE
3532 test -n "$CXX" && break
3533 done
3534fi
3535if test -z "$CXX"; then
3536 ac_ct_CXX=$CXX
7eed349e 3537 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
ff66d28f
PE
3538do
3539 # Extract the first word of "$ac_prog", so it can be a program name with args.
3540set dummy $ac_prog; ac_word=$2
7eed349e
PC
3541echo "$as_me:$LINENO: checking for $ac_word" >&5
3542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
3543if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545else
3546 if test -n "$ac_ct_CXX"; then
3547 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3548else
3549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550for as_dir in $PATH
3551do
3552 IFS=$as_save_IFS
3553 test -z "$as_dir" && as_dir=.
3554 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 3555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
3556 ac_cv_prog_ac_ct_CXX="$ac_prog"
3557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3558 break 2
b2dad0e3 3559 fi
ff66d28f
PE
3560done
3561done
3562
b2dad0e3 3563fi
ff66d28f
PE
3564fi
3565ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3566if test -n "$ac_ct_CXX"; then
7eed349e
PC
3567 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3568echo "${ECHO_T}$ac_ct_CXX" >&6
ff66d28f 3569else
7eed349e
PC
3570 echo "$as_me:$LINENO: result: no" >&5
3571echo "${ECHO_T}no" >&6
b2dad0e3
BK
3572fi
3573
ff66d28f
PE
3574 test -n "$ac_ct_CXX" && break
3575done
7eed349e 3576test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
ff66d28f 3577
7eed349e 3578 CXX=$ac_ct_CXX
ff66d28f
PE
3579fi
3580
7eed349e 3581
ff66d28f 3582# Provide some information about the compiler.
7eed349e
PC
3583echo "$as_me:$LINENO:" \
3584 "checking for C++ compiler version" >&5
ff66d28f 3585ac_compiler=`set X $ac_compile; echo $2`
7eed349e
PC
3586{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3587 (eval $ac_compiler --version </dev/null >&5) 2>&5
ff66d28f
PE
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }
7eed349e
PC
3591{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3592 (eval $ac_compiler -v </dev/null >&5) 2>&5
ff66d28f
PE
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }
7eed349e
PC
3596{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3597 (eval $ac_compiler -V </dev/null >&5) 2>&5
ff66d28f
PE
3598 ac_status=$?
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }
3601
7eed349e
PC
3602echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3603echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
ff66d28f
PE
3604if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3606else
3607 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3608/* confdefs.h. */
3609_ACEOF
3610cat confdefs.h >>conftest.$ac_ext
3611cat >>conftest.$ac_ext <<_ACEOF
3612/* end confdefs.h. */
3613
3614int
3615main ()
3616{
3617#ifndef __GNUC__
3618 choke me
3619#endif
3620
3621 ;
3622 return 0;
3623}
3624_ACEOF
3625rm -f conftest.$ac_objext
7eed349e
PC
3626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3627 (eval $ac_compile) 2>conftest.er1
ff66d28f 3628 ac_status=$?
ec2075e9
BK
3629 grep -v '^ *+' conftest.er1 >conftest.err
3630 rm -f conftest.er1
3631 cat conftest.err >&5
ff66d28f 3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
3633 (exit $ac_status); } &&
3634 { ac_try='test -z "$ac_cxx_werror_flag"
3635 || test ! -s conftest.err'
3636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3637 (eval $ac_try) 2>&5
3638 ac_status=$?
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; } &&
3641 { ac_try='test -s conftest.$ac_objext'
3642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3643 (eval $ac_try) 2>&5
3644 ac_status=$?
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); }; }; then
ff66d28f
PE
3647 ac_compiler_gnu=yes
3648else
3649 echo "$as_me: failed program was:" >&5
3650sed 's/^/| /' conftest.$ac_ext >&5
3651
7eed349e 3652ac_compiler_gnu=no
ff66d28f 3653fi
7eed349e 3654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
3655ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3656
3657fi
7eed349e
PC
3658echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3659echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
ff66d28f
PE
3660GXX=`test $ac_compiler_gnu = yes && echo yes`
3661ac_test_CXXFLAGS=${CXXFLAGS+set}
3662ac_save_CXXFLAGS=$CXXFLAGS
7eed349e
PC
3663CXXFLAGS="-g"
3664echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3665echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
ff66d28f
PE
3666if test "${ac_cv_prog_cxx_g+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668else
7eed349e 3669 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3670/* confdefs.h. */
3671_ACEOF
3672cat confdefs.h >>conftest.$ac_ext
3673cat >>conftest.$ac_ext <<_ACEOF
3674/* end confdefs.h. */
3675
3676int
3677main ()
3678{
b2dad0e3 3679
ff66d28f
PE
3680 ;
3681 return 0;
3682}
3683_ACEOF
3684rm -f conftest.$ac_objext
7eed349e
PC
3685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3686 (eval $ac_compile) 2>conftest.er1
ff66d28f 3687 ac_status=$?
ec2075e9
BK
3688 grep -v '^ *+' conftest.er1 >conftest.err
3689 rm -f conftest.er1
3690 cat conftest.err >&5
ff66d28f 3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
3692 (exit $ac_status); } &&
3693 { ac_try='test -z "$ac_cxx_werror_flag"
3694 || test ! -s conftest.err'
3695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696 (eval $ac_try) 2>&5
3697 ac_status=$?
3698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699 (exit $ac_status); }; } &&
3700 { ac_try='test -s conftest.$ac_objext'
3701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702 (eval $ac_try) 2>&5
3703 ac_status=$?
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; }; then
ff66d28f
PE
3706 ac_cv_prog_cxx_g=yes
3707else
3708 echo "$as_me: failed program was:" >&5
3709sed 's/^/| /' conftest.$ac_ext >&5
3710
7eed349e
PC
3711ac_cv_prog_cxx_g=no
3712fi
3713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3714fi
3715echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3716echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3717if test "$ac_test_CXXFLAGS" = set; then
3718 CXXFLAGS=$ac_save_CXXFLAGS
3719elif test $ac_cv_prog_cxx_g = yes; then
3720 if test "$GXX" = yes; then
3721 CXXFLAGS="-g -O2"
3722 else
3723 CXXFLAGS="-g"
3724 fi
3725else
3726 if test "$GXX" = yes; then
3727 CXXFLAGS="-O2"
3728 else
3729 CXXFLAGS=
3730 fi
3731fi
3732for ac_declaration in \
3733 '' \
3734 'extern "C" void std::exit (int) throw (); using std::exit;' \
3735 'extern "C" void std::exit (int); using std::exit;' \
3736 'extern "C" void exit (int) throw ();' \
3737 'extern "C" void exit (int);' \
3738 'void exit (int);'
3739do
3740 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3741/* confdefs.h. */
3742_ACEOF
3743cat confdefs.h >>conftest.$ac_ext
3744cat >>conftest.$ac_ext <<_ACEOF
3745/* end confdefs.h. */
7eed349e
PC
3746$ac_declaration
3747#include <stdlib.h>
ff66d28f
PE
3748int
3749main ()
3750{
7eed349e 3751exit (42);
ff66d28f
PE
3752 ;
3753 return 0;
3754}
3755_ACEOF
3756rm -f conftest.$ac_objext
7eed349e
PC
3757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3758 (eval $ac_compile) 2>conftest.er1
ff66d28f 3759 ac_status=$?
ec2075e9
BK
3760 grep -v '^ *+' conftest.er1 >conftest.err
3761 rm -f conftest.er1
3762 cat conftest.err >&5
ff66d28f 3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
3764 (exit $ac_status); } &&
3765 { ac_try='test -z "$ac_cxx_werror_flag"
3766 || test ! -s conftest.err'
3767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768 (eval $ac_try) 2>&5
3769 ac_status=$?
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }; } &&
3772 { ac_try='test -s conftest.$ac_objext'
3773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774 (eval $ac_try) 2>&5
3775 ac_status=$?
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; }; then
ff66d28f
PE
3778 :
3779else
3780 echo "$as_me: failed program was:" >&5
3781sed 's/^/| /' conftest.$ac_ext >&5
b2dad0e3 3782
7eed349e
PC
3783continue
3784fi
3785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3786 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3787/* confdefs.h. */
3788_ACEOF
3789cat confdefs.h >>conftest.$ac_ext
3790cat >>conftest.$ac_ext <<_ACEOF
3791/* end confdefs.h. */
7eed349e 3792$ac_declaration
ff66d28f
PE
3793int
3794main ()
3795{
7eed349e 3796exit (42);
ff66d28f
PE
3797 ;
3798 return 0;
3799}
3800_ACEOF
3801rm -f conftest.$ac_objext
7eed349e
PC
3802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3803 (eval $ac_compile) 2>conftest.er1
ff66d28f 3804 ac_status=$?
ec2075e9
BK
3805 grep -v '^ *+' conftest.er1 >conftest.err
3806 rm -f conftest.er1
3807 cat conftest.err >&5
ff66d28f 3808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
3809 (exit $ac_status); } &&
3810 { ac_try='test -z "$ac_cxx_werror_flag"
3811 || test ! -s conftest.err'
3812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813 (eval $ac_try) 2>&5
3814 ac_status=$?
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); }; } &&
3817 { ac_try='test -s conftest.$ac_objext'
3818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819 (eval $ac_try) 2>&5
3820 ac_status=$?
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); }; }; then
3823 break
ff66d28f
PE
3824else
3825 echo "$as_me: failed program was:" >&5
3826sed 's/^/| /' conftest.$ac_ext >&5
3827
4312e020 3828fi
7eed349e
PC
3829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3830done
3831rm -f conftest*
3832if test -n "$ac_declaration"; then
3833 echo '#ifdef __cplusplus' >>confdefs.h
3834 echo $ac_declaration >>confdefs.h
3835 echo '#endif' >>confdefs.h
8a165db0
BK
3836fi
3837
ff66d28f
PE
3838ac_ext=c
3839ac_cpp='$CPP $CPPFLAGS'
3840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842ac_compiler_gnu=$ac_cv_c_compiler_gnu
16da539b 3843
ff66d28f 3844 CXXFLAGS="$save_CXXFLAGS"
d0941a31
PE
3845
3846
33590f13 3847
f6dda651 3848
ff66d28f
PE
3849 # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
3850 # available). Uncomment the next line to force a particular method.
7eed349e
PC
3851 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3852echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
ff66d28f
PE
3853LN_S=$as_ln_s
3854if test "$LN_S" = "ln -s"; then
7eed349e
PC
3855 echo "$as_me:$LINENO: result: yes" >&5
3856echo "${ECHO_T}yes" >&6
2f235b6d 3857else
7eed349e
PC
3858 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3859echo "${ECHO_T}no, using $LN_S" >&6
2f235b6d 3860fi
2f235b6d 3861
ff66d28f 3862 #LN_S='cp -p'
2f235b6d 3863
ff66d28f
PE
3864 if test -n "$ac_tool_prefix"; then
3865 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3866set dummy ${ac_tool_prefix}as; ac_word=$2
7eed349e
PC
3867echo "$as_me:$LINENO: checking for $ac_word" >&5
3868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
3869if test "${ac_cv_prog_AS+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
2f235b6d 3871else
ff66d28f
PE
3872 if test -n "$AS"; then
3873 ac_cv_prog_AS="$AS" # Let the user override the test.
2f235b6d 3874else
ff66d28f
PE
3875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876for as_dir in $PATH
3877do
3878 IFS=$as_save_IFS
3879 test -z "$as_dir" && as_dir=.
3880 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 3881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
3882 ac_cv_prog_AS="${ac_tool_prefix}as"
3883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 break 2
3885 fi
3886done
3887done
3888
2f235b6d 3889fi
2f235b6d 3890fi
ff66d28f
PE
3891AS=$ac_cv_prog_AS
3892if test -n "$AS"; then
7eed349e
PC
3893 echo "$as_me:$LINENO: result: $AS" >&5
3894echo "${ECHO_T}$AS" >&6
2f235b6d 3895else
7eed349e
PC
3896 echo "$as_me:$LINENO: result: no" >&5
3897echo "${ECHO_T}no" >&6
2f235b6d
PE
3898fi
3899
ff66d28f
PE
3900fi
3901if test -z "$ac_cv_prog_AS"; then
3902 ac_ct_AS=$AS
3903 # Extract the first word of "as", so it can be a program name with args.
3904set dummy as; ac_word=$2
7eed349e
PC
3905echo "$as_me:$LINENO: checking for $ac_word" >&5
3906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
3907if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3909else
3910 if test -n "$ac_ct_AS"; then
3911 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3912else
3913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914for as_dir in $PATH
3915do
3916 IFS=$as_save_IFS
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 3919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
3920 ac_cv_prog_ac_ct_AS="as"
3921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 break 2
3923 fi
3924done
3925done
2f235b6d 3926
ff66d28f
PE
3927fi
3928fi
3929ac_ct_AS=$ac_cv_prog_ac_ct_AS
3930if test -n "$ac_ct_AS"; then
7eed349e
PC
3931 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3932echo "${ECHO_T}$ac_ct_AS" >&6
ff66d28f 3933else
7eed349e
PC
3934 echo "$as_me:$LINENO: result: no" >&5
3935echo "${ECHO_T}no" >&6
ff66d28f 3936fi
2f235b6d 3937
7eed349e 3938 AS=$ac_ct_AS
ff66d28f
PE
3939else
3940 AS="$ac_cv_prog_AS"
2f235b6d 3941fi
2f235b6d 3942
ff66d28f
PE
3943 if test -n "$ac_tool_prefix"; then
3944 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3945set dummy ${ac_tool_prefix}ar; ac_word=$2
7eed349e
PC
3946echo "$as_me:$LINENO: checking for $ac_word" >&5
3947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
3948if test "${ac_cv_prog_AR+set}" = set; then
3949 echo $ECHO_N "(cached) $ECHO_C" >&6
3950else
3951 if test -n "$AR"; then
3952 ac_cv_prog_AR="$AR" # Let the user override the test.
3953else
3954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955for as_dir in $PATH
3956do
3957 IFS=$as_save_IFS
3958 test -z "$as_dir" && as_dir=.
3959 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 3960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
3961 ac_cv_prog_AR="${ac_tool_prefix}ar"
3962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3963 break 2
3964 fi
3965done
3966done
2f235b6d 3967
ff66d28f
PE
3968fi
3969fi
3970AR=$ac_cv_prog_AR
3971if test -n "$AR"; then
7eed349e
PC
3972 echo "$as_me:$LINENO: result: $AR" >&5
3973echo "${ECHO_T}$AR" >&6
ff66d28f 3974else
7eed349e
PC
3975 echo "$as_me:$LINENO: result: no" >&5
3976echo "${ECHO_T}no" >&6
ff66d28f 3977fi
2f235b6d 3978
ff66d28f
PE
3979fi
3980if test -z "$ac_cv_prog_AR"; then
3981 ac_ct_AR=$AR
3982 # Extract the first word of "ar", so it can be a program name with args.
3983set dummy ar; ac_word=$2
7eed349e
PC
3984echo "$as_me:$LINENO: checking for $ac_word" >&5
3985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
3986if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3988else
3989 if test -n "$ac_ct_AR"; then
3990 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3991else
3992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993for as_dir in $PATH
3994do
3995 IFS=$as_save_IFS
3996 test -z "$as_dir" && as_dir=.
3997 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 3998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
3999 ac_cv_prog_ac_ct_AR="ar"
4000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4001 break 2
4002 fi
4003done
4004done
2f235b6d 4005
ff66d28f
PE
4006fi
4007fi
4008ac_ct_AR=$ac_cv_prog_ac_ct_AR
4009if test -n "$ac_ct_AR"; then
7eed349e
PC
4010 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4011echo "${ECHO_T}$ac_ct_AR" >&6
2f235b6d 4012else
7eed349e
PC
4013 echo "$as_me:$LINENO: result: no" >&5
4014echo "${ECHO_T}no" >&6
2f235b6d
PE
4015fi
4016
7eed349e 4017 AR=$ac_ct_AR
2f235b6d 4018else
ff66d28f 4019 AR="$ac_cv_prog_AR"
2f235b6d
PE
4020fi
4021
ff66d28f
PE
4022 if test -n "$ac_tool_prefix"; then
4023 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4024set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7eed349e
PC
4025echo "$as_me:$LINENO: checking for $ac_word" >&5
4026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
4027if test "${ac_cv_prog_RANLIB+set}" = set; then
4028 echo $ECHO_N "(cached) $ECHO_C" >&6
4029else
4030 if test -n "$RANLIB"; then
4031 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4032else
4033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034for as_dir in $PATH
4035do
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 4039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
4040 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 break 2
4043 fi
4044done
4045done
4046
4047fi
4048fi
4049RANLIB=$ac_cv_prog_RANLIB
4050if test -n "$RANLIB"; then
7eed349e
PC
4051 echo "$as_me:$LINENO: result: $RANLIB" >&5
4052echo "${ECHO_T}$RANLIB" >&6
2f235b6d 4053else
7eed349e
PC
4054 echo "$as_me:$LINENO: result: no" >&5
4055echo "${ECHO_T}no" >&6
2f235b6d
PE
4056fi
4057
ff66d28f
PE
4058fi
4059if test -z "$ac_cv_prog_RANLIB"; then
4060 ac_ct_RANLIB=$RANLIB
4061 # Extract the first word of "ranlib", so it can be a program name with args.
4062set dummy ranlib; ac_word=$2
7eed349e
PC
4063echo "$as_me:$LINENO: checking for $ac_word" >&5
4064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
4065if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4067else
4068 if test -n "$ac_ct_RANLIB"; then
4069 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2f235b6d 4070else
ff66d28f
PE
4071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072for as_dir in $PATH
4073do
4074 IFS=$as_save_IFS
4075 test -z "$as_dir" && as_dir=.
4076 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 4077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
4078 ac_cv_prog_ac_ct_RANLIB="ranlib"
4079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4080 break 2
4081 fi
4082done
4083done
4084
7eed349e 4085 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
ff66d28f
PE
4086fi
4087fi
4088ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4089if test -n "$ac_ct_RANLIB"; then
7eed349e
PC
4090 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4091echo "${ECHO_T}$ac_ct_RANLIB" >&6
ff66d28f 4092else
7eed349e
PC
4093 echo "$as_me:$LINENO: result: no" >&5
4094echo "${ECHO_T}no" >&6
2f235b6d
PE
4095fi
4096
7eed349e 4097 RANLIB=$ac_ct_RANLIB
2f235b6d 4098else
ff66d28f 4099 RANLIB="$ac_cv_prog_RANLIB"
2f235b6d
PE
4100fi
4101
4102
7eed349e
PC
4103 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4104echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4105 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
ff66d28f 4106if test "${enable_maintainer_mode+set}" = set; then
7eed349e
PC
4107 enableval="$enable_maintainer_mode"
4108 USE_MAINTAINER_MODE=$enableval
ff66d28f
PE
4109else
4110 USE_MAINTAINER_MODE=no
7eed349e
PC
4111fi;
4112 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4113echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
e08c673e 4114
7eed349e
PC
4115
4116if test $USE_MAINTAINER_MODE = yes; then
ff66d28f
PE
4117 MAINTAINER_MODE_TRUE=
4118 MAINTAINER_MODE_FALSE='#'
4119else
4120 MAINTAINER_MODE_TRUE='#'
4121 MAINTAINER_MODE_FALSE=
4122fi
4123
4124 MAINT=$MAINTAINER_MODE_TRUE
2f235b6d 4125
5780a46b 4126
f4c79fef 4127
92eabea2
PE
4128 # Set up safe default values for all subsequent AM_CONDITIONAL tests
4129 # which are themselves conditionally expanded.
4130 ## (Right now, this only matters for enable_wchar_t, but nothing prevents
4131 ## other macros from doing the same. This should be automated.) -pme
ff66d28f 4132 need_libmath=no
ff66d28f 4133
464aea98
JM
4134 # Check for uClibc since Linux platforms use different configuration
4135 # directories depending on the C library in use.
4136 cat >conftest.$ac_ext <<_ACEOF
4137/* confdefs.h. */
4138_ACEOF
4139cat confdefs.h >>conftest.$ac_ext
4140cat >>conftest.$ac_ext <<_ACEOF
4141/* end confdefs.h. */
4142
4143 #include <stdio.h>
4144 #if __UCLIBC__
4145 _using_uclibc
4146 #endif
4147
4148_ACEOF
4149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150 $EGREP "_using_uclibc" >/dev/null 2>&1; then
4151 uclibc=yes
4152else
4153 uclibc=no
4154fi
4155rm -f conftest*
4156
4157
ff66d28f
PE
4158 # Find platform-specific directories containing configuration info.
4159 # Also possibly modify flags used elsewhere, as needed by the platform.
4160
4161 . $glibcxx_srcdir/configure.host
4162 { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5
4163echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
4164 { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5
4165echo "$as_me: OS config directory is $os_include_dir" >&6;}
4166
4167
4168
be95b355
BS
4169if test "x${with_newlib}" != "xyes"; then
4170 enable_dlopen=yes
1cf3d07d
SE
4171
4172
4173
be95b355 4174fi
1cf3d07d
SE
4175
4176
4177macro_version='2.1a'
4178macro_revision='1.2435'
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191ltmain="$ac_aux_dir/ltmain.sh"
4192
4193# Set options
4194
4195
4196enable_win32_dll=no
4197
ff66d28f 4198
7eed349e 4199# Check whether --enable-shared or --disable-shared was given.
b2dad0e3 4200if test "${enable_shared+set}" = set; then
7eed349e
PC
4201 enableval="$enable_shared"
4202 p=${PACKAGE-default}
1cf3d07d
SE
4203 case $enableval in
4204 yes) enable_shared=yes ;;
4205 no) enable_shared=no ;;
4206 *)
4207 enable_shared=no
4208 # Look at the argument we got. We use all the common list separators.
4209 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4210 for pkg in $enableval; do
4211 IFS="$lt_save_ifs"
4212 if test "X$pkg" = "X$p"; then
4213 enable_shared=yes
4214 fi
4215 done
4216 IFS="$lt_save_ifs"
4217 ;;
4218 esac
b2dad0e3
BK
4219else
4220 enable_shared=yes
7eed349e 4221fi;
1cf3d07d
SE
4222
4223
4224
4225
4226
4227
4228
4229
7eed349e 4230# Check whether --enable-static or --disable-static was given.
b2dad0e3 4231if test "${enable_static+set}" = set; then
7eed349e
PC
4232 enableval="$enable_static"
4233 p=${PACKAGE-default}
1cf3d07d
SE
4234 case $enableval in
4235 yes) enable_static=yes ;;
4236 no) enable_static=no ;;
4237 *)
4238 enable_static=no
4239 # Look at the argument we got. We use all the common list separators.
4240 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4241 for pkg in $enableval; do
4242 IFS="$lt_save_ifs"
4243 if test "X$pkg" = "X$p"; then
4244 enable_static=yes
4245 fi
4246 done
4247 IFS="$lt_save_ifs"
4248 ;;
4249 esac
b2dad0e3
BK
4250else
4251 enable_static=yes
7eed349e 4252fi;
1cf3d07d
SE
4253
4254
4255
4256
4257
4258
4259
4260
4261
7eed349e 4262# Check whether --with-pic or --without-pic was given.
1cf3d07d 4263if test "${with_pic+set}" = set; then
7eed349e
PC
4264 withval="$with_pic"
4265 pic_mode="$withval"
1cf3d07d
SE
4266else
4267 pic_mode=default
7eed349e 4268fi;
1cf3d07d
SE
4269
4270test -z "$pic_mode" && pic_mode=default
4271
4272
4273
4274
4275
4276
4277
7eed349e 4278# Check whether --enable-fast-install or --disable-fast-install was given.
b2dad0e3 4279if test "${enable_fast_install+set}" = set; then
7eed349e
PC
4280 enableval="$enable_fast_install"
4281 p=${PACKAGE-default}
1cf3d07d
SE
4282 case $enableval in
4283 yes) enable_fast_install=yes ;;
4284 no) enable_fast_install=no ;;
4285 *)
4286 enable_fast_install=no
4287 # Look at the argument we got. We use all the common list separators.
4288 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4289 for pkg in $enableval; do
4290 IFS="$lt_save_ifs"
4291 if test "X$pkg" = "X$p"; then
4292 enable_fast_install=yes
4293 fi
4294 done
4295 IFS="$lt_save_ifs"
4296 ;;
4297 esac
b2dad0e3
BK
4298else
4299 enable_fast_install=yes
7eed349e 4300fi;
b2dad0e3 4301
1cf3d07d
SE
4302
4303
4304
4305
4306
4307
4308
7eed349e
PC
4309echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4310echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4311if test "${lt_cv_path_SED+set}" = set; then
1cf3d07d
SE
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4313else
7eed349e
PC
4314 # Loop through the user's path and test for sed and gsed.
4315# Then use that list of sed's as ones to test for truncation.
1cf3d07d
SE
4316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317for as_dir in $PATH
4318do
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
7eed349e
PC
4321 for lt_ac_prog in sed gsed; do
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4324 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4325 fi
4326 done
8a165db0
BK
4327 done
4328done
8a165db0 4329IFS=$as_save_IFS
7eed349e
PC
4330lt_ac_max=0
4331lt_ac_count=0
4332# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4333# along with /bin/sed that truncates output.
4334for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4335 test ! -f $lt_ac_sed && continue
4336 cat /dev/null > conftest.in
4337 lt_ac_count=0
4338 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4339 # Check for GNU sed and select it if it is found.
4340 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4341 lt_cv_path_SED=$lt_ac_sed
4342 break
4343 fi
4344 while true; do
4345 cat conftest.in conftest.in >conftest.tmp
4346 mv conftest.tmp conftest.in
4347 cp conftest.in conftest.nl
4348 echo >>conftest.nl
4349 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4350 cmp -s conftest.out conftest.nl || break
4351 # 10000 chars as input seems more than enough
4352 test $lt_ac_count -gt 10 && break
4353 lt_ac_count=`expr $lt_ac_count + 1`
4354 if test $lt_ac_count -gt $lt_ac_max; then
4355 lt_ac_max=$lt_ac_count
4356 lt_cv_path_SED=$lt_ac_sed
4357 fi
4358 done
4359done
1cf3d07d
SE
4360
4361fi
4362
7eed349e 4363SED=$lt_cv_path_SED
1cf3d07d 4364
7eed349e
PC
4365echo "$as_me:$LINENO: result: $SED" >&5
4366echo "${ECHO_T}$SED" >&6
1cf3d07d
SE
4367
4368test -z "$SED" && SED=sed
4369Xsed="$SED -e 1s/^X//"
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
7eed349e
PC
4381echo "$as_me:$LINENO: checking for fgrep" >&5
4382echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4383if test "${ac_cv_prog_fgrep+set}" = set; then
1cf3d07d
SE
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4385else
7eed349e
PC
4386 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4387 then ac_cv_prog_fgrep='grep -F'
4388 else ac_cv_prog_fgrep='fgrep'
1cf3d07d
SE
4389 fi
4390fi
7eed349e
PC
4391echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4392echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4393 FGREP=$ac_cv_prog_fgrep
1cf3d07d
SE
4394
4395
4396test -z "$GREP" && GREP=grep
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
7eed349e 4416# Check whether --with-gnu-ld or --without-gnu-ld was given.
b2dad0e3 4417if test "${with_gnu_ld+set}" = set; then
7eed349e
PC
4418 withval="$with_gnu_ld"
4419 test "$withval" = no || with_gnu_ld=yes
b2dad0e3
BK
4420else
4421 with_gnu_ld=no
7eed349e 4422fi;
b2dad0e3 4423ac_prog=ld
c21b6f87 4424if test "$GCC" = yes; then
b2dad0e3 4425 # Check if gcc -print-prog-name=ld gives a path.
7eed349e
PC
4426 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4427echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3df64633
AO
4428 case $host in
4429 *-*-mingw*)
4430 # gcc leaves a trailing carriage return which upsets mingw
4431 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4432 *)
4433 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4434 esac
c21b6f87 4435 case $ac_prog in
b2dad0e3 4436 # Accept absolute paths.
1cf3d07d 4437 [\\/]* | ?:[\\/]*)
b2dad0e3 4438 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
4439 # Canonicalize the pathname of ld
4440 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4441 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4442 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
b2dad0e3
BK
4443 done
4444 test -z "$LD" && LD="$ac_prog"
4445 ;;
4446 "")
4447 # If it fails, then pretend we aren't using GCC.
4448 ac_prog=ld
4449 ;;
4450 *)
4451 # If it is relative, then search for the first ld in PATH.
4452 with_gnu_ld=unknown
4453 ;;
4454 esac
4455elif test "$with_gnu_ld" = yes; then
7eed349e
PC
4456 echo "$as_me:$LINENO: checking for GNU ld" >&5
4457echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
b2dad0e3 4458else
7eed349e
PC
4459 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4460echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
b2dad0e3 4461fi
ff66d28f
PE
4462if test "${lt_cv_path_LD+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3
BK
4464else
4465 if test -z "$LD"; then
1cf3d07d 4466 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
b2dad0e3 4467 for ac_dir in $PATH; do
1cf3d07d 4468 IFS="$lt_save_ifs"
b2dad0e3 4469 test -z "$ac_dir" && ac_dir=.
3840fa2a 4470 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
c21b6f87 4471 lt_cv_path_LD="$ac_dir/$ac_prog"
b2dad0e3 4472 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 4473 # but apparently some variants of GNU ld only accept -v.
b2dad0e3 4474 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
4475 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4476 *GNU* | *'with BFD'*)
b2dad0e3 4477 test "$with_gnu_ld" != no && break
1cf3d07d
SE
4478 ;;
4479 *)
b2dad0e3 4480 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
4481 ;;
4482 esac
b2dad0e3
BK
4483 fi
4484 done
1cf3d07d 4485 IFS="$lt_save_ifs"
b2dad0e3 4486else
c21b6f87 4487 lt_cv_path_LD="$LD" # Let the user override the test with a path.
b2dad0e3
BK
4488fi
4489fi
4490
c21b6f87 4491LD="$lt_cv_path_LD"
b2dad0e3 4492if test -n "$LD"; then
7eed349e
PC
4493 echo "$as_me:$LINENO: result: $LD" >&5
4494echo "${ECHO_T}$LD" >&6
b2dad0e3 4495else
7eed349e
PC
4496 echo "$as_me:$LINENO: result: no" >&5
4497echo "${ECHO_T}no" >&6
b2dad0e3 4498fi
ff66d28f
PE
4499test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4500echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4501 { (exit 1); exit 1; }; }
7eed349e
PC
4502echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4503echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
ff66d28f
PE
4504if test "${lt_cv_prog_gnu_ld+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 4506else
1cf3d07d
SE
4507 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4508case `$LD -v 2>&1 </dev/null` in
4509*GNU* | *'with BFD'*)
c21b6f87 4510 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
4511 ;;
4512*)
c21b6f87 4513 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
4514 ;;
4515esac
b2dad0e3 4516fi
7eed349e
PC
4517echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4518echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
c21b6f87 4519with_gnu_ld=$lt_cv_prog_gnu_ld
3df64633 4520
b2dad0e3
BK
4521
4522
1cf3d07d
SE
4523
4524
4525
4526
4527
4528
4529
7eed349e
PC
4530echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4531echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
ff66d28f
PE
4532if test "${lt_cv_path_NM+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3
BK
4534else
4535 if test -n "$NM"; then
4536 # Let the user override the test.
c21b6f87 4537 lt_cv_path_NM="$NM"
b2dad0e3 4538else
1cf3d07d
SE
4539 lt_nm_to_check="${ac_tool_prefix}nm"
4540 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4541 lt_nm_to_check="$lt_nm_to_check nm"
4542 fi
4543 for lt_tmp_nm in $lt_nm_to_check; do
4544 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4545 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4546 IFS="$lt_save_ifs"
4547 test -z "$ac_dir" && ac_dir=.
4548 tmp_nm="$ac_dir/$lt_tmp_nm"
4549 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4550 # Check to see if the nm accepts a BSD-compat flag.
4551 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4552 # nm: unknown option "B" ignored
4553 # Tru64's nm complains that /dev/null is an invalid object file
4554 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4555 */dev/null* | *'Invalid file or object type'*)
4556 lt_cv_path_NM="$tmp_nm -B"
4557 break
4558 ;;
4559 *)
4560 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4561 */dev/null*)
4562 lt_cv_path_NM="$tmp_nm -p"
4563 break
4564 ;;
4565 *)
4566 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4567 continue # so that we can try to find one that supports BSD flags
4568 ;;
4569 esac
4570 ;;
4571 esac
b2dad0e3 4572 fi
1cf3d07d
SE
4573 done
4574 IFS="$lt_save_ifs"
b2dad0e3 4575 done
1cf3d07d 4576 : ${lt_cv_path_NM=no}
b2dad0e3
BK
4577fi
4578fi
7eed349e
PC
4579echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4580echo "${ECHO_T}$lt_cv_path_NM" >&6
1cf3d07d
SE
4581if test "$lt_cv_path_NM" != "no"; then
4582 NM="$lt_cv_path_NM"
4583else
4584 # Didn't find any BSD compatible name lister, look for dumpbin.
4585 if test -n "$ac_tool_prefix"; then
4586 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4587 do
4588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4589set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7eed349e
PC
4590echo "$as_me:$LINENO: checking for $ac_word" >&5
4591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 4592if test "${ac_cv_prog_DUMPBIN+set}" = set; then
ff66d28f 4593 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 4594else
1cf3d07d
SE
4595 if test -n "$DUMPBIN"; then
4596 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4597else
4598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599for as_dir in $PATH
4600do
4601 IFS=$as_save_IFS
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 4604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d
SE
4605 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 break 2
4608 fi
4609done
4610done
3df64633 4611
1cf3d07d
SE
4612fi
4613fi
4614DUMPBIN=$ac_cv_prog_DUMPBIN
4615if test -n "$DUMPBIN"; then
7eed349e
PC
4616 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4617echo "${ECHO_T}$DUMPBIN" >&6
1cf3d07d 4618else
7eed349e
PC
4619 echo "$as_me:$LINENO: result: no" >&5
4620echo "${ECHO_T}no" >&6
1cf3d07d 4621fi
c21b6f87 4622
1cf3d07d
SE
4623 test -n "$DUMPBIN" && break
4624 done
4625fi
4626if test -z "$DUMPBIN"; then
4627 ac_ct_DUMPBIN=$DUMPBIN
4628 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4629do
4630 # Extract the first word of "$ac_prog", so it can be a program name with args.
4631set dummy $ac_prog; ac_word=$2
7eed349e
PC
4632echo "$as_me:$LINENO: checking for $ac_word" >&5
4633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d
SE
4634if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4636else
4637 if test -n "$ac_ct_DUMPBIN"; then
4638 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4639else
4640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641for as_dir in $PATH
4642do
4643 IFS=$as_save_IFS
4644 test -z "$as_dir" && as_dir=.
4645 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 4646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d
SE
4647 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 break 2
3df64633 4650 fi
1cf3d07d
SE
4651done
4652done
3df64633 4653
1cf3d07d
SE
4654fi
4655fi
4656ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4657if test -n "$ac_ct_DUMPBIN"; then
7eed349e
PC
4658 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4659echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
1cf3d07d 4660else
7eed349e
PC
4661 echo "$as_me:$LINENO: result: no" >&5
4662echo "${ECHO_T}no" >&6
1cf3d07d 4663fi
3df64633 4664
1cf3d07d
SE
4665 test -n "$ac_ct_DUMPBIN" && break
4666done
7eed349e 4667test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3df64633 4668
7eed349e 4669 DUMPBIN=$ac_ct_DUMPBIN
1cf3d07d 4670fi
3df64633 4671
3df64633 4672
1cf3d07d
SE
4673 if test "$DUMPBIN" != ":"; then
4674 NM="$DUMPBIN"
3df64633 4675 fi
1cf3d07d
SE
4676fi
4677test -z "$NM" && NM=nm
3df64633 4678
3df64633 4679
3df64633 4680
3df64633 4681
bfa1e6b1 4682
3df64633 4683
7eed349e
PC
4684echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4685echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
1cf3d07d
SE
4686if test "${lt_cv_nm_interface+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4688else
4689 lt_cv_nm_interface="BSD nm"
4690 echo "int some_variable = 0;" > conftest.$ac_ext
727cd0bc 4691 (eval echo "\"\$as_me:4691: $ac_compile\"" >&5)
1cf3d07d
SE
4692 (eval "$ac_compile" 2>conftest.err)
4693 cat conftest.err >&5
727cd0bc 4694 (eval echo "\"\$as_me:4694: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
4695 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4696 cat conftest.err >&5
727cd0bc 4697 (eval echo "\"\$as_me:4697: output\"" >&5)
1cf3d07d
SE
4698 cat conftest.out >&5
4699 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4700 lt_cv_nm_interface="MS dumpbin"
4701 fi
4702 rm -f conftest*
3df64633 4703fi
7eed349e
PC
4704echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4705echo "${ECHO_T}$lt_cv_nm_interface" >&6
3df64633 4706
6dab073b 4707# find the maximum length of command line arguments
7eed349e
PC
4708echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4709echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6dab073b
MS
4710if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4712else
4713 i=0
4714 teststring="ABCD"
4715
4716 case $build_os in
4717 msdosdjgpp*)
4718 # On DJGPP, this test can blow up pretty badly due to problems in libc
4719 # (any single argument exceeding 2000 bytes causes a buffer overrun
4720 # during glob expansion). Even if it were fixed, the result of this
4721 # check would be larger than it should be.
4722 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4723 ;;
4724
1cf3d07d
SE
4725 gnu*)
4726 # Under GNU Hurd, this test is not required because there is
4727 # no limit to the length of command line arguments.
4728 # Libtool will interpret -1 as no limit whatsoever
4729 lt_cv_sys_max_cmd_len=-1;
4730 ;;
4731
6dab073b
MS
4732 cygwin* | mingw*)
4733 # On Win9x/ME, this test blows up -- it succeeds, but takes
4734 # about 5 minutes as the teststring grows exponentially.
4735 # Worse, since 9x/ME are not pre-emptively multitasking,
4736 # you end up with a "frozen" computer, even though with patience
4737 # the test eventually succeeds (with a max line length of 256k).
4738 # Instead, let's just punt: use the minimum linelength reported by
4739 # all of the supported platforms: 8192 (on NT/2K/XP).
4740 lt_cv_sys_max_cmd_len=8192;
4741 ;;
4742
4743 amigaos*)
4744 # On AmigaOS with pdksh, this test takes hours, literally.
4745 # So we just punt and use a minimum line length of 8192.
4746 lt_cv_sys_max_cmd_len=8192;
4747 ;;
4748
4749 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4750 # This has been around since 386BSD, at least. Likely further.
4751 if test -x /sbin/sysctl; then
4752 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4753 elif test -x /usr/sbin/sysctl; then
4754 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4755 else
1cf3d07d 4756 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6dab073b
MS
4757 fi
4758 # And add a safety zone
4759 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4760 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4761 ;;
1cf3d07d
SE
4762
4763 interix*)
4764 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4765 lt_cv_sys_max_cmd_len=196608
4766 ;;
4767
4768 osf*)
4769 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4770 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4771 # nice to cause kernel panics so lets avoid the loop below.
4772 # First set a reasonable default.
4773 lt_cv_sys_max_cmd_len=16384
4774 #
4775 if test -x /sbin/sysconfig; then
4776 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4777 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4778 esac
4779 fi
4780 ;;
4781 sco3.2v5*)
4782 lt_cv_sys_max_cmd_len=102400
4783 ;;
4784 sysv5* | sco5v6* | sysv4.2uw2*)
4785 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4786 if test -n "$kargmax"; then
4787 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4788 else
4789 lt_cv_sys_max_cmd_len=32768
4790 fi
4791 ;;
4792 *)
82a6cadf
PB
4793 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4794 if test -n $lt_cv_sys_max_cmd_len; then
4795 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4796 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4797 else
4798 # Make teststring a little bigger before we do anything with it.
4799 # a 1K string should be a reasonable start.
4800 for i in 1 2 3 4 5 6 7 8 ; do
4801 teststring=$teststring$teststring
4802 done
4803 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4804 # If test is not a shell built-in, we'll probably end up computing a
4805 # maximum length that is only half of the actual maximum length, but
4806 # we can't tell.
4807 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4808 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4809 test $i != 17 # 1/2 MB should be enough
4810 do
4811 i=`expr $i + 1`
4812 teststring=$teststring$teststring
4813 done
4814 # Only check the string length outside the loop.
4815 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4816 teststring=
4817 # Add a significant safety factor because C++ compilers can tack on
4818 # massive amounts of additional arguments before passing them to the
4819 # linker. It appears as though 1/2 is a usable value.
4820 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4821 fi
1cf3d07d 4822 ;;
6dab073b
MS
4823 esac
4824
4825fi
4826
1cf3d07d 4827if test -n $lt_cv_sys_max_cmd_len ; then
7eed349e
PC
4828 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4829echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6dab073b 4830else
7eed349e
PC
4831 echo "$as_me:$LINENO: result: none" >&5
4832echo "${ECHO_T}none" >&6
6dab073b 4833fi
1cf3d07d 4834max_cmd_len=$lt_cv_sys_max_cmd_len
6dab073b
MS
4835
4836
1cf3d07d
SE
4837
4838
4839
4840
4841
4842: ${CP="cp -f"}
4843: ${MV="mv -f"}
4844: ${RM="rm -f"}
4845
7eed349e
PC
4846echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4847echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
1cf3d07d
SE
4848# Try some XSI features
4849xsi_shell=no
4850( _lt_dummy="a/b/c"
4851 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4852 = c,a/b,, ) >/dev/null 2>&1 \
4853 && xsi_shell=yes
7eed349e
PC
4854echo "$as_me:$LINENO: result: $xsi_shell" >&5
4855echo "${ECHO_T}$xsi_shell" >&6
1cf3d07d
SE
4856
4857
7eed349e
PC
4858echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4859echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
1cf3d07d
SE
4860lt_shell_append=no
4861( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4862 >/dev/null 2>&1 \
4863 && lt_shell_append=yes
7eed349e
PC
4864echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4865echo "${ECHO_T}$lt_shell_append" >&6
1cf3d07d
SE
4866
4867
4868if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4869 lt_unset=unset
3df64633 4870else
1cf3d07d
SE
4871 lt_unset=false
4872fi
3df64633 4873
3df64633 4874
1cf3d07d
SE
4875
4876
4877
4878# test EBCDIC or ASCII
4879case `echo X|tr X '\101'` in
4880 A) # ASCII based system
4881 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4882 lt_SP2NL='tr \040 \012'
4883 lt_NL2SP='tr \015\012 \040\040'
4884 ;;
4885 *) # EBCDIC based system
4886 lt_SP2NL='tr \100 \n'
4887 lt_NL2SP='tr \r\n \100\100'
3df64633
AO
4888 ;;
4889esac
3df64633 4890
1cf3d07d
SE
4891
4892
4893
4894
4895
4896
4897
4898
7eed349e
PC
4899echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4900echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
1cf3d07d
SE
4901if test "${lt_cv_ld_reload_flag+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 4903else
1cf3d07d 4904 lt_cv_ld_reload_flag='-r'
3df64633 4905fi
7eed349e
PC
4906echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4907echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
1cf3d07d
SE
4908reload_flag=$lt_cv_ld_reload_flag
4909case $reload_flag in
4910"" | " "*) ;;
4911*) reload_flag=" $reload_flag" ;;
4912esac
4913reload_cmds='$LD$reload_flag -o $output$reload_objs'
4914case $host_os in
4915 darwin*)
4916 if test "$GCC" = yes; then
4917 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4918 else
4919 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4920 fi
4921 ;;
4922esac
3df64633 4923
1cf3d07d
SE
4924
4925
4926
4927
4928
4929
4930
4931
4932
7eed349e
PC
4933echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4934echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
1cf3d07d 4935if test "${lt_cv_deplibs_check_method+set}" = set; then
ff66d28f 4936 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 4937else
1cf3d07d
SE
4938 lt_cv_file_magic_cmd='$MAGIC_CMD'
4939lt_cv_file_magic_test_file=
4940lt_cv_deplibs_check_method='unknown'
4941# Need to set the preceding variable on all platforms that support
4942# interlibrary dependencies.
4943# 'none' -- dependencies not supported.
4944# `unknown' -- same as none, but documents that we really don't know.
4945# 'pass_all' -- all dependencies passed with no checks.
4946# 'test_compile' -- check by making test program.
4947# 'file_magic [[regex]]' -- check by looking for files in library path
4948# which responds to the $file_magic_cmd with a given extended regex.
4949# If you have `file' or equivalent on your system and you're not sure
4950# whether `pass_all' will *always* work, you probably want this one.
4951
4952case $host_os in
716e4bc6 4953aix[4-9]*)
1cf3d07d
SE
4954 lt_cv_deplibs_check_method=pass_all
4955 ;;
4956
4957beos*)
4958 lt_cv_deplibs_check_method=pass_all
4959 ;;
4960
4961bsdi[45]*)
4962 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4963 lt_cv_file_magic_cmd='/usr/bin/file -L'
4964 lt_cv_file_magic_test_file=/shlib/libc.so
4965 ;;
4966
4967cygwin*)
4968 # func_win32_libid is a shell function defined in ltmain.sh
4969 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4970 lt_cv_file_magic_cmd='func_win32_libid'
4971 ;;
4972
4973mingw* | pw32*)
4974 # Base MSYS/MinGW do not provide the 'file' command needed by
4975 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4976 # unless we find 'file', for example because we are cross-compiling.
4977 if ( file / ) >/dev/null 2>&1; then
4978 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4979 lt_cv_file_magic_cmd='func_win32_libid'
4980 else
4981 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4982 lt_cv_file_magic_cmd='$OBJDUMP -f'
4983 fi
4984 ;;
4985
4986darwin* | rhapsody*)
4987 lt_cv_deplibs_check_method=pass_all
4988 ;;
4989
4990freebsd* | dragonfly*)
4991 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4992 case $host_cpu in
4993 i*86 )
4994 # Not sure whether the presence of OpenBSD here was a mistake.
4995 # Let's accept both of them until this is cleared up.
4996 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4997 lt_cv_file_magic_cmd=/usr/bin/file
4998 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4999 ;;
5000 esac
5001 else
5002 lt_cv_deplibs_check_method=pass_all
5003 fi
3df64633 5004 ;;
1cf3d07d
SE
5005
5006gnu*)
5007 lt_cv_deplibs_check_method=pass_all
3df64633 5008 ;;
1cf3d07d
SE
5009
5010hpux10.20* | hpux11*)
5011 lt_cv_file_magic_cmd=/usr/bin/file
5012 case $host_cpu in
5013 ia64*)
5014 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5015 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5016 ;;
5017 hppa*64*)
5018 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5019 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5020 ;;
3df64633 5021 *)
1cf3d07d
SE
5022 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5023 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5024 ;;
5025 esac
5026 ;;
3df64633 5027
1cf3d07d
SE
5028interix[3-9]*)
5029 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5030 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5031 ;;
3df64633 5032
1cf3d07d
SE
5033irix5* | irix6* | nonstopux*)
5034 case $LD in
5035 *-32|*"-32 ") libmagic=32-bit;;
5036 *-n32|*"-n32 ") libmagic=N32;;
5037 *-64|*"-64 ") libmagic=64-bit;;
5038 *) libmagic=never-match;;
5039 esac
5040 lt_cv_deplibs_check_method=pass_all
3df64633 5041 ;;
3df64633 5042
1cf3d07d
SE
5043# This must be Linux ELF.
5044linux* | k*bsd*-gnu)
5045 lt_cv_deplibs_check_method=pass_all
5046 ;;
3df64633 5047
1cf3d07d
SE
5048netbsd*)
5049 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5050 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3df64633 5051 else
1cf3d07d 5052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3df64633 5053 fi
1cf3d07d
SE
5054 ;;
5055
5056newos6*)
5057 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5058 lt_cv_file_magic_cmd=/usr/bin/file
5059 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5060 ;;
5061
5062*nto* | *qnx*)
5063 lt_cv_deplibs_check_method=pass_all
5064 ;;
3df64633 5065
1cf3d07d
SE
5066openbsd*)
5067 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5068 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5069 else
5070 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3df64633
AO
5071 fi
5072 ;;
1cf3d07d
SE
5073
5074osf3* | osf4* | osf5*)
5075 lt_cv_deplibs_check_method=pass_all
5076 ;;
5077
5078rdos*)
5079 lt_cv_deplibs_check_method=pass_all
5080 ;;
5081
5082solaris*)
5083 lt_cv_deplibs_check_method=pass_all
5084 ;;
5085
5086sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5087 lt_cv_deplibs_check_method=pass_all
5088 ;;
5089
5090sysv4 | sysv4.3*)
5091 case $host_vendor in
5092 motorola)
5093 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]'
5094 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5095 ;;
5096 ncr)
5097 lt_cv_deplibs_check_method=pass_all
5098 ;;
5099 sequent)
5100 lt_cv_file_magic_cmd='/bin/file'
5101 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5102 ;;
5103 sni)
5104 lt_cv_file_magic_cmd='/bin/file'
5105 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5106 lt_cv_file_magic_test_file=/lib/libc.so
5107 ;;
5108 siemens)
5109 lt_cv_deplibs_check_method=pass_all
5110 ;;
5111 pc)
5112 lt_cv_deplibs_check_method=pass_all
5113 ;;
5114 esac
5115 ;;
5116
5117tpf*)
5118 lt_cv_deplibs_check_method=pass_all
5119 ;;
3df64633
AO
5120esac
5121
1cf3d07d 5122fi
7eed349e
PC
5123echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5124echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
1cf3d07d
SE
5125file_magic_cmd=$lt_cv_file_magic_cmd
5126deplibs_check_method=$lt_cv_deplibs_check_method
5127test -z "$deplibs_check_method" && deplibs_check_method=unknown
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
ff66d28f 5140if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
5141 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5142set dummy ${ac_tool_prefix}ar; ac_word=$2
7eed349e
PC
5143echo "$as_me:$LINENO: checking for $ac_word" >&5
5144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 5145if test "${ac_cv_prog_AR+set}" = set; then
ff66d28f 5146 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 5147else
1cf3d07d
SE
5148 if test -n "$AR"; then
5149 ac_cv_prog_AR="$AR" # Let the user override the test.
3df64633 5150else
ff66d28f
PE
5151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152for as_dir in $PATH
5153do
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 5157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 5158 ac_cv_prog_AR="${ac_tool_prefix}ar"
ff66d28f
PE
5159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 break 2
5161 fi
5162done
5163done
5164
3df64633
AO
5165fi
5166fi
1cf3d07d
SE
5167AR=$ac_cv_prog_AR
5168if test -n "$AR"; then
7eed349e
PC
5169 echo "$as_me:$LINENO: result: $AR" >&5
5170echo "${ECHO_T}$AR" >&6
3df64633 5171else
7eed349e
PC
5172 echo "$as_me:$LINENO: result: no" >&5
5173echo "${ECHO_T}no" >&6
3df64633
AO
5174fi
5175
ff66d28f 5176fi
1cf3d07d
SE
5177if test -z "$ac_cv_prog_AR"; then
5178 ac_ct_AR=$AR
5179 # Extract the first word of "ar", so it can be a program name with args.
5180set dummy ar; ac_word=$2
7eed349e
PC
5181echo "$as_me:$LINENO: checking for $ac_word" >&5
5182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 5183if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
ff66d28f 5184 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 5185else
1cf3d07d
SE
5186 if test -n "$ac_ct_AR"; then
5187 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3df64633 5188else
ff66d28f
PE
5189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190for as_dir in $PATH
5191do
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 5195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 5196 ac_cv_prog_ac_ct_AR="ar"
ff66d28f
PE
5197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5199 fi
5200done
5201done
5202
7eed349e 5203 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
3df64633
AO
5204fi
5205fi
1cf3d07d
SE
5206ac_ct_AR=$ac_cv_prog_ac_ct_AR
5207if test -n "$ac_ct_AR"; then
7eed349e
PC
5208 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5209echo "${ECHO_T}$ac_ct_AR" >&6
3df64633 5210else
7eed349e
PC
5211 echo "$as_me:$LINENO: result: no" >&5
5212echo "${ECHO_T}no" >&6
3df64633
AO
5213fi
5214
7eed349e 5215 AR=$ac_ct_AR
3df64633 5216else
1cf3d07d 5217 AR="$ac_cv_prog_AR"
3df64633
AO
5218fi
5219
1cf3d07d
SE
5220test -z "$AR" && AR=ar
5221test -z "$AR_FLAGS" && AR_FLAGS=cru
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
ff66d28f
PE
5233if test -n "$ac_tool_prefix"; then
5234 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3df64633 5235set dummy ${ac_tool_prefix}strip; ac_word=$2
7eed349e
PC
5236echo "$as_me:$LINENO: checking for $ac_word" >&5
5237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
5238if test "${ac_cv_prog_STRIP+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633
AO
5240else
5241 if test -n "$STRIP"; then
5242 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5243else
ff66d28f
PE
5244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245for as_dir in $PATH
5246do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 5250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
5251 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5253 break 2
5254 fi
5255done
5256done
5257
3df64633
AO
5258fi
5259fi
ff66d28f 5260STRIP=$ac_cv_prog_STRIP
3df64633 5261if test -n "$STRIP"; then
7eed349e
PC
5262 echo "$as_me:$LINENO: result: $STRIP" >&5
5263echo "${ECHO_T}$STRIP" >&6
3df64633 5264else
7eed349e
PC
5265 echo "$as_me:$LINENO: result: no" >&5
5266echo "${ECHO_T}no" >&6
3df64633
AO
5267fi
5268
ff66d28f 5269fi
3df64633 5270if test -z "$ac_cv_prog_STRIP"; then
ff66d28f 5271 ac_ct_STRIP=$STRIP
3df64633
AO
5272 # Extract the first word of "strip", so it can be a program name with args.
5273set dummy strip; ac_word=$2
7eed349e
PC
5274echo "$as_me:$LINENO: checking for $ac_word" >&5
5275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
5276if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 5278else
ff66d28f
PE
5279 if test -n "$ac_ct_STRIP"; then
5280 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3df64633 5281else
ff66d28f
PE
5282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283for as_dir in $PATH
5284do
5285 IFS=$as_save_IFS
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 5288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
5289 ac_cv_prog_ac_ct_STRIP="strip"
5290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5291 break 2
5292 fi
5293done
5294done
5295
7eed349e 5296 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3df64633
AO
5297fi
5298fi
ff66d28f
PE
5299ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5300if test -n "$ac_ct_STRIP"; then
7eed349e
PC
5301 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5302echo "${ECHO_T}$ac_ct_STRIP" >&6
3df64633 5303else
7eed349e
PC
5304 echo "$as_me:$LINENO: result: no" >&5
5305echo "${ECHO_T}no" >&6
3df64633
AO
5306fi
5307
7eed349e 5308 STRIP=$ac_ct_STRIP
3df64633 5309else
ff66d28f 5310 STRIP="$ac_cv_prog_STRIP"
3df64633
AO
5311fi
5312
1cf3d07d 5313test -z "$STRIP" && STRIP=:
b2dad0e3 5314
ff66d28f 5315
3840fa2a 5316
3840fa2a 5317
b2dad0e3 5318
ff66d28f 5319
1cf3d07d
SE
5320if test -n "$ac_tool_prefix"; then
5321 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5322set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7eed349e
PC
5323echo "$as_me:$LINENO: checking for $ac_word" >&5
5324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d
SE
5325if test "${ac_cv_prog_RANLIB+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 5327else
1cf3d07d
SE
5328 if test -n "$RANLIB"; then
5329 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5330else
5331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332for as_dir in $PATH
5333do
5334 IFS=$as_save_IFS
5335 test -z "$as_dir" && as_dir=.
5336 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 5337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d
SE
5338 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5340 break 2
b2dad0e3 5341 fi
1cf3d07d
SE
5342done
5343done
b2dad0e3 5344
1cf3d07d
SE
5345fi
5346fi
5347RANLIB=$ac_cv_prog_RANLIB
5348if test -n "$RANLIB"; then
7eed349e
PC
5349 echo "$as_me:$LINENO: result: $RANLIB" >&5
5350echo "${ECHO_T}$RANLIB" >&6
1cf3d07d 5351else
7eed349e
PC
5352 echo "$as_me:$LINENO: result: no" >&5
5353echo "${ECHO_T}no" >&6
1cf3d07d 5354fi
38cca750 5355
1cf3d07d
SE
5356fi
5357if test -z "$ac_cv_prog_RANLIB"; then
5358 ac_ct_RANLIB=$RANLIB
5359 # Extract the first word of "ranlib", so it can be a program name with args.
5360set dummy ranlib; ac_word=$2
7eed349e
PC
5361echo "$as_me:$LINENO: checking for $ac_word" >&5
5362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d
SE
5363if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5365else
5366 if test -n "$ac_ct_RANLIB"; then
5367 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5368else
5369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370for as_dir in $PATH
5371do
5372 IFS=$as_save_IFS
5373 test -z "$as_dir" && as_dir=.
5374 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 5375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d
SE
5376 ac_cv_prog_ac_ct_RANLIB="ranlib"
5377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5378 break 2
162c7cd9 5379 fi
1cf3d07d
SE
5380done
5381done
162c7cd9 5382
7eed349e 5383 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1cf3d07d
SE
5384fi
5385fi
5386ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5387if test -n "$ac_ct_RANLIB"; then
7eed349e
PC
5388 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5389echo "${ECHO_T}$ac_ct_RANLIB" >&6
b2dad0e3 5390else
7eed349e
PC
5391 echo "$as_me:$LINENO: result: no" >&5
5392echo "${ECHO_T}no" >&6
1cf3d07d 5393fi
ff66d28f 5394
7eed349e 5395 RANLIB=$ac_ct_RANLIB
1cf3d07d
SE
5396else
5397 RANLIB="$ac_cv_prog_RANLIB"
5398fi
ff66d28f 5399
1cf3d07d 5400test -z "$RANLIB" && RANLIB=:
ff66d28f 5401
1cf3d07d
SE
5402
5403
5404
5405
5406
5407# Determine commands to create old-style static archives.
5408old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5409old_postinstall_cmds='chmod 644 $oldlib'
5410old_postuninstall_cmds=
5411
5412if test -n "$RANLIB"; then
5413 case $host_os in
5414 openbsd*)
5415 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5416 ;;
5417 *)
5418 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5419 ;;
5420 esac
5421 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5422fi
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457# If no C compiler was specified, use CC.
5458LTCC=${LTCC-"$CC"}
5459
5460# If no C compiler flags were specified, use CFLAGS.
5461LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5462
5463# Allow CC to be a program name with arguments.
5464compiler=$CC
5465
5466
5467# Check for command to grab the raw symbol name followed by C symbol from nm.
7eed349e
PC
5468echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5469echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
1cf3d07d
SE
5470if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5472else
5473
5474# These are sane defaults that work on at least a few old systems.
5475# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5476
5477# Character class describing NM global symbol codes.
5478symcode='[BCDEGRST]'
5479
5480# Regexp to match symbols that can be accessed directly from C.
5481sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5482
5483# Define system-specific variables.
5484case $host_os in
5485aix*)
5486 symcode='[BCDT]'
5487 ;;
5488cygwin* | mingw* | pw32*)
5489 symcode='[ABCDGISTW]'
5490 ;;
5491hpux*)
5492 if test "$host_cpu" = ia64; then
5493 symcode='[ABCDEGRST]'
5494 fi
5495 ;;
5496irix* | nonstopux*)
5497 symcode='[BCDEGRST]'
5498 ;;
5499osf*)
5500 symcode='[BCDEGQRST]'
5501 ;;
5502solaris*)
5503 symcode='[BDRT]'
5504 ;;
5505sco3.2v5*)
5506 symcode='[DT]'
5507 ;;
5508sysv4.2uw2*)
5509 symcode='[DT]'
5510 ;;
5511sysv5* | sco5v6* | unixware* | OpenUNIX*)
5512 symcode='[ABDT]'
5513 ;;
5514sysv4)
5515 symcode='[DFNSTU]'
5516 ;;
5517esac
5518
5519# If we're using GNU nm, then use its standard symbol codes.
5520case `$NM -V 2>&1` in
5521*GNU* | *'with BFD'*)
5522 symcode='[ABCDGIRSTW]' ;;
5523esac
5524
5525# Transform an extracted symbol line into a proper C declaration.
5526# Some systems (esp. on ia64) link data and code symbols differently,
5527# so use this general approach.
5528lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5529
5530# Transform an extracted symbol line into symbol name and symbol address
5531lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5532
5533# Handle CRLF in mingw tool chain
5534opt_cr=
5535case $build_os in
5536mingw*)
5537 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5538 ;;
5539esac
5540
5541# Try without a prefix underscore, then with it.
5542for ac_symprfx in "" "_"; do
5543
5544 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5545 symxfrm="\\1 $ac_symprfx\\2 \\2"
5546
5547 # Write the raw and C identifiers.
5548 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5549 # Fake it for dumpbin and say T for any non-static function
5550 # and D for any global variable.
5551 # Also find C++ and __fastcall symbols from MSVC++,
5552 # which start with @ or ?.
5553 lt_cv_sys_global_symbol_pipe="$AWK '"\
5554" {last_section=section; section=\$ 3};"\
5555" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5556" \$ 0!~/External *\|/{next};"\
5557" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5558" {if(hide[section]) next};"\
5559" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5560" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5561" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5562" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5563" ' prfx=^$ac_symprfx"
5564 else
5565 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5566 fi
5567
5568 # Check to see that the pipe works correctly.
5569 pipe_works=no
5570
5571 rm -f conftest*
5572 cat > conftest.$ac_ext <<_LT_EOF
5573#ifdef __cplusplus
5574extern "C" {
5575#endif
5576char nm_test_var;
5577void nm_test_func(void);
5578void nm_test_func(void){}
5579#ifdef __cplusplus
5580}
5581#endif
5582int main(){nm_test_var='a';nm_test_func();return(0);}
5583_LT_EOF
5584
5585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5586 (eval $ac_compile) 2>&5
5587 ac_status=$?
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; then
5590 # Now try to grab the symbols.
5591 nlist=conftest.nm
5592 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5593 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5594 ac_status=$?
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } && test -s "$nlist"; then
5597 # Try sorting and uniquifying the output.
5598 if sort "$nlist" | uniq > "$nlist"T; then
5599 mv -f "$nlist"T "$nlist"
5600 else
5601 rm -f "$nlist"T
5602 fi
5603
5604 # Make sure that we snagged all the symbols we need.
5605 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5606 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5607 cat <<_LT_EOF > conftest.$ac_ext
5608#ifdef __cplusplus
5609extern "C" {
5610#endif
5611
5612_LT_EOF
5613 # Now generate the symbol file.
5614 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5615
5616 cat <<_LT_EOF >> conftest.$ac_ext
5617
5618/* The mapping between symbol names and symbols. */
5619const struct {
5620 const char *name;
5621 void *address;
5622}
5623lt__PROGRAM__LTX_preloaded_symbols[] =
5624{
5625 { "@PROGRAM@", (void *) 0 },
5626_LT_EOF
5627 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5628 cat <<\_LT_EOF >> conftest.$ac_ext
5629 {0, (void *) 0}
5630};
5631
5632/* This works around a problem in FreeBSD linker */
5633#ifdef FREEBSD_WORKAROUND
5634static const void *lt_preloaded_setup() {
5635 return lt__PROGRAM__LTX_preloaded_symbols;
5636}
5637#endif
5638
5639#ifdef __cplusplus
5640}
5641#endif
5642_LT_EOF
5643 # Now try linking the two files.
5644 mv conftest.$ac_objext conftstm.$ac_objext
5645 lt_save_LIBS="$LIBS"
5646 lt_save_CFLAGS="$CFLAGS"
5647 LIBS="conftstm.$ac_objext"
5648 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5650 (eval $ac_link) 2>&5
5651 ac_status=$?
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5654 pipe_works=yes
5655 fi
5656 LIBS="$lt_save_LIBS"
5657 CFLAGS="$lt_save_CFLAGS"
5658 else
5659 echo "cannot find nm_test_func in $nlist" >&5
5660 fi
5661 else
5662 echo "cannot find nm_test_var in $nlist" >&5
5663 fi
5664 else
5665 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5666 fi
5667 else
5668 echo "$progname: failed program was:" >&5
5669 cat conftest.$ac_ext >&5
5670 fi
5671 rm -f conftest* conftst*
5672
5673 # Do not use the global_symbol_pipe unless it works.
5674 if test "$pipe_works" = yes; then
5675 break
5676 else
5677 lt_cv_sys_global_symbol_pipe=
5678 fi
5679done
5680
5681fi
5682
5683if test -z "$lt_cv_sys_global_symbol_pipe"; then
5684 lt_cv_sys_global_symbol_to_cdecl=
5685fi
5686if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7eed349e
PC
5687 echo "$as_me:$LINENO: result: failed" >&5
5688echo "${ECHO_T}failed" >&6
1cf3d07d 5689else
7eed349e
PC
5690 echo "$as_me:$LINENO: result: ok" >&5
5691echo "${ECHO_T}ok" >&6
1cf3d07d
SE
5692fi
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
7eed349e 5710# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1cf3d07d 5711if test "${enable_libtool_lock+set}" = set; then
7eed349e 5712 enableval="$enable_libtool_lock"
1cf3d07d 5713
7eed349e 5714fi;
1cf3d07d
SE
5715test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5716
5717# Some flags need to be propagated to the compiler or linker for good
5718# libtool support.
5719case $host in
5720ia64-*-hpux*)
5721 # Find out which ABI we are using.
5722 echo 'int i;' > conftest.$ac_ext
5723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5724 (eval $ac_compile) 2>&5
5725 ac_status=$?
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; then
5728 case `/usr/bin/file conftest.$ac_objext` in
5729 *ELF-32*)
5730 HPUX_IA64_MODE="32"
5731 ;;
5732 *ELF-64*)
5733 HPUX_IA64_MODE="64"
5734 ;;
5735 esac
5736 fi
5737 rm -rf conftest*
5738 ;;
5739*-*-irix6*)
5740 # Find out which ABI we are using.
727cd0bc 5741 echo '#line 5741 "configure"' > conftest.$ac_ext
1cf3d07d
SE
5742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5743 (eval $ac_compile) 2>&5
5744 ac_status=$?
5745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746 (exit $ac_status); }; then
5747 if test "$lt_cv_prog_gnu_ld" = yes; then
5748 case `/usr/bin/file conftest.$ac_objext` in
5749 *32-bit*)
5750 LD="${LD-ld} -melf32bsmip"
5751 ;;
5752 *N32*)
5753 LD="${LD-ld} -melf32bmipn32"
5754 ;;
5755 *64-bit*)
5756 LD="${LD-ld} -melf64bmip"
5757 ;;
5758 esac
5759 else
5760 case `/usr/bin/file conftest.$ac_objext` in
5761 *32-bit*)
5762 LD="${LD-ld} -32"
5763 ;;
5764 *N32*)
5765 LD="${LD-ld} -n32"
5766 ;;
5767 *64-bit*)
5768 LD="${LD-ld} -64"
5769 ;;
5770 esac
5771 fi
5772 fi
5773 rm -rf conftest*
5774 ;;
5775
5776x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5777s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5778 # Find out which ABI we are using.
5779 echo 'int i;' > conftest.$ac_ext
5780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5781 (eval $ac_compile) 2>&5
5782 ac_status=$?
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; then
5785 case `/usr/bin/file conftest.o` in
5786 *32-bit*)
5787 case $host in
5788 x86_64-*kfreebsd*-gnu)
5789 LD="${LD-ld} -m elf_i386_fbsd"
5790 ;;
5791 x86_64-*linux*)
5792 LD="${LD-ld} -m elf_i386"
5793 ;;
5794 ppc64-*linux*|powerpc64-*linux*)
5795 LD="${LD-ld} -m elf32ppclinux"
5796 ;;
5797 s390x-*linux*)
5798 LD="${LD-ld} -m elf_s390"
5799 ;;
5800 sparc64-*linux*)
5801 LD="${LD-ld} -m elf32_sparc"
5802 ;;
5803 esac
5804 ;;
5805 *64-bit*)
5806 case $host in
5807 x86_64-*kfreebsd*-gnu)
5808 LD="${LD-ld} -m elf_x86_64_fbsd"
5809 ;;
5810 x86_64-*linux*)
5811 LD="${LD-ld} -m elf_x86_64"
5812 ;;
5813 ppc*-*linux*|powerpc*-*linux*)
5814 LD="${LD-ld} -m elf64ppc"
5815 ;;
5816 s390*-*linux*|s390*-*tpf*)
5817 LD="${LD-ld} -m elf64_s390"
5818 ;;
5819 sparc*-*linux*)
5820 LD="${LD-ld} -m elf64_sparc"
5821 ;;
5822 esac
5823 ;;
5824 esac
5825 fi
5826 rm -rf conftest*
5827 ;;
5828
5829*-*-sco3.2v5*)
5830 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5831 SAVE_CFLAGS="$CFLAGS"
5832 CFLAGS="$CFLAGS -belf"
7eed349e
PC
5833 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5834echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
1cf3d07d
SE
5835if test "${lt_cv_cc_needs_belf+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5837else
5838 ac_ext=c
5839ac_cpp='$CPP $CPPFLAGS'
5840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5842ac_compiler_gnu=$ac_cv_c_compiler_gnu
5843
5844 if test x$gcc_no_link = xyes; then
5845 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5846echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5847 { (exit 1); exit 1; }; }
5848fi
5849cat >conftest.$ac_ext <<_ACEOF
5850/* confdefs.h. */
ff66d28f
PE
5851_ACEOF
5852cat confdefs.h >>conftest.$ac_ext
5853cat >>conftest.$ac_ext <<_ACEOF
5854/* end confdefs.h. */
3df64633 5855
ff66d28f
PE
5856int
5857main ()
5858{
b2dad0e3 5859
ff66d28f
PE
5860 ;
5861 return 0;
5862}
5863_ACEOF
5864rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
5865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5866 (eval $ac_link) 2>conftest.er1
ff66d28f 5867 ac_status=$?
ec2075e9
BK
5868 grep -v '^ *+' conftest.er1 >conftest.err
5869 rm -f conftest.er1
5870 cat conftest.err >&5
ff66d28f 5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
5872 (exit $ac_status); } &&
5873 { ac_try='test -z "$ac_c_werror_flag"
5874 || test ! -s conftest.err'
5875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 (eval $ac_try) 2>&5
5877 ac_status=$?
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); }; } &&
5880 { ac_try='test -s conftest$ac_exeext'
5881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 (eval $ac_try) 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; }; then
b2dad0e3
BK
5886 lt_cv_cc_needs_belf=yes
5887else
ff66d28f
PE
5888 echo "$as_me: failed program was:" >&5
5889sed 's/^/| /' conftest.$ac_ext >&5
5890
7eed349e 5891lt_cv_cc_needs_belf=no
b2dad0e3 5892fi
7eed349e 5893rm -f conftest.err conftest.$ac_objext \
ec2075e9 5894 conftest$ac_exeext conftest.$ac_ext
3df64633 5895 ac_ext=c
3df64633 5896ac_cpp='$CPP $CPPFLAGS'
ff66d28f
PE
5897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5899ac_compiler_gnu=$ac_cv_c_compiler_gnu
3df64633 5900
b2dad0e3 5901fi
7eed349e
PC
5902echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5903echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
b2dad0e3
BK
5904 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5905 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5906 CFLAGS="$SAVE_CFLAGS"
5907 fi
5908 ;;
1cf3d07d
SE
5909sparc*-*solaris*)
5910 # Find out which ABI we are using.
5911 echo 'int i;' > conftest.$ac_ext
5912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5913 (eval $ac_compile) 2>&5
5914 ac_status=$?
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; then
5917 case `/usr/bin/file conftest.o` in
5918 *64-bit*)
5919 case $lt_cv_prog_gnu_ld in
5920 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5921 *) LD="${LD-ld} -64" ;;
5922 esac
5923 ;;
5924 esac
5925 fi
5926 rm -rf conftest*
5927 ;;
b2dad0e3
BK
5928esac
5929
1cf3d07d 5930need_locks="$enable_libtool_lock"
b2dad0e3 5931
7eed349e
PC
5932echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5933echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
1cf3d07d
SE
5934if test "${ac_cv_header_stdc+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5936else
5937 cat >conftest.$ac_ext <<_ACEOF
5938/* confdefs.h. */
ff66d28f 5939_ACEOF
1cf3d07d
SE
5940cat confdefs.h >>conftest.$ac_ext
5941cat >>conftest.$ac_ext <<_ACEOF
5942/* end confdefs.h. */
5943#include <stdlib.h>
5944#include <stdarg.h>
5945#include <string.h>
5946#include <float.h>
ff66d28f 5947
1cf3d07d
SE
5948int
5949main ()
ff66d28f 5950{
1cf3d07d
SE
5951
5952 ;
5953 return 0;
5954}
5955_ACEOF
5956rm -f conftest.$ac_objext
7eed349e
PC
5957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5958 (eval $ac_compile) 2>conftest.er1
1cf3d07d
SE
5959 ac_status=$?
5960 grep -v '^ *+' conftest.er1 >conftest.err
5961 rm -f conftest.er1
5962 cat conftest.err >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
5964 (exit $ac_status); } &&
5965 { ac_try='test -z "$ac_c_werror_flag"
5966 || test ! -s conftest.err'
5967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5968 (eval $ac_try) 2>&5
5969 ac_status=$?
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; } &&
5972 { ac_try='test -s conftest.$ac_objext'
5973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5974 (eval $ac_try) 2>&5
5975 ac_status=$?
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; }; then
1cf3d07d
SE
5978 ac_cv_header_stdc=yes
5979else
5980 echo "$as_me: failed program was:" >&5
5981sed 's/^/| /' conftest.$ac_ext >&5
5982
7eed349e 5983ac_cv_header_stdc=no
b2dad0e3 5984fi
7eed349e 5985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b2dad0e3 5986
1cf3d07d
SE
5987if test $ac_cv_header_stdc = yes; then
5988 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5989 cat >conftest.$ac_ext <<_ACEOF
5990/* confdefs.h. */
5991_ACEOF
5992cat confdefs.h >>conftest.$ac_ext
5993cat >>conftest.$ac_ext <<_ACEOF
5994/* end confdefs.h. */
5995#include <string.h>
b2dad0e3 5996
1cf3d07d
SE
5997_ACEOF
5998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5999 $EGREP "memchr" >/dev/null 2>&1; then
6000 :
b2dad0e3 6001else
1cf3d07d 6002 ac_cv_header_stdc=no
b2dad0e3 6003fi
1cf3d07d 6004rm -f conftest*
b2dad0e3 6005
1cf3d07d 6006fi
b2dad0e3 6007
1cf3d07d
SE
6008if test $ac_cv_header_stdc = yes; then
6009 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6010 cat >conftest.$ac_ext <<_ACEOF
6011/* confdefs.h. */
6012_ACEOF
6013cat confdefs.h >>conftest.$ac_ext
6014cat >>conftest.$ac_ext <<_ACEOF
6015/* end confdefs.h. */
6016#include <stdlib.h>
b2dad0e3 6017
1cf3d07d
SE
6018_ACEOF
6019if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6020 $EGREP "free" >/dev/null 2>&1; then
6021 :
6022else
6023 ac_cv_header_stdc=no
6024fi
6025rm -f conftest*
b2dad0e3 6026
1cf3d07d 6027fi
b2dad0e3 6028
1cf3d07d
SE
6029if test $ac_cv_header_stdc = yes; then
6030 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6031 if test "$cross_compiling" = yes; then
6032 :
ff66d28f 6033else
ff66d28f 6034 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
6035/* confdefs.h. */
6036_ACEOF
6037cat confdefs.h >>conftest.$ac_ext
6038cat >>conftest.$ac_ext <<_ACEOF
6039/* end confdefs.h. */
1cf3d07d
SE
6040#include <ctype.h>
6041#if ((' ' & 0x0FF) == 0x020)
6042# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6043# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
ff66d28f 6044#else
1cf3d07d
SE
6045# define ISLOWER(c) \
6046 (('a' <= (c) && (c) <= 'i') \
6047 || ('j' <= (c) && (c) <= 'r') \
6048 || ('s' <= (c) && (c) <= 'z'))
6049# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
ff66d28f 6050#endif
1cf3d07d
SE
6051
6052#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6053int
6054main ()
6055{
6056 int i;
6057 for (i = 0; i < 256; i++)
6058 if (XOR (islower (i), ISLOWER (i))
6059 || toupper (i) != TOUPPER (i))
7eed349e
PC
6060 exit(2);
6061 exit (0);
1cf3d07d 6062}
ff66d28f 6063_ACEOF
1cf3d07d 6064rm -f conftest$ac_exeext
7eed349e
PC
6065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6066 (eval $ac_link) 2>&5
ff66d28f 6067 ac_status=$?
ff66d28f 6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d 6069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7eed349e
PC
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 (eval $ac_try) 2>&5
1cf3d07d
SE
6072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; }; then
ff66d28f
PE
6075 :
6076else
1cf3d07d
SE
6077 echo "$as_me: program exited with status $ac_status" >&5
6078echo "$as_me: failed program was:" >&5
ff66d28f
PE
6079sed 's/^/| /' conftest.$ac_ext >&5
6080
1cf3d07d
SE
6081( exit $ac_status )
6082ac_cv_header_stdc=no
6083fi
7eed349e 6084rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
6085fi
6086fi
6087fi
7eed349e
PC
6088echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6089echo "${ECHO_T}$ac_cv_header_stdc" >&6
1cf3d07d
SE
6090if test $ac_cv_header_stdc = yes; then
6091
6092cat >>confdefs.h <<\_ACEOF
6093#define STDC_HEADERS 1
6094_ACEOF
6095
6096fi
6097
6098# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6109 inttypes.h stdint.h unistd.h
6110do
6111as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7eed349e
PC
6112echo "$as_me:$LINENO: checking for $ac_header" >&5
6113echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6114if eval "test \"\${$as_ac_Header+set}\" = set"; then
1cf3d07d
SE
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6116else
6117 cat >conftest.$ac_ext <<_ACEOF
6118/* confdefs.h. */
6119_ACEOF
6120cat confdefs.h >>conftest.$ac_ext
6121cat >>conftest.$ac_ext <<_ACEOF
6122/* end confdefs.h. */
6123$ac_includes_default
6124
6125#include <$ac_header>
6126_ACEOF
6127rm -f conftest.$ac_objext
7eed349e
PC
6128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6129 (eval $ac_compile) 2>conftest.er1
1cf3d07d
SE
6130 ac_status=$?
6131 grep -v '^ *+' conftest.er1 >conftest.err
6132 rm -f conftest.er1
6133 cat conftest.err >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
6135 (exit $ac_status); } &&
6136 { ac_try='test -z "$ac_c_werror_flag"
6137 || test ! -s conftest.err'
6138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6139 (eval $ac_try) 2>&5
6140 ac_status=$?
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; } &&
6143 { ac_try='test -s conftest.$ac_objext'
6144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6145 (eval $ac_try) 2>&5
6146 ac_status=$?
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); }; }; then
1cf3d07d
SE
6149 eval "$as_ac_Header=yes"
6150else
6151 echo "$as_me: failed program was:" >&5
6152sed 's/^/| /' conftest.$ac_ext >&5
6153
7eed349e 6154eval "$as_ac_Header=no"
1cf3d07d 6155fi
7eed349e 6156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 6157fi
7eed349e
PC
6158echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6159echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1cf3d07d
SE
6160if test `eval echo '${'$as_ac_Header'}'` = yes; then
6161 cat >>confdefs.h <<_ACEOF
6162#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6163_ACEOF
6164
6165fi
6166
6167done
6168
6169
6170
6171for ac_header in dlfcn.h
6172do
6173as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7eed349e
PC
6174echo "$as_me:$LINENO: checking for $ac_header" >&5
6175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6176if eval "test \"\${$as_ac_Header+set}\" = set"; then
1cf3d07d
SE
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6178else
6179 cat >conftest.$ac_ext <<_ACEOF
6180/* confdefs.h. */
6181_ACEOF
6182cat confdefs.h >>conftest.$ac_ext
6183cat >>conftest.$ac_ext <<_ACEOF
6184/* end confdefs.h. */
6185$ac_includes_default
6186
6187#include <$ac_header>
6188_ACEOF
6189rm -f conftest.$ac_objext
7eed349e
PC
6190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6191 (eval $ac_compile) 2>conftest.er1
1cf3d07d
SE
6192 ac_status=$?
6193 grep -v '^ *+' conftest.er1 >conftest.err
6194 rm -f conftest.er1
6195 cat conftest.err >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
6197 (exit $ac_status); } &&
6198 { ac_try='test -z "$ac_c_werror_flag"
6199 || test ! -s conftest.err'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201 (eval $ac_try) 2>&5
6202 ac_status=$?
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; } &&
6205 { ac_try='test -s conftest.$ac_objext'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207 (eval $ac_try) 2>&5
6208 ac_status=$?
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; }; then
1cf3d07d
SE
6211 eval "$as_ac_Header=yes"
6212else
6213 echo "$as_me: failed program was:" >&5
6214sed 's/^/| /' conftest.$ac_ext >&5
6215
7eed349e 6216eval "$as_ac_Header=no"
1cf3d07d 6217fi
7eed349e 6218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 6219fi
7eed349e
PC
6220echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6221echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1cf3d07d
SE
6222if test `eval echo '${'$as_ac_Header'}'` = yes; then
6223 cat >>confdefs.h <<_ACEOF
6224#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6225_ACEOF
6226
6227fi
6228
6229done
6230
6231
6232
7eed349e 6233ac_ext=cc
1cf3d07d
SE
6234ac_cpp='$CXXCPP $CPPFLAGS'
6235ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6236ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6237ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7eed349e
PC
6238if test -n "$ac_tool_prefix"; then
6239 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1cf3d07d
SE
6240 do
6241 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6242set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7eed349e
PC
6243echo "$as_me:$LINENO: checking for $ac_word" >&5
6244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d
SE
6245if test "${glibcxx_cv_prog_CXX+set}" = set; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6247else
6248 if test -n "$CXX"; then
6249 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
6250else
6251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6252for as_dir in $PATH
6253do
6254 IFS=$as_save_IFS
6255 test -z "$as_dir" && as_dir=.
6256 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 6257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d
SE
6258 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6260 break 2
6261 fi
6262done
6263done
6264
6265fi
6266fi
6267CXX=$glibcxx_cv_prog_CXX
6268if test -n "$CXX"; then
7eed349e
PC
6269 echo "$as_me:$LINENO: result: $CXX" >&5
6270echo "${ECHO_T}$CXX" >&6
1cf3d07d 6271else
7eed349e
PC
6272 echo "$as_me:$LINENO: result: no" >&5
6273echo "${ECHO_T}no" >&6
1cf3d07d
SE
6274fi
6275
6276 test -n "$CXX" && break
6277 done
6278fi
6279if test -z "$CXX"; then
6280 ac_ct_CXX=$CXX
7eed349e 6281 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1cf3d07d
SE
6282do
6283 # Extract the first word of "$ac_prog", so it can be a program name with args.
6284set dummy $ac_prog; ac_word=$2
7eed349e
PC
6285echo "$as_me:$LINENO: checking for $ac_word" >&5
6286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d
SE
6287if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6289else
6290 if test -n "$ac_ct_CXX"; then
6291 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6292else
6293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294for as_dir in $PATH
6295do
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 6299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d
SE
6300 ac_cv_prog_ac_ct_CXX="$ac_prog"
6301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 break 2
6303 fi
6304done
6305done
6306
6307fi
6308fi
6309ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6310if test -n "$ac_ct_CXX"; then
7eed349e
PC
6311 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6312echo "${ECHO_T}$ac_ct_CXX" >&6
1cf3d07d 6313else
7eed349e
PC
6314 echo "$as_me:$LINENO: result: no" >&5
6315echo "${ECHO_T}no" >&6
1cf3d07d
SE
6316fi
6317
6318 test -n "$ac_ct_CXX" && break
6319done
7eed349e 6320test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1cf3d07d 6321
7eed349e 6322 CXX=$ac_ct_CXX
1cf3d07d
SE
6323fi
6324
7eed349e 6325
1cf3d07d 6326# Provide some information about the compiler.
7eed349e
PC
6327echo "$as_me:$LINENO:" \
6328 "checking for C++ compiler version" >&5
1cf3d07d 6329ac_compiler=`set X $ac_compile; echo $2`
7eed349e
PC
6330{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6331 (eval $ac_compiler --version </dev/null >&5) 2>&5
1cf3d07d
SE
6332 ac_status=$?
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }
7eed349e
PC
6335{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6336 (eval $ac_compiler -v </dev/null >&5) 2>&5
1cf3d07d
SE
6337 ac_status=$?
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }
7eed349e
PC
6340{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6341 (eval $ac_compiler -V </dev/null >&5) 2>&5
1cf3d07d
SE
6342 ac_status=$?
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }
6345
7eed349e
PC
6346echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6347echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1cf3d07d
SE
6348if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6349 echo $ECHO_N "(cached) $ECHO_C" >&6
6350else
6351 cat >conftest.$ac_ext <<_ACEOF
6352/* confdefs.h. */
6353_ACEOF
6354cat confdefs.h >>conftest.$ac_ext
6355cat >>conftest.$ac_ext <<_ACEOF
6356/* end confdefs.h. */
6357
6358int
6359main ()
6360{
6361#ifndef __GNUC__
6362 choke me
6363#endif
6364
6365 ;
6366 return 0;
6367}
6368_ACEOF
6369rm -f conftest.$ac_objext
7eed349e
PC
6370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6371 (eval $ac_compile) 2>conftest.er1
1cf3d07d
SE
6372 ac_status=$?
6373 grep -v '^ *+' conftest.er1 >conftest.err
6374 rm -f conftest.er1
6375 cat conftest.err >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
6377 (exit $ac_status); } &&
6378 { ac_try='test -z "$ac_cxx_werror_flag"
6379 || test ! -s conftest.err'
6380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6381 (eval $ac_try) 2>&5
6382 ac_status=$?
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); }; } &&
6385 { ac_try='test -s conftest.$ac_objext'
6386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387 (eval $ac_try) 2>&5
6388 ac_status=$?
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }; }; then
1cf3d07d
SE
6391 ac_compiler_gnu=yes
6392else
6393 echo "$as_me: failed program was:" >&5
6394sed 's/^/| /' conftest.$ac_ext >&5
6395
7eed349e 6396ac_compiler_gnu=no
1cf3d07d 6397fi
7eed349e 6398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
6399ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6400
6401fi
7eed349e
PC
6402echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6403echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1cf3d07d
SE
6404GXX=`test $ac_compiler_gnu = yes && echo yes`
6405ac_test_CXXFLAGS=${CXXFLAGS+set}
6406ac_save_CXXFLAGS=$CXXFLAGS
7eed349e
PC
6407CXXFLAGS="-g"
6408echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6409echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1cf3d07d
SE
6410if test "${ac_cv_prog_cxx_g+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6412else
7eed349e 6413 cat >conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
6414/* confdefs.h. */
6415_ACEOF
6416cat confdefs.h >>conftest.$ac_ext
6417cat >>conftest.$ac_ext <<_ACEOF
6418/* end confdefs.h. */
6419
6420int
6421main ()
6422{
6423
6424 ;
6425 return 0;
6426}
6427_ACEOF
6428rm -f conftest.$ac_objext
7eed349e
PC
6429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6430 (eval $ac_compile) 2>conftest.er1
1cf3d07d
SE
6431 ac_status=$?
6432 grep -v '^ *+' conftest.er1 >conftest.err
6433 rm -f conftest.er1
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
6436 (exit $ac_status); } &&
6437 { ac_try='test -z "$ac_cxx_werror_flag"
6438 || test ! -s conftest.err'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6440 (eval $ac_try) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; } &&
6444 { ac_try='test -s conftest.$ac_objext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 (eval $ac_try) 2>&5
6447 ac_status=$?
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
1cf3d07d
SE
6450 ac_cv_prog_cxx_g=yes
6451else
6452 echo "$as_me: failed program was:" >&5
6453sed 's/^/| /' conftest.$ac_ext >&5
6454
7eed349e
PC
6455ac_cv_prog_cxx_g=no
6456fi
6457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6458fi
6459echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6460echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6461if test "$ac_test_CXXFLAGS" = set; then
6462 CXXFLAGS=$ac_save_CXXFLAGS
6463elif test $ac_cv_prog_cxx_g = yes; then
6464 if test "$GXX" = yes; then
6465 CXXFLAGS="-g -O2"
6466 else
6467 CXXFLAGS="-g"
6468 fi
6469else
6470 if test "$GXX" = yes; then
6471 CXXFLAGS="-O2"
6472 else
6473 CXXFLAGS=
6474 fi
6475fi
6476for ac_declaration in \
6477 '' \
6478 'extern "C" void std::exit (int) throw (); using std::exit;' \
6479 'extern "C" void std::exit (int); using std::exit;' \
6480 'extern "C" void exit (int) throw ();' \
6481 'extern "C" void exit (int);' \
6482 'void exit (int);'
6483do
6484 cat >conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
6485/* confdefs.h. */
6486_ACEOF
6487cat confdefs.h >>conftest.$ac_ext
6488cat >>conftest.$ac_ext <<_ACEOF
6489/* end confdefs.h. */
7eed349e
PC
6490$ac_declaration
6491#include <stdlib.h>
1cf3d07d
SE
6492int
6493main ()
6494{
7eed349e 6495exit (42);
1cf3d07d
SE
6496 ;
6497 return 0;
6498}
6499_ACEOF
6500rm -f conftest.$ac_objext
7eed349e
PC
6501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6502 (eval $ac_compile) 2>conftest.er1
1cf3d07d
SE
6503 ac_status=$?
6504 grep -v '^ *+' conftest.er1 >conftest.err
6505 rm -f conftest.er1
6506 cat conftest.err >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
6508 (exit $ac_status); } &&
6509 { ac_try='test -z "$ac_cxx_werror_flag"
6510 || test ! -s conftest.err'
6511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512 (eval $ac_try) 2>&5
6513 ac_status=$?
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); }; } &&
6516 { ac_try='test -s conftest.$ac_objext'
6517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518 (eval $ac_try) 2>&5
6519 ac_status=$?
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); }; }; then
1cf3d07d
SE
6522 :
6523else
6524 echo "$as_me: failed program was:" >&5
6525sed 's/^/| /' conftest.$ac_ext >&5
6526
7eed349e
PC
6527continue
6528fi
6529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6530 cat >conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
6531/* confdefs.h. */
6532_ACEOF
6533cat confdefs.h >>conftest.$ac_ext
6534cat >>conftest.$ac_ext <<_ACEOF
6535/* end confdefs.h. */
7eed349e 6536$ac_declaration
1cf3d07d
SE
6537int
6538main ()
6539{
7eed349e 6540exit (42);
1cf3d07d
SE
6541 ;
6542 return 0;
6543}
6544_ACEOF
6545rm -f conftest.$ac_objext
7eed349e
PC
6546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6547 (eval $ac_compile) 2>conftest.er1
1cf3d07d
SE
6548 ac_status=$?
6549 grep -v '^ *+' conftest.er1 >conftest.err
6550 rm -f conftest.er1
6551 cat conftest.err >&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
6553 (exit $ac_status); } &&
6554 { ac_try='test -z "$ac_cxx_werror_flag"
6555 || test ! -s conftest.err'
6556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557 (eval $ac_try) 2>&5
6558 ac_status=$?
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; } &&
6561 { ac_try='test -s conftest.$ac_objext'
6562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6563 (eval $ac_try) 2>&5
6564 ac_status=$?
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; }; then
6567 break
1cf3d07d
SE
6568else
6569 echo "$as_me: failed program was:" >&5
6570sed 's/^/| /' conftest.$ac_ext >&5
6571
6572fi
7eed349e
PC
6573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6574done
6575rm -f conftest*
6576if test -n "$ac_declaration"; then
6577 echo '#ifdef __cplusplus' >>confdefs.h
6578 echo $ac_declaration >>confdefs.h
6579 echo '#endif' >>confdefs.h
1cf3d07d
SE
6580fi
6581
6582ac_ext=c
6583ac_cpp='$CPP $CPPFLAGS'
6584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6586ac_compiler_gnu=$ac_cv_c_compiler_gnu
6587
6588if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6589 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6590 (test "X$CXX" != "Xg++"))) ; then
7eed349e 6591 ac_ext=cc
1cf3d07d
SE
6592ac_cpp='$CXXCPP $CPPFLAGS'
6593ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6594ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6595ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7eed349e
PC
6596echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6597echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
1cf3d07d
SE
6598if test -z "$CXXCPP"; then
6599 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6601else
6602 # Double quotes because CXXCPP needs to be expanded
6603 for CXXCPP in "$CXX -E" "/lib/cpp"
6604 do
6605 ac_preproc_ok=false
6606for ac_cxx_preproc_warn_flag in '' yes
6607do
6608 # Use a header file that comes with gcc, so configuring glibc
6609 # with a fresh cross-compiler works.
6610 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6611 # <limits.h> exists even on freestanding compilers.
6612 # On the NeXT, cc -E runs the code through the compiler's parser,
6613 # not just through cpp. "Syntax error" is here to catch this case.
6614 cat >conftest.$ac_ext <<_ACEOF
6615/* confdefs.h. */
6616_ACEOF
6617cat confdefs.h >>conftest.$ac_ext
6618cat >>conftest.$ac_ext <<_ACEOF
6619/* end confdefs.h. */
6620#ifdef __STDC__
6621# include <limits.h>
6622#else
6623# include <assert.h>
6624#endif
6625 Syntax error
6626_ACEOF
7eed349e
PC
6627if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1cf3d07d
SE
6629 ac_status=$?
6630 grep -v '^ *+' conftest.er1 >conftest.err
6631 rm -f conftest.er1
6632 cat conftest.err >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
6634 (exit $ac_status); } >/dev/null; then
6635 if test -s conftest.err; then
6636 ac_cpp_err=$ac_cxx_preproc_warn_flag
6637 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6638 else
6639 ac_cpp_err=
6640 fi
6641else
6642 ac_cpp_err=yes
6643fi
6644if test -z "$ac_cpp_err"; then
1cf3d07d
SE
6645 :
6646else
6647 echo "$as_me: failed program was:" >&5
6648sed 's/^/| /' conftest.$ac_ext >&5
6649
6650 # Broken: fails on valid input.
6651continue
6652fi
6653rm -f conftest.err conftest.$ac_ext
6654
7eed349e 6655 # OK, works on sane cases. Now check whether non-existent headers
1cf3d07d
SE
6656 # can be detected and how.
6657 cat >conftest.$ac_ext <<_ACEOF
6658/* confdefs.h. */
6659_ACEOF
6660cat confdefs.h >>conftest.$ac_ext
6661cat >>conftest.$ac_ext <<_ACEOF
6662/* end confdefs.h. */
6663#include <ac_nonexistent.h>
6664_ACEOF
7eed349e
PC
6665if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1cf3d07d
SE
6667 ac_status=$?
6668 grep -v '^ *+' conftest.er1 >conftest.err
6669 rm -f conftest.er1
6670 cat conftest.err >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
6672 (exit $ac_status); } >/dev/null; then
6673 if test -s conftest.err; then
6674 ac_cpp_err=$ac_cxx_preproc_warn_flag
6675 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6676 else
6677 ac_cpp_err=
6678 fi
6679else
6680 ac_cpp_err=yes
6681fi
6682if test -z "$ac_cpp_err"; then
1cf3d07d
SE
6683 # Broken: success on invalid input.
6684continue
6685else
6686 echo "$as_me: failed program was:" >&5
6687sed 's/^/| /' conftest.$ac_ext >&5
6688
6689 # Passes both tests.
6690ac_preproc_ok=:
6691break
6692fi
6693rm -f conftest.err conftest.$ac_ext
6694
6695done
6696# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6697rm -f conftest.err conftest.$ac_ext
6698if $ac_preproc_ok; then
6699 break
6700fi
6701
6702 done
6703 ac_cv_prog_CXXCPP=$CXXCPP
6704
6705fi
6706 CXXCPP=$ac_cv_prog_CXXCPP
6707else
6708 ac_cv_prog_CXXCPP=$CXXCPP
6709fi
7eed349e
PC
6710echo "$as_me:$LINENO: result: $CXXCPP" >&5
6711echo "${ECHO_T}$CXXCPP" >&6
1cf3d07d
SE
6712ac_preproc_ok=false
6713for ac_cxx_preproc_warn_flag in '' yes
6714do
6715 # Use a header file that comes with gcc, so configuring glibc
6716 # with a fresh cross-compiler works.
6717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6718 # <limits.h> exists even on freestanding compilers.
6719 # On the NeXT, cc -E runs the code through the compiler's parser,
6720 # not just through cpp. "Syntax error" is here to catch this case.
6721 cat >conftest.$ac_ext <<_ACEOF
6722/* confdefs.h. */
6723_ACEOF
6724cat confdefs.h >>conftest.$ac_ext
6725cat >>conftest.$ac_ext <<_ACEOF
6726/* end confdefs.h. */
6727#ifdef __STDC__
6728# include <limits.h>
6729#else
6730# include <assert.h>
6731#endif
6732 Syntax error
6733_ACEOF
7eed349e
PC
6734if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1cf3d07d
SE
6736 ac_status=$?
6737 grep -v '^ *+' conftest.er1 >conftest.err
6738 rm -f conftest.er1
6739 cat conftest.err >&5
6740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
6741 (exit $ac_status); } >/dev/null; then
6742 if test -s conftest.err; then
6743 ac_cpp_err=$ac_cxx_preproc_warn_flag
6744 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6745 else
6746 ac_cpp_err=
6747 fi
6748else
6749 ac_cpp_err=yes
6750fi
6751if test -z "$ac_cpp_err"; then
1cf3d07d
SE
6752 :
6753else
6754 echo "$as_me: failed program was:" >&5
6755sed 's/^/| /' conftest.$ac_ext >&5
6756
6757 # Broken: fails on valid input.
6758continue
6759fi
6760rm -f conftest.err conftest.$ac_ext
6761
7eed349e 6762 # OK, works on sane cases. Now check whether non-existent headers
1cf3d07d
SE
6763 # can be detected and how.
6764 cat >conftest.$ac_ext <<_ACEOF
6765/* confdefs.h. */
6766_ACEOF
6767cat confdefs.h >>conftest.$ac_ext
6768cat >>conftest.$ac_ext <<_ACEOF
6769/* end confdefs.h. */
6770#include <ac_nonexistent.h>
6771_ACEOF
7eed349e
PC
6772if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1cf3d07d
SE
6774 ac_status=$?
6775 grep -v '^ *+' conftest.er1 >conftest.err
6776 rm -f conftest.er1
6777 cat conftest.err >&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
6779 (exit $ac_status); } >/dev/null; then
6780 if test -s conftest.err; then
6781 ac_cpp_err=$ac_cxx_preproc_warn_flag
6782 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6783 else
6784 ac_cpp_err=
6785 fi
6786else
6787 ac_cpp_err=yes
6788fi
6789if test -z "$ac_cpp_err"; then
1cf3d07d
SE
6790 # Broken: success on invalid input.
6791continue
6792else
6793 echo "$as_me: failed program was:" >&5
6794sed 's/^/| /' conftest.$ac_ext >&5
6795
6796 # Passes both tests.
6797ac_preproc_ok=:
6798break
6799fi
6800rm -f conftest.err conftest.$ac_ext
6801
6802done
6803# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6804rm -f conftest.err conftest.$ac_ext
6805if $ac_preproc_ok; then
6806 :
6807else
18c04407
RW
6808 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6809echo "$as_me: error: in \`$ac_pwd':" >&2;}
6810_lt_caught_CXX_error=yes; }
1cf3d07d
SE
6811fi
6812
6813ac_ext=c
6814ac_cpp='$CPP $CPPFLAGS'
6815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6817ac_compiler_gnu=$ac_cv_c_compiler_gnu
6818
6819else
6820 _lt_caught_CXX_error=yes
6821fi
6822
6823
6824
6825
6826
6827# This can be used to rebuild libtool when needed
6828LIBTOOL_DEPS="$ltmain"
6829
6830# Always use our own libtool.
6831LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857test -z "$LN_S" && LN_S="ln -s"
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872if test -n "${ZSH_VERSION+set}" ; then
6873 setopt NO_GLOB_SUBST
6874fi
6875
7eed349e
PC
6876echo "$as_me:$LINENO: checking for objdir" >&5
6877echo $ECHO_N "checking for objdir... $ECHO_C" >&6
1cf3d07d
SE
6878if test "${lt_cv_objdir+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6880else
6881 rm -f .libs 2>/dev/null
6882mkdir .libs 2>/dev/null
6883if test -d .libs; then
6884 lt_cv_objdir=.libs
6885else
6886 # MS-DOS does not allow filenames that begin with a dot.
6887 lt_cv_objdir=_libs
6888fi
6889rmdir .libs 2>/dev/null
6890fi
7eed349e
PC
6891echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6892echo "${ECHO_T}$lt_cv_objdir" >&6
1cf3d07d
SE
6893objdir=$lt_cv_objdir
6894
6895
6896
6897
6898
6899cat >>confdefs.h <<_ACEOF
6900#define LT_OBJDIR "$lt_cv_objdir/"
6901_ACEOF
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919case $host_os in
6920aix3*)
6921 # AIX sometimes has problems with the GCC collect2 program. For some
6922 # reason, if we set the COLLECT_NAMES environment variable, the problems
6923 # vanish in a puff of smoke.
6924 if test "X${COLLECT_NAMES+set}" != Xset; then
6925 COLLECT_NAMES=
6926 export COLLECT_NAMES
6927 fi
6928 ;;
6929esac
6930
6931# Sed substitution that helps us do robust quoting. It backslashifies
6932# metacharacters that are still active within double-quoted strings.
6933sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6934
6935# Same as above, but do not quote variable references.
6936double_quote_subst='s/\(["`\\]\)/\\\1/g'
6937
6938# Sed substitution to delay expansion of an escaped shell variable in a
6939# double_quote_subst'ed string.
6940delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6941
6942# Sed substitution to delay expansion of an escaped single quote.
6943delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6944
6945# Sed substitution to avoid accidental globbing in evaled expressions
6946no_glob_subst='s/\*/\\\*/g'
6947
6948# Global variables:
6949ofile=libtool
6950can_build_shared=yes
6951
6952# All known linkers require a `.a' archive for static linking (except MSVC,
6953# which needs '.lib').
6954libext=a
6955
6956with_gnu_ld="$lt_cv_prog_gnu_ld"
6957
6958old_CC="$CC"
6959old_CFLAGS="$CFLAGS"
6960
6961# Set sane defaults for various variables
6962test -z "$CC" && CC=cc
6963test -z "$LTCC" && LTCC=$CC
6964test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6965test -z "$LD" && LD=ld
6966test -z "$ac_objext" && ac_objext=o
6967
6968for cc_temp in $compiler""; do
6969 case $cc_temp in
6970 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6971 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6972 \-*) ;;
6973 *) break;;
6974 esac
6975done
6976cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6977
6978
6979# Only perform the check for file, if the check method requires it
6980test -z "$MAGIC_CMD" && MAGIC_CMD=file
6981case $deplibs_check_method in
6982file_magic*)
6983 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7eed349e
PC
6984 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6985echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
1cf3d07d
SE
6986if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988else
6989 case $MAGIC_CMD in
6990[\\/*] | ?:[\\/]*)
6991 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6992 ;;
6993*)
6994 lt_save_MAGIC_CMD="$MAGIC_CMD"
6995 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6996 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6997 for ac_dir in $ac_dummy; do
6998 IFS="$lt_save_ifs"
6999 test -z "$ac_dir" && ac_dir=.
7000 if test -f $ac_dir/${ac_tool_prefix}file; then
7001 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7002 if test -n "$file_magic_test_file"; then
7003 case $deplibs_check_method in
7004 "file_magic "*)
7005 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7006 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7007 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7008 $EGREP "$file_magic_regex" > /dev/null; then
7009 :
7010 else
7011 cat <<_LT_EOF 1>&2
7012
7013*** Warning: the command libtool uses to detect shared libraries,
7014*** $file_magic_cmd, produces output that libtool cannot recognize.
7015*** The result is that libtool may fail to recognize shared libraries
7016*** as such. This will affect the creation of libtool libraries that
7017*** depend on shared libraries, but programs linked with such libtool
7018*** libraries will work regardless of this problem. Nevertheless, you
7019*** may want to report the problem to your system manager and/or to
7020*** bug-libtool@gnu.org
7021
7022_LT_EOF
7023 fi ;;
7024 esac
7025 fi
7026 break
7027 fi
7028 done
7029 IFS="$lt_save_ifs"
7030 MAGIC_CMD="$lt_save_MAGIC_CMD"
7031 ;;
7032esac
7033fi
7034
7035MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7036if test -n "$MAGIC_CMD"; then
7eed349e
PC
7037 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7038echo "${ECHO_T}$MAGIC_CMD" >&6
1cf3d07d 7039else
7eed349e
PC
7040 echo "$as_me:$LINENO: result: no" >&5
7041echo "${ECHO_T}no" >&6
1cf3d07d
SE
7042fi
7043
7044
7045
7046
7047
7048if test -z "$lt_cv_path_MAGIC_CMD"; then
7049 if test -n "$ac_tool_prefix"; then
7eed349e
PC
7050 echo "$as_me:$LINENO: checking for file" >&5
7051echo $ECHO_N "checking for file... $ECHO_C" >&6
1cf3d07d
SE
7052if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7054else
7055 case $MAGIC_CMD in
7056[\\/*] | ?:[\\/]*)
7057 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7058 ;;
7059*)
7060 lt_save_MAGIC_CMD="$MAGIC_CMD"
7061 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7062 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7063 for ac_dir in $ac_dummy; do
7064 IFS="$lt_save_ifs"
7065 test -z "$ac_dir" && ac_dir=.
7066 if test -f $ac_dir/file; then
7067 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7068 if test -n "$file_magic_test_file"; then
7069 case $deplibs_check_method in
7070 "file_magic "*)
7071 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7072 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7073 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7074 $EGREP "$file_magic_regex" > /dev/null; then
7075 :
7076 else
7077 cat <<_LT_EOF 1>&2
7078
7079*** Warning: the command libtool uses to detect shared libraries,
7080*** $file_magic_cmd, produces output that libtool cannot recognize.
7081*** The result is that libtool may fail to recognize shared libraries
7082*** as such. This will affect the creation of libtool libraries that
7083*** depend on shared libraries, but programs linked with such libtool
7084*** libraries will work regardless of this problem. Nevertheless, you
7085*** may want to report the problem to your system manager and/or to
7086*** bug-libtool@gnu.org
7087
7088_LT_EOF
7089 fi ;;
7090 esac
7091 fi
7092 break
7093 fi
7094 done
7095 IFS="$lt_save_ifs"
7096 MAGIC_CMD="$lt_save_MAGIC_CMD"
7097 ;;
7098esac
7099fi
7100
7101MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7102if test -n "$MAGIC_CMD"; then
7eed349e
PC
7103 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7104echo "${ECHO_T}$MAGIC_CMD" >&6
1cf3d07d 7105else
7eed349e
PC
7106 echo "$as_me:$LINENO: result: no" >&5
7107echo "${ECHO_T}no" >&6
1cf3d07d
SE
7108fi
7109
7110
7111 else
7112 MAGIC_CMD=:
7113 fi
7114fi
7115
7116 fi
7117 ;;
7118esac
7119
7120# Use C for the default configuration in the libtool script
7121
7122lt_save_CC="$CC"
7123ac_ext=c
7124ac_cpp='$CPP $CPPFLAGS'
7125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7127ac_compiler_gnu=$ac_cv_c_compiler_gnu
7128
7129
7130# Source file extension for C test sources.
7131ac_ext=c
7132
7133# Object file extension for compiled C test sources.
7134objext=o
7135objext=$objext
7136
7137# Code to be used in simple compile tests
7138lt_simple_compile_test_code="int some_variable = 0;"
7139
7140# Code to be used in simple link tests
7141lt_simple_link_test_code='int main(){return(0);}'
7142
7143
7144
7145
7146
7147
7148
7149# If no C compiler was specified, use CC.
7150LTCC=${LTCC-"$CC"}
7151
7152# If no C compiler flags were specified, use CFLAGS.
7153LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7154
7155# Allow CC to be a program name with arguments.
7156compiler=$CC
7157
7158# Save the default compiler, since it gets overwritten when the other
7159# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7160compiler_DEFAULT=$CC
7161
7162# save warnings/boilerplate of simple test code
7163ac_outfile=conftest.$ac_objext
7164echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7165eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7166_lt_compiler_boilerplate=`cat conftest.err`
7167$RM conftest*
7168
7169ac_outfile=conftest.$ac_objext
7170echo "$lt_simple_link_test_code" >conftest.$ac_ext
7171eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7172_lt_linker_boilerplate=`cat conftest.err`
7173$RM conftest*
7174
7175
7176## CAVEAT EMPTOR:
7177## There is no encapsulation within the following macros, do not change
7178## the running order or otherwise move them around unless you know exactly
7179## what you are doing...
7180if test -n "$compiler"; then
7181
7182lt_prog_compiler_no_builtin_flag=
7183
7184if test "$GCC" = yes; then
7185 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7186
7eed349e
PC
7187 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7188echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
1cf3d07d
SE
7189if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7191else
7192 lt_cv_prog_compiler_rtti_exceptions=no
7193 ac_outfile=conftest.$ac_objext
7194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7195 lt_compiler_flag="-fno-rtti -fno-exceptions"
7196 # Insert the option either (1) after the last *FLAGS variable, or
7197 # (2) before a word containing "conftest.", or (3) at the end.
7198 # Note that $ac_compile itself does not contain backslashes and begins
7199 # with a dollar sign (not a hyphen), so the echo should work correctly.
7200 # The option is referenced via a variable to avoid confusing sed.
7201 lt_compile=`echo "$ac_compile" | $SED \
7202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7204 -e 's:$: $lt_compiler_flag:'`
727cd0bc 7205 (eval echo "\"\$as_me:7205: $lt_compile\"" >&5)
1cf3d07d
SE
7206 (eval "$lt_compile" 2>conftest.err)
7207 ac_status=$?
7208 cat conftest.err >&5
727cd0bc 7209 echo "$as_me:7209: \$? = $ac_status" >&5
1cf3d07d
SE
7210 if (exit $ac_status) && test -s "$ac_outfile"; then
7211 # The compiler can only warn and ignore the option if not recognized
7212 # So say no if there are warnings other than the usual output.
7213 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7214 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7215 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7216 lt_cv_prog_compiler_rtti_exceptions=yes
7217 fi
7218 fi
7219 $RM conftest*
7220
7221fi
7eed349e
PC
7222echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7223echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
1cf3d07d
SE
7224
7225if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7226 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7227else
7228 :
7229fi
7230
7231fi
7232
7233
7234
7235
7236
7237
7238 lt_prog_compiler_wl=
7239lt_prog_compiler_pic=
7240lt_prog_compiler_static=
7241
7eed349e
PC
7242echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7243echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
1cf3d07d
SE
7244
7245 if test "$GCC" = yes; then
7246 lt_prog_compiler_wl='-Wl,'
7247 lt_prog_compiler_static='-static'
7248
7249 case $host_os in
7250 aix*)
7251 # All AIX code is PIC.
7252 if test "$host_cpu" = ia64; then
7253 # AIX 5 now supports IA64 processor
7254 lt_prog_compiler_static='-Bstatic'
7255 fi
7256 ;;
7257
7258 amigaos*)
7259 if test "$host_cpu" = m68k; then
7260 # FIXME: we need at least 68020 code to build shared libraries, but
7261 # adding the `-m68020' flag to GCC prevents building anything better,
7262 # like `-m68040'.
7263 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7264 fi
7265 ;;
7266
7267 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7268 # PIC is the default for these OSes.
7269 ;;
7270
7271 mingw* | cygwin* | pw32* | os2*)
7272 # This hack is so that the source file can tell whether it is being
7273 # built for inclusion in a dll (and should export symbols for example).
7274 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7275 # (--disable-auto-import) libraries
7276 lt_prog_compiler_pic='-DDLL_EXPORT'
7277 ;;
7278
7279 darwin* | rhapsody*)
7280 # PIC is the default on this platform
7281 # Common symbols not allowed in MH_DYLIB files
7282 lt_prog_compiler_pic='-fno-common'
7283 ;;
7284
7285 hpux*)
7286 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7287 # not for PA HP-UX.
7288 case $host_cpu in
7289 hppa*64*|ia64*)
7290 # +Z the default
7291 ;;
7292 *)
7293 lt_prog_compiler_pic='-fPIC'
7294 ;;
7295 esac
7296 ;;
7297
7298 interix[3-9]*)
7299 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7300 # Instead, we relocate shared libraries at runtime.
7301 ;;
7302
7303 msdosdjgpp*)
7304 # Just because we use GCC doesn't mean we suddenly get shared libraries
7305 # on systems that don't support them.
7306 lt_prog_compiler_can_build_shared=no
7307 enable_shared=no
7308 ;;
7309
7310 *nto* | *qnx*)
7311 # QNX uses GNU C++, but need to define -shared option too, otherwise
7312 # it will coredump.
7313 lt_prog_compiler_pic='-fPIC -shared'
7314 ;;
7315
7316 sysv4*MP*)
7317 if test -d /usr/nec; then
7318 lt_prog_compiler_pic=-Kconform_pic
7319 fi
7320 ;;
7321
7322 *)
7323 lt_prog_compiler_pic='-fPIC'
7324 ;;
7325 esac
7326 else
7327 # PORTME Check for flag to pass linker flags through the system compiler.
7328 case $host_os in
7329 aix*)
7330 lt_prog_compiler_wl='-Wl,'
7331 if test "$host_cpu" = ia64; then
7332 # AIX 5 now supports IA64 processor
7333 lt_prog_compiler_static='-Bstatic'
7334 else
7335 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7336 fi
7337 ;;
7338 darwin*)
7339 # PIC is the default on this platform
7340 # Common symbols not allowed in MH_DYLIB files
7341 case $cc_basename in
7342 xlc*)
7343 lt_prog_compiler_pic='-qnocommon'
7344 lt_prog_compiler_wl='-Wl,'
7345 ;;
7346 esac
7347 ;;
7348
7349 mingw* | cygwin* | pw32* | os2*)
7350 # This hack is so that the source file can tell whether it is being
7351 # built for inclusion in a dll (and should export symbols for example).
7352 lt_prog_compiler_pic='-DDLL_EXPORT'
7353 ;;
7354
7355 hpux9* | hpux10* | hpux11*)
7356 lt_prog_compiler_wl='-Wl,'
7357 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7358 # not for PA HP-UX.
7359 case $host_cpu in
7360 hppa*64*|ia64*)
7361 # +Z the default
7362 ;;
7363 *)
7364 lt_prog_compiler_pic='+Z'
7365 ;;
7366 esac
7367 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7368 lt_prog_compiler_static='${wl}-a ${wl}archive'
7369 ;;
7370
7371 irix5* | irix6* | nonstopux*)
7372 lt_prog_compiler_wl='-Wl,'
7373 # PIC (with -KPIC) is the default.
7374 lt_prog_compiler_static='-non_shared'
7375 ;;
7376
7377 linux* | k*bsd*-gnu)
7378 case $cc_basename in
7379 icc* | ecc*)
7380 lt_prog_compiler_wl='-Wl,'
7381 lt_prog_compiler_pic='-KPIC'
7382 lt_prog_compiler_static='-static'
7383 ;;
7384 pgcc* | pgf77* | pgf90* | pgf95*)
7385 # Portland Group compilers (*not* the Pentium gcc compiler,
7386 # which looks to be a dead project)
7387 lt_prog_compiler_wl='-Wl,'
7388 lt_prog_compiler_pic='-fpic'
7389 lt_prog_compiler_static='-Bstatic'
7390 ;;
7391 ccc*)
7392 lt_prog_compiler_wl='-Wl,'
7393 # All Alpha code is PIC.
7394 lt_prog_compiler_static='-non_shared'
7395 ;;
7396 *)
7397 case `$CC -V 2>&1 | sed 5q` in
7398 *Sun\ C*)
7399 # Sun C 5.9
7400 lt_prog_compiler_pic='-KPIC'
7401 lt_prog_compiler_static='-Bstatic'
7402 lt_prog_compiler_wl='-Wl,'
7403 ;;
7404 *Sun\ F*)
7405 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7406 lt_prog_compiler_pic='-KPIC'
7407 lt_prog_compiler_static='-Bstatic'
7408 lt_prog_compiler_wl=''
7409 ;;
7410 esac
7411 ;;
7412 esac
7413 ;;
7414
7415 newsos6)
7416 lt_prog_compiler_pic='-KPIC'
7417 lt_prog_compiler_static='-Bstatic'
7418 ;;
7419
7420 *nto* | *qnx*)
7421 # QNX uses GNU C++, but need to define -shared option too, otherwise
7422 # it will coredump.
7423 lt_prog_compiler_pic='-fPIC -shared'
7424 ;;
7425
7426 osf3* | osf4* | osf5*)
7427 lt_prog_compiler_wl='-Wl,'
7428 # All OSF/1 code is PIC.
7429 lt_prog_compiler_static='-non_shared'
7430 ;;
7431
7432 rdos*)
7433 lt_prog_compiler_static='-non_shared'
7434 ;;
7435
7436 solaris*)
7437 lt_prog_compiler_pic='-KPIC'
7438 lt_prog_compiler_static='-Bstatic'
7439 case $cc_basename in
7440 f77* | f90* | f95*)
7441 lt_prog_compiler_wl='-Qoption ld ';;
7442 *)
7443 lt_prog_compiler_wl='-Wl,';;
7444 esac
7445 ;;
7446
7447 sunos4*)
7448 lt_prog_compiler_wl='-Qoption ld '
7449 lt_prog_compiler_pic='-PIC'
7450 lt_prog_compiler_static='-Bstatic'
7451 ;;
7452
7453 sysv4 | sysv4.2uw2* | sysv4.3*)
7454 lt_prog_compiler_wl='-Wl,'
7455 lt_prog_compiler_pic='-KPIC'
7456 lt_prog_compiler_static='-Bstatic'
7457 ;;
7458
7459 sysv4*MP*)
7460 if test -d /usr/nec ;then
7461 lt_prog_compiler_pic='-Kconform_pic'
7462 lt_prog_compiler_static='-Bstatic'
7463 fi
7464 ;;
7465
7466 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7467 lt_prog_compiler_wl='-Wl,'
7468 lt_prog_compiler_pic='-KPIC'
7469 lt_prog_compiler_static='-Bstatic'
7470 ;;
7471
7472 unicos*)
7473 lt_prog_compiler_wl='-Wl,'
7474 lt_prog_compiler_can_build_shared=no
7475 ;;
7476
7477 uts4*)
7478 lt_prog_compiler_pic='-pic'
7479 lt_prog_compiler_static='-Bstatic'
7480 ;;
7481
7482 *)
7483 lt_prog_compiler_can_build_shared=no
7484 ;;
7485 esac
7486 fi
7487
7488case $host_os in
7489 # For platforms which do not support PIC, -DPIC is meaningless:
7490 *djgpp*)
7491 lt_prog_compiler_pic=
7492 ;;
7493 *)
7494 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7495 ;;
7496esac
7eed349e
PC
7497echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7498echo "${ECHO_T}$lt_prog_compiler_pic" >&6
1cf3d07d
SE
7499
7500
7501
7502
7503
7504
7505#
7506# Check to make sure the PIC flag actually works.
7507#
7508if test -n "$lt_prog_compiler_pic"; then
7eed349e
PC
7509 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7510echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
1cf3d07d
SE
7511if test "${lt_prog_compiler_pic_works+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7513else
7514 lt_prog_compiler_pic_works=no
7515 ac_outfile=conftest.$ac_objext
7516 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7517 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7518 # Insert the option either (1) after the last *FLAGS variable, or
7519 # (2) before a word containing "conftest.", or (3) at the end.
7520 # Note that $ac_compile itself does not contain backslashes and begins
7521 # with a dollar sign (not a hyphen), so the echo should work correctly.
7522 # The option is referenced via a variable to avoid confusing sed.
7523 lt_compile=`echo "$ac_compile" | $SED \
7524 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7525 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7526 -e 's:$: $lt_compiler_flag:'`
727cd0bc 7527 (eval echo "\"\$as_me:7527: $lt_compile\"" >&5)
1cf3d07d
SE
7528 (eval "$lt_compile" 2>conftest.err)
7529 ac_status=$?
7530 cat conftest.err >&5
727cd0bc 7531 echo "$as_me:7531: \$? = $ac_status" >&5
1cf3d07d
SE
7532 if (exit $ac_status) && test -s "$ac_outfile"; then
7533 # The compiler can only warn and ignore the option if not recognized
7534 # So say no if there are warnings other than the usual output.
7535 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7536 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7537 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7538 lt_prog_compiler_pic_works=yes
7539 fi
7540 fi
7541 $RM conftest*
7542
7543fi
7eed349e
PC
7544echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7545echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
1cf3d07d
SE
7546
7547if test x"$lt_prog_compiler_pic_works" = xyes; then
7548 case $lt_prog_compiler_pic in
7549 "" | " "*) ;;
7550 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7551 esac
7552else
7553 lt_prog_compiler_pic=
7554 lt_prog_compiler_can_build_shared=no
7555fi
7556
7557fi
7558
7559
7560
7561
7562
7563
7564#
7565# Check to make sure the static flag actually works.
7566#
7567wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7eed349e
PC
7568echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7569echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
1cf3d07d
SE
7570if test "${lt_prog_compiler_static_works+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7572else
7573 lt_prog_compiler_static_works=no
7574 save_LDFLAGS="$LDFLAGS"
7575 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7576 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7577 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7578 # The linker can only warn and ignore the option if not recognized
7579 # So say no if there are warnings
7580 if test -s conftest.err; then
7581 # Append any errors to the config.log.
7582 cat conftest.err 1>&5
7583 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7584 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7585 if diff conftest.exp conftest.er2 >/dev/null; then
7586 lt_prog_compiler_static_works=yes
7587 fi
7588 else
7589 lt_prog_compiler_static_works=yes
7590 fi
7591 fi
7592 $RM conftest*
7593 LDFLAGS="$save_LDFLAGS"
7594
7595fi
7eed349e
PC
7596echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7597echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
1cf3d07d
SE
7598
7599if test x"$lt_prog_compiler_static_works" = xyes; then
7600 :
7601else
7602 lt_prog_compiler_static=
7603fi
7604
7605
7606
7607
7608
7609
7610
7eed349e
PC
7611 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7612echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
1cf3d07d
SE
7613if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7614 echo $ECHO_N "(cached) $ECHO_C" >&6
7615else
7616 lt_cv_prog_compiler_c_o=no
7617 $RM -r conftest 2>/dev/null
7618 mkdir conftest
7619 cd conftest
7620 mkdir out
7621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7622
7623 lt_compiler_flag="-o out/conftest2.$ac_objext"
7624 # Insert the option either (1) after the last *FLAGS variable, or
7625 # (2) before a word containing "conftest.", or (3) at the end.
7626 # Note that $ac_compile itself does not contain backslashes and begins
7627 # with a dollar sign (not a hyphen), so the echo should work correctly.
7628 lt_compile=`echo "$ac_compile" | $SED \
7629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7631 -e 's:$: $lt_compiler_flag:'`
727cd0bc 7632 (eval echo "\"\$as_me:7632: $lt_compile\"" >&5)
1cf3d07d
SE
7633 (eval "$lt_compile" 2>out/conftest.err)
7634 ac_status=$?
7635 cat out/conftest.err >&5
727cd0bc 7636 echo "$as_me:7636: \$? = $ac_status" >&5
1cf3d07d
SE
7637 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7638 then
7639 # The compiler can only warn and ignore the option if not recognized
7640 # So say no if there are warnings
7641 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7642 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7643 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7644 lt_cv_prog_compiler_c_o=yes
7645 fi
7646 fi
7647 chmod u+w . 2>&5
7648 $RM conftest*
7649 # SGI C++ compiler will create directory out/ii_files/ for
7650 # template instantiation
7651 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7652 $RM out/* && rmdir out
7653 cd ..
7654 $RM -r conftest
7655 $RM conftest*
7656
7657fi
7eed349e
PC
7658echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7659echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1cf3d07d
SE
7660
7661
7662
7663
7664
7665
7eed349e
PC
7666 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7667echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
1cf3d07d
SE
7668if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7670else
7671 lt_cv_prog_compiler_c_o=no
7672 $RM -r conftest 2>/dev/null
7673 mkdir conftest
7674 cd conftest
7675 mkdir out
7676 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7677
7678 lt_compiler_flag="-o out/conftest2.$ac_objext"
7679 # Insert the option either (1) after the last *FLAGS variable, or
7680 # (2) before a word containing "conftest.", or (3) at the end.
7681 # Note that $ac_compile itself does not contain backslashes and begins
7682 # with a dollar sign (not a hyphen), so the echo should work correctly.
7683 lt_compile=`echo "$ac_compile" | $SED \
7684 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7686 -e 's:$: $lt_compiler_flag:'`
727cd0bc 7687 (eval echo "\"\$as_me:7687: $lt_compile\"" >&5)
1cf3d07d
SE
7688 (eval "$lt_compile" 2>out/conftest.err)
7689 ac_status=$?
7690 cat out/conftest.err >&5
727cd0bc 7691 echo "$as_me:7691: \$? = $ac_status" >&5
1cf3d07d
SE
7692 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7693 then
7694 # The compiler can only warn and ignore the option if not recognized
7695 # So say no if there are warnings
7696 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7697 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7698 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7699 lt_cv_prog_compiler_c_o=yes
7700 fi
7701 fi
7702 chmod u+w . 2>&5
7703 $RM conftest*
7704 # SGI C++ compiler will create directory out/ii_files/ for
7705 # template instantiation
7706 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7707 $RM out/* && rmdir out
7708 cd ..
7709 $RM -r conftest
7710 $RM conftest*
7711
7712fi
7eed349e
PC
7713echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7714echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1cf3d07d
SE
7715
7716
7717
7718
7719hard_links="nottested"
7720if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7721 # do not overwrite the value of need_locks provided by the user
7eed349e
PC
7722 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7723echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
1cf3d07d
SE
7724 hard_links=yes
7725 $RM conftest*
7726 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7727 touch conftest.a
7728 ln conftest.a conftest.b 2>&5 || hard_links=no
7729 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7eed349e
PC
7730 echo "$as_me:$LINENO: result: $hard_links" >&5
7731echo "${ECHO_T}$hard_links" >&6
1cf3d07d
SE
7732 if test "$hard_links" = no; then
7733 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7734echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7735 need_locks=warn
7736 fi
7737else
7738 need_locks=no
7739fi
7740
7741
7742
7743
7744
7745
7eed349e
PC
7746 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7747echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1cf3d07d
SE
7748
7749 runpath_var=
7750 allow_undefined_flag=
7751 always_export_symbols=no
7752 archive_cmds=
7753 archive_expsym_cmds=
7754 compiler_needs_object=no
7755 enable_shared_with_static_runtimes=no
7756 export_dynamic_flag_spec=
7757 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7758 hardcode_automatic=no
7759 hardcode_direct=no
7760 hardcode_direct_absolute=no
7761 hardcode_libdir_flag_spec=
7762 hardcode_libdir_flag_spec_ld=
7763 hardcode_libdir_separator=
7764 hardcode_minus_L=no
7765 hardcode_shlibpath_var=unsupported
7766 inherit_rpath=no
7767 link_all_deplibs=unknown
7768 module_cmds=
7769 module_expsym_cmds=
7770 old_archive_from_new_cmds=
7771 old_archive_from_expsyms_cmds=
7772 thread_safe_flag_spec=
7773 whole_archive_flag_spec=
7774 # include_expsyms should be a list of space-separated symbols to be *always*
7775 # included in the symbol list
7776 include_expsyms=
7777 # exclude_expsyms can be an extended regexp of symbols to exclude
7778 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7779 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7780 # as well as any symbol that contains `d'.
7781 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7782 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7783 # platforms (ab)use it in PIC code, but their linkers get confused if
7784 # the symbol is explicitly referenced. Since portable code cannot
7785 # rely on this symbol name, it's probably fine to never include it in
7786 # preloaded symbol tables.
7787 extract_expsyms_cmds=
7788
7789 case $host_os in
7790 cygwin* | mingw* | pw32*)
7791 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7792 # When not using gcc, we currently assume that we are using
7793 # Microsoft Visual C++.
7794 if test "$GCC" != yes; then
7795 with_gnu_ld=no
7796 fi
7797 ;;
7798 interix*)
7799 # we just hope/assume this is gcc and not c89 (= MSVC++)
7800 with_gnu_ld=yes
7801 ;;
7802 openbsd*)
7803 with_gnu_ld=no
7804 ;;
7805 esac
7806
7807 ld_shlibs=yes
7808 if test "$with_gnu_ld" = yes; then
7809 # If archive_cmds runs LD, not CC, wlarc should be empty
7810 wlarc='${wl}'
7811
7812 # Set some defaults for GNU ld with shared library support. These
7813 # are reset later if shared libraries are not supported. Putting them
7814 # here allows them to be overridden if necessary.
7815 runpath_var=LD_RUN_PATH
7816 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7817 export_dynamic_flag_spec='${wl}--export-dynamic'
7818 # ancient GNU ld didn't support --whole-archive et. al.
7819 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7820 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7821 else
7822 whole_archive_flag_spec=
7823 fi
7824 supports_anon_versioning=no
7825 case `$LD -v 2>&1` in
7826 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7827 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7828 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7829 *\ 2.11.*) ;; # other 2.11 versions
7830 *) supports_anon_versioning=yes ;;
7831 esac
7832
7833 # See if GNU ld supports shared libraries.
7834 case $host_os in
716e4bc6 7835 aix[3-9]*)
1cf3d07d
SE
7836 # On AIX/PPC, the GNU linker is very broken
7837 if test "$host_cpu" != ia64; then
7838 ld_shlibs=no
7839 cat <<_LT_EOF 1>&2
7840
7841*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7842*** to be unable to reliably create shared libraries on AIX.
7843*** Therefore, libtool is disabling shared libraries support. If you
7844*** really care for shared libraries, you may want to modify your PATH
7845*** so that a non-GNU linker is found, and then restart.
7846
7847_LT_EOF
7848 fi
7849 ;;
7850
7851 amigaos*)
7852 if test "$host_cpu" = m68k; then
7853 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7854 hardcode_libdir_flag_spec='-L$libdir'
7855 hardcode_minus_L=yes
7856 fi
7857
7858 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7859 # that the semantics of dynamic libraries on AmigaOS, at least up
7860 # to version 4, is to share data among multiple programs linked
7861 # with the same dynamic library. Since this doesn't match the
7862 # behavior of shared libraries on other platforms, we can't use
7863 # them.
7864 ld_shlibs=no
7865 ;;
7866
7867 beos*)
7868 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7869 allow_undefined_flag=unsupported
7870 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7871 # support --undefined. This deserves some investigation. FIXME
7872 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7873 else
7874 ld_shlibs=no
7875 fi
7876 ;;
7877
7878 cygwin* | mingw* | pw32*)
7879 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7880 # as there is no search path for DLLs.
7881 hardcode_libdir_flag_spec='-L$libdir'
7882 allow_undefined_flag=unsupported
7883 always_export_symbols=no
7884 enable_shared_with_static_runtimes=yes
7885 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7886
7887 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7888 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7889 # If the export-symbols file already is a .def file (1st line
7890 # is EXPORTS), use it as is; otherwise, prepend...
7891 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7892 cp $export_symbols $output_objdir/$soname.def;
7893 else
7894 echo EXPORTS > $output_objdir/$soname.def;
7895 cat $export_symbols >> $output_objdir/$soname.def;
7896 fi~
7897 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7898 else
7899 ld_shlibs=no
7900 fi
7901 ;;
7902
7903 interix[3-9]*)
7904 hardcode_direct=no
7905 hardcode_shlibpath_var=no
7906 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7907 export_dynamic_flag_spec='${wl}-E'
7908 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7909 # Instead, shared libraries are loaded at an image base (0x10000000 by
7910 # default) and relocated if they conflict, which is a slow very memory
7911 # consuming and fragmenting process. To avoid this, we pick a random,
7912 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7913 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7914 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7915 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7916 ;;
7917
7918 gnu* | linux* | tpf* | k*bsd*-gnu)
7919 tmp_diet=no
7920 if test "$host_os" = linux-dietlibc; then
7921 case $cc_basename in
7922 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7923 esac
7924 fi
7925 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7926 && test "$tmp_diet" = no
7927 then
7928 tmp_addflag=
7929 case $cc_basename,$host_cpu in
7930 pgcc*) # Portland Group C compiler
7931 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7932 tmp_addflag=' $pic_flag'
7933 ;;
7934 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7935 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7936 tmp_addflag=' $pic_flag -Mnomain' ;;
7937 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7938 tmp_addflag=' -i_dynamic' ;;
7939 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7940 tmp_addflag=' -i_dynamic -nofor_main' ;;
7941 ifc* | ifort*) # Intel Fortran compiler
7942 tmp_addflag=' -nofor_main' ;;
7943 esac
7944 case `$CC -V 2>&1 | sed 5q` in
7945 *Sun\ C*) # Sun C 5.9
7946 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7947 compiler_needs_object=yes
7948 tmp_sharedflag='-G' ;;
7949 *Sun\ F*) # Sun Fortran 8.3
7950 tmp_sharedflag='-G' ;;
7951 *)
7952 tmp_sharedflag='-shared' ;;
7953 esac
7954 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7955
7956 if test "x$supports_anon_versioning" = xyes; then
7957 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7958 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7959 echo "local: *; };" >> $output_objdir/$libname.ver~
7960 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7961 fi
7962 else
7963 ld_shlibs=no
7964 fi
7965 ;;
7966
7967 netbsd*)
7968 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7969 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7970 wlarc=
7971 else
7972 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7973 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7974 fi
7975 ;;
7976
7977 solaris*)
7978 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7979 ld_shlibs=no
7980 cat <<_LT_EOF 1>&2
7981
7982*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7983*** create shared libraries on Solaris systems. Therefore, libtool
7984*** is disabling shared libraries support. We urge you to upgrade GNU
7985*** binutils to release 2.9.1 or newer. Another option is to modify
7986*** your PATH or compiler configuration so that the native linker is
7987*** used, and then restart.
7988
7989_LT_EOF
7990 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7991 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7992 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7993 else
7994 ld_shlibs=no
7995 fi
7996 ;;
7997
7998 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7999 case `$LD -v 2>&1` in
8000 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8001 ld_shlibs=no
8002 cat <<_LT_EOF 1>&2
8003
8004*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8005*** reliably create shared libraries on SCO systems. Therefore, libtool
8006*** is disabling shared libraries support. We urge you to upgrade GNU
8007*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8008*** your PATH or compiler configuration so that the native linker is
8009*** used, and then restart.
8010
8011_LT_EOF
8012 ;;
8013 *)
8014 # For security reasons, it is highly recommended that you always
8015 # use absolute paths for naming shared libraries, and exclude the
8016 # DT_RUNPATH tag from executables and libraries. But doing so
8017 # requires that you compile everything twice, which is a pain.
8018 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8019 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8020 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8021 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8022 else
8023 ld_shlibs=no
8024 fi
8025 ;;
8026 esac
8027 ;;
8028
8029 sunos4*)
8030 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8031 wlarc=
8032 hardcode_direct=yes
8033 hardcode_shlibpath_var=no
8034 ;;
8035
8036 *)
8037 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8038 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8039 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8040 else
8041 ld_shlibs=no
8042 fi
8043 ;;
8044 esac
8045
8046 if test "$ld_shlibs" = no; then
8047 runpath_var=
8048 hardcode_libdir_flag_spec=
8049 export_dynamic_flag_spec=
8050 whole_archive_flag_spec=
8051 fi
8052 else
8053 # PORTME fill in a description of your system's linker (not GNU ld)
8054 case $host_os in
8055 aix3*)
8056 allow_undefined_flag=unsupported
8057 always_export_symbols=yes
8058 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8059 # Note: this linker hardcodes the directories in LIBPATH if there
8060 # are no directories specified by -L.
8061 hardcode_minus_L=yes
8062 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8063 # Neither direct hardcoding nor static linking is supported with a
8064 # broken collect2.
8065 hardcode_direct=unsupported
8066 fi
8067 ;;
8068
716e4bc6 8069 aix[4-9]*)
1cf3d07d
SE
8070 if test "$host_cpu" = ia64; then
8071 # On IA64, the linker does run time linking by default, so we don't
8072 # have to do anything special.
8073 aix_use_runtimelinking=no
8074 exp_sym_flag='-Bexport'
8075 no_entry_flag=""
8076 else
8077 # If we're using GNU nm, then we don't want the "-C" option.
8078 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8079 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8080 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8081 else
8082 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8083 fi
8084 aix_use_runtimelinking=no
8085
8086 # Test if we are trying to use run time linking or normal
8087 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8088 # need to do runtime linking.
716e4bc6 8089 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
8090 for ld_flag in $LDFLAGS; do
8091 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8092 aix_use_runtimelinking=yes
8093 break
8094 fi
8095 done
8096 ;;
8097 esac
8098
8099 exp_sym_flag='-bexport'
8100 no_entry_flag='-bnoentry'
8101 fi
8102
8103 # When large executables or shared objects are built, AIX ld can
8104 # have problems creating the table of contents. If linking a library
8105 # or program results in "error TOC overflow" add -mminimal-toc to
8106 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8107 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8108
8109 archive_cmds=''
8110 hardcode_direct=yes
8111 hardcode_direct_absolute=yes
8112 hardcode_libdir_separator=':'
8113 link_all_deplibs=yes
8114 file_list_spec='${wl}-f,'
8115
8116 if test "$GCC" = yes; then
8117 case $host_os in aix4.[012]|aix4.[012].*)
8118 # We only want to do this on AIX 4.2 and lower, the check
8119 # below for broken collect2 doesn't work under 4.3+
8120 collect2name=`${CC} -print-prog-name=collect2`
8121 if test -f "$collect2name" &&
8122 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8123 then
8124 # We have reworked collect2
8125 :
8126 else
8127 # We have old collect2
8128 hardcode_direct=unsupported
8129 # It fails to find uninstalled libraries when the uninstalled
8130 # path is not listed in the libpath. Setting hardcode_minus_L
8131 # to unsupported forces relinking
8132 hardcode_minus_L=yes
8133 hardcode_libdir_flag_spec='-L$libdir'
8134 hardcode_libdir_separator=
8135 fi
8136 ;;
8137 esac
8138 shared_flag='-shared'
8139 if test "$aix_use_runtimelinking" = yes; then
8140 shared_flag="$shared_flag "'${wl}-G'
8141 fi
8142 else
8143 # not using gcc
8144 if test "$host_cpu" = ia64; then
8145 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8146 # chokes on -Wl,-G. The following line is correct:
8147 shared_flag='-G'
8148 else
8149 if test "$aix_use_runtimelinking" = yes; then
8150 shared_flag='${wl}-G'
8151 else
8152 shared_flag='${wl}-bM:SRE'
8153 fi
8154 fi
8155 fi
8156
8157 # It seems that -bexpall does not export symbols beginning with
8158 # underscore (_), so it is better to generate a list of symbols to export.
8159 always_export_symbols=yes
8160 if test "$aix_use_runtimelinking" = yes; then
8161 # Warning - without using the other runtime loading flags (-brtl),
8162 # -berok will link without error, but may produce a broken library.
8163 allow_undefined_flag='-berok'
8164 # Determine the default libpath from the value encoded in an
8165 # empty executable.
8166 if test x$gcc_no_link = xyes; then
8167 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8168echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8169 { (exit 1); exit 1; }; }
8170fi
8171cat >conftest.$ac_ext <<_ACEOF
8172/* confdefs.h. */
8173_ACEOF
8174cat confdefs.h >>conftest.$ac_ext
8175cat >>conftest.$ac_ext <<_ACEOF
8176/* end confdefs.h. */
8177
8178int
8179main ()
8180{
8181
8182 ;
8183 return 0;
8184}
8185_ACEOF
8186rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
8187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8188 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
8189 ac_status=$?
8190 grep -v '^ *+' conftest.er1 >conftest.err
8191 rm -f conftest.er1
8192 cat conftest.err >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
8194 (exit $ac_status); } &&
8195 { ac_try='test -z "$ac_c_werror_flag"
8196 || test ! -s conftest.err'
8197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198 (eval $ac_try) 2>&5
8199 ac_status=$?
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); }; } &&
8202 { ac_try='test -s conftest$ac_exeext'
8203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204 (eval $ac_try) 2>&5
8205 ac_status=$?
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); }; }; then
1cf3d07d
SE
8208
8209lt_aix_libpath_sed='
8210 /Import File Strings/,/^$/ {
8211 /^0/ {
8212 s/^0 *\(.*\)$/\1/
8213 p
8214 }
8215 }'
8216aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8217# Check for a 64-bit object if we didn't find anything.
8218if test -z "$aix_libpath"; then
8219 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8220fi
8221else
8222 echo "$as_me: failed program was:" >&5
8223sed 's/^/| /' conftest.$ac_ext >&5
8224
8225fi
7eed349e 8226rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
8227 conftest$ac_exeext conftest.$ac_ext
8228if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8229
8230 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8231 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8232 else
8233 if test "$host_cpu" = ia64; then
8234 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8235 allow_undefined_flag="-z nodefs"
8236 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8237 else
8238 # Determine the default libpath from the value encoded in an
8239 # empty executable.
8240 if test x$gcc_no_link = xyes; then
8241 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8242echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8243 { (exit 1); exit 1; }; }
8244fi
8245cat >conftest.$ac_ext <<_ACEOF
8246/* confdefs.h. */
8247_ACEOF
8248cat confdefs.h >>conftest.$ac_ext
8249cat >>conftest.$ac_ext <<_ACEOF
8250/* end confdefs.h. */
8251
8252int
8253main ()
8254{
8255
8256 ;
8257 return 0;
8258}
8259_ACEOF
8260rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
8261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8262 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
8263 ac_status=$?
8264 grep -v '^ *+' conftest.er1 >conftest.err
8265 rm -f conftest.er1
8266 cat conftest.err >&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
8268 (exit $ac_status); } &&
8269 { ac_try='test -z "$ac_c_werror_flag"
8270 || test ! -s conftest.err'
8271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272 (eval $ac_try) 2>&5
8273 ac_status=$?
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); }; } &&
8276 { ac_try='test -s conftest$ac_exeext'
8277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8278 (eval $ac_try) 2>&5
8279 ac_status=$?
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); }; }; then
1cf3d07d
SE
8282
8283lt_aix_libpath_sed='
8284 /Import File Strings/,/^$/ {
8285 /^0/ {
8286 s/^0 *\(.*\)$/\1/
8287 p
8288 }
8289 }'
8290aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8291# Check for a 64-bit object if we didn't find anything.
8292if test -z "$aix_libpath"; then
8293 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8294fi
8295else
8296 echo "$as_me: failed program was:" >&5
8297sed 's/^/| /' conftest.$ac_ext >&5
8298
8299fi
7eed349e 8300rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
8301 conftest$ac_exeext conftest.$ac_ext
8302if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8303
8304 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8305 # Warning - without using the other run time loading flags,
8306 # -berok will link without error, but may produce a broken library.
8307 no_undefined_flag=' ${wl}-bernotok'
8308 allow_undefined_flag=' ${wl}-berok'
8309 # Exported symbols can be pulled into shared objects from archives
8310 whole_archive_flag_spec='$convenience'
8311 archive_cmds_need_lc=yes
8312 # This is similar to how AIX traditionally builds its shared libraries.
8313 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8314 fi
8315 fi
8316 ;;
8317
8318 amigaos*)
8319 if test "$host_cpu" = m68k; then
8320 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8321 hardcode_libdir_flag_spec='-L$libdir'
8322 hardcode_minus_L=yes
8323 fi
8324 # see comment about different semantics on the GNU ld section
8325 ld_shlibs=no
8326 ;;
8327
8328 bsdi[45]*)
8329 export_dynamic_flag_spec=-rdynamic
8330 ;;
8331
8332 cygwin* | mingw* | pw32*)
8333 # When not using gcc, we currently assume that we are using
8334 # Microsoft Visual C++.
8335 # hardcode_libdir_flag_spec is actually meaningless, as there is
8336 # no search path for DLLs.
8337 hardcode_libdir_flag_spec=' '
8338 allow_undefined_flag=unsupported
8339 # Tell ltmain to make .lib files, not .a files.
8340 libext=lib
8341 # Tell ltmain to make .dll files, not .so files.
8342 shrext_cmds=".dll"
8343 # FIXME: Setting linknames here is a bad hack.
8344 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8345 # The linker will automatically build a .lib file if we build a DLL.
8346 old_archive_from_new_cmds='true'
8347 # FIXME: Should let the user specify the lib program.
8348 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8349 fix_srcfile_path='`cygpath -w "$srcfile"`'
8350 enable_shared_with_static_runtimes=yes
8351 ;;
8352
8353 darwin* | rhapsody*)
8354 case $host_os in
8355 rhapsody* | darwin1.[012])
8356 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8357 ;;
8358 *) # Darwin 1.3 on
8359 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8360 10.[012])
8361 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8362 ;;
8363 10.*)
8364 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8365 ;;
8366 esac
8367 ;;
8368 esac
8369 archive_cmds_need_lc=no
8370 hardcode_direct=no
8371 hardcode_automatic=yes
8372 hardcode_shlibpath_var=unsupported
8373 whole_archive_flag_spec=''
8374 link_all_deplibs=yes
8375 if test "$GCC" = yes ; then
8376 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
8378else
8379 lt_cv_apple_cc_single_mod=no
8380 if test -z "${LT_MULTI_MODULE}"; then
8381 # By default we will add the -single_module flag. You can override
8382 # by either setting the environment variable LT_MULTI_MODULE
8383 # non-empty at configure time, or by adding -multi-module to the
8384 # link flags.
8385 echo "int foo(void){return 1;}" > conftest.c
8386 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8387 -dynamiclib ${wl}-single_module conftest.c
8388 if test -f libconftest.dylib; then
8389 lt_cv_apple_cc_single_mod=yes
8390 rm libconftest.dylib
8391 fi
8392 rm conftest.$ac_ext
8393 fi
8394fi
8395
8396 output_verbose_link_cmd=echo
8397 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8398 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8399 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8400 else
8401 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8402 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8403 fi
8404 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8405 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8406 else
8407 case $cc_basename in
8408 xlc*)
8409 output_verbose_link_cmd=echo
8410 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8411 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8412 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8413 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8414 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8415 ;;
8416 *)
8417 ld_shlibs=no
8418 ;;
8419 esac
8420 fi
8421 ;;
8422
8423 dgux*)
8424 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8425 hardcode_libdir_flag_spec='-L$libdir'
8426 hardcode_shlibpath_var=no
8427 ;;
8428
8429 freebsd1*)
8430 ld_shlibs=no
8431 ;;
8432
8433 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8434 # support. Future versions do this automatically, but an explicit c++rt0.o
8435 # does not break anything, and helps significantly (at the cost of a little
8436 # extra space).
8437 freebsd2.2*)
8438 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8439 hardcode_libdir_flag_spec='-R$libdir'
8440 hardcode_direct=yes
8441 hardcode_shlibpath_var=no
8442 ;;
8443
8444 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8445 freebsd2*)
8446 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8447 hardcode_direct=yes
8448 hardcode_minus_L=yes
8449 hardcode_shlibpath_var=no
8450 ;;
8451
8452 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8453 freebsd* | dragonfly*)
8454 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8455 hardcode_libdir_flag_spec='-R$libdir'
8456 hardcode_direct=yes
8457 hardcode_shlibpath_var=no
8458 ;;
8459
8460 hpux9*)
8461 if test "$GCC" = yes; then
8462 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8463 else
8464 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8465 fi
8466 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8467 hardcode_libdir_separator=:
8468 hardcode_direct=yes
8469
8470 # hardcode_minus_L: Not really in the search PATH,
8471 # but as the default location of the library.
8472 hardcode_minus_L=yes
8473 export_dynamic_flag_spec='${wl}-E'
8474 ;;
8475
8476 hpux10*)
8477 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8478 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8479 else
8480 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8481 fi
8482 if test "$with_gnu_ld" = no; then
8483 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8484 hardcode_libdir_flag_spec_ld='+b $libdir'
8485 hardcode_libdir_separator=:
8486 hardcode_direct=yes
8487 hardcode_direct_absolute=yes
8488 export_dynamic_flag_spec='${wl}-E'
8489 # hardcode_minus_L: Not really in the search PATH,
8490 # but as the default location of the library.
8491 hardcode_minus_L=yes
8492 fi
8493 ;;
8494
8495 hpux11*)
8496 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8497 case $host_cpu in
8498 hppa*64*)
8499 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8500 ;;
8501 ia64*)
8502 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8503 ;;
8504 *)
8505 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8506 ;;
8507 esac
8508 else
8509 case $host_cpu in
8510 hppa*64*)
8511 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8512 ;;
8513 ia64*)
8514 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8515 ;;
8516 *)
8517 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8518 ;;
8519 esac
8520 fi
8521 if test "$with_gnu_ld" = no; then
8522 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8523 hardcode_libdir_separator=:
8524
8525 case $host_cpu in
8526 hppa*64*|ia64*)
8527 hardcode_direct=no
8528 hardcode_shlibpath_var=no
8529 ;;
8530 *)
8531 hardcode_direct=yes
8532 hardcode_direct_absolute=yes
8533 export_dynamic_flag_spec='${wl}-E'
8534
8535 # hardcode_minus_L: Not really in the search PATH,
8536 # but as the default location of the library.
8537 hardcode_minus_L=yes
8538 ;;
8539 esac
8540 fi
8541 ;;
8542
8543 irix5* | irix6* | nonstopux*)
8544 if test "$GCC" = yes; then
8545 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8546 # Try to use the -exported_symbol ld option, if it does not
8547 # work, assume that -exports_file does not work either and
8548 # implicitly export all symbols.
8549 save_LDFLAGS="$LDFLAGS"
8550 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8551 if test x$gcc_no_link = xyes; then
8552 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8553echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8554 { (exit 1); exit 1; }; }
8555fi
8556cat >conftest.$ac_ext <<_ACEOF
8557int foo(void) {}
8558_ACEOF
8559rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
8560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8561 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
8562 ac_status=$?
8563 grep -v '^ *+' conftest.er1 >conftest.err
8564 rm -f conftest.er1
8565 cat conftest.err >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
8567 (exit $ac_status); } &&
8568 { ac_try='test -z "$ac_c_werror_flag"
8569 || test ! -s conftest.err'
8570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571 (eval $ac_try) 2>&5
8572 ac_status=$?
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); }; } &&
8575 { ac_try='test -s conftest$ac_exeext'
8576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8577 (eval $ac_try) 2>&5
8578 ac_status=$?
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; }; then
1cf3d07d
SE
8581 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8582
8583else
8584 echo "$as_me: failed program was:" >&5
8585sed 's/^/| /' conftest.$ac_ext >&5
8586
8587fi
7eed349e 8588rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
8589 conftest$ac_exeext conftest.$ac_ext
8590 LDFLAGS="$save_LDFLAGS"
8591 else
8592 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8593 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8594 fi
8595 archive_cmds_need_lc='no'
8596 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8597 hardcode_libdir_separator=:
8598 inherit_rpath=yes
8599 link_all_deplibs=yes
8600 ;;
8601
8602 netbsd*)
8603 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8604 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8605 else
8606 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8607 fi
8608 hardcode_libdir_flag_spec='-R$libdir'
8609 hardcode_direct=yes
8610 hardcode_shlibpath_var=no
8611 ;;
8612
8613 newsos6)
8614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8615 hardcode_direct=yes
8616 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8617 hardcode_libdir_separator=:
8618 hardcode_shlibpath_var=no
8619 ;;
8620
8621 *nto* | *qnx*)
8622 ;;
8623
8624 openbsd*)
8625 hardcode_direct=yes
8626 hardcode_shlibpath_var=no
8627 hardcode_direct_absolute=yes
8628 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8629 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8630 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8631 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8632 export_dynamic_flag_spec='${wl}-E'
8633 else
8634 case $host_os in
8635 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8636 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8637 hardcode_libdir_flag_spec='-R$libdir'
8638 ;;
8639 *)
8640 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8641 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8642 ;;
8643 esac
8644 fi
8645 ;;
8646
8647 os2*)
8648 hardcode_libdir_flag_spec='-L$libdir'
8649 hardcode_minus_L=yes
8650 allow_undefined_flag=unsupported
8651 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8652 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8653 ;;
8654
8655 osf3*)
8656 if test "$GCC" = yes; then
8657 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8658 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8659 else
8660 allow_undefined_flag=' -expect_unresolved \*'
8661 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8662 fi
8663 archive_cmds_need_lc='no'
8664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8665 hardcode_libdir_separator=:
8666 ;;
8667
8668 osf4* | osf5*) # as osf3* with the addition of -msym flag
8669 if test "$GCC" = yes; then
8670 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8671 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8672 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8673 else
8674 allow_undefined_flag=' -expect_unresolved \*'
8675 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8676 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8677 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8678
8679 # Both c and cxx compiler support -rpath directly
8680 hardcode_libdir_flag_spec='-rpath $libdir'
8681 fi
8682 archive_cmds_need_lc='no'
8683 hardcode_libdir_separator=:
8684 ;;
8685
8686 solaris*)
8687 no_undefined_flag=' -z defs'
8688 if test "$GCC" = yes; then
8689 wlarc='${wl}'
8690 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8691 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8692 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8693 else
8694 case `$CC -V 2>&1` in
8695 *"Compilers 5.0"*)
8696 wlarc=''
8697 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8698 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8699 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8700 ;;
8701 *)
8702 wlarc='${wl}'
8703 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8704 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8705 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8706 ;;
8707 esac
8708 fi
8709 hardcode_libdir_flag_spec='-R$libdir'
8710 hardcode_shlibpath_var=no
8711 case $host_os in
8712 solaris2.[0-5] | solaris2.[0-5].*) ;;
8713 *)
8714 # The compiler driver will combine and reorder linker options,
8715 # but understands `-z linker_flag'. GCC discards it without `$wl',
8716 # but is careful enough not to reorder.
8717 # Supported since Solaris 2.6 (maybe 2.5.1?)
8718 if test "$GCC" = yes; then
8719 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8720 else
8721 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8722 fi
8723 ;;
8724 esac
8725 link_all_deplibs=yes
8726 ;;
8727
8728 sunos4*)
8729 if test "x$host_vendor" = xsequent; then
8730 # Use $CC to link under sequent, because it throws in some extra .o
8731 # files that make .init and .fini sections work.
8732 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8733 else
8734 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8735 fi
8736 hardcode_libdir_flag_spec='-L$libdir'
8737 hardcode_direct=yes
8738 hardcode_minus_L=yes
8739 hardcode_shlibpath_var=no
8740 ;;
8741
8742 sysv4)
8743 case $host_vendor in
8744 sni)
8745 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8746 hardcode_direct=yes # is this really true???
8747 ;;
8748 siemens)
8749 ## LD is ld it makes a PLAMLIB
8750 ## CC just makes a GrossModule.
8751 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8752 reload_cmds='$CC -r -o $output$reload_objs'
8753 hardcode_direct=no
8754 ;;
8755 motorola)
8756 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8757 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8758 ;;
8759 esac
8760 runpath_var='LD_RUN_PATH'
8761 hardcode_shlibpath_var=no
8762 ;;
8763
8764 sysv4.3*)
8765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8766 hardcode_shlibpath_var=no
8767 export_dynamic_flag_spec='-Bexport'
8768 ;;
8769
8770 sysv4*MP*)
8771 if test -d /usr/nec; then
8772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8773 hardcode_shlibpath_var=no
8774 runpath_var=LD_RUN_PATH
8775 hardcode_runpath_var=yes
8776 ld_shlibs=yes
8777 fi
8778 ;;
8779
8780 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8781 no_undefined_flag='${wl}-z,text'
8782 archive_cmds_need_lc=no
8783 hardcode_shlibpath_var=no
8784 runpath_var='LD_RUN_PATH'
8785
8786 if test "$GCC" = yes; then
8787 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8788 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8789 else
8790 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8791 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8792 fi
8793 ;;
8794
8795 sysv5* | sco3.2v5* | sco5v6*)
8796 # Note: We can NOT use -z defs as we might desire, because we do not
8797 # link with -lc, and that would cause any symbols used from libc to
8798 # always be unresolved, which means just about no library would
8799 # ever link correctly. If we're not using GNU ld we use -z text
8800 # though, which does catch some bad symbols but isn't as heavy-handed
8801 # as -z defs.
8802 no_undefined_flag='${wl}-z,text'
8803 allow_undefined_flag='${wl}-z,nodefs'
8804 archive_cmds_need_lc=no
8805 hardcode_shlibpath_var=no
8806 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8807 hardcode_libdir_separator=':'
8808 link_all_deplibs=yes
8809 export_dynamic_flag_spec='${wl}-Bexport'
8810 runpath_var='LD_RUN_PATH'
8811
8812 if test "$GCC" = yes; then
8813 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8814 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8815 else
8816 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8817 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8818 fi
8819 ;;
8820
8821 uts4*)
8822 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8823 hardcode_libdir_flag_spec='-L$libdir'
8824 hardcode_shlibpath_var=no
8825 ;;
8826
8827 *)
8828 ld_shlibs=no
8829 ;;
8830 esac
8831
8832 if test x$host_vendor = xsni; then
8833 case $host in
8834 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8835 export_dynamic_flag_spec='${wl}-Blargedynsym'
8836 ;;
8837 esac
8838 fi
8839 fi
8840
7eed349e
PC
8841echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8842echo "${ECHO_T}$ld_shlibs" >&6
1cf3d07d
SE
8843test "$ld_shlibs" = no && can_build_shared=no
8844
8845with_gnu_ld=$with_gnu_ld
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861#
8862# Do we need to explicitly link libc?
8863#
8864case "x$archive_cmds_need_lc" in
8865x|xyes)
8866 # Assume -lc should be added
8867 archive_cmds_need_lc=yes
8868
8869 if test "$enable_shared" = yes && test "$GCC" = yes; then
8870 case $archive_cmds in
8871 *'~'*)
8872 # FIXME: we may have to deal with multi-command sequences.
8873 ;;
8874 '$CC '*)
8875 # Test whether the compiler implicitly links with -lc since on some
8876 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8877 # to ld, don't add -lc before -lgcc.
7eed349e
PC
8878 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8879echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
1cf3d07d
SE
8880 $RM conftest*
8881 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8882
8883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8884 (eval $ac_compile) 2>&5
8885 ac_status=$?
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); } 2>conftest.err; then
8888 soname=conftest
8889 lib=conftest
8890 libobjs=conftest.$ac_objext
8891 deplibs=
8892 wl=$lt_prog_compiler_wl
8893 pic_flag=$lt_prog_compiler_pic
8894 compiler_flags=-v
8895 linker_flags=-v
8896 verstring=
8897 output_objdir=.
8898 libname=conftest
8899 lt_save_allow_undefined_flag=$allow_undefined_flag
8900 allow_undefined_flag=
8901 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8902 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8903 ac_status=$?
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }
8906 then
8907 archive_cmds_need_lc=no
8908 else
8909 archive_cmds_need_lc=yes
8910 fi
8911 allow_undefined_flag=$lt_save_allow_undefined_flag
8912 else
8913 cat conftest.err 1>&5
8914 fi
8915 $RM conftest*
7eed349e
PC
8916 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8917echo "${ECHO_T}$archive_cmds_need_lc" >&6
1cf3d07d
SE
8918 ;;
8919 esac
8920 fi
8921 ;;
8922esac
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
7eed349e
PC
9080 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9081echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
1cf3d07d
SE
9082withGCC=$GCC
9083if test "$withGCC" = yes; then
9084 case $host_os in
9085 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9086 *) lt_awk_arg="/^libraries:/" ;;
9087 esac
9088 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9089 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9090 # if the path contains ";" then we assume it to be the separator
9091 # otherwise default to the standard path separator (i.e. ":") - it is
9092 # assumed that no part of a normal pathname contains ";" but that should
9093 # okay in the real world where ";" in dirpaths is itself problematic.
9094 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9095 else
9096 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9097 fi
9098 # Ok, now we have the path, separated by spaces, we can step through it
9099 # and add multilib dir if necessary.
9100 lt_tmp_lt_search_path_spec=
9101 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9102 for lt_sys_path in $lt_search_path_spec; do
9103 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9104 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9105 else
9106 test -d "$lt_sys_path" && \
9107 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9108 fi
9109 done
9110 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9111BEGIN {RS=" "; FS="/|\n";} {
9112 lt_foo="";
9113 lt_count=0;
9114 for (lt_i = NF; lt_i > 0; lt_i--) {
9115 if ($lt_i != "" && $lt_i != ".") {
9116 if ($lt_i == "..") {
9117 lt_count++;
9118 } else {
9119 if (lt_count == 0) {
9120 lt_foo="/" $lt_i lt_foo;
9121 } else {
9122 lt_count--;
9123 }
9124 }
9125 }
9126 }
9127 if (lt_foo != "") { lt_freq[lt_foo]++; }
9128 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9129}'`
9130 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9131else
9132 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9133fi
9134library_names_spec=
9135libname_spec='lib$name'
9136soname_spec=
9137shrext_cmds=".so"
9138postinstall_cmds=
9139postuninstall_cmds=
9140finish_cmds=
9141finish_eval=
9142shlibpath_var=
9143shlibpath_overrides_runpath=unknown
9144version_type=none
9145dynamic_linker="$host_os ld.so"
9146sys_lib_dlsearch_path_spec="/lib /usr/lib"
9147need_lib_prefix=unknown
9148hardcode_into_libs=no
9149
9150# when you set need_version to no, make sure it does not cause -set_version
9151# flags to be left without arguments
9152need_version=unknown
9153
9154case $host_os in
9155aix3*)
9156 version_type=linux
9157 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9158 shlibpath_var=LIBPATH
9159
9160 # AIX 3 has no versioning support, so we append a major version to the name.
9161 soname_spec='${libname}${release}${shared_ext}$major'
9162 ;;
9163
716e4bc6 9164aix[4-9]*)
1cf3d07d
SE
9165 version_type=linux
9166 need_lib_prefix=no
9167 need_version=no
9168 hardcode_into_libs=yes
9169 if test "$host_cpu" = ia64; then
9170 # AIX 5 supports IA64
9171 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9172 shlibpath_var=LD_LIBRARY_PATH
9173 else
9174 # With GCC up to 2.95.x, collect2 would create an import file
9175 # for dependence libraries. The import file would start with
9176 # the line `#! .'. This would cause the generated library to
9177 # depend on `.', always an invalid library. This was fixed in
9178 # development snapshots of GCC prior to 3.0.
9179 case $host_os in
9180 aix4 | aix4.[01] | aix4.[01].*)
9181 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9182 echo ' yes '
9183 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9184 :
9185 else
9186 can_build_shared=no
9187 fi
9188 ;;
9189 esac
9190 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9191 # soname into executable. Probably we can add versioning support to
9192 # collect2, so additional links can be useful in future.
9193 if test "$aix_use_runtimelinking" = yes; then
9194 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9195 # instead of lib<name>.a to let people know that these are not
9196 # typical AIX shared libraries.
9197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9198 else
9199 # We preserve .a as extension for shared libraries through AIX4.2
9200 # and later when we are not doing run time linking.
9201 library_names_spec='${libname}${release}.a $libname.a'
9202 soname_spec='${libname}${release}${shared_ext}$major'
9203 fi
9204 shlibpath_var=LIBPATH
9205 fi
9206 ;;
9207
9208amigaos*)
9209 if test "$host_cpu" = m68k; then
9210 library_names_spec='$libname.ixlibrary $libname.a'
9211 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9212 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9213 else
9214 dynamic_linker=no
9215 fi
9216 ;;
9217
9218beos*)
9219 library_names_spec='${libname}${shared_ext}'
9220 dynamic_linker="$host_os ld.so"
9221 shlibpath_var=LIBRARY_PATH
9222 ;;
9223
9224bsdi[45]*)
9225 version_type=linux
9226 need_version=no
9227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9228 soname_spec='${libname}${release}${shared_ext}$major'
9229 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9230 shlibpath_var=LD_LIBRARY_PATH
9231 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9232 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9233 # the default ld.so.conf also contains /usr/contrib/lib and
9234 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9235 # libtool to hard-code these into programs
9236 ;;
9237
9238cygwin* | mingw* | pw32*)
9239 version_type=windows
9240 shrext_cmds=".dll"
9241 need_version=no
9242 need_lib_prefix=no
9243
9244 case $withGCC,$host_os in
9245 yes,cygwin* | yes,mingw* | yes,pw32*)
9246 library_names_spec='$libname.dll.a'
9247 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9248 postinstall_cmds='base_file=`basename \${file}`~
9249 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9250 dldir=$destdir/`dirname \$dlpath`~
9251 test -d \$dldir || mkdir -p \$dldir~
9252 $install_prog $dir/$dlname \$dldir/$dlname~
9253 chmod a+x \$dldir/$dlname~
9254 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9255 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9256 fi'
9257 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9258 dlpath=$dir/\$dldll~
9259 $RM \$dlpath'
9260 shlibpath_overrides_runpath=yes
9261
9262 case $host_os in
9263 cygwin*)
9264 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9265 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9266 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9267 ;;
9268 mingw*)
9269 # MinGW DLLs use traditional 'lib' prefix
9270 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9271 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9272 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9273 # It is most probably a Windows format PATH printed by
9274 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9275 # path with ; separators, and with drive letters. We can handle the
9276 # drive letters (cygwin fileutils understands them), so leave them,
9277 # especially as we might pass files found there to a mingw objdump,
9278 # which wouldn't understand a cygwinified path. Ahh.
9279 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9280 else
9281 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9282 fi
9283 ;;
9284 pw32*)
9285 # pw32 DLLs use 'pw' prefix rather than 'lib'
9286 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9287 ;;
9288 esac
9289 ;;
9290
9291 *)
9292 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9293 ;;
9294 esac
9295 dynamic_linker='Win32 ld.exe'
9296 # FIXME: first we should search . and the directory the executable is in
9297 shlibpath_var=PATH
9298 ;;
9299
9300darwin* | rhapsody*)
9301 dynamic_linker="$host_os dyld"
9302 version_type=darwin
9303 need_lib_prefix=no
9304 need_version=no
9305 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9306 soname_spec='${libname}${release}${major}$shared_ext'
9307 shlibpath_overrides_runpath=yes
9308 shlibpath_var=DYLD_LIBRARY_PATH
9309 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9310
9311 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9312 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9313 ;;
9314
9315dgux*)
9316 version_type=linux
9317 need_lib_prefix=no
9318 need_version=no
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9320 soname_spec='${libname}${release}${shared_ext}$major'
9321 shlibpath_var=LD_LIBRARY_PATH
9322 ;;
9323
9324freebsd1*)
9325 dynamic_linker=no
9326 ;;
9327
9328freebsd* | dragonfly*)
9329 # DragonFly does not have aout. When/if they implement a new
9330 # versioning mechanism, adjust this.
9331 if test -x /usr/bin/objformat; then
9332 objformat=`/usr/bin/objformat`
9333 else
9334 case $host_os in
9335 freebsd[123]*) objformat=aout ;;
9336 *) objformat=elf ;;
9337 esac
9338 fi
9339 version_type=freebsd-$objformat
9340 case $version_type in
9341 freebsd-elf*)
9342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9343 need_version=no
9344 need_lib_prefix=no
9345 ;;
9346 freebsd-*)
9347 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9348 need_version=yes
9349 ;;
9350 esac
9351 shlibpath_var=LD_LIBRARY_PATH
9352 case $host_os in
9353 freebsd2*)
9354 shlibpath_overrides_runpath=yes
9355 ;;
9356 freebsd3.[01]* | freebsdelf3.[01]*)
9357 shlibpath_overrides_runpath=yes
9358 hardcode_into_libs=yes
9359 ;;
9360 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9361 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9362 shlibpath_overrides_runpath=no
9363 hardcode_into_libs=yes
9364 ;;
9365 *) # from 4.6 on, and DragonFly
9366 shlibpath_overrides_runpath=yes
9367 hardcode_into_libs=yes
9368 ;;
9369 esac
9370 ;;
9371
9372gnu*)
9373 version_type=linux
9374 need_lib_prefix=no
9375 need_version=no
9376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9377 soname_spec='${libname}${release}${shared_ext}$major'
9378 shlibpath_var=LD_LIBRARY_PATH
9379 hardcode_into_libs=yes
9380 ;;
9381
9382hpux9* | hpux10* | hpux11*)
9383 # Give a soname corresponding to the major version so that dld.sl refuses to
9384 # link against other versions.
9385 version_type=sunos
9386 need_lib_prefix=no
9387 need_version=no
9388 case $host_cpu in
9389 ia64*)
9390 shrext_cmds='.so'
9391 hardcode_into_libs=yes
9392 dynamic_linker="$host_os dld.so"
9393 shlibpath_var=LD_LIBRARY_PATH
9394 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9396 soname_spec='${libname}${release}${shared_ext}$major'
9397 if test "X$HPUX_IA64_MODE" = X32; then
9398 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9399 else
9400 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9401 fi
9402 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9403 ;;
9404 hppa*64*)
9405 shrext_cmds='.sl'
9406 hardcode_into_libs=yes
9407 dynamic_linker="$host_os dld.sl"
9408 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9409 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9411 soname_spec='${libname}${release}${shared_ext}$major'
9412 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9413 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9414 ;;
9415 *)
9416 shrext_cmds='.sl'
9417 dynamic_linker="$host_os dld.sl"
9418 shlibpath_var=SHLIB_PATH
9419 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9421 soname_spec='${libname}${release}${shared_ext}$major'
9422 ;;
9423 esac
9424 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9425 postinstall_cmds='chmod 555 $lib'
9426 ;;
9427
9428interix[3-9]*)
9429 version_type=linux
9430 need_lib_prefix=no
9431 need_version=no
9432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9433 soname_spec='${libname}${release}${shared_ext}$major'
9434 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9435 shlibpath_var=LD_LIBRARY_PATH
9436 shlibpath_overrides_runpath=no
9437 hardcode_into_libs=yes
9438 ;;
9439
9440irix5* | irix6* | nonstopux*)
9441 case $host_os in
9442 nonstopux*) version_type=nonstopux ;;
9443 *)
9444 if test "$lt_cv_prog_gnu_ld" = yes; then
9445 version_type=linux
9446 else
9447 version_type=irix
9448 fi ;;
9449 esac
9450 need_lib_prefix=no
9451 need_version=no
9452 soname_spec='${libname}${release}${shared_ext}$major'
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9454 case $host_os in
9455 irix5* | nonstopux*)
9456 libsuff= shlibsuff=
9457 ;;
9458 *)
9459 case $LD in # libtool.m4 will add one of these switches to LD
9460 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9461 libsuff= shlibsuff= libmagic=32-bit;;
9462 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9463 libsuff=32 shlibsuff=N32 libmagic=N32;;
9464 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9465 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9466 *) libsuff= shlibsuff= libmagic=never-match;;
9467 esac
9468 ;;
9469 esac
9470 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9471 shlibpath_overrides_runpath=no
9472 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9473 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9474 hardcode_into_libs=yes
9475 ;;
9476
9477# No shared lib support for Linux oldld, aout, or coff.
9478linux*oldld* | linux*aout* | linux*coff*)
9479 dynamic_linker=no
9480 ;;
9481
9482# This must be Linux ELF.
9483linux* | k*bsd*-gnu)
9484 version_type=linux
9485 need_lib_prefix=no
9486 need_version=no
9487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9488 soname_spec='${libname}${release}${shared_ext}$major'
9489 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9490 shlibpath_var=LD_LIBRARY_PATH
9491 shlibpath_overrides_runpath=no
9492 # Some binutils ld are patched to set DT_RUNPATH
9493 save_LDFLAGS=$LDFLAGS
9494 save_libdir=$libdir
9495 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9496 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9497 if test x$gcc_no_link = xyes; then
9498 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9499echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9500 { (exit 1); exit 1; }; }
9501fi
9502cat >conftest.$ac_ext <<_ACEOF
9503/* confdefs.h. */
9504_ACEOF
9505cat confdefs.h >>conftest.$ac_ext
9506cat >>conftest.$ac_ext <<_ACEOF
9507/* end confdefs.h. */
9508
9509int
9510main ()
9511{
9512
9513 ;
9514 return 0;
9515}
9516_ACEOF
9517rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
9518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9519 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
9520 ac_status=$?
9521 grep -v '^ *+' conftest.er1 >conftest.err
9522 rm -f conftest.er1
9523 cat conftest.err >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
9525 (exit $ac_status); } &&
9526 { ac_try='test -z "$ac_c_werror_flag"
9527 || test ! -s conftest.err'
9528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9529 (eval $ac_try) 2>&5
9530 ac_status=$?
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); }; } &&
9533 { ac_try='test -s conftest$ac_exeext'
9534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9535 (eval $ac_try) 2>&5
9536 ac_status=$?
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); }; }; then
1cf3d07d
SE
9539 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9540 shlibpath_overrides_runpath=yes
9541fi
9542
9543else
9544 echo "$as_me: failed program was:" >&5
9545sed 's/^/| /' conftest.$ac_ext >&5
9546
9547fi
7eed349e 9548rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
9549 conftest$ac_exeext conftest.$ac_ext
9550 LDFLAGS=$save_LDFLAGS
9551 libdir=$save_libdir
9552
9553 # This implies no fast_install, which is unacceptable.
9554 # Some rework will be needed to allow for fast_install
9555 # before this can be enabled.
9556 hardcode_into_libs=yes
9557
9558 # Append ld.so.conf contents to the search path
9559 if test -f /etc/ld.so.conf; then
9560 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9561 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9562 fi
9563
9564 # We used to test for /lib/ld.so.1 and disable shared libraries on
9565 # powerpc, because MkLinux only supported shared libraries with the
9566 # GNU dynamic linker. Since this was broken with cross compilers,
9567 # most powerpc-linux boxes support dynamic linking these days and
9568 # people can always --disable-shared, the test was removed, and we
9569 # assume the GNU/Linux dynamic linker is in use.
9570 dynamic_linker='GNU/Linux ld.so'
9571 ;;
9572
9573netbsd*)
9574 version_type=sunos
9575 need_lib_prefix=no
9576 need_version=no
9577 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9579 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9580 dynamic_linker='NetBSD (a.out) ld.so'
9581 else
9582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9583 soname_spec='${libname}${release}${shared_ext}$major'
9584 dynamic_linker='NetBSD ld.elf_so'
9585 fi
9586 shlibpath_var=LD_LIBRARY_PATH
9587 shlibpath_overrides_runpath=yes
9588 hardcode_into_libs=yes
9589 ;;
9590
9591newsos6)
9592 version_type=linux
9593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9594 shlibpath_var=LD_LIBRARY_PATH
9595 shlibpath_overrides_runpath=yes
9596 ;;
9597
9598*nto* | *qnx*)
9599 version_type=qnx
9600 need_lib_prefix=no
9601 need_version=no
9602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9603 soname_spec='${libname}${release}${shared_ext}$major'
9604 shlibpath_var=LD_LIBRARY_PATH
9605 shlibpath_overrides_runpath=no
9606 hardcode_into_libs=yes
9607 dynamic_linker='ldqnx.so'
9608 ;;
9609
9610openbsd*)
9611 version_type=sunos
9612 sys_lib_dlsearch_path_spec="/usr/lib"
9613 need_lib_prefix=no
9614 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9615 case $host_os in
9616 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9617 *) need_version=no ;;
9618 esac
9619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9621 shlibpath_var=LD_LIBRARY_PATH
9622 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9623 case $host_os in
9624 openbsd2.[89] | openbsd2.[89].*)
9625 shlibpath_overrides_runpath=no
9626 ;;
9627 *)
9628 shlibpath_overrides_runpath=yes
9629 ;;
9630 esac
9631 else
9632 shlibpath_overrides_runpath=yes
9633 fi
9634 ;;
9635
9636os2*)
9637 libname_spec='$name'
9638 shrext_cmds=".dll"
9639 need_lib_prefix=no
9640 library_names_spec='$libname${shared_ext} $libname.a'
9641 dynamic_linker='OS/2 ld.exe'
9642 shlibpath_var=LIBPATH
9643 ;;
9644
9645osf3* | osf4* | osf5*)
9646 version_type=osf
9647 need_lib_prefix=no
9648 need_version=no
9649 soname_spec='${libname}${release}${shared_ext}$major'
9650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9651 shlibpath_var=LD_LIBRARY_PATH
9652 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9653 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9654 ;;
9655
9656rdos*)
9657 dynamic_linker=no
9658 ;;
9659
9660solaris*)
9661 version_type=linux
9662 need_lib_prefix=no
9663 need_version=no
9664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9665 soname_spec='${libname}${release}${shared_ext}$major'
9666 shlibpath_var=LD_LIBRARY_PATH
9667 shlibpath_overrides_runpath=yes
9668 hardcode_into_libs=yes
9669 # ldd complains unless libraries are executable
9670 postinstall_cmds='chmod +x $lib'
9671 ;;
9672
9673sunos4*)
9674 version_type=sunos
9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9676 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9677 shlibpath_var=LD_LIBRARY_PATH
9678 shlibpath_overrides_runpath=yes
9679 if test "$with_gnu_ld" = yes; then
9680 need_lib_prefix=no
9681 fi
9682 need_version=yes
9683 ;;
9684
9685sysv4 | sysv4.3*)
9686 version_type=linux
9687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9688 soname_spec='${libname}${release}${shared_ext}$major'
9689 shlibpath_var=LD_LIBRARY_PATH
9690 case $host_vendor in
9691 sni)
9692 shlibpath_overrides_runpath=no
9693 need_lib_prefix=no
9694 runpath_var=LD_RUN_PATH
9695 ;;
9696 siemens)
9697 need_lib_prefix=no
9698 ;;
9699 motorola)
9700 need_lib_prefix=no
9701 need_version=no
9702 shlibpath_overrides_runpath=no
9703 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9704 ;;
9705 esac
9706 ;;
9707
9708sysv4*MP*)
9709 if test -d /usr/nec ;then
9710 version_type=linux
9711 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9712 soname_spec='$libname${shared_ext}.$major'
9713 shlibpath_var=LD_LIBRARY_PATH
9714 fi
9715 ;;
9716
9717sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9718 version_type=freebsd-elf
9719 need_lib_prefix=no
9720 need_version=no
9721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9722 soname_spec='${libname}${release}${shared_ext}$major'
9723 shlibpath_var=LD_LIBRARY_PATH
9724 shlibpath_overrides_runpath=yes
9725 hardcode_into_libs=yes
9726 if test "$with_gnu_ld" = yes; then
9727 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9728 else
9729 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9730 case $host_os in
9731 sco3.2v5*)
9732 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9733 ;;
9734 esac
9735 fi
9736 sys_lib_dlsearch_path_spec='/usr/lib'
9737 ;;
9738
9739tpf*)
9740 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9741 version_type=linux
9742 need_lib_prefix=no
9743 need_version=no
9744 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9745 shlibpath_var=LD_LIBRARY_PATH
9746 shlibpath_overrides_runpath=no
9747 hardcode_into_libs=yes
9748 ;;
9749
9750uts4*)
9751 version_type=linux
9752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9753 soname_spec='${libname}${release}${shared_ext}$major'
9754 shlibpath_var=LD_LIBRARY_PATH
9755 ;;
9756
9757*)
9758 dynamic_linker=no
9759 ;;
9760esac
7eed349e
PC
9761echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9762echo "${ECHO_T}$dynamic_linker" >&6
1cf3d07d
SE
9763test "$dynamic_linker" = no && can_build_shared=no
9764
9765variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9766if test "$GCC" = yes; then
9767 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9768fi
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
7eed349e
PC
9856 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9857echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
1cf3d07d
SE
9858hardcode_action=
9859if test -n "$hardcode_libdir_flag_spec" ||
9860 test -n "$runpath_var" ||
9861 test "X$hardcode_automatic" = "Xyes" ; then
9862
9863 # We can hardcode non-existent directories.
9864 if test "$hardcode_direct" != no &&
9865 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9866 # have to relink, otherwise we might link with an installed library
9867 # when we should be linking with a yet-to-be-installed one
9868 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9869 test "$hardcode_minus_L" != no; then
9870 # Linking always hardcodes the temporary library directory.
9871 hardcode_action=relink
9872 else
9873 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9874 hardcode_action=immediate
9875 fi
9876else
9877 # We cannot hardcode anything, or else we can only hardcode existing
9878 # directories.
9879 hardcode_action=unsupported
9880fi
7eed349e
PC
9881echo "$as_me:$LINENO: result: $hardcode_action" >&5
9882echo "${ECHO_T}$hardcode_action" >&6
1cf3d07d
SE
9883
9884if test "$hardcode_action" = relink ||
9885 test "$inherit_rpath" = yes; then
9886 # Fast installation is not supported
9887 enable_fast_install=no
9888elif test "$shlibpath_overrides_runpath" = yes ||
9889 test "$enable_shared" = no; then
9890 # Fast installation is not necessary
9891 enable_fast_install=needless
9892fi
9893
9894
9895
9896
9897
9898
9899 if test "x$enable_dlopen" != xyes; then
9900 enable_dlopen=unknown
9901 enable_dlopen_self=unknown
9902 enable_dlopen_self_static=unknown
9903else
9904 lt_cv_dlopen=no
9905 lt_cv_dlopen_libs=
9906
9907 case $host_os in
9908 beos*)
9909 lt_cv_dlopen="load_add_on"
9910 lt_cv_dlopen_libs=
9911 lt_cv_dlopen_self=yes
9912 ;;
9913
9914 mingw* | pw32*)
9915 lt_cv_dlopen="LoadLibrary"
9916 lt_cv_dlopen_libs=
9917 ;;
9918
9919 cygwin*)
9920 lt_cv_dlopen="dlopen"
9921 lt_cv_dlopen_libs=
9922 ;;
9923
9924 darwin*)
9925 # if libdl is installed we need to link against it
7eed349e
PC
9926 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9927echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
1cf3d07d
SE
9928if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9929 echo $ECHO_N "(cached) $ECHO_C" >&6
9930else
9931 ac_check_lib_save_LIBS=$LIBS
9932LIBS="-ldl $LIBS"
9933if test x$gcc_no_link = xyes; then
9934 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9935echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9936 { (exit 1); exit 1; }; }
9937fi
9938cat >conftest.$ac_ext <<_ACEOF
9939/* confdefs.h. */
9940_ACEOF
9941cat confdefs.h >>conftest.$ac_ext
9942cat >>conftest.$ac_ext <<_ACEOF
9943/* end confdefs.h. */
9944
7eed349e 9945/* Override any gcc2 internal prototype to avoid an error. */
1cf3d07d
SE
9946#ifdef __cplusplus
9947extern "C"
9948#endif
7eed349e
PC
9949/* We use char because int might match the return type of a gcc2
9950 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
9951char dlopen ();
9952int
9953main ()
9954{
7eed349e 9955dlopen ();
1cf3d07d
SE
9956 ;
9957 return 0;
9958}
9959_ACEOF
9960rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
9961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9962 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
9963 ac_status=$?
9964 grep -v '^ *+' conftest.er1 >conftest.err
9965 rm -f conftest.er1
9966 cat conftest.err >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
9968 (exit $ac_status); } &&
9969 { ac_try='test -z "$ac_c_werror_flag"
9970 || test ! -s conftest.err'
9971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972 (eval $ac_try) 2>&5
9973 ac_status=$?
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; } &&
9976 { ac_try='test -s conftest$ac_exeext'
9977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9978 (eval $ac_try) 2>&5
9979 ac_status=$?
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; }; then
1cf3d07d
SE
9982 ac_cv_lib_dl_dlopen=yes
9983else
9984 echo "$as_me: failed program was:" >&5
9985sed 's/^/| /' conftest.$ac_ext >&5
9986
7eed349e 9987ac_cv_lib_dl_dlopen=no
1cf3d07d 9988fi
7eed349e 9989rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
9990 conftest$ac_exeext conftest.$ac_ext
9991LIBS=$ac_check_lib_save_LIBS
9992fi
7eed349e
PC
9993echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9994echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
1cf3d07d
SE
9995if test $ac_cv_lib_dl_dlopen = yes; then
9996 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9997else
9998
9999 lt_cv_dlopen="dyld"
10000 lt_cv_dlopen_libs=
10001 lt_cv_dlopen_self=yes
10002
10003fi
10004
10005 ;;
10006
10007 *)
7eed349e
PC
10008 echo "$as_me:$LINENO: checking for shl_load" >&5
10009echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
1cf3d07d
SE
10010if test "${ac_cv_func_shl_load+set}" = set; then
10011 echo $ECHO_N "(cached) $ECHO_C" >&6
10012else
10013 if test x$gcc_no_link = xyes; then
10014 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10015echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10016 { (exit 1); exit 1; }; }
10017fi
10018cat >conftest.$ac_ext <<_ACEOF
10019/* confdefs.h. */
10020_ACEOF
10021cat confdefs.h >>conftest.$ac_ext
10022cat >>conftest.$ac_ext <<_ACEOF
10023/* end confdefs.h. */
10024/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10026#define shl_load innocuous_shl_load
10027
10028/* System header to define __stub macros and hopefully few prototypes,
10029 which can conflict with char shl_load (); below.
10030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10031 <limits.h> exists even on freestanding compilers. */
10032
10033#ifdef __STDC__
10034# include <limits.h>
10035#else
10036# include <assert.h>
10037#endif
10038
10039#undef shl_load
10040
7eed349e 10041/* Override any gcc2 internal prototype to avoid an error. */
1cf3d07d
SE
10042#ifdef __cplusplus
10043extern "C"
7eed349e 10044{
1cf3d07d 10045#endif
7eed349e
PC
10046/* We use char because int might match the return type of a gcc2
10047 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10048char shl_load ();
10049/* The GNU C library defines this for functions which it implements
10050 to always fail with ENOSYS. Some functions are actually named
10051 something starting with __ and the normal name is an alias. */
7eed349e 10052#if defined (__stub_shl_load) || defined (__stub___shl_load)
1cf3d07d 10053choke me
7eed349e
PC
10054#else
10055char (*f) () = shl_load;
10056#endif
10057#ifdef __cplusplus
10058}
1cf3d07d
SE
10059#endif
10060
10061int
10062main ()
10063{
7eed349e 10064return f != shl_load;
1cf3d07d
SE
10065 ;
10066 return 0;
10067}
10068_ACEOF
10069rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
10070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10071 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
10072 ac_status=$?
10073 grep -v '^ *+' conftest.er1 >conftest.err
10074 rm -f conftest.er1
10075 cat conftest.err >&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
10077 (exit $ac_status); } &&
10078 { ac_try='test -z "$ac_c_werror_flag"
10079 || test ! -s conftest.err'
10080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081 (eval $ac_try) 2>&5
10082 ac_status=$?
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; } &&
10085 { ac_try='test -s conftest$ac_exeext'
10086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087 (eval $ac_try) 2>&5
10088 ac_status=$?
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; }; then
1cf3d07d
SE
10091 ac_cv_func_shl_load=yes
10092else
10093 echo "$as_me: failed program was:" >&5
10094sed 's/^/| /' conftest.$ac_ext >&5
10095
7eed349e 10096ac_cv_func_shl_load=no
1cf3d07d 10097fi
7eed349e 10098rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
10099 conftest$ac_exeext conftest.$ac_ext
10100fi
7eed349e
PC
10101echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10102echo "${ECHO_T}$ac_cv_func_shl_load" >&6
1cf3d07d
SE
10103if test $ac_cv_func_shl_load = yes; then
10104 lt_cv_dlopen="shl_load"
10105else
7eed349e
PC
10106 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10107echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
1cf3d07d
SE
10108if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10109 echo $ECHO_N "(cached) $ECHO_C" >&6
10110else
10111 ac_check_lib_save_LIBS=$LIBS
10112LIBS="-ldld $LIBS"
10113if test x$gcc_no_link = xyes; then
10114 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10115echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10116 { (exit 1); exit 1; }; }
10117fi
10118cat >conftest.$ac_ext <<_ACEOF
10119/* confdefs.h. */
10120_ACEOF
10121cat confdefs.h >>conftest.$ac_ext
10122cat >>conftest.$ac_ext <<_ACEOF
10123/* end confdefs.h. */
10124
7eed349e 10125/* Override any gcc2 internal prototype to avoid an error. */
1cf3d07d
SE
10126#ifdef __cplusplus
10127extern "C"
10128#endif
7eed349e
PC
10129/* We use char because int might match the return type of a gcc2
10130 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10131char shl_load ();
10132int
10133main ()
10134{
7eed349e 10135shl_load ();
1cf3d07d
SE
10136 ;
10137 return 0;
10138}
10139_ACEOF
10140rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
10141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10142 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
10143 ac_status=$?
10144 grep -v '^ *+' conftest.er1 >conftest.err
10145 rm -f conftest.er1
10146 cat conftest.err >&5
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
10148 (exit $ac_status); } &&
10149 { ac_try='test -z "$ac_c_werror_flag"
10150 || test ! -s conftest.err'
10151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152 (eval $ac_try) 2>&5
10153 ac_status=$?
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; } &&
10156 { ac_try='test -s conftest$ac_exeext'
10157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10158 (eval $ac_try) 2>&5
10159 ac_status=$?
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); }; }; then
1cf3d07d
SE
10162 ac_cv_lib_dld_shl_load=yes
10163else
10164 echo "$as_me: failed program was:" >&5
10165sed 's/^/| /' conftest.$ac_ext >&5
10166
7eed349e 10167ac_cv_lib_dld_shl_load=no
1cf3d07d 10168fi
7eed349e 10169rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
10170 conftest$ac_exeext conftest.$ac_ext
10171LIBS=$ac_check_lib_save_LIBS
10172fi
7eed349e
PC
10173echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10174echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
1cf3d07d
SE
10175if test $ac_cv_lib_dld_shl_load = yes; then
10176 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10177else
7eed349e
PC
10178 echo "$as_me:$LINENO: checking for dlopen" >&5
10179echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
1cf3d07d
SE
10180if test "${ac_cv_func_dlopen+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10182else
10183 if test x$gcc_no_link = xyes; then
10184 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10185echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10186 { (exit 1); exit 1; }; }
10187fi
10188cat >conftest.$ac_ext <<_ACEOF
10189/* confdefs.h. */
10190_ACEOF
10191cat confdefs.h >>conftest.$ac_ext
10192cat >>conftest.$ac_ext <<_ACEOF
10193/* end confdefs.h. */
10194/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10196#define dlopen innocuous_dlopen
10197
10198/* System header to define __stub macros and hopefully few prototypes,
10199 which can conflict with char dlopen (); below.
10200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10201 <limits.h> exists even on freestanding compilers. */
10202
10203#ifdef __STDC__
10204# include <limits.h>
10205#else
10206# include <assert.h>
10207#endif
10208
10209#undef dlopen
10210
7eed349e 10211/* Override any gcc2 internal prototype to avoid an error. */
1cf3d07d
SE
10212#ifdef __cplusplus
10213extern "C"
7eed349e 10214{
1cf3d07d 10215#endif
7eed349e
PC
10216/* We use char because int might match the return type of a gcc2
10217 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10218char dlopen ();
10219/* The GNU C library defines this for functions which it implements
10220 to always fail with ENOSYS. Some functions are actually named
10221 something starting with __ and the normal name is an alias. */
7eed349e 10222#if defined (__stub_dlopen) || defined (__stub___dlopen)
1cf3d07d 10223choke me
7eed349e
PC
10224#else
10225char (*f) () = dlopen;
10226#endif
10227#ifdef __cplusplus
10228}
1cf3d07d
SE
10229#endif
10230
10231int
10232main ()
10233{
7eed349e 10234return f != dlopen;
1cf3d07d
SE
10235 ;
10236 return 0;
10237}
10238_ACEOF
10239rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
10240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10241 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
10242 ac_status=$?
10243 grep -v '^ *+' conftest.er1 >conftest.err
10244 rm -f conftest.er1
10245 cat conftest.err >&5
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
10247 (exit $ac_status); } &&
10248 { ac_try='test -z "$ac_c_werror_flag"
10249 || test ! -s conftest.err'
10250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10252 ac_status=$?
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; } &&
10255 { ac_try='test -s conftest$ac_exeext'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
1cf3d07d
SE
10261 ac_cv_func_dlopen=yes
10262else
10263 echo "$as_me: failed program was:" >&5
10264sed 's/^/| /' conftest.$ac_ext >&5
10265
7eed349e 10266ac_cv_func_dlopen=no
1cf3d07d 10267fi
7eed349e 10268rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
10269 conftest$ac_exeext conftest.$ac_ext
10270fi
7eed349e
PC
10271echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10272echo "${ECHO_T}$ac_cv_func_dlopen" >&6
1cf3d07d
SE
10273if test $ac_cv_func_dlopen = yes; then
10274 lt_cv_dlopen="dlopen"
10275else
7eed349e
PC
10276 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10277echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
1cf3d07d
SE
10278if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10280else
10281 ac_check_lib_save_LIBS=$LIBS
10282LIBS="-ldl $LIBS"
10283if test x$gcc_no_link = xyes; then
10284 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10285echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10286 { (exit 1); exit 1; }; }
10287fi
10288cat >conftest.$ac_ext <<_ACEOF
10289/* confdefs.h. */
10290_ACEOF
10291cat confdefs.h >>conftest.$ac_ext
10292cat >>conftest.$ac_ext <<_ACEOF
10293/* end confdefs.h. */
10294
7eed349e 10295/* Override any gcc2 internal prototype to avoid an error. */
1cf3d07d
SE
10296#ifdef __cplusplus
10297extern "C"
10298#endif
7eed349e
PC
10299/* We use char because int might match the return type of a gcc2
10300 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10301char dlopen ();
10302int
10303main ()
10304{
7eed349e 10305dlopen ();
1cf3d07d
SE
10306 ;
10307 return 0;
10308}
10309_ACEOF
10310rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
10311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10312 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
10313 ac_status=$?
10314 grep -v '^ *+' conftest.er1 >conftest.err
10315 rm -f conftest.er1
10316 cat conftest.err >&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
10318 (exit $ac_status); } &&
10319 { ac_try='test -z "$ac_c_werror_flag"
10320 || test ! -s conftest.err'
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322 (eval $ac_try) 2>&5
10323 ac_status=$?
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; } &&
10326 { ac_try='test -s conftest$ac_exeext'
10327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328 (eval $ac_try) 2>&5
10329 ac_status=$?
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); }; }; then
1cf3d07d
SE
10332 ac_cv_lib_dl_dlopen=yes
10333else
10334 echo "$as_me: failed program was:" >&5
10335sed 's/^/| /' conftest.$ac_ext >&5
10336
7eed349e 10337ac_cv_lib_dl_dlopen=no
1cf3d07d 10338fi
7eed349e 10339rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
10340 conftest$ac_exeext conftest.$ac_ext
10341LIBS=$ac_check_lib_save_LIBS
10342fi
7eed349e
PC
10343echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10344echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
1cf3d07d
SE
10345if test $ac_cv_lib_dl_dlopen = yes; then
10346 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10347else
7eed349e
PC
10348 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10349echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
1cf3d07d
SE
10350if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
10352else
10353 ac_check_lib_save_LIBS=$LIBS
10354LIBS="-lsvld $LIBS"
10355if test x$gcc_no_link = xyes; then
10356 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10357echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10358 { (exit 1); exit 1; }; }
10359fi
10360cat >conftest.$ac_ext <<_ACEOF
10361/* confdefs.h. */
10362_ACEOF
10363cat confdefs.h >>conftest.$ac_ext
10364cat >>conftest.$ac_ext <<_ACEOF
10365/* end confdefs.h. */
10366
7eed349e 10367/* Override any gcc2 internal prototype to avoid an error. */
1cf3d07d
SE
10368#ifdef __cplusplus
10369extern "C"
10370#endif
7eed349e
PC
10371/* We use char because int might match the return type of a gcc2
10372 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10373char dlopen ();
10374int
10375main ()
10376{
7eed349e 10377dlopen ();
1cf3d07d
SE
10378 ;
10379 return 0;
10380}
10381_ACEOF
10382rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
10383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10384 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
10385 ac_status=$?
10386 grep -v '^ *+' conftest.er1 >conftest.err
10387 rm -f conftest.er1
10388 cat conftest.err >&5
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
10390 (exit $ac_status); } &&
10391 { ac_try='test -z "$ac_c_werror_flag"
10392 || test ! -s conftest.err'
10393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10394 (eval $ac_try) 2>&5
10395 ac_status=$?
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); }; } &&
10398 { ac_try='test -s conftest$ac_exeext'
10399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10400 (eval $ac_try) 2>&5
10401 ac_status=$?
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); }; }; then
1cf3d07d
SE
10404 ac_cv_lib_svld_dlopen=yes
10405else
10406 echo "$as_me: failed program was:" >&5
10407sed 's/^/| /' conftest.$ac_ext >&5
10408
7eed349e 10409ac_cv_lib_svld_dlopen=no
1cf3d07d 10410fi
7eed349e 10411rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
10412 conftest$ac_exeext conftest.$ac_ext
10413LIBS=$ac_check_lib_save_LIBS
10414fi
7eed349e
PC
10415echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10416echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
1cf3d07d
SE
10417if test $ac_cv_lib_svld_dlopen = yes; then
10418 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10419else
7eed349e
PC
10420 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10421echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
1cf3d07d
SE
10422if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10423 echo $ECHO_N "(cached) $ECHO_C" >&6
10424else
10425 ac_check_lib_save_LIBS=$LIBS
10426LIBS="-ldld $LIBS"
10427if test x$gcc_no_link = xyes; then
10428 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10429echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10430 { (exit 1); exit 1; }; }
10431fi
10432cat >conftest.$ac_ext <<_ACEOF
10433/* confdefs.h. */
10434_ACEOF
10435cat confdefs.h >>conftest.$ac_ext
10436cat >>conftest.$ac_ext <<_ACEOF
10437/* end confdefs.h. */
10438
7eed349e 10439/* Override any gcc2 internal prototype to avoid an error. */
1cf3d07d
SE
10440#ifdef __cplusplus
10441extern "C"
10442#endif
7eed349e
PC
10443/* We use char because int might match the return type of a gcc2
10444 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10445char dld_link ();
10446int
10447main ()
10448{
7eed349e 10449dld_link ();
1cf3d07d
SE
10450 ;
10451 return 0;
10452}
10453_ACEOF
10454rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
10455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10456 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
10457 ac_status=$?
10458 grep -v '^ *+' conftest.er1 >conftest.err
10459 rm -f conftest.er1
10460 cat conftest.err >&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
10462 (exit $ac_status); } &&
10463 { ac_try='test -z "$ac_c_werror_flag"
10464 || test ! -s conftest.err'
10465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10466 (eval $ac_try) 2>&5
10467 ac_status=$?
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); }; } &&
10470 { ac_try='test -s conftest$ac_exeext'
10471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472 (eval $ac_try) 2>&5
10473 ac_status=$?
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; }; then
1cf3d07d
SE
10476 ac_cv_lib_dld_dld_link=yes
10477else
10478 echo "$as_me: failed program was:" >&5
10479sed 's/^/| /' conftest.$ac_ext >&5
10480
7eed349e 10481ac_cv_lib_dld_dld_link=no
1cf3d07d 10482fi
7eed349e 10483rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
10484 conftest$ac_exeext conftest.$ac_ext
10485LIBS=$ac_check_lib_save_LIBS
10486fi
7eed349e
PC
10487echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10488echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
1cf3d07d
SE
10489if test $ac_cv_lib_dld_dld_link = yes; then
10490 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10491fi
10492
10493
10494fi
10495
10496
10497fi
10498
10499
10500fi
10501
10502
10503fi
10504
10505
10506fi
10507
10508 ;;
10509 esac
10510
10511 if test "x$lt_cv_dlopen" != xno; then
10512 enable_dlopen=yes
10513 else
10514 enable_dlopen=no
10515 fi
10516
10517 case $lt_cv_dlopen in
10518 dlopen)
10519 save_CPPFLAGS="$CPPFLAGS"
10520 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10521
10522 save_LDFLAGS="$LDFLAGS"
10523 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10524
10525 save_LIBS="$LIBS"
10526 LIBS="$lt_cv_dlopen_libs $LIBS"
10527
7eed349e
PC
10528 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10529echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
1cf3d07d
SE
10530if test "${lt_cv_dlopen_self+set}" = set; then
10531 echo $ECHO_N "(cached) $ECHO_C" >&6
10532else
10533 if test "$cross_compiling" = yes; then :
10534 lt_cv_dlopen_self=cross
10535else
10536 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10537 lt_status=$lt_dlunknown
10538 cat > conftest.$ac_ext <<_LT_EOF
727cd0bc 10539#line 10539 "configure"
1cf3d07d
SE
10540#include "confdefs.h"
10541
10542#if HAVE_DLFCN_H
10543#include <dlfcn.h>
10544#endif
10545
10546#include <stdio.h>
10547
10548#ifdef RTLD_GLOBAL
10549# define LT_DLGLOBAL RTLD_GLOBAL
10550#else
10551# ifdef DL_GLOBAL
10552# define LT_DLGLOBAL DL_GLOBAL
10553# else
10554# define LT_DLGLOBAL 0
10555# endif
10556#endif
10557
10558/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10559 find out it does not work in some platform. */
10560#ifndef LT_DLLAZY_OR_NOW
10561# ifdef RTLD_LAZY
10562# define LT_DLLAZY_OR_NOW RTLD_LAZY
10563# else
10564# ifdef DL_LAZY
10565# define LT_DLLAZY_OR_NOW DL_LAZY
10566# else
10567# ifdef RTLD_NOW
10568# define LT_DLLAZY_OR_NOW RTLD_NOW
10569# else
10570# ifdef DL_NOW
10571# define LT_DLLAZY_OR_NOW DL_NOW
10572# else
10573# define LT_DLLAZY_OR_NOW 0
10574# endif
10575# endif
10576# endif
10577# endif
10578#endif
10579
10580#ifdef __cplusplus
10581extern "C" void exit (int);
10582#endif
10583
10584void fnord() { int i=42;}
10585int main ()
10586{
10587 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10588 int status = $lt_dlunknown;
10589
10590 if (self)
10591 {
10592 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10593 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10594 /* dlclose (self); */
10595 }
10596 else
10597 puts (dlerror ());
10598
10599 exit (status);
10600}
10601_LT_EOF
10602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10603 (eval $ac_link) 2>&5
10604 ac_status=$?
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10607 (./conftest; exit; ) >&5 2>/dev/null
10608 lt_status=$?
10609 case x$lt_status in
10610 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10611 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10612 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10613 esac
10614 else :
10615 # compilation failed
10616 lt_cv_dlopen_self=no
10617 fi
10618fi
10619rm -fr conftest*
10620
10621
10622fi
7eed349e
PC
10623echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10624echo "${ECHO_T}$lt_cv_dlopen_self" >&6
1cf3d07d
SE
10625
10626 if test "x$lt_cv_dlopen_self" = xyes; then
10627 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
7eed349e
PC
10628 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10629echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
1cf3d07d
SE
10630if test "${lt_cv_dlopen_self_static+set}" = set; then
10631 echo $ECHO_N "(cached) $ECHO_C" >&6
10632else
10633 if test "$cross_compiling" = yes; then :
10634 lt_cv_dlopen_self_static=cross
10635else
10636 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10637 lt_status=$lt_dlunknown
10638 cat > conftest.$ac_ext <<_LT_EOF
727cd0bc 10639#line 10639 "configure"
1cf3d07d
SE
10640#include "confdefs.h"
10641
10642#if HAVE_DLFCN_H
10643#include <dlfcn.h>
10644#endif
10645
10646#include <stdio.h>
10647
10648#ifdef RTLD_GLOBAL
10649# define LT_DLGLOBAL RTLD_GLOBAL
10650#else
10651# ifdef DL_GLOBAL
10652# define LT_DLGLOBAL DL_GLOBAL
10653# else
10654# define LT_DLGLOBAL 0
10655# endif
10656#endif
10657
10658/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10659 find out it does not work in some platform. */
10660#ifndef LT_DLLAZY_OR_NOW
10661# ifdef RTLD_LAZY
10662# define LT_DLLAZY_OR_NOW RTLD_LAZY
10663# else
10664# ifdef DL_LAZY
10665# define LT_DLLAZY_OR_NOW DL_LAZY
10666# else
10667# ifdef RTLD_NOW
10668# define LT_DLLAZY_OR_NOW RTLD_NOW
10669# else
10670# ifdef DL_NOW
10671# define LT_DLLAZY_OR_NOW DL_NOW
10672# else
10673# define LT_DLLAZY_OR_NOW 0
10674# endif
10675# endif
10676# endif
10677# endif
10678#endif
10679
10680#ifdef __cplusplus
10681extern "C" void exit (int);
10682#endif
10683
10684void fnord() { int i=42;}
10685int main ()
10686{
10687 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10688 int status = $lt_dlunknown;
10689
10690 if (self)
10691 {
10692 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10693 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10694 /* dlclose (self); */
10695 }
10696 else
10697 puts (dlerror ());
10698
10699 exit (status);
10700}
10701_LT_EOF
10702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10703 (eval $ac_link) 2>&5
10704 ac_status=$?
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10707 (./conftest; exit; ) >&5 2>/dev/null
10708 lt_status=$?
10709 case x$lt_status in
10710 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10711 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10712 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10713 esac
10714 else :
10715 # compilation failed
10716 lt_cv_dlopen_self_static=no
10717 fi
10718fi
10719rm -fr conftest*
10720
10721
10722fi
7eed349e
PC
10723echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10724echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
1cf3d07d
SE
10725 fi
10726
10727 CPPFLAGS="$save_CPPFLAGS"
10728 LDFLAGS="$save_LDFLAGS"
10729 LIBS="$save_LIBS"
10730 ;;
10731 esac
10732
10733 case $lt_cv_dlopen_self in
10734 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10735 *) enable_dlopen_self=unknown ;;
10736 esac
10737
10738 case $lt_cv_dlopen_self_static in
10739 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10740 *) enable_dlopen_self_static=unknown ;;
10741 esac
10742fi
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760striplib=
10761old_striplib=
7eed349e
PC
10762echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10763echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
1cf3d07d
SE
10764if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10765 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10766 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7eed349e
PC
10767 echo "$as_me:$LINENO: result: yes" >&5
10768echo "${ECHO_T}yes" >&6
1cf3d07d
SE
10769else
10770# FIXME - insert some real tests, host_os isn't really good enough
10771 case $host_os in
10772 darwin*)
10773 if test -n "$STRIP" ; then
10774 striplib="$STRIP -x"
10775 old_striplib="$STRIP -S"
7eed349e
PC
10776 echo "$as_me:$LINENO: result: yes" >&5
10777echo "${ECHO_T}yes" >&6
1cf3d07d 10778 else
7eed349e
PC
10779 echo "$as_me:$LINENO: result: no" >&5
10780echo "${ECHO_T}no" >&6
1cf3d07d
SE
10781 fi
10782 ;;
10783 *)
7eed349e
PC
10784 echo "$as_me:$LINENO: result: no" >&5
10785echo "${ECHO_T}no" >&6
1cf3d07d
SE
10786 ;;
10787 esac
10788fi
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801 # Report which library types will actually be built
7eed349e
PC
10802 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10803echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10804 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10805echo "${ECHO_T}$can_build_shared" >&6
1cf3d07d 10806
7eed349e
PC
10807 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10808echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
1cf3d07d
SE
10809 test "$can_build_shared" = "no" && enable_shared=no
10810
10811 # On AIX, shared libraries and static libraries use the same namespace, and
10812 # are all built from PIC.
10813 case $host_os in
10814 aix3*)
10815 test "$enable_shared" = yes && enable_static=no
10816 if test -n "$RANLIB"; then
10817 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10818 postinstall_cmds='$RANLIB $lib'
10819 fi
10820 ;;
10821
716e4bc6 10822 aix[4-9]*)
1cf3d07d
SE
10823 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10824 test "$enable_shared" = yes && enable_static=no
10825 fi
10826 ;;
10827 esac
7eed349e
PC
10828 echo "$as_me:$LINENO: result: $enable_shared" >&5
10829echo "${ECHO_T}$enable_shared" >&6
1cf3d07d 10830
7eed349e
PC
10831 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10832echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
1cf3d07d
SE
10833 # Make sure either enable_shared or enable_static is yes.
10834 test "$enable_shared" = yes || enable_static=yes
7eed349e
PC
10835 echo "$as_me:$LINENO: result: $enable_static" >&5
10836echo "${ECHO_T}$enable_static" >&6
1cf3d07d
SE
10837
10838
10839
10840
10841fi
10842ac_ext=c
10843ac_cpp='$CPP $CPPFLAGS'
10844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10846ac_compiler_gnu=$ac_cv_c_compiler_gnu
10847
10848CC="$lt_save_CC"
10849
10850
7eed349e 10851ac_ext=cc
1cf3d07d
SE
10852ac_cpp='$CXXCPP $CPPFLAGS'
10853ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10854ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10855ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10856
10857archive_cmds_need_lc_CXX=no
10858allow_undefined_flag_CXX=
10859always_export_symbols_CXX=no
10860archive_expsym_cmds_CXX=
10861compiler_needs_object_CXX=no
10862export_dynamic_flag_spec_CXX=
10863hardcode_direct_CXX=no
10864hardcode_direct_absolute_CXX=no
10865hardcode_libdir_flag_spec_CXX=
10866hardcode_libdir_flag_spec_ld_CXX=
10867hardcode_libdir_separator_CXX=
10868hardcode_minus_L_CXX=no
10869hardcode_shlibpath_var_CXX=unsupported
10870hardcode_automatic_CXX=no
10871inherit_rpath_CXX=no
10872module_cmds_CXX=
10873module_expsym_cmds_CXX=
10874link_all_deplibs_CXX=unknown
10875old_archive_cmds_CXX=$old_archive_cmds
10876no_undefined_flag_CXX=
10877whole_archive_flag_spec_CXX=
10878enable_shared_with_static_runtimes_CXX=no
10879
10880# Source file extension for C++ test sources.
10881ac_ext=cpp
10882
10883# Object file extension for compiled C++ test sources.
10884objext=o
10885objext_CXX=$objext
10886
10887# No sense in running all these tests if we already determined that
10888# the CXX compiler isn't working. Some variables (like enable_shared)
10889# are currently assumed to apply to all compilers on this platform,
10890# and will be corrupted by setting them based on a non-working compiler.
10891if test "$_lt_caught_CXX_error" != yes; then
10892 # Code to be used in simple compile tests
10893 lt_simple_compile_test_code="int some_variable = 0;"
10894
10895 # Code to be used in simple link tests
10896 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10897
10898 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10899
10900
10901
10902
10903
10904
10905# If no C compiler was specified, use CC.
10906LTCC=${LTCC-"$CC"}
10907
10908# If no C compiler flags were specified, use CFLAGS.
10909LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10910
10911# Allow CC to be a program name with arguments.
10912compiler=$CC
10913
10914
10915 # save warnings/boilerplate of simple test code
10916 ac_outfile=conftest.$ac_objext
10917echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10918eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10919_lt_compiler_boilerplate=`cat conftest.err`
10920$RM conftest*
10921
10922 ac_outfile=conftest.$ac_objext
10923echo "$lt_simple_link_test_code" >conftest.$ac_ext
10924eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10925_lt_linker_boilerplate=`cat conftest.err`
10926$RM conftest*
10927
10928
10929 # Allow CC to be a program name with arguments.
10930 lt_save_CC=$CC
10931 lt_save_LD=$LD
10932 lt_save_GCC=$GCC
10933 GCC=$GXX
10934 lt_save_with_gnu_ld=$with_gnu_ld
10935 lt_save_path_LD=$lt_cv_path_LD
10936 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10937 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10938 else
10939 $as_unset lt_cv_prog_gnu_ld
10940 fi
10941 if test -n "${lt_cv_path_LDCXX+set}"; then
10942 lt_cv_path_LD=$lt_cv_path_LDCXX
10943 else
10944 $as_unset lt_cv_path_LD
10945 fi
10946 test -z "${LDCXX+set}" || LD=$LDCXX
10947 CC=${CXX-"c++"}
10948 compiler=$CC
10949 compiler_CXX=$CC
10950 for cc_temp in $compiler""; do
10951 case $cc_temp in
10952 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10953 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10954 \-*) ;;
10955 *) break;;
10956 esac
10957done
10958cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10959
10960
10961 if test -n "$compiler"; then
10962 # We don't want -fno-exception when compiling C++ code, so set the
10963 # no_builtin_flag separately
10964 if test "$GXX" = yes; then
10965 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10966 else
10967 lt_prog_compiler_no_builtin_flag_CXX=
10968 fi
10969
10970 if test "$GXX" = yes; then
10971 # Set up default GNU C++ configuration
10972
10973
10974
7eed349e 10975# Check whether --with-gnu-ld or --without-gnu-ld was given.
1cf3d07d 10976if test "${with_gnu_ld+set}" = set; then
7eed349e
PC
10977 withval="$with_gnu_ld"
10978 test "$withval" = no || with_gnu_ld=yes
1cf3d07d
SE
10979else
10980 with_gnu_ld=no
7eed349e 10981fi;
1cf3d07d
SE
10982ac_prog=ld
10983if test "$GCC" = yes; then
10984 # Check if gcc -print-prog-name=ld gives a path.
7eed349e
PC
10985 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10986echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
1cf3d07d
SE
10987 case $host in
10988 *-*-mingw*)
10989 # gcc leaves a trailing carriage return which upsets mingw
10990 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10991 *)
10992 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10993 esac
10994 case $ac_prog in
10995 # Accept absolute paths.
10996 [\\/]* | ?:[\\/]*)
10997 re_direlt='/[^/][^/]*/\.\./'
10998 # Canonicalize the pathname of ld
10999 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11000 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11001 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11002 done
11003 test -z "$LD" && LD="$ac_prog"
11004 ;;
11005 "")
11006 # If it fails, then pretend we aren't using GCC.
11007 ac_prog=ld
11008 ;;
11009 *)
11010 # If it is relative, then search for the first ld in PATH.
11011 with_gnu_ld=unknown
11012 ;;
11013 esac
11014elif test "$with_gnu_ld" = yes; then
7eed349e
PC
11015 echo "$as_me:$LINENO: checking for GNU ld" >&5
11016echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1cf3d07d 11017else
7eed349e
PC
11018 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11019echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1cf3d07d
SE
11020fi
11021if test "${lt_cv_path_LD+set}" = set; then
11022 echo $ECHO_N "(cached) $ECHO_C" >&6
11023else
11024 if test -z "$LD"; then
11025 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11026 for ac_dir in $PATH; do
11027 IFS="$lt_save_ifs"
11028 test -z "$ac_dir" && ac_dir=.
11029 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11030 lt_cv_path_LD="$ac_dir/$ac_prog"
11031 # Check to see if the program is GNU ld. I'd rather use --version,
11032 # but apparently some variants of GNU ld only accept -v.
11033 # Break only if it was the GNU/non-GNU ld that we prefer.
11034 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11035 *GNU* | *'with BFD'*)
11036 test "$with_gnu_ld" != no && break
11037 ;;
11038 *)
11039 test "$with_gnu_ld" != yes && break
11040 ;;
11041 esac
11042 fi
11043 done
11044 IFS="$lt_save_ifs"
11045else
11046 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11047fi
11048fi
11049
11050LD="$lt_cv_path_LD"
11051if test -n "$LD"; then
7eed349e
PC
11052 echo "$as_me:$LINENO: result: $LD" >&5
11053echo "${ECHO_T}$LD" >&6
1cf3d07d 11054else
7eed349e
PC
11055 echo "$as_me:$LINENO: result: no" >&5
11056echo "${ECHO_T}no" >&6
1cf3d07d
SE
11057fi
11058test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11059echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11060 { (exit 1); exit 1; }; }
7eed349e
PC
11061echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11062echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
1cf3d07d
SE
11063if test "${lt_cv_prog_gnu_ld+set}" = set; then
11064 echo $ECHO_N "(cached) $ECHO_C" >&6
11065else
11066 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11067case `$LD -v 2>&1 </dev/null` in
11068*GNU* | *'with BFD'*)
11069 lt_cv_prog_gnu_ld=yes
11070 ;;
11071*)
11072 lt_cv_prog_gnu_ld=no
11073 ;;
11074esac
11075fi
7eed349e
PC
11076echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11077echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
1cf3d07d
SE
11078with_gnu_ld=$lt_cv_prog_gnu_ld
11079
11080
11081
11082
11083
11084
11085
11086 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11087 # archiving commands below assume that GNU ld is being used.
11088 if test "$with_gnu_ld" = yes; then
11089 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11090 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11091
11092 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11093 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11094
11095 # If archive_cmds runs LD, not CC, wlarc should be empty
11096 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11097 # investigate it a little bit more. (MM)
11098 wlarc='${wl}'
11099
11100 # ancient GNU ld didn't support --whole-archive et. al.
11101 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11102 $GREP 'no-whole-archive' > /dev/null; then
11103 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11104 else
11105 whole_archive_flag_spec_CXX=
11106 fi
11107 else
11108 with_gnu_ld=no
11109 wlarc=
11110
11111 # A generic and very simple default shared library creation
11112 # command for GNU C++ for the case where it uses the native
11113 # linker, instead of GNU ld. If possible, this setting should
11114 # overridden to take advantage of the native linker features on
11115 # the platform it is being used on.
11116 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11117 fi
11118
11119 # Commands to make compiler produce verbose output that lists
11120 # what "hidden" libraries, object files and flags are used when
11121 # linking a shared library.
11122 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11123
11124 else
11125 GXX=no
11126 with_gnu_ld=no
11127 wlarc=
11128 fi
11129
11130 # PORTME: fill in a description of your system's C++ link characteristics
7eed349e
PC
11131 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11132echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1cf3d07d
SE
11133 ld_shlibs_CXX=yes
11134 case $host_os in
11135 aix3*)
11136 # FIXME: insert proper C++ library support
11137 ld_shlibs_CXX=no
11138 ;;
716e4bc6 11139 aix[4-9]*)
1cf3d07d
SE
11140 if test "$host_cpu" = ia64; then
11141 # On IA64, the linker does run time linking by default, so we don't
11142 # have to do anything special.
11143 aix_use_runtimelinking=no
11144 exp_sym_flag='-Bexport'
11145 no_entry_flag=""
11146 else
11147 aix_use_runtimelinking=no
11148
11149 # Test if we are trying to use run time linking or normal
11150 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11151 # need to do runtime linking.
716e4bc6 11152 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
11153 for ld_flag in $LDFLAGS; do
11154 case $ld_flag in
11155 *-brtl*)
11156 aix_use_runtimelinking=yes
11157 break
11158 ;;
11159 esac
11160 done
11161 ;;
11162 esac
11163
11164 exp_sym_flag='-bexport'
11165 no_entry_flag='-bnoentry'
11166 fi
11167
11168 # When large executables or shared objects are built, AIX ld can
11169 # have problems creating the table of contents. If linking a library
11170 # or program results in "error TOC overflow" add -mminimal-toc to
11171 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11172 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11173
11174 archive_cmds_CXX=''
11175 hardcode_direct_CXX=yes
11176 hardcode_direct_absolute_CXX=yes
11177 hardcode_libdir_separator_CXX=':'
11178 link_all_deplibs_CXX=yes
11179 file_list_spec_CXX='${wl}-f,'
11180
11181 if test "$GXX" = yes; then
11182 case $host_os in aix4.[012]|aix4.[012].*)
11183 # We only want to do this on AIX 4.2 and lower, the check
11184 # below for broken collect2 doesn't work under 4.3+
11185 collect2name=`${CC} -print-prog-name=collect2`
11186 if test -f "$collect2name" &&
11187 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11188 then
11189 # We have reworked collect2
11190 :
11191 else
11192 # We have old collect2
11193 hardcode_direct_CXX=unsupported
11194 # It fails to find uninstalled libraries when the uninstalled
11195 # path is not listed in the libpath. Setting hardcode_minus_L
11196 # to unsupported forces relinking
11197 hardcode_minus_L_CXX=yes
11198 hardcode_libdir_flag_spec_CXX='-L$libdir'
11199 hardcode_libdir_separator_CXX=
11200 fi
11201 esac
11202 shared_flag='-shared'
11203 if test "$aix_use_runtimelinking" = yes; then
11204 shared_flag="$shared_flag "'${wl}-G'
11205 fi
11206 else
11207 # not using gcc
11208 if test "$host_cpu" = ia64; then
11209 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11210 # chokes on -Wl,-G. The following line is correct:
11211 shared_flag='-G'
11212 else
11213 if test "$aix_use_runtimelinking" = yes; then
11214 shared_flag='${wl}-G'
11215 else
11216 shared_flag='${wl}-bM:SRE'
11217 fi
11218 fi
11219 fi
11220
11221 # It seems that -bexpall does not export symbols beginning with
11222 # underscore (_), so it is better to generate a list of symbols to
11223 # export.
11224 always_export_symbols_CXX=yes
11225 if test "$aix_use_runtimelinking" = yes; then
11226 # Warning - without using the other runtime loading flags (-brtl),
11227 # -berok will link without error, but may produce a broken library.
11228 allow_undefined_flag_CXX='-berok'
11229 # Determine the default libpath from the value encoded in an empty
11230 # executable.
11231 if test x$gcc_no_link = xyes; then
11232 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11233echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11234 { (exit 1); exit 1; }; }
11235fi
11236cat >conftest.$ac_ext <<_ACEOF
11237/* confdefs.h. */
11238_ACEOF
11239cat confdefs.h >>conftest.$ac_ext
11240cat >>conftest.$ac_ext <<_ACEOF
11241/* end confdefs.h. */
11242
11243int
11244main ()
11245{
11246
11247 ;
11248 return 0;
11249}
11250_ACEOF
11251rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
11252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11253 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
11254 ac_status=$?
11255 grep -v '^ *+' conftest.er1 >conftest.err
11256 rm -f conftest.er1
11257 cat conftest.err >&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
11259 (exit $ac_status); } &&
11260 { ac_try='test -z "$ac_cxx_werror_flag"
11261 || test ! -s conftest.err'
11262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11263 (eval $ac_try) 2>&5
11264 ac_status=$?
11265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266 (exit $ac_status); }; } &&
11267 { ac_try='test -s conftest$ac_exeext'
11268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11269 (eval $ac_try) 2>&5
11270 ac_status=$?
11271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11272 (exit $ac_status); }; }; then
1cf3d07d
SE
11273
11274lt_aix_libpath_sed='
11275 /Import File Strings/,/^$/ {
11276 /^0/ {
11277 s/^0 *\(.*\)$/\1/
11278 p
11279 }
11280 }'
11281aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11282# Check for a 64-bit object if we didn't find anything.
11283if test -z "$aix_libpath"; then
11284 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11285fi
11286else
11287 echo "$as_me: failed program was:" >&5
11288sed 's/^/| /' conftest.$ac_ext >&5
11289
11290fi
7eed349e 11291rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
11292 conftest$ac_exeext conftest.$ac_ext
11293if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11294
11295 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11296
11297 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11298 else
11299 if test "$host_cpu" = ia64; then
11300 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11301 allow_undefined_flag_CXX="-z nodefs"
11302 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11303 else
11304 # Determine the default libpath from the value encoded in an
11305 # empty executable.
11306 if test x$gcc_no_link = xyes; then
11307 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11308echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11309 { (exit 1); exit 1; }; }
11310fi
11311cat >conftest.$ac_ext <<_ACEOF
11312/* confdefs.h. */
11313_ACEOF
11314cat confdefs.h >>conftest.$ac_ext
11315cat >>conftest.$ac_ext <<_ACEOF
11316/* end confdefs.h. */
11317
11318int
11319main ()
11320{
11321
11322 ;
11323 return 0;
11324}
11325_ACEOF
11326rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
11327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11328 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
11329 ac_status=$?
11330 grep -v '^ *+' conftest.er1 >conftest.err
11331 rm -f conftest.er1
11332 cat conftest.err >&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
11334 (exit $ac_status); } &&
11335 { ac_try='test -z "$ac_cxx_werror_flag"
11336 || test ! -s conftest.err'
11337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338 (eval $ac_try) 2>&5
11339 ac_status=$?
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; } &&
11342 { ac_try='test -s conftest$ac_exeext'
11343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11344 (eval $ac_try) 2>&5
11345 ac_status=$?
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; }; then
1cf3d07d
SE
11348
11349lt_aix_libpath_sed='
11350 /Import File Strings/,/^$/ {
11351 /^0/ {
11352 s/^0 *\(.*\)$/\1/
11353 p
11354 }
11355 }'
11356aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11357# Check for a 64-bit object if we didn't find anything.
11358if test -z "$aix_libpath"; then
11359 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11360fi
11361else
11362 echo "$as_me: failed program was:" >&5
11363sed 's/^/| /' conftest.$ac_ext >&5
11364
11365fi
7eed349e 11366rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
11367 conftest$ac_exeext conftest.$ac_ext
11368if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11369
11370 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11371 # Warning - without using the other run time loading flags,
11372 # -berok will link without error, but may produce a broken library.
11373 no_undefined_flag_CXX=' ${wl}-bernotok'
11374 allow_undefined_flag_CXX=' ${wl}-berok'
11375 # Exported symbols can be pulled into shared objects from archives
11376 whole_archive_flag_spec_CXX='$convenience'
11377 archive_cmds_need_lc_CXX=yes
11378 # This is similar to how AIX traditionally builds its shared
11379 # libraries.
11380 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11381 fi
11382 fi
11383 ;;
11384
11385 beos*)
11386 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11387 allow_undefined_flag_CXX=unsupported
11388 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11389 # support --undefined. This deserves some investigation. FIXME
11390 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11391 else
11392 ld_shlibs_CXX=no
11393 fi
11394 ;;
11395
11396 chorus*)
11397 case $cc_basename in
11398 *)
11399 # FIXME: insert proper C++ library support
11400 ld_shlibs_CXX=no
11401 ;;
11402 esac
11403 ;;
11404
11405 cygwin* | mingw* | pw32*)
11406 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11407 # as there is no search path for DLLs.
11408 hardcode_libdir_flag_spec_CXX='-L$libdir'
11409 allow_undefined_flag_CXX=unsupported
11410 always_export_symbols_CXX=no
11411 enable_shared_with_static_runtimes_CXX=yes
11412
11413 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11414 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11415 # If the export-symbols file already is a .def file (1st line
11416 # is EXPORTS), use it as is; otherwise, prepend...
11417 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11418 cp $export_symbols $output_objdir/$soname.def;
11419 else
11420 echo EXPORTS > $output_objdir/$soname.def;
11421 cat $export_symbols >> $output_objdir/$soname.def;
11422 fi~
11423 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11424 else
11425 ld_shlibs_CXX=no
11426 fi
11427 ;;
11428 darwin* | rhapsody*)
11429 case $host_os in
11430 rhapsody* | darwin1.[012])
11431 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11432 ;;
11433 *) # Darwin 1.3 on
11434 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
11435 10.[012])
11436 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11437 ;;
11438 10.*)
11439 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11440 ;;
11441 esac
11442 ;;
11443 esac
11444 archive_cmds_need_lc_CXX=no
11445 hardcode_direct_CXX=no
11446 hardcode_automatic_CXX=yes
11447 hardcode_shlibpath_var_CXX=unsupported
11448 whole_archive_flag_spec_CXX=''
11449 link_all_deplibs_CXX=yes
11450
11451 if test "$GXX" = yes ; then
11452 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11453 echo $ECHO_N "(cached) $ECHO_C" >&6
11454else
11455 lt_cv_apple_cc_single_mod=no
11456 if test -z "${LT_MULTI_MODULE}"; then
11457 # By default we will add the -single_module flag. You can override
11458 # by either setting the environment variable LT_MULTI_MODULE
11459 # non-empty at configure time, or by adding -multi-module to the
11460 # link flags.
11461 echo "int foo(void){return 1;}" > conftest.c
11462 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11463 -dynamiclib ${wl}-single_module conftest.c
11464 if test -f libconftest.dylib; then
11465 lt_cv_apple_cc_single_mod=yes
11466 rm libconftest.dylib
11467 fi
11468 rm conftest.$ac_ext
11469 fi
11470fi
11471
11472 output_verbose_link_cmd=echo
11473 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
11474 archive_cmds_CXX='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11475 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11476 else
11477 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11478 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11479 fi
11480 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11481 module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11482 else
11483 case $cc_basename in
11484 xlc*)
11485 output_verbose_link_cmd=echo
11486 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO "$rpath/$soname"` $verstring'
11487 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11488 # Don't fix this by using the ld -exported_symbols_list flag,
11489 # it doesn't exist in older darwin lds
11490 archive_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11491 module_expsym_cmds_CXX='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11492 ;;
11493 *)
11494 ld_shlibs_CXX=no
11495 ;;
11496 esac
11497 fi
11498 ;;
11499
11500 dgux*)
11501 case $cc_basename in
11502 ec++*)
11503 # FIXME: insert proper C++ library support
11504 ld_shlibs_CXX=no
11505 ;;
11506 ghcx*)
11507 # Green Hills C++ Compiler
11508 # FIXME: insert proper C++ library support
11509 ld_shlibs_CXX=no
11510 ;;
11511 *)
11512 # FIXME: insert proper C++ library support
11513 ld_shlibs_CXX=no
11514 ;;
11515 esac
11516 ;;
11517
11518 freebsd[12]*)
11519 # C++ shared libraries reported to be fairly broken before
11520 # switch to ELF
11521 ld_shlibs_CXX=no
11522 ;;
11523
11524 freebsd-elf*)
11525 archive_cmds_need_lc_CXX=no
11526 ;;
11527
11528 freebsd* | dragonfly*)
11529 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11530 # conventions
11531 ld_shlibs_CXX=yes
11532 ;;
11533
11534 gnu*)
11535 ;;
11536
11537 hpux9*)
11538 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11539 hardcode_libdir_separator_CXX=:
11540 export_dynamic_flag_spec_CXX='${wl}-E'
11541 hardcode_direct_CXX=yes
11542 hardcode_minus_L_CXX=yes # Not in the search PATH,
11543 # but as the default
11544 # location of the library.
11545
11546 case $cc_basename in
11547 CC*)
11548 # FIXME: insert proper C++ library support
11549 ld_shlibs_CXX=no
11550 ;;
11551 aCC*)
11552 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11553 # Commands to make compiler produce verbose output that lists
11554 # what "hidden" libraries, object files and flags are used when
11555 # linking a shared library.
11556 #
11557 # There doesn't appear to be a way to prevent this compiler from
11558 # explicitly linking system object files so we need to strip them
11559 # from the output so that they don't get included in the library
11560 # dependencies.
11561 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
11562 ;;
11563 *)
11564 if test "$GXX" = yes; then
11565 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11566 else
11567 # FIXME: insert proper C++ library support
11568 ld_shlibs_CXX=no
11569 fi
11570 ;;
11571 esac
11572 ;;
11573
11574 hpux10*|hpux11*)
11575 if test $with_gnu_ld = no; then
11576 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11577 hardcode_libdir_separator_CXX=:
11578
11579 case $host_cpu in
11580 hppa*64*|ia64*)
11581 ;;
11582 *)
11583 export_dynamic_flag_spec_CXX='${wl}-E'
11584 ;;
11585 esac
11586 fi
11587 case $host_cpu in
11588 hppa*64*|ia64*)
11589 hardcode_direct_CXX=no
11590 hardcode_shlibpath_var_CXX=no
11591 ;;
11592 *)
11593 hardcode_direct_CXX=yes
11594 hardcode_direct_absolute_CXX=yes
11595 hardcode_minus_L_CXX=yes # Not in the search PATH,
11596 # but as the default
11597 # location of the library.
11598 ;;
11599 esac
11600
11601 case $cc_basename in
11602 CC*)
11603 # FIXME: insert proper C++ library support
11604 ld_shlibs_CXX=no
11605 ;;
11606 aCC*)
11607 case $host_cpu in
11608 hppa*64*)
11609 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11610 ;;
11611 ia64*)
11612 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11613 ;;
11614 *)
11615 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11616 ;;
11617 esac
11618 # Commands to make compiler produce verbose output that lists
11619 # what "hidden" libraries, object files and flags are used when
11620 # linking a shared library.
11621 #
11622 # There doesn't appear to be a way to prevent this compiler from
11623 # explicitly linking system object files so we need to strip them
11624 # from the output so that they don't get included in the library
11625 # dependencies.
11626 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
11627 ;;
11628 *)
11629 if test "$GXX" = yes; then
11630 if test $with_gnu_ld = no; then
11631 case $host_cpu in
11632 hppa*64*)
11633 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11634 ;;
11635 ia64*)
11636 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11637 ;;
11638 *)
11639 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11640 ;;
11641 esac
11642 fi
11643 else
11644 # FIXME: insert proper C++ library support
11645 ld_shlibs_CXX=no
11646 fi
11647 ;;
11648 esac
11649 ;;
11650
11651 interix[3-9]*)
11652 hardcode_direct_CXX=no
11653 hardcode_shlibpath_var_CXX=no
11654 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11655 export_dynamic_flag_spec_CXX='${wl}-E'
11656 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11657 # Instead, shared libraries are loaded at an image base (0x10000000 by
11658 # default) and relocated if they conflict, which is a slow very memory
11659 # consuming and fragmenting process. To avoid this, we pick a random,
11660 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11661 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11662 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11663 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11664 ;;
11665 irix5* | irix6*)
11666 case $cc_basename in
11667 CC*)
11668 # SGI C++
11669 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11670
11671 # Archives containing C++ object files must be created using
11672 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11673 # necessary to make sure instantiated templates are included
11674 # in the archive.
11675 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11676 ;;
11677 *)
11678 if test "$GXX" = yes; then
11679 if test "$with_gnu_ld" = no; then
11680 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11681 else
11682 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
11683 fi
11684 fi
11685 link_all_deplibs_CXX=yes
11686 ;;
11687 esac
11688 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11689 hardcode_libdir_separator_CXX=:
11690 inherit_rpath_CXX=yes
11691 ;;
11692
11693 linux* | k*bsd*-gnu)
11694 case $cc_basename in
11695 KCC*)
11696 # Kuck and Associates, Inc. (KAI) C++ Compiler
11697
11698 # KCC will only create a shared library if the output file
11699 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11700 # to its proper name (with version) after linking.
11701 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11702 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11703 # Commands to make compiler produce verbose output that lists
11704 # what "hidden" libraries, object files and flags are used when
11705 # linking a shared library.
11706 #
11707 # There doesn't appear to be a way to prevent this compiler from
11708 # explicitly linking system object files so we need to strip them
11709 # from the output so that they don't get included in the library
11710 # dependencies.
11711 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
11712
11713 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11714 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11715
11716 # Archives containing C++ object files must be created using
11717 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11718 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11719 ;;
11720 icpc* | ecpc* )
11721 # Intel C++
11722 with_gnu_ld=yes
11723 # version 8.0 and above of icpc choke on multiply defined symbols
11724 # if we add $predep_objects and $postdep_objects, however 7.1 and
11725 # earlier do not add the objects themselves.
11726 case `$CC -V 2>&1` in
11727 *"Version 7."*)
11728 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11729 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11730 ;;
11731 *) # Version 8.0 or newer
11732 tmp_idyn=
11733 case $host_cpu in
11734 ia64*) tmp_idyn=' -i_dynamic';;
11735 esac
11736 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11737 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11738 ;;
11739 esac
11740 archive_cmds_need_lc_CXX=no
11741 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11742 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11743 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11744 ;;
11745 pgCC*)
11746 # Portland Group C++ compiler
11747 case `$CC -V` in
11748 *pgCC\ [1-5]*)
11749 prelink_cmds_CXX='tpldir=Template.dir~
11750 rm -rf $tpldir~
11751 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
11752 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
11753 old_archive_cmds_CXX='tpldir=Template.dir~
11754 rm -rf $tpldir~
11755 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
11756 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
11757 $RANLIB $oldlib'
11758 archive_cmds_CXX='tpldir=Template.dir~
11759 rm -rf $tpldir~
11760 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
11761 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11762 archive_expsym_cmds_CXX='tpldir=Template.dir~
11763 rm -rf $tpldir~
11764 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
11765 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11766 ;;
11767 *) # Version 6 will use weak symbols
11768 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11769 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11770 ;;
11771 esac
11772
11773 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11774 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11775 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11776 ;;
11777 cxx*)
11778 # Compaq C++
11779 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11780 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11781
11782 runpath_var=LD_RUN_PATH
11783 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11784 hardcode_libdir_separator_CXX=:
11785
11786 # Commands to make compiler produce verbose output that lists
11787 # what "hidden" libraries, object files and flags are used when
11788 # linking a shared library.
11789 #
11790 # There doesn't appear to be a way to prevent this compiler from
11791 # explicitly linking system object files so we need to strip them
11792 # from the output so that they don't get included in the library
11793 # dependencies.
11794 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
11795 ;;
11796 *)
11797 case `$CC -V 2>&1 | sed 5q` in
11798 *Sun\ C*)
11799 # Sun C++ 5.9
11800 no_undefined_flag_CXX=' -zdefs'
11801 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11802 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11803 hardcode_libdir_flag_spec_CXX='-R$libdir'
11804 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11805 compiler_needs_object_CXX=yes
11806
11807 # Not sure whether something based on
11808 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11809 # would be better.
11810 output_verbose_link_cmd='echo'
11811
11812 # Archives containing C++ object files must be created using
11813 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11814 # necessary to make sure instantiated templates are included
11815 # in the archive.
11816 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11817 ;;
11818 esac
11819 ;;
11820 esac
11821 ;;
11822
11823 lynxos*)
11824 # FIXME: insert proper C++ library support
11825 ld_shlibs_CXX=no
11826 ;;
11827
11828 m88k*)
11829 # FIXME: insert proper C++ library support
11830 ld_shlibs_CXX=no
11831 ;;
11832
11833 mvs*)
11834 case $cc_basename in
11835 cxx*)
11836 # FIXME: insert proper C++ library support
11837 ld_shlibs_CXX=no
11838 ;;
11839 *)
11840 # FIXME: insert proper C++ library support
11841 ld_shlibs_CXX=no
11842 ;;
11843 esac
11844 ;;
11845
11846 netbsd*)
11847 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11848 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11849 wlarc=
11850 hardcode_libdir_flag_spec_CXX='-R$libdir'
11851 hardcode_direct_CXX=yes
11852 hardcode_shlibpath_var_CXX=no
11853 fi
11854 # Workaround some broken pre-1.5 toolchains
11855 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11856 ;;
11857
11858 *nto* | *qnx*)
11859 ld_shlibs_CXX=yes
11860 ;;
11861
11862 openbsd2*)
11863 # C++ shared libraries are fairly broken
11864 ld_shlibs_CXX=no
11865 ;;
11866
11867 openbsd*)
11868 hardcode_direct_CXX=yes
11869 hardcode_shlibpath_var_CXX=no
11870 hardcode_direct_absolute_CXX=yes
11871 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11872 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11873 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11874 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11875 export_dynamic_flag_spec_CXX='${wl}-E'
11876 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11877 fi
11878 output_verbose_link_cmd=echo
11879 ;;
11880
11881 osf3* | osf4* | osf5*)
11882 case $cc_basename in
11883 KCC*)
11884 # Kuck and Associates, Inc. (KAI) C++ Compiler
11885
11886 # KCC will only create a shared library if the output file
11887 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11888 # to its proper name (with version) after linking.
11889 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11890
11891 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11892 hardcode_libdir_separator_CXX=:
11893
11894 # Archives containing C++ object files must be created using
11895 # the KAI C++ compiler.
11896 case $host in
11897 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
11898 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
11899 esac
11900 ;;
11901 RCC*)
11902 # Rational C++ 2.4.1
11903 # FIXME: insert proper C++ library support
11904 ld_shlibs_CXX=no
11905 ;;
11906 cxx*)
11907 case $host in
11908 osf3*)
11909 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11910 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11911 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11912 ;;
11913 *)
11914 allow_undefined_flag_CXX=' -expect_unresolved \*'
11915 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11916 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11917 echo "-hidden">> $lib.exp~
11918 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
11919 $RM $lib.exp'
11920 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11921 ;;
11922 esac
11923
11924 hardcode_libdir_separator_CXX=:
11925
11926 # Commands to make compiler produce verbose output that lists
11927 # what "hidden" libraries, object files and flags are used when
11928 # linking a shared library.
11929 #
11930 # There doesn't appear to be a way to prevent this compiler from
11931 # explicitly linking system object files so we need to strip them
11932 # from the output so that they don't get included in the library
11933 # dependencies.
11934 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
11935 ;;
11936 *)
11937 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11938 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11939 case $host in
11940 osf3*)
11941 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11942 ;;
11943 *)
11944 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11945 ;;
11946 esac
11947
11948 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11949 hardcode_libdir_separator_CXX=:
11950
11951 # Commands to make compiler produce verbose output that lists
11952 # what "hidden" libraries, object files and flags are used when
11953 # linking a shared library.
11954 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11955
11956 else
11957 # FIXME: insert proper C++ library support
11958 ld_shlibs_CXX=no
11959 fi
11960 ;;
11961 esac
11962 ;;
11963
11964 psos*)
11965 # FIXME: insert proper C++ library support
11966 ld_shlibs_CXX=no
11967 ;;
11968
11969 sunos4*)
11970 case $cc_basename in
11971 CC*)
11972 # Sun C++ 4.x
11973 # FIXME: insert proper C++ library support
11974 ld_shlibs_CXX=no
11975 ;;
11976 lcc*)
11977 # Lucid
11978 # FIXME: insert proper C++ library support
11979 ld_shlibs_CXX=no
11980 ;;
11981 *)
11982 # FIXME: insert proper C++ library support
11983 ld_shlibs_CXX=no
11984 ;;
11985 esac
11986 ;;
11987
11988 solaris*)
11989 case $cc_basename in
11990 CC*)
11991 # Sun C++ 4.2, 5.x and Centerline C++
11992 archive_cmds_need_lc_CXX=yes
11993 no_undefined_flag_CXX=' -zdefs'
11994 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11995 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11996 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
11997
11998 hardcode_libdir_flag_spec_CXX='-R$libdir'
11999 hardcode_shlibpath_var_CXX=no
12000 case $host_os in
12001 solaris2.[0-5] | solaris2.[0-5].*) ;;
12002 *)
12003 # The compiler driver will combine and reorder linker options,
12004 # but understands `-z linker_flag'.
12005 # Supported since Solaris 2.6 (maybe 2.5.1?)
12006 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12007 ;;
12008 esac
12009 link_all_deplibs_CXX=yes
12010
12011 output_verbose_link_cmd='echo'
12012
12013 # Archives containing C++ object files must be created using
12014 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12015 # necessary to make sure instantiated templates are included
12016 # in the archive.
12017 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12018 ;;
12019 gcx*)
12020 # Green Hills C++ Compiler
12021 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12022
12023 # The C++ compiler must be used to create the archive.
12024 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12025 ;;
12026 *)
12027 # GNU C++ compiler with Solaris linker
12028 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12029 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12030 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12031 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12032 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12033 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12034
12035 # Commands to make compiler produce verbose output that lists
12036 # what "hidden" libraries, object files and flags are used when
12037 # linking a shared library.
12038 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12039 else
12040 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12041 # platform.
12042 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12043 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12044 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12045
12046 # Commands to make compiler produce verbose output that lists
12047 # what "hidden" libraries, object files and flags are used when
12048 # linking a shared library.
12049 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12050 fi
12051
12052 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12053 case $host_os in
12054 solaris2.[0-5] | solaris2.[0-5].*) ;;
12055 *)
12056 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12057 ;;
12058 esac
12059 fi
12060 ;;
12061 esac
12062 ;;
12063
12064 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12065 no_undefined_flag_CXX='${wl}-z,text'
12066 archive_cmds_need_lc_CXX=no
12067 hardcode_shlibpath_var_CXX=no
12068 runpath_var='LD_RUN_PATH'
12069
12070 case $cc_basename in
12071 CC*)
12072 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12073 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12074 ;;
12075 *)
12076 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12077 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12078 ;;
12079 esac
12080 ;;
12081
12082 sysv5* | sco3.2v5* | sco5v6*)
12083 # Note: We can NOT use -z defs as we might desire, because we do not
12084 # link with -lc, and that would cause any symbols used from libc to
12085 # always be unresolved, which means just about no library would
12086 # ever link correctly. If we're not using GNU ld we use -z text
12087 # though, which does catch some bad symbols but isn't as heavy-handed
12088 # as -z defs.
12089 no_undefined_flag_CXX='${wl}-z,text'
12090 allow_undefined_flag_CXX='${wl}-z,nodefs'
12091 archive_cmds_need_lc_CXX=no
12092 hardcode_shlibpath_var_CXX=no
12093 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12094 hardcode_libdir_separator_CXX=':'
12095 link_all_deplibs_CXX=yes
12096 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12097 runpath_var='LD_RUN_PATH'
12098
12099 case $cc_basename in
12100 CC*)
12101 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12102 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12103 ;;
12104 *)
12105 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12106 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12107 ;;
12108 esac
12109 ;;
12110
12111 tandem*)
12112 case $cc_basename in
12113 NCC*)
12114 # NonStop-UX NCC 3.20
12115 # FIXME: insert proper C++ library support
12116 ld_shlibs_CXX=no
12117 ;;
12118 *)
12119 # FIXME: insert proper C++ library support
12120 ld_shlibs_CXX=no
12121 ;;
12122 esac
12123 ;;
12124
12125 vxworks*)
12126 # FIXME: insert proper C++ library support
12127 ld_shlibs_CXX=no
12128 ;;
12129
12130 *)
12131 # FIXME: insert proper C++ library support
12132 ld_shlibs_CXX=no
12133 ;;
12134 esac
12135
7eed349e
PC
12136 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12137echo "${ECHO_T}$ld_shlibs_CXX" >&6
1cf3d07d
SE
12138 test "$ld_shlibs_CXX" = no && can_build_shared=no
12139
12140 GCC_CXX="$GXX"
12141 LD_CXX="$LD"
12142
12143 ## CAVEAT EMPTOR:
12144 ## There is no encapsulation within the following macros, do not change
12145 ## the running order or otherwise move them around unless you know exactly
12146 ## what you are doing...
12147 # Dependencies to place before and after the object being linked:
12148predep_objects_CXX=
12149postdep_objects_CXX=
12150predeps_CXX=
12151postdeps_CXX=
12152compiler_lib_search_path_CXX=
12153
12154cat > conftest.$ac_ext <<_LT_EOF
12155class Foo
12156{
12157public:
12158 Foo (void) { a = 0; }
12159private:
12160 int a;
12161};
12162_LT_EOF
12163
12164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12165 (eval $ac_compile) 2>&5
12166 ac_status=$?
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }; then
12169 # Parse the compiler output and extract the necessary
12170 # objects, libraries and library flags.
12171
12172 # Sentinel used to keep track of whether or not we are before
12173 # the conftest object file.
12174 pre_test_object_deps_done=no
12175
12176 # The `*' in the case matches for architectures that use `case' in
12177 # $output_verbose_cmd can trigger glob expansion during the loop
12178 # eval without this substitution.
12179 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12180
12181 for p in `eval $output_verbose_link_cmd`; do
12182 case $p in
12183
12184 -L* | -R* | -l*)
12185 # Some compilers place space between "-{L,R}" and the path.
12186 # Remove the space.
12187 if test $p = "-L" ||
12188 test $p = "-R"; then
12189 prev=$p
12190 continue
12191 else
12192 prev=
12193 fi
12194
12195 if test "$pre_test_object_deps_done" = no; then
12196 case $p in
12197 -L* | -R*)
12198 # Internal compiler library paths should come after those
12199 # provided the user. The postdeps already come after the
12200 # user supplied libs so there is no need to process them.
12201 if test -z "$compiler_lib_search_path_CXX"; then
12202 compiler_lib_search_path_CXX="${prev}${p}"
12203 else
12204 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12205 fi
12206 ;;
12207 # The "-l" case would never come before the object being
12208 # linked, so don't bother handling this case.
12209 esac
12210 else
12211 if test -z "$postdeps_CXX"; then
12212 postdeps_CXX="${prev}${p}"
12213 else
12214 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12215 fi
12216 fi
12217 ;;
12218
12219 *.$objext)
12220 # This assumes that the test object file only shows up
12221 # once in the compiler output.
12222 if test "$p" = "conftest.$objext"; then
12223 pre_test_object_deps_done=yes
12224 continue
12225 fi
12226
12227 if test "$pre_test_object_deps_done" = no; then
12228 if test -z "$predep_objects_CXX"; then
12229 predep_objects_CXX="$p"
12230 else
12231 predep_objects_CXX="$predep_objects_CXX $p"
12232 fi
12233 else
12234 if test -z "$postdep_objects_CXX"; then
12235 postdep_objects_CXX="$p"
12236 else
12237 postdep_objects_CXX="$postdep_objects_CXX $p"
12238 fi
12239 fi
12240 ;;
12241
12242 *) ;; # Ignore the rest.
12243
12244 esac
12245 done
12246
12247 # Clean up.
12248 rm -f a.out a.exe
12249else
12250 echo "libtool.m4: error: problem compiling CXX test program"
12251fi
12252
12253$RM -f confest.$objext
12254
12255# PORTME: override above test on systems where it is broken
12256case $host_os in
12257interix[3-9]*)
12258 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12259 # hack all around it, let's just trust "g++" to DTRT.
12260 predep_objects_CXX=
12261 postdep_objects_CXX=
12262 postdeps_CXX=
12263 ;;
12264
12265linux*)
12266 case `$CC -V 2>&1 | sed 5q` in
12267 *Sun\ C*)
12268 # Sun C++ 5.9
12269
12270 # The more standards-conforming stlport4 library is
12271 # incompatible with the Cstd library. Avoid specifying
12272 # it if it's in CXXFLAGS. Ignore libCrun as
12273 # -library=stlport4 depends on it.
12274 case " $CXX $CXXFLAGS " in
12275 *" -library=stlport4 "*)
12276 solaris_use_stlport4=yes
12277 ;;
12278 esac
12279
12280 if test "$solaris_use_stlport4" != yes; then
12281 postdeps_CXX='-library=Cstd -library=Crun'
12282 fi
12283 ;;
12284 esac
12285 ;;
12286
12287solaris*)
12288 case $cc_basename in
12289 CC*)
12290 # The more standards-conforming stlport4 library is
12291 # incompatible with the Cstd library. Avoid specifying
12292 # it if it's in CXXFLAGS. Ignore libCrun as
12293 # -library=stlport4 depends on it.
12294 case " $CXX $CXXFLAGS " in
12295 *" -library=stlport4 "*)
12296 solaris_use_stlport4=yes
12297 ;;
12298 esac
12299
12300 # Adding this requires a known-good setup of shared libraries for
12301 # Sun compiler versions before 5.6, else PIC objects from an old
12302 # archive will be linked into the output, leading to subtle bugs.
12303 if test "$solaris_use_stlport4" != yes; then
12304 postdeps_CXX='-library=Cstd -library=Crun'
12305 fi
12306 ;;
12307 esac
12308 ;;
12309esac
12310
12311
12312case " $postdeps_CXX " in
12313*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12314esac
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341 lt_prog_compiler_wl_CXX=
12342lt_prog_compiler_pic_CXX=
12343lt_prog_compiler_static_CXX=
12344
7eed349e
PC
12345echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12346echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
1cf3d07d
SE
12347
12348 # C++ specific cases for pic, static, wl, etc.
12349 if test "$GXX" = yes; then
12350 lt_prog_compiler_wl_CXX='-Wl,'
12351 lt_prog_compiler_static_CXX='-static'
12352
12353 case $host_os in
12354 aix*)
12355 # All AIX code is PIC.
12356 if test "$host_cpu" = ia64; then
12357 # AIX 5 now supports IA64 processor
12358 lt_prog_compiler_static_CXX='-Bstatic'
12359 fi
12360 ;;
12361 amigaos*)
12362 if test "$host_cpu" = m68k; then
12363 # FIXME: we need at least 68020 code to build shared libraries, but
12364 # adding the `-m68020' flag to GCC prevents building anything better,
12365 # like `-m68040'.
12366 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12367 fi
12368 ;;
12369 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12370 # PIC is the default for these OSes.
12371 ;;
12372 mingw* | cygwin* | os2* | pw32*)
12373 # This hack is so that the source file can tell whether it is being
12374 # built for inclusion in a dll (and should export symbols for example).
12375 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12376 # (--disable-auto-import) libraries
12377 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12378 ;;
12379 darwin* | rhapsody*)
12380 # PIC is the default on this platform
12381 # Common symbols not allowed in MH_DYLIB files
12382 lt_prog_compiler_pic_CXX='-fno-common'
12383 ;;
12384 *djgpp*)
12385 # DJGPP does not support shared libraries at all
12386 lt_prog_compiler_pic_CXX=
12387 ;;
12388 interix[3-9]*)
12389 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12390 # Instead, we relocate shared libraries at runtime.
12391 ;;
12392 sysv4*MP*)
12393 if test -d /usr/nec; then
12394 lt_prog_compiler_pic_CXX=-Kconform_pic
12395 fi
12396 ;;
12397 hpux*)
12398 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12399 # not for PA HP-UX.
12400 case $host_cpu in
12401 hppa*64*|ia64*)
12402 ;;
12403 *)
12404 lt_prog_compiler_pic_CXX='-fPIC'
12405 ;;
12406 esac
12407 ;;
12408 *qnx* | *nto*)
12409 # QNX uses GNU C++, but need to define -shared option too, otherwise
12410 # it will coredump.
12411 lt_prog_compiler_pic_CXX='-fPIC -shared'
12412 ;;
12413 *)
12414 lt_prog_compiler_pic_CXX='-fPIC'
12415 ;;
12416 esac
12417 else
12418 case $host_os in
716e4bc6 12419 aix[4-9]*)
1cf3d07d
SE
12420 # All AIX code is PIC.
12421 if test "$host_cpu" = ia64; then
12422 # AIX 5 now supports IA64 processor
12423 lt_prog_compiler_static_CXX='-Bstatic'
12424 else
12425 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12426 fi
12427 ;;
12428 chorus*)
12429 case $cc_basename in
12430 cxch68*)
12431 # Green Hills C++ Compiler
12432 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12433 ;;
12434 esac
12435 ;;
12436 darwin*)
12437 # PIC is the default on this platform
12438 # Common symbols not allowed in MH_DYLIB files
12439 case $cc_basename in
12440 xlc*)
12441 lt_prog_compiler_pic_CXX='-qnocommon'
12442 lt_prog_compiler_wl_CXX='-Wl,'
12443 ;;
12444 esac
12445 ;;
12446 dgux*)
12447 case $cc_basename in
12448 ec++*)
12449 lt_prog_compiler_pic_CXX='-KPIC'
12450 ;;
12451 ghcx*)
12452 # Green Hills C++ Compiler
12453 lt_prog_compiler_pic_CXX='-pic'
12454 ;;
12455 *)
12456 ;;
12457 esac
12458 ;;
12459 freebsd* | dragonfly*)
12460 # FreeBSD uses GNU C++
12461 ;;
12462 hpux9* | hpux10* | hpux11*)
12463 case $cc_basename in
12464 CC*)
12465 lt_prog_compiler_wl_CXX='-Wl,'
12466 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12467 if test "$host_cpu" != ia64; then
12468 lt_prog_compiler_pic_CXX='+Z'
12469 fi
12470 ;;
12471 aCC*)
12472 lt_prog_compiler_wl_CXX='-Wl,'
12473 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12474 case $host_cpu in
12475 hppa*64*|ia64*)
12476 # +Z the default
12477 ;;
12478 *)
12479 lt_prog_compiler_pic_CXX='+Z'
12480 ;;
12481 esac
12482 ;;
12483 *)
12484 ;;
12485 esac
12486 ;;
12487 interix*)
12488 # This is c89, which is MS Visual C++ (no shared libs)
12489 # Anyone wants to do a port?
12490 ;;
12491 irix5* | irix6* | nonstopux*)
12492 case $cc_basename in
12493 CC*)
12494 lt_prog_compiler_wl_CXX='-Wl,'
12495 lt_prog_compiler_static_CXX='-non_shared'
12496 # CC pic flag -KPIC is the default.
12497 ;;
12498 *)
12499 ;;
12500 esac
12501 ;;
12502 linux* | k*bsd*-gnu)
12503 case $cc_basename in
12504 KCC*)
12505 # KAI C++ Compiler
12506 lt_prog_compiler_wl_CXX='--backend -Wl,'
12507 lt_prog_compiler_pic_CXX='-fPIC'
12508 ;;
12509 icpc* | ecpc* )
12510 # Intel C++
12511 lt_prog_compiler_wl_CXX='-Wl,'
12512 lt_prog_compiler_pic_CXX='-KPIC'
12513 lt_prog_compiler_static_CXX='-static'
12514 ;;
12515 pgCC*)
12516 # Portland Group C++ compiler
12517 lt_prog_compiler_wl_CXX='-Wl,'
12518 lt_prog_compiler_pic_CXX='-fpic'
12519 lt_prog_compiler_static_CXX='-Bstatic'
12520 ;;
12521 cxx*)
12522 # Compaq C++
12523 # Make sure the PIC flag is empty. It appears that all Alpha
12524 # Linux and Compaq Tru64 Unix objects are PIC.
12525 lt_prog_compiler_pic_CXX=
12526 lt_prog_compiler_static_CXX='-non_shared'
12527 ;;
12528 *)
12529 case `$CC -V 2>&1 | sed 5q` in
12530 *Sun\ C*)
12531 # Sun C++ 5.9
12532 lt_prog_compiler_pic_CXX='-KPIC'
12533 lt_prog_compiler_static_CXX='-Bstatic'
12534 lt_prog_compiler_wl_CXX='-Qoption ld '
12535 ;;
12536 esac
12537 ;;
12538 esac
12539 ;;
12540 lynxos*)
12541 ;;
12542 m88k*)
12543 ;;
12544 mvs*)
12545 case $cc_basename in
12546 cxx*)
12547 lt_prog_compiler_pic_CXX='-W c,exportall'
12548 ;;
12549 *)
12550 ;;
12551 esac
12552 ;;
12553 netbsd*)
12554 ;;
12555 *qnx* | *nto*)
12556 # QNX uses GNU C++, but need to define -shared option too, otherwise
12557 # it will coredump.
12558 lt_prog_compiler_pic_CXX='-fPIC -shared'
12559 ;;
12560 osf3* | osf4* | osf5*)
12561 case $cc_basename in
12562 KCC*)
12563 lt_prog_compiler_wl_CXX='--backend -Wl,'
12564 ;;
12565 RCC*)
12566 # Rational C++ 2.4.1
12567 lt_prog_compiler_pic_CXX='-pic'
12568 ;;
12569 cxx*)
12570 # Digital/Compaq C++
12571 lt_prog_compiler_wl_CXX='-Wl,'
12572 # Make sure the PIC flag is empty. It appears that all Alpha
12573 # Linux and Compaq Tru64 Unix objects are PIC.
12574 lt_prog_compiler_pic_CXX=
12575 lt_prog_compiler_static_CXX='-non_shared'
12576 ;;
12577 *)
12578 ;;
12579 esac
12580 ;;
12581 psos*)
12582 ;;
12583 solaris*)
12584 case $cc_basename in
12585 CC*)
12586 # Sun C++ 4.2, 5.x and Centerline C++
12587 lt_prog_compiler_pic_CXX='-KPIC'
12588 lt_prog_compiler_static_CXX='-Bstatic'
12589 lt_prog_compiler_wl_CXX='-Qoption ld '
12590 ;;
12591 gcx*)
12592 # Green Hills C++ Compiler
12593 lt_prog_compiler_pic_CXX='-PIC'
12594 ;;
12595 *)
12596 ;;
12597 esac
12598 ;;
12599 sunos4*)
12600 case $cc_basename in
12601 CC*)
12602 # Sun C++ 4.x
12603 lt_prog_compiler_pic_CXX='-pic'
12604 lt_prog_compiler_static_CXX='-Bstatic'
12605 ;;
12606 lcc*)
12607 # Lucid
12608 lt_prog_compiler_pic_CXX='-pic'
12609 ;;
12610 *)
12611 ;;
12612 esac
12613 ;;
12614 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12615 case $cc_basename in
12616 CC*)
12617 lt_prog_compiler_wl_CXX='-Wl,'
12618 lt_prog_compiler_pic_CXX='-KPIC'
12619 lt_prog_compiler_static_CXX='-Bstatic'
12620 ;;
12621 esac
12622 ;;
12623 tandem*)
12624 case $cc_basename in
12625 NCC*)
12626 # NonStop-UX NCC 3.20
12627 lt_prog_compiler_pic_CXX='-KPIC'
12628 ;;
12629 *)
12630 ;;
12631 esac
12632 ;;
12633 vxworks*)
12634 ;;
12635 *)
12636 lt_prog_compiler_can_build_shared_CXX=no
12637 ;;
12638 esac
12639 fi
12640
12641case $host_os in
12642 # For platforms which do not support PIC, -DPIC is meaningless:
12643 *djgpp*)
12644 lt_prog_compiler_pic_CXX=
12645 ;;
12646 *)
12647 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12648 ;;
12649esac
7eed349e
PC
12650echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12651echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
1cf3d07d
SE
12652
12653
12654
12655#
12656# Check to make sure the PIC flag actually works.
12657#
12658if test -n "$lt_prog_compiler_pic_CXX"; then
7eed349e
PC
12659 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12660echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
1cf3d07d
SE
12661if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12662 echo $ECHO_N "(cached) $ECHO_C" >&6
12663else
12664 lt_prog_compiler_pic_works_CXX=no
12665 ac_outfile=conftest.$ac_objext
12666 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12667 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12668 # Insert the option either (1) after the last *FLAGS variable, or
12669 # (2) before a word containing "conftest.", or (3) at the end.
12670 # Note that $ac_compile itself does not contain backslashes and begins
12671 # with a dollar sign (not a hyphen), so the echo should work correctly.
12672 # The option is referenced via a variable to avoid confusing sed.
12673 lt_compile=`echo "$ac_compile" | $SED \
12674 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12675 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12676 -e 's:$: $lt_compiler_flag:'`
727cd0bc 12677 (eval echo "\"\$as_me:12677: $lt_compile\"" >&5)
1cf3d07d
SE
12678 (eval "$lt_compile" 2>conftest.err)
12679 ac_status=$?
12680 cat conftest.err >&5
727cd0bc 12681 echo "$as_me:12681: \$? = $ac_status" >&5
1cf3d07d
SE
12682 if (exit $ac_status) && test -s "$ac_outfile"; then
12683 # The compiler can only warn and ignore the option if not recognized
12684 # So say no if there are warnings other than the usual output.
12685 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12686 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12687 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12688 lt_prog_compiler_pic_works_CXX=yes
12689 fi
12690 fi
12691 $RM conftest*
12692
12693fi
7eed349e
PC
12694echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12695echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
1cf3d07d
SE
12696
12697if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12698 case $lt_prog_compiler_pic_CXX in
12699 "" | " "*) ;;
12700 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12701 esac
12702else
12703 lt_prog_compiler_pic_CXX=
12704 lt_prog_compiler_can_build_shared_CXX=no
12705fi
12706
12707fi
12708
12709
12710
12711#
12712# Check to make sure the static flag actually works.
12713#
12714wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
7eed349e
PC
12715echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12716echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
1cf3d07d
SE
12717if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12718 echo $ECHO_N "(cached) $ECHO_C" >&6
12719else
12720 lt_prog_compiler_static_works_CXX=no
12721 save_LDFLAGS="$LDFLAGS"
12722 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12723 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12724 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12725 # The linker can only warn and ignore the option if not recognized
12726 # So say no if there are warnings
12727 if test -s conftest.err; then
12728 # Append any errors to the config.log.
12729 cat conftest.err 1>&5
12730 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12732 if diff conftest.exp conftest.er2 >/dev/null; then
12733 lt_prog_compiler_static_works_CXX=yes
12734 fi
12735 else
12736 lt_prog_compiler_static_works_CXX=yes
12737 fi
12738 fi
12739 $RM conftest*
12740 LDFLAGS="$save_LDFLAGS"
12741
12742fi
7eed349e
PC
12743echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12744echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
1cf3d07d
SE
12745
12746if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12747 :
12748else
12749 lt_prog_compiler_static_CXX=
12750fi
12751
12752
12753
12754
7eed349e
PC
12755 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12756echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
1cf3d07d
SE
12757if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12758 echo $ECHO_N "(cached) $ECHO_C" >&6
12759else
12760 lt_cv_prog_compiler_c_o_CXX=no
12761 $RM -r conftest 2>/dev/null
12762 mkdir conftest
12763 cd conftest
12764 mkdir out
12765 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12766
12767 lt_compiler_flag="-o out/conftest2.$ac_objext"
12768 # Insert the option either (1) after the last *FLAGS variable, or
12769 # (2) before a word containing "conftest.", or (3) at the end.
12770 # Note that $ac_compile itself does not contain backslashes and begins
12771 # with a dollar sign (not a hyphen), so the echo should work correctly.
12772 lt_compile=`echo "$ac_compile" | $SED \
12773 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12774 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12775 -e 's:$: $lt_compiler_flag:'`
727cd0bc 12776 (eval echo "\"\$as_me:12776: $lt_compile\"" >&5)
1cf3d07d
SE
12777 (eval "$lt_compile" 2>out/conftest.err)
12778 ac_status=$?
12779 cat out/conftest.err >&5
727cd0bc 12780 echo "$as_me:12780: \$? = $ac_status" >&5
1cf3d07d
SE
12781 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12782 then
12783 # The compiler can only warn and ignore the option if not recognized
12784 # So say no if there are warnings
12785 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12786 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12787 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12788 lt_cv_prog_compiler_c_o_CXX=yes
12789 fi
12790 fi
12791 chmod u+w . 2>&5
12792 $RM conftest*
12793 # SGI C++ compiler will create directory out/ii_files/ for
12794 # template instantiation
12795 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12796 $RM out/* && rmdir out
12797 cd ..
12798 $RM -r conftest
12799 $RM conftest*
12800
12801fi
7eed349e
PC
12802echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12803echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
1cf3d07d
SE
12804
12805
12806
7eed349e
PC
12807 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12808echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
1cf3d07d
SE
12809if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12810 echo $ECHO_N "(cached) $ECHO_C" >&6
12811else
12812 lt_cv_prog_compiler_c_o_CXX=no
12813 $RM -r conftest 2>/dev/null
12814 mkdir conftest
12815 cd conftest
12816 mkdir out
12817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12818
12819 lt_compiler_flag="-o out/conftest2.$ac_objext"
12820 # Insert the option either (1) after the last *FLAGS variable, or
12821 # (2) before a word containing "conftest.", or (3) at the end.
12822 # Note that $ac_compile itself does not contain backslashes and begins
12823 # with a dollar sign (not a hyphen), so the echo should work correctly.
12824 lt_compile=`echo "$ac_compile" | $SED \
12825 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12827 -e 's:$: $lt_compiler_flag:'`
727cd0bc 12828 (eval echo "\"\$as_me:12828: $lt_compile\"" >&5)
1cf3d07d
SE
12829 (eval "$lt_compile" 2>out/conftest.err)
12830 ac_status=$?
12831 cat out/conftest.err >&5
727cd0bc 12832 echo "$as_me:12832: \$? = $ac_status" >&5
1cf3d07d
SE
12833 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12834 then
12835 # The compiler can only warn and ignore the option if not recognized
12836 # So say no if there are warnings
12837 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12838 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12839 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12840 lt_cv_prog_compiler_c_o_CXX=yes
12841 fi
12842 fi
12843 chmod u+w . 2>&5
12844 $RM conftest*
12845 # SGI C++ compiler will create directory out/ii_files/ for
12846 # template instantiation
12847 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12848 $RM out/* && rmdir out
12849 cd ..
12850 $RM -r conftest
12851 $RM conftest*
12852
12853fi
7eed349e
PC
12854echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12855echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
1cf3d07d
SE
12856
12857
12858
12859
12860hard_links="nottested"
12861if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12862 # do not overwrite the value of need_locks provided by the user
7eed349e
PC
12863 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12864echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
1cf3d07d
SE
12865 hard_links=yes
12866 $RM conftest*
12867 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12868 touch conftest.a
12869 ln conftest.a conftest.b 2>&5 || hard_links=no
12870 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7eed349e
PC
12871 echo "$as_me:$LINENO: result: $hard_links" >&5
12872echo "${ECHO_T}$hard_links" >&6
1cf3d07d
SE
12873 if test "$hard_links" = no; then
12874 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12875echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12876 need_locks=warn
12877 fi
12878else
12879 need_locks=no
12880fi
12881
12882
12883
7eed349e
PC
12884 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12885echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1cf3d07d
SE
12886
12887 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12888 case $host_os in
716e4bc6 12889 aix[4-9]*)
1cf3d07d
SE
12890 # If we're using GNU nm, then we don't want the "-C" option.
12891 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12892 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12893 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12894 else
12895 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12896 fi
12897 ;;
12898 pw32*)
12899 export_symbols_cmds_CXX="$ltdll_cmds"
12900 ;;
12901 cygwin* | mingw*)
12902 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
12903 ;;
12904 *)
12905 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12906 ;;
12907 esac
12908
7eed349e
PC
12909echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12910echo "${ECHO_T}$ld_shlibs_CXX" >&6
1cf3d07d
SE
12911test "$ld_shlibs_CXX" = no && can_build_shared=no
12912
12913with_gnu_ld_CXX=$with_gnu_ld
12914
12915
12916
12917
12918
12919
12920#
12921# Do we need to explicitly link libc?
12922#
12923case "x$archive_cmds_need_lc_CXX" in
12924x|xyes)
12925 # Assume -lc should be added
12926 archive_cmds_need_lc_CXX=yes
12927
12928 if test "$enable_shared" = yes && test "$GCC" = yes; then
12929 case $archive_cmds_CXX in
12930 *'~'*)
12931 # FIXME: we may have to deal with multi-command sequences.
12932 ;;
12933 '$CC '*)
12934 # Test whether the compiler implicitly links with -lc since on some
12935 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12936 # to ld, don't add -lc before -lgcc.
7eed349e
PC
12937 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12938echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
1cf3d07d
SE
12939 $RM conftest*
12940 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12941
12942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12943 (eval $ac_compile) 2>&5
12944 ac_status=$?
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); } 2>conftest.err; then
12947 soname=conftest
12948 lib=conftest
12949 libobjs=conftest.$ac_objext
12950 deplibs=
12951 wl=$lt_prog_compiler_wl_CXX
12952 pic_flag=$lt_prog_compiler_pic_CXX
12953 compiler_flags=-v
12954 linker_flags=-v
12955 verstring=
12956 output_objdir=.
12957 libname=conftest
12958 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12959 allow_undefined_flag_CXX=
12960 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
12961 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12962 ac_status=$?
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }
12965 then
12966 archive_cmds_need_lc_CXX=no
12967 else
12968 archive_cmds_need_lc_CXX=yes
12969 fi
12970 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12971 else
12972 cat conftest.err 1>&5
12973 fi
12974 $RM conftest*
7eed349e
PC
12975 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12976echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
1cf3d07d
SE
12977 ;;
12978 esac
12979 fi
12980 ;;
12981esac
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
7eed349e
PC
13046 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13047echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
1cf3d07d
SE
13048withGCC=$GXX
13049library_names_spec=
13050libname_spec='lib$name'
13051soname_spec=
13052shrext_cmds=".so"
13053postinstall_cmds=
13054postuninstall_cmds=
13055finish_cmds=
13056finish_eval=
13057shlibpath_var=
13058shlibpath_overrides_runpath=unknown
13059version_type=none
13060dynamic_linker="$host_os ld.so"
13061sys_lib_dlsearch_path_spec="/lib /usr/lib"
13062need_lib_prefix=unknown
13063hardcode_into_libs=no
13064
13065# when you set need_version to no, make sure it does not cause -set_version
13066# flags to be left without arguments
13067need_version=unknown
13068
13069case $host_os in
13070aix3*)
13071 version_type=linux
13072 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13073 shlibpath_var=LIBPATH
13074
13075 # AIX 3 has no versioning support, so we append a major version to the name.
13076 soname_spec='${libname}${release}${shared_ext}$major'
13077 ;;
13078
716e4bc6 13079aix[4-9]*)
1cf3d07d
SE
13080 version_type=linux
13081 need_lib_prefix=no
13082 need_version=no
13083 hardcode_into_libs=yes
13084 if test "$host_cpu" = ia64; then
13085 # AIX 5 supports IA64
13086 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13087 shlibpath_var=LD_LIBRARY_PATH
13088 else
13089 # With GCC up to 2.95.x, collect2 would create an import file
13090 # for dependence libraries. The import file would start with
13091 # the line `#! .'. This would cause the generated library to
13092 # depend on `.', always an invalid library. This was fixed in
13093 # development snapshots of GCC prior to 3.0.
13094 case $host_os in
13095 aix4 | aix4.[01] | aix4.[01].*)
13096 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13097 echo ' yes '
13098 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13099 :
13100 else
13101 can_build_shared=no
13102 fi
13103 ;;
13104 esac
13105 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13106 # soname into executable. Probably we can add versioning support to
13107 # collect2, so additional links can be useful in future.
13108 if test "$aix_use_runtimelinking" = yes; then
13109 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13110 # instead of lib<name>.a to let people know that these are not
13111 # typical AIX shared libraries.
13112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13113 else
13114 # We preserve .a as extension for shared libraries through AIX4.2
13115 # and later when we are not doing run time linking.
13116 library_names_spec='${libname}${release}.a $libname.a'
13117 soname_spec='${libname}${release}${shared_ext}$major'
13118 fi
13119 shlibpath_var=LIBPATH
13120 fi
13121 ;;
13122
13123amigaos*)
13124 if test "$host_cpu" = m68k; then
13125 library_names_spec='$libname.ixlibrary $libname.a'
13126 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13127 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13128 else
13129 dynamic_linker=no
13130 fi
13131 ;;
13132
13133beos*)
13134 library_names_spec='${libname}${shared_ext}'
13135 dynamic_linker="$host_os ld.so"
13136 shlibpath_var=LIBRARY_PATH
13137 ;;
13138
13139bsdi[45]*)
13140 version_type=linux
13141 need_version=no
13142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13143 soname_spec='${libname}${release}${shared_ext}$major'
13144 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13145 shlibpath_var=LD_LIBRARY_PATH
13146 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13147 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13148 # the default ld.so.conf also contains /usr/contrib/lib and
13149 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13150 # libtool to hard-code these into programs
13151 ;;
13152
13153cygwin* | mingw* | pw32*)
13154 version_type=windows
13155 shrext_cmds=".dll"
13156 need_version=no
13157 need_lib_prefix=no
13158
13159 case $withGCC,$host_os in
13160 yes,cygwin* | yes,mingw* | yes,pw32*)
13161 library_names_spec='$libname.dll.a'
13162 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13163 postinstall_cmds='base_file=`basename \${file}`~
13164 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13165 dldir=$destdir/`dirname \$dlpath`~
13166 test -d \$dldir || mkdir -p \$dldir~
13167 $install_prog $dir/$dlname \$dldir/$dlname~
13168 chmod a+x \$dldir/$dlname~
13169 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13170 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13171 fi'
13172 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13173 dlpath=$dir/\$dldll~
13174 $RM \$dlpath'
13175 shlibpath_overrides_runpath=yes
13176
13177 case $host_os in
13178 cygwin*)
13179 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13180 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13181 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13182 ;;
13183 mingw*)
13184 # MinGW DLLs use traditional 'lib' prefix
13185 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13186 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13187 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13188 # It is most probably a Windows format PATH printed by
13189 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13190 # path with ; separators, and with drive letters. We can handle the
13191 # drive letters (cygwin fileutils understands them), so leave them,
13192 # especially as we might pass files found there to a mingw objdump,
13193 # which wouldn't understand a cygwinified path. Ahh.
13194 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13195 else
13196 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13197 fi
13198 ;;
13199 pw32*)
13200 # pw32 DLLs use 'pw' prefix rather than 'lib'
13201 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13202 ;;
13203 esac
13204 ;;
13205
13206 *)
13207 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13208 ;;
13209 esac
13210 dynamic_linker='Win32 ld.exe'
13211 # FIXME: first we should search . and the directory the executable is in
13212 shlibpath_var=PATH
13213 ;;
13214
13215darwin* | rhapsody*)
13216 dynamic_linker="$host_os dyld"
13217 version_type=darwin
13218 need_lib_prefix=no
13219 need_version=no
13220 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13221 soname_spec='${libname}${release}${major}$shared_ext'
13222 shlibpath_overrides_runpath=yes
13223 shlibpath_var=DYLD_LIBRARY_PATH
13224 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13225
13226 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13227 ;;
13228
13229dgux*)
13230 version_type=linux
13231 need_lib_prefix=no
13232 need_version=no
13233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13234 soname_spec='${libname}${release}${shared_ext}$major'
13235 shlibpath_var=LD_LIBRARY_PATH
13236 ;;
13237
13238freebsd1*)
13239 dynamic_linker=no
13240 ;;
13241
13242freebsd* | dragonfly*)
13243 # DragonFly does not have aout. When/if they implement a new
13244 # versioning mechanism, adjust this.
13245 if test -x /usr/bin/objformat; then
13246 objformat=`/usr/bin/objformat`
13247 else
13248 case $host_os in
13249 freebsd[123]*) objformat=aout ;;
13250 *) objformat=elf ;;
13251 esac
13252 fi
13253 version_type=freebsd-$objformat
13254 case $version_type in
13255 freebsd-elf*)
13256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13257 need_version=no
13258 need_lib_prefix=no
13259 ;;
13260 freebsd-*)
13261 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13262 need_version=yes
13263 ;;
13264 esac
13265 shlibpath_var=LD_LIBRARY_PATH
13266 case $host_os in
13267 freebsd2*)
13268 shlibpath_overrides_runpath=yes
13269 ;;
13270 freebsd3.[01]* | freebsdelf3.[01]*)
13271 shlibpath_overrides_runpath=yes
13272 hardcode_into_libs=yes
13273 ;;
13274 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13275 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13276 shlibpath_overrides_runpath=no
13277 hardcode_into_libs=yes
13278 ;;
13279 *) # from 4.6 on, and DragonFly
13280 shlibpath_overrides_runpath=yes
13281 hardcode_into_libs=yes
13282 ;;
13283 esac
13284 ;;
13285
13286gnu*)
13287 version_type=linux
13288 need_lib_prefix=no
13289 need_version=no
13290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13291 soname_spec='${libname}${release}${shared_ext}$major'
13292 shlibpath_var=LD_LIBRARY_PATH
13293 hardcode_into_libs=yes
13294 ;;
13295
13296hpux9* | hpux10* | hpux11*)
13297 # Give a soname corresponding to the major version so that dld.sl refuses to
13298 # link against other versions.
13299 version_type=sunos
13300 need_lib_prefix=no
13301 need_version=no
13302 case $host_cpu in
13303 ia64*)
13304 shrext_cmds='.so'
13305 hardcode_into_libs=yes
13306 dynamic_linker="$host_os dld.so"
13307 shlibpath_var=LD_LIBRARY_PATH
13308 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13310 soname_spec='${libname}${release}${shared_ext}$major'
13311 if test "X$HPUX_IA64_MODE" = X32; then
13312 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13313 else
13314 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13315 fi
13316 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13317 ;;
13318 hppa*64*)
13319 shrext_cmds='.sl'
13320 hardcode_into_libs=yes
13321 dynamic_linker="$host_os dld.sl"
13322 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13325 soname_spec='${libname}${release}${shared_ext}$major'
13326 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13327 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13328 ;;
13329 *)
13330 shrext_cmds='.sl'
13331 dynamic_linker="$host_os dld.sl"
13332 shlibpath_var=SHLIB_PATH
13333 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13335 soname_spec='${libname}${release}${shared_ext}$major'
13336 ;;
13337 esac
13338 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13339 postinstall_cmds='chmod 555 $lib'
13340 ;;
13341
13342interix[3-9]*)
13343 version_type=linux
13344 need_lib_prefix=no
13345 need_version=no
13346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13347 soname_spec='${libname}${release}${shared_ext}$major'
13348 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13349 shlibpath_var=LD_LIBRARY_PATH
13350 shlibpath_overrides_runpath=no
13351 hardcode_into_libs=yes
13352 ;;
13353
13354irix5* | irix6* | nonstopux*)
13355 case $host_os in
13356 nonstopux*) version_type=nonstopux ;;
13357 *)
13358 if test "$lt_cv_prog_gnu_ld" = yes; then
13359 version_type=linux
13360 else
13361 version_type=irix
13362 fi ;;
13363 esac
13364 need_lib_prefix=no
13365 need_version=no
13366 soname_spec='${libname}${release}${shared_ext}$major'
13367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13368 case $host_os in
13369 irix5* | nonstopux*)
13370 libsuff= shlibsuff=
13371 ;;
13372 *)
13373 case $LD in # libtool.m4 will add one of these switches to LD
13374 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13375 libsuff= shlibsuff= libmagic=32-bit;;
13376 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13377 libsuff=32 shlibsuff=N32 libmagic=N32;;
13378 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13379 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13380 *) libsuff= shlibsuff= libmagic=never-match;;
13381 esac
13382 ;;
13383 esac
13384 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13385 shlibpath_overrides_runpath=no
13386 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13387 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13388 hardcode_into_libs=yes
13389 ;;
13390
13391# No shared lib support for Linux oldld, aout, or coff.
13392linux*oldld* | linux*aout* | linux*coff*)
13393 dynamic_linker=no
13394 ;;
13395
13396# This must be Linux ELF.
13397linux* | k*bsd*-gnu)
13398 version_type=linux
13399 need_lib_prefix=no
13400 need_version=no
13401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13402 soname_spec='${libname}${release}${shared_ext}$major'
13403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13404 shlibpath_var=LD_LIBRARY_PATH
13405 shlibpath_overrides_runpath=no
13406 # Some binutils ld are patched to set DT_RUNPATH
13407 save_LDFLAGS=$LDFLAGS
13408 save_libdir=$libdir
13409 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13410 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13411 if test x$gcc_no_link = xyes; then
13412 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13413echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13414 { (exit 1); exit 1; }; }
ff66d28f 13415fi
1cf3d07d 13416cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
13417/* confdefs.h. */
13418_ACEOF
13419cat confdefs.h >>conftest.$ac_ext
13420cat >>conftest.$ac_ext <<_ACEOF
13421/* end confdefs.h. */
1cf3d07d
SE
13422
13423int
13424main ()
13425{
13426
13427 ;
13428 return 0;
13429}
ff66d28f 13430_ACEOF
1cf3d07d 13431rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
13432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13433 (eval $ac_link) 2>conftest.er1
ff66d28f
PE
13434 ac_status=$?
13435 grep -v '^ *+' conftest.er1 >conftest.err
13436 rm -f conftest.er1
13437 cat conftest.err >&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
13439 (exit $ac_status); } &&
13440 { ac_try='test -z "$ac_cxx_werror_flag"
13441 || test ! -s conftest.err'
13442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13443 (eval $ac_try) 2>&5
13444 ac_status=$?
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); }; } &&
13447 { ac_try='test -s conftest$ac_exeext'
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13450 ac_status=$?
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; }; then
1cf3d07d
SE
13453 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
13454 shlibpath_overrides_runpath=yes
ff66d28f 13455fi
1cf3d07d 13456
ff66d28f
PE
13457else
13458 echo "$as_me: failed program was:" >&5
13459sed 's/^/| /' conftest.$ac_ext >&5
13460
ff66d28f 13461fi
7eed349e 13462rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
13463 conftest$ac_exeext conftest.$ac_ext
13464 LDFLAGS=$save_LDFLAGS
13465 libdir=$save_libdir
13466
13467 # This implies no fast_install, which is unacceptable.
13468 # Some rework will be needed to allow for fast_install
13469 # before this can be enabled.
13470 hardcode_into_libs=yes
13471
13472 # Append ld.so.conf contents to the search path
13473 if test -f /etc/ld.so.conf; then
13474 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13475 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13476 fi
13477
13478 # We used to test for /lib/ld.so.1 and disable shared libraries on
13479 # powerpc, because MkLinux only supported shared libraries with the
13480 # GNU dynamic linker. Since this was broken with cross compilers,
13481 # most powerpc-linux boxes support dynamic linking these days and
13482 # people can always --disable-shared, the test was removed, and we
13483 # assume the GNU/Linux dynamic linker is in use.
13484 dynamic_linker='GNU/Linux ld.so'
13485 ;;
ff66d28f 13486
1cf3d07d
SE
13487netbsd*)
13488 version_type=sunos
13489 need_lib_prefix=no
13490 need_version=no
13491 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13494 dynamic_linker='NetBSD (a.out) ld.so'
13495 else
13496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13497 soname_spec='${libname}${release}${shared_ext}$major'
13498 dynamic_linker='NetBSD ld.elf_so'
13499 fi
13500 shlibpath_var=LD_LIBRARY_PATH
13501 shlibpath_overrides_runpath=yes
13502 hardcode_into_libs=yes
13503 ;;
ff66d28f 13504
1cf3d07d
SE
13505newsos6)
13506 version_type=linux
13507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13508 shlibpath_var=LD_LIBRARY_PATH
13509 shlibpath_overrides_runpath=yes
13510 ;;
ff66d28f 13511
1cf3d07d
SE
13512*nto* | *qnx*)
13513 version_type=qnx
13514 need_lib_prefix=no
13515 need_version=no
13516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13517 soname_spec='${libname}${release}${shared_ext}$major'
13518 shlibpath_var=LD_LIBRARY_PATH
13519 shlibpath_overrides_runpath=no
13520 hardcode_into_libs=yes
13521 dynamic_linker='ldqnx.so'
13522 ;;
13523
13524openbsd*)
13525 version_type=sunos
13526 sys_lib_dlsearch_path_spec="/usr/lib"
13527 need_lib_prefix=no
13528 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13529 case $host_os in
13530 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13531 *) need_version=no ;;
13532 esac
13533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13534 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13535 shlibpath_var=LD_LIBRARY_PATH
13536 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13537 case $host_os in
13538 openbsd2.[89] | openbsd2.[89].*)
13539 shlibpath_overrides_runpath=no
13540 ;;
13541 *)
13542 shlibpath_overrides_runpath=yes
13543 ;;
13544 esac
ff66d28f 13545 else
1cf3d07d 13546 shlibpath_overrides_runpath=yes
ff66d28f 13547 fi
1cf3d07d 13548 ;;
ff66d28f 13549
1cf3d07d
SE
13550os2*)
13551 libname_spec='$name'
13552 shrext_cmds=".dll"
13553 need_lib_prefix=no
13554 library_names_spec='$libname${shared_ext} $libname.a'
13555 dynamic_linker='OS/2 ld.exe'
13556 shlibpath_var=LIBPATH
13557 ;;
13558
13559osf3* | osf4* | osf5*)
13560 version_type=osf
13561 need_lib_prefix=no
13562 need_version=no
13563 soname_spec='${libname}${release}${shared_ext}$major'
13564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13565 shlibpath_var=LD_LIBRARY_PATH
13566 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13567 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13568 ;;
13569
13570rdos*)
13571 dynamic_linker=no
13572 ;;
13573
13574solaris*)
13575 version_type=linux
13576 need_lib_prefix=no
13577 need_version=no
13578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13579 soname_spec='${libname}${release}${shared_ext}$major'
13580 shlibpath_var=LD_LIBRARY_PATH
13581 shlibpath_overrides_runpath=yes
13582 hardcode_into_libs=yes
13583 # ldd complains unless libraries are executable
13584 postinstall_cmds='chmod +x $lib'
13585 ;;
13586
13587sunos4*)
13588 version_type=sunos
13589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13590 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13591 shlibpath_var=LD_LIBRARY_PATH
13592 shlibpath_overrides_runpath=yes
13593 if test "$with_gnu_ld" = yes; then
13594 need_lib_prefix=no
13595 fi
13596 need_version=yes
13597 ;;
13598
13599sysv4 | sysv4.3*)
13600 version_type=linux
13601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13602 soname_spec='${libname}${release}${shared_ext}$major'
13603 shlibpath_var=LD_LIBRARY_PATH
13604 case $host_vendor in
13605 sni)
13606 shlibpath_overrides_runpath=no
13607 need_lib_prefix=no
13608 runpath_var=LD_RUN_PATH
13609 ;;
13610 siemens)
13611 need_lib_prefix=no
13612 ;;
13613 motorola)
13614 need_lib_prefix=no
13615 need_version=no
13616 shlibpath_overrides_runpath=no
13617 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13618 ;;
13619 esac
13620 ;;
13621
13622sysv4*MP*)
13623 if test -d /usr/nec ;then
13624 version_type=linux
13625 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13626 soname_spec='$libname${shared_ext}.$major'
13627 shlibpath_var=LD_LIBRARY_PATH
13628 fi
13629 ;;
13630
13631sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13632 version_type=freebsd-elf
13633 need_lib_prefix=no
13634 need_version=no
13635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13636 soname_spec='${libname}${release}${shared_ext}$major'
13637 shlibpath_var=LD_LIBRARY_PATH
13638 shlibpath_overrides_runpath=yes
13639 hardcode_into_libs=yes
13640 if test "$with_gnu_ld" = yes; then
13641 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13642 else
13643 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13644 case $host_os in
13645 sco3.2v5*)
13646 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13647 ;;
13648 esac
13649 fi
13650 sys_lib_dlsearch_path_spec='/usr/lib'
13651 ;;
13652
13653tpf*)
13654 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13655 version_type=linux
13656 need_lib_prefix=no
13657 need_version=no
13658 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13659 shlibpath_var=LD_LIBRARY_PATH
13660 shlibpath_overrides_runpath=no
13661 hardcode_into_libs=yes
13662 ;;
13663
13664uts4*)
13665 version_type=linux
13666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13667 soname_spec='${libname}${release}${shared_ext}$major'
13668 shlibpath_var=LD_LIBRARY_PATH
13669 ;;
13670
13671*)
13672 dynamic_linker=no
13673 ;;
13674esac
7eed349e
PC
13675echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13676echo "${ECHO_T}$dynamic_linker" >&6
1cf3d07d
SE
13677test "$dynamic_linker" = no && can_build_shared=no
13678
13679variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13680if test "$GCC" = yes; then
13681 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
ff66d28f 13682fi
ff66d28f 13683
1cf3d07d
SE
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
7eed349e
PC
13719 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13720echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
1cf3d07d
SE
13721hardcode_action_CXX=
13722if test -n "$hardcode_libdir_flag_spec_CXX" ||
13723 test -n "$runpath_var_CXX" ||
13724 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13725
13726 # We can hardcode non-existent directories.
13727 if test "$hardcode_direct_CXX" != no &&
13728 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13729 # have to relink, otherwise we might link with an installed library
13730 # when we should be linking with a yet-to-be-installed one
13731 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13732 test "$hardcode_minus_L_CXX" != no; then
13733 # Linking always hardcodes the temporary library directory.
13734 hardcode_action_CXX=relink
ff66d28f 13735 else
1cf3d07d
SE
13736 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13737 hardcode_action_CXX=immediate
ff66d28f
PE
13738 fi
13739else
1cf3d07d
SE
13740 # We cannot hardcode anything, or else we can only hardcode existing
13741 # directories.
13742 hardcode_action_CXX=unsupported
ff66d28f 13743fi
7eed349e
PC
13744echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13745echo "${ECHO_T}$hardcode_action_CXX" >&6
ff66d28f 13746
1cf3d07d
SE
13747if test "$hardcode_action_CXX" = relink ||
13748 test "$inherit_rpath_CXX" = yes; then
13749 # Fast installation is not supported
13750 enable_fast_install=no
13751elif test "$shlibpath_overrides_runpath" = yes ||
13752 test "$enable_shared" = no; then
13753 # Fast installation is not necessary
13754 enable_fast_install=needless
ff66d28f 13755fi
ff66d28f 13756
1cf3d07d
SE
13757
13758
13759
13760
13761
13762
13763 fi # test -n "$compiler"
13764
13765 CC=$lt_save_CC
13766 LDCXX=$LD
13767 LD=$lt_save_LD
13768 GCC=$lt_save_GCC
13769 with_gnu_ld=$lt_save_with_gnu_ld
13770 lt_cv_path_LDCXX=$lt_cv_path_LD
13771 lt_cv_path_LD=$lt_save_path_LD
13772 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13773 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13774fi # test "$_lt_caught_CXX_error" != yes
ff66d28f
PE
13775
13776ac_ext=c
13777ac_cpp='$CPP $CPPFLAGS'
13778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13780ac_compiler_gnu=$ac_cv_c_compiler_gnu
13781
3df64633
AO
13782
13783
3df64633 13784
3df64633 13785
3df64633 13786
34791641
PE
13787
13788
33590f13 13789
ff66d28f
PE
13790
13791
13792
ff66d28f 13793
7eed349e 13794 ac_config_commands="$ac_config_commands libtool"
1cf3d07d
SE
13795
13796
13797
13798
13799# Only expand once:
13800
13801
13802
13803
13804
5f34ed87
BK
13805# Possibly disable most of the library.
13806## TODO: Consider skipping unncessary tests altogether in this case, rather
13807## than just ignoring the results. Faster /and/ more correct, win win.
4ffe6e87 13808
7eed349e 13809 # Check whether --enable-hosted-libstdcxx or --disable-hosted-libstdcxx was given.
5f34ed87 13810if test "${enable_hosted_libstdcxx+set}" = set; then
7eed349e
PC
13811 enableval="$enable_hosted_libstdcxx"
13812
4ffe6e87 13813else
5f34ed87
BK
13814 case "$host" in
13815 arm*-*-symbianelf*)
13816 enable_hosted_libstdcxx=no
13817 ;;
13818 *)
13819 enable_hosted_libstdcxx=yes
13820 ;;
13821 esac
7eed349e 13822fi;
5f34ed87
BK
13823 if test "$enable_hosted_libstdcxx" = no; then
13824 { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5
13825echo "$as_me: Only freestanding libraries will be built" >&6;}
13826 is_hosted=no
13827 hosted_define=0
13828 enable_abi_check=no
13829 enable_libstdcxx_pch=no
4ffe6e87 13830 else
5f34ed87
BK
13831 is_hosted=yes
13832 hosted_define=1
4ffe6e87 13833 fi
5f34ed87
BK
13834
13835
13836cat >>confdefs.h <<_ACEOF
13837#define _GLIBCXX_HOSTED $hosted_define
13838_ACEOF
13839
13840
13841
0646d8a3 13842# Enable compiler support that doesn't require linking.
5f34ed87 13843
7eed349e
PC
13844 echo "$as_me:$LINENO: checking for exception model to use" >&5
13845echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5f34ed87 13846
7eed349e
PC
13847
13848 ac_ext=cc
5f34ed87
BK
13849ac_cpp='$CXXCPP $CPPFLAGS'
13850ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13851ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13852ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13853
7eed349e 13854 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5f34ed87 13855if test "${enable_sjlj_exceptions+set}" = set; then
7eed349e
PC
13856 enableval="$enable_sjlj_exceptions"
13857
5f34ed87
BK
13858 case "$enableval" in
13859 yes|no|auto) ;;
13860 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5
13861echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;}
13862 { (exit 1); exit 1; }; } ;;
13863 esac
13864
4ffe6e87 13865else
5f34ed87 13866 enable_sjlj_exceptions=auto
7eed349e 13867fi;
5f34ed87
BK
13868
13869
13870 if test $enable_sjlj_exceptions = auto; then
13871 # Botheration. Now we've got to detect the exception model. Link tests
13872 # against libgcc.a are problematic since we've not been given proper -L
13873 # bits for single-tree newlib and libgloss.
13874 #
13875 # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style.
13876 cat > conftest.$ac_ext << EOF
727cd0bc 13877#line 13877 "configure"
5f34ed87
BK
13878struct S { ~S(); };
13879void bar();
13880void foo()
13881{
13882 S s;
13883 bar();
13884}
13885EOF
13886 old_CXXFLAGS="$CXXFLAGS"
13887 CXXFLAGS=-S
13888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13889 (eval $ac_compile) 2>&5
13890 ac_status=$?
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; then
13893 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
13894 enable_sjlj_exceptions=yes
13895 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
13896 enable_sjlj_exceptions=no
13897 elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
13898 enable_sjlj_exceptions=no
4ffe6e87
BK
13899 fi
13900 fi
5f34ed87
BK
13901 CXXFLAGS="$old_CXXFLAGS"
13902 rm -f conftest*
13903 fi
4ffe6e87 13904
5f34ed87
BK
13905 # This is a tad weird, for hysterical raisins. We have to map
13906 # enable/disable to two different models.
13907 case $enable_sjlj_exceptions in
13908 yes)
13909
13910cat >>confdefs.h <<\_ACEOF
13911#define _GLIBCXX_SJLJ_EXCEPTIONS 1
13912_ACEOF
13913
13914 ac_exception_model_name=sjlj
13915 ;;
13916 no)
13917 ac_exception_model_name="call frame"
13918 ;;
13919 *)
13920 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
13921echo "$as_me: error: unable to detect exception model" >&2;}
4ffe6e87 13922 { (exit 1); exit 1; }; }
5f34ed87
BK
13923 ;;
13924 esac
13925 ac_ext=c
13926ac_cpp='$CPP $CPPFLAGS'
13927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13929ac_compiler_gnu=$ac_cv_c_compiler_gnu
4ffe6e87 13930
7eed349e
PC
13931 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
13932echo "${ECHO_T}$ac_exception_model_name" >&6
4ffe6e87
BK
13933
13934
7eed349e 13935 # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given.
5f34ed87 13936if test "${enable_libstdcxx_pch+set}" = set; then
7eed349e
PC
13937 enableval="$enable_libstdcxx_pch"
13938
5f34ed87
BK
13939 case "$enableval" in
13940 yes|no) ;;
13941 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5
13942echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;}
13943 { (exit 1); exit 1; }; } ;;
13944 esac
4ffe6e87 13945
4ffe6e87 13946else
5f34ed87 13947 enable_libstdcxx_pch=$is_hosted
7eed349e 13948fi;
4ffe6e87 13949
5f34ed87 13950 if test $enable_libstdcxx_pch = yes; then
7eed349e
PC
13951 echo "$as_me:$LINENO: checking for compiler with PCH support" >&5
13952echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6
5f34ed87
BK
13953if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13955else
13956 ac_save_CXXFLAGS="$CXXFLAGS"
13957 CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
4ffe6e87 13958
7eed349e
PC
13959
13960 ac_ext=cc
5f34ed87
BK
13961ac_cpp='$CXXCPP $CPPFLAGS'
13962ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13963ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13964ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4ffe6e87 13965
5f34ed87
BK
13966 echo '#include <math.h>' > conftest.h
13967 if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
13968 -o conftest.h.gch 1>&5 2>&1 &&
13969 echo '#error "pch failed"' > conftest.h &&
13970 echo '#include "conftest.h"' > conftest.cc &&
13971 $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
13972 then
13973 glibcxx_cv_prog_CXX_pch=yes
13974 else
13975 glibcxx_cv_prog_CXX_pch=no
13976 fi
13977 rm -f conftest*
13978 CXXFLAGS=$ac_save_CXXFLAGS
13979 ac_ext=c
13980ac_cpp='$CPP $CPPFLAGS'
13981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13983ac_compiler_gnu=$ac_cv_c_compiler_gnu
4ffe6e87
BK
13984
13985
5f34ed87 13986fi
7eed349e
PC
13987echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5
13988echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6
5f34ed87
BK
13989 enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
13990 fi
4ffe6e87 13991
7eed349e
PC
13992 echo "$as_me:$LINENO: checking for enabled PCH" >&5
13993echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6
13994 echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5
13995echo "${ECHO_T}$enable_libstdcxx_pch" >&6
4ffe6e87 13996
4ffe6e87 13997
5f34ed87 13998 if test $enable_libstdcxx_pch = yes; then
c2ba9709 13999 glibcxx_PCHFLAGS="-include bits/stdc++.h"
5f34ed87
BK
14000 else
14001 glibcxx_PCHFLAGS=""
14002 fi
4ffe6e87 14003
4ffe6e87
BK
14004
14005
e55d0e35
BK
14006
14007
14008 ac_ext=cc
14009ac_cpp='$CXXCPP $CPPFLAGS'
14010ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14011ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14012ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14013
14014 old_CXXFLAGS="$CXXFLAGS"
14015
14016 # Compile unoptimized.
14017 CXXFLAGS='-O0 -S'
14018
14019 # Fake what AC_TRY_COMPILE does, without linking as this is
14020 # unnecessary for a builtins test.
14021
14022 cat > conftest.$ac_ext << EOF
727cd0bc 14023#line 14023 "configure"
e55d0e35
BK
14024int main()
14025{
14026 // NB: _Atomic_word not necessarily int.
14027 typedef int atomic_type;
14028 atomic_type c1;
14029 atomic_type c2;
14030 const atomic_type c3(0);
14031 __sync_fetch_and_add(&c1, c2);
14032 __sync_val_compare_and_swap(&c1, c3, c2);
14033 __sync_lock_test_and_set(&c1, c3);
14034 __sync_lock_release(&c1);
14035 __sync_synchronize();
14036 return 0;
14037}
14038EOF
14039
14040 echo "$as_me:$LINENO: checking for atomic builtins for int" >&5
14041echo $ECHO_N "checking for atomic builtins for int... $ECHO_C" >&6
14042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14043 (eval $ac_compile) 2>&5
14044 ac_status=$?
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; then
14047 if grep __sync_ conftest.s >/dev/null 2>&1 ; then
14048 enable_atomic_builtinsi=no
14049 else
14050
14051cat >>confdefs.h <<\_ACEOF
14052#define _GLIBCXX_ATOMIC_BUILTINS_4 1
14053_ACEOF
14054
14055 enable_atomic_builtinsi=yes
14056 fi
14057 fi
14058 echo "$as_me:$LINENO: result: $enable_atomic_builtinsi" >&5
14059echo "${ECHO_T}$enable_atomic_builtinsi" >&6
14060 rm -f conftest*
14061
14062 cat > conftest.$ac_ext << EOF
727cd0bc 14063#line 14063 "configure"
e55d0e35
BK
14064int main()
14065{
14066 typedef bool atomic_type;
14067 atomic_type c1;
14068 atomic_type c2;
14069 const atomic_type c3(0);
14070 __sync_fetch_and_add(&c1, c2);
14071 __sync_val_compare_and_swap(&c1, c3, c2);
14072 __sync_lock_test_and_set(&c1, c3);
14073 __sync_lock_release(&c1);
14074 __sync_synchronize();
14075 return 0;
14076}
14077EOF
14078
14079 echo "$as_me:$LINENO: checking for atomic builtins for bool" >&5
14080echo $ECHO_N "checking for atomic builtins for bool... $ECHO_C" >&6
14081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14082 (eval $ac_compile) 2>&5
14083 ac_status=$?
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; then
14086 if grep __sync_ conftest.s >/dev/null 2>&1 ; then
14087 enable_atomic_builtinsb=no
14088 else
14089
14090cat >>confdefs.h <<\_ACEOF
14091#define _GLIBCXX_ATOMIC_BUILTINS_1 1
14092_ACEOF
14093
14094 enable_atomic_builtinsb=yes
14095 fi
14096 fi
14097 echo "$as_me:$LINENO: result: $enable_atomic_builtinsb" >&5
14098echo "${ECHO_T}$enable_atomic_builtinsb" >&6
14099 rm -f conftest*
14100
14101 CXXFLAGS="$old_CXXFLAGS"
14102 ac_ext=c
14103ac_cpp='$CPP $CPPFLAGS'
14104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14106ac_compiler_gnu=$ac_cv_c_compiler_gnu
14107
14108
14109 # Set atomicity_dir to builtins if either of above tests pass.
14110 if test $enable_atomic_builtinsi = yes || test $enable_atomic_builtinsb = yes ; then
14111 atomicity_dir=cpu/generic/atomicity_builtins
14112 fi
14113
14114 # If still generic, set to mutex.
14115 if test $atomicity_dir = "cpu/generic" ; then
14116 atomicity_dir=cpu/generic/atomicity_mutex
14117 { echo "$as_me:$LINENO: WARNING: No native atomic operations are provided for this platform." >&5
14118echo "$as_me: WARNING: No native atomic operations are provided for this platform." >&2;}
14119 if test $target_thread_file = single; then
14120 { echo "$as_me:$LINENO: WARNING: They cannot be faked when thread support is disabled." >&5
14121echo "$as_me: WARNING: They cannot be faked when thread support is disabled." >&2;}
14122 { echo "$as_me:$LINENO: WARNING: Thread-safety of certain classes is not guaranteed." >&5
14123echo "$as_me: WARNING: Thread-safety of certain classes is not guaranteed." >&2;}
14124 else
14125 { echo "$as_me:$LINENO: WARNING: They will be faked using a mutex." >&5
14126echo "$as_me: WARNING: They will be faked using a mutex." >&2;}
14127 { echo "$as_me:$LINENO: WARNING: Performance of certain classes will degrade as a result." >&5
14128echo "$as_me: WARNING: Performance of certain classes will degrade as a result." >&2;}
14129 fi
14130 fi
14131
14132
14133
14134 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
14135echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
14136 target_thread_file=`$CXX -v 2>&1 | sed -n 's/^Thread model: //p'`
14137 echo "$as_me:$LINENO: result: $target_thread_file" >&5
14138echo "${ECHO_T}$target_thread_file" >&6
14139
14140 if test $target_thread_file != single; then
14141
14142cat >>confdefs.h <<\_ACEOF
14143#define HAVE_GTHR_DEFAULT 1
14144_ACEOF
14145
14146 fi
14147
14148 glibcxx_thread_h=gthr-$target_thread_file.h
14149
14150 gthread_file=${toplevel_srcdir}/gcc/${glibcxx_thread_h}
14151 if grep __GTHREADS $gthread_file >/dev/null 2>&1 ; then
14152 enable_thread=yes
14153 else
14154 enable_thread=no
14155 fi
14156
14157
14158
14159
b8c41c8e 14160# Checks for compiler support that doesn't require linking.
e55d0e35
BK
14161
14162 # All these tests are for C++; save the language and the compiler flags.
14163 # The CXXFLAGS thing is suspicious, but based on similar bits previously
14164 # found in GLIBCXX_CONFIGURE.
14165
14166
14167 ac_ext=cc
14168ac_cpp='$CXXCPP $CPPFLAGS'
14169ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14170ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14171ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14172
14173 ac_test_CXXFLAGS="${CXXFLAGS+set}"
14174 ac_save_CXXFLAGS="$CXXFLAGS"
14175
14176 # Check for maintainer-mode bits.
14177 if test x"$USE_MAINTAINER_MODE" = xno; then
14178 WERROR=''
14179 else
14180 WERROR='-Werror'
14181 fi
14182
14183 # Check for -ffunction-sections -fdata-sections
14184 echo "$as_me:$LINENO: checking for g++ that supports -ffunction-sections -fdata-sections" >&5
14185echo $ECHO_N "checking for g++ that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6
14186 CXXFLAGS='-g -Werror -ffunction-sections -fdata-sections'
14187 cat >conftest.$ac_ext <<_ACEOF
14188/* confdefs.h. */
14189_ACEOF
14190cat confdefs.h >>conftest.$ac_ext
14191cat >>conftest.$ac_ext <<_ACEOF
14192/* end confdefs.h. */
14193int foo; void bar() { };
14194int
14195main ()
14196{
14197
14198 ;
14199 return 0;
14200}
14201_ACEOF
14202rm -f conftest.$ac_objext
14203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14204 (eval $ac_compile) 2>conftest.er1
14205 ac_status=$?
14206 grep -v '^ *+' conftest.er1 >conftest.err
14207 rm -f conftest.er1
14208 cat conftest.err >&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } &&
14211 { ac_try='test -z "$ac_cxx_werror_flag"
14212 || test ! -s conftest.err'
14213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14214 (eval $ac_try) 2>&5
14215 ac_status=$?
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; } &&
14218 { ac_try='test -s conftest.$ac_objext'
14219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14220 (eval $ac_try) 2>&5
14221 ac_status=$?
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); }; }; then
14224 ac_fdsections=yes
14225else
14226 echo "$as_me: failed program was:" >&5
14227sed 's/^/| /' conftest.$ac_ext >&5
14228
14229ac_fdsections=no
14230fi
14231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14232 if test "$ac_test_CXXFLAGS" = set; then
14233 CXXFLAGS="$ac_save_CXXFLAGS"
14234 else
14235 # this is the suspicious part
14236 CXXFLAGS=''
14237 fi
14238 if test x"$ac_fdsections" = x"yes"; then
14239 SECTION_FLAGS='-ffunction-sections -fdata-sections'
14240 fi
14241 echo "$as_me:$LINENO: result: $ac_fdsections" >&5
14242echo "${ECHO_T}$ac_fdsections" >&6
14243
14244 ac_ext=c
14245ac_cpp='$CPP $CPPFLAGS'
14246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14248ac_compiler_gnu=$ac_cv_c_compiler_gnu
14249
14250
14251
14252
14253
14254
14255 echo "$as_me:$LINENO: checking for ISO C++200x standard layout type support" >&5
14256echo $ECHO_N "checking for ISO C++200x standard layout type support... $ECHO_C" >&6
14257 if test "${ac_standard_layout+set}" = set; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
14259else
14260
14261
14262
14263 ac_ext=cc
14264ac_cpp='$CXXCPP $CPPFLAGS'
14265ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14266ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14267ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14268
14269 ac_test_CXXFLAGS="${CXXFLAGS+set}"
14270 ac_save_CXXFLAGS="$CXXFLAGS"
14271 CXXFLAGS='-std=gnu++0x'
14272
14273 cat >conftest.$ac_ext <<_ACEOF
14274/* confdefs.h. */
14275_ACEOF
14276cat confdefs.h >>conftest.$ac_ext
14277cat >>conftest.$ac_ext <<_ACEOF
14278/* end confdefs.h. */
14279struct b
14280 {
14281 bool t;
14282
14283 // Need standard layout relaxation from POD
14284 private:
14285 b& operator=(const b&);
14286 b(const b&);
14287 };
14288
14289 int main()
14290 {
14291 b tst1 = { false };
14292 return 0;
14293 }
14294int
14295main ()
14296{
14297
14298 ;
14299 return 0;
14300}
14301_ACEOF
14302rm -f conftest.$ac_objext
14303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14304 (eval $ac_compile) 2>conftest.er1
14305 ac_status=$?
14306 grep -v '^ *+' conftest.er1 >conftest.err
14307 rm -f conftest.er1
14308 cat conftest.err >&5
14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14310 (exit $ac_status); } &&
14311 { ac_try='test -z "$ac_cxx_werror_flag"
14312 || test ! -s conftest.err'
14313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14314 (eval $ac_try) 2>&5
14315 ac_status=$?
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); }; } &&
14318 { ac_try='test -s conftest.$ac_objext'
14319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14320 (eval $ac_try) 2>&5
14321 ac_status=$?
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; }; then
14324 ac_standard_layout=yes
14325else
14326 echo "$as_me: failed program was:" >&5
14327sed 's/^/| /' conftest.$ac_ext >&5
14328
14329ac_standard_layout=no
14330fi
14331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14332
14333 CXXFLAGS="$ac_save_CXXFLAGS"
14334 ac_ext=c
14335ac_cpp='$CPP $CPPFLAGS'
14336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14338ac_compiler_gnu=$ac_cv_c_compiler_gnu
14339
14340
14341fi
14342
14343 echo "$as_me:$LINENO: result: $ac_standard_layout" >&5
14344echo "${ECHO_T}$ac_standard_layout" >&6
14345 if test x"$ac_standard_layout" = x"yes"; then
14346
14347cat >>confdefs.h <<\_ACEOF
14348#define _GLIBCXX_USE_STANDARD_LAYOUT 1
14349_ACEOF
14350
14351 fi
14352
14353
1894e4c5 14354# Enable all the variable C++ runtime options that don't require linking.
4ffe6e87 14355
7eed349e
PC
14356 echo "$as_me:$LINENO: checking for underlying I/O to use" >&5
14357echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6
14358 # Check whether --enable-cstdio or --disable-cstdio was given.
5f34ed87 14359if test "${enable_cstdio+set}" = set; then
7eed349e
PC
14360 enableval="$enable_cstdio"
14361
5f34ed87
BK
14362 case "$enableval" in
14363 stdio) ;;
14364 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5
14365echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;}
14366 { (exit 1); exit 1; }; } ;;
14367 esac
4ffe6e87 14368
5f34ed87
BK
14369else
14370 enable_cstdio=stdio
7eed349e 14371fi;
4ffe6e87 14372
4ffe6e87 14373
5f34ed87
BK
14374 # Now that libio has been removed, you can have any color you want as long
14375 # as it's black. This is one big no-op until other packages are added, but
14376 # showing the framework never hurts.
14377 case ${enable_cstdio} in
14378 stdio)
14379 CSTDIO_H=config/io/c_io_stdio.h
14380 BASIC_FILE_H=config/io/basic_file_stdio.h
14381 BASIC_FILE_CC=config/io/basic_file_stdio.cc
7eed349e
PC
14382 echo "$as_me:$LINENO: result: stdio" >&5
14383echo "${ECHO_T}stdio" >&6
5f34ed87
BK
14384 ;;
14385 esac
4ffe6e87 14386
4ffe6e87 14387
4ffe6e87 14388
4ffe6e87 14389
4ffe6e87 14390
4ffe6e87 14391
7eed349e 14392 # Check whether --enable-clocale or --disable-clocale was given.
5f34ed87 14393if test "${enable_clocale+set}" = set; then
7eed349e
PC
14394 enableval="$enable_clocale"
14395
5f34ed87
BK
14396 case "$enableval" in
14397 generic|gnu|ieee_1003.1-2001|yes|no|auto) ;;
14398 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
14399echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
14400 { (exit 1); exit 1; }; } ;;
14401 esac
92eabea2
PE
14402
14403else
5f34ed87 14404 enable_clocale=auto
7eed349e 14405fi;
92eabea2 14406
5780a46b 14407
0258dc3a
BK
14408 # Deal with gettext issues. Default to not using it (=no) until we detect
14409 # support for it later. Let the user turn it off via --e/d, but let that
14410 # default to on for easier handling.
14411 USE_NLS=no
7eed349e 14412 # Check whether --enable-nls or --disable-nls was given.
0258dc3a 14413if test "${enable_nls+set}" = set; then
7eed349e
PC
14414 enableval="$enable_nls"
14415
0258dc3a
BK
14416else
14417 enable_nls=yes
7eed349e 14418fi;
0258dc3a
BK
14419
14420 # Either a known packaage, or "auto"
5f34ed87
BK
14421 if test $enable_clocale = no || test $enable_clocale = yes; then
14422 enable_clocale=auto
14423 fi
5f34ed87 14424 enable_clocale_flag=$enable_clocale
dd75251f 14425
0258dc3a 14426 # Probe for locale model to use if none specified.
ff66d28f
PE
14427 # Default to "generic".
14428 if test $enable_clocale_flag = auto; then
7d3998a4
PE
14429 case ${target_os} in
14430 linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu)
0258dc3a
BK
14431 enable_clocale_flag=gnu
14432 ;;
14433 darwin* | freebsd*)
14434 enable_clocale_flag=darwin
14435 ;;
14436 *)
14437 enable_clocale_flag=generic
14438 ;;
14439 esac
14440 fi
14441
14442 # Sanity check model, and test for special functionality.
14443 if test $enable_clocale_flag = gnu; then
14444 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
14445/* confdefs.h. */
14446_ACEOF
14447cat confdefs.h >>conftest.$ac_ext
14448cat >>conftest.$ac_ext <<_ACEOF
14449/* end confdefs.h. */
56deb74c 14450
0258dc3a
BK
14451 #include <features.h>
14452 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
14453 _GLIBCXX_ok
14454 #endif
ff66d28f
PE
14455
14456_ACEOF
56deb74c 14457if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ff66d28f 14458 $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then
56deb74c
BK
14459 enable_clocale_flag=gnu
14460else
56deb74c
BK
14461 enable_clocale_flag=generic
14462fi
14463rm -f conftest*
14464
1451a492 14465
1ba74130
PC
14466 if test $enable_clocale = auto; then
14467 # Test for bugs early in glibc-2.2.x series
14468 if test "$cross_compiling" = yes; then
1451a492
BK
14469 enable_clocale_flag=generic
14470else
ff66d28f 14471 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
14472/* confdefs.h. */
14473_ACEOF
14474cat confdefs.h >>conftest.$ac_ext
14475cat >>conftest.$ac_ext <<_ACEOF
14476/* end confdefs.h. */
14477
1ba74130
PC
14478 #define _GNU_SOURCE 1
14479 #include <locale.h>
14480 #include <string.h>
14481 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
14482 extern __typeof(newlocale) __newlocale;
14483 extern __typeof(duplocale) __duplocale;
14484 extern __typeof(strcoll_l) __strcoll_l;
14485 #endif
14486 int main()
14487 {
14488