]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/configure
expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations is true.
[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
7eed349e 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 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_thread_h WERROR SECTION_FLAGS 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=''
b2dad0e3
BK
463
464# Initialize some variables set by options.
ff66d28f
PE
465ac_init_help=
466ac_init_version=false
b2dad0e3
BK
467# The variables have the same names as the options, with
468# dashes changed to underlines.
ff66d28f 469cache_file=/dev/null
b2dad0e3 470exec_prefix=NONE
b2dad0e3 471no_create=
b2dad0e3
BK
472no_recursion=
473prefix=NONE
474program_prefix=NONE
475program_suffix=NONE
476program_transform_name=s,x,x,
477silent=
478site=
479srcdir=
b2dad0e3
BK
480verbose=
481x_includes=NONE
482x_libraries=NONE
ff66d28f
PE
483
484# Installation directory options.
485# These are left unexpanded so users can "make install exec_prefix=/foo"
486# and all the variables that are supposed to be based on exec_prefix
487# by default will actually change.
488# Use braces instead of parens because sh, perl, etc. also accept them.
b2dad0e3
BK
489bindir='${exec_prefix}/bin'
490sbindir='${exec_prefix}/sbin'
491libexecdir='${exec_prefix}/libexec'
7eed349e 492datadir='${prefix}/share'
b2dad0e3
BK
493sysconfdir='${prefix}/etc'
494sharedstatedir='${prefix}/com'
495localstatedir='${prefix}/var'
7eed349e 496libdir='${exec_prefix}/lib'
b2dad0e3
BK
497includedir='${prefix}/include'
498oldincludedir='/usr/include'
7eed349e
PC
499infodir='${prefix}/info'
500mandir='${prefix}/man'
b2dad0e3 501
b2dad0e3
BK
502ac_prev=
503for ac_option
504do
b2dad0e3
BK
505 # If the previous option needs an argument, assign it.
506 if test -n "$ac_prev"; then
7eed349e 507 eval "$ac_prev=\$ac_option"
b2dad0e3
BK
508 ac_prev=
509 continue
510 fi
511
7eed349e 512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
b2dad0e3
BK
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
7eed349e 516 case $ac_option in
b2dad0e3
BK
517
518 -bindir | --bindir | --bindi | --bind | --bin | --bi)
519 ac_prev=bindir ;;
520 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ff66d28f 521 bindir=$ac_optarg ;;
b2dad0e3
BK
522
523 -build | --build | --buil | --bui | --bu)
ff66d28f 524 ac_prev=build_alias ;;
b2dad0e3 525 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ff66d28f 526 build_alias=$ac_optarg ;;
b2dad0e3
BK
527
528 -cache-file | --cache-file | --cache-fil | --cache-fi \
529 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
530 ac_prev=cache_file ;;
531 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
532 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ff66d28f
PE
533 cache_file=$ac_optarg ;;
534
535 --config-cache | -C)
536 cache_file=config.cache ;;
b2dad0e3 537
7eed349e 538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
b2dad0e3 539 ac_prev=datadir ;;
7eed349e
PC
540 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
541 | --da=*)
ff66d28f 542 datadir=$ac_optarg ;;
b2dad0e3
BK
543
544 -disable-* | --disable-*)
ff66d28f 545 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
b2dad0e3 546 # Reject names that are not valid shell variable names.
7eed349e 547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
ff66d28f
PE
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
7eed349e
PC
550 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
551 eval "enable_$ac_feature=no" ;;
b2dad0e3
BK
552
553 -enable-* | --enable-*)
ff66d28f 554 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
b2dad0e3 555 # Reject names that are not valid shell variable names.
7eed349e 556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
ff66d28f
PE
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
7eed349e
PC
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
562 *) ac_optarg=yes ;;
563 esac
564 eval "enable_$ac_feature='$ac_optarg'" ;;
b2dad0e3
BK
565
566 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
567 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
568 | --exec | --exe | --ex)
569 ac_prev=exec_prefix ;;
570 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
571 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
572 | --exec=* | --exe=* | --ex=*)
ff66d28f 573 exec_prefix=$ac_optarg ;;
b2dad0e3
BK
574
575 -gas | --gas | --ga | --g)
576 # Obsolete; use --with-gas.
577 with_gas=yes ;;
578
ff66d28f
PE
579 -help | --help | --hel | --he | -h)
580 ac_init_help=long ;;
581 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
582 ac_init_help=recursive ;;
583 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
584 ac_init_help=short ;;
b2dad0e3
BK
585
586 -host | --host | --hos | --ho)
ff66d28f 587 ac_prev=host_alias ;;
b2dad0e3 588 -host=* | --host=* | --hos=* | --ho=*)
ff66d28f 589 host_alias=$ac_optarg ;;
b2dad0e3
BK
590
591 -includedir | --includedir | --includedi | --included | --include \
592 | --includ | --inclu | --incl | --inc)
593 ac_prev=includedir ;;
594 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
595 | --includ=* | --inclu=* | --incl=* | --inc=*)
ff66d28f 596 includedir=$ac_optarg ;;
b2dad0e3
BK
597
598 -infodir | --infodir | --infodi | --infod | --info | --inf)
599 ac_prev=infodir ;;
600 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ff66d28f 601 infodir=$ac_optarg ;;
b2dad0e3
BK
602
603 -libdir | --libdir | --libdi | --libd)
604 ac_prev=libdir ;;
605 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ff66d28f 606 libdir=$ac_optarg ;;
b2dad0e3
BK
607
608 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
609 | --libexe | --libex | --libe)
610 ac_prev=libexecdir ;;
611 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
612 | --libexe=* | --libex=* | --libe=*)
ff66d28f 613 libexecdir=$ac_optarg ;;
b2dad0e3
BK
614
615 -localstatedir | --localstatedir | --localstatedi | --localstated \
7eed349e
PC
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
b2dad0e3
BK
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7eed349e
PC
620 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
621 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
ff66d28f 622 localstatedir=$ac_optarg ;;
b2dad0e3
BK
623
624 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
625 ac_prev=mandir ;;
626 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ff66d28f 627 mandir=$ac_optarg ;;
b2dad0e3
BK
628
629 -nfp | --nfp | --nf)
630 # Obsolete; use --without-fp.
631 with_fp=no ;;
632
633 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ff66d28f 634 | --no-cr | --no-c | -n)
b2dad0e3
BK
635 no_create=yes ;;
636
637 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
638 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
639 no_recursion=yes ;;
640
641 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
642 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
643 | --oldin | --oldi | --old | --ol | --o)
644 ac_prev=oldincludedir ;;
645 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
646 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
647 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ff66d28f 648 oldincludedir=$ac_optarg ;;
b2dad0e3
BK
649
650 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
651 ac_prev=prefix ;;
652 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ff66d28f 653 prefix=$ac_optarg ;;
b2dad0e3
BK
654
655 -program-prefix | --program-prefix | --program-prefi | --program-pref \
656 | --program-pre | --program-pr | --program-p)
657 ac_prev=program_prefix ;;
658 -program-prefix=* | --program-prefix=* | --program-prefi=* \
659 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ff66d28f 660 program_prefix=$ac_optarg ;;
b2dad0e3
BK
661
662 -program-suffix | --program-suffix | --program-suffi | --program-suff \
663 | --program-suf | --program-su | --program-s)
664 ac_prev=program_suffix ;;
665 -program-suffix=* | --program-suffix=* | --program-suffi=* \
666 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ff66d28f 667 program_suffix=$ac_optarg ;;
b2dad0e3
BK
668
669 -program-transform-name | --program-transform-name \
670 | --program-transform-nam | --program-transform-na \
671 | --program-transform-n | --program-transform- \
672 | --program-transform | --program-transfor \
673 | --program-transfo | --program-transf \
674 | --program-trans | --program-tran \
675 | --progr-tra | --program-tr | --program-t)
676 ac_prev=program_transform_name ;;
677 -program-transform-name=* | --program-transform-name=* \
678 | --program-transform-nam=* | --program-transform-na=* \
679 | --program-transform-n=* | --program-transform-=* \
680 | --program-transform=* | --program-transfor=* \
681 | --program-transfo=* | --program-transf=* \
682 | --program-trans=* | --program-tran=* \
683 | --progr-tra=* | --program-tr=* | --program-t=*)
ff66d28f 684 program_transform_name=$ac_optarg ;;
b2dad0e3
BK
685
686 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
687 | -silent | --silent | --silen | --sile | --sil)
688 silent=yes ;;
689
690 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
691 ac_prev=sbindir ;;
692 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
693 | --sbi=* | --sb=*)
ff66d28f 694 sbindir=$ac_optarg ;;
b2dad0e3
BK
695
696 -sharedstatedir | --sharedstatedir | --sharedstatedi \
697 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
698 | --sharedst | --shareds | --shared | --share | --shar \
699 | --sha | --sh)
700 ac_prev=sharedstatedir ;;
701 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
702 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
703 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
704 | --sha=* | --sh=*)
ff66d28f 705 sharedstatedir=$ac_optarg ;;
b2dad0e3
BK
706
707 -site | --site | --sit)
708 ac_prev=site ;;
709 -site=* | --site=* | --sit=*)
ff66d28f 710 site=$ac_optarg ;;
b2dad0e3
BK
711
712 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
713 ac_prev=srcdir ;;
714 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ff66d28f 715 srcdir=$ac_optarg ;;
b2dad0e3
BK
716
717 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
718 | --syscon | --sysco | --sysc | --sys | --sy)
719 ac_prev=sysconfdir ;;
720 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
721 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ff66d28f 722 sysconfdir=$ac_optarg ;;
b2dad0e3
BK
723
724 -target | --target | --targe | --targ | --tar | --ta | --t)
ff66d28f 725 ac_prev=target_alias ;;
b2dad0e3 726 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ff66d28f 727 target_alias=$ac_optarg ;;
b2dad0e3
BK
728
729 -v | -verbose | --verbose | --verbos | --verbo | --verb)
730 verbose=yes ;;
731
ff66d28f
PE
732 -version | --version | --versio | --versi | --vers | -V)
733 ac_init_version=: ;;
b2dad0e3
BK
734
735 -with-* | --with-*)
ff66d28f 736 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
b2dad0e3 737 # Reject names that are not valid shell variable names.
7eed349e 738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
ff66d28f
PE
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
7eed349e
PC
741 ac_package=`echo $ac_package| sed 's/-/_/g'`
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
744 *) ac_optarg=yes ;;
745 esac
746 eval "with_$ac_package='$ac_optarg'" ;;
b2dad0e3
BK
747
748 -without-* | --without-*)
ff66d28f 749 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
b2dad0e3 750 # Reject names that are not valid shell variable names.
7eed349e 751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
ff66d28f
PE
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
7eed349e
PC
754 ac_package=`echo $ac_package | sed 's/-/_/g'`
755 eval "with_$ac_package=no" ;;
b2dad0e3
BK
756
757 --x)
758 # Obsolete; use --with-x.
759 with_x=yes ;;
760
761 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
762 | --x-incl | --x-inc | --x-in | --x-i)
763 ac_prev=x_includes ;;
764 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
765 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ff66d28f 766 x_includes=$ac_optarg ;;
b2dad0e3
BK
767
768 -x-libraries | --x-libraries | --x-librarie | --x-librari \
769 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
770 ac_prev=x_libraries ;;
771 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
772 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ff66d28f 773 x_libraries=$ac_optarg ;;
b2dad0e3 774
ff66d28f
PE
775 -*) { echo "$as_me: error: unrecognized option: $ac_option
776Try \`$0 --help' for more information." >&2
777 { (exit 1); exit 1; }; }
b2dad0e3
BK
778 ;;
779
ff66d28f
PE
780 *=*)
781 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
782 # Reject names that are not valid shell variable names.
783 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
784 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
785 { (exit 1); exit 1; }; }
7eed349e
PC
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
ff66d28f
PE
788 export $ac_envvar ;;
789
b2dad0e3 790 *)
ff66d28f
PE
791 # FIXME: should be removed in autoconf 3.0.
792 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
793 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
794 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
795 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
b2dad0e3
BK
796 ;;
797
798 esac
799done
800
801if test -n "$ac_prev"; then
ff66d28f
PE
802 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
803 { echo "$as_me: error: missing argument to $ac_option" >&2
804 { (exit 1); exit 1; }; }
b2dad0e3 805fi
b2dad0e3 806
7eed349e
PC
807# Be sure to have absolute paths.
808for ac_var in exec_prefix prefix
ff66d28f 809do
7eed349e 810 eval ac_val=$`echo $ac_var`
ff66d28f 811 case $ac_val in
7eed349e
PC
812 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
813 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
814 { (exit 1); exit 1; }; };;
815 esac
816done
817
818# Be sure to have absolute paths.
819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
820 localstatedir libdir includedir oldincludedir infodir mandir
821do
822 eval ac_val=$`echo $ac_var`
823 case $ac_val in
824 [\\/$]* | ?:[\\/]* ) ;;
825 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
826 { (exit 1); exit 1; }; };;
b2dad0e3
BK
827 esac
828done
829
ff66d28f
PE
830# There might be people who depend on the old broken behavior: `$host'
831# used to hold the argument of --host etc.
832# FIXME: To remove some day.
833build=$build_alias
834host=$host_alias
835target=$target_alias
b2dad0e3 836
ff66d28f
PE
837# FIXME: To remove some day.
838if test "x$host_alias" != x; then
839 if test "x$build_alias" = x; then
840 cross_compiling=maybe
841 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
842 If a cross compiler is detected then cross compile mode will be used." >&2
843 elif test "x$build_alias" != "x$host_alias"; then
844 cross_compiling=yes
845 fi
846fi
847
848ac_tool_prefix=
849test -n "$host_alias" && ac_tool_prefix=$host_alias-
850
851test "$silent" = yes && exec 6>/dev/null
b2dad0e3 852
b2dad0e3
BK
853
854# Find the source files, if location was not specified.
855if test -z "$srcdir"; then
856 ac_srcdir_defaulted=yes
7eed349e
PC
857 # Try the directory containing this script, then its parent.
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
ff66d28f 859$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ec2075e9
BK
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
7eed349e
PC
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
ff66d28f 864echo X"$0" |
7eed349e
PC
865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
867 /^X\(\/\/\)$/{ s//\1/; q; }
868 /^X\(\/\).*/{ s//\1/; q; }
869 s/.*/./; q'`
b2dad0e3 870 srcdir=$ac_confdir
7eed349e 871 if test ! -r $srcdir/$ac_unique_file; then
b2dad0e3
BK
872 srcdir=..
873 fi
874else
875 ac_srcdir_defaulted=no
876fi
7eed349e
PC
877if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
ff66d28f 880 { (exit 1); exit 1; }; }
7eed349e
PC
881 else
882 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
883 { (exit 1); exit 1; }; }
884 fi
885fi
886(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
887 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
888 { (exit 1); exit 1; }; }
889srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
890ac_env_build_alias_set=${build_alias+set}
891ac_env_build_alias_value=$build_alias
892ac_cv_env_build_alias_set=${build_alias+set}
893ac_cv_env_build_alias_value=$build_alias
894ac_env_host_alias_set=${host_alias+set}
895ac_env_host_alias_value=$host_alias
896ac_cv_env_host_alias_set=${host_alias+set}
897ac_cv_env_host_alias_value=$host_alias
898ac_env_target_alias_set=${target_alias+set}
899ac_env_target_alias_value=$target_alias
900ac_cv_env_target_alias_set=${target_alias+set}
901ac_cv_env_target_alias_value=$target_alias
902ac_env_CPP_set=${CPP+set}
903ac_env_CPP_value=$CPP
904ac_cv_env_CPP_set=${CPP+set}
905ac_cv_env_CPP_value=$CPP
906ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907ac_env_CPPFLAGS_value=$CPPFLAGS
908ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910ac_env_CXX_set=${CXX+set}
911ac_env_CXX_value=$CXX
912ac_cv_env_CXX_set=${CXX+set}
913ac_cv_env_CXX_value=$CXX
914ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915ac_env_CXXFLAGS_value=$CXXFLAGS
916ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918ac_env_LDFLAGS_set=${LDFLAGS+set}
919ac_env_LDFLAGS_value=$LDFLAGS
920ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921ac_cv_env_LDFLAGS_value=$LDFLAGS
922ac_env_CXXCPP_set=${CXXCPP+set}
923ac_env_CXXCPP_value=$CXXCPP
924ac_cv_env_CXXCPP_set=${CXXCPP+set}
925ac_cv_env_CXXCPP_value=$CXXCPP
ff66d28f
PE
926
927#
928# Report the --help message.
929#
930if test "$ac_init_help" = "long"; then
931 # Omit some internal or obsolete options to make the list less imposing.
932 # This message is too long to be a string in the A/UX 3.1 sh.
933 cat <<_ACEOF
fbe057bb 934\`configure' configures package-unused version-unused to adapt to many kinds of systems.
ff66d28f
PE
935
936Usage: $0 [OPTION]... [VAR=VALUE]...
937
938To assign environment variables (e.g., CC, CFLAGS...), specify them as
939VAR=VALUE. See below for descriptions of some of the useful variables.
940
941Defaults for the options are specified in brackets.
942
943Configuration:
944 -h, --help display this help and exit
945 --help=short display options specific to this package
946 --help=recursive display the short help of all the included packages
947 -V, --version display version information and exit
948 -q, --quiet, --silent do not print \`checking...' messages
949 --cache-file=FILE cache test results in FILE [disabled]
950 -C, --config-cache alias for \`--cache-file=config.cache'
951 -n, --no-create do not create output files
952 --srcdir=DIR find the sources in DIR [configure dir or \`..']
953
7eed349e
PC
954_ACEOF
955
956 cat <<_ACEOF
ff66d28f
PE
957Installation directories:
958 --prefix=PREFIX install architecture-independent files in PREFIX
ec2075e9 959 [$ac_default_prefix]
ff66d28f 960 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec2075e9 961 [PREFIX]
ff66d28f
PE
962
963By default, \`make install' will install all the files in
964\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
965an installation prefix other than \`$ac_default_prefix' using \`--prefix',
966for instance \`--prefix=\$HOME'.
967
968For better control, use the options below.
969
970Fine tuning of the installation directories:
971 --bindir=DIR user executables [EPREFIX/bin]
972 --sbindir=DIR system admin executables [EPREFIX/sbin]
973 --libexecdir=DIR program executables [EPREFIX/libexec]
7eed349e 974 --datadir=DIR read-only architecture-independent data [PREFIX/share]
ff66d28f
PE
975 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
976 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
977 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
978 --libdir=DIR object code libraries [EPREFIX/lib]
979 --includedir=DIR C header files [PREFIX/include]
980 --oldincludedir=DIR C header files for non-gcc [/usr/include]
7eed349e
PC
981 --infodir=DIR info documentation [PREFIX/info]
982 --mandir=DIR man documentation [PREFIX/man]
ff66d28f
PE
983_ACEOF
984
985 cat <<\_ACEOF
986
987Program names:
988 --program-prefix=PREFIX prepend PREFIX to installed program names
989 --program-suffix=SUFFIX append SUFFIX to installed program names
990 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
991
992System types:
993 --build=BUILD configure for building on BUILD [guessed]
994 --host=HOST cross-compile to build programs to run on HOST [BUILD]
995 --target=TARGET configure for building compilers for TARGET [HOST]
996_ACEOF
997fi
998
999if test -n "$ac_init_help"; then
1000 case $ac_init_help in
fbe057bb 1001 short | recursive ) echo "Configuration of package-unused version-unused:";;
ff66d28f
PE
1002 esac
1003 cat <<\_ACEOF
1004
1005Optional Features:
1006 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1007 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
7eaf73d7
KC
1008 --enable-multilib build many library versions (default)
1009 --enable-maintainer-mode enable make rules and dependencies not useful
1010 (and sometimes confusing) to the casual installer
7eed349e
PC
1011 --enable-shared[=PKGS]
1012 build shared libraries [default=yes]
1013 --enable-static[=PKGS]
1014 build static libraries [default=yes]
1cf3d07d
SE
1015 --enable-fast-install[=PKGS]
1016 optimize for fast installation [default=yes]
ff66d28f 1017 --disable-libtool-lock avoid locking (might break parallel builds)
92eabea2
PE
1018 --disable-hosted-libstdcxx
1019 only build freestanding C++ runtime support
ff66d28f 1020 --enable-sjlj-exceptions
517da0ce
MM
1021 force use of builtin_setjmp for exceptions
1022 [default=auto]
1023 --enable-libstdcxx-pch build pre-compiled libstdc++ headers
1024 [default=$is_hosted]
7eed349e
PC
1025 --enable-cstdio=PACKAGE use target-specific I/O package
1026 [default=stdio]
ff66d28f 1027 --enable-clocale[=MODEL]
7eed349e
PC
1028 use MODEL for target locale package
1029 [default=auto]
517da0ce 1030 --enable-nls use Native Language Support (default)
8b0d6051
BK
1031 --enable-libstdcxx-allocator=KIND
1032 use KIND for target std::allocator base
1033 [default=auto]
7eed349e
PC
1034 --enable-cheaders=KIND construct "C" headers for g++
1035 [default=$c_model]
347669a0
BK
1036 --enable-long-long enable template specializations for 'long long'
1037 [default=yes]
1038 --enable-wchar_t enable template specializations for 'wchar_t'
517da0ce 1039 [default=yes]
7eed349e
PC
1040 --enable-c99 turns on ISO/IEC 9899:1999 support
1041 [default=yes]
517da0ce 1042 --enable-concept-checks use Boost-derived template checks [default=no]
ff66d28f 1043 --enable-libstdcxx-debug-flags=FLAGS
517da0ce
MM
1044 pass compiler FLAGS when building debug library
1045 [default="-g3 -O0"]
ff66d28f
PE
1046 --enable-libstdcxx-debug
1047 build extra debug library [default=no]
1048 --enable-cxx-flags=FLAGS
7eed349e
PC
1049 pass compiler FLAGS when building library
1050 [default=]
1165dc50
PC
1051 --enable-fully-dynamic-string
1052 do not put empty strings in per-process static
1053 memory [default=no]
2fb31455 1054 --enable-tls Use thread-local storage [default=yes]
5f34ed87 1055 --disable-rpath do not hardcode runtime library paths
7eed349e
PC
1056 --enable-linux-futex use the Linux futex system call
1057 [default=default]
517da0ce
MM
1058 --enable-symvers=STYLE enables symbol versioning of the shared library
1059 [default=yes]
98e615b4 1060 --enable-visibility enables visibility safe usage [default=yes]
ff66d28f 1061 --enable-version-specific-runtime-libs
517da0ce
MM
1062 Specify that runtime libraries should be installed
1063 in a compiler-specific directory
ff66d28f
PE
1064
1065Optional Packages:
1066 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1067 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1068 --with-target-subdir=SUBDIR
1069 configuring in a subdirectory
517da0ce
MM
1070 --with-cross-host=HOST configuring with a cross compiler
1071 --with-newlib assume newlib as a system C library
1cf3d07d
SE
1072 --with-pic try to use only PIC/non-PIC objects [default=use
1073 both]
1074 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
ff66d28f 1075 --with-gnu-ld assume the C compiler uses GNU ld default=no
4ffe6e87
BK
1076 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1077 --without-libiconv-prefix don't search for libiconv in includedir and libdir
ff66d28f
PE
1078 --with-gxx-include-dir=DIR
1079 installation directory for include files
1080
1081Some influential environment variables:
517da0ce
MM
1082 CC C compiler command
1083 CFLAGS C compiler flags
1084 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1085 nonstandard directory <lib dir>
7eed349e
PC
1086 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1087 headers in a nonstandard directory <include dir>
517da0ce
MM
1088 CXX C++ compiler command
1089 CXXFLAGS C++ compiler flags
517da0ce 1090 CPP C preprocessor
464aea98 1091 CXXCPP C++ preprocessor
ff66d28f
PE
1092
1093Use these variables to override the choices made by `configure' or to help
1094it to find libraries and programs with nonstandard names/locations.
1095
1096_ACEOF
1097fi
1098
1099if test "$ac_init_help" = "recursive"; then
1100 # If there are subdirs, report their specific --help.
7eed349e 1101 ac_popdir=`pwd`
ff66d28f 1102 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
7eed349e 1103 test -d $ac_dir || continue
ff66d28f
PE
1104 ac_builddir=.
1105
7eed349e 1106if test "$ac_dir" != .; then
ff66d28f 1107 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7eed349e
PC
1108 # A "../" for each directory in $ac_dir_suffix.
1109 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1110else
1111 ac_dir_suffix= ac_top_builddir=
1112fi
ff66d28f
PE
1113
1114case $srcdir in
7eed349e 1115 .) # No --srcdir option. We are building in place.
ff66d28f 1116 ac_srcdir=.
7eed349e
PC
1117 if test -z "$ac_top_builddir"; then
1118 ac_top_srcdir=.
1119 else
1120 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1121 fi ;;
1122 [\\/]* | ?:[\\/]* ) # Absolute path.
ff66d28f 1123 ac_srcdir=$srcdir$ac_dir_suffix;
7eed349e
PC
1124 ac_top_srcdir=$srcdir ;;
1125 *) # Relative path.
1126 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1127 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1128esac
1129
1130# Do not use `cd foo && pwd` to compute absolute paths, because
1131# the directories may not exist.
1132case `pwd` in
1133.) ac_abs_builddir="$ac_dir";;
1134*)
1135 case "$ac_dir" in
1136 .) ac_abs_builddir=`pwd`;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1138 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1139 esac;;
1140esac
1141case $ac_abs_builddir in
1142.) ac_abs_top_builddir=${ac_top_builddir}.;;
1143*)
1144 case ${ac_top_builddir}. in
1145 .) ac_abs_top_builddir=$ac_abs_builddir;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1147 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1148 esac;;
1149esac
1150case $ac_abs_builddir in
1151.) ac_abs_srcdir=$ac_srcdir;;
1152*)
1153 case $ac_srcdir in
1154 .) ac_abs_srcdir=$ac_abs_builddir;;
1155 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1156 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1157 esac;;
1158esac
1159case $ac_abs_builddir in
1160.) ac_abs_top_srcdir=$ac_top_srcdir;;
1161*)
1162 case $ac_top_srcdir in
1163 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1164 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1165 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1166 esac;;
ec2075e9 1167esac
7eed349e
PC
1168
1169 cd $ac_dir
1170 # Check for guested configure; otherwise get Cygnus style configure.
1171 if test -f $ac_srcdir/configure.gnu; then
1172 echo
1173 $SHELL $ac_srcdir/configure.gnu --help=recursive
1174 elif test -f $ac_srcdir/configure; then
1175 echo
1176 $SHELL $ac_srcdir/configure --help=recursive
1177 elif test -f $ac_srcdir/configure.ac ||
1178 test -f $ac_srcdir/configure.in; then
1179 echo
1180 $ac_configure --help
ff66d28f
PE
1181 else
1182 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7eed349e
PC
1183 fi
1184 cd $ac_popdir
ff66d28f
PE
1185 done
1186fi
1187
7eed349e 1188test -n "$ac_init_help" && exit 0
ff66d28f
PE
1189if $ac_init_version; then
1190 cat <<\_ACEOF
fbe057bb 1191package-unused configure version-unused
7eed349e 1192generated by GNU Autoconf 2.59
ff66d28f 1193
7eed349e 1194Copyright (C) 2003 Free Software Foundation, Inc.
ff66d28f
PE
1195This configure script is free software; the Free Software Foundation
1196gives unlimited permission to copy, distribute and modify it.
1197_ACEOF
7eed349e 1198 exit 0
b2dad0e3 1199fi
7eed349e
PC
1200exec 5>config.log
1201cat >&5 <<_ACEOF
ff66d28f
PE
1202This file contains any messages produced by compilers while
1203running configure, to aid debugging if configure makes a mistake.
1204
fbe057bb 1205It was created by package-unused $as_me version-unused, which was
7eed349e 1206generated by GNU Autoconf 2.59. Invocation command line was
ff66d28f
PE
1207
1208 $ $0 $@
1209
1210_ACEOF
1211{
1212cat <<_ASUNAME
1213## --------- ##
1214## Platform. ##
1215## --------- ##
1216
1217hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1218uname -m = `(uname -m) 2>/dev/null || echo unknown`
1219uname -r = `(uname -r) 2>/dev/null || echo unknown`
1220uname -s = `(uname -s) 2>/dev/null || echo unknown`
1221uname -v = `(uname -v) 2>/dev/null || echo unknown`
1222
1223/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1224/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1225
1226/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1227/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1228/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
7eed349e 1229hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
ff66d28f
PE
1230/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1231/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1232/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1233
1234_ASUNAME
1235
1236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1237for as_dir in $PATH
1238do
1239 IFS=$as_save_IFS
1240 test -z "$as_dir" && as_dir=.
1241 echo "PATH: $as_dir"
1242done
1243
1244} >&5
1245
1246cat >&5 <<_ACEOF
1247
1248
1249## ----------- ##
1250## Core tests. ##
1251## ----------- ##
1252
1253_ACEOF
1254
1255
1256# Keep a trace of the command line.
1257# Strip out --no-create and --no-recursion so they do not pile up.
1258# Strip out --silent because we don't want to record it for future runs.
1259# Also quote any args containing shell meta-characters.
1260# Make two passes to allow for proper duplicate-argument suppression.
1261ac_configure_args=
1262ac_configure_args0=
1263ac_configure_args1=
7eed349e 1264ac_sep=
ff66d28f
PE
1265ac_must_keep_next=false
1266for ac_pass in 1 2
1267do
1268 for ac_arg
1269 do
1270 case $ac_arg in
1271 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1273 | -silent | --silent | --silen | --sile | --sil)
1274 continue ;;
7eed349e 1275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
ff66d28f
PE
1276 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1277 esac
1278 case $ac_pass in
1279 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1280 2)
1281 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1282 if test $ac_must_keep_next = true; then
ec2075e9 1283 ac_must_keep_next=false # Got value, back to normal.
ff66d28f 1284 else
ec2075e9
BK
1285 case $ac_arg in
1286 *=* | --config-cache | -C | -disable-* | --disable-* \
1287 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1288 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1289 | -with-* | --with-* | -without-* | --without-* | --x)
1290 case "$ac_configure_args0 " in
1291 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1292 esac
1293 ;;
1294 -* ) ac_must_keep_next=true ;;
1295 esac
ff66d28f 1296 fi
7eed349e
PC
1297 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1298 # Get rid of the leading space.
1299 ac_sep=" "
ff66d28f
PE
1300 ;;
1301 esac
1302 done
1303done
1304$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1305$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1306
1307# When interrupted or exit'd, cleanup temporary files, and complete
1308# config.log. We remove comments because anyway the quotes in there
1309# would cause problems or look ugly.
7eed349e
PC
1310# WARNING: Be sure not to use single quotes in there, as some shells,
1311# such as our DU 5.0 friend, will then `close' the trap.
ff66d28f
PE
1312trap 'exit_status=$?
1313 # Save into config.log some information that might help in debugging.
1314 {
1315 echo
1316
1317 cat <<\_ASBOX
1318## ---------------- ##
1319## Cache variables. ##
1320## ---------------- ##
1321_ASBOX
1322 echo
1323 # The following way of writing the cache mishandles newlines in values,
7eed349e 1324{
ff66d28f 1325 (set) 2>&1 |
7eed349e
PC
1326 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1327 *ac_space=\ *)
ff66d28f 1328 sed -n \
7eed349e
PC
1329 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1330 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1331 ;;
ff66d28f 1332 *)
7eed349e
PC
1333 sed -n \
1334 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
ff66d28f 1335 ;;
7eed349e
PC
1336 esac;
1337}
ff66d28f
PE
1338 echo
1339
1340 cat <<\_ASBOX
1341## ----------------- ##
1342## Output variables. ##
1343## ----------------- ##
1344_ASBOX
1345 echo
1346 for ac_var in $ac_subst_vars
1347 do
7eed349e
PC
1348 eval ac_val=$`echo $ac_var`
1349 echo "$ac_var='"'"'$ac_val'"'"'"
ff66d28f
PE
1350 done | sort
1351 echo
1352
1353 if test -n "$ac_subst_files"; then
1354 cat <<\_ASBOX
7eed349e
PC
1355## ------------- ##
1356## Output files. ##
1357## ------------- ##
ff66d28f
PE
1358_ASBOX
1359 echo
1360 for ac_var in $ac_subst_files
1361 do
7eed349e
PC
1362 eval ac_val=$`echo $ac_var`
1363 echo "$ac_var='"'"'$ac_val'"'"'"
ff66d28f
PE
1364 done | sort
1365 echo
1366 fi
1367
1368 if test -s confdefs.h; then
1369 cat <<\_ASBOX
1370## ----------- ##
1371## confdefs.h. ##
1372## ----------- ##
1373_ASBOX
1374 echo
7eed349e 1375 sed "/^$/d" confdefs.h | sort
ff66d28f
PE
1376 echo
1377 fi
1378 test "$ac_signal" != 0 &&
1379 echo "$as_me: caught signal $ac_signal"
1380 echo "$as_me: exit $exit_status"
1381 } >&5
7eed349e
PC
1382 rm -f core *.core &&
1383 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
ff66d28f 1384 exit $exit_status
7eed349e 1385 ' 0
ff66d28f
PE
1386for ac_signal in 1 2 13 15; do
1387 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1388done
1389ac_signal=0
1390
1391# confdefs.h avoids OS command line length limits that DEFS can exceed.
7eed349e
PC
1392rm -rf conftest* confdefs.h
1393# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1394echo >confdefs.h
ff66d28f
PE
1395
1396# Predefined preprocessor variables.
1397
1398cat >>confdefs.h <<_ACEOF
1399#define PACKAGE_NAME "$PACKAGE_NAME"
1400_ACEOF
1401
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1405_ACEOF
1406
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_VERSION "$PACKAGE_VERSION"
1410_ACEOF
1411
b2dad0e3 1412
ff66d28f
PE
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_STRING "$PACKAGE_STRING"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1420_ACEOF
1421
1422
1423# Let the site file select an alternate cache file if it wants to.
b2dad0e3 1424# Prefer explicitly selected file to automatically selected ones.
7eed349e
PC
1425if test -z "$CONFIG_SITE"; then
1426 if test "x$prefix" != xNONE; then
1427 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1428 else
1429 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1430 fi
b2dad0e3 1431fi
7eed349e 1432for ac_site_file in $CONFIG_SITE; do
b2dad0e3 1433 if test -r "$ac_site_file"; then
ff66d28f
PE
1434 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1435echo "$as_me: loading site script $ac_site_file" >&6;}
1436 sed 's/^/| /' "$ac_site_file" >&5
b2dad0e3
BK
1437 . "$ac_site_file"
1438 fi
1439done
1440
1441if test -r "$cache_file"; then
ff66d28f
PE
1442 # Some versions of bash will fail to source /dev/null (special
1443 # files actually), so we avoid doing that.
1444 if test -f "$cache_file"; then
1445 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1446echo "$as_me: loading cache $cache_file" >&6;}
1447 case $cache_file in
7eed349e
PC
1448 [\\/]* | ?:[\\/]* ) . $cache_file;;
1449 *) . ./$cache_file;;
ff66d28f
PE
1450 esac
1451 fi
b2dad0e3 1452else
ff66d28f
PE
1453 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1454echo "$as_me: creating cache $cache_file" >&6;}
1455 >$cache_file
1456fi
1457
1458# Check that the precious variables saved in the cache have kept the same
1459# value.
1460ac_cache_corrupted=false
7eed349e
PC
1461for ac_var in `(set) 2>&1 |
1462 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
ff66d28f
PE
1463 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1464 eval ac_new_set=\$ac_env_${ac_var}_set
7eed349e
PC
1465 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1466 eval ac_new_val="\$ac_env_${ac_var}_value"
ff66d28f
PE
1467 case $ac_old_set,$ac_new_set in
1468 set,)
1469 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1470echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1471 ac_cache_corrupted=: ;;
1472 ,set)
1473 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1474echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1475 ac_cache_corrupted=: ;;
1476 ,);;
1477 *)
1478 if test "x$ac_old_val" != "x$ac_new_val"; then
ec2075e9 1479 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
ff66d28f 1480echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ec2075e9 1481 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
ff66d28f 1482echo "$as_me: former value: $ac_old_val" >&2;}
ec2075e9 1483 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
ff66d28f 1484echo "$as_me: current value: $ac_new_val" >&2;}
ec2075e9 1485 ac_cache_corrupted=:
ff66d28f
PE
1486 fi;;
1487 esac
1488 # Pass precious variables to config.status.
1489 if test "$ac_new_set" = set; then
1490 case $ac_new_val in
7eed349e
PC
1491 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1492 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
ff66d28f
PE
1493 *) ac_arg=$ac_var=$ac_new_val ;;
1494 esac
1495 case " $ac_configure_args " in
1496 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1497 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1498 esac
1499 fi
1500done
1501if $ac_cache_corrupted; then
1502 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1503echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1504 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1505echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1506 { (exit 1); exit 1; }; }
b2dad0e3
BK
1507fi
1508
7eed349e
PC
1509ac_ext=c
1510ac_cpp='$CPP $CPPFLAGS'
1511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1513ac_compiler_gnu=$ac_cv_c_compiler_gnu
1514
b2dad0e3 1515
e2c20fae 1516
6706f116 1517
33590f13
BK
1518
1519
1520
aebb8c22 1521
aebb8c22 1522
ff66d28f
PE
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
7eed349e 1542 ac_config_headers="$ac_config_headers config.h"
ff66d28f
PE
1543
1544
1545# This works around the fact that libtool configuration may change LD
1546# for this particular configuration, but some shells, instead of
1547# keeping the changes in LD private, export them just because LD is
1548# exported. Only used at the end of this file.
1549### am handles this now? ORIGINAL_LD_FOR_MULTILIBS=$LD
1550
1551# For libtool versioning info, format is CURRENT:REVISION:AGE
5dddb7e5 1552libtool_VERSION=6:10:0
ff66d28f
PE
1553
1554
1555# Find the rest of the source tree framework.
076e5443 1556# Default to --enable-multilib
7eed349e 1557# Check whether --enable-multilib or --disable-multilib was given.
ff66d28f 1558if test "${enable_multilib+set}" = set; then
7eed349e
PC
1559 enableval="$enable_multilib"
1560 case "$enableval" in
ff66d28f
PE
1561 yes) multilib=yes ;;
1562 no) multilib=no ;;
1563 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1564echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1565 { (exit 1); exit 1; }; } ;;
1566 esac
1567else
1568 multilib=yes
7eed349e 1569fi;
ff66d28f
PE
1570
1571# We may get other options which we leave undocumented:
1572# --with-target-subdir, --with-multisrctop, --with-multisubdir
1573# See config-ml.in if you want the gory details.
1574
1575if test "$srcdir" = "."; then
1576 if test "$with_target_subdir" != "."; then
1577 multi_basedir="$srcdir/$with_multisrctop../.."
1578 else
1579 multi_basedir="$srcdir/$with_multisrctop.."
1580 fi
1581else
1582 multi_basedir="$srcdir/.."
1583fi
1584
1585
5b043f08
GK
1586# Even if the default multilib is not a cross compilation,
1587# it may be that some of the other multilibs are.
1588if test $cross_compiling = no && test $multilib = yes \
1589 && test "x${with_multisubdir}" != x ; then
1590 cross_compiling=maybe
1591fi
1592
7eed349e 1593 ac_config_commands="$ac_config_commands default-1"
ff66d28f
PE
1594
1595
076e5443
PB
1596# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1597#
1598# You will slowly go insane if you do not grok the following fact: when
1599# building v3 as part of the compiler, the top-level /target/ becomes the
1600# library's /host/. configure then causes --target to default to --host,
1601# exactly like any other package using autoconf. Therefore, 'target' and
1602# 'host' will always be the same. This makes sense both for native and
1603# cross compilers, just think about it for a little while. :-)
1604#
1605# Also, if v3 is being configured as part of a cross compiler, the top-level
1606# configure script will pass the "real" host as $with_cross_host.
1607#
1608# Do not delete or change the following two lines. For why, see
1609# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1610ac_aux_dir=
7eed349e
PC
1611for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1612 if test -f $ac_dir/install-sh; then
ff66d28f
PE
1613 ac_aux_dir=$ac_dir
1614 ac_install_sh="$ac_aux_dir/install-sh -c"
1615 break
7eed349e 1616 elif test -f $ac_dir/install.sh; then
ff66d28f 1617 ac_aux_dir=$ac_dir
b2dad0e3
BK
1618 ac_install_sh="$ac_aux_dir/install.sh -c"
1619 break
7eed349e 1620 elif test -f $ac_dir/shtool; then
ff66d28f
PE
1621 ac_aux_dir=$ac_dir
1622 ac_install_sh="$ac_aux_dir/shtool install -c"
1623 break
b2dad0e3
BK
1624 fi
1625done
1626if test -z "$ac_aux_dir"; then
7eed349e
PC
1627 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1628echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
ff66d28f 1629 { (exit 1); exit 1; }; }
b2dad0e3 1630fi
7eed349e
PC
1631ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1632ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1633ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
ff66d28f 1634
ff66d28f 1635# Make sure we can run config.sub.
7eed349e
PC
1636$ac_config_sub sun4 >/dev/null 2>&1 ||
1637 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1638echo "$as_me: error: cannot run $ac_config_sub" >&2;}
ff66d28f
PE
1639 { (exit 1); exit 1; }; }
1640
7eed349e
PC
1641echo "$as_me:$LINENO: checking build system type" >&5
1642echo $ECHO_N "checking build system type... $ECHO_C" >&6
ff66d28f
PE
1643if test "${ac_cv_build+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1645else
7eed349e
PC
1646 ac_cv_build_alias=$build_alias
1647test -z "$ac_cv_build_alias" &&
1648 ac_cv_build_alias=`$ac_config_guess`
1649test -z "$ac_cv_build_alias" &&
ff66d28f
PE
1650 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1651echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1652 { (exit 1); exit 1; }; }
7eed349e
PC
1653ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1654 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1655echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
ff66d28f
PE
1656 { (exit 1); exit 1; }; }
1657
1658fi
7eed349e
PC
1659echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1660echo "${ECHO_T}$ac_cv_build" >&6
ff66d28f 1661build=$ac_cv_build
7eed349e
PC
1662build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1663build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1664build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1665
1666
1667echo "$as_me:$LINENO: checking host system type" >&5
1668echo $ECHO_N "checking host system type... $ECHO_C" >&6
ff66d28f
PE
1669if test "${ac_cv_host+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1671else
7eed349e
PC
1672 ac_cv_host_alias=$host_alias
1673test -z "$ac_cv_host_alias" &&
1674 ac_cv_host_alias=$ac_cv_build_alias
1675ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1676 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1677echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
ff66d28f
PE
1678 { (exit 1); exit 1; }; }
1679
1680fi
7eed349e
PC
1681echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1682echo "${ECHO_T}$ac_cv_host" >&6
ff66d28f 1683host=$ac_cv_host
7eed349e
PC
1684host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1685host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1686host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1687
1688
1689echo "$as_me:$LINENO: checking target system type" >&5
1690echo $ECHO_N "checking target system type... $ECHO_C" >&6
ff66d28f
PE
1691if test "${ac_cv_target+set}" = set; then
1692 echo $ECHO_N "(cached) $ECHO_C" >&6
1693else
7eed349e
PC
1694 ac_cv_target_alias=$target_alias
1695test "x$ac_cv_target_alias" = "x" &&
1696 ac_cv_target_alias=$ac_cv_host_alias
1697ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1698 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1699echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
ff66d28f
PE
1700 { (exit 1); exit 1; }; }
1701
1702fi
7eed349e
PC
1703echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1704echo "${ECHO_T}$ac_cv_target" >&6
ff66d28f 1705target=$ac_cv_target
7eed349e
PC
1706target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1707target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1708target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
b2dad0e3 1709
b2dad0e3
BK
1710
1711# The aliases save the names the user supplied, while $host etc.
1712# will get canonicalized.
ff66d28f
PE
1713test -n "$target_alias" &&
1714 test "$program_prefix$program_suffix$program_transform_name" = \
1715 NONENONEs,x,x, &&
1716 program_prefix=${target_alias}-
1717target_alias=${target_alias-$host_alias}
1718
1719# Handy for debugging:
1720#AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1721
0df3f383
PE
1722if test "$build" != "$host"; then
1723 # We are being configured with some form of cross compiler.
1724 GLIBCXX_IS_NATIVE=false
0646b059
GK
1725 case "$host","$target" in
1726 # Darwin crosses can use the host system's libraries and headers,
1727 # because of the fat library support. Of course, it must be the
1728 # same version of Darwin on both sides. Allow the user to
1729 # just say --target=foo-darwin without a version number to mean
1730 # "the version on this system".
1731 *-*-darwin*,*-*-darwin*)
1732 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
1733 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
1734 if test $hostos = $targetos -o $targetos = darwin ; then
1735 GLIBCXX_IS_NATIVE=true
1736 fi
1737 ;;
1738
1739 *)
3a24bf5d 1740
0646b059
GK
1741 ;;
1742 esac
0df3f383
PE
1743else
1744 GLIBCXX_IS_NATIVE=true
1745fi
1746
ff66d28f
PE
1747# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1748# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1749# 1.x: minimum required version
1750# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1751# of other PACKAGE_* variables will, however, and there's nothing
fbe057bb 1752# we can do about that; they come from AC_INIT).
ff66d28f
PE
1753# foreign: we don't follow the normal rules for GNU packages (no COPYING
1754# file in the top srcdir, etc, etc), so stop complaining.
1755# no-dependencies: turns off auto dependency generation (just for now)
2d52e9e3
PE
1756# -Wall: turns on all automake warnings...
1757# -Wno-portability: ...except this one, since GNU make is now required.
7eed349e 1758am__api_version="1.9"
ff66d28f
PE
1759# Find a good install program. We prefer a C program (faster),
1760# so one script is as good as another. But avoid the broken or
1761# incompatible versions:
1762# SysV /etc/install, /usr/sbin/install
1763# SunOS /usr/etc/install
1764# IRIX /sbin/install
1765# AIX /bin/install
1766# AmigaOS /C/install, which installs bootblocks on floppy discs
1767# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1768# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1769# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ec2075e9 1770# OS/2's system install, which has a completely different semantic
ff66d28f 1771# ./install, which can be erroneously created by make from ./install.sh.
38d24731 1772# Reject install programs that cannot install multiple files.
7eed349e
PC
1773echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1774echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
ff66d28f
PE
1775if test -z "$INSTALL"; then
1776if test "${ac_cv_path_install+set}" = set; then
1777 echo $ECHO_N "(cached) $ECHO_C" >&6
1778else
1779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780for as_dir in $PATH
1781do
1782 IFS=$as_save_IFS
1783 test -z "$as_dir" && as_dir=.
1784 # Account for people who put trailing slashes in PATH elements.
1785case $as_dir/ in
1786 ./ | .// | /cC/* | \
1787 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ec2075e9 1788 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
ff66d28f
PE
1789 /usr/ucb/* ) ;;
1790 *)
1791 # OSF1 and SCO ODT 3.0 have their own names for install.
1792 # Don't use installbsd from OSF since it installs stuff as root
1793 # by default.
1794 for ac_prog in ginstall scoinst install; do
1795 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 1796 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
ec2075e9
BK
1797 if test $ac_prog = install &&
1798 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1799 # AIX install. It has an incompatible calling convention.
1800 :
1801 elif test $ac_prog = install &&
1802 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1803 # program-specific install script used by HP pwplus--don't use.
1804 :
1805 else
38d24731
RW
1806 rm -rf conftest.one conftest.two conftest.dir
1807 echo one > conftest.one
1808 echo two > conftest.two
1809 mkdir conftest.dir
1810 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1811 test -s conftest.one && test -s conftest.two &&
1812 test -s conftest.dir/conftest.one &&
1813 test -s conftest.dir/conftest.two
1814 then
1815 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1816 break 3
1817 fi
ec2075e9
BK
1818 fi
1819 fi
ff66d28f
PE
1820 done
1821 done
1822 ;;
b2dad0e3 1823esac
ff66d28f 1824done
b2dad0e3 1825
38d24731 1826rm -rf conftest.one conftest.two conftest.dir
b2dad0e3 1827
b2dad0e3 1828fi
ff66d28f
PE
1829 if test "${ac_cv_path_install+set}" = set; then
1830 INSTALL=$ac_cv_path_install
1831 else
38d24731
RW
1832 # As a last resort, use the slow shell script. Don't cache a
1833 # value for INSTALL within a source directory, because that will
ff66d28f 1834 # break other packages using the cache if that directory is
38d24731 1835 # removed, or if the value is a relative name.
ff66d28f
PE
1836 INSTALL=$ac_install_sh
1837 fi
1838fi
7eed349e
PC
1839echo "$as_me:$LINENO: result: $INSTALL" >&5
1840echo "${ECHO_T}$INSTALL" >&6
b2dad0e3 1841
ff66d28f
PE
1842# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1843# It thinks the first close brace ends the variable substitution.
1844test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
b2dad0e3 1845
ff66d28f 1846test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
b2dad0e3 1847
ff66d28f 1848test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
b2dad0e3 1849
7eed349e
PC
1850echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1851echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
ff66d28f
PE
1852# Just in case
1853sleep 1
1854echo timestamp > conftest.file
1855# Do `set' in a subshell so we don't clobber the current shell's
1856# arguments. Must try -L first in case configure is actually a
1857# symlink; some systems play weird games with the mod time of symlinks
1858# (eg FreeBSD returns the mod time of the symlink's containing
1859# directory).
1860if (
1861 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1862 if test "$*" = "X"; then
1863 # -L didn't work.
1864 set X `ls -t $srcdir/configure conftest.file`
1865 fi
1866 rm -f conftest.file
1867 if test "$*" != "X $srcdir/configure conftest.file" \
1868 && test "$*" != "X conftest.file $srcdir/configure"; then
b2dad0e3 1869
ff66d28f
PE
1870 # If neither matched, then we have a broken ls. This can happen
1871 # if, for instance, CONFIG_SHELL is bash and it inherits a
1872 # broken ls alias from the environment. This has actually
1873 # happened. Such a system could not be considered "sane".
1874 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1875alias in your environment" >&5
1876echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1877alias in your environment" >&2;}
1878 { (exit 1); exit 1; }; }
1879 fi
b2dad0e3 1880
ff66d28f
PE
1881 test "$2" = conftest.file
1882 )
1883then
1884 # Ok.
1885 :
33590f13 1886else
ff66d28f
PE
1887 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1888Check your system clock" >&5
1889echo "$as_me: error: newly created file is older than distributed files!
1890Check your system clock" >&2;}
1891 { (exit 1); exit 1; }; }
33590f13 1892fi
7eed349e
PC
1893echo "$as_me:$LINENO: result: yes" >&5
1894echo "${ECHO_T}yes" >&6
ff66d28f 1895test "$program_prefix" != NONE &&
7eed349e 1896 program_transform_name="s,^,$program_prefix,;$program_transform_name"
ff66d28f
PE
1897# Use a double $ so make ignores it.
1898test "$program_suffix" != NONE &&
7eed349e 1899 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
ff66d28f
PE
1900# Double any \ or $. echo might interpret backslashes.
1901# By default was `s,x,x', remove it if useless.
1902cat <<\_ACEOF >conftest.sed
1903s/[\\$]/&&/g;s/;s,x,x,$//
1904_ACEOF
1905program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
7eed349e 1906rm conftest.sed
b2dad0e3 1907
ff66d28f
PE
1908# expand $ac_aux_dir to an absolute path
1909am_aux_dir=`cd $ac_aux_dir && pwd`
33590f13 1910
ff66d28f
PE
1911test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1912# Use eval to expand $SHELL
1913if eval "$MISSING --run true"; then
1914 am_missing_run="$MISSING --run "
b2dad0e3 1915else
ff66d28f
PE
1916 am_missing_run=
1917 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1918echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
33590f13
BK
1919fi
1920
7eed349e
PC
1921if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1922 # We used to keeping the `.' as first argument, in order to
1923 # allow $(mkdir_p) to be used without argument. As in
1924 # $(mkdir_p) $(somedir)
1925 # where $(somedir) is conditionally defined. However this is wrong
1926 # for two reasons:
1927 # 1. if the package is installed by a user who cannot write `.'
1928 # make install will fail,
1929 # 2. the above comment should most certainly read
1930 # $(mkdir_p) $(DESTDIR)$(somedir)
1931 # so it does not work when $(somedir) is undefined and
1932 # $(DESTDIR) is not.
1933 # To support the latter case, we have to write
1934 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1935 # so the `.' trick is pointless.
1936 mkdir_p='mkdir -p --'
1937else
1938 # On NextStep and OpenStep, the `mkdir' command does not
1939 # recognize any option. It will interpret all options as
1940 # directories to create, and then abort because `.' already
1941 # exists.
1942 for d in ./-p ./--version;
1943 do
1944 test -d $d && rmdir $d
1945 done
1946 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1947 if test -f "$ac_aux_dir/mkinstalldirs"; then
1948 mkdir_p='$(mkinstalldirs)'
7eaf73d7 1949 else
7eed349e 1950 mkdir_p='$(install_sh) -d'
7eaf73d7
KC
1951 fi
1952fi
1953
ff66d28f 1954for ac_prog in gawk mawk nawk awk
c98b201b 1955do
ff66d28f 1956 # Extract the first word of "$ac_prog", so it can be a program name with args.
c98b201b 1957set dummy $ac_prog; ac_word=$2
7eed349e
PC
1958echo "$as_me:$LINENO: checking for $ac_word" >&5
1959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
1960if test "${ac_cv_prog_AWK+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
c98b201b
PE
1962else
1963 if test -n "$AWK"; then
1964 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1965else
ff66d28f
PE
1966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967for as_dir in $PATH
1968do
1969 IFS=$as_save_IFS
1970 test -z "$as_dir" && as_dir=.
1971 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 1972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
1973 ac_cv_prog_AWK="$ac_prog"
1974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1975 break 2
1976 fi
1977done
1978done
1979
c98b201b
PE
1980fi
1981fi
ff66d28f 1982AWK=$ac_cv_prog_AWK
c98b201b 1983if test -n "$AWK"; then
7eed349e
PC
1984 echo "$as_me:$LINENO: result: $AWK" >&5
1985echo "${ECHO_T}$AWK" >&6
c98b201b 1986else
7eed349e
PC
1987 echo "$as_me:$LINENO: result: no" >&5
1988echo "${ECHO_T}no" >&6
c98b201b
PE
1989fi
1990
ff66d28f 1991 test -n "$AWK" && break
c98b201b
PE
1992done
1993
7eed349e
PC
1994echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1995echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1996set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1997if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
ff66d28f
PE
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
1999else
2000 cat >conftest.make <<\_ACEOF
2001all:
7eed349e 2002 @echo 'ac_maketemp="$(MAKE)"'
ff66d28f
PE
2003_ACEOF
2004# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7eed349e
PC
2005eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2006if test -n "$ac_maketemp"; then
2007 eval ac_cv_prog_make_${ac_make}_set=yes
2008else
2009 eval ac_cv_prog_make_${ac_make}_set=no
2010fi
ff66d28f 2011rm -f conftest.make
33590f13 2012fi
7eed349e
PC
2013if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2014 echo "$as_me:$LINENO: result: yes" >&5
2015echo "${ECHO_T}yes" >&6
ff66d28f 2016 SET_MAKE=
33590f13 2017else
7eed349e
PC
2018 echo "$as_me:$LINENO: result: no" >&5
2019echo "${ECHO_T}no" >&6
ff66d28f 2020 SET_MAKE="MAKE=${MAKE-make}"
33590f13
BK
2021fi
2022
ff66d28f
PE
2023rm -rf .tst 2>/dev/null
2024mkdir .tst 2>/dev/null
2025if test -d .tst; then
2026 am__leading_dot=.
2027else
2028 am__leading_dot=_
2029fi
2030rmdir .tst 2>/dev/null
33590f13 2031
7eed349e
PC
2032# test to see if srcdir already configured
2033if test "`cd $srcdir && pwd`" != "`pwd`" &&
2034 test -f $srcdir/config.status; then
2035 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
ff66d28f
PE
2036echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2037 { (exit 1); exit 1; }; }
33590f13
BK
2038fi
2039
ff66d28f
PE
2040# test whether we have cygpath
2041if test -z "$CYGPATH_W"; then
2042 if (cygpath --version) >/dev/null 2>/dev/null; then
2043 CYGPATH_W='cygpath -w'
2044 else
2045 CYGPATH_W=echo
2046 fi
33590f13
BK
2047fi
2048
2049
ff66d28f 2050# Define the identity of the package.
fbe057bb 2051 PACKAGE='libstdc++'
ff66d28f 2052 VERSION='version-unused'
b731048b
BK
2053
2054
ff66d28f 2055# Some tools Automake needs.
33590f13 2056
ff66d28f 2057ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
33590f13 2058
33590f13 2059
ff66d28f 2060AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
33590f13 2061
ff66d28f
PE
2062
2063AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2064
2065
2066AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2067
2068
2069MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2070
7eed349e 2071install_sh=${install_sh-"$am_aux_dir/install-sh"}
ff66d28f
PE
2072
2073# Installed binaries are usually stripped using `strip' when the user
2074# run `make install-strip'. However `strip' might not be the right
2075# tool to use in cross-compilation environments, therefore Automake
2076# will honor the `STRIP' environment variable to overrule this program.
2077if test "$cross_compiling" != no; then
2078 if test -n "$ac_tool_prefix"; then
2079 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2080set dummy ${ac_tool_prefix}strip; ac_word=$2
7eed349e
PC
2081echo "$as_me:$LINENO: checking for $ac_word" >&5
2082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
2083if test "${ac_cv_prog_STRIP+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
33590f13 2085else
ff66d28f
PE
2086 if test -n "$STRIP"; then
2087 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
33590f13 2088else
ff66d28f
PE
2089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090for as_dir in $PATH
2091do
2092 IFS=$as_save_IFS
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 2095 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
2096 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2098 break 2
2099 fi
2100done
2101done
2102
33590f13
BK
2103fi
2104fi
ff66d28f
PE
2105STRIP=$ac_cv_prog_STRIP
2106if test -n "$STRIP"; then
7eed349e
PC
2107 echo "$as_me:$LINENO: result: $STRIP" >&5
2108echo "${ECHO_T}$STRIP" >&6
33590f13 2109else
7eed349e
PC
2110 echo "$as_me:$LINENO: result: no" >&5
2111echo "${ECHO_T}no" >&6
33590f13
BK
2112fi
2113
ff66d28f
PE
2114fi
2115if test -z "$ac_cv_prog_STRIP"; then
2116 ac_ct_STRIP=$STRIP
2117 # Extract the first word of "strip", so it can be a program name with args.
2118set dummy strip; ac_word=$2
7eed349e
PC
2119echo "$as_me:$LINENO: checking for $ac_word" >&5
2120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
2121if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
33590f13 2123else
ff66d28f
PE
2124 if test -n "$ac_ct_STRIP"; then
2125 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
33590f13 2126else
ff66d28f
PE
2127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128for as_dir in $PATH
2129do
2130 IFS=$as_save_IFS
2131 test -z "$as_dir" && as_dir=.
2132 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 2133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
2134 ac_cv_prog_ac_ct_STRIP="strip"
2135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136 break 2
b2dad0e3 2137 fi
ff66d28f
PE
2138done
2139done
2140
7eed349e 2141 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
b2dad0e3
BK
2142fi
2143fi
ff66d28f
PE
2144ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2145if test -n "$ac_ct_STRIP"; then
7eed349e
PC
2146 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2147echo "${ECHO_T}$ac_ct_STRIP" >&6
b2dad0e3 2148else
7eed349e
PC
2149 echo "$as_me:$LINENO: result: no" >&5
2150echo "${ECHO_T}no" >&6
b2dad0e3
BK
2151fi
2152
7eed349e 2153 STRIP=$ac_ct_STRIP
b2dad0e3 2154else
ff66d28f 2155 STRIP="$ac_cv_prog_STRIP"
b2dad0e3 2156fi
ff66d28f 2157
b2dad0e3 2158fi
7eed349e 2159INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
b2dad0e3 2160
ff66d28f
PE
2161# We need awk for the "check" target. The system "awk" is bad on
2162# some platforms.
a60945f8
PC
2163# Always define AMTAR for backward compatibility.
2164
2165AMTAR=${AMTAR-"${am_missing_run}tar"}
2166
2167am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2168
2169
b2dad0e3 2170
b2dad0e3 2171
b2dad0e3 2172
ff66d28f 2173
3a24bf5d
KC
2174
2175
2176
2177
ff66d28f
PE
2178# Runs configure.host, finds CC, CXX, and assorted other critical bits. Sets
2179# up critical shell variables.
2180
464aea98
JM
2181ac_ext=c
2182ac_cpp='$CPP $CPPFLAGS'
2183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2185ac_compiler_gnu=$ac_cv_c_compiler_gnu
7eed349e
PC
2186echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2187echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
464aea98
JM
2188# On Suns, sometimes $CPP names a directory.
2189if test -n "$CPP" && test -d "$CPP"; then
2190 CPP=
2191fi
2192if test -z "$CPP"; then
2193 if test "${ac_cv_prog_CPP+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2195else
2196 # Double quotes because CPP needs to be expanded
2197 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2198 do
2199 ac_preproc_ok=false
2200for ac_c_preproc_warn_flag in '' yes
2201do
2202 # Use a header file that comes with gcc, so configuring glibc
2203 # with a fresh cross-compiler works.
2204 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2205 # <limits.h> exists even on freestanding compilers.
2206 # On the NeXT, cc -E runs the code through the compiler's parser,
2207 # not just through cpp. "Syntax error" is here to catch this case.
2208 cat >conftest.$ac_ext <<_ACEOF
2209/* confdefs.h. */
2210_ACEOF
2211cat confdefs.h >>conftest.$ac_ext
2212cat >>conftest.$ac_ext <<_ACEOF
2213/* end confdefs.h. */
2214#ifdef __STDC__
2215# include <limits.h>
2216#else
2217# include <assert.h>
2218#endif
2219 Syntax error
2220_ACEOF
7eed349e
PC
2221if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
464aea98
JM
2223 ac_status=$?
2224 grep -v '^ *+' conftest.er1 >conftest.err
2225 rm -f conftest.er1
2226 cat conftest.err >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
2228 (exit $ac_status); } >/dev/null; then
2229 if test -s conftest.err; then
2230 ac_cpp_err=$ac_c_preproc_warn_flag
2231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2232 else
2233 ac_cpp_err=
2234 fi
2235else
2236 ac_cpp_err=yes
2237fi
2238if test -z "$ac_cpp_err"; then
464aea98
JM
2239 :
2240else
2241 echo "$as_me: failed program was:" >&5
2242sed 's/^/| /' conftest.$ac_ext >&5
2243
2244 # Broken: fails on valid input.
2245continue
2246fi
2247rm -f conftest.err conftest.$ac_ext
2248
7eed349e 2249 # OK, works on sane cases. Now check whether non-existent headers
464aea98
JM
2250 # can be detected and how.
2251 cat >conftest.$ac_ext <<_ACEOF
2252/* confdefs.h. */
2253_ACEOF
2254cat confdefs.h >>conftest.$ac_ext
2255cat >>conftest.$ac_ext <<_ACEOF
2256/* end confdefs.h. */
2257#include <ac_nonexistent.h>
2258_ACEOF
7eed349e
PC
2259if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
464aea98
JM
2261 ac_status=$?
2262 grep -v '^ *+' conftest.er1 >conftest.err
2263 rm -f conftest.er1
2264 cat conftest.err >&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
2266 (exit $ac_status); } >/dev/null; then
2267 if test -s conftest.err; then
2268 ac_cpp_err=$ac_c_preproc_warn_flag
2269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2270 else
2271 ac_cpp_err=
2272 fi
2273else
2274 ac_cpp_err=yes
2275fi
2276if test -z "$ac_cpp_err"; then
464aea98
JM
2277 # Broken: success on invalid input.
2278continue
2279else
2280 echo "$as_me: failed program was:" >&5
2281sed 's/^/| /' conftest.$ac_ext >&5
2282
2283 # Passes both tests.
2284ac_preproc_ok=:
2285break
2286fi
2287rm -f conftest.err conftest.$ac_ext
2288
2289done
2290# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2291rm -f conftest.err conftest.$ac_ext
2292if $ac_preproc_ok; then
2293 break
2294fi
2295
2296 done
2297 ac_cv_prog_CPP=$CPP
2298
2299fi
2300 CPP=$ac_cv_prog_CPP
2301else
2302 ac_cv_prog_CPP=$CPP
2303fi
7eed349e
PC
2304echo "$as_me:$LINENO: result: $CPP" >&5
2305echo "${ECHO_T}$CPP" >&6
464aea98
JM
2306ac_preproc_ok=false
2307for ac_c_preproc_warn_flag in '' yes
2308do
2309 # Use a header file that comes with gcc, so configuring glibc
2310 # with a fresh cross-compiler works.
2311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2312 # <limits.h> exists even on freestanding compilers.
2313 # On the NeXT, cc -E runs the code through the compiler's parser,
2314 # not just through cpp. "Syntax error" is here to catch this case.
2315 cat >conftest.$ac_ext <<_ACEOF
2316/* confdefs.h. */
2317_ACEOF
2318cat confdefs.h >>conftest.$ac_ext
2319cat >>conftest.$ac_ext <<_ACEOF
2320/* end confdefs.h. */
2321#ifdef __STDC__
2322# include <limits.h>
2323#else
2324# include <assert.h>
2325#endif
2326 Syntax error
2327_ACEOF
7eed349e
PC
2328if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
464aea98
JM
2330 ac_status=$?
2331 grep -v '^ *+' conftest.er1 >conftest.err
2332 rm -f conftest.er1
2333 cat conftest.err >&5
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
2335 (exit $ac_status); } >/dev/null; then
2336 if test -s conftest.err; then
2337 ac_cpp_err=$ac_c_preproc_warn_flag
2338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2339 else
2340 ac_cpp_err=
2341 fi
2342else
2343 ac_cpp_err=yes
2344fi
2345if test -z "$ac_cpp_err"; then
464aea98
JM
2346 :
2347else
2348 echo "$as_me: failed program was:" >&5
2349sed 's/^/| /' conftest.$ac_ext >&5
2350
2351 # Broken: fails on valid input.
2352continue
2353fi
2354rm -f conftest.err conftest.$ac_ext
2355
7eed349e 2356 # OK, works on sane cases. Now check whether non-existent headers
464aea98
JM
2357 # can be detected and how.
2358 cat >conftest.$ac_ext <<_ACEOF
2359/* confdefs.h. */
2360_ACEOF
2361cat confdefs.h >>conftest.$ac_ext
2362cat >>conftest.$ac_ext <<_ACEOF
2363/* end confdefs.h. */
2364#include <ac_nonexistent.h>
2365_ACEOF
7eed349e
PC
2366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
464aea98
JM
2368 ac_status=$?
2369 grep -v '^ *+' conftest.er1 >conftest.err
2370 rm -f conftest.er1
2371 cat conftest.err >&5
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
2373 (exit $ac_status); } >/dev/null; then
2374 if test -s conftest.err; then
2375 ac_cpp_err=$ac_c_preproc_warn_flag
2376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2377 else
2378 ac_cpp_err=
2379 fi
2380else
2381 ac_cpp_err=yes
2382fi
2383if test -z "$ac_cpp_err"; then
464aea98
JM
2384 # Broken: success on invalid input.
2385continue
2386else
2387 echo "$as_me: failed program was:" >&5
2388sed 's/^/| /' conftest.$ac_ext >&5
2389
2390 # Passes both tests.
2391ac_preproc_ok=:
2392break
2393fi
2394rm -f conftest.err conftest.$ac_ext
2395
2396done
2397# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2398rm -f conftest.err conftest.$ac_ext
2399if $ac_preproc_ok; then
2400 :
2401else
2402 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2403See \`config.log' for more details." >&5
2404echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2405See \`config.log' for more details." >&2;}
2406 { (exit 1); exit 1; }; }
2407fi
2408
2409ac_ext=c
2410ac_cpp='$CPP $CPPFLAGS'
2411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2413ac_compiler_gnu=$ac_cv_c_compiler_gnu
2414
2415
7eed349e
PC
2416echo "$as_me:$LINENO: checking for egrep" >&5
2417echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2418if test "${ac_cv_prog_egrep+set}" = set; then
464aea98
JM
2419 echo $ECHO_N "(cached) $ECHO_C" >&6
2420else
7eed349e
PC
2421 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2422 then ac_cv_prog_egrep='grep -E'
2423 else ac_cv_prog_egrep='egrep'
464aea98
JM
2424 fi
2425fi
7eed349e
PC
2426echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2427echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2428 EGREP=$ac_cv_prog_egrep
464aea98
JM
2429
2430
2431
82ba99d5
PE
2432 # Keep these sync'd with the list in Makefile.am. The first provides an
2433 # expandable list at autoconf time; the second provides an expandable list
2434 # (i.e., shell variable) at configure time.
2435
4312e020 2436 SUBDIRS='include libmath libsupc++ src doc po testsuite'
82ba99d5 2437
ff66d28f
PE
2438 # These need to be absolute paths, yet at the same time need to
2439 # canonicalize only relative paths, because then amd will not unmount
2440 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
2441 glibcxx_builddir=`${PWDCMD-pwd}`
2442 case $srcdir in
2443 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
2444 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
2445 esac
2446 toplevel_srcdir=${glibcxx_srcdir}/..
2447
2448
2449
2450
2451 # We use these options to decide which functions to include. They are
2452 # set from the top level.
2453
7eed349e 2454# Check whether --with-target-subdir or --without-target-subdir was given.
ff66d28f 2455if test "${with_target_subdir+set}" = set; then
7eed349e 2456 withval="$with_target_subdir"
ff66d28f 2457
7eed349e 2458fi;
ff66d28f
PE
2459
2460
7eed349e 2461# Check whether --with-cross-host or --without-cross-host was given.
ff66d28f 2462if test "${with_cross_host+set}" = set; then
7eed349e 2463 withval="$with_cross_host"
ff66d28f 2464
7eed349e 2465fi;
ff66d28f
PE
2466
2467
7eed349e 2468# Check whether --with-newlib or --without-newlib was given.
ff66d28f 2469if test "${with_newlib+set}" = set; then
7eed349e 2470 withval="$with_newlib"
ff66d28f 2471
7eed349e 2472fi;
ff66d28f 2473
f6dda651
PE
2474 # We're almost certainly being configured before anything else which uses
2475 # C++, so all of our AC_PROG_* discoveries will be cached. It's vital that
2476 # we not cache the value of CXX that we "discover" here, because it's set
2477 # to something unique for us and libjava. Other target libraries need to
2478 # find CXX for themselves. We yank the rug out from under the normal AC_*
2479 # process by sneakily renaming the cache variable. This also lets us debug
2480 # the value of "our" CXX in postmortems.
2481 #
2482 # We must also force CXX to /not/ be a precious variable, otherwise the
2483 # wrong (non-multilib-adjusted) value will be used in multilibs. This
2484 # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS. And as a side
2485 # effect, CXXFLAGS is no longer automagically subst'd, so we have to do
2486 # that ourselves. Un-preciousing AC_PROG_CC also affects CC and CFLAGS.
2487 #
2488 # -fno-builtin must be present here so that a non-conflicting form of
2489 # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
2490
2491
2492
2493
2494 save_CXXFLAGS="$CXXFLAGS"
2495 CXXFLAGS="$CXXFLAGS -fno-builtin"
ff66d28f
PE
2496 ac_ext=c
2497ac_cpp='$CPP $CPPFLAGS'
2498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2500ac_compiler_gnu=$ac_cv_c_compiler_gnu
2501if test -n "$ac_tool_prefix"; then
2502 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2503set dummy ${ac_tool_prefix}gcc; ac_word=$2
7eed349e
PC
2504echo "$as_me:$LINENO: checking for $ac_word" >&5
2505echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
2506if test "${ac_cv_prog_CC+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2508else
ff66d28f
PE
2509 if test -n "$CC"; then
2510 ac_cv_prog_CC="$CC" # Let the user override the test.
b2dad0e3 2511else
ff66d28f
PE
2512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 2518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
2519 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521 break 2
2522 fi
2523done
2524done
2525
b2dad0e3
BK
2526fi
2527fi
ff66d28f
PE
2528CC=$ac_cv_prog_CC
2529if test -n "$CC"; then
7eed349e
PC
2530 echo "$as_me:$LINENO: result: $CC" >&5
2531echo "${ECHO_T}$CC" >&6
b2dad0e3 2532else
7eed349e
PC
2533 echo "$as_me:$LINENO: result: no" >&5
2534echo "${ECHO_T}no" >&6
b2dad0e3
BK
2535fi
2536
ff66d28f
PE
2537fi
2538if test -z "$ac_cv_prog_CC"; then
2539 ac_ct_CC=$CC
2540 # Extract the first word of "gcc", so it can be a program name with args.
2541set dummy gcc; ac_word=$2
7eed349e
PC
2542echo "$as_me:$LINENO: checking for $ac_word" >&5
2543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
2544if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2546else
ff66d28f
PE
2547 if test -n "$ac_ct_CC"; then
2548 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b2dad0e3 2549else
ff66d28f
PE
2550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551for as_dir in $PATH
2552do
2553 IFS=$as_save_IFS
2554 test -z "$as_dir" && as_dir=.
2555 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 2556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
2557 ac_cv_prog_ac_ct_CC="gcc"
2558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2559 break 2
2560 fi
2561done
2562done
2563
b2dad0e3
BK
2564fi
2565fi
ff66d28f
PE
2566ac_ct_CC=$ac_cv_prog_ac_ct_CC
2567if test -n "$ac_ct_CC"; then
7eed349e
PC
2568 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2569echo "${ECHO_T}$ac_ct_CC" >&6
b2dad0e3 2570else
7eed349e
PC
2571 echo "$as_me:$LINENO: result: no" >&5
2572echo "${ECHO_T}no" >&6
b2dad0e3 2573fi
b2dad0e3 2574
7eed349e 2575 CC=$ac_ct_CC
ff66d28f
PE
2576else
2577 CC="$ac_cv_prog_CC"
b2dad0e3
BK
2578fi
2579
ff66d28f 2580if test -z "$CC"; then
7eed349e
PC
2581 if test -n "$ac_tool_prefix"; then
2582 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ff66d28f 2583set dummy ${ac_tool_prefix}cc; ac_word=$2
7eed349e
PC
2584echo "$as_me:$LINENO: checking for $ac_word" >&5
2585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
2586if test "${ac_cv_prog_CC+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2588else
2589 if test -n "$CC"; then
2590 ac_cv_prog_CC="$CC" # Let the user override the test.
2591else
2592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH
2594do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 2598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
2599 ac_cv_prog_CC="${ac_tool_prefix}cc"
2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2601 break 2
b2dad0e3 2602 fi
ff66d28f
PE
2603done
2604done
93b85586 2605
ff66d28f
PE
2606fi
2607fi
2608CC=$ac_cv_prog_CC
2609if test -n "$CC"; then
7eed349e
PC
2610 echo "$as_me:$LINENO: result: $CC" >&5
2611echo "${ECHO_T}$CC" >&6
e08c673e 2612else
7eed349e
PC
2613 echo "$as_me:$LINENO: result: no" >&5
2614echo "${ECHO_T}no" >&6
e08c673e
PC
2615fi
2616
7eed349e
PC
2617fi
2618if test -z "$ac_cv_prog_CC"; then
2619 ac_ct_CC=$CC
2620 # Extract the first word of "cc", so it can be a program name with args.
2621set dummy cc; ac_word=$2
2622echo "$as_me:$LINENO: checking for $ac_word" >&5
2623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2624if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2626else
2627 if test -n "$ac_ct_CC"; then
2628 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2629else
2630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631for as_dir in $PATH
2632do
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2637 ac_cv_prog_ac_ct_CC="cc"
2638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 break 2
8a165db0 2640 fi
7eed349e
PC
2641done
2642done
2643
2644fi
2645fi
2646ac_ct_CC=$ac_cv_prog_ac_ct_CC
2647if test -n "$ac_ct_CC"; then
2648 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2649echo "${ECHO_T}$ac_ct_CC" >&6
2650else
2651 echo "$as_me:$LINENO: result: no" >&5
2652echo "${ECHO_T}no" >&6
2653fi
2654
2655 CC=$ac_ct_CC
2656else
2657 CC="$ac_cv_prog_CC"
2658fi
2659
ff66d28f
PE
2660fi
2661if test -z "$CC"; then
2662 # Extract the first word of "cc", so it can be a program name with args.
2663set dummy cc; ac_word=$2
7eed349e
PC
2664echo "$as_me:$LINENO: checking for $ac_word" >&5
2665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
2666if test "${ac_cv_prog_CC+set}" = set; then
2667 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2668else
ff66d28f
PE
2669 if test -n "$CC"; then
2670 ac_cv_prog_CC="$CC" # Let the user override the test.
b2dad0e3 2671else
ff66d28f
PE
2672 ac_prog_rejected=no
2673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674for as_dir in $PATH
2675do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 2679 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
2680 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2681 ac_prog_rejected=yes
2682 continue
2683 fi
2684 ac_cv_prog_CC="cc"
2685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 break 2
2687 fi
2688done
2689done
2690
2691if test $ac_prog_rejected = yes; then
2692 # We found a bogon in the path, so make sure we never use it.
2693 set dummy $ac_cv_prog_CC
2694 shift
2695 if test $# != 0; then
2696 # We chose a different compiler from the bogus one.
2697 # However, it has the same basename, so the bogon will be chosen
2698 # first if we set CC to just the basename; use the full file name.
2699 shift
2700 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2701 fi
b2dad0e3
BK
2702fi
2703fi
ff66d28f
PE
2704fi
2705CC=$ac_cv_prog_CC
2706if test -n "$CC"; then
7eed349e
PC
2707 echo "$as_me:$LINENO: result: $CC" >&5
2708echo "${ECHO_T}$CC" >&6
b2dad0e3 2709else
7eed349e
PC
2710 echo "$as_me:$LINENO: result: no" >&5
2711echo "${ECHO_T}no" >&6
b2dad0e3
BK
2712fi
2713
ff66d28f
PE
2714fi
2715if test -z "$CC"; then
2716 if test -n "$ac_tool_prefix"; then
7eed349e 2717 for ac_prog in cl
ff66d28f
PE
2718 do
2719 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2720set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7eed349e
PC
2721echo "$as_me:$LINENO: checking for $ac_word" >&5
2722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
2723if test "${ac_cv_prog_CC+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2725else
ff66d28f
PE
2726 if test -n "$CC"; then
2727 ac_cv_prog_CC="$CC" # Let the user override the test.
b2dad0e3 2728else
ff66d28f
PE
2729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730for as_dir in $PATH
2731do
2732 IFS=$as_save_IFS
2733 test -z "$as_dir" && as_dir=.
2734 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 2735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
2736 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 break 2
2739 fi
2740done
2741done
2742
b2dad0e3
BK
2743fi
2744fi
ff66d28f
PE
2745CC=$ac_cv_prog_CC
2746if test -n "$CC"; then
7eed349e
PC
2747 echo "$as_me:$LINENO: result: $CC" >&5
2748echo "${ECHO_T}$CC" >&6
b2dad0e3 2749else
7eed349e
PC
2750 echo "$as_me:$LINENO: result: no" >&5
2751echo "${ECHO_T}no" >&6
b2dad0e3
BK
2752fi
2753
ff66d28f
PE
2754 test -n "$CC" && break
2755 done
2756fi
2757if test -z "$CC"; then
2758 ac_ct_CC=$CC
7eed349e 2759 for ac_prog in cl
ff66d28f
PE
2760do
2761 # Extract the first word of "$ac_prog", so it can be a program name with args.
2762set dummy $ac_prog; ac_word=$2
7eed349e
PC
2763echo "$as_me:$LINENO: checking for $ac_word" >&5
2764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
2765if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2767else
ff66d28f
PE
2768 if test -n "$ac_ct_CC"; then
2769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b2dad0e3 2770else
ff66d28f
PE
2771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772for as_dir in $PATH
2773do
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 2777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
2778 ac_cv_prog_ac_ct_CC="$ac_prog"
2779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 break 2
2781 fi
2782done
2783done
2784
b2dad0e3
BK
2785fi
2786fi
ff66d28f
PE
2787ac_ct_CC=$ac_cv_prog_ac_ct_CC
2788if test -n "$ac_ct_CC"; then
7eed349e
PC
2789 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2790echo "${ECHO_T}$ac_ct_CC" >&6
b2dad0e3 2791else
7eed349e
PC
2792 echo "$as_me:$LINENO: result: no" >&5
2793echo "${ECHO_T}no" >&6
b2dad0e3
BK
2794fi
2795
ff66d28f
PE
2796 test -n "$ac_ct_CC" && break
2797done
b2dad0e3 2798
7eed349e 2799 CC=$ac_ct_CC
ff66d28f
PE
2800fi
2801
2802fi
2803
2804
2805test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2806See \`config.log' for more details." >&5
2807echo "$as_me: error: no acceptable C compiler found in \$PATH
2808See \`config.log' for more details." >&2;}
2809 { (exit 1); exit 1; }; }
2810
2811# Provide some information about the compiler.
7eed349e
PC
2812echo "$as_me:$LINENO:" \
2813 "checking for C compiler version" >&5
ff66d28f 2814ac_compiler=`set X $ac_compile; echo $2`
7eed349e
PC
2815{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2816 (eval $ac_compiler --version </dev/null >&5) 2>&5
ff66d28f
PE
2817 ac_status=$?
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); }
7eed349e
PC
2820{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2821 (eval $ac_compiler -v </dev/null >&5) 2>&5
ff66d28f
PE
2822 ac_status=$?
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); }
7eed349e
PC
2825{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2826 (eval $ac_compiler -V </dev/null >&5) 2>&5
ff66d28f
PE
2827 ac_status=$?
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); }
2830
2831cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
2832/* confdefs.h. */
2833_ACEOF
2834cat confdefs.h >>conftest.$ac_ext
2835cat >>conftest.$ac_ext <<_ACEOF
2836/* end confdefs.h. */
2837
3a24bf5d
KC
2838int
2839main ()
2840{
2841
2842 ;
2843 return 0;
2844}
2845_ACEOF
2846# FIXME: Cleanup?
2847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2848 (eval $ac_link) 2>&5
2849 ac_status=$?
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }; then
2852 gcc_no_link=no
2853else
2854 gcc_no_link=yes
2855fi
2856
2857if test x$gcc_no_link = xyes; then
2858 # Setting cross_compile will disable run tests; it will
2859 # also disable AC_CHECK_FILE but that's generally
2860 # correct if we can't link.
2861 cross_compiling=yes
2862 EXEEXT=
2863else
2864 cat >conftest.$ac_ext <<_ACEOF
2865/* confdefs.h. */
2866_ACEOF
2867cat confdefs.h >>conftest.$ac_ext
2868cat >>conftest.$ac_ext <<_ACEOF
2869/* end confdefs.h. */
2870
ff66d28f
PE
2871int
2872main ()
2873{
2874
2875 ;
2876 return 0;
2877}
2878_ACEOF
2879ac_clean_files_save=$ac_clean_files
2880ac_clean_files="$ac_clean_files a.out a.exe b.out"
2881# Try to create an executable without -o first, disregard a.out.
2882# It will help us diagnose broken compilers, and finding out an intuition
2883# of exeext.
7eed349e
PC
2884echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2885echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
ff66d28f 2886ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
7eed349e
PC
2887if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2888 (eval $ac_link_default) 2>&5
ff66d28f
PE
2889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; then
7eed349e
PC
2892 # Find the output, starting from the most likely. This scheme is
2893# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2894# resort.
2895
2896# Be careful to initialize this variable, since it used to be cached.
2897# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2898ac_cv_exeext=
2899# b.out is created by i960 compilers.
2900for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
ff66d28f
PE
2901do
2902 test -f "$ac_file" || continue
2903 case $ac_file in
7eed349e
PC
2904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2905 ;;
2906 conftest.$ac_ext )
2907 # This is the source file.
ec2075e9 2908 ;;
ff66d28f 2909 [ab].out )
ec2075e9
BK
2910 # We found the default executable, but exeext='' is most
2911 # certainly right.
2912 break;;
ff66d28f 2913 *.* )
7eed349e
PC
2914 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2915 # FIXME: I believe we export ac_cv_exeext for Libtool,
2916 # but it would be cool to find out if it's true. Does anybody
2917 # maintain Libtool? --akim.
2918 export ac_cv_exeext
ec2075e9 2919 break;;
ff66d28f 2920 * )
ec2075e9 2921 break;;
ff66d28f
PE
2922 esac
2923done
b2dad0e3 2924else
ff66d28f
PE
2925 echo "$as_me: failed program was:" >&5
2926sed 's/^/| /' conftest.$ac_ext >&5
2927
2928{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2929See \`config.log' for more details." >&5
2930echo "$as_me: error: C compiler cannot create executables
2931See \`config.log' for more details." >&2;}
2932 { (exit 77); exit 77; }; }
2933fi
2934
2935ac_exeext=$ac_cv_exeext
7eed349e
PC
2936echo "$as_me:$LINENO: result: $ac_file" >&5
2937echo "${ECHO_T}$ac_file" >&6
ff66d28f 2938
7eed349e 2939# Check the compiler produces executables we can run. If not, either
ff66d28f 2940# the compiler is broken, or we cross compile.
7eed349e
PC
2941echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2942echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
ff66d28f
PE
2943# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2944# If not cross compiling, check that we can run a simple program.
2945if test "$cross_compiling" != yes; then
2946 if { ac_try='./$ac_file'
7eed349e
PC
2947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 (eval $ac_try) 2>&5
ff66d28f
PE
2949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; }; then
2952 cross_compiling=no
2953 else
2954 if test "$cross_compiling" = maybe; then
2955 cross_compiling=yes
2956 else
2957 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2958If you meant to cross compile, use \`--host'.
2959See \`config.log' for more details." >&5
2960echo "$as_me: error: cannot run C compiled programs.
2961If you meant to cross compile, use \`--host'.
2962See \`config.log' for more details." >&2;}
2963 { (exit 1); exit 1; }; }
b2dad0e3 2964 fi
ff66d28f 2965 fi
b2dad0e3 2966fi
7eed349e
PC
2967echo "$as_me:$LINENO: result: yes" >&5
2968echo "${ECHO_T}yes" >&6
ff66d28f
PE
2969
2970rm -f a.out a.exe conftest$ac_cv_exeext b.out
2971ac_clean_files=$ac_clean_files_save
7eed349e 2972# Check the compiler produces executables we can run. If not, either
ff66d28f 2973# the compiler is broken, or we cross compile.
7eed349e
PC
2974echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2975echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2976echo "$as_me:$LINENO: result: $cross_compiling" >&5
2977echo "${ECHO_T}$cross_compiling" >&6
2978
2979echo "$as_me:$LINENO: checking for suffix of executables" >&5
2980echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2982 (eval $ac_link) 2>&5
ff66d28f
PE
2983 ac_status=$?
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); }; then
2986 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2987# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2988# work properly (i.e., refer to `conftest.exe'), while it won't with
2989# `rm'.
2990for ac_file in conftest.exe conftest conftest.*; do
2991 test -f "$ac_file" || continue
2992 case $ac_file in
7eed349e 2993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
ff66d28f 2994 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
7eed349e 2995 export ac_cv_exeext
ec2075e9 2996 break;;
ff66d28f
PE
2997 * ) break;;
2998 esac
2999done
b2dad0e3 3000else
ff66d28f
PE
3001 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3002See \`config.log' for more details." >&5
3003echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3004See \`config.log' for more details." >&2;}
3005 { (exit 1); exit 1; }; }
b2dad0e3
BK
3006fi
3007
ff66d28f 3008rm -f conftest$ac_cv_exeext
7eed349e
PC
3009echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3010echo "${ECHO_T}$ac_cv_exeext" >&6
ff66d28f
PE
3011
3012rm -f conftest.$ac_ext
3013EXEEXT=$ac_cv_exeext
3014ac_exeext=$EXEEXT
3a24bf5d 3015fi
7eed349e
PC
3016echo "$as_me:$LINENO: checking for suffix of object files" >&5
3017echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
ff66d28f
PE
3018if test "${ac_cv_objext+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3020else
3021 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3022/* confdefs.h. */
3023_ACEOF
3024cat confdefs.h >>conftest.$ac_ext
3025cat >>conftest.$ac_ext <<_ACEOF
3026/* end confdefs.h. */
3027
3028int
3029main ()
3030{
3031
3032 ;
3033 return 0;
3034}
3035_ACEOF
3036rm -f conftest.o conftest.obj
7eed349e
PC
3037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3038 (eval $ac_compile) 2>&5
ff66d28f
PE
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; then
7eed349e 3042 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
ff66d28f 3043 case $ac_file in
7eed349e 3044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
ff66d28f
PE
3045 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3046 break;;
3047 esac
3048done
b2dad0e3 3049else
ff66d28f
PE
3050 echo "$as_me: failed program was:" >&5
3051sed 's/^/| /' conftest.$ac_ext >&5
3052
3053{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3054See \`config.log' for more details." >&5
3055echo "$as_me: error: cannot compute suffix of object files: cannot compile
3056See \`config.log' for more details." >&2;}
3057 { (exit 1); exit 1; }; }
46840bcd 3058fi
ff66d28f
PE
3059
3060rm -f conftest.$ac_cv_objext conftest.$ac_ext
46840bcd 3061fi
7eed349e
PC
3062echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3063echo "${ECHO_T}$ac_cv_objext" >&6
ff66d28f
PE
3064OBJEXT=$ac_cv_objext
3065ac_objext=$OBJEXT
7eed349e
PC
3066echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3067echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
ff66d28f
PE
3068if test "${ac_cv_c_compiler_gnu+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070else
3071 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3072/* confdefs.h. */
3073_ACEOF
3074cat confdefs.h >>conftest.$ac_ext
3075cat >>conftest.$ac_ext <<_ACEOF
3076/* end confdefs.h. */
46840bcd 3077
ff66d28f
PE
3078int
3079main ()
3080{
3081#ifndef __GNUC__
3082 choke me
3083#endif
3084
3085 ;
3086 return 0;
3087}
3088_ACEOF
3089rm -f conftest.$ac_objext
7eed349e
PC
3090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3091 (eval $ac_compile) 2>conftest.er1
ff66d28f 3092 ac_status=$?
ec2075e9
BK
3093 grep -v '^ *+' conftest.er1 >conftest.err
3094 rm -f conftest.er1
3095 cat conftest.err >&5
ff66d28f 3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
3097 (exit $ac_status); } &&
3098 { ac_try='test -z "$ac_c_werror_flag"
3099 || test ! -s conftest.err'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101 (eval $ac_try) 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107 (eval $ac_try) 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
ff66d28f
PE
3111 ac_compiler_gnu=yes
3112else
3113 echo "$as_me: failed program was:" >&5
3114sed 's/^/| /' conftest.$ac_ext >&5
3115
7eed349e 3116ac_compiler_gnu=no
ff66d28f 3117fi
7eed349e 3118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
3119ac_cv_c_compiler_gnu=$ac_compiler_gnu
3120
3121fi
7eed349e
PC
3122echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3123echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
ff66d28f
PE
3124GCC=`test $ac_compiler_gnu = yes && echo yes`
3125ac_test_CFLAGS=${CFLAGS+set}
3126ac_save_CFLAGS=$CFLAGS
7eed349e
PC
3127CFLAGS="-g"
3128echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3129echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
ff66d28f
PE
3130if test "${ac_cv_prog_cc_g+set}" = set; then
3131 echo $ECHO_N "(cached) $ECHO_C" >&6
3132else
7eed349e 3133 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3134/* confdefs.h. */
3135_ACEOF
3136cat confdefs.h >>conftest.$ac_ext
3137cat >>conftest.$ac_ext <<_ACEOF
3138/* end confdefs.h. */
3139
3140int
3141main ()
3142{
3143
3144 ;
3145 return 0;
3146}
3147_ACEOF
3148rm -f conftest.$ac_objext
7eed349e
PC
3149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3150 (eval $ac_compile) 2>conftest.er1
ff66d28f 3151 ac_status=$?
ec2075e9
BK
3152 grep -v '^ *+' conftest.er1 >conftest.err
3153 rm -f conftest.er1
3154 cat conftest.err >&5
ff66d28f 3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
3156 (exit $ac_status); } &&
3157 { ac_try='test -z "$ac_c_werror_flag"
3158 || test ! -s conftest.err'
3159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3160 (eval $ac_try) 2>&5
ec2075e9
BK
3161 ac_status=$?
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
3163 (exit $ac_status); }; } &&
3164 { ac_try='test -s conftest.$ac_objext'
3165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3166 (eval $ac_try) 2>&5
ff66d28f
PE
3167 ac_status=$?
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e 3169 (exit $ac_status); }; }; then
ff66d28f 3170 ac_cv_prog_cc_g=yes
b2dad0e3 3171else
ff66d28f
PE
3172 echo "$as_me: failed program was:" >&5
3173sed 's/^/| /' conftest.$ac_ext >&5
b2dad0e3 3174
7eed349e 3175ac_cv_prog_cc_g=no
b2dad0e3 3176fi
7eed349e 3177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f 3178fi
7eed349e
PC
3179echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3180echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
ff66d28f
PE
3181if test "$ac_test_CFLAGS" = set; then
3182 CFLAGS=$ac_save_CFLAGS
3183elif test $ac_cv_prog_cc_g = yes; then
3184 if test "$GCC" = yes; then
3185 CFLAGS="-g -O2"
b2dad0e3 3186 else
ff66d28f 3187 CFLAGS="-g"
b2dad0e3 3188 fi
ff66d28f
PE
3189else
3190 if test "$GCC" = yes; then
3191 CFLAGS="-O2"
3192 else
3193 CFLAGS=
3194 fi
3195fi
7eed349e
PC
3196echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3197echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3198if test "${ac_cv_prog_cc_stdc+set}" = set; then
ff66d28f
PE
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3200else
7eed349e 3201 ac_cv_prog_cc_stdc=no
ff66d28f
PE
3202ac_save_CC=$CC
3203cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3204/* confdefs.h. */
3205_ACEOF
3206cat confdefs.h >>conftest.$ac_ext
3207cat >>conftest.$ac_ext <<_ACEOF
3208/* end confdefs.h. */
3209#include <stdarg.h>
3210#include <stdio.h>
3211#include <sys/types.h>
3212#include <sys/stat.h>
3213/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3214struct buf { int x; };
3215FILE * (*rcsopen) (struct buf *, struct stat *, int);
3216static char *e (p, i)
3217 char **p;
3218 int i;
3219{
3220 return p[i];
3221}
3222static char *f (char * (*g) (char **, int), char **p, ...)
3223{
3224 char *s;
3225 va_list v;
3226 va_start (v,p);
3227 s = g (p, va_arg (v,int));
3228 va_end (v);
3229 return s;
3230}
ec2075e9
BK
3231
3232/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3233 function prototypes and stuff, but not '\xHH' hex character constants.
3234 These don't provoke an error unfortunately, instead are silently treated
7eed349e 3235 as 'x'. The following induces an error, until -std1 is added to get
ec2075e9
BK
3236 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3237 array size at least. It's necessary to write '\x00'==0 to get something
7eed349e 3238 that's true only with -std1. */
ec2075e9
BK
3239int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3240
ff66d28f
PE
3241int test (int i, double x);
3242struct s1 {int (*f) (int a);};
3243struct s2 {int (*f) (double a);};
3244int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3245int argc;
3246char **argv;
3247int
3248main ()
3249{
3250return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3251 ;
3252 return 0;
3253}
3254_ACEOF
7eed349e
PC
3255# Don't try gcc -ansi; that turns off useful extensions and
3256# breaks some systems' header files.
3257# AIX -qlanglvl=ansi
3258# Ultrix and OSF/1 -std1
3259# HP-UX 10.20 and later -Ae
3260# HP-UX older versions -Aa -D_HPUX_SOURCE
3261# SVR4 -Xc -D__EXTENSIONS__
3262for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ff66d28f
PE
3263do
3264 CC="$ac_save_CC $ac_arg"
3265 rm -f conftest.$ac_objext
7eed349e
PC
3266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3267 (eval $ac_compile) 2>conftest.er1
ff66d28f 3268 ac_status=$?
ec2075e9
BK
3269 grep -v '^ *+' conftest.er1 >conftest.err
3270 rm -f conftest.er1
3271 cat conftest.err >&5
ff66d28f 3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
3273 (exit $ac_status); } &&
3274 { ac_try='test -z "$ac_c_werror_flag"
3275 || test ! -s conftest.err'
3276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277 (eval $ac_try) 2>&5
3278 ac_status=$?
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }; } &&
3281 { ac_try='test -s conftest.$ac_objext'
3282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3283 (eval $ac_try) 2>&5
3284 ac_status=$?
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; }; then
3287 ac_cv_prog_cc_stdc=$ac_arg
3288break
ff66d28f
PE
3289else
3290 echo "$as_me: failed program was:" >&5
3291sed 's/^/| /' conftest.$ac_ext >&5
3292
b2dad0e3 3293fi
7eed349e 3294rm -f conftest.err conftest.$ac_objext
ff66d28f 3295done
7eed349e 3296rm -f conftest.$ac_ext conftest.$ac_objext
ff66d28f 3297CC=$ac_save_CC
b2dad0e3 3298
ff66d28f 3299fi
7eed349e
PC
3300
3301case "x$ac_cv_prog_cc_stdc" in
3302 x|xno)
3303 echo "$as_me:$LINENO: result: none needed" >&5
3304echo "${ECHO_T}none needed" >&6 ;;
ff66d28f 3305 *)
7eed349e
PC
3306 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3307echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3308 CC="$CC $ac_cv_prog_cc_stdc" ;;
ff66d28f 3309esac
b2dad0e3 3310
7eed349e
PC
3311# Some people use a C++ compiler to compile C. Since we use `exit',
3312# in C++ we need to declare it. In case someone uses the same compiler
3313# for both compiling C and C++ we need to have the C++ compiler decide
3314# the declaration of exit, since it's the most demanding environment.
3315cat >conftest.$ac_ext <<_ACEOF
3316#ifndef __cplusplus
3317 choke me
3318#endif
3319_ACEOF
3320rm -f conftest.$ac_objext
3321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3322 (eval $ac_compile) 2>conftest.er1
3323 ac_status=$?
3324 grep -v '^ *+' conftest.er1 >conftest.err
3325 rm -f conftest.er1
3326 cat conftest.err >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } &&
3329 { ac_try='test -z "$ac_c_werror_flag"
3330 || test ! -s conftest.err'
3331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332 (eval $ac_try) 2>&5
3333 ac_status=$?
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); }; } &&
3336 { ac_try='test -s conftest.$ac_objext'
3337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3338 (eval $ac_try) 2>&5
3339 ac_status=$?
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; }; then
3342 for ac_declaration in \
3343 '' \
3344 'extern "C" void std::exit (int) throw (); using std::exit;' \
3345 'extern "C" void std::exit (int); using std::exit;' \
3346 'extern "C" void exit (int) throw ();' \
3347 'extern "C" void exit (int);' \
3348 'void exit (int);'
3349do
3350 cat >conftest.$ac_ext <<_ACEOF
3351/* confdefs.h. */
3352_ACEOF
3353cat confdefs.h >>conftest.$ac_ext
3354cat >>conftest.$ac_ext <<_ACEOF
3355/* end confdefs.h. */
3356$ac_declaration
3357#include <stdlib.h>
3358int
3359main ()
3360{
3361exit (42);
3362 ;
3363 return 0;
3364}
3365_ACEOF
3366rm -f conftest.$ac_objext
3367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3368 (eval $ac_compile) 2>conftest.er1
3369 ac_status=$?
3370 grep -v '^ *+' conftest.er1 >conftest.err
3371 rm -f conftest.er1
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } &&
3375 { ac_try='test -z "$ac_c_werror_flag"
3376 || test ! -s conftest.err'
3377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3378 (eval $ac_try) 2>&5
3379 ac_status=$?
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }; } &&
3382 { ac_try='test -s conftest.$ac_objext'
3383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3384 (eval $ac_try) 2>&5
3385 ac_status=$?
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }; }; then
3388 :
3389else
3390 echo "$as_me: failed program was:" >&5
3391sed 's/^/| /' conftest.$ac_ext >&5
3392
3393continue
3394fi
3395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3396 cat >conftest.$ac_ext <<_ACEOF
3397/* confdefs.h. */
3398_ACEOF
3399cat confdefs.h >>conftest.$ac_ext
3400cat >>conftest.$ac_ext <<_ACEOF
3401/* end confdefs.h. */
3402$ac_declaration
3403int
3404main ()
3405{
3406exit (42);
3407 ;
3408 return 0;
3409}
3410_ACEOF
3411rm -f conftest.$ac_objext
3412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3413 (eval $ac_compile) 2>conftest.er1
3414 ac_status=$?
3415 grep -v '^ *+' conftest.er1 >conftest.err
3416 rm -f conftest.er1
3417 cat conftest.err >&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); } &&
3420 { ac_try='test -z "$ac_c_werror_flag"
3421 || test ! -s conftest.err'
3422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3423 (eval $ac_try) 2>&5
3424 ac_status=$?
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; } &&
3427 { ac_try='test -s conftest.$ac_objext'
3428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429 (eval $ac_try) 2>&5
3430 ac_status=$?
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }; }; then
3433 break
3434else
3435 echo "$as_me: failed program was:" >&5
3436sed 's/^/| /' conftest.$ac_ext >&5
3437
3438fi
3439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3440done
3441rm -f conftest*
3442if test -n "$ac_declaration"; then
3443 echo '#ifdef __cplusplus' >>confdefs.h
3444 echo $ac_declaration >>confdefs.h
3445 echo '#endif' >>confdefs.h
3446fi
3447
3448else
3449 echo "$as_me: failed program was:" >&5
3450sed 's/^/| /' conftest.$ac_ext >&5
ff66d28f 3451
7eed349e
PC
3452fi
3453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
3454ac_ext=c
3455ac_cpp='$CPP $CPPFLAGS'
3456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459
7eed349e 3460 ac_ext=cc
ff66d28f
PE
3461ac_cpp='$CXXCPP $CPPFLAGS'
3462ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7eed349e
PC
3465if test -n "$ac_tool_prefix"; then
3466 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
ff66d28f
PE
3467 do
3468 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3469set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7eed349e
PC
3470echo "$as_me:$LINENO: checking for $ac_word" >&5
3471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
3472if test "${glibcxx_cv_prog_CXX+set}" = set; then
3473 echo $ECHO_N "(cached) $ECHO_C" >&6
3474else
3475 if test -n "$CXX"; then
3476 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
3477else
3478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479for as_dir in $PATH
3480do
3481 IFS=$as_save_IFS
3482 test -z "$as_dir" && as_dir=.
3483 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 3484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
3485 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3487 break 2
3488 fi
3489done
3490done
3491
3492fi
3493fi
3494CXX=$glibcxx_cv_prog_CXX
3495if test -n "$CXX"; then
7eed349e
PC
3496 echo "$as_me:$LINENO: result: $CXX" >&5
3497echo "${ECHO_T}$CXX" >&6
b2dad0e3 3498else
7eed349e
PC
3499 echo "$as_me:$LINENO: result: no" >&5
3500echo "${ECHO_T}no" >&6
b2dad0e3 3501fi
b2dad0e3 3502
ff66d28f
PE
3503 test -n "$CXX" && break
3504 done
3505fi
3506if test -z "$CXX"; then
3507 ac_ct_CXX=$CXX
7eed349e 3508 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
ff66d28f
PE
3509do
3510 # Extract the first word of "$ac_prog", so it can be a program name with args.
3511set dummy $ac_prog; ac_word=$2
7eed349e
PC
3512echo "$as_me:$LINENO: checking for $ac_word" >&5
3513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
3514if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3516else
3517 if test -n "$ac_ct_CXX"; then
3518 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3519else
3520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521for as_dir in $PATH
3522do
3523 IFS=$as_save_IFS
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 3526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
3527 ac_cv_prog_ac_ct_CXX="$ac_prog"
3528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 break 2
b2dad0e3 3530 fi
ff66d28f
PE
3531done
3532done
3533
b2dad0e3 3534fi
ff66d28f
PE
3535fi
3536ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3537if test -n "$ac_ct_CXX"; then
7eed349e
PC
3538 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3539echo "${ECHO_T}$ac_ct_CXX" >&6
ff66d28f 3540else
7eed349e
PC
3541 echo "$as_me:$LINENO: result: no" >&5
3542echo "${ECHO_T}no" >&6
b2dad0e3
BK
3543fi
3544
ff66d28f
PE
3545 test -n "$ac_ct_CXX" && break
3546done
7eed349e 3547test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
ff66d28f 3548
7eed349e 3549 CXX=$ac_ct_CXX
ff66d28f
PE
3550fi
3551
7eed349e 3552
ff66d28f 3553# Provide some information about the compiler.
7eed349e
PC
3554echo "$as_me:$LINENO:" \
3555 "checking for C++ compiler version" >&5
ff66d28f 3556ac_compiler=`set X $ac_compile; echo $2`
7eed349e
PC
3557{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3558 (eval $ac_compiler --version </dev/null >&5) 2>&5
ff66d28f
PE
3559 ac_status=$?
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); }
7eed349e
PC
3562{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3563 (eval $ac_compiler -v </dev/null >&5) 2>&5
ff66d28f
PE
3564 ac_status=$?
3565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); }
7eed349e
PC
3567{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3568 (eval $ac_compiler -V </dev/null >&5) 2>&5
ff66d28f
PE
3569 ac_status=$?
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }
3572
7eed349e
PC
3573echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3574echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
ff66d28f
PE
3575if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3576 echo $ECHO_N "(cached) $ECHO_C" >&6
3577else
3578 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3579/* confdefs.h. */
3580_ACEOF
3581cat confdefs.h >>conftest.$ac_ext
3582cat >>conftest.$ac_ext <<_ACEOF
3583/* end confdefs.h. */
3584
3585int
3586main ()
3587{
3588#ifndef __GNUC__
3589 choke me
3590#endif
3591
3592 ;
3593 return 0;
3594}
3595_ACEOF
3596rm -f conftest.$ac_objext
7eed349e
PC
3597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3598 (eval $ac_compile) 2>conftest.er1
ff66d28f 3599 ac_status=$?
ec2075e9
BK
3600 grep -v '^ *+' conftest.er1 >conftest.err
3601 rm -f conftest.er1
3602 cat conftest.err >&5
ff66d28f 3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
3604 (exit $ac_status); } &&
3605 { ac_try='test -z "$ac_cxx_werror_flag"
3606 || test ! -s conftest.err'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 (eval $ac_try) 2>&5
3609 ac_status=$?
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; } &&
3612 { ac_try='test -s conftest.$ac_objext'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3614 (eval $ac_try) 2>&5
3615 ac_status=$?
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; }; then
ff66d28f
PE
3618 ac_compiler_gnu=yes
3619else
3620 echo "$as_me: failed program was:" >&5
3621sed 's/^/| /' conftest.$ac_ext >&5
3622
7eed349e 3623ac_compiler_gnu=no
ff66d28f 3624fi
7eed349e 3625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
3626ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3627
3628fi
7eed349e
PC
3629echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3630echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
ff66d28f
PE
3631GXX=`test $ac_compiler_gnu = yes && echo yes`
3632ac_test_CXXFLAGS=${CXXFLAGS+set}
3633ac_save_CXXFLAGS=$CXXFLAGS
7eed349e
PC
3634CXXFLAGS="-g"
3635echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3636echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
ff66d28f
PE
3637if test "${ac_cv_prog_cxx_g+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3639else
7eed349e 3640 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3641/* confdefs.h. */
3642_ACEOF
3643cat confdefs.h >>conftest.$ac_ext
3644cat >>conftest.$ac_ext <<_ACEOF
3645/* end confdefs.h. */
3646
3647int
3648main ()
3649{
b2dad0e3 3650
ff66d28f
PE
3651 ;
3652 return 0;
3653}
3654_ACEOF
3655rm -f conftest.$ac_objext
7eed349e
PC
3656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3657 (eval $ac_compile) 2>conftest.er1
ff66d28f 3658 ac_status=$?
ec2075e9
BK
3659 grep -v '^ *+' conftest.er1 >conftest.err
3660 rm -f conftest.er1
3661 cat conftest.err >&5
ff66d28f 3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
3663 (exit $ac_status); } &&
3664 { ac_try='test -z "$ac_cxx_werror_flag"
3665 || test ! -s conftest.err'
3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 (eval $ac_try) 2>&5
3668 ac_status=$?
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; } &&
3671 { ac_try='test -s conftest.$ac_objext'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 (eval $ac_try) 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
ff66d28f
PE
3677 ac_cv_prog_cxx_g=yes
3678else
3679 echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
7eed349e
PC
3682ac_cv_prog_cxx_g=no
3683fi
3684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3685fi
3686echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3687echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3688if test "$ac_test_CXXFLAGS" = set; then
3689 CXXFLAGS=$ac_save_CXXFLAGS
3690elif test $ac_cv_prog_cxx_g = yes; then
3691 if test "$GXX" = yes; then
3692 CXXFLAGS="-g -O2"
3693 else
3694 CXXFLAGS="-g"
3695 fi
3696else
3697 if test "$GXX" = yes; then
3698 CXXFLAGS="-O2"
3699 else
3700 CXXFLAGS=
3701 fi
3702fi
3703for ac_declaration in \
3704 '' \
3705 'extern "C" void std::exit (int) throw (); using std::exit;' \
3706 'extern "C" void std::exit (int); using std::exit;' \
3707 'extern "C" void exit (int) throw ();' \
3708 'extern "C" void exit (int);' \
3709 'void exit (int);'
3710do
3711 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3712/* confdefs.h. */
3713_ACEOF
3714cat confdefs.h >>conftest.$ac_ext
3715cat >>conftest.$ac_ext <<_ACEOF
3716/* end confdefs.h. */
7eed349e
PC
3717$ac_declaration
3718#include <stdlib.h>
ff66d28f
PE
3719int
3720main ()
3721{
7eed349e 3722exit (42);
ff66d28f
PE
3723 ;
3724 return 0;
3725}
3726_ACEOF
3727rm -f conftest.$ac_objext
7eed349e
PC
3728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3729 (eval $ac_compile) 2>conftest.er1
ff66d28f 3730 ac_status=$?
ec2075e9
BK
3731 grep -v '^ *+' conftest.er1 >conftest.err
3732 rm -f conftest.er1
3733 cat conftest.err >&5
ff66d28f 3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
3735 (exit $ac_status); } &&
3736 { ac_try='test -z "$ac_cxx_werror_flag"
3737 || test ! -s conftest.err'
3738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3739 (eval $ac_try) 2>&5
3740 ac_status=$?
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; } &&
3743 { ac_try='test -s conftest.$ac_objext'
3744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745 (eval $ac_try) 2>&5
3746 ac_status=$?
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; }; then
ff66d28f
PE
3749 :
3750else
3751 echo "$as_me: failed program was:" >&5
3752sed 's/^/| /' conftest.$ac_ext >&5
b2dad0e3 3753
7eed349e
PC
3754continue
3755fi
3756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3757 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3758/* confdefs.h. */
3759_ACEOF
3760cat confdefs.h >>conftest.$ac_ext
3761cat >>conftest.$ac_ext <<_ACEOF
3762/* end confdefs.h. */
7eed349e 3763$ac_declaration
ff66d28f
PE
3764int
3765main ()
3766{
7eed349e 3767exit (42);
ff66d28f
PE
3768 ;
3769 return 0;
3770}
3771_ACEOF
3772rm -f conftest.$ac_objext
7eed349e
PC
3773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3774 (eval $ac_compile) 2>conftest.er1
ff66d28f 3775 ac_status=$?
ec2075e9
BK
3776 grep -v '^ *+' conftest.er1 >conftest.err
3777 rm -f conftest.er1
3778 cat conftest.err >&5
ff66d28f 3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
3780 (exit $ac_status); } &&
3781 { ac_try='test -z "$ac_cxx_werror_flag"
3782 || test ! -s conftest.err'
3783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3784 (eval $ac_try) 2>&5
3785 ac_status=$?
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }; } &&
3788 { ac_try='test -s conftest.$ac_objext'
3789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3790 (eval $ac_try) 2>&5
3791 ac_status=$?
3792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }; }; then
3794 break
ff66d28f
PE
3795else
3796 echo "$as_me: failed program was:" >&5
3797sed 's/^/| /' conftest.$ac_ext >&5
3798
4312e020 3799fi
7eed349e
PC
3800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3801done
3802rm -f conftest*
3803if test -n "$ac_declaration"; then
3804 echo '#ifdef __cplusplus' >>confdefs.h
3805 echo $ac_declaration >>confdefs.h
3806 echo '#endif' >>confdefs.h
8a165db0
BK
3807fi
3808
ff66d28f
PE
3809ac_ext=c
3810ac_cpp='$CPP $CPPFLAGS'
3811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813ac_compiler_gnu=$ac_cv_c_compiler_gnu
16da539b 3814
ff66d28f 3815 CXXFLAGS="$save_CXXFLAGS"
d0941a31
PE
3816
3817
33590f13 3818
f6dda651 3819
ff66d28f
PE
3820 # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
3821 # available). Uncomment the next line to force a particular method.
7eed349e
PC
3822 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3823echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
ff66d28f
PE
3824LN_S=$as_ln_s
3825if test "$LN_S" = "ln -s"; then
7eed349e
PC
3826 echo "$as_me:$LINENO: result: yes" >&5
3827echo "${ECHO_T}yes" >&6
2f235b6d 3828else
7eed349e
PC
3829 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3830echo "${ECHO_T}no, using $LN_S" >&6
2f235b6d 3831fi
2f235b6d 3832
ff66d28f 3833 #LN_S='cp -p'
2f235b6d 3834
ff66d28f
PE
3835 if test -n "$ac_tool_prefix"; then
3836 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3837set dummy ${ac_tool_prefix}as; ac_word=$2
7eed349e
PC
3838echo "$as_me:$LINENO: checking for $ac_word" >&5
3839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
3840if test "${ac_cv_prog_AS+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
2f235b6d 3842else
ff66d28f
PE
3843 if test -n "$AS"; then
3844 ac_cv_prog_AS="$AS" # Let the user override the test.
2f235b6d 3845else
ff66d28f
PE
3846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847for as_dir in $PATH
3848do
3849 IFS=$as_save_IFS
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 3852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
3853 ac_cv_prog_AS="${ac_tool_prefix}as"
3854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 break 2
3856 fi
3857done
3858done
3859
2f235b6d 3860fi
2f235b6d 3861fi
ff66d28f
PE
3862AS=$ac_cv_prog_AS
3863if test -n "$AS"; then
7eed349e
PC
3864 echo "$as_me:$LINENO: result: $AS" >&5
3865echo "${ECHO_T}$AS" >&6
2f235b6d 3866else
7eed349e
PC
3867 echo "$as_me:$LINENO: result: no" >&5
3868echo "${ECHO_T}no" >&6
2f235b6d
PE
3869fi
3870
ff66d28f
PE
3871fi
3872if test -z "$ac_cv_prog_AS"; then
3873 ac_ct_AS=$AS
3874 # Extract the first word of "as", so it can be a program name with args.
3875set dummy as; ac_word=$2
7eed349e
PC
3876echo "$as_me:$LINENO: checking for $ac_word" >&5
3877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
3878if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3879 echo $ECHO_N "(cached) $ECHO_C" >&6
3880else
3881 if test -n "$ac_ct_AS"; then
3882 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3883else
3884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885for as_dir in $PATH
3886do
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
3889 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 3890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
3891 ac_cv_prog_ac_ct_AS="as"
3892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3893 break 2
3894 fi
3895done
3896done
2f235b6d 3897
ff66d28f
PE
3898fi
3899fi
3900ac_ct_AS=$ac_cv_prog_ac_ct_AS
3901if test -n "$ac_ct_AS"; then
7eed349e
PC
3902 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3903echo "${ECHO_T}$ac_ct_AS" >&6
ff66d28f 3904else
7eed349e
PC
3905 echo "$as_me:$LINENO: result: no" >&5
3906echo "${ECHO_T}no" >&6
ff66d28f 3907fi
2f235b6d 3908
7eed349e 3909 AS=$ac_ct_AS
ff66d28f
PE
3910else
3911 AS="$ac_cv_prog_AS"
2f235b6d 3912fi
2f235b6d 3913
ff66d28f
PE
3914 if test -n "$ac_tool_prefix"; then
3915 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3916set dummy ${ac_tool_prefix}ar; ac_word=$2
7eed349e
PC
3917echo "$as_me:$LINENO: checking for $ac_word" >&5
3918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
3919if test "${ac_cv_prog_AR+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921else
3922 if test -n "$AR"; then
3923 ac_cv_prog_AR="$AR" # Let the user override the test.
3924else
3925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926for as_dir in $PATH
3927do
3928 IFS=$as_save_IFS
3929 test -z "$as_dir" && as_dir=.
3930 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 3931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
3932 ac_cv_prog_AR="${ac_tool_prefix}ar"
3933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3934 break 2
3935 fi
3936done
3937done
2f235b6d 3938
ff66d28f
PE
3939fi
3940fi
3941AR=$ac_cv_prog_AR
3942if test -n "$AR"; then
7eed349e
PC
3943 echo "$as_me:$LINENO: result: $AR" >&5
3944echo "${ECHO_T}$AR" >&6
ff66d28f 3945else
7eed349e
PC
3946 echo "$as_me:$LINENO: result: no" >&5
3947echo "${ECHO_T}no" >&6
ff66d28f 3948fi
2f235b6d 3949
ff66d28f
PE
3950fi
3951if test -z "$ac_cv_prog_AR"; then
3952 ac_ct_AR=$AR
3953 # Extract the first word of "ar", so it can be a program name with args.
3954set dummy ar; ac_word=$2
7eed349e
PC
3955echo "$as_me:$LINENO: checking for $ac_word" >&5
3956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
3957if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3958 echo $ECHO_N "(cached) $ECHO_C" >&6
3959else
3960 if test -n "$ac_ct_AR"; then
3961 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3962else
3963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964for as_dir in $PATH
3965do
3966 IFS=$as_save_IFS
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 3969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
3970 ac_cv_prog_ac_ct_AR="ar"
3971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3972 break 2
3973 fi
3974done
3975done
2f235b6d 3976
ff66d28f
PE
3977fi
3978fi
3979ac_ct_AR=$ac_cv_prog_ac_ct_AR
3980if test -n "$ac_ct_AR"; then
7eed349e
PC
3981 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3982echo "${ECHO_T}$ac_ct_AR" >&6
2f235b6d 3983else
7eed349e
PC
3984 echo "$as_me:$LINENO: result: no" >&5
3985echo "${ECHO_T}no" >&6
2f235b6d
PE
3986fi
3987
7eed349e 3988 AR=$ac_ct_AR
2f235b6d 3989else
ff66d28f 3990 AR="$ac_cv_prog_AR"
2f235b6d
PE
3991fi
3992
ff66d28f
PE
3993 if test -n "$ac_tool_prefix"; then
3994 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3995set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7eed349e
PC
3996echo "$as_me:$LINENO: checking for $ac_word" >&5
3997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
3998if test "${ac_cv_prog_RANLIB+set}" = set; then
3999 echo $ECHO_N "(cached) $ECHO_C" >&6
4000else
4001 if test -n "$RANLIB"; then
4002 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4003else
4004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005for as_dir in $PATH
4006do
4007 IFS=$as_save_IFS
4008 test -z "$as_dir" && as_dir=.
4009 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 4010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
4011 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4013 break 2
4014 fi
4015done
4016done
4017
4018fi
4019fi
4020RANLIB=$ac_cv_prog_RANLIB
4021if test -n "$RANLIB"; then
7eed349e
PC
4022 echo "$as_me:$LINENO: result: $RANLIB" >&5
4023echo "${ECHO_T}$RANLIB" >&6
2f235b6d 4024else
7eed349e
PC
4025 echo "$as_me:$LINENO: result: no" >&5
4026echo "${ECHO_T}no" >&6
2f235b6d
PE
4027fi
4028
ff66d28f
PE
4029fi
4030if test -z "$ac_cv_prog_RANLIB"; then
4031 ac_ct_RANLIB=$RANLIB
4032 # Extract the first word of "ranlib", so it can be a program name with args.
4033set dummy ranlib; ac_word=$2
7eed349e
PC
4034echo "$as_me:$LINENO: checking for $ac_word" >&5
4035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
4036if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4037 echo $ECHO_N "(cached) $ECHO_C" >&6
4038else
4039 if test -n "$ac_ct_RANLIB"; then
4040 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2f235b6d 4041else
ff66d28f
PE
4042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043for as_dir in $PATH
4044do
4045 IFS=$as_save_IFS
4046 test -z "$as_dir" && as_dir=.
4047 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 4048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
4049 ac_cv_prog_ac_ct_RANLIB="ranlib"
4050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4051 break 2
4052 fi
4053done
4054done
4055
7eed349e 4056 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
ff66d28f
PE
4057fi
4058fi
4059ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4060if test -n "$ac_ct_RANLIB"; then
7eed349e
PC
4061 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4062echo "${ECHO_T}$ac_ct_RANLIB" >&6
ff66d28f 4063else
7eed349e
PC
4064 echo "$as_me:$LINENO: result: no" >&5
4065echo "${ECHO_T}no" >&6
2f235b6d
PE
4066fi
4067
7eed349e 4068 RANLIB=$ac_ct_RANLIB
2f235b6d 4069else
ff66d28f 4070 RANLIB="$ac_cv_prog_RANLIB"
2f235b6d
PE
4071fi
4072
4073
7eed349e
PC
4074 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4075echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4076 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
ff66d28f 4077if test "${enable_maintainer_mode+set}" = set; then
7eed349e
PC
4078 enableval="$enable_maintainer_mode"
4079 USE_MAINTAINER_MODE=$enableval
ff66d28f
PE
4080else
4081 USE_MAINTAINER_MODE=no
7eed349e
PC
4082fi;
4083 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4084echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
e08c673e 4085
7eed349e
PC
4086
4087if test $USE_MAINTAINER_MODE = yes; then
ff66d28f
PE
4088 MAINTAINER_MODE_TRUE=
4089 MAINTAINER_MODE_FALSE='#'
4090else
4091 MAINTAINER_MODE_TRUE='#'
4092 MAINTAINER_MODE_FALSE=
4093fi
4094
4095 MAINT=$MAINTAINER_MODE_TRUE
2f235b6d 4096
5780a46b 4097
f4c79fef 4098
92eabea2
PE
4099 # Set up safe default values for all subsequent AM_CONDITIONAL tests
4100 # which are themselves conditionally expanded.
4101 ## (Right now, this only matters for enable_wchar_t, but nothing prevents
4102 ## other macros from doing the same. This should be automated.) -pme
ff66d28f 4103 need_libmath=no
ff66d28f 4104
464aea98
JM
4105 # Check for uClibc since Linux platforms use different configuration
4106 # directories depending on the C library in use.
4107 cat >conftest.$ac_ext <<_ACEOF
4108/* confdefs.h. */
4109_ACEOF
4110cat confdefs.h >>conftest.$ac_ext
4111cat >>conftest.$ac_ext <<_ACEOF
4112/* end confdefs.h. */
4113
4114 #include <stdio.h>
4115 #if __UCLIBC__
4116 _using_uclibc
4117 #endif
4118
4119_ACEOF
4120if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4121 $EGREP "_using_uclibc" >/dev/null 2>&1; then
4122 uclibc=yes
4123else
4124 uclibc=no
4125fi
4126rm -f conftest*
4127
4128
ff66d28f
PE
4129 # Find platform-specific directories containing configuration info.
4130 # Also possibly modify flags used elsewhere, as needed by the platform.
4131
4132 . $glibcxx_srcdir/configure.host
4133 { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5
4134echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
4135 { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5
4136echo "$as_me: OS config directory is $os_include_dir" >&6;}
4137
4138
4139
1cf3d07d
SE
4140enable_dlopen=yes
4141
4142
4143
4144
4145
4146macro_version='2.1a'
4147macro_revision='1.2435'
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160ltmain="$ac_aux_dir/ltmain.sh"
4161
4162# Set options
4163
4164
4165enable_win32_dll=no
4166
ff66d28f 4167
7eed349e 4168# Check whether --enable-shared or --disable-shared was given.
b2dad0e3 4169if test "${enable_shared+set}" = set; then
7eed349e
PC
4170 enableval="$enable_shared"
4171 p=${PACKAGE-default}
1cf3d07d
SE
4172 case $enableval in
4173 yes) enable_shared=yes ;;
4174 no) enable_shared=no ;;
4175 *)
4176 enable_shared=no
4177 # Look at the argument we got. We use all the common list separators.
4178 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4179 for pkg in $enableval; do
4180 IFS="$lt_save_ifs"
4181 if test "X$pkg" = "X$p"; then
4182 enable_shared=yes
4183 fi
4184 done
4185 IFS="$lt_save_ifs"
4186 ;;
4187 esac
b2dad0e3
BK
4188else
4189 enable_shared=yes
7eed349e 4190fi;
1cf3d07d
SE
4191
4192
4193
4194
4195
4196
4197
4198
7eed349e 4199# Check whether --enable-static or --disable-static was given.
b2dad0e3 4200if test "${enable_static+set}" = set; then
7eed349e
PC
4201 enableval="$enable_static"
4202 p=${PACKAGE-default}
1cf3d07d
SE
4203 case $enableval in
4204 yes) enable_static=yes ;;
4205 no) enable_static=no ;;
4206 *)
4207 enable_static=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_static=yes
4214 fi
4215 done
4216 IFS="$lt_save_ifs"
4217 ;;
4218 esac
b2dad0e3
BK
4219else
4220 enable_static=yes
7eed349e 4221fi;
1cf3d07d
SE
4222
4223
4224
4225
4226
4227
4228
4229
4230
7eed349e 4231# Check whether --with-pic or --without-pic was given.
1cf3d07d 4232if test "${with_pic+set}" = set; then
7eed349e
PC
4233 withval="$with_pic"
4234 pic_mode="$withval"
1cf3d07d
SE
4235else
4236 pic_mode=default
7eed349e 4237fi;
1cf3d07d
SE
4238
4239test -z "$pic_mode" && pic_mode=default
4240
4241
4242
4243
4244
4245
4246
7eed349e 4247# Check whether --enable-fast-install or --disable-fast-install was given.
b2dad0e3 4248if test "${enable_fast_install+set}" = set; then
7eed349e
PC
4249 enableval="$enable_fast_install"
4250 p=${PACKAGE-default}
1cf3d07d
SE
4251 case $enableval in
4252 yes) enable_fast_install=yes ;;
4253 no) enable_fast_install=no ;;
4254 *)
4255 enable_fast_install=no
4256 # Look at the argument we got. We use all the common list separators.
4257 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4258 for pkg in $enableval; do
4259 IFS="$lt_save_ifs"
4260 if test "X$pkg" = "X$p"; then
4261 enable_fast_install=yes
4262 fi
4263 done
4264 IFS="$lt_save_ifs"
4265 ;;
4266 esac
b2dad0e3
BK
4267else
4268 enable_fast_install=yes
7eed349e 4269fi;
b2dad0e3 4270
1cf3d07d
SE
4271
4272
4273
4274
4275
4276
4277
7eed349e
PC
4278echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4279echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4280if test "${lt_cv_path_SED+set}" = set; then
1cf3d07d
SE
4281 echo $ECHO_N "(cached) $ECHO_C" >&6
4282else
7eed349e
PC
4283 # Loop through the user's path and test for sed and gsed.
4284# Then use that list of sed's as ones to test for truncation.
1cf3d07d
SE
4285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286for as_dir in $PATH
4287do
4288 IFS=$as_save_IFS
4289 test -z "$as_dir" && as_dir=.
7eed349e
PC
4290 for lt_ac_prog in sed gsed; do
4291 for ac_exec_ext in '' $ac_executable_extensions; do
4292 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4293 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4294 fi
4295 done
8a165db0
BK
4296 done
4297done
8a165db0 4298IFS=$as_save_IFS
7eed349e
PC
4299lt_ac_max=0
4300lt_ac_count=0
4301# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4302# along with /bin/sed that truncates output.
4303for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4304 test ! -f $lt_ac_sed && continue
4305 cat /dev/null > conftest.in
4306 lt_ac_count=0
4307 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4308 # Check for GNU sed and select it if it is found.
4309 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4310 lt_cv_path_SED=$lt_ac_sed
4311 break
4312 fi
4313 while true; do
4314 cat conftest.in conftest.in >conftest.tmp
4315 mv conftest.tmp conftest.in
4316 cp conftest.in conftest.nl
4317 echo >>conftest.nl
4318 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4319 cmp -s conftest.out conftest.nl || break
4320 # 10000 chars as input seems more than enough
4321 test $lt_ac_count -gt 10 && break
4322 lt_ac_count=`expr $lt_ac_count + 1`
4323 if test $lt_ac_count -gt $lt_ac_max; then
4324 lt_ac_max=$lt_ac_count
4325 lt_cv_path_SED=$lt_ac_sed
4326 fi
4327 done
4328done
1cf3d07d
SE
4329
4330fi
4331
7eed349e 4332SED=$lt_cv_path_SED
1cf3d07d 4333
7eed349e
PC
4334echo "$as_me:$LINENO: result: $SED" >&5
4335echo "${ECHO_T}$SED" >&6
1cf3d07d
SE
4336
4337test -z "$SED" && SED=sed
4338Xsed="$SED -e 1s/^X//"
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
7eed349e
PC
4350echo "$as_me:$LINENO: checking for fgrep" >&5
4351echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4352if test "${ac_cv_prog_fgrep+set}" = set; then
1cf3d07d
SE
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4354else
7eed349e
PC
4355 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4356 then ac_cv_prog_fgrep='grep -F'
4357 else ac_cv_prog_fgrep='fgrep'
1cf3d07d
SE
4358 fi
4359fi
7eed349e
PC
4360echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4361echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4362 FGREP=$ac_cv_prog_fgrep
1cf3d07d
SE
4363
4364
4365test -z "$GREP" && GREP=grep
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
7eed349e 4385# Check whether --with-gnu-ld or --without-gnu-ld was given.
b2dad0e3 4386if test "${with_gnu_ld+set}" = set; then
7eed349e
PC
4387 withval="$with_gnu_ld"
4388 test "$withval" = no || with_gnu_ld=yes
b2dad0e3
BK
4389else
4390 with_gnu_ld=no
7eed349e 4391fi;
b2dad0e3 4392ac_prog=ld
c21b6f87 4393if test "$GCC" = yes; then
b2dad0e3 4394 # Check if gcc -print-prog-name=ld gives a path.
7eed349e
PC
4395 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4396echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3df64633
AO
4397 case $host in
4398 *-*-mingw*)
4399 # gcc leaves a trailing carriage return which upsets mingw
4400 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4401 *)
4402 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4403 esac
c21b6f87 4404 case $ac_prog in
b2dad0e3 4405 # Accept absolute paths.
1cf3d07d 4406 [\\/]* | ?:[\\/]*)
b2dad0e3 4407 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
4408 # Canonicalize the pathname of ld
4409 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4410 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4411 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
b2dad0e3
BK
4412 done
4413 test -z "$LD" && LD="$ac_prog"
4414 ;;
4415 "")
4416 # If it fails, then pretend we aren't using GCC.
4417 ac_prog=ld
4418 ;;
4419 *)
4420 # If it is relative, then search for the first ld in PATH.
4421 with_gnu_ld=unknown
4422 ;;
4423 esac
4424elif test "$with_gnu_ld" = yes; then
7eed349e
PC
4425 echo "$as_me:$LINENO: checking for GNU ld" >&5
4426echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
b2dad0e3 4427else
7eed349e
PC
4428 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4429echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
b2dad0e3 4430fi
ff66d28f
PE
4431if test "${lt_cv_path_LD+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3
BK
4433else
4434 if test -z "$LD"; then
1cf3d07d 4435 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
b2dad0e3 4436 for ac_dir in $PATH; do
1cf3d07d 4437 IFS="$lt_save_ifs"
b2dad0e3 4438 test -z "$ac_dir" && ac_dir=.
3840fa2a 4439 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
c21b6f87 4440 lt_cv_path_LD="$ac_dir/$ac_prog"
b2dad0e3 4441 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 4442 # but apparently some variants of GNU ld only accept -v.
b2dad0e3 4443 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
4444 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4445 *GNU* | *'with BFD'*)
b2dad0e3 4446 test "$with_gnu_ld" != no && break
1cf3d07d
SE
4447 ;;
4448 *)
b2dad0e3 4449 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
4450 ;;
4451 esac
b2dad0e3
BK
4452 fi
4453 done
1cf3d07d 4454 IFS="$lt_save_ifs"
b2dad0e3 4455else
c21b6f87 4456 lt_cv_path_LD="$LD" # Let the user override the test with a path.
b2dad0e3
BK
4457fi
4458fi
4459
c21b6f87 4460LD="$lt_cv_path_LD"
b2dad0e3 4461if test -n "$LD"; then
7eed349e
PC
4462 echo "$as_me:$LINENO: result: $LD" >&5
4463echo "${ECHO_T}$LD" >&6
b2dad0e3 4464else
7eed349e
PC
4465 echo "$as_me:$LINENO: result: no" >&5
4466echo "${ECHO_T}no" >&6
b2dad0e3 4467fi
ff66d28f
PE
4468test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4469echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4470 { (exit 1); exit 1; }; }
7eed349e
PC
4471echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4472echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
ff66d28f
PE
4473if test "${lt_cv_prog_gnu_ld+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 4475else
1cf3d07d
SE
4476 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4477case `$LD -v 2>&1 </dev/null` in
4478*GNU* | *'with BFD'*)
c21b6f87 4479 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
4480 ;;
4481*)
c21b6f87 4482 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
4483 ;;
4484esac
b2dad0e3 4485fi
7eed349e
PC
4486echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4487echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
c21b6f87 4488with_gnu_ld=$lt_cv_prog_gnu_ld
3df64633 4489
b2dad0e3
BK
4490
4491
1cf3d07d
SE
4492
4493
4494
4495
4496
4497
4498
7eed349e
PC
4499echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4500echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
ff66d28f
PE
4501if test "${lt_cv_path_NM+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3
BK
4503else
4504 if test -n "$NM"; then
4505 # Let the user override the test.
c21b6f87 4506 lt_cv_path_NM="$NM"
b2dad0e3 4507else
1cf3d07d
SE
4508 lt_nm_to_check="${ac_tool_prefix}nm"
4509 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4510 lt_nm_to_check="$lt_nm_to_check nm"
4511 fi
4512 for lt_tmp_nm in $lt_nm_to_check; do
4513 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4514 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4515 IFS="$lt_save_ifs"
4516 test -z "$ac_dir" && ac_dir=.
4517 tmp_nm="$ac_dir/$lt_tmp_nm"
4518 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4519 # Check to see if the nm accepts a BSD-compat flag.
4520 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4521 # nm: unknown option "B" ignored
4522 # Tru64's nm complains that /dev/null is an invalid object file
4523 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4524 */dev/null* | *'Invalid file or object type'*)
4525 lt_cv_path_NM="$tmp_nm -B"
4526 break
4527 ;;
4528 *)
4529 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4530 */dev/null*)
4531 lt_cv_path_NM="$tmp_nm -p"
4532 break
4533 ;;
4534 *)
4535 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4536 continue # so that we can try to find one that supports BSD flags
4537 ;;
4538 esac
4539 ;;
4540 esac
b2dad0e3 4541 fi
1cf3d07d
SE
4542 done
4543 IFS="$lt_save_ifs"
b2dad0e3 4544 done
1cf3d07d 4545 : ${lt_cv_path_NM=no}
b2dad0e3
BK
4546fi
4547fi
7eed349e
PC
4548echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4549echo "${ECHO_T}$lt_cv_path_NM" >&6
1cf3d07d
SE
4550if test "$lt_cv_path_NM" != "no"; then
4551 NM="$lt_cv_path_NM"
4552else
4553 # Didn't find any BSD compatible name lister, look for dumpbin.
4554 if test -n "$ac_tool_prefix"; then
4555 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4556 do
4557 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4558set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7eed349e
PC
4559echo "$as_me:$LINENO: checking for $ac_word" >&5
4560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 4561if test "${ac_cv_prog_DUMPBIN+set}" = set; then
ff66d28f 4562 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 4563else
1cf3d07d
SE
4564 if test -n "$DUMPBIN"; then
4565 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4566else
4567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568for as_dir in $PATH
4569do
4570 IFS=$as_save_IFS
4571 test -z "$as_dir" && as_dir=.
4572 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 4573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d
SE
4574 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4576 break 2
4577 fi
4578done
4579done
3df64633 4580
1cf3d07d
SE
4581fi
4582fi
4583DUMPBIN=$ac_cv_prog_DUMPBIN
4584if test -n "$DUMPBIN"; then
7eed349e
PC
4585 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4586echo "${ECHO_T}$DUMPBIN" >&6
1cf3d07d 4587else
7eed349e
PC
4588 echo "$as_me:$LINENO: result: no" >&5
4589echo "${ECHO_T}no" >&6
1cf3d07d 4590fi
c21b6f87 4591
1cf3d07d
SE
4592 test -n "$DUMPBIN" && break
4593 done
4594fi
4595if test -z "$DUMPBIN"; then
4596 ac_ct_DUMPBIN=$DUMPBIN
4597 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4598do
4599 # Extract the first word of "$ac_prog", so it can be a program name with args.
4600set dummy $ac_prog; ac_word=$2
7eed349e
PC
4601echo "$as_me:$LINENO: checking for $ac_word" >&5
4602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d
SE
4603if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4604 echo $ECHO_N "(cached) $ECHO_C" >&6
4605else
4606 if test -n "$ac_ct_DUMPBIN"; then
4607 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4608else
4609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610for as_dir in $PATH
4611do
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 4615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d
SE
4616 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 break 2
3df64633 4619 fi
1cf3d07d
SE
4620done
4621done
3df64633 4622
1cf3d07d
SE
4623fi
4624fi
4625ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4626if test -n "$ac_ct_DUMPBIN"; then
7eed349e
PC
4627 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4628echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
1cf3d07d 4629else
7eed349e
PC
4630 echo "$as_me:$LINENO: result: no" >&5
4631echo "${ECHO_T}no" >&6
1cf3d07d 4632fi
3df64633 4633
1cf3d07d
SE
4634 test -n "$ac_ct_DUMPBIN" && break
4635done
7eed349e 4636test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3df64633 4637
7eed349e 4638 DUMPBIN=$ac_ct_DUMPBIN
1cf3d07d 4639fi
3df64633 4640
3df64633 4641
1cf3d07d
SE
4642 if test "$DUMPBIN" != ":"; then
4643 NM="$DUMPBIN"
3df64633 4644 fi
1cf3d07d
SE
4645fi
4646test -z "$NM" && NM=nm
3df64633 4647
3df64633 4648
3df64633 4649
3df64633 4650
bfa1e6b1 4651
3df64633 4652
7eed349e
PC
4653echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4654echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
1cf3d07d
SE
4655if test "${lt_cv_nm_interface+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4657else
4658 lt_cv_nm_interface="BSD nm"
4659 echo "int some_variable = 0;" > conftest.$ac_ext
38d24731 4660 (eval echo "\"\$as_me:4660: $ac_compile\"" >&5)
1cf3d07d
SE
4661 (eval "$ac_compile" 2>conftest.err)
4662 cat conftest.err >&5
38d24731 4663 (eval echo "\"\$as_me:4663: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
4664 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4665 cat conftest.err >&5
38d24731 4666 (eval echo "\"\$as_me:4666: output\"" >&5)
1cf3d07d
SE
4667 cat conftest.out >&5
4668 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4669 lt_cv_nm_interface="MS dumpbin"
4670 fi
4671 rm -f conftest*
3df64633 4672fi
7eed349e
PC
4673echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4674echo "${ECHO_T}$lt_cv_nm_interface" >&6
3df64633 4675
6dab073b 4676# find the maximum length of command line arguments
7eed349e
PC
4677echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4678echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6dab073b
MS
4679if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4681else
4682 i=0
4683 teststring="ABCD"
4684
4685 case $build_os in
4686 msdosdjgpp*)
4687 # On DJGPP, this test can blow up pretty badly due to problems in libc
4688 # (any single argument exceeding 2000 bytes causes a buffer overrun
4689 # during glob expansion). Even if it were fixed, the result of this
4690 # check would be larger than it should be.
4691 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4692 ;;
4693
1cf3d07d
SE
4694 gnu*)
4695 # Under GNU Hurd, this test is not required because there is
4696 # no limit to the length of command line arguments.
4697 # Libtool will interpret -1 as no limit whatsoever
4698 lt_cv_sys_max_cmd_len=-1;
4699 ;;
4700
6dab073b
MS
4701 cygwin* | mingw*)
4702 # On Win9x/ME, this test blows up -- it succeeds, but takes
4703 # about 5 minutes as the teststring grows exponentially.
4704 # Worse, since 9x/ME are not pre-emptively multitasking,
4705 # you end up with a "frozen" computer, even though with patience
4706 # the test eventually succeeds (with a max line length of 256k).
4707 # Instead, let's just punt: use the minimum linelength reported by
4708 # all of the supported platforms: 8192 (on NT/2K/XP).
4709 lt_cv_sys_max_cmd_len=8192;
4710 ;;
4711
4712 amigaos*)
4713 # On AmigaOS with pdksh, this test takes hours, literally.
4714 # So we just punt and use a minimum line length of 8192.
4715 lt_cv_sys_max_cmd_len=8192;
4716 ;;
4717
4718 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4719 # This has been around since 386BSD, at least. Likely further.
4720 if test -x /sbin/sysctl; then
4721 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4722 elif test -x /usr/sbin/sysctl; then
4723 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4724 else
1cf3d07d 4725 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6dab073b
MS
4726 fi
4727 # And add a safety zone
4728 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4729 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4730 ;;
1cf3d07d
SE
4731
4732 interix*)
4733 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4734 lt_cv_sys_max_cmd_len=196608
4735 ;;
4736
4737 osf*)
4738 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4739 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4740 # nice to cause kernel panics so lets avoid the loop below.
4741 # First set a reasonable default.
4742 lt_cv_sys_max_cmd_len=16384
4743 #
4744 if test -x /sbin/sysconfig; then
4745 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4746 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4747 esac
4748 fi
4749 ;;
4750 sco3.2v5*)
4751 lt_cv_sys_max_cmd_len=102400
4752 ;;
4753 sysv5* | sco5v6* | sysv4.2uw2*)
4754 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4755 if test -n "$kargmax"; then
4756 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4757 else
4758 lt_cv_sys_max_cmd_len=32768
4759 fi
4760 ;;
4761 *)
82a6cadf
PB
4762 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
4763 if test -n $lt_cv_sys_max_cmd_len; then
4764 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4766 else
4767 # Make teststring a little bigger before we do anything with it.
4768 # a 1K string should be a reasonable start.
4769 for i in 1 2 3 4 5 6 7 8 ; do
4770 teststring=$teststring$teststring
4771 done
4772 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4773 # If test is not a shell built-in, we'll probably end up computing a
4774 # maximum length that is only half of the actual maximum length, but
4775 # we can't tell.
4776 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4777 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4778 test $i != 17 # 1/2 MB should be enough
4779 do
4780 i=`expr $i + 1`
4781 teststring=$teststring$teststring
4782 done
4783 # Only check the string length outside the loop.
4784 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4785 teststring=
4786 # Add a significant safety factor because C++ compilers can tack on
4787 # massive amounts of additional arguments before passing them to the
4788 # linker. It appears as though 1/2 is a usable value.
4789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4790 fi
1cf3d07d 4791 ;;
6dab073b
MS
4792 esac
4793
4794fi
4795
1cf3d07d 4796if test -n $lt_cv_sys_max_cmd_len ; then
7eed349e
PC
4797 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4798echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6dab073b 4799else
7eed349e
PC
4800 echo "$as_me:$LINENO: result: none" >&5
4801echo "${ECHO_T}none" >&6
6dab073b 4802fi
1cf3d07d 4803max_cmd_len=$lt_cv_sys_max_cmd_len
6dab073b
MS
4804
4805
1cf3d07d
SE
4806
4807
4808
4809
4810
4811: ${CP="cp -f"}
4812: ${MV="mv -f"}
4813: ${RM="rm -f"}
4814
7eed349e
PC
4815echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4816echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
1cf3d07d
SE
4817# Try some XSI features
4818xsi_shell=no
4819( _lt_dummy="a/b/c"
4820 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4821 = c,a/b,, ) >/dev/null 2>&1 \
4822 && xsi_shell=yes
7eed349e
PC
4823echo "$as_me:$LINENO: result: $xsi_shell" >&5
4824echo "${ECHO_T}$xsi_shell" >&6
1cf3d07d
SE
4825
4826
7eed349e
PC
4827echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4828echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
1cf3d07d
SE
4829lt_shell_append=no
4830( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4831 >/dev/null 2>&1 \
4832 && lt_shell_append=yes
7eed349e
PC
4833echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4834echo "${ECHO_T}$lt_shell_append" >&6
1cf3d07d
SE
4835
4836
4837if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4838 lt_unset=unset
3df64633 4839else
1cf3d07d
SE
4840 lt_unset=false
4841fi
3df64633 4842
3df64633 4843
1cf3d07d
SE
4844
4845
4846
4847# test EBCDIC or ASCII
4848case `echo X|tr X '\101'` in
4849 A) # ASCII based system
4850 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4851 lt_SP2NL='tr \040 \012'
4852 lt_NL2SP='tr \015\012 \040\040'
4853 ;;
4854 *) # EBCDIC based system
4855 lt_SP2NL='tr \100 \n'
4856 lt_NL2SP='tr \r\n \100\100'
3df64633
AO
4857 ;;
4858esac
3df64633 4859
1cf3d07d
SE
4860
4861
4862
4863
4864
4865
4866
4867
7eed349e
PC
4868echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4869echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
1cf3d07d
SE
4870if test "${lt_cv_ld_reload_flag+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 4872else
1cf3d07d 4873 lt_cv_ld_reload_flag='-r'
3df64633 4874fi
7eed349e
PC
4875echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4876echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
1cf3d07d
SE
4877reload_flag=$lt_cv_ld_reload_flag
4878case $reload_flag in
4879"" | " "*) ;;
4880*) reload_flag=" $reload_flag" ;;
4881esac
4882reload_cmds='$LD$reload_flag -o $output$reload_objs'
4883case $host_os in
4884 darwin*)
4885 if test "$GCC" = yes; then
4886 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4887 else
4888 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4889 fi
4890 ;;
4891esac
3df64633 4892
1cf3d07d
SE
4893
4894
4895
4896
4897
4898
4899
4900
4901
7eed349e
PC
4902echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4903echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
1cf3d07d 4904if test "${lt_cv_deplibs_check_method+set}" = set; then
ff66d28f 4905 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 4906else
1cf3d07d
SE
4907 lt_cv_file_magic_cmd='$MAGIC_CMD'
4908lt_cv_file_magic_test_file=
4909lt_cv_deplibs_check_method='unknown'
4910# Need to set the preceding variable on all platforms that support
4911# interlibrary dependencies.
4912# 'none' -- dependencies not supported.
4913# `unknown' -- same as none, but documents that we really don't know.
4914# 'pass_all' -- all dependencies passed with no checks.
4915# 'test_compile' -- check by making test program.
4916# 'file_magic [[regex]]' -- check by looking for files in library path
4917# which responds to the $file_magic_cmd with a given extended regex.
4918# If you have `file' or equivalent on your system and you're not sure
4919# whether `pass_all' will *always* work, you probably want this one.
4920
4921case $host_os in
716e4bc6 4922aix[4-9]*)
1cf3d07d
SE
4923 lt_cv_deplibs_check_method=pass_all
4924 ;;
4925
4926beos*)
4927 lt_cv_deplibs_check_method=pass_all
4928 ;;
4929
4930bsdi[45]*)
4931 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4932 lt_cv_file_magic_cmd='/usr/bin/file -L'
4933 lt_cv_file_magic_test_file=/shlib/libc.so
4934 ;;
4935
4936cygwin*)
4937 # func_win32_libid is a shell function defined in ltmain.sh
4938 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4939 lt_cv_file_magic_cmd='func_win32_libid'
4940 ;;
4941
4942mingw* | pw32*)
4943 # Base MSYS/MinGW do not provide the 'file' command needed by
4944 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4945 # unless we find 'file', for example because we are cross-compiling.
4946 if ( file / ) >/dev/null 2>&1; then
4947 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4948 lt_cv_file_magic_cmd='func_win32_libid'
4949 else
4950 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4951 lt_cv_file_magic_cmd='$OBJDUMP -f'
4952 fi
4953 ;;
4954
4955darwin* | rhapsody*)
4956 lt_cv_deplibs_check_method=pass_all
4957 ;;
4958
4959freebsd* | dragonfly*)
4960 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4961 case $host_cpu in
4962 i*86 )
4963 # Not sure whether the presence of OpenBSD here was a mistake.
4964 # Let's accept both of them until this is cleared up.
4965 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4966 lt_cv_file_magic_cmd=/usr/bin/file
4967 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4968 ;;
4969 esac
4970 else
4971 lt_cv_deplibs_check_method=pass_all
4972 fi
3df64633 4973 ;;
1cf3d07d
SE
4974
4975gnu*)
4976 lt_cv_deplibs_check_method=pass_all
3df64633 4977 ;;
1cf3d07d
SE
4978
4979hpux10.20* | hpux11*)
4980 lt_cv_file_magic_cmd=/usr/bin/file
4981 case $host_cpu in
4982 ia64*)
4983 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4984 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4985 ;;
4986 hppa*64*)
4987 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]'
4988 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4989 ;;
3df64633 4990 *)
1cf3d07d
SE
4991 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4992 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4993 ;;
4994 esac
4995 ;;
3df64633 4996
1cf3d07d
SE
4997interix[3-9]*)
4998 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5000 ;;
3df64633 5001
1cf3d07d
SE
5002irix5* | irix6* | nonstopux*)
5003 case $LD in
5004 *-32|*"-32 ") libmagic=32-bit;;
5005 *-n32|*"-n32 ") libmagic=N32;;
5006 *-64|*"-64 ") libmagic=64-bit;;
5007 *) libmagic=never-match;;
5008 esac
5009 lt_cv_deplibs_check_method=pass_all
3df64633 5010 ;;
3df64633 5011
1cf3d07d
SE
5012# This must be Linux ELF.
5013linux* | k*bsd*-gnu)
5014 lt_cv_deplibs_check_method=pass_all
5015 ;;
3df64633 5016
1cf3d07d
SE
5017netbsd*)
5018 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5019 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3df64633 5020 else
1cf3d07d 5021 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3df64633 5022 fi
1cf3d07d
SE
5023 ;;
5024
5025newos6*)
5026 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5027 lt_cv_file_magic_cmd=/usr/bin/file
5028 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5029 ;;
5030
5031*nto* | *qnx*)
5032 lt_cv_deplibs_check_method=pass_all
5033 ;;
3df64633 5034
1cf3d07d
SE
5035openbsd*)
5036 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5037 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5038 else
5039 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3df64633
AO
5040 fi
5041 ;;
1cf3d07d
SE
5042
5043osf3* | osf4* | osf5*)
5044 lt_cv_deplibs_check_method=pass_all
5045 ;;
5046
5047rdos*)
5048 lt_cv_deplibs_check_method=pass_all
5049 ;;
5050
5051solaris*)
5052 lt_cv_deplibs_check_method=pass_all
5053 ;;
5054
5055sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5056 lt_cv_deplibs_check_method=pass_all
5057 ;;
5058
5059sysv4 | sysv4.3*)
5060 case $host_vendor in
5061 motorola)
5062 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]'
5063 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5064 ;;
5065 ncr)
5066 lt_cv_deplibs_check_method=pass_all
5067 ;;
5068 sequent)
5069 lt_cv_file_magic_cmd='/bin/file'
5070 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5071 ;;
5072 sni)
5073 lt_cv_file_magic_cmd='/bin/file'
5074 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5075 lt_cv_file_magic_test_file=/lib/libc.so
5076 ;;
5077 siemens)
5078 lt_cv_deplibs_check_method=pass_all
5079 ;;
5080 pc)
5081 lt_cv_deplibs_check_method=pass_all
5082 ;;
5083 esac
5084 ;;
5085
5086tpf*)
5087 lt_cv_deplibs_check_method=pass_all
5088 ;;
3df64633
AO
5089esac
5090
1cf3d07d 5091fi
7eed349e
PC
5092echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5093echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
1cf3d07d
SE
5094file_magic_cmd=$lt_cv_file_magic_cmd
5095deplibs_check_method=$lt_cv_deplibs_check_method
5096test -z "$deplibs_check_method" && deplibs_check_method=unknown
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
ff66d28f 5109if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
5110 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5111set dummy ${ac_tool_prefix}ar; ac_word=$2
7eed349e
PC
5112echo "$as_me:$LINENO: checking for $ac_word" >&5
5113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 5114if test "${ac_cv_prog_AR+set}" = set; then
ff66d28f 5115 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 5116else
1cf3d07d
SE
5117 if test -n "$AR"; then
5118 ac_cv_prog_AR="$AR" # Let the user override the test.
3df64633 5119else
ff66d28f
PE
5120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5121for as_dir in $PATH
5122do
5123 IFS=$as_save_IFS
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 5126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 5127 ac_cv_prog_AR="${ac_tool_prefix}ar"
ff66d28f
PE
5128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 break 2
5130 fi
5131done
5132done
5133
3df64633
AO
5134fi
5135fi
1cf3d07d
SE
5136AR=$ac_cv_prog_AR
5137if test -n "$AR"; then
7eed349e
PC
5138 echo "$as_me:$LINENO: result: $AR" >&5
5139echo "${ECHO_T}$AR" >&6
3df64633 5140else
7eed349e
PC
5141 echo "$as_me:$LINENO: result: no" >&5
5142echo "${ECHO_T}no" >&6
3df64633
AO
5143fi
5144
ff66d28f 5145fi
1cf3d07d
SE
5146if test -z "$ac_cv_prog_AR"; then
5147 ac_ct_AR=$AR
5148 # Extract the first word of "ar", so it can be a program name with args.
5149set dummy ar; ac_word=$2
7eed349e
PC
5150echo "$as_me:$LINENO: checking for $ac_word" >&5
5151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 5152if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
ff66d28f 5153 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 5154else
1cf3d07d
SE
5155 if test -n "$ac_ct_AR"; then
5156 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3df64633 5157else
ff66d28f
PE
5158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159for as_dir in $PATH
5160do
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 5164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 5165 ac_cv_prog_ac_ct_AR="ar"
ff66d28f
PE
5166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 break 2
5168 fi
5169done
5170done
5171
7eed349e 5172 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
3df64633
AO
5173fi
5174fi
1cf3d07d
SE
5175ac_ct_AR=$ac_cv_prog_ac_ct_AR
5176if test -n "$ac_ct_AR"; then
7eed349e
PC
5177 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5178echo "${ECHO_T}$ac_ct_AR" >&6
3df64633 5179else
7eed349e
PC
5180 echo "$as_me:$LINENO: result: no" >&5
5181echo "${ECHO_T}no" >&6
3df64633
AO
5182fi
5183
7eed349e 5184 AR=$ac_ct_AR
3df64633 5185else
1cf3d07d 5186 AR="$ac_cv_prog_AR"
3df64633
AO
5187fi
5188
1cf3d07d
SE
5189test -z "$AR" && AR=ar
5190test -z "$AR_FLAGS" && AR_FLAGS=cru
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
ff66d28f
PE
5202if test -n "$ac_tool_prefix"; then
5203 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3df64633 5204set dummy ${ac_tool_prefix}strip; ac_word=$2
7eed349e
PC
5205echo "$as_me:$LINENO: checking for $ac_word" >&5
5206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
5207if test "${ac_cv_prog_STRIP+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633
AO
5209else
5210 if test -n "$STRIP"; then
5211 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5212else
ff66d28f
PE
5213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214for as_dir in $PATH
5215do
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 5219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
5220 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5222 break 2
5223 fi
5224done
5225done
5226
3df64633
AO
5227fi
5228fi
ff66d28f 5229STRIP=$ac_cv_prog_STRIP
3df64633 5230if test -n "$STRIP"; then
7eed349e
PC
5231 echo "$as_me:$LINENO: result: $STRIP" >&5
5232echo "${ECHO_T}$STRIP" >&6
3df64633 5233else
7eed349e
PC
5234 echo "$as_me:$LINENO: result: no" >&5
5235echo "${ECHO_T}no" >&6
3df64633
AO
5236fi
5237
ff66d28f 5238fi
3df64633 5239if test -z "$ac_cv_prog_STRIP"; then
ff66d28f 5240 ac_ct_STRIP=$STRIP
3df64633
AO
5241 # Extract the first word of "strip", so it can be a program name with args.
5242set dummy strip; ac_word=$2
7eed349e
PC
5243echo "$as_me:$LINENO: checking for $ac_word" >&5
5244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
ff66d28f
PE
5245if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 5247else
ff66d28f
PE
5248 if test -n "$ac_ct_STRIP"; then
5249 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3df64633 5250else
ff66d28f
PE
5251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252for as_dir in $PATH
5253do
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 5257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ff66d28f
PE
5258 ac_cv_prog_ac_ct_STRIP="strip"
5259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 break 2
5261 fi
5262done
5263done
5264
7eed349e 5265 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3df64633
AO
5266fi
5267fi
ff66d28f
PE
5268ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5269if test -n "$ac_ct_STRIP"; then
7eed349e
PC
5270 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5271echo "${ECHO_T}$ac_ct_STRIP" >&6
3df64633 5272else
7eed349e
PC
5273 echo "$as_me:$LINENO: result: no" >&5
5274echo "${ECHO_T}no" >&6
3df64633
AO
5275fi
5276
7eed349e 5277 STRIP=$ac_ct_STRIP
3df64633 5278else
ff66d28f 5279 STRIP="$ac_cv_prog_STRIP"
3df64633
AO
5280fi
5281
1cf3d07d 5282test -z "$STRIP" && STRIP=:
b2dad0e3 5283
ff66d28f 5284
3840fa2a 5285
3840fa2a 5286
b2dad0e3 5287
ff66d28f 5288
1cf3d07d
SE
5289if test -n "$ac_tool_prefix"; then
5290 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5291set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7eed349e
PC
5292echo "$as_me:$LINENO: checking for $ac_word" >&5
5293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d
SE
5294if test "${ac_cv_prog_RANLIB+set}" = set; then
5295 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 5296else
1cf3d07d
SE
5297 if test -n "$RANLIB"; then
5298 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5299else
5300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301for as_dir in $PATH
5302do
5303 IFS=$as_save_IFS
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 5306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d
SE
5307 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5309 break 2
b2dad0e3 5310 fi
1cf3d07d
SE
5311done
5312done
b2dad0e3 5313
1cf3d07d
SE
5314fi
5315fi
5316RANLIB=$ac_cv_prog_RANLIB
5317if test -n "$RANLIB"; then
7eed349e
PC
5318 echo "$as_me:$LINENO: result: $RANLIB" >&5
5319echo "${ECHO_T}$RANLIB" >&6
1cf3d07d 5320else
7eed349e
PC
5321 echo "$as_me:$LINENO: result: no" >&5
5322echo "${ECHO_T}no" >&6
1cf3d07d 5323fi
38cca750 5324
1cf3d07d
SE
5325fi
5326if test -z "$ac_cv_prog_RANLIB"; then
5327 ac_ct_RANLIB=$RANLIB
5328 # Extract the first word of "ranlib", so it can be a program name with args.
5329set dummy ranlib; ac_word=$2
7eed349e
PC
5330echo "$as_me:$LINENO: checking for $ac_word" >&5
5331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d
SE
5332if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5334else
5335 if test -n "$ac_ct_RANLIB"; then
5336 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5337else
5338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339for as_dir in $PATH
5340do
5341 IFS=$as_save_IFS
5342 test -z "$as_dir" && as_dir=.
5343 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 5344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d
SE
5345 ac_cv_prog_ac_ct_RANLIB="ranlib"
5346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5347 break 2
162c7cd9 5348 fi
1cf3d07d
SE
5349done
5350done
162c7cd9 5351
7eed349e 5352 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1cf3d07d
SE
5353fi
5354fi
5355ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5356if test -n "$ac_ct_RANLIB"; then
7eed349e
PC
5357 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5358echo "${ECHO_T}$ac_ct_RANLIB" >&6
b2dad0e3 5359else
7eed349e
PC
5360 echo "$as_me:$LINENO: result: no" >&5
5361echo "${ECHO_T}no" >&6
1cf3d07d 5362fi
ff66d28f 5363
7eed349e 5364 RANLIB=$ac_ct_RANLIB
1cf3d07d
SE
5365else
5366 RANLIB="$ac_cv_prog_RANLIB"
5367fi
ff66d28f 5368
1cf3d07d 5369test -z "$RANLIB" && RANLIB=:
ff66d28f 5370
1cf3d07d
SE
5371
5372
5373
5374
5375
5376# Determine commands to create old-style static archives.
5377old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5378old_postinstall_cmds='chmod 644 $oldlib'
5379old_postuninstall_cmds=
5380
5381if test -n "$RANLIB"; then
5382 case $host_os in
5383 openbsd*)
5384 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5385 ;;
5386 *)
5387 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5388 ;;
5389 esac
5390 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5391fi
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426# If no C compiler was specified, use CC.
5427LTCC=${LTCC-"$CC"}
5428
5429# If no C compiler flags were specified, use CFLAGS.
5430LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5431
5432# Allow CC to be a program name with arguments.
5433compiler=$CC
5434
5435
5436# Check for command to grab the raw symbol name followed by C symbol from nm.
7eed349e
PC
5437echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5438echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
1cf3d07d
SE
5439if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5441else
5442
5443# These are sane defaults that work on at least a few old systems.
5444# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5445
5446# Character class describing NM global symbol codes.
5447symcode='[BCDEGRST]'
5448
5449# Regexp to match symbols that can be accessed directly from C.
5450sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5451
5452# Define system-specific variables.
5453case $host_os in
5454aix*)
5455 symcode='[BCDT]'
5456 ;;
5457cygwin* | mingw* | pw32*)
5458 symcode='[ABCDGISTW]'
5459 ;;
5460hpux*)
5461 if test "$host_cpu" = ia64; then
5462 symcode='[ABCDEGRST]'
5463 fi
5464 ;;
5465irix* | nonstopux*)
5466 symcode='[BCDEGRST]'
5467 ;;
5468osf*)
5469 symcode='[BCDEGQRST]'
5470 ;;
5471solaris*)
5472 symcode='[BDRT]'
5473 ;;
5474sco3.2v5*)
5475 symcode='[DT]'
5476 ;;
5477sysv4.2uw2*)
5478 symcode='[DT]'
5479 ;;
5480sysv5* | sco5v6* | unixware* | OpenUNIX*)
5481 symcode='[ABDT]'
5482 ;;
5483sysv4)
5484 symcode='[DFNSTU]'
5485 ;;
5486esac
5487
5488# If we're using GNU nm, then use its standard symbol codes.
5489case `$NM -V 2>&1` in
5490*GNU* | *'with BFD'*)
5491 symcode='[ABCDGIRSTW]' ;;
5492esac
5493
5494# Transform an extracted symbol line into a proper C declaration.
5495# Some systems (esp. on ia64) link data and code symbols differently,
5496# so use this general approach.
5497lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5498
5499# Transform an extracted symbol line into symbol name and symbol address
5500lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5501
5502# Handle CRLF in mingw tool chain
5503opt_cr=
5504case $build_os in
5505mingw*)
5506 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5507 ;;
5508esac
5509
5510# Try without a prefix underscore, then with it.
5511for ac_symprfx in "" "_"; do
5512
5513 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5514 symxfrm="\\1 $ac_symprfx\\2 \\2"
5515
5516 # Write the raw and C identifiers.
5517 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5518 # Fake it for dumpbin and say T for any non-static function
5519 # and D for any global variable.
5520 # Also find C++ and __fastcall symbols from MSVC++,
5521 # which start with @ or ?.
5522 lt_cv_sys_global_symbol_pipe="$AWK '"\
5523" {last_section=section; section=\$ 3};"\
5524" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5525" \$ 0!~/External *\|/{next};"\
5526" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5527" {if(hide[section]) next};"\
5528" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5529" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5530" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5531" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5532" ' prfx=^$ac_symprfx"
5533 else
5534 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5535 fi
5536
5537 # Check to see that the pipe works correctly.
5538 pipe_works=no
5539
5540 rm -f conftest*
5541 cat > conftest.$ac_ext <<_LT_EOF
5542#ifdef __cplusplus
5543extern "C" {
5544#endif
5545char nm_test_var;
5546void nm_test_func(void);
5547void nm_test_func(void){}
5548#ifdef __cplusplus
5549}
5550#endif
5551int main(){nm_test_var='a';nm_test_func();return(0);}
5552_LT_EOF
5553
5554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5555 (eval $ac_compile) 2>&5
5556 ac_status=$?
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; then
5559 # Now try to grab the symbols.
5560 nlist=conftest.nm
5561 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5562 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5563 ac_status=$?
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } && test -s "$nlist"; then
5566 # Try sorting and uniquifying the output.
5567 if sort "$nlist" | uniq > "$nlist"T; then
5568 mv -f "$nlist"T "$nlist"
5569 else
5570 rm -f "$nlist"T
5571 fi
5572
5573 # Make sure that we snagged all the symbols we need.
5574 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5575 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5576 cat <<_LT_EOF > conftest.$ac_ext
5577#ifdef __cplusplus
5578extern "C" {
5579#endif
5580
5581_LT_EOF
5582 # Now generate the symbol file.
5583 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5584
5585 cat <<_LT_EOF >> conftest.$ac_ext
5586
5587/* The mapping between symbol names and symbols. */
5588const struct {
5589 const char *name;
5590 void *address;
5591}
5592lt__PROGRAM__LTX_preloaded_symbols[] =
5593{
5594 { "@PROGRAM@", (void *) 0 },
5595_LT_EOF
5596 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5597 cat <<\_LT_EOF >> conftest.$ac_ext
5598 {0, (void *) 0}
5599};
5600
5601/* This works around a problem in FreeBSD linker */
5602#ifdef FREEBSD_WORKAROUND
5603static const void *lt_preloaded_setup() {
5604 return lt__PROGRAM__LTX_preloaded_symbols;
5605}
5606#endif
5607
5608#ifdef __cplusplus
5609}
5610#endif
5611_LT_EOF
5612 # Now try linking the two files.
5613 mv conftest.$ac_objext conftstm.$ac_objext
5614 lt_save_LIBS="$LIBS"
5615 lt_save_CFLAGS="$CFLAGS"
5616 LIBS="conftstm.$ac_objext"
5617 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5619 (eval $ac_link) 2>&5
5620 ac_status=$?
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5623 pipe_works=yes
5624 fi
5625 LIBS="$lt_save_LIBS"
5626 CFLAGS="$lt_save_CFLAGS"
5627 else
5628 echo "cannot find nm_test_func in $nlist" >&5
5629 fi
5630 else
5631 echo "cannot find nm_test_var in $nlist" >&5
5632 fi
5633 else
5634 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5635 fi
5636 else
5637 echo "$progname: failed program was:" >&5
5638 cat conftest.$ac_ext >&5
5639 fi
5640 rm -f conftest* conftst*
5641
5642 # Do not use the global_symbol_pipe unless it works.
5643 if test "$pipe_works" = yes; then
5644 break
5645 else
5646 lt_cv_sys_global_symbol_pipe=
5647 fi
5648done
5649
5650fi
5651
5652if test -z "$lt_cv_sys_global_symbol_pipe"; then
5653 lt_cv_sys_global_symbol_to_cdecl=
5654fi
5655if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7eed349e
PC
5656 echo "$as_me:$LINENO: result: failed" >&5
5657echo "${ECHO_T}failed" >&6
1cf3d07d 5658else
7eed349e
PC
5659 echo "$as_me:$LINENO: result: ok" >&5
5660echo "${ECHO_T}ok" >&6
1cf3d07d
SE
5661fi
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
7eed349e 5679# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1cf3d07d 5680if test "${enable_libtool_lock+set}" = set; then
7eed349e 5681 enableval="$enable_libtool_lock"
1cf3d07d 5682
7eed349e 5683fi;
1cf3d07d
SE
5684test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5685
5686# Some flags need to be propagated to the compiler or linker for good
5687# libtool support.
5688case $host in
5689ia64-*-hpux*)
5690 # Find out which ABI we are using.
5691 echo 'int i;' > conftest.$ac_ext
5692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5693 (eval $ac_compile) 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; then
5697 case `/usr/bin/file conftest.$ac_objext` in
5698 *ELF-32*)
5699 HPUX_IA64_MODE="32"
5700 ;;
5701 *ELF-64*)
5702 HPUX_IA64_MODE="64"
5703 ;;
5704 esac
5705 fi
5706 rm -rf conftest*
5707 ;;
5708*-*-irix6*)
5709 # Find out which ABI we are using.
38d24731 5710 echo '#line 5710 "configure"' > conftest.$ac_ext
1cf3d07d
SE
5711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5712 (eval $ac_compile) 2>&5
5713 ac_status=$?
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); }; then
5716 if test "$lt_cv_prog_gnu_ld" = yes; then
5717 case `/usr/bin/file conftest.$ac_objext` in
5718 *32-bit*)
5719 LD="${LD-ld} -melf32bsmip"
5720 ;;
5721 *N32*)
5722 LD="${LD-ld} -melf32bmipn32"
5723 ;;
5724 *64-bit*)
5725 LD="${LD-ld} -melf64bmip"
5726 ;;
5727 esac
5728 else
5729 case `/usr/bin/file conftest.$ac_objext` in
5730 *32-bit*)
5731 LD="${LD-ld} -32"
5732 ;;
5733 *N32*)
5734 LD="${LD-ld} -n32"
5735 ;;
5736 *64-bit*)
5737 LD="${LD-ld} -64"
5738 ;;
5739 esac
5740 fi
5741 fi
5742 rm -rf conftest*
5743 ;;
5744
5745x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5746s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5747 # Find out which ABI we are using.
5748 echo 'int i;' > conftest.$ac_ext
5749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5750 (eval $ac_compile) 2>&5
5751 ac_status=$?
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; then
5754 case `/usr/bin/file conftest.o` in
5755 *32-bit*)
5756 case $host in
5757 x86_64-*kfreebsd*-gnu)
5758 LD="${LD-ld} -m elf_i386_fbsd"
5759 ;;
5760 x86_64-*linux*)
5761 LD="${LD-ld} -m elf_i386"
5762 ;;
5763 ppc64-*linux*|powerpc64-*linux*)
5764 LD="${LD-ld} -m elf32ppclinux"
5765 ;;
5766 s390x-*linux*)
5767 LD="${LD-ld} -m elf_s390"
5768 ;;
5769 sparc64-*linux*)
5770 LD="${LD-ld} -m elf32_sparc"
5771 ;;
5772 esac
5773 ;;
5774 *64-bit*)
5775 case $host in
5776 x86_64-*kfreebsd*-gnu)
5777 LD="${LD-ld} -m elf_x86_64_fbsd"
5778 ;;
5779 x86_64-*linux*)
5780 LD="${LD-ld} -m elf_x86_64"
5781 ;;
5782 ppc*-*linux*|powerpc*-*linux*)
5783 LD="${LD-ld} -m elf64ppc"
5784 ;;
5785 s390*-*linux*|s390*-*tpf*)
5786 LD="${LD-ld} -m elf64_s390"
5787 ;;
5788 sparc*-*linux*)
5789 LD="${LD-ld} -m elf64_sparc"
5790 ;;
5791 esac
5792 ;;
5793 esac
5794 fi
5795 rm -rf conftest*
5796 ;;
5797
5798*-*-sco3.2v5*)
5799 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5800 SAVE_CFLAGS="$CFLAGS"
5801 CFLAGS="$CFLAGS -belf"
7eed349e
PC
5802 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5803echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
1cf3d07d
SE
5804if test "${lt_cv_cc_needs_belf+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5806else
5807 ac_ext=c
5808ac_cpp='$CPP $CPPFLAGS'
5809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5811ac_compiler_gnu=$ac_cv_c_compiler_gnu
5812
5813 if test x$gcc_no_link = xyes; then
5814 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5815echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5816 { (exit 1); exit 1; }; }
5817fi
5818cat >conftest.$ac_ext <<_ACEOF
5819/* confdefs.h. */
ff66d28f
PE
5820_ACEOF
5821cat confdefs.h >>conftest.$ac_ext
5822cat >>conftest.$ac_ext <<_ACEOF
5823/* end confdefs.h. */
3df64633 5824
ff66d28f
PE
5825int
5826main ()
5827{
b2dad0e3 5828
ff66d28f
PE
5829 ;
5830 return 0;
5831}
5832_ACEOF
5833rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
5834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5835 (eval $ac_link) 2>conftest.er1
ff66d28f 5836 ac_status=$?
ec2075e9
BK
5837 grep -v '^ *+' conftest.er1 >conftest.err
5838 rm -f conftest.er1
5839 cat conftest.err >&5
ff66d28f 5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
5841 (exit $ac_status); } &&
5842 { ac_try='test -z "$ac_c_werror_flag"
5843 || test ! -s conftest.err'
5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 (eval $ac_try) 2>&5
5846 ac_status=$?
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; } &&
5849 { ac_try='test -s conftest$ac_exeext'
5850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5851 (eval $ac_try) 2>&5
5852 ac_status=$?
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; }; then
b2dad0e3
BK
5855 lt_cv_cc_needs_belf=yes
5856else
ff66d28f
PE
5857 echo "$as_me: failed program was:" >&5
5858sed 's/^/| /' conftest.$ac_ext >&5
5859
7eed349e 5860lt_cv_cc_needs_belf=no
b2dad0e3 5861fi
7eed349e 5862rm -f conftest.err conftest.$ac_objext \
ec2075e9 5863 conftest$ac_exeext conftest.$ac_ext
3df64633 5864 ac_ext=c
3df64633 5865ac_cpp='$CPP $CPPFLAGS'
ff66d28f
PE
5866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5868ac_compiler_gnu=$ac_cv_c_compiler_gnu
3df64633 5869
b2dad0e3 5870fi
7eed349e
PC
5871echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5872echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
b2dad0e3
BK
5873 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5874 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5875 CFLAGS="$SAVE_CFLAGS"
5876 fi
5877 ;;
1cf3d07d
SE
5878sparc*-*solaris*)
5879 # Find out which ABI we are using.
5880 echo 'int i;' > conftest.$ac_ext
5881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5882 (eval $ac_compile) 2>&5
5883 ac_status=$?
5884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); }; then
5886 case `/usr/bin/file conftest.o` in
5887 *64-bit*)
5888 case $lt_cv_prog_gnu_ld in
5889 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5890 *) LD="${LD-ld} -64" ;;
5891 esac
5892 ;;
5893 esac
5894 fi
5895 rm -rf conftest*
5896 ;;
b2dad0e3
BK
5897esac
5898
1cf3d07d 5899need_locks="$enable_libtool_lock"
b2dad0e3 5900
7eed349e
PC
5901echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5902echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
1cf3d07d
SE
5903if test "${ac_cv_header_stdc+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5905else
5906 cat >conftest.$ac_ext <<_ACEOF
5907/* confdefs.h. */
ff66d28f 5908_ACEOF
1cf3d07d
SE
5909cat confdefs.h >>conftest.$ac_ext
5910cat >>conftest.$ac_ext <<_ACEOF
5911/* end confdefs.h. */
5912#include <stdlib.h>
5913#include <stdarg.h>
5914#include <string.h>
5915#include <float.h>
ff66d28f 5916
1cf3d07d
SE
5917int
5918main ()
ff66d28f 5919{
1cf3d07d
SE
5920
5921 ;
5922 return 0;
5923}
5924_ACEOF
5925rm -f conftest.$ac_objext
7eed349e
PC
5926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5927 (eval $ac_compile) 2>conftest.er1
1cf3d07d
SE
5928 ac_status=$?
5929 grep -v '^ *+' conftest.er1 >conftest.err
5930 rm -f conftest.er1
5931 cat conftest.err >&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
5933 (exit $ac_status); } &&
5934 { ac_try='test -z "$ac_c_werror_flag"
5935 || test ! -s conftest.err'
5936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5937 (eval $ac_try) 2>&5
5938 ac_status=$?
5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }; } &&
5941 { ac_try='test -s conftest.$ac_objext'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 (eval $ac_try) 2>&5
5944 ac_status=$?
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; }; then
1cf3d07d
SE
5947 ac_cv_header_stdc=yes
5948else
5949 echo "$as_me: failed program was:" >&5
5950sed 's/^/| /' conftest.$ac_ext >&5
5951
7eed349e 5952ac_cv_header_stdc=no
b2dad0e3 5953fi
7eed349e 5954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b2dad0e3 5955
1cf3d07d
SE
5956if test $ac_cv_header_stdc = yes; then
5957 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5958 cat >conftest.$ac_ext <<_ACEOF
5959/* confdefs.h. */
5960_ACEOF
5961cat confdefs.h >>conftest.$ac_ext
5962cat >>conftest.$ac_ext <<_ACEOF
5963/* end confdefs.h. */
5964#include <string.h>
b2dad0e3 5965
1cf3d07d
SE
5966_ACEOF
5967if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5968 $EGREP "memchr" >/dev/null 2>&1; then
5969 :
b2dad0e3 5970else
1cf3d07d 5971 ac_cv_header_stdc=no
b2dad0e3 5972fi
1cf3d07d 5973rm -f conftest*
b2dad0e3 5974
1cf3d07d 5975fi
b2dad0e3 5976
1cf3d07d
SE
5977if test $ac_cv_header_stdc = yes; then
5978 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5979 cat >conftest.$ac_ext <<_ACEOF
5980/* confdefs.h. */
5981_ACEOF
5982cat confdefs.h >>conftest.$ac_ext
5983cat >>conftest.$ac_ext <<_ACEOF
5984/* end confdefs.h. */
5985#include <stdlib.h>
b2dad0e3 5986
1cf3d07d
SE
5987_ACEOF
5988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5989 $EGREP "free" >/dev/null 2>&1; then
5990 :
5991else
5992 ac_cv_header_stdc=no
5993fi
5994rm -f conftest*
b2dad0e3 5995
1cf3d07d 5996fi
b2dad0e3 5997
1cf3d07d
SE
5998if test $ac_cv_header_stdc = yes; then
5999 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6000 if test "$cross_compiling" = yes; then
6001 :
ff66d28f 6002else
ff66d28f 6003 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
6004/* confdefs.h. */
6005_ACEOF
6006cat confdefs.h >>conftest.$ac_ext
6007cat >>conftest.$ac_ext <<_ACEOF
6008/* end confdefs.h. */
1cf3d07d
SE
6009#include <ctype.h>
6010#if ((' ' & 0x0FF) == 0x020)
6011# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6012# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
ff66d28f 6013#else
1cf3d07d
SE
6014# define ISLOWER(c) \
6015 (('a' <= (c) && (c) <= 'i') \
6016 || ('j' <= (c) && (c) <= 'r') \
6017 || ('s' <= (c) && (c) <= 'z'))
6018# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
ff66d28f 6019#endif
1cf3d07d
SE
6020
6021#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6022int
6023main ()
6024{
6025 int i;
6026 for (i = 0; i < 256; i++)
6027 if (XOR (islower (i), ISLOWER (i))
6028 || toupper (i) != TOUPPER (i))
7eed349e
PC
6029 exit(2);
6030 exit (0);
1cf3d07d 6031}
ff66d28f 6032_ACEOF
1cf3d07d 6033rm -f conftest$ac_exeext
7eed349e
PC
6034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6035 (eval $ac_link) 2>&5
ff66d28f 6036 ac_status=$?
ff66d28f 6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d 6038 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7eed349e
PC
6039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040 (eval $ac_try) 2>&5
1cf3d07d
SE
6041 ac_status=$?
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; }; then
ff66d28f
PE
6044 :
6045else
1cf3d07d
SE
6046 echo "$as_me: program exited with status $ac_status" >&5
6047echo "$as_me: failed program was:" >&5
ff66d28f
PE
6048sed 's/^/| /' conftest.$ac_ext >&5
6049
1cf3d07d
SE
6050( exit $ac_status )
6051ac_cv_header_stdc=no
6052fi
7eed349e 6053rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
6054fi
6055fi
6056fi
7eed349e
PC
6057echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6058echo "${ECHO_T}$ac_cv_header_stdc" >&6
1cf3d07d
SE
6059if test $ac_cv_header_stdc = yes; then
6060
6061cat >>confdefs.h <<\_ACEOF
6062#define STDC_HEADERS 1
6063_ACEOF
6064
6065fi
6066
6067# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6078 inttypes.h stdint.h unistd.h
6079do
6080as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7eed349e
PC
6081echo "$as_me:$LINENO: checking for $ac_header" >&5
6082echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6083if eval "test \"\${$as_ac_Header+set}\" = set"; then
1cf3d07d
SE
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6085else
6086 cat >conftest.$ac_ext <<_ACEOF
6087/* confdefs.h. */
6088_ACEOF
6089cat confdefs.h >>conftest.$ac_ext
6090cat >>conftest.$ac_ext <<_ACEOF
6091/* end confdefs.h. */
6092$ac_includes_default
6093
6094#include <$ac_header>
6095_ACEOF
6096rm -f conftest.$ac_objext
7eed349e
PC
6097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6098 (eval $ac_compile) 2>conftest.er1
1cf3d07d
SE
6099 ac_status=$?
6100 grep -v '^ *+' conftest.er1 >conftest.err
6101 rm -f conftest.er1
6102 cat conftest.err >&5
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
6104 (exit $ac_status); } &&
6105 { ac_try='test -z "$ac_c_werror_flag"
6106 || test ! -s conftest.err'
6107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108 (eval $ac_try) 2>&5
6109 ac_status=$?
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; } &&
6112 { ac_try='test -s conftest.$ac_objext'
6113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6114 (eval $ac_try) 2>&5
6115 ac_status=$?
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); }; }; then
1cf3d07d
SE
6118 eval "$as_ac_Header=yes"
6119else
6120 echo "$as_me: failed program was:" >&5
6121sed 's/^/| /' conftest.$ac_ext >&5
6122
7eed349e 6123eval "$as_ac_Header=no"
1cf3d07d 6124fi
7eed349e 6125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 6126fi
7eed349e
PC
6127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6128echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1cf3d07d
SE
6129if test `eval echo '${'$as_ac_Header'}'` = yes; then
6130 cat >>confdefs.h <<_ACEOF
6131#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6132_ACEOF
6133
6134fi
6135
6136done
6137
6138
6139
6140for ac_header in dlfcn.h
6141do
6142as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7eed349e
PC
6143echo "$as_me:$LINENO: checking for $ac_header" >&5
6144echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6145if eval "test \"\${$as_ac_Header+set}\" = set"; then
1cf3d07d
SE
6146 echo $ECHO_N "(cached) $ECHO_C" >&6
6147else
6148 cat >conftest.$ac_ext <<_ACEOF
6149/* confdefs.h. */
6150_ACEOF
6151cat confdefs.h >>conftest.$ac_ext
6152cat >>conftest.$ac_ext <<_ACEOF
6153/* end confdefs.h. */
6154$ac_includes_default
6155
6156#include <$ac_header>
6157_ACEOF
6158rm -f conftest.$ac_objext
7eed349e
PC
6159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6160 (eval $ac_compile) 2>conftest.er1
1cf3d07d
SE
6161 ac_status=$?
6162 grep -v '^ *+' conftest.er1 >conftest.err
6163 rm -f conftest.er1
6164 cat conftest.err >&5
6165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
6166 (exit $ac_status); } &&
6167 { ac_try='test -z "$ac_c_werror_flag"
6168 || test ! -s conftest.err'
6169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6170 (eval $ac_try) 2>&5
6171 ac_status=$?
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); }; } &&
6174 { ac_try='test -s conftest.$ac_objext'
6175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6176 (eval $ac_try) 2>&5
6177 ac_status=$?
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); }; }; then
1cf3d07d
SE
6180 eval "$as_ac_Header=yes"
6181else
6182 echo "$as_me: failed program was:" >&5
6183sed 's/^/| /' conftest.$ac_ext >&5
6184
7eed349e 6185eval "$as_ac_Header=no"
1cf3d07d 6186fi
7eed349e 6187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d 6188fi
7eed349e
PC
6189echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6190echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
1cf3d07d
SE
6191if test `eval echo '${'$as_ac_Header'}'` = yes; then
6192 cat >>confdefs.h <<_ACEOF
6193#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6194_ACEOF
6195
6196fi
6197
6198done
6199
6200
6201
7eed349e 6202ac_ext=cc
1cf3d07d
SE
6203ac_cpp='$CXXCPP $CPPFLAGS'
6204ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6205ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6206ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7eed349e
PC
6207if test -n "$ac_tool_prefix"; then
6208 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1cf3d07d
SE
6209 do
6210 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6211set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7eed349e
PC
6212echo "$as_me:$LINENO: checking for $ac_word" >&5
6213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d
SE
6214if test "${glibcxx_cv_prog_CXX+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6216else
6217 if test -n "$CXX"; then
6218 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
6219else
6220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221for as_dir in $PATH
6222do
6223 IFS=$as_save_IFS
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 6226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d
SE
6227 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 break 2
6230 fi
6231done
6232done
6233
6234fi
6235fi
6236CXX=$glibcxx_cv_prog_CXX
6237if test -n "$CXX"; then
7eed349e
PC
6238 echo "$as_me:$LINENO: result: $CXX" >&5
6239echo "${ECHO_T}$CXX" >&6
1cf3d07d 6240else
7eed349e
PC
6241 echo "$as_me:$LINENO: result: no" >&5
6242echo "${ECHO_T}no" >&6
1cf3d07d
SE
6243fi
6244
6245 test -n "$CXX" && break
6246 done
6247fi
6248if test -z "$CXX"; then
6249 ac_ct_CXX=$CXX
7eed349e 6250 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1cf3d07d
SE
6251do
6252 # Extract the first word of "$ac_prog", so it can be a program name with args.
6253set dummy $ac_prog; ac_word=$2
7eed349e
PC
6254echo "$as_me:$LINENO: checking for $ac_word" >&5
6255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d
SE
6256if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6258else
6259 if test -n "$ac_ct_CXX"; then
6260 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6261else
6262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263for as_dir in $PATH
6264do
6265 IFS=$as_save_IFS
6266 test -z "$as_dir" && as_dir=.
6267 for ac_exec_ext in '' $ac_executable_extensions; do
7eed349e 6268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d
SE
6269 ac_cv_prog_ac_ct_CXX="$ac_prog"
6270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6271 break 2
6272 fi
6273done
6274done
6275
6276fi
6277fi
6278ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6279if test -n "$ac_ct_CXX"; then
7eed349e
PC
6280 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6281echo "${ECHO_T}$ac_ct_CXX" >&6
1cf3d07d 6282else
7eed349e
PC
6283 echo "$as_me:$LINENO: result: no" >&5
6284echo "${ECHO_T}no" >&6
1cf3d07d
SE
6285fi
6286
6287 test -n "$ac_ct_CXX" && break
6288done
7eed349e 6289test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1cf3d07d 6290
7eed349e 6291 CXX=$ac_ct_CXX
1cf3d07d
SE
6292fi
6293
7eed349e 6294
1cf3d07d 6295# Provide some information about the compiler.
7eed349e
PC
6296echo "$as_me:$LINENO:" \
6297 "checking for C++ compiler version" >&5
1cf3d07d 6298ac_compiler=`set X $ac_compile; echo $2`
7eed349e
PC
6299{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6300 (eval $ac_compiler --version </dev/null >&5) 2>&5
1cf3d07d
SE
6301 ac_status=$?
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }
7eed349e
PC
6304{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6305 (eval $ac_compiler -v </dev/null >&5) 2>&5
1cf3d07d
SE
6306 ac_status=$?
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }
7eed349e
PC
6309{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6310 (eval $ac_compiler -V </dev/null >&5) 2>&5
1cf3d07d
SE
6311 ac_status=$?
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }
6314
7eed349e
PC
6315echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6316echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1cf3d07d
SE
6317if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6319else
6320 cat >conftest.$ac_ext <<_ACEOF
6321/* confdefs.h. */
6322_ACEOF
6323cat confdefs.h >>conftest.$ac_ext
6324cat >>conftest.$ac_ext <<_ACEOF
6325/* end confdefs.h. */
6326
6327int
6328main ()
6329{
6330#ifndef __GNUC__
6331 choke me
6332#endif
6333
6334 ;
6335 return 0;
6336}
6337_ACEOF
6338rm -f conftest.$ac_objext
7eed349e
PC
6339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6340 (eval $ac_compile) 2>conftest.er1
1cf3d07d
SE
6341 ac_status=$?
6342 grep -v '^ *+' conftest.er1 >conftest.err
6343 rm -f conftest.er1
6344 cat conftest.err >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
6346 (exit $ac_status); } &&
6347 { ac_try='test -z "$ac_cxx_werror_flag"
6348 || test ! -s conftest.err'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 (eval $ac_try) 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; } &&
6354 { ac_try='test -s conftest.$ac_objext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 (eval $ac_try) 2>&5
6357 ac_status=$?
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
1cf3d07d
SE
6360 ac_compiler_gnu=yes
6361else
6362 echo "$as_me: failed program was:" >&5
6363sed 's/^/| /' conftest.$ac_ext >&5
6364
7eed349e 6365ac_compiler_gnu=no
1cf3d07d 6366fi
7eed349e 6367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1cf3d07d
SE
6368ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6369
6370fi
7eed349e
PC
6371echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6372echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1cf3d07d
SE
6373GXX=`test $ac_compiler_gnu = yes && echo yes`
6374ac_test_CXXFLAGS=${CXXFLAGS+set}
6375ac_save_CXXFLAGS=$CXXFLAGS
7eed349e
PC
6376CXXFLAGS="-g"
6377echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6378echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1cf3d07d
SE
6379if test "${ac_cv_prog_cxx_g+set}" = set; then
6380 echo $ECHO_N "(cached) $ECHO_C" >&6
6381else
7eed349e 6382 cat >conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
6383/* confdefs.h. */
6384_ACEOF
6385cat confdefs.h >>conftest.$ac_ext
6386cat >>conftest.$ac_ext <<_ACEOF
6387/* end confdefs.h. */
6388
6389int
6390main ()
6391{
6392
6393 ;
6394 return 0;
6395}
6396_ACEOF
6397rm -f conftest.$ac_objext
7eed349e
PC
6398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6399 (eval $ac_compile) 2>conftest.er1
1cf3d07d
SE
6400 ac_status=$?
6401 grep -v '^ *+' conftest.er1 >conftest.err
6402 rm -f conftest.er1
6403 cat conftest.err >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
6405 (exit $ac_status); } &&
6406 { ac_try='test -z "$ac_cxx_werror_flag"
6407 || test ! -s conftest.err'
6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409 (eval $ac_try) 2>&5
6410 ac_status=$?
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }; } &&
6413 { ac_try='test -s conftest.$ac_objext'
6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 (eval $ac_try) 2>&5
6416 ac_status=$?
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; }; then
1cf3d07d
SE
6419 ac_cv_prog_cxx_g=yes
6420else
6421 echo "$as_me: failed program was:" >&5
6422sed 's/^/| /' conftest.$ac_ext >&5
6423
7eed349e
PC
6424ac_cv_prog_cxx_g=no
6425fi
6426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6427fi
6428echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6429echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6430if test "$ac_test_CXXFLAGS" = set; then
6431 CXXFLAGS=$ac_save_CXXFLAGS
6432elif test $ac_cv_prog_cxx_g = yes; then
6433 if test "$GXX" = yes; then
6434 CXXFLAGS="-g -O2"
6435 else
6436 CXXFLAGS="-g"
6437 fi
6438else
6439 if test "$GXX" = yes; then
6440 CXXFLAGS="-O2"
6441 else
6442 CXXFLAGS=
6443 fi
6444fi
6445for ac_declaration in \
6446 '' \
6447 'extern "C" void std::exit (int) throw (); using std::exit;' \
6448 'extern "C" void std::exit (int); using std::exit;' \
6449 'extern "C" void exit (int) throw ();' \
6450 'extern "C" void exit (int);' \
6451 'void exit (int);'
6452do
6453 cat >conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
6454/* confdefs.h. */
6455_ACEOF
6456cat confdefs.h >>conftest.$ac_ext
6457cat >>conftest.$ac_ext <<_ACEOF
6458/* end confdefs.h. */
7eed349e
PC
6459$ac_declaration
6460#include <stdlib.h>
1cf3d07d
SE
6461int
6462main ()
6463{
7eed349e 6464exit (42);
1cf3d07d
SE
6465 ;
6466 return 0;
6467}
6468_ACEOF
6469rm -f conftest.$ac_objext
7eed349e
PC
6470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6471 (eval $ac_compile) 2>conftest.er1
1cf3d07d
SE
6472 ac_status=$?
6473 grep -v '^ *+' conftest.er1 >conftest.err
6474 rm -f conftest.er1
6475 cat conftest.err >&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
6477 (exit $ac_status); } &&
6478 { ac_try='test -z "$ac_cxx_werror_flag"
6479 || test ! -s conftest.err'
6480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481 (eval $ac_try) 2>&5
6482 ac_status=$?
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; } &&
6485 { ac_try='test -s conftest.$ac_objext'
6486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6487 (eval $ac_try) 2>&5
6488 ac_status=$?
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }; }; then
1cf3d07d
SE
6491 :
6492else
6493 echo "$as_me: failed program was:" >&5
6494sed 's/^/| /' conftest.$ac_ext >&5
6495
7eed349e
PC
6496continue
6497fi
6498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6499 cat >conftest.$ac_ext <<_ACEOF
1cf3d07d
SE
6500/* confdefs.h. */
6501_ACEOF
6502cat confdefs.h >>conftest.$ac_ext
6503cat >>conftest.$ac_ext <<_ACEOF
6504/* end confdefs.h. */
7eed349e 6505$ac_declaration
1cf3d07d
SE
6506int
6507main ()
6508{
7eed349e 6509exit (42);
1cf3d07d
SE
6510 ;
6511 return 0;
6512}
6513_ACEOF
6514rm -f conftest.$ac_objext
7eed349e
PC
6515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6516 (eval $ac_compile) 2>conftest.er1
1cf3d07d
SE
6517 ac_status=$?
6518 grep -v '^ *+' conftest.er1 >conftest.err
6519 rm -f conftest.er1
6520 cat conftest.err >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
6522 (exit $ac_status); } &&
6523 { ac_try='test -z "$ac_cxx_werror_flag"
6524 || test ! -s conftest.err'
6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526 (eval $ac_try) 2>&5
6527 ac_status=$?
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; } &&
6530 { ac_try='test -s conftest.$ac_objext'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 (eval $ac_try) 2>&5
6533 ac_status=$?
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; }; then
6536 break
1cf3d07d
SE
6537else
6538 echo "$as_me: failed program was:" >&5
6539sed 's/^/| /' conftest.$ac_ext >&5
6540
6541fi
7eed349e
PC
6542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6543done
6544rm -f conftest*
6545if test -n "$ac_declaration"; then
6546 echo '#ifdef __cplusplus' >>confdefs.h
6547 echo $ac_declaration >>confdefs.h
6548 echo '#endif' >>confdefs.h
1cf3d07d
SE
6549fi
6550
6551ac_ext=c
6552ac_cpp='$CPP $CPPFLAGS'
6553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6555ac_compiler_gnu=$ac_cv_c_compiler_gnu
6556
6557if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6558 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6559 (test "X$CXX" != "Xg++"))) ; then
7eed349e 6560 ac_ext=cc
1cf3d07d
SE
6561ac_cpp='$CXXCPP $CPPFLAGS'
6562ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6563ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6564ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7eed349e
PC
6565echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6566echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
1cf3d07d
SE
6567if test -z "$CXXCPP"; then
6568 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6570else
6571 # Double quotes because CXXCPP needs to be expanded
6572 for CXXCPP in "$CXX -E" "/lib/cpp"
6573 do
6574 ac_preproc_ok=false
6575for ac_cxx_preproc_warn_flag in '' yes
6576do
6577 # Use a header file that comes with gcc, so configuring glibc
6578 # with a fresh cross-compiler works.
6579 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6580 # <limits.h> exists even on freestanding compilers.
6581 # On the NeXT, cc -E runs the code through the compiler's parser,
6582 # not just through cpp. "Syntax error" is here to catch this case.
6583 cat >conftest.$ac_ext <<_ACEOF
6584/* confdefs.h. */
6585_ACEOF
6586cat confdefs.h >>conftest.$ac_ext
6587cat >>conftest.$ac_ext <<_ACEOF
6588/* end confdefs.h. */
6589#ifdef __STDC__
6590# include <limits.h>
6591#else
6592# include <assert.h>
6593#endif
6594 Syntax error
6595_ACEOF
7eed349e
PC
6596if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6597 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1cf3d07d
SE
6598 ac_status=$?
6599 grep -v '^ *+' conftest.er1 >conftest.err
6600 rm -f conftest.er1
6601 cat conftest.err >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
6603 (exit $ac_status); } >/dev/null; then
6604 if test -s conftest.err; then
6605 ac_cpp_err=$ac_cxx_preproc_warn_flag
6606 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6607 else
6608 ac_cpp_err=
6609 fi
6610else
6611 ac_cpp_err=yes
6612fi
6613if test -z "$ac_cpp_err"; then
1cf3d07d
SE
6614 :
6615else
6616 echo "$as_me: failed program was:" >&5
6617sed 's/^/| /' conftest.$ac_ext >&5
6618
6619 # Broken: fails on valid input.
6620continue
6621fi
6622rm -f conftest.err conftest.$ac_ext
6623
7eed349e 6624 # OK, works on sane cases. Now check whether non-existent headers
1cf3d07d
SE
6625 # can be detected and how.
6626 cat >conftest.$ac_ext <<_ACEOF
6627/* confdefs.h. */
6628_ACEOF
6629cat confdefs.h >>conftest.$ac_ext
6630cat >>conftest.$ac_ext <<_ACEOF
6631/* end confdefs.h. */
6632#include <ac_nonexistent.h>
6633_ACEOF
7eed349e
PC
6634if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1cf3d07d
SE
6636 ac_status=$?
6637 grep -v '^ *+' conftest.er1 >conftest.err
6638 rm -f conftest.er1
6639 cat conftest.err >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
6641 (exit $ac_status); } >/dev/null; then
6642 if test -s conftest.err; then
6643 ac_cpp_err=$ac_cxx_preproc_warn_flag
6644 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6645 else
6646 ac_cpp_err=
6647 fi
6648else
6649 ac_cpp_err=yes
6650fi
6651if test -z "$ac_cpp_err"; then
1cf3d07d
SE
6652 # Broken: success on invalid input.
6653continue
6654else
6655 echo "$as_me: failed program was:" >&5
6656sed 's/^/| /' conftest.$ac_ext >&5
6657
6658 # Passes both tests.
6659ac_preproc_ok=:
6660break
6661fi
6662rm -f conftest.err conftest.$ac_ext
6663
6664done
6665# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6666rm -f conftest.err conftest.$ac_ext
6667if $ac_preproc_ok; then
6668 break
6669fi
6670
6671 done
6672 ac_cv_prog_CXXCPP=$CXXCPP
6673
6674fi
6675 CXXCPP=$ac_cv_prog_CXXCPP
6676else
6677 ac_cv_prog_CXXCPP=$CXXCPP
6678fi
7eed349e
PC
6679echo "$as_me:$LINENO: result: $CXXCPP" >&5
6680echo "${ECHO_T}$CXXCPP" >&6
1cf3d07d
SE
6681ac_preproc_ok=false
6682for ac_cxx_preproc_warn_flag in '' yes
6683do
6684 # Use a header file that comes with gcc, so configuring glibc
6685 # with a fresh cross-compiler works.
6686 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6687 # <limits.h> exists even on freestanding compilers.
6688 # On the NeXT, cc -E runs the code through the compiler's parser,
6689 # not just through cpp. "Syntax error" is here to catch this case.
6690 cat >conftest.$ac_ext <<_ACEOF
6691/* confdefs.h. */
6692_ACEOF
6693cat confdefs.h >>conftest.$ac_ext
6694cat >>conftest.$ac_ext <<_ACEOF
6695/* end confdefs.h. */
6696#ifdef __STDC__
6697# include <limits.h>
6698#else
6699# include <assert.h>
6700#endif
6701 Syntax error
6702_ACEOF
7eed349e
PC
6703if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1cf3d07d
SE
6705 ac_status=$?
6706 grep -v '^ *+' conftest.er1 >conftest.err
6707 rm -f conftest.er1
6708 cat conftest.err >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
6710 (exit $ac_status); } >/dev/null; then
6711 if test -s conftest.err; then
6712 ac_cpp_err=$ac_cxx_preproc_warn_flag
6713 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6714 else
6715 ac_cpp_err=
6716 fi
6717else
6718 ac_cpp_err=yes
6719fi
6720if test -z "$ac_cpp_err"; then
1cf3d07d
SE
6721 :
6722else
6723 echo "$as_me: failed program was:" >&5
6724sed 's/^/| /' conftest.$ac_ext >&5
6725
6726 # Broken: fails on valid input.
6727continue
6728fi
6729rm -f conftest.err conftest.$ac_ext
6730
7eed349e 6731 # OK, works on sane cases. Now check whether non-existent headers
1cf3d07d
SE
6732 # can be detected and how.
6733 cat >conftest.$ac_ext <<_ACEOF
6734/* confdefs.h. */
6735_ACEOF
6736cat confdefs.h >>conftest.$ac_ext
6737cat >>conftest.$ac_ext <<_ACEOF
6738/* end confdefs.h. */
6739#include <ac_nonexistent.h>
6740_ACEOF
7eed349e
PC
6741if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1cf3d07d
SE
6743 ac_status=$?
6744 grep -v '^ *+' conftest.er1 >conftest.err
6745 rm -f conftest.er1
6746 cat conftest.err >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
6748 (exit $ac_status); } >/dev/null; then
6749 if test -s conftest.err; then
6750 ac_cpp_err=$ac_cxx_preproc_warn_flag
6751 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6752 else
6753 ac_cpp_err=
6754 fi
6755else
6756 ac_cpp_err=yes
6757fi
6758if test -z "$ac_cpp_err"; then
1cf3d07d
SE
6759 # Broken: success on invalid input.
6760continue
6761else
6762 echo "$as_me: failed program was:" >&5
6763sed 's/^/| /' conftest.$ac_ext >&5
6764
6765 # Passes both tests.
6766ac_preproc_ok=:
6767break
6768fi
6769rm -f conftest.err conftest.$ac_ext
6770
6771done
6772# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6773rm -f conftest.err conftest.$ac_ext
6774if $ac_preproc_ok; then
6775 :
6776else
6777 _lt_caught_CXX_error=yes
6778fi
6779
6780ac_ext=c
6781ac_cpp='$CPP $CPPFLAGS'
6782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6784ac_compiler_gnu=$ac_cv_c_compiler_gnu
6785
6786else
6787 _lt_caught_CXX_error=yes
6788fi
6789
6790
6791
6792
6793
6794# This can be used to rebuild libtool when needed
6795LIBTOOL_DEPS="$ltmain"
6796
6797# Always use our own libtool.
6798LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824test -z "$LN_S" && LN_S="ln -s"
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839if test -n "${ZSH_VERSION+set}" ; then
6840 setopt NO_GLOB_SUBST
6841fi
6842
7eed349e
PC
6843echo "$as_me:$LINENO: checking for objdir" >&5
6844echo $ECHO_N "checking for objdir... $ECHO_C" >&6
1cf3d07d
SE
6845if test "${lt_cv_objdir+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6847else
6848 rm -f .libs 2>/dev/null
6849mkdir .libs 2>/dev/null
6850if test -d .libs; then
6851 lt_cv_objdir=.libs
6852else
6853 # MS-DOS does not allow filenames that begin with a dot.
6854 lt_cv_objdir=_libs
6855fi
6856rmdir .libs 2>/dev/null
6857fi
7eed349e
PC
6858echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6859echo "${ECHO_T}$lt_cv_objdir" >&6
1cf3d07d
SE
6860objdir=$lt_cv_objdir
6861
6862
6863
6864
6865
6866cat >>confdefs.h <<_ACEOF
6867#define LT_OBJDIR "$lt_cv_objdir/"
6868_ACEOF
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886case $host_os in
6887aix3*)
6888 # AIX sometimes has problems with the GCC collect2 program. For some
6889 # reason, if we set the COLLECT_NAMES environment variable, the problems
6890 # vanish in a puff of smoke.
6891 if test "X${COLLECT_NAMES+set}" != Xset; then
6892 COLLECT_NAMES=
6893 export COLLECT_NAMES
6894 fi
6895 ;;
6896esac
6897
6898# Sed substitution that helps us do robust quoting. It backslashifies
6899# metacharacters that are still active within double-quoted strings.
6900sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6901
6902# Same as above, but do not quote variable references.
6903double_quote_subst='s/\(["`\\]\)/\\\1/g'
6904
6905# Sed substitution to delay expansion of an escaped shell variable in a
6906# double_quote_subst'ed string.
6907delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6908
6909# Sed substitution to delay expansion of an escaped single quote.
6910delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6911
6912# Sed substitution to avoid accidental globbing in evaled expressions
6913no_glob_subst='s/\*/\\\*/g'
6914
6915# Global variables:
6916ofile=libtool
6917can_build_shared=yes
6918
6919# All known linkers require a `.a' archive for static linking (except MSVC,
6920# which needs '.lib').
6921libext=a
6922
6923with_gnu_ld="$lt_cv_prog_gnu_ld"
6924
6925old_CC="$CC"
6926old_CFLAGS="$CFLAGS"
6927
6928# Set sane defaults for various variables
6929test -z "$CC" && CC=cc
6930test -z "$LTCC" && LTCC=$CC
6931test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6932test -z "$LD" && LD=ld
6933test -z "$ac_objext" && ac_objext=o
6934
6935for cc_temp in $compiler""; do
6936 case $cc_temp in
6937 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6938 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6939 \-*) ;;
6940 *) break;;
6941 esac
6942done
6943cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6944
6945
6946# Only perform the check for file, if the check method requires it
6947test -z "$MAGIC_CMD" && MAGIC_CMD=file
6948case $deplibs_check_method in
6949file_magic*)
6950 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7eed349e
PC
6951 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6952echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
1cf3d07d
SE
6953if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6955else
6956 case $MAGIC_CMD in
6957[\\/*] | ?:[\\/]*)
6958 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6959 ;;
6960*)
6961 lt_save_MAGIC_CMD="$MAGIC_CMD"
6962 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6963 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6964 for ac_dir in $ac_dummy; do
6965 IFS="$lt_save_ifs"
6966 test -z "$ac_dir" && ac_dir=.
6967 if test -f $ac_dir/${ac_tool_prefix}file; then
6968 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6969 if test -n "$file_magic_test_file"; then
6970 case $deplibs_check_method in
6971 "file_magic "*)
6972 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6973 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6974 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6975 $EGREP "$file_magic_regex" > /dev/null; then
6976 :
6977 else
6978 cat <<_LT_EOF 1>&2
6979
6980*** Warning: the command libtool uses to detect shared libraries,
6981*** $file_magic_cmd, produces output that libtool cannot recognize.
6982*** The result is that libtool may fail to recognize shared libraries
6983*** as such. This will affect the creation of libtool libraries that
6984*** depend on shared libraries, but programs linked with such libtool
6985*** libraries will work regardless of this problem. Nevertheless, you
6986*** may want to report the problem to your system manager and/or to
6987*** bug-libtool@gnu.org
6988
6989_LT_EOF
6990 fi ;;
6991 esac
6992 fi
6993 break
6994 fi
6995 done
6996 IFS="$lt_save_ifs"
6997 MAGIC_CMD="$lt_save_MAGIC_CMD"
6998 ;;
6999esac
7000fi
7001
7002MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7003if test -n "$MAGIC_CMD"; then
7eed349e
PC
7004 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7005echo "${ECHO_T}$MAGIC_CMD" >&6
1cf3d07d 7006else
7eed349e
PC
7007 echo "$as_me:$LINENO: result: no" >&5
7008echo "${ECHO_T}no" >&6
1cf3d07d
SE
7009fi
7010
7011
7012
7013
7014
7015if test -z "$lt_cv_path_MAGIC_CMD"; then
7016 if test -n "$ac_tool_prefix"; then
7eed349e
PC
7017 echo "$as_me:$LINENO: checking for file" >&5
7018echo $ECHO_N "checking for file... $ECHO_C" >&6
1cf3d07d
SE
7019if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021else
7022 case $MAGIC_CMD in
7023[\\/*] | ?:[\\/]*)
7024 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7025 ;;
7026*)
7027 lt_save_MAGIC_CMD="$MAGIC_CMD"
7028 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7029 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7030 for ac_dir in $ac_dummy; do
7031 IFS="$lt_save_ifs"
7032 test -z "$ac_dir" && ac_dir=.
7033 if test -f $ac_dir/file; then
7034 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7035 if test -n "$file_magic_test_file"; then
7036 case $deplibs_check_method in
7037 "file_magic "*)
7038 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7039 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7040 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7041 $EGREP "$file_magic_regex" > /dev/null; then
7042 :
7043 else
7044 cat <<_LT_EOF 1>&2
7045
7046*** Warning: the command libtool uses to detect shared libraries,
7047*** $file_magic_cmd, produces output that libtool cannot recognize.
7048*** The result is that libtool may fail to recognize shared libraries
7049*** as such. This will affect the creation of libtool libraries that
7050*** depend on shared libraries, but programs linked with such libtool
7051*** libraries will work regardless of this problem. Nevertheless, you
7052*** may want to report the problem to your system manager and/or to
7053*** bug-libtool@gnu.org
7054
7055_LT_EOF
7056 fi ;;
7057 esac
7058 fi
7059 break
7060 fi
7061 done
7062 IFS="$lt_save_ifs"
7063 MAGIC_CMD="$lt_save_MAGIC_CMD"
7064 ;;
7065esac
7066fi
7067
7068MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7069if test -n "$MAGIC_CMD"; then
7eed349e
PC
7070 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7071echo "${ECHO_T}$MAGIC_CMD" >&6
1cf3d07d 7072else
7eed349e
PC
7073 echo "$as_me:$LINENO: result: no" >&5
7074echo "${ECHO_T}no" >&6
1cf3d07d
SE
7075fi
7076
7077
7078 else
7079 MAGIC_CMD=:
7080 fi
7081fi
7082
7083 fi
7084 ;;
7085esac
7086
7087# Use C for the default configuration in the libtool script
7088
7089lt_save_CC="$CC"
7090ac_ext=c
7091ac_cpp='$CPP $CPPFLAGS'
7092ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7093ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7094ac_compiler_gnu=$ac_cv_c_compiler_gnu
7095
7096
7097# Source file extension for C test sources.
7098ac_ext=c
7099
7100# Object file extension for compiled C test sources.
7101objext=o
7102objext=$objext
7103
7104# Code to be used in simple compile tests
7105lt_simple_compile_test_code="int some_variable = 0;"
7106
7107# Code to be used in simple link tests
7108lt_simple_link_test_code='int main(){return(0);}'
7109
7110
7111
7112
7113
7114
7115
7116# If no C compiler was specified, use CC.
7117LTCC=${LTCC-"$CC"}
7118
7119# If no C compiler flags were specified, use CFLAGS.
7120LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7121
7122# Allow CC to be a program name with arguments.
7123compiler=$CC
7124
7125# Save the default compiler, since it gets overwritten when the other
7126# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7127compiler_DEFAULT=$CC
7128
7129# save warnings/boilerplate of simple test code
7130ac_outfile=conftest.$ac_objext
7131echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7132eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7133_lt_compiler_boilerplate=`cat conftest.err`
7134$RM conftest*
7135
7136ac_outfile=conftest.$ac_objext
7137echo "$lt_simple_link_test_code" >conftest.$ac_ext
7138eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7139_lt_linker_boilerplate=`cat conftest.err`
7140$RM conftest*
7141
7142
7143## CAVEAT EMPTOR:
7144## There is no encapsulation within the following macros, do not change
7145## the running order or otherwise move them around unless you know exactly
7146## what you are doing...
7147if test -n "$compiler"; then
7148
7149lt_prog_compiler_no_builtin_flag=
7150
7151if test "$GCC" = yes; then
7152 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7153
7eed349e
PC
7154 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7155echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
1cf3d07d
SE
7156if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7158else
7159 lt_cv_prog_compiler_rtti_exceptions=no
7160 ac_outfile=conftest.$ac_objext
7161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7162 lt_compiler_flag="-fno-rtti -fno-exceptions"
7163 # Insert the option either (1) after the last *FLAGS variable, or
7164 # (2) before a word containing "conftest.", or (3) at the end.
7165 # Note that $ac_compile itself does not contain backslashes and begins
7166 # with a dollar sign (not a hyphen), so the echo should work correctly.
7167 # The option is referenced via a variable to avoid confusing sed.
7168 lt_compile=`echo "$ac_compile" | $SED \
7169 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7171 -e 's:$: $lt_compiler_flag:'`
38d24731 7172 (eval echo "\"\$as_me:7172: $lt_compile\"" >&5)
1cf3d07d
SE
7173 (eval "$lt_compile" 2>conftest.err)
7174 ac_status=$?
7175 cat conftest.err >&5
38d24731 7176 echo "$as_me:7176: \$? = $ac_status" >&5
1cf3d07d
SE
7177 if (exit $ac_status) && test -s "$ac_outfile"; then
7178 # The compiler can only warn and ignore the option if not recognized
7179 # So say no if there are warnings other than the usual output.
7180 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7182 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7183 lt_cv_prog_compiler_rtti_exceptions=yes
7184 fi
7185 fi
7186 $RM conftest*
7187
7188fi
7eed349e
PC
7189echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7190echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
1cf3d07d
SE
7191
7192if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7193 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7194else
7195 :
7196fi
7197
7198fi
7199
7200
7201
7202
7203
7204
7205 lt_prog_compiler_wl=
7206lt_prog_compiler_pic=
7207lt_prog_compiler_static=
7208
7eed349e
PC
7209echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7210echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
1cf3d07d
SE
7211
7212 if test "$GCC" = yes; then
7213 lt_prog_compiler_wl='-Wl,'
7214 lt_prog_compiler_static='-static'
7215
7216 case $host_os in
7217 aix*)
7218 # All AIX code is PIC.
7219 if test "$host_cpu" = ia64; then
7220 # AIX 5 now supports IA64 processor
7221 lt_prog_compiler_static='-Bstatic'
7222 fi
7223 ;;
7224
7225 amigaos*)
7226 if test "$host_cpu" = m68k; then
7227 # FIXME: we need at least 68020 code to build shared libraries, but
7228 # adding the `-m68020' flag to GCC prevents building anything better,
7229 # like `-m68040'.
7230 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7231 fi
7232 ;;
7233
7234 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7235 # PIC is the default for these OSes.
7236 ;;
7237
7238 mingw* | cygwin* | pw32* | os2*)
7239 # This hack is so that the source file can tell whether it is being
7240 # built for inclusion in a dll (and should export symbols for example).
7241 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7242 # (--disable-auto-import) libraries
7243 lt_prog_compiler_pic='-DDLL_EXPORT'
7244 ;;
7245
7246 darwin* | rhapsody*)
7247 # PIC is the default on this platform
7248 # Common symbols not allowed in MH_DYLIB files
7249 lt_prog_compiler_pic='-fno-common'
7250 ;;
7251
7252 hpux*)
7253 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7254 # not for PA HP-UX.
7255 case $host_cpu in
7256 hppa*64*|ia64*)
7257 # +Z the default
7258 ;;
7259 *)
7260 lt_prog_compiler_pic='-fPIC'
7261 ;;
7262 esac
7263 ;;
7264
7265 interix[3-9]*)
7266 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7267 # Instead, we relocate shared libraries at runtime.
7268 ;;
7269
7270 msdosdjgpp*)
7271 # Just because we use GCC doesn't mean we suddenly get shared libraries
7272 # on systems that don't support them.
7273 lt_prog_compiler_can_build_shared=no
7274 enable_shared=no
7275 ;;
7276
7277 *nto* | *qnx*)
7278 # QNX uses GNU C++, but need to define -shared option too, otherwise
7279 # it will coredump.
7280 lt_prog_compiler_pic='-fPIC -shared'
7281 ;;
7282
7283 sysv4*MP*)
7284 if test -d /usr/nec; then
7285 lt_prog_compiler_pic=-Kconform_pic
7286 fi
7287 ;;
7288
7289 *)
7290 lt_prog_compiler_pic='-fPIC'
7291 ;;
7292 esac
7293 else
7294 # PORTME Check for flag to pass linker flags through the system compiler.
7295 case $host_os in
7296 aix*)
7297 lt_prog_compiler_wl='-Wl,'
7298 if test "$host_cpu" = ia64; then
7299 # AIX 5 now supports IA64 processor
7300 lt_prog_compiler_static='-Bstatic'
7301 else
7302 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7303 fi
7304 ;;
7305 darwin*)
7306 # PIC is the default on this platform
7307 # Common symbols not allowed in MH_DYLIB files
7308 case $cc_basename in
7309 xlc*)
7310 lt_prog_compiler_pic='-qnocommon'
7311 lt_prog_compiler_wl='-Wl,'
7312 ;;
7313 esac
7314 ;;
7315
7316 mingw* | cygwin* | pw32* | os2*)
7317 # This hack is so that the source file can tell whether it is being
7318 # built for inclusion in a dll (and should export symbols for example).
7319 lt_prog_compiler_pic='-DDLL_EXPORT'
7320 ;;
7321
7322 hpux9* | hpux10* | hpux11*)
7323 lt_prog_compiler_wl='-Wl,'
7324 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7325 # not for PA HP-UX.
7326 case $host_cpu in
7327 hppa*64*|ia64*)
7328 # +Z the default
7329 ;;
7330 *)
7331 lt_prog_compiler_pic='+Z'
7332 ;;
7333 esac
7334 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7335 lt_prog_compiler_static='${wl}-a ${wl}archive'
7336 ;;
7337
7338 irix5* | irix6* | nonstopux*)
7339 lt_prog_compiler_wl='-Wl,'
7340 # PIC (with -KPIC) is the default.
7341 lt_prog_compiler_static='-non_shared'
7342 ;;
7343
7344 linux* | k*bsd*-gnu)
7345 case $cc_basename in
7346 icc* | ecc*)
7347 lt_prog_compiler_wl='-Wl,'
7348 lt_prog_compiler_pic='-KPIC'
7349 lt_prog_compiler_static='-static'
7350 ;;
7351 pgcc* | pgf77* | pgf90* | pgf95*)
7352 # Portland Group compilers (*not* the Pentium gcc compiler,
7353 # which looks to be a dead project)
7354 lt_prog_compiler_wl='-Wl,'
7355 lt_prog_compiler_pic='-fpic'
7356 lt_prog_compiler_static='-Bstatic'
7357 ;;
7358 ccc*)
7359 lt_prog_compiler_wl='-Wl,'
7360 # All Alpha code is PIC.
7361 lt_prog_compiler_static='-non_shared'
7362 ;;
7363 *)
7364 case `$CC -V 2>&1 | sed 5q` in
7365 *Sun\ C*)
7366 # Sun C 5.9
7367 lt_prog_compiler_pic='-KPIC'
7368 lt_prog_compiler_static='-Bstatic'
7369 lt_prog_compiler_wl='-Wl,'
7370 ;;
7371 *Sun\ F*)
7372 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7373 lt_prog_compiler_pic='-KPIC'
7374 lt_prog_compiler_static='-Bstatic'
7375 lt_prog_compiler_wl=''
7376 ;;
7377 esac
7378 ;;
7379 esac
7380 ;;
7381
7382 newsos6)
7383 lt_prog_compiler_pic='-KPIC'
7384 lt_prog_compiler_static='-Bstatic'
7385 ;;
7386
7387 *nto* | *qnx*)
7388 # QNX uses GNU C++, but need to define -shared option too, otherwise
7389 # it will coredump.
7390 lt_prog_compiler_pic='-fPIC -shared'
7391 ;;
7392
7393 osf3* | osf4* | osf5*)
7394 lt_prog_compiler_wl='-Wl,'
7395 # All OSF/1 code is PIC.
7396 lt_prog_compiler_static='-non_shared'
7397 ;;
7398
7399 rdos*)
7400 lt_prog_compiler_static='-non_shared'
7401 ;;
7402
7403 solaris*)
7404 lt_prog_compiler_pic='-KPIC'
7405 lt_prog_compiler_static='-Bstatic'
7406 case $cc_basename in
7407 f77* | f90* | f95*)
7408 lt_prog_compiler_wl='-Qoption ld ';;
7409 *)
7410 lt_prog_compiler_wl='-Wl,';;
7411 esac
7412 ;;
7413
7414 sunos4*)
7415 lt_prog_compiler_wl='-Qoption ld '
7416 lt_prog_compiler_pic='-PIC'
7417 lt_prog_compiler_static='-Bstatic'
7418 ;;
7419
7420 sysv4 | sysv4.2uw2* | sysv4.3*)
7421 lt_prog_compiler_wl='-Wl,'
7422 lt_prog_compiler_pic='-KPIC'
7423 lt_prog_compiler_static='-Bstatic'
7424 ;;
7425
7426 sysv4*MP*)
7427 if test -d /usr/nec ;then
7428 lt_prog_compiler_pic='-Kconform_pic'
7429 lt_prog_compiler_static='-Bstatic'
7430 fi
7431 ;;
7432
7433 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7434 lt_prog_compiler_wl='-Wl,'
7435 lt_prog_compiler_pic='-KPIC'
7436 lt_prog_compiler_static='-Bstatic'
7437 ;;
7438
7439 unicos*)
7440 lt_prog_compiler_wl='-Wl,'
7441 lt_prog_compiler_can_build_shared=no
7442 ;;
7443
7444 uts4*)
7445 lt_prog_compiler_pic='-pic'
7446 lt_prog_compiler_static='-Bstatic'
7447 ;;
7448
7449 *)
7450 lt_prog_compiler_can_build_shared=no
7451 ;;
7452 esac
7453 fi
7454
7455case $host_os in
7456 # For platforms which do not support PIC, -DPIC is meaningless:
7457 *djgpp*)
7458 lt_prog_compiler_pic=
7459 ;;
7460 *)
7461 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7462 ;;
7463esac
7eed349e
PC
7464echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7465echo "${ECHO_T}$lt_prog_compiler_pic" >&6
1cf3d07d
SE
7466
7467
7468
7469
7470
7471
7472#
7473# Check to make sure the PIC flag actually works.
7474#
7475if test -n "$lt_prog_compiler_pic"; then
7eed349e
PC
7476 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7477echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
1cf3d07d
SE
7478if test "${lt_prog_compiler_pic_works+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7480else
7481 lt_prog_compiler_pic_works=no
7482 ac_outfile=conftest.$ac_objext
7483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7484 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7485 # Insert the option either (1) after the last *FLAGS variable, or
7486 # (2) before a word containing "conftest.", or (3) at the end.
7487 # Note that $ac_compile itself does not contain backslashes and begins
7488 # with a dollar sign (not a hyphen), so the echo should work correctly.
7489 # The option is referenced via a variable to avoid confusing sed.
7490 lt_compile=`echo "$ac_compile" | $SED \
7491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7493 -e 's:$: $lt_compiler_flag:'`
38d24731 7494 (eval echo "\"\$as_me:7494: $lt_compile\"" >&5)
1cf3d07d
SE
7495 (eval "$lt_compile" 2>conftest.err)
7496 ac_status=$?
7497 cat conftest.err >&5
38d24731 7498 echo "$as_me:7498: \$? = $ac_status" >&5
1cf3d07d
SE
7499 if (exit $ac_status) && test -s "$ac_outfile"; then
7500 # The compiler can only warn and ignore the option if not recognized
7501 # So say no if there are warnings other than the usual output.
7502 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7504 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7505 lt_prog_compiler_pic_works=yes
7506 fi
7507 fi
7508 $RM conftest*
7509
7510fi
7eed349e
PC
7511echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7512echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
1cf3d07d
SE
7513
7514if test x"$lt_prog_compiler_pic_works" = xyes; then
7515 case $lt_prog_compiler_pic in
7516 "" | " "*) ;;
7517 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7518 esac
7519else
7520 lt_prog_compiler_pic=
7521 lt_prog_compiler_can_build_shared=no
7522fi
7523
7524fi
7525
7526
7527
7528
7529
7530
7531#
7532# Check to make sure the static flag actually works.
7533#
7534wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7eed349e
PC
7535echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7536echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
1cf3d07d
SE
7537if test "${lt_prog_compiler_static_works+set}" = set; then
7538 echo $ECHO_N "(cached) $ECHO_C" >&6
7539else
7540 lt_prog_compiler_static_works=no
7541 save_LDFLAGS="$LDFLAGS"
7542 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7543 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7544 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7545 # The linker can only warn and ignore the option if not recognized
7546 # So say no if there are warnings
7547 if test -s conftest.err; then
7548 # Append any errors to the config.log.
7549 cat conftest.err 1>&5
7550 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7551 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7552 if diff conftest.exp conftest.er2 >/dev/null; then
7553 lt_prog_compiler_static_works=yes
7554 fi
7555 else
7556 lt_prog_compiler_static_works=yes
7557 fi
7558 fi
7559 $RM conftest*
7560 LDFLAGS="$save_LDFLAGS"
7561
7562fi
7eed349e
PC
7563echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7564echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
1cf3d07d
SE
7565
7566if test x"$lt_prog_compiler_static_works" = xyes; then
7567 :
7568else
7569 lt_prog_compiler_static=
7570fi
7571
7572
7573
7574
7575
7576
7577
7eed349e
PC
7578 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7579echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
1cf3d07d
SE
7580if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7581 echo $ECHO_N "(cached) $ECHO_C" >&6
7582else
7583 lt_cv_prog_compiler_c_o=no
7584 $RM -r conftest 2>/dev/null
7585 mkdir conftest
7586 cd conftest
7587 mkdir out
7588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7589
7590 lt_compiler_flag="-o out/conftest2.$ac_objext"
7591 # Insert the option either (1) after the last *FLAGS variable, or
7592 # (2) before a word containing "conftest.", or (3) at the end.
7593 # Note that $ac_compile itself does not contain backslashes and begins
7594 # with a dollar sign (not a hyphen), so the echo should work correctly.
7595 lt_compile=`echo "$ac_compile" | $SED \
7596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7598 -e 's:$: $lt_compiler_flag:'`
38d24731 7599 (eval echo "\"\$as_me:7599: $lt_compile\"" >&5)
1cf3d07d
SE
7600 (eval "$lt_compile" 2>out/conftest.err)
7601 ac_status=$?
7602 cat out/conftest.err >&5
38d24731 7603 echo "$as_me:7603: \$? = $ac_status" >&5
1cf3d07d
SE
7604 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7605 then
7606 # The compiler can only warn and ignore the option if not recognized
7607 # So say no if there are warnings
7608 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7609 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7610 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7611 lt_cv_prog_compiler_c_o=yes
7612 fi
7613 fi
7614 chmod u+w . 2>&5
7615 $RM conftest*
7616 # SGI C++ compiler will create directory out/ii_files/ for
7617 # template instantiation
7618 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7619 $RM out/* && rmdir out
7620 cd ..
7621 $RM -r conftest
7622 $RM conftest*
7623
7624fi
7eed349e
PC
7625echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7626echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1cf3d07d
SE
7627
7628
7629
7630
7631
7632
7eed349e
PC
7633 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7634echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
1cf3d07d
SE
7635if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7636 echo $ECHO_N "(cached) $ECHO_C" >&6
7637else
7638 lt_cv_prog_compiler_c_o=no
7639 $RM -r conftest 2>/dev/null
7640 mkdir conftest
7641 cd conftest
7642 mkdir out
7643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7644
7645 lt_compiler_flag="-o out/conftest2.$ac_objext"
7646 # Insert the option either (1) after the last *FLAGS variable, or
7647 # (2) before a word containing "conftest.", or (3) at the end.
7648 # Note that $ac_compile itself does not contain backslashes and begins
7649 # with a dollar sign (not a hyphen), so the echo should work correctly.
7650 lt_compile=`echo "$ac_compile" | $SED \
7651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7653 -e 's:$: $lt_compiler_flag:'`
38d24731 7654 (eval echo "\"\$as_me:7654: $lt_compile\"" >&5)
1cf3d07d
SE
7655 (eval "$lt_compile" 2>out/conftest.err)
7656 ac_status=$?
7657 cat out/conftest.err >&5
38d24731 7658 echo "$as_me:7658: \$? = $ac_status" >&5
1cf3d07d
SE
7659 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7660 then
7661 # The compiler can only warn and ignore the option if not recognized
7662 # So say no if there are warnings
7663 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7664 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7665 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7666 lt_cv_prog_compiler_c_o=yes
7667 fi
7668 fi
7669 chmod u+w . 2>&5
7670 $RM conftest*
7671 # SGI C++ compiler will create directory out/ii_files/ for
7672 # template instantiation
7673 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7674 $RM out/* && rmdir out
7675 cd ..
7676 $RM -r conftest
7677 $RM conftest*
7678
7679fi
7eed349e
PC
7680echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7681echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
1cf3d07d
SE
7682
7683
7684
7685
7686hard_links="nottested"
7687if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7688 # do not overwrite the value of need_locks provided by the user
7eed349e
PC
7689 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7690echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
1cf3d07d
SE
7691 hard_links=yes
7692 $RM conftest*
7693 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7694 touch conftest.a
7695 ln conftest.a conftest.b 2>&5 || hard_links=no
7696 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7eed349e
PC
7697 echo "$as_me:$LINENO: result: $hard_links" >&5
7698echo "${ECHO_T}$hard_links" >&6
1cf3d07d
SE
7699 if test "$hard_links" = no; then
7700 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7701echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7702 need_locks=warn
7703 fi
7704else
7705 need_locks=no
7706fi
7707
7708
7709
7710
7711
7712
7eed349e
PC
7713 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7714echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1cf3d07d
SE
7715
7716 runpath_var=
7717 allow_undefined_flag=
7718 always_export_symbols=no
7719 archive_cmds=
7720 archive_expsym_cmds=
7721 compiler_needs_object=no
7722 enable_shared_with_static_runtimes=no
7723 export_dynamic_flag_spec=
7724 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7725 hardcode_automatic=no
7726 hardcode_direct=no
7727 hardcode_direct_absolute=no
7728 hardcode_libdir_flag_spec=
7729 hardcode_libdir_flag_spec_ld=
7730 hardcode_libdir_separator=
7731 hardcode_minus_L=no
7732 hardcode_shlibpath_var=unsupported
7733 inherit_rpath=no
7734 link_all_deplibs=unknown
7735 module_cmds=
7736 module_expsym_cmds=
7737 old_archive_from_new_cmds=
7738 old_archive_from_expsyms_cmds=
7739 thread_safe_flag_spec=
7740 whole_archive_flag_spec=
7741 # include_expsyms should be a list of space-separated symbols to be *always*
7742 # included in the symbol list
7743 include_expsyms=
7744 # exclude_expsyms can be an extended regexp of symbols to exclude
7745 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7746 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7747 # as well as any symbol that contains `d'.
7748 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7749 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7750 # platforms (ab)use it in PIC code, but their linkers get confused if
7751 # the symbol is explicitly referenced. Since portable code cannot
7752 # rely on this symbol name, it's probably fine to never include it in
7753 # preloaded symbol tables.
7754 extract_expsyms_cmds=
7755
7756 case $host_os in
7757 cygwin* | mingw* | pw32*)
7758 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7759 # When not using gcc, we currently assume that we are using
7760 # Microsoft Visual C++.
7761 if test "$GCC" != yes; then
7762 with_gnu_ld=no
7763 fi
7764 ;;
7765 interix*)
7766 # we just hope/assume this is gcc and not c89 (= MSVC++)
7767 with_gnu_ld=yes
7768 ;;
7769 openbsd*)
7770 with_gnu_ld=no
7771 ;;
7772 esac
7773
7774 ld_shlibs=yes
7775 if test "$with_gnu_ld" = yes; then
7776 # If archive_cmds runs LD, not CC, wlarc should be empty
7777 wlarc='${wl}'
7778
7779 # Set some defaults for GNU ld with shared library support. These
7780 # are reset later if shared libraries are not supported. Putting them
7781 # here allows them to be overridden if necessary.
7782 runpath_var=LD_RUN_PATH
7783 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7784 export_dynamic_flag_spec='${wl}--export-dynamic'
7785 # ancient GNU ld didn't support --whole-archive et. al.
7786 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7787 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7788 else
7789 whole_archive_flag_spec=
7790 fi
7791 supports_anon_versioning=no
7792 case `$LD -v 2>&1` in
7793 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7794 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7795 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7796 *\ 2.11.*) ;; # other 2.11 versions
7797 *) supports_anon_versioning=yes ;;
7798 esac
7799
7800 # See if GNU ld supports shared libraries.
7801 case $host_os in
716e4bc6 7802 aix[3-9]*)
1cf3d07d
SE
7803 # On AIX/PPC, the GNU linker is very broken
7804 if test "$host_cpu" != ia64; then
7805 ld_shlibs=no
7806 cat <<_LT_EOF 1>&2
7807
7808*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7809*** to be unable to reliably create shared libraries on AIX.
7810*** Therefore, libtool is disabling shared libraries support. If you
7811*** really care for shared libraries, you may want to modify your PATH
7812*** so that a non-GNU linker is found, and then restart.
7813
7814_LT_EOF
7815 fi
7816 ;;
7817
7818 amigaos*)
7819 if test "$host_cpu" = m68k; then
7820 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)'
7821 hardcode_libdir_flag_spec='-L$libdir'
7822 hardcode_minus_L=yes
7823 fi
7824
7825 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7826 # that the semantics of dynamic libraries on AmigaOS, at least up
7827 # to version 4, is to share data among multiple programs linked
7828 # with the same dynamic library. Since this doesn't match the
7829 # behavior of shared libraries on other platforms, we can't use
7830 # them.
7831 ld_shlibs=no
7832 ;;
7833
7834 beos*)
7835 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7836 allow_undefined_flag=unsupported
7837 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7838 # support --undefined. This deserves some investigation. FIXME
7839 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7840 else
7841 ld_shlibs=no
7842 fi
7843 ;;
7844
7845 cygwin* | mingw* | pw32*)
7846 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7847 # as there is no search path for DLLs.
7848 hardcode_libdir_flag_spec='-L$libdir'
7849 allow_undefined_flag=unsupported
7850 always_export_symbols=no
7851 enable_shared_with_static_runtimes=yes
7852 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7853
7854 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7855 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7856 # If the export-symbols file already is a .def file (1st line
7857 # is EXPORTS), use it as is; otherwise, prepend...
7858 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7859 cp $export_symbols $output_objdir/$soname.def;
7860 else
7861 echo EXPORTS > $output_objdir/$soname.def;
7862 cat $export_symbols >> $output_objdir/$soname.def;
7863 fi~
7864 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7865 else
7866 ld_shlibs=no
7867 fi
7868 ;;
7869
7870 interix[3-9]*)
7871 hardcode_direct=no
7872 hardcode_shlibpath_var=no
7873 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7874 export_dynamic_flag_spec='${wl}-E'
7875 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7876 # Instead, shared libraries are loaded at an image base (0x10000000 by
7877 # default) and relocated if they conflict, which is a slow very memory
7878 # consuming and fragmenting process. To avoid this, we pick a random,
7879 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7880 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7881 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7882 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'
7883 ;;
7884
7885 gnu* | linux* | tpf* | k*bsd*-gnu)
7886 tmp_diet=no
7887 if test "$host_os" = linux-dietlibc; then
7888 case $cc_basename in
7889 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7890 esac
7891 fi
7892 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7893 && test "$tmp_diet" = no
7894 then
7895 tmp_addflag=
7896 case $cc_basename,$host_cpu in
7897 pgcc*) # Portland Group C compiler
7898 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'
7899 tmp_addflag=' $pic_flag'
7900 ;;
7901 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7902 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'
7903 tmp_addflag=' $pic_flag -Mnomain' ;;
7904 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7905 tmp_addflag=' -i_dynamic' ;;
7906 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7907 tmp_addflag=' -i_dynamic -nofor_main' ;;
7908 ifc* | ifort*) # Intel Fortran compiler
7909 tmp_addflag=' -nofor_main' ;;
7910 esac
7911 case `$CC -V 2>&1 | sed 5q` in
7912 *Sun\ C*) # Sun C 5.9
7913 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'
7914 compiler_needs_object=yes
7915 tmp_sharedflag='-G' ;;
7916 *Sun\ F*) # Sun Fortran 8.3
7917 tmp_sharedflag='-G' ;;
7918 *)
7919 tmp_sharedflag='-shared' ;;
7920 esac
7921 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7922
7923 if test "x$supports_anon_versioning" = xyes; then
7924 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7925 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7926 echo "local: *; };" >> $output_objdir/$libname.ver~
7927 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7928 fi
7929 else
7930 ld_shlibs=no
7931 fi
7932 ;;
7933
7934 netbsd*)
7935 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7936 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7937 wlarc=
7938 else
7939 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7940 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7941 fi
7942 ;;
7943
7944 solaris*)
7945 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7946 ld_shlibs=no
7947 cat <<_LT_EOF 1>&2
7948
7949*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7950*** create shared libraries on Solaris systems. Therefore, libtool
7951*** is disabling shared libraries support. We urge you to upgrade GNU
7952*** binutils to release 2.9.1 or newer. Another option is to modify
7953*** your PATH or compiler configuration so that the native linker is
7954*** used, and then restart.
7955
7956_LT_EOF
7957 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7958 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7959 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7960 else
7961 ld_shlibs=no
7962 fi
7963 ;;
7964
7965 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7966 case `$LD -v 2>&1` in
7967 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7968 ld_shlibs=no
7969 cat <<_LT_EOF 1>&2
7970
7971*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7972*** reliably create shared libraries on SCO systems. Therefore, libtool
7973*** is disabling shared libraries support. We urge you to upgrade GNU
7974*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7975*** your PATH or compiler configuration so that the native linker is
7976*** used, and then restart.
7977
7978_LT_EOF
7979 ;;
7980 *)
7981 # For security reasons, it is highly recommended that you always
7982 # use absolute paths for naming shared libraries, and exclude the
7983 # DT_RUNPATH tag from executables and libraries. But doing so
7984 # requires that you compile everything twice, which is a pain.
7985 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7986 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7987 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7988 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7989 else
7990 ld_shlibs=no
7991 fi
7992 ;;
7993 esac
7994 ;;
7995
7996 sunos4*)
7997 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7998 wlarc=
7999 hardcode_direct=yes
8000 hardcode_shlibpath_var=no
8001 ;;
8002
8003 *)
8004 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8005 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8006 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8007 else
8008 ld_shlibs=no
8009 fi
8010 ;;
8011 esac
8012
8013 if test "$ld_shlibs" = no; then
8014 runpath_var=
8015 hardcode_libdir_flag_spec=
8016 export_dynamic_flag_spec=
8017 whole_archive_flag_spec=
8018 fi
8019 else
8020 # PORTME fill in a description of your system's linker (not GNU ld)
8021 case $host_os in
8022 aix3*)
8023 allow_undefined_flag=unsupported
8024 always_export_symbols=yes
8025 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'
8026 # Note: this linker hardcodes the directories in LIBPATH if there
8027 # are no directories specified by -L.
8028 hardcode_minus_L=yes
8029 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8030 # Neither direct hardcoding nor static linking is supported with a
8031 # broken collect2.
8032 hardcode_direct=unsupported
8033 fi
8034 ;;
8035
716e4bc6 8036 aix[4-9]*)
1cf3d07d
SE
8037 if test "$host_cpu" = ia64; then
8038 # On IA64, the linker does run time linking by default, so we don't
8039 # have to do anything special.
8040 aix_use_runtimelinking=no
8041 exp_sym_flag='-Bexport'
8042 no_entry_flag=""
8043 else
8044 # If we're using GNU nm, then we don't want the "-C" option.
8045 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8046 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8047 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'
8048 else
8049 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'
8050 fi
8051 aix_use_runtimelinking=no
8052
8053 # Test if we are trying to use run time linking or normal
8054 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8055 # need to do runtime linking.
716e4bc6 8056 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
8057 for ld_flag in $LDFLAGS; do
8058 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8059 aix_use_runtimelinking=yes
8060 break
8061 fi
8062 done
8063 ;;
8064 esac
8065
8066 exp_sym_flag='-bexport'
8067 no_entry_flag='-bnoentry'
8068 fi
8069
8070 # When large executables or shared objects are built, AIX ld can
8071 # have problems creating the table of contents. If linking a library
8072 # or program results in "error TOC overflow" add -mminimal-toc to
8073 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8074 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8075
8076 archive_cmds=''
8077 hardcode_direct=yes
8078 hardcode_direct_absolute=yes
8079 hardcode_libdir_separator=':'
8080 link_all_deplibs=yes
8081 file_list_spec='${wl}-f,'
8082
8083 if test "$GCC" = yes; then
8084 case $host_os in aix4.[012]|aix4.[012].*)
8085 # We only want to do this on AIX 4.2 and lower, the check
8086 # below for broken collect2 doesn't work under 4.3+
8087 collect2name=`${CC} -print-prog-name=collect2`
8088 if test -f "$collect2name" &&
8089 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8090 then
8091 # We have reworked collect2
8092 :
8093 else
8094 # We have old collect2
8095 hardcode_direct=unsupported
8096 # It fails to find uninstalled libraries when the uninstalled
8097 # path is not listed in the libpath. Setting hardcode_minus_L
8098 # to unsupported forces relinking
8099 hardcode_minus_L=yes
8100 hardcode_libdir_flag_spec='-L$libdir'
8101 hardcode_libdir_separator=
8102 fi
8103 ;;
8104 esac
8105 shared_flag='-shared'
8106 if test "$aix_use_runtimelinking" = yes; then
8107 shared_flag="$shared_flag "'${wl}-G'
8108 fi
8109 else
8110 # not using gcc
8111 if test "$host_cpu" = ia64; then
8112 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8113 # chokes on -Wl,-G. The following line is correct:
8114 shared_flag='-G'
8115 else
8116 if test "$aix_use_runtimelinking" = yes; then
8117 shared_flag='${wl}-G'
8118 else
8119 shared_flag='${wl}-bM:SRE'
8120 fi
8121 fi
8122 fi
8123
8124 # It seems that -bexpall does not export symbols beginning with
8125 # underscore (_), so it is better to generate a list of symbols to export.
8126 always_export_symbols=yes
8127 if test "$aix_use_runtimelinking" = yes; then
8128 # Warning - without using the other runtime loading flags (-brtl),
8129 # -berok will link without error, but may produce a broken library.
8130 allow_undefined_flag='-berok'
8131 # Determine the default libpath from the value encoded in an
8132 # empty executable.
8133 if test x$gcc_no_link = xyes; then
8134 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8135echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8136 { (exit 1); exit 1; }; }
8137fi
8138cat >conftest.$ac_ext <<_ACEOF
8139/* confdefs.h. */
8140_ACEOF
8141cat confdefs.h >>conftest.$ac_ext
8142cat >>conftest.$ac_ext <<_ACEOF
8143/* end confdefs.h. */
8144
8145int
8146main ()
8147{
8148
8149 ;
8150 return 0;
8151}
8152_ACEOF
8153rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
8154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8155 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
8156 ac_status=$?
8157 grep -v '^ *+' conftest.er1 >conftest.err
8158 rm -f conftest.er1
8159 cat conftest.err >&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
8161 (exit $ac_status); } &&
8162 { ac_try='test -z "$ac_c_werror_flag"
8163 || test ! -s conftest.err'
8164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8165 (eval $ac_try) 2>&5
8166 ac_status=$?
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); }; } &&
8169 { ac_try='test -s conftest$ac_exeext'
8170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171 (eval $ac_try) 2>&5
8172 ac_status=$?
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); }; }; then
1cf3d07d
SE
8175
8176lt_aix_libpath_sed='
8177 /Import File Strings/,/^$/ {
8178 /^0/ {
8179 s/^0 *\(.*\)$/\1/
8180 p
8181 }
8182 }'
8183aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8184# Check for a 64-bit object if we didn't find anything.
8185if test -z "$aix_libpath"; then
8186 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8187fi
8188else
8189 echo "$as_me: failed program was:" >&5
8190sed 's/^/| /' conftest.$ac_ext >&5
8191
8192fi
7eed349e 8193rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
8194 conftest$ac_exeext conftest.$ac_ext
8195if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8196
8197 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8198 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"
8199 else
8200 if test "$host_cpu" = ia64; then
8201 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8202 allow_undefined_flag="-z nodefs"
8203 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"
8204 else
8205 # Determine the default libpath from the value encoded in an
8206 # empty executable.
8207 if test x$gcc_no_link = xyes; then
8208 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8209echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8210 { (exit 1); exit 1; }; }
8211fi
8212cat >conftest.$ac_ext <<_ACEOF
8213/* confdefs.h. */
8214_ACEOF
8215cat confdefs.h >>conftest.$ac_ext
8216cat >>conftest.$ac_ext <<_ACEOF
8217/* end confdefs.h. */
8218
8219int
8220main ()
8221{
8222
8223 ;
8224 return 0;
8225}
8226_ACEOF
8227rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
8228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8229 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
8230 ac_status=$?
8231 grep -v '^ *+' conftest.er1 >conftest.err
8232 rm -f conftest.er1
8233 cat conftest.err >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
8235 (exit $ac_status); } &&
8236 { ac_try='test -z "$ac_c_werror_flag"
8237 || test ! -s conftest.err'
8238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239 (eval $ac_try) 2>&5
8240 ac_status=$?
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; } &&
8243 { ac_try='test -s conftest$ac_exeext'
8244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245 (eval $ac_try) 2>&5
8246 ac_status=$?
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); }; }; then
1cf3d07d
SE
8249
8250lt_aix_libpath_sed='
8251 /Import File Strings/,/^$/ {
8252 /^0/ {
8253 s/^0 *\(.*\)$/\1/
8254 p
8255 }
8256 }'
8257aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8258# Check for a 64-bit object if we didn't find anything.
8259if test -z "$aix_libpath"; then
8260 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8261fi
8262else
8263 echo "$as_me: failed program was:" >&5
8264sed 's/^/| /' conftest.$ac_ext >&5
8265
8266fi
7eed349e 8267rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
8268 conftest$ac_exeext conftest.$ac_ext
8269if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8270
8271 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8272 # Warning - without using the other run time loading flags,
8273 # -berok will link without error, but may produce a broken library.
8274 no_undefined_flag=' ${wl}-bernotok'
8275 allow_undefined_flag=' ${wl}-berok'
8276 # Exported symbols can be pulled into shared objects from archives
8277 whole_archive_flag_spec='$convenience'
8278 archive_cmds_need_lc=yes
8279 # This is similar to how AIX traditionally builds its shared libraries.
8280 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'
8281 fi
8282 fi
8283 ;;
8284
8285 amigaos*)
8286 if test "$host_cpu" = m68k; then
8287 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)'
8288 hardcode_libdir_flag_spec='-L$libdir'
8289 hardcode_minus_L=yes
8290 fi
8291 # see comment about different semantics on the GNU ld section
8292 ld_shlibs=no
8293 ;;
8294
8295 bsdi[45]*)
8296 export_dynamic_flag_spec=-rdynamic
8297 ;;
8298
8299 cygwin* | mingw* | pw32*)
8300 # When not using gcc, we currently assume that we are using
8301 # Microsoft Visual C++.
8302 # hardcode_libdir_flag_spec is actually meaningless, as there is
8303 # no search path for DLLs.
8304 hardcode_libdir_flag_spec=' '
8305 allow_undefined_flag=unsupported
8306 # Tell ltmain to make .lib files, not .a files.
8307 libext=lib
8308 # Tell ltmain to make .dll files, not .so files.
8309 shrext_cmds=".dll"
8310 # FIXME: Setting linknames here is a bad hack.
8311 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8312 # The linker will automatically build a .lib file if we build a DLL.
8313 old_archive_from_new_cmds='true'
8314 # FIXME: Should let the user specify the lib program.
8315 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8316 fix_srcfile_path='`cygpath -w "$srcfile"`'
8317 enable_shared_with_static_runtimes=yes
8318 ;;
8319
8320 darwin* | rhapsody*)
8321 case $host_os in
8322 rhapsody* | darwin1.[012])
8323 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8324 ;;
8325 *) # Darwin 1.3 on
8326 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8327 10.[012])
8328 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8329 ;;
8330 10.*)
8331 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8332 ;;
8333 esac
8334 ;;
8335 esac
8336 archive_cmds_need_lc=no
8337 hardcode_direct=no
8338 hardcode_automatic=yes
8339 hardcode_shlibpath_var=unsupported
8340 whole_archive_flag_spec=''
8341 link_all_deplibs=yes
8342 if test "$GCC" = yes ; then
8343 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8345else
8346 lt_cv_apple_cc_single_mod=no
8347 if test -z "${LT_MULTI_MODULE}"; then
8348 # By default we will add the -single_module flag. You can override
8349 # by either setting the environment variable LT_MULTI_MODULE
8350 # non-empty at configure time, or by adding -multi-module to the
8351 # link flags.
8352 echo "int foo(void){return 1;}" > conftest.c
8353 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8354 -dynamiclib ${wl}-single_module conftest.c
8355 if test -f libconftest.dylib; then
8356 lt_cv_apple_cc_single_mod=yes
8357 rm libconftest.dylib
8358 fi
8359 rm conftest.$ac_ext
8360 fi
8361fi
8362
8363 output_verbose_link_cmd=echo
8364 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8365 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8366 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}'
8367 else
8368 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8369 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}'
8370 fi
8371 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8372 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}'
8373 else
8374 case $cc_basename in
8375 xlc*)
8376 output_verbose_link_cmd=echo
8377 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8378 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8379 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8380 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}'
8381 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}'
8382 ;;
8383 *)
8384 ld_shlibs=no
8385 ;;
8386 esac
8387 fi
8388 ;;
8389
8390 dgux*)
8391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8392 hardcode_libdir_flag_spec='-L$libdir'
8393 hardcode_shlibpath_var=no
8394 ;;
8395
8396 freebsd1*)
8397 ld_shlibs=no
8398 ;;
8399
8400 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8401 # support. Future versions do this automatically, but an explicit c++rt0.o
8402 # does not break anything, and helps significantly (at the cost of a little
8403 # extra space).
8404 freebsd2.2*)
8405 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8406 hardcode_libdir_flag_spec='-R$libdir'
8407 hardcode_direct=yes
8408 hardcode_shlibpath_var=no
8409 ;;
8410
8411 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8412 freebsd2*)
8413 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8414 hardcode_direct=yes
8415 hardcode_minus_L=yes
8416 hardcode_shlibpath_var=no
8417 ;;
8418
8419 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8420 freebsd* | dragonfly*)
8421 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8422 hardcode_libdir_flag_spec='-R$libdir'
8423 hardcode_direct=yes
8424 hardcode_shlibpath_var=no
8425 ;;
8426
8427 hpux9*)
8428 if test "$GCC" = yes; then
8429 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'
8430 else
8431 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'
8432 fi
8433 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8434 hardcode_libdir_separator=:
8435 hardcode_direct=yes
8436
8437 # hardcode_minus_L: Not really in the search PATH,
8438 # but as the default location of the library.
8439 hardcode_minus_L=yes
8440 export_dynamic_flag_spec='${wl}-E'
8441 ;;
8442
8443 hpux10*)
8444 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8445 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8446 else
8447 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8448 fi
8449 if test "$with_gnu_ld" = no; then
8450 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8451 hardcode_libdir_flag_spec_ld='+b $libdir'
8452 hardcode_libdir_separator=:
8453 hardcode_direct=yes
8454 hardcode_direct_absolute=yes
8455 export_dynamic_flag_spec='${wl}-E'
8456 # hardcode_minus_L: Not really in the search PATH,
8457 # but as the default location of the library.
8458 hardcode_minus_L=yes
8459 fi
8460 ;;
8461
8462 hpux11*)
8463 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8464 case $host_cpu in
8465 hppa*64*)
8466 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8467 ;;
8468 ia64*)
8469 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8470 ;;
8471 *)
8472 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8473 ;;
8474 esac
8475 else
8476 case $host_cpu in
8477 hppa*64*)
8478 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8479 ;;
8480 ia64*)
8481 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8482 ;;
8483 *)
8484 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8485 ;;
8486 esac
8487 fi
8488 if test "$with_gnu_ld" = no; then
8489 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8490 hardcode_libdir_separator=:
8491
8492 case $host_cpu in
8493 hppa*64*|ia64*)
8494 hardcode_direct=no
8495 hardcode_shlibpath_var=no
8496 ;;
8497 *)
8498 hardcode_direct=yes
8499 hardcode_direct_absolute=yes
8500 export_dynamic_flag_spec='${wl}-E'
8501
8502 # hardcode_minus_L: Not really in the search PATH,
8503 # but as the default location of the library.
8504 hardcode_minus_L=yes
8505 ;;
8506 esac
8507 fi
8508 ;;
8509
8510 irix5* | irix6* | nonstopux*)
8511 if test "$GCC" = yes; then
8512 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'
8513 # Try to use the -exported_symbol ld option, if it does not
8514 # work, assume that -exports_file does not work either and
8515 # implicitly export all symbols.
8516 save_LDFLAGS="$LDFLAGS"
8517 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8518 if test x$gcc_no_link = xyes; then
8519 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8520echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8521 { (exit 1); exit 1; }; }
8522fi
8523cat >conftest.$ac_ext <<_ACEOF
8524int foo(void) {}
8525_ACEOF
8526rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
8527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8528 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
8529 ac_status=$?
8530 grep -v '^ *+' conftest.er1 >conftest.err
8531 rm -f conftest.er1
8532 cat conftest.err >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
8534 (exit $ac_status); } &&
8535 { ac_try='test -z "$ac_c_werror_flag"
8536 || test ! -s conftest.err'
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538 (eval $ac_try) 2>&5
8539 ac_status=$?
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; } &&
8542 { ac_try='test -s conftest$ac_exeext'
8543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 (eval $ac_try) 2>&5
8545 ac_status=$?
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; }; then
1cf3d07d
SE
8548 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'
8549
8550else
8551 echo "$as_me: failed program was:" >&5
8552sed 's/^/| /' conftest.$ac_ext >&5
8553
8554fi
7eed349e 8555rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
8556 conftest$ac_exeext conftest.$ac_ext
8557 LDFLAGS="$save_LDFLAGS"
8558 else
8559 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'
8560 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'
8561 fi
8562 archive_cmds_need_lc='no'
8563 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8564 hardcode_libdir_separator=:
8565 inherit_rpath=yes
8566 link_all_deplibs=yes
8567 ;;
8568
8569 netbsd*)
8570 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8571 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8572 else
8573 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8574 fi
8575 hardcode_libdir_flag_spec='-R$libdir'
8576 hardcode_direct=yes
8577 hardcode_shlibpath_var=no
8578 ;;
8579
8580 newsos6)
8581 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8582 hardcode_direct=yes
8583 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8584 hardcode_libdir_separator=:
8585 hardcode_shlibpath_var=no
8586 ;;
8587
8588 *nto* | *qnx*)
8589 ;;
8590
8591 openbsd*)
8592 hardcode_direct=yes
8593 hardcode_shlibpath_var=no
8594 hardcode_direct_absolute=yes
8595 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8596 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8597 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8598 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8599 export_dynamic_flag_spec='${wl}-E'
8600 else
8601 case $host_os in
8602 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8603 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8604 hardcode_libdir_flag_spec='-R$libdir'
8605 ;;
8606 *)
8607 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8608 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8609 ;;
8610 esac
8611 fi
8612 ;;
8613
8614 os2*)
8615 hardcode_libdir_flag_spec='-L$libdir'
8616 hardcode_minus_L=yes
8617 allow_undefined_flag=unsupported
8618 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'
8619 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8620 ;;
8621
8622 osf3*)
8623 if test "$GCC" = yes; then
8624 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8625 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'
8626 else
8627 allow_undefined_flag=' -expect_unresolved \*'
8628 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'
8629 fi
8630 archive_cmds_need_lc='no'
8631 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8632 hardcode_libdir_separator=:
8633 ;;
8634
8635 osf4* | osf5*) # as osf3* with the addition of -msym flag
8636 if test "$GCC" = yes; then
8637 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8638 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'
8639 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8640 else
8641 allow_undefined_flag=' -expect_unresolved \*'
8642 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'
8643 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~
8644 $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'
8645
8646 # Both c and cxx compiler support -rpath directly
8647 hardcode_libdir_flag_spec='-rpath $libdir'
8648 fi
8649 archive_cmds_need_lc='no'
8650 hardcode_libdir_separator=:
8651 ;;
8652
8653 solaris*)
8654 no_undefined_flag=' -z defs'
8655 if test "$GCC" = yes; then
8656 wlarc='${wl}'
8657 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8658 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8659 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8660 else
8661 case `$CC -V 2>&1` in
8662 *"Compilers 5.0"*)
8663 wlarc=''
8664 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8665 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8666 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8667 ;;
8668 *)
8669 wlarc='${wl}'
8670 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8671 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8672 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8673 ;;
8674 esac
8675 fi
8676 hardcode_libdir_flag_spec='-R$libdir'
8677 hardcode_shlibpath_var=no
8678 case $host_os in
8679 solaris2.[0-5] | solaris2.[0-5].*) ;;
8680 *)
8681 # The compiler driver will combine and reorder linker options,
8682 # but understands `-z linker_flag'. GCC discards it without `$wl',
8683 # but is careful enough not to reorder.
8684 # Supported since Solaris 2.6 (maybe 2.5.1?)
8685 if test "$GCC" = yes; then
8686 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8687 else
8688 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8689 fi
8690 ;;
8691 esac
8692 link_all_deplibs=yes
8693 ;;
8694
8695 sunos4*)
8696 if test "x$host_vendor" = xsequent; then
8697 # Use $CC to link under sequent, because it throws in some extra .o
8698 # files that make .init and .fini sections work.
8699 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8700 else
8701 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8702 fi
8703 hardcode_libdir_flag_spec='-L$libdir'
8704 hardcode_direct=yes
8705 hardcode_minus_L=yes
8706 hardcode_shlibpath_var=no
8707 ;;
8708
8709 sysv4)
8710 case $host_vendor in
8711 sni)
8712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8713 hardcode_direct=yes # is this really true???
8714 ;;
8715 siemens)
8716 ## LD is ld it makes a PLAMLIB
8717 ## CC just makes a GrossModule.
8718 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8719 reload_cmds='$CC -r -o $output$reload_objs'
8720 hardcode_direct=no
8721 ;;
8722 motorola)
8723 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8724 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8725 ;;
8726 esac
8727 runpath_var='LD_RUN_PATH'
8728 hardcode_shlibpath_var=no
8729 ;;
8730
8731 sysv4.3*)
8732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8733 hardcode_shlibpath_var=no
8734 export_dynamic_flag_spec='-Bexport'
8735 ;;
8736
8737 sysv4*MP*)
8738 if test -d /usr/nec; then
8739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8740 hardcode_shlibpath_var=no
8741 runpath_var=LD_RUN_PATH
8742 hardcode_runpath_var=yes
8743 ld_shlibs=yes
8744 fi
8745 ;;
8746
8747 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8748 no_undefined_flag='${wl}-z,text'
8749 archive_cmds_need_lc=no
8750 hardcode_shlibpath_var=no
8751 runpath_var='LD_RUN_PATH'
8752
8753 if test "$GCC" = yes; then
8754 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8755 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8756 else
8757 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8758 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8759 fi
8760 ;;
8761
8762 sysv5* | sco3.2v5* | sco5v6*)
8763 # Note: We can NOT use -z defs as we might desire, because we do not
8764 # link with -lc, and that would cause any symbols used from libc to
8765 # always be unresolved, which means just about no library would
8766 # ever link correctly. If we're not using GNU ld we use -z text
8767 # though, which does catch some bad symbols but isn't as heavy-handed
8768 # as -z defs.
8769 no_undefined_flag='${wl}-z,text'
8770 allow_undefined_flag='${wl}-z,nodefs'
8771 archive_cmds_need_lc=no
8772 hardcode_shlibpath_var=no
8773 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8774 hardcode_libdir_separator=':'
8775 link_all_deplibs=yes
8776 export_dynamic_flag_spec='${wl}-Bexport'
8777 runpath_var='LD_RUN_PATH'
8778
8779 if test "$GCC" = yes; then
8780 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8781 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8782 else
8783 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8784 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8785 fi
8786 ;;
8787
8788 uts4*)
8789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8790 hardcode_libdir_flag_spec='-L$libdir'
8791 hardcode_shlibpath_var=no
8792 ;;
8793
8794 *)
8795 ld_shlibs=no
8796 ;;
8797 esac
8798
8799 if test x$host_vendor = xsni; then
8800 case $host in
8801 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8802 export_dynamic_flag_spec='${wl}-Blargedynsym'
8803 ;;
8804 esac
8805 fi
8806 fi
8807
7eed349e
PC
8808echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8809echo "${ECHO_T}$ld_shlibs" >&6
1cf3d07d
SE
8810test "$ld_shlibs" = no && can_build_shared=no
8811
8812with_gnu_ld=$with_gnu_ld
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828#
8829# Do we need to explicitly link libc?
8830#
8831case "x$archive_cmds_need_lc" in
8832x|xyes)
8833 # Assume -lc should be added
8834 archive_cmds_need_lc=yes
8835
8836 if test "$enable_shared" = yes && test "$GCC" = yes; then
8837 case $archive_cmds in
8838 *'~'*)
8839 # FIXME: we may have to deal with multi-command sequences.
8840 ;;
8841 '$CC '*)
8842 # Test whether the compiler implicitly links with -lc since on some
8843 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8844 # to ld, don't add -lc before -lgcc.
7eed349e
PC
8845 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8846echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
1cf3d07d
SE
8847 $RM conftest*
8848 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8849
8850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8851 (eval $ac_compile) 2>&5
8852 ac_status=$?
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } 2>conftest.err; then
8855 soname=conftest
8856 lib=conftest
8857 libobjs=conftest.$ac_objext
8858 deplibs=
8859 wl=$lt_prog_compiler_wl
8860 pic_flag=$lt_prog_compiler_pic
8861 compiler_flags=-v
8862 linker_flags=-v
8863 verstring=
8864 output_objdir=.
8865 libname=conftest
8866 lt_save_allow_undefined_flag=$allow_undefined_flag
8867 allow_undefined_flag=
8868 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8869 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8870 ac_status=$?
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); }
8873 then
8874 archive_cmds_need_lc=no
8875 else
8876 archive_cmds_need_lc=yes
8877 fi
8878 allow_undefined_flag=$lt_save_allow_undefined_flag
8879 else
8880 cat conftest.err 1>&5
8881 fi
8882 $RM conftest*
7eed349e
PC
8883 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8884echo "${ECHO_T}$archive_cmds_need_lc" >&6
1cf3d07d
SE
8885 ;;
8886 esac
8887 fi
8888 ;;
8889esac
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
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
7eed349e
PC
9047 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9048echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
1cf3d07d
SE
9049withGCC=$GCC
9050if test "$withGCC" = yes; then
9051 case $host_os in
9052 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9053 *) lt_awk_arg="/^libraries:/" ;;
9054 esac
9055 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9056 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9057 # if the path contains ";" then we assume it to be the separator
9058 # otherwise default to the standard path separator (i.e. ":") - it is
9059 # assumed that no part of a normal pathname contains ";" but that should
9060 # okay in the real world where ";" in dirpaths is itself problematic.
9061 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9062 else
9063 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9064 fi
9065 # Ok, now we have the path, separated by spaces, we can step through it
9066 # and add multilib dir if necessary.
9067 lt_tmp_lt_search_path_spec=
9068 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9069 for lt_sys_path in $lt_search_path_spec; do
9070 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9071 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9072 else
9073 test -d "$lt_sys_path" && \
9074 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9075 fi
9076 done
9077 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9078BEGIN {RS=" "; FS="/|\n";} {
9079 lt_foo="";
9080 lt_count=0;
9081 for (lt_i = NF; lt_i > 0; lt_i--) {
9082 if ($lt_i != "" && $lt_i != ".") {
9083 if ($lt_i == "..") {
9084 lt_count++;
9085 } else {
9086 if (lt_count == 0) {
9087 lt_foo="/" $lt_i lt_foo;
9088 } else {
9089 lt_count--;
9090 }
9091 }
9092 }
9093 }
9094 if (lt_foo != "") { lt_freq[lt_foo]++; }
9095 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9096}'`
9097 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9098else
9099 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9100fi
9101library_names_spec=
9102libname_spec='lib$name'
9103soname_spec=
9104shrext_cmds=".so"
9105postinstall_cmds=
9106postuninstall_cmds=
9107finish_cmds=
9108finish_eval=
9109shlibpath_var=
9110shlibpath_overrides_runpath=unknown
9111version_type=none
9112dynamic_linker="$host_os ld.so"
9113sys_lib_dlsearch_path_spec="/lib /usr/lib"
9114need_lib_prefix=unknown
9115hardcode_into_libs=no
9116
9117# when you set need_version to no, make sure it does not cause -set_version
9118# flags to be left without arguments
9119need_version=unknown
9120
9121case $host_os in
9122aix3*)
9123 version_type=linux
9124 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9125 shlibpath_var=LIBPATH
9126
9127 # AIX 3 has no versioning support, so we append a major version to the name.
9128 soname_spec='${libname}${release}${shared_ext}$major'
9129 ;;
9130
716e4bc6 9131aix[4-9]*)
1cf3d07d
SE
9132 version_type=linux
9133 need_lib_prefix=no
9134 need_version=no
9135 hardcode_into_libs=yes
9136 if test "$host_cpu" = ia64; then
9137 # AIX 5 supports IA64
9138 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9139 shlibpath_var=LD_LIBRARY_PATH
9140 else
9141 # With GCC up to 2.95.x, collect2 would create an import file
9142 # for dependence libraries. The import file would start with
9143 # the line `#! .'. This would cause the generated library to
9144 # depend on `.', always an invalid library. This was fixed in
9145 # development snapshots of GCC prior to 3.0.
9146 case $host_os in
9147 aix4 | aix4.[01] | aix4.[01].*)
9148 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9149 echo ' yes '
9150 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9151 :
9152 else
9153 can_build_shared=no
9154 fi
9155 ;;
9156 esac
9157 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9158 # soname into executable. Probably we can add versioning support to
9159 # collect2, so additional links can be useful in future.
9160 if test "$aix_use_runtimelinking" = yes; then
9161 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9162 # instead of lib<name>.a to let people know that these are not
9163 # typical AIX shared libraries.
9164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9165 else
9166 # We preserve .a as extension for shared libraries through AIX4.2
9167 # and later when we are not doing run time linking.
9168 library_names_spec='${libname}${release}.a $libname.a'
9169 soname_spec='${libname}${release}${shared_ext}$major'
9170 fi
9171 shlibpath_var=LIBPATH
9172 fi
9173 ;;
9174
9175amigaos*)
9176 if test "$host_cpu" = m68k; then
9177 library_names_spec='$libname.ixlibrary $libname.a'
9178 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9179 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'
9180 else
9181 dynamic_linker=no
9182 fi
9183 ;;
9184
9185beos*)
9186 library_names_spec='${libname}${shared_ext}'
9187 dynamic_linker="$host_os ld.so"
9188 shlibpath_var=LIBRARY_PATH
9189 ;;
9190
9191bsdi[45]*)
9192 version_type=linux
9193 need_version=no
9194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9195 soname_spec='${libname}${release}${shared_ext}$major'
9196 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9197 shlibpath_var=LD_LIBRARY_PATH
9198 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9199 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9200 # the default ld.so.conf also contains /usr/contrib/lib and
9201 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9202 # libtool to hard-code these into programs
9203 ;;
9204
9205cygwin* | mingw* | pw32*)
9206 version_type=windows
9207 shrext_cmds=".dll"
9208 need_version=no
9209 need_lib_prefix=no
9210
9211 case $withGCC,$host_os in
9212 yes,cygwin* | yes,mingw* | yes,pw32*)
9213 library_names_spec='$libname.dll.a'
9214 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9215 postinstall_cmds='base_file=`basename \${file}`~
9216 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9217 dldir=$destdir/`dirname \$dlpath`~
9218 test -d \$dldir || mkdir -p \$dldir~
9219 $install_prog $dir/$dlname \$dldir/$dlname~
9220 chmod a+x \$dldir/$dlname~
9221 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9222 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9223 fi'
9224 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9225 dlpath=$dir/\$dldll~
9226 $RM \$dlpath'
9227 shlibpath_overrides_runpath=yes
9228
9229 case $host_os in
9230 cygwin*)
9231 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9232 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9233 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9234 ;;
9235 mingw*)
9236 # MinGW DLLs use traditional 'lib' prefix
9237 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9238 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9239 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9240 # It is most probably a Windows format PATH printed by
9241 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9242 # path with ; separators, and with drive letters. We can handle the
9243 # drive letters (cygwin fileutils understands them), so leave them,
9244 # especially as we might pass files found there to a mingw objdump,
9245 # which wouldn't understand a cygwinified path. Ahh.
9246 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9247 else
9248 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9249 fi
9250 ;;
9251 pw32*)
9252 # pw32 DLLs use 'pw' prefix rather than 'lib'
9253 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9254 ;;
9255 esac
9256 ;;
9257
9258 *)
9259 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9260 ;;
9261 esac
9262 dynamic_linker='Win32 ld.exe'
9263 # FIXME: first we should search . and the directory the executable is in
9264 shlibpath_var=PATH
9265 ;;
9266
9267darwin* | rhapsody*)
9268 dynamic_linker="$host_os dyld"
9269 version_type=darwin
9270 need_lib_prefix=no
9271 need_version=no
9272 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9273 soname_spec='${libname}${release}${major}$shared_ext'
9274 shlibpath_overrides_runpath=yes
9275 shlibpath_var=DYLD_LIBRARY_PATH
9276 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9277
9278 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9279 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9280 ;;
9281
9282dgux*)
9283 version_type=linux
9284 need_lib_prefix=no
9285 need_version=no
9286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9287 soname_spec='${libname}${release}${shared_ext}$major'
9288 shlibpath_var=LD_LIBRARY_PATH
9289 ;;
9290
9291freebsd1*)
9292 dynamic_linker=no
9293 ;;
9294
9295freebsd* | dragonfly*)
9296 # DragonFly does not have aout. When/if they implement a new
9297 # versioning mechanism, adjust this.
9298 if test -x /usr/bin/objformat; then
9299 objformat=`/usr/bin/objformat`
9300 else
9301 case $host_os in
9302 freebsd[123]*) objformat=aout ;;
9303 *) objformat=elf ;;
9304 esac
9305 fi
9306 version_type=freebsd-$objformat
9307 case $version_type in
9308 freebsd-elf*)
9309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9310 need_version=no
9311 need_lib_prefix=no
9312 ;;
9313 freebsd-*)
9314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9315 need_version=yes
9316 ;;
9317 esac
9318 shlibpath_var=LD_LIBRARY_PATH
9319 case $host_os in
9320 freebsd2*)
9321 shlibpath_overrides_runpath=yes
9322 ;;
9323 freebsd3.[01]* | freebsdelf3.[01]*)
9324 shlibpath_overrides_runpath=yes
9325 hardcode_into_libs=yes
9326 ;;
9327 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9328 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9329 shlibpath_overrides_runpath=no
9330 hardcode_into_libs=yes
9331 ;;
9332 *) # from 4.6 on, and DragonFly
9333 shlibpath_overrides_runpath=yes
9334 hardcode_into_libs=yes
9335 ;;
9336 esac
9337 ;;
9338
9339gnu*)
9340 version_type=linux
9341 need_lib_prefix=no
9342 need_version=no
9343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9344 soname_spec='${libname}${release}${shared_ext}$major'
9345 shlibpath_var=LD_LIBRARY_PATH
9346 hardcode_into_libs=yes
9347 ;;
9348
9349hpux9* | hpux10* | hpux11*)
9350 # Give a soname corresponding to the major version so that dld.sl refuses to
9351 # link against other versions.
9352 version_type=sunos
9353 need_lib_prefix=no
9354 need_version=no
9355 case $host_cpu in
9356 ia64*)
9357 shrext_cmds='.so'
9358 hardcode_into_libs=yes
9359 dynamic_linker="$host_os dld.so"
9360 shlibpath_var=LD_LIBRARY_PATH
9361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9363 soname_spec='${libname}${release}${shared_ext}$major'
9364 if test "X$HPUX_IA64_MODE" = X32; then
9365 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9366 else
9367 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9368 fi
9369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9370 ;;
9371 hppa*64*)
9372 shrext_cmds='.sl'
9373 hardcode_into_libs=yes
9374 dynamic_linker="$host_os dld.sl"
9375 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9376 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9378 soname_spec='${libname}${release}${shared_ext}$major'
9379 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9380 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9381 ;;
9382 *)
9383 shrext_cmds='.sl'
9384 dynamic_linker="$host_os dld.sl"
9385 shlibpath_var=SHLIB_PATH
9386 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9388 soname_spec='${libname}${release}${shared_ext}$major'
9389 ;;
9390 esac
9391 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9392 postinstall_cmds='chmod 555 $lib'
9393 ;;
9394
9395interix[3-9]*)
9396 version_type=linux
9397 need_lib_prefix=no
9398 need_version=no
9399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9400 soname_spec='${libname}${release}${shared_ext}$major'
9401 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9402 shlibpath_var=LD_LIBRARY_PATH
9403 shlibpath_overrides_runpath=no
9404 hardcode_into_libs=yes
9405 ;;
9406
9407irix5* | irix6* | nonstopux*)
9408 case $host_os in
9409 nonstopux*) version_type=nonstopux ;;
9410 *)
9411 if test "$lt_cv_prog_gnu_ld" = yes; then
9412 version_type=linux
9413 else
9414 version_type=irix
9415 fi ;;
9416 esac
9417 need_lib_prefix=no
9418 need_version=no
9419 soname_spec='${libname}${release}${shared_ext}$major'
9420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9421 case $host_os in
9422 irix5* | nonstopux*)
9423 libsuff= shlibsuff=
9424 ;;
9425 *)
9426 case $LD in # libtool.m4 will add one of these switches to LD
9427 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9428 libsuff= shlibsuff= libmagic=32-bit;;
9429 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9430 libsuff=32 shlibsuff=N32 libmagic=N32;;
9431 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9432 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9433 *) libsuff= shlibsuff= libmagic=never-match;;
9434 esac
9435 ;;
9436 esac
9437 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9438 shlibpath_overrides_runpath=no
9439 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9440 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9441 hardcode_into_libs=yes
9442 ;;
9443
9444# No shared lib support for Linux oldld, aout, or coff.
9445linux*oldld* | linux*aout* | linux*coff*)
9446 dynamic_linker=no
9447 ;;
9448
9449# This must be Linux ELF.
9450linux* | k*bsd*-gnu)
9451 version_type=linux
9452 need_lib_prefix=no
9453 need_version=no
9454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9455 soname_spec='${libname}${release}${shared_ext}$major'
9456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9457 shlibpath_var=LD_LIBRARY_PATH
9458 shlibpath_overrides_runpath=no
9459 # Some binutils ld are patched to set DT_RUNPATH
9460 save_LDFLAGS=$LDFLAGS
9461 save_libdir=$libdir
9462 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9463 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9464 if test x$gcc_no_link = xyes; then
9465 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9466echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9467 { (exit 1); exit 1; }; }
9468fi
9469cat >conftest.$ac_ext <<_ACEOF
9470/* confdefs.h. */
9471_ACEOF
9472cat confdefs.h >>conftest.$ac_ext
9473cat >>conftest.$ac_ext <<_ACEOF
9474/* end confdefs.h. */
9475
9476int
9477main ()
9478{
9479
9480 ;
9481 return 0;
9482}
9483_ACEOF
9484rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
9485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9486 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
9487 ac_status=$?
9488 grep -v '^ *+' conftest.er1 >conftest.err
9489 rm -f conftest.er1
9490 cat conftest.err >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
9492 (exit $ac_status); } &&
9493 { ac_try='test -z "$ac_c_werror_flag"
9494 || test ! -s conftest.err'
9495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496 (eval $ac_try) 2>&5
9497 ac_status=$?
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); }; } &&
9500 { ac_try='test -s conftest$ac_exeext'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502 (eval $ac_try) 2>&5
9503 ac_status=$?
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; }; then
1cf3d07d
SE
9506 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9507 shlibpath_overrides_runpath=yes
9508fi
9509
9510else
9511 echo "$as_me: failed program was:" >&5
9512sed 's/^/| /' conftest.$ac_ext >&5
9513
9514fi
7eed349e 9515rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
9516 conftest$ac_exeext conftest.$ac_ext
9517 LDFLAGS=$save_LDFLAGS
9518 libdir=$save_libdir
9519
9520 # This implies no fast_install, which is unacceptable.
9521 # Some rework will be needed to allow for fast_install
9522 # before this can be enabled.
9523 hardcode_into_libs=yes
9524
9525 # Append ld.so.conf contents to the search path
9526 if test -f /etc/ld.so.conf; then
9527 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' ' '`
9528 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9529 fi
9530
9531 # We used to test for /lib/ld.so.1 and disable shared libraries on
9532 # powerpc, because MkLinux only supported shared libraries with the
9533 # GNU dynamic linker. Since this was broken with cross compilers,
9534 # most powerpc-linux boxes support dynamic linking these days and
9535 # people can always --disable-shared, the test was removed, and we
9536 # assume the GNU/Linux dynamic linker is in use.
9537 dynamic_linker='GNU/Linux ld.so'
9538 ;;
9539
9540netbsd*)
9541 version_type=sunos
9542 need_lib_prefix=no
9543 need_version=no
9544 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9547 dynamic_linker='NetBSD (a.out) ld.so'
9548 else
9549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9550 soname_spec='${libname}${release}${shared_ext}$major'
9551 dynamic_linker='NetBSD ld.elf_so'
9552 fi
9553 shlibpath_var=LD_LIBRARY_PATH
9554 shlibpath_overrides_runpath=yes
9555 hardcode_into_libs=yes
9556 ;;
9557
9558newsos6)
9559 version_type=linux
9560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9561 shlibpath_var=LD_LIBRARY_PATH
9562 shlibpath_overrides_runpath=yes
9563 ;;
9564
9565*nto* | *qnx*)
9566 version_type=qnx
9567 need_lib_prefix=no
9568 need_version=no
9569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9570 soname_spec='${libname}${release}${shared_ext}$major'
9571 shlibpath_var=LD_LIBRARY_PATH
9572 shlibpath_overrides_runpath=no
9573 hardcode_into_libs=yes
9574 dynamic_linker='ldqnx.so'
9575 ;;
9576
9577openbsd*)
9578 version_type=sunos
9579 sys_lib_dlsearch_path_spec="/usr/lib"
9580 need_lib_prefix=no
9581 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9582 case $host_os in
9583 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9584 *) need_version=no ;;
9585 esac
9586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9587 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9588 shlibpath_var=LD_LIBRARY_PATH
9589 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9590 case $host_os in
9591 openbsd2.[89] | openbsd2.[89].*)
9592 shlibpath_overrides_runpath=no
9593 ;;
9594 *)
9595 shlibpath_overrides_runpath=yes
9596 ;;
9597 esac
9598 else
9599 shlibpath_overrides_runpath=yes
9600 fi
9601 ;;
9602
9603os2*)
9604 libname_spec='$name'
9605 shrext_cmds=".dll"
9606 need_lib_prefix=no
9607 library_names_spec='$libname${shared_ext} $libname.a'
9608 dynamic_linker='OS/2 ld.exe'
9609 shlibpath_var=LIBPATH
9610 ;;
9611
9612osf3* | osf4* | osf5*)
9613 version_type=osf
9614 need_lib_prefix=no
9615 need_version=no
9616 soname_spec='${libname}${release}${shared_ext}$major'
9617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9618 shlibpath_var=LD_LIBRARY_PATH
9619 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9620 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9621 ;;
9622
9623rdos*)
9624 dynamic_linker=no
9625 ;;
9626
9627solaris*)
9628 version_type=linux
9629 need_lib_prefix=no
9630 need_version=no
9631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9632 soname_spec='${libname}${release}${shared_ext}$major'
9633 shlibpath_var=LD_LIBRARY_PATH
9634 shlibpath_overrides_runpath=yes
9635 hardcode_into_libs=yes
9636 # ldd complains unless libraries are executable
9637 postinstall_cmds='chmod +x $lib'
9638 ;;
9639
9640sunos4*)
9641 version_type=sunos
9642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9643 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9644 shlibpath_var=LD_LIBRARY_PATH
9645 shlibpath_overrides_runpath=yes
9646 if test "$with_gnu_ld" = yes; then
9647 need_lib_prefix=no
9648 fi
9649 need_version=yes
9650 ;;
9651
9652sysv4 | sysv4.3*)
9653 version_type=linux
9654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9655 soname_spec='${libname}${release}${shared_ext}$major'
9656 shlibpath_var=LD_LIBRARY_PATH
9657 case $host_vendor in
9658 sni)
9659 shlibpath_overrides_runpath=no
9660 need_lib_prefix=no
9661 runpath_var=LD_RUN_PATH
9662 ;;
9663 siemens)
9664 need_lib_prefix=no
9665 ;;
9666 motorola)
9667 need_lib_prefix=no
9668 need_version=no
9669 shlibpath_overrides_runpath=no
9670 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9671 ;;
9672 esac
9673 ;;
9674
9675sysv4*MP*)
9676 if test -d /usr/nec ;then
9677 version_type=linux
9678 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9679 soname_spec='$libname${shared_ext}.$major'
9680 shlibpath_var=LD_LIBRARY_PATH
9681 fi
9682 ;;
9683
9684sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9685 version_type=freebsd-elf
9686 need_lib_prefix=no
9687 need_version=no
9688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9689 soname_spec='${libname}${release}${shared_ext}$major'
9690 shlibpath_var=LD_LIBRARY_PATH
9691 shlibpath_overrides_runpath=yes
9692 hardcode_into_libs=yes
9693 if test "$with_gnu_ld" = yes; then
9694 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9695 else
9696 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9697 case $host_os in
9698 sco3.2v5*)
9699 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9700 ;;
9701 esac
9702 fi
9703 sys_lib_dlsearch_path_spec='/usr/lib'
9704 ;;
9705
9706tpf*)
9707 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9708 version_type=linux
9709 need_lib_prefix=no
9710 need_version=no
9711 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9712 shlibpath_var=LD_LIBRARY_PATH
9713 shlibpath_overrides_runpath=no
9714 hardcode_into_libs=yes
9715 ;;
9716
9717uts4*)
9718 version_type=linux
9719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9720 soname_spec='${libname}${release}${shared_ext}$major'
9721 shlibpath_var=LD_LIBRARY_PATH
9722 ;;
9723
9724*)
9725 dynamic_linker=no
9726 ;;
9727esac
7eed349e
PC
9728echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9729echo "${ECHO_T}$dynamic_linker" >&6
1cf3d07d
SE
9730test "$dynamic_linker" = no && can_build_shared=no
9731
9732variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9733if test "$GCC" = yes; then
9734 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9735fi
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
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
7eed349e
PC
9823 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9824echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
1cf3d07d
SE
9825hardcode_action=
9826if test -n "$hardcode_libdir_flag_spec" ||
9827 test -n "$runpath_var" ||
9828 test "X$hardcode_automatic" = "Xyes" ; then
9829
9830 # We can hardcode non-existent directories.
9831 if test "$hardcode_direct" != no &&
9832 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9833 # have to relink, otherwise we might link with an installed library
9834 # when we should be linking with a yet-to-be-installed one
9835 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9836 test "$hardcode_minus_L" != no; then
9837 # Linking always hardcodes the temporary library directory.
9838 hardcode_action=relink
9839 else
9840 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9841 hardcode_action=immediate
9842 fi
9843else
9844 # We cannot hardcode anything, or else we can only hardcode existing
9845 # directories.
9846 hardcode_action=unsupported
9847fi
7eed349e
PC
9848echo "$as_me:$LINENO: result: $hardcode_action" >&5
9849echo "${ECHO_T}$hardcode_action" >&6
1cf3d07d
SE
9850
9851if test "$hardcode_action" = relink ||
9852 test "$inherit_rpath" = yes; then
9853 # Fast installation is not supported
9854 enable_fast_install=no
9855elif test "$shlibpath_overrides_runpath" = yes ||
9856 test "$enable_shared" = no; then
9857 # Fast installation is not necessary
9858 enable_fast_install=needless
9859fi
9860
9861
9862
9863
9864
9865
9866 if test "x$enable_dlopen" != xyes; then
9867 enable_dlopen=unknown
9868 enable_dlopen_self=unknown
9869 enable_dlopen_self_static=unknown
9870else
9871 lt_cv_dlopen=no
9872 lt_cv_dlopen_libs=
9873
9874 case $host_os in
9875 beos*)
9876 lt_cv_dlopen="load_add_on"
9877 lt_cv_dlopen_libs=
9878 lt_cv_dlopen_self=yes
9879 ;;
9880
9881 mingw* | pw32*)
9882 lt_cv_dlopen="LoadLibrary"
9883 lt_cv_dlopen_libs=
9884 ;;
9885
9886 cygwin*)
9887 lt_cv_dlopen="dlopen"
9888 lt_cv_dlopen_libs=
9889 ;;
9890
9891 darwin*)
9892 # if libdl is installed we need to link against it
7eed349e
PC
9893 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9894echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
1cf3d07d
SE
9895if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9897else
9898 ac_check_lib_save_LIBS=$LIBS
9899LIBS="-ldl $LIBS"
9900if test x$gcc_no_link = xyes; then
9901 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9902echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9903 { (exit 1); exit 1; }; }
9904fi
9905cat >conftest.$ac_ext <<_ACEOF
9906/* confdefs.h. */
9907_ACEOF
9908cat confdefs.h >>conftest.$ac_ext
9909cat >>conftest.$ac_ext <<_ACEOF
9910/* end confdefs.h. */
9911
7eed349e 9912/* Override any gcc2 internal prototype to avoid an error. */
1cf3d07d
SE
9913#ifdef __cplusplus
9914extern "C"
9915#endif
7eed349e
PC
9916/* We use char because int might match the return type of a gcc2
9917 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
9918char dlopen ();
9919int
9920main ()
9921{
7eed349e 9922dlopen ();
1cf3d07d
SE
9923 ;
9924 return 0;
9925}
9926_ACEOF
9927rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
9928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9929 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
9930 ac_status=$?
9931 grep -v '^ *+' conftest.er1 >conftest.err
9932 rm -f conftest.er1
9933 cat conftest.err >&5
9934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
9935 (exit $ac_status); } &&
9936 { ac_try='test -z "$ac_c_werror_flag"
9937 || test ! -s conftest.err'
9938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939 (eval $ac_try) 2>&5
9940 ac_status=$?
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; } &&
9943 { ac_try='test -s conftest$ac_exeext'
9944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9945 (eval $ac_try) 2>&5
9946 ac_status=$?
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); }; }; then
1cf3d07d
SE
9949 ac_cv_lib_dl_dlopen=yes
9950else
9951 echo "$as_me: failed program was:" >&5
9952sed 's/^/| /' conftest.$ac_ext >&5
9953
7eed349e 9954ac_cv_lib_dl_dlopen=no
1cf3d07d 9955fi
7eed349e 9956rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
9957 conftest$ac_exeext conftest.$ac_ext
9958LIBS=$ac_check_lib_save_LIBS
9959fi
7eed349e
PC
9960echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9961echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
1cf3d07d
SE
9962if test $ac_cv_lib_dl_dlopen = yes; then
9963 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9964else
9965
9966 lt_cv_dlopen="dyld"
9967 lt_cv_dlopen_libs=
9968 lt_cv_dlopen_self=yes
9969
9970fi
9971
9972 ;;
9973
9974 *)
7eed349e
PC
9975 echo "$as_me:$LINENO: checking for shl_load" >&5
9976echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
1cf3d07d
SE
9977if test "${ac_cv_func_shl_load+set}" = set; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9979else
9980 if test x$gcc_no_link = xyes; then
9981 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9982echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9983 { (exit 1); exit 1; }; }
9984fi
9985cat >conftest.$ac_ext <<_ACEOF
9986/* confdefs.h. */
9987_ACEOF
9988cat confdefs.h >>conftest.$ac_ext
9989cat >>conftest.$ac_ext <<_ACEOF
9990/* end confdefs.h. */
9991/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9993#define shl_load innocuous_shl_load
9994
9995/* System header to define __stub macros and hopefully few prototypes,
9996 which can conflict with char shl_load (); below.
9997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9998 <limits.h> exists even on freestanding compilers. */
9999
10000#ifdef __STDC__
10001# include <limits.h>
10002#else
10003# include <assert.h>
10004#endif
10005
10006#undef shl_load
10007
7eed349e 10008/* Override any gcc2 internal prototype to avoid an error. */
1cf3d07d
SE
10009#ifdef __cplusplus
10010extern "C"
7eed349e 10011{
1cf3d07d 10012#endif
7eed349e
PC
10013/* We use char because int might match the return type of a gcc2
10014 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10015char shl_load ();
10016/* The GNU C library defines this for functions which it implements
10017 to always fail with ENOSYS. Some functions are actually named
10018 something starting with __ and the normal name is an alias. */
7eed349e 10019#if defined (__stub_shl_load) || defined (__stub___shl_load)
1cf3d07d 10020choke me
7eed349e
PC
10021#else
10022char (*f) () = shl_load;
10023#endif
10024#ifdef __cplusplus
10025}
1cf3d07d
SE
10026#endif
10027
10028int
10029main ()
10030{
7eed349e 10031return f != shl_load;
1cf3d07d
SE
10032 ;
10033 return 0;
10034}
10035_ACEOF
10036rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
10037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10038 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
10039 ac_status=$?
10040 grep -v '^ *+' conftest.er1 >conftest.err
10041 rm -f conftest.er1
10042 cat conftest.err >&5
10043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
10044 (exit $ac_status); } &&
10045 { ac_try='test -z "$ac_c_werror_flag"
10046 || test ! -s conftest.err'
10047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048 (eval $ac_try) 2>&5
10049 ac_status=$?
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; } &&
10052 { ac_try='test -s conftest$ac_exeext'
10053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054 (eval $ac_try) 2>&5
10055 ac_status=$?
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); }; }; then
1cf3d07d
SE
10058 ac_cv_func_shl_load=yes
10059else
10060 echo "$as_me: failed program was:" >&5
10061sed 's/^/| /' conftest.$ac_ext >&5
10062
7eed349e 10063ac_cv_func_shl_load=no
1cf3d07d 10064fi
7eed349e 10065rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
10066 conftest$ac_exeext conftest.$ac_ext
10067fi
7eed349e
PC
10068echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10069echo "${ECHO_T}$ac_cv_func_shl_load" >&6
1cf3d07d
SE
10070if test $ac_cv_func_shl_load = yes; then
10071 lt_cv_dlopen="shl_load"
10072else
7eed349e
PC
10073 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10074echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
1cf3d07d
SE
10075if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10076 echo $ECHO_N "(cached) $ECHO_C" >&6
10077else
10078 ac_check_lib_save_LIBS=$LIBS
10079LIBS="-ldld $LIBS"
10080if test x$gcc_no_link = xyes; then
10081 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10082echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10083 { (exit 1); exit 1; }; }
10084fi
10085cat >conftest.$ac_ext <<_ACEOF
10086/* confdefs.h. */
10087_ACEOF
10088cat confdefs.h >>conftest.$ac_ext
10089cat >>conftest.$ac_ext <<_ACEOF
10090/* end confdefs.h. */
10091
7eed349e 10092/* Override any gcc2 internal prototype to avoid an error. */
1cf3d07d
SE
10093#ifdef __cplusplus
10094extern "C"
10095#endif
7eed349e
PC
10096/* We use char because int might match the return type of a gcc2
10097 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10098char shl_load ();
10099int
10100main ()
10101{
7eed349e 10102shl_load ();
1cf3d07d
SE
10103 ;
10104 return 0;
10105}
10106_ACEOF
10107rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
10108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10109 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
10110 ac_status=$?
10111 grep -v '^ *+' conftest.er1 >conftest.err
10112 rm -f conftest.er1
10113 cat conftest.err >&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
10115 (exit $ac_status); } &&
10116 { ac_try='test -z "$ac_c_werror_flag"
10117 || test ! -s conftest.err'
10118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119 (eval $ac_try) 2>&5
10120 ac_status=$?
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; } &&
10123 { ac_try='test -s conftest$ac_exeext'
10124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125 (eval $ac_try) 2>&5
10126 ac_status=$?
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; }; then
1cf3d07d
SE
10129 ac_cv_lib_dld_shl_load=yes
10130else
10131 echo "$as_me: failed program was:" >&5
10132sed 's/^/| /' conftest.$ac_ext >&5
10133
7eed349e 10134ac_cv_lib_dld_shl_load=no
1cf3d07d 10135fi
7eed349e 10136rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
10137 conftest$ac_exeext conftest.$ac_ext
10138LIBS=$ac_check_lib_save_LIBS
10139fi
7eed349e
PC
10140echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10141echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
1cf3d07d
SE
10142if test $ac_cv_lib_dld_shl_load = yes; then
10143 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10144else
7eed349e
PC
10145 echo "$as_me:$LINENO: checking for dlopen" >&5
10146echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
1cf3d07d
SE
10147if test "${ac_cv_func_dlopen+set}" = set; then
10148 echo $ECHO_N "(cached) $ECHO_C" >&6
10149else
10150 if test x$gcc_no_link = xyes; then
10151 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10152echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10153 { (exit 1); exit 1; }; }
10154fi
10155cat >conftest.$ac_ext <<_ACEOF
10156/* confdefs.h. */
10157_ACEOF
10158cat confdefs.h >>conftest.$ac_ext
10159cat >>conftest.$ac_ext <<_ACEOF
10160/* end confdefs.h. */
10161/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10163#define dlopen innocuous_dlopen
10164
10165/* System header to define __stub macros and hopefully few prototypes,
10166 which can conflict with char dlopen (); below.
10167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10168 <limits.h> exists even on freestanding compilers. */
10169
10170#ifdef __STDC__
10171# include <limits.h>
10172#else
10173# include <assert.h>
10174#endif
10175
10176#undef dlopen
10177
7eed349e 10178/* Override any gcc2 internal prototype to avoid an error. */
1cf3d07d
SE
10179#ifdef __cplusplus
10180extern "C"
7eed349e 10181{
1cf3d07d 10182#endif
7eed349e
PC
10183/* We use char because int might match the return type of a gcc2
10184 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10185char dlopen ();
10186/* The GNU C library defines this for functions which it implements
10187 to always fail with ENOSYS. Some functions are actually named
10188 something starting with __ and the normal name is an alias. */
7eed349e 10189#if defined (__stub_dlopen) || defined (__stub___dlopen)
1cf3d07d 10190choke me
7eed349e
PC
10191#else
10192char (*f) () = dlopen;
10193#endif
10194#ifdef __cplusplus
10195}
1cf3d07d
SE
10196#endif
10197
10198int
10199main ()
10200{
7eed349e 10201return f != dlopen;
1cf3d07d
SE
10202 ;
10203 return 0;
10204}
10205_ACEOF
10206rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
10207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10208 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
10209 ac_status=$?
10210 grep -v '^ *+' conftest.er1 >conftest.err
10211 rm -f conftest.er1
10212 cat conftest.err >&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
10214 (exit $ac_status); } &&
10215 { ac_try='test -z "$ac_c_werror_flag"
10216 || test ! -s conftest.err'
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; } &&
10222 { ac_try='test -s conftest$ac_exeext'
10223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10224 (eval $ac_try) 2>&5
10225 ac_status=$?
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; }; then
1cf3d07d
SE
10228 ac_cv_func_dlopen=yes
10229else
10230 echo "$as_me: failed program was:" >&5
10231sed 's/^/| /' conftest.$ac_ext >&5
10232
7eed349e 10233ac_cv_func_dlopen=no
1cf3d07d 10234fi
7eed349e 10235rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
10236 conftest$ac_exeext conftest.$ac_ext
10237fi
7eed349e
PC
10238echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10239echo "${ECHO_T}$ac_cv_func_dlopen" >&6
1cf3d07d
SE
10240if test $ac_cv_func_dlopen = yes; then
10241 lt_cv_dlopen="dlopen"
10242else
7eed349e
PC
10243 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10244echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
1cf3d07d
SE
10245if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10246 echo $ECHO_N "(cached) $ECHO_C" >&6
10247else
10248 ac_check_lib_save_LIBS=$LIBS
10249LIBS="-ldl $LIBS"
10250if test x$gcc_no_link = xyes; then
10251 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10252echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10253 { (exit 1); exit 1; }; }
10254fi
10255cat >conftest.$ac_ext <<_ACEOF
10256/* confdefs.h. */
10257_ACEOF
10258cat confdefs.h >>conftest.$ac_ext
10259cat >>conftest.$ac_ext <<_ACEOF
10260/* end confdefs.h. */
10261
7eed349e 10262/* Override any gcc2 internal prototype to avoid an error. */
1cf3d07d
SE
10263#ifdef __cplusplus
10264extern "C"
10265#endif
7eed349e
PC
10266/* We use char because int might match the return type of a gcc2
10267 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10268char dlopen ();
10269int
10270main ()
10271{
7eed349e 10272dlopen ();
1cf3d07d
SE
10273 ;
10274 return 0;
10275}
10276_ACEOF
10277rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
10278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10279 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
10280 ac_status=$?
10281 grep -v '^ *+' conftest.er1 >conftest.err
10282 rm -f conftest.er1
10283 cat conftest.err >&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
10285 (exit $ac_status); } &&
10286 { ac_try='test -z "$ac_c_werror_flag"
10287 || test ! -s conftest.err'
10288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289 (eval $ac_try) 2>&5
10290 ac_status=$?
10291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292 (exit $ac_status); }; } &&
10293 { ac_try='test -s conftest$ac_exeext'
10294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295 (eval $ac_try) 2>&5
10296 ac_status=$?
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; }; then
1cf3d07d
SE
10299 ac_cv_lib_dl_dlopen=yes
10300else
10301 echo "$as_me: failed program was:" >&5
10302sed 's/^/| /' conftest.$ac_ext >&5
10303
7eed349e 10304ac_cv_lib_dl_dlopen=no
1cf3d07d 10305fi
7eed349e 10306rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
10307 conftest$ac_exeext conftest.$ac_ext
10308LIBS=$ac_check_lib_save_LIBS
10309fi
7eed349e
PC
10310echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10311echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
1cf3d07d
SE
10312if test $ac_cv_lib_dl_dlopen = yes; then
10313 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10314else
7eed349e
PC
10315 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10316echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
1cf3d07d
SE
10317if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10319else
10320 ac_check_lib_save_LIBS=$LIBS
10321LIBS="-lsvld $LIBS"
10322if test x$gcc_no_link = xyes; then
10323 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10324echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10325 { (exit 1); exit 1; }; }
10326fi
10327cat >conftest.$ac_ext <<_ACEOF
10328/* confdefs.h. */
10329_ACEOF
10330cat confdefs.h >>conftest.$ac_ext
10331cat >>conftest.$ac_ext <<_ACEOF
10332/* end confdefs.h. */
10333
7eed349e 10334/* Override any gcc2 internal prototype to avoid an error. */
1cf3d07d
SE
10335#ifdef __cplusplus
10336extern "C"
10337#endif
7eed349e
PC
10338/* We use char because int might match the return type of a gcc2
10339 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10340char dlopen ();
10341int
10342main ()
10343{
7eed349e 10344dlopen ();
1cf3d07d
SE
10345 ;
10346 return 0;
10347}
10348_ACEOF
10349rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
10350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10351 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
10352 ac_status=$?
10353 grep -v '^ *+' conftest.er1 >conftest.err
10354 rm -f conftest.er1
10355 cat conftest.err >&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
10357 (exit $ac_status); } &&
10358 { ac_try='test -z "$ac_c_werror_flag"
10359 || test ! -s conftest.err'
10360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361 (eval $ac_try) 2>&5
10362 ac_status=$?
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); }; } &&
10365 { ac_try='test -s conftest$ac_exeext'
10366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367 (eval $ac_try) 2>&5
10368 ac_status=$?
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; }; then
1cf3d07d
SE
10371 ac_cv_lib_svld_dlopen=yes
10372else
10373 echo "$as_me: failed program was:" >&5
10374sed 's/^/| /' conftest.$ac_ext >&5
10375
7eed349e 10376ac_cv_lib_svld_dlopen=no
1cf3d07d 10377fi
7eed349e 10378rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
10379 conftest$ac_exeext conftest.$ac_ext
10380LIBS=$ac_check_lib_save_LIBS
10381fi
7eed349e
PC
10382echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10383echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
1cf3d07d
SE
10384if test $ac_cv_lib_svld_dlopen = yes; then
10385 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10386else
7eed349e
PC
10387 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10388echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
1cf3d07d
SE
10389if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
10391else
10392 ac_check_lib_save_LIBS=$LIBS
10393LIBS="-ldld $LIBS"
10394if test x$gcc_no_link = xyes; then
10395 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10396echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10397 { (exit 1); exit 1; }; }
10398fi
10399cat >conftest.$ac_ext <<_ACEOF
10400/* confdefs.h. */
10401_ACEOF
10402cat confdefs.h >>conftest.$ac_ext
10403cat >>conftest.$ac_ext <<_ACEOF
10404/* end confdefs.h. */
10405
7eed349e 10406/* Override any gcc2 internal prototype to avoid an error. */
1cf3d07d
SE
10407#ifdef __cplusplus
10408extern "C"
10409#endif
7eed349e
PC
10410/* We use char because int might match the return type of a gcc2
10411 builtin and then its argument prototype would still apply. */
1cf3d07d
SE
10412char dld_link ();
10413int
10414main ()
10415{
7eed349e 10416dld_link ();
1cf3d07d
SE
10417 ;
10418 return 0;
10419}
10420_ACEOF
10421rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
10422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10423 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
10424 ac_status=$?
10425 grep -v '^ *+' conftest.er1 >conftest.err
10426 rm -f conftest.er1
10427 cat conftest.err >&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
10429 (exit $ac_status); } &&
10430 { ac_try='test -z "$ac_c_werror_flag"
10431 || test ! -s conftest.err'
10432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10433 (eval $ac_try) 2>&5
10434 ac_status=$?
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); }; } &&
10437 { ac_try='test -s conftest$ac_exeext'
10438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10439 (eval $ac_try) 2>&5
10440 ac_status=$?
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; }; then
1cf3d07d
SE
10443 ac_cv_lib_dld_dld_link=yes
10444else
10445 echo "$as_me: failed program was:" >&5
10446sed 's/^/| /' conftest.$ac_ext >&5
10447
7eed349e 10448ac_cv_lib_dld_dld_link=no
1cf3d07d 10449fi
7eed349e 10450rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
10451 conftest$ac_exeext conftest.$ac_ext
10452LIBS=$ac_check_lib_save_LIBS
10453fi
7eed349e
PC
10454echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10455echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
1cf3d07d
SE
10456if test $ac_cv_lib_dld_dld_link = yes; then
10457 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10458fi
10459
10460
10461fi
10462
10463
10464fi
10465
10466
10467fi
10468
10469
10470fi
10471
10472
10473fi
10474
10475 ;;
10476 esac
10477
10478 if test "x$lt_cv_dlopen" != xno; then
10479 enable_dlopen=yes
10480 else
10481 enable_dlopen=no
10482 fi
10483
10484 case $lt_cv_dlopen in
10485 dlopen)
10486 save_CPPFLAGS="$CPPFLAGS"
10487 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10488
10489 save_LDFLAGS="$LDFLAGS"
10490 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10491
10492 save_LIBS="$LIBS"
10493 LIBS="$lt_cv_dlopen_libs $LIBS"
10494
7eed349e
PC
10495 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10496echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
1cf3d07d
SE
10497if test "${lt_cv_dlopen_self+set}" = set; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
10499else
10500 if test "$cross_compiling" = yes; then :
10501 lt_cv_dlopen_self=cross
10502else
10503 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10504 lt_status=$lt_dlunknown
10505 cat > conftest.$ac_ext <<_LT_EOF
38d24731 10506#line 10506 "configure"
1cf3d07d
SE
10507#include "confdefs.h"
10508
10509#if HAVE_DLFCN_H
10510#include <dlfcn.h>
10511#endif
10512
10513#include <stdio.h>
10514
10515#ifdef RTLD_GLOBAL
10516# define LT_DLGLOBAL RTLD_GLOBAL
10517#else
10518# ifdef DL_GLOBAL
10519# define LT_DLGLOBAL DL_GLOBAL
10520# else
10521# define LT_DLGLOBAL 0
10522# endif
10523#endif
10524
10525/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10526 find out it does not work in some platform. */
10527#ifndef LT_DLLAZY_OR_NOW
10528# ifdef RTLD_LAZY
10529# define LT_DLLAZY_OR_NOW RTLD_LAZY
10530# else
10531# ifdef DL_LAZY
10532# define LT_DLLAZY_OR_NOW DL_LAZY
10533# else
10534# ifdef RTLD_NOW
10535# define LT_DLLAZY_OR_NOW RTLD_NOW
10536# else
10537# ifdef DL_NOW
10538# define LT_DLLAZY_OR_NOW DL_NOW
10539# else
10540# define LT_DLLAZY_OR_NOW 0
10541# endif
10542# endif
10543# endif
10544# endif
10545#endif
10546
10547#ifdef __cplusplus
10548extern "C" void exit (int);
10549#endif
10550
10551void fnord() { int i=42;}
10552int main ()
10553{
10554 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10555 int status = $lt_dlunknown;
10556
10557 if (self)
10558 {
10559 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10560 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10561 /* dlclose (self); */
10562 }
10563 else
10564 puts (dlerror ());
10565
10566 exit (status);
10567}
10568_LT_EOF
10569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10570 (eval $ac_link) 2>&5
10571 ac_status=$?
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10574 (./conftest; exit; ) >&5 2>/dev/null
10575 lt_status=$?
10576 case x$lt_status in
10577 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10578 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10579 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10580 esac
10581 else :
10582 # compilation failed
10583 lt_cv_dlopen_self=no
10584 fi
10585fi
10586rm -fr conftest*
10587
10588
10589fi
7eed349e
PC
10590echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10591echo "${ECHO_T}$lt_cv_dlopen_self" >&6
1cf3d07d
SE
10592
10593 if test "x$lt_cv_dlopen_self" = xyes; then
10594 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
7eed349e
PC
10595 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10596echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
1cf3d07d
SE
10597if test "${lt_cv_dlopen_self_static+set}" = set; then
10598 echo $ECHO_N "(cached) $ECHO_C" >&6
10599else
10600 if test "$cross_compiling" = yes; then :
10601 lt_cv_dlopen_self_static=cross
10602else
10603 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10604 lt_status=$lt_dlunknown
10605 cat > conftest.$ac_ext <<_LT_EOF
38d24731 10606#line 10606 "configure"
1cf3d07d
SE
10607#include "confdefs.h"
10608
10609#if HAVE_DLFCN_H
10610#include <dlfcn.h>
10611#endif
10612
10613#include <stdio.h>
10614
10615#ifdef RTLD_GLOBAL
10616# define LT_DLGLOBAL RTLD_GLOBAL
10617#else
10618# ifdef DL_GLOBAL
10619# define LT_DLGLOBAL DL_GLOBAL
10620# else
10621# define LT_DLGLOBAL 0
10622# endif
10623#endif
10624
10625/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10626 find out it does not work in some platform. */
10627#ifndef LT_DLLAZY_OR_NOW
10628# ifdef RTLD_LAZY
10629# define LT_DLLAZY_OR_NOW RTLD_LAZY
10630# else
10631# ifdef DL_LAZY
10632# define LT_DLLAZY_OR_NOW DL_LAZY
10633# else
10634# ifdef RTLD_NOW
10635# define LT_DLLAZY_OR_NOW RTLD_NOW
10636# else
10637# ifdef DL_NOW
10638# define LT_DLLAZY_OR_NOW DL_NOW
10639# else
10640# define LT_DLLAZY_OR_NOW 0
10641# endif
10642# endif
10643# endif
10644# endif
10645#endif
10646
10647#ifdef __cplusplus
10648extern "C" void exit (int);
10649#endif
10650
10651void fnord() { int i=42;}
10652int main ()
10653{
10654 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10655 int status = $lt_dlunknown;
10656
10657 if (self)
10658 {
10659 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10660 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10661 /* dlclose (self); */
10662 }
10663 else
10664 puts (dlerror ());
10665
10666 exit (status);
10667}
10668_LT_EOF
10669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10670 (eval $ac_link) 2>&5
10671 ac_status=$?
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10674 (./conftest; exit; ) >&5 2>/dev/null
10675 lt_status=$?
10676 case x$lt_status in
10677 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10678 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10679 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10680 esac
10681 else :
10682 # compilation failed
10683 lt_cv_dlopen_self_static=no
10684 fi
10685fi
10686rm -fr conftest*
10687
10688
10689fi
7eed349e
PC
10690echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10691echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
1cf3d07d
SE
10692 fi
10693
10694 CPPFLAGS="$save_CPPFLAGS"
10695 LDFLAGS="$save_LDFLAGS"
10696 LIBS="$save_LIBS"
10697 ;;
10698 esac
10699
10700 case $lt_cv_dlopen_self in
10701 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10702 *) enable_dlopen_self=unknown ;;
10703 esac
10704
10705 case $lt_cv_dlopen_self_static in
10706 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10707 *) enable_dlopen_self_static=unknown ;;
10708 esac
10709fi
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727striplib=
10728old_striplib=
7eed349e
PC
10729echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10730echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
1cf3d07d
SE
10731if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10732 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10733 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7eed349e
PC
10734 echo "$as_me:$LINENO: result: yes" >&5
10735echo "${ECHO_T}yes" >&6
1cf3d07d
SE
10736else
10737# FIXME - insert some real tests, host_os isn't really good enough
10738 case $host_os in
10739 darwin*)
10740 if test -n "$STRIP" ; then
10741 striplib="$STRIP -x"
10742 old_striplib="$STRIP -S"
7eed349e
PC
10743 echo "$as_me:$LINENO: result: yes" >&5
10744echo "${ECHO_T}yes" >&6
1cf3d07d 10745 else
7eed349e
PC
10746 echo "$as_me:$LINENO: result: no" >&5
10747echo "${ECHO_T}no" >&6
1cf3d07d
SE
10748 fi
10749 ;;
10750 *)
7eed349e
PC
10751 echo "$as_me:$LINENO: result: no" >&5
10752echo "${ECHO_T}no" >&6
1cf3d07d
SE
10753 ;;
10754 esac
10755fi
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768 # Report which library types will actually be built
7eed349e
PC
10769 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10770echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10771 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10772echo "${ECHO_T}$can_build_shared" >&6
1cf3d07d 10773
7eed349e
PC
10774 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10775echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
1cf3d07d
SE
10776 test "$can_build_shared" = "no" && enable_shared=no
10777
10778 # On AIX, shared libraries and static libraries use the same namespace, and
10779 # are all built from PIC.
10780 case $host_os in
10781 aix3*)
10782 test "$enable_shared" = yes && enable_static=no
10783 if test -n "$RANLIB"; then
10784 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10785 postinstall_cmds='$RANLIB $lib'
10786 fi
10787 ;;
10788
716e4bc6 10789 aix[4-9]*)
1cf3d07d
SE
10790 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10791 test "$enable_shared" = yes && enable_static=no
10792 fi
10793 ;;
10794 esac
7eed349e
PC
10795 echo "$as_me:$LINENO: result: $enable_shared" >&5
10796echo "${ECHO_T}$enable_shared" >&6
1cf3d07d 10797
7eed349e
PC
10798 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10799echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
1cf3d07d
SE
10800 # Make sure either enable_shared or enable_static is yes.
10801 test "$enable_shared" = yes || enable_static=yes
7eed349e
PC
10802 echo "$as_me:$LINENO: result: $enable_static" >&5
10803echo "${ECHO_T}$enable_static" >&6
1cf3d07d
SE
10804
10805
10806
10807
10808fi
10809ac_ext=c
10810ac_cpp='$CPP $CPPFLAGS'
10811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10813ac_compiler_gnu=$ac_cv_c_compiler_gnu
10814
10815CC="$lt_save_CC"
10816
10817
7eed349e 10818ac_ext=cc
1cf3d07d
SE
10819ac_cpp='$CXXCPP $CPPFLAGS'
10820ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10821ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10822ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10823
10824archive_cmds_need_lc_CXX=no
10825allow_undefined_flag_CXX=
10826always_export_symbols_CXX=no
10827archive_expsym_cmds_CXX=
10828compiler_needs_object_CXX=no
10829export_dynamic_flag_spec_CXX=
10830hardcode_direct_CXX=no
10831hardcode_direct_absolute_CXX=no
10832hardcode_libdir_flag_spec_CXX=
10833hardcode_libdir_flag_spec_ld_CXX=
10834hardcode_libdir_separator_CXX=
10835hardcode_minus_L_CXX=no
10836hardcode_shlibpath_var_CXX=unsupported
10837hardcode_automatic_CXX=no
10838inherit_rpath_CXX=no
10839module_cmds_CXX=
10840module_expsym_cmds_CXX=
10841link_all_deplibs_CXX=unknown
10842old_archive_cmds_CXX=$old_archive_cmds
10843no_undefined_flag_CXX=
10844whole_archive_flag_spec_CXX=
10845enable_shared_with_static_runtimes_CXX=no
10846
10847# Source file extension for C++ test sources.
10848ac_ext=cpp
10849
10850# Object file extension for compiled C++ test sources.
10851objext=o
10852objext_CXX=$objext
10853
10854# No sense in running all these tests if we already determined that
10855# the CXX compiler isn't working. Some variables (like enable_shared)
10856# are currently assumed to apply to all compilers on this platform,
10857# and will be corrupted by setting them based on a non-working compiler.
10858if test "$_lt_caught_CXX_error" != yes; then
10859 # Code to be used in simple compile tests
10860 lt_simple_compile_test_code="int some_variable = 0;"
10861
10862 # Code to be used in simple link tests
10863 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10864
10865 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10866
10867
10868
10869
10870
10871
10872# If no C compiler was specified, use CC.
10873LTCC=${LTCC-"$CC"}
10874
10875# If no C compiler flags were specified, use CFLAGS.
10876LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10877
10878# Allow CC to be a program name with arguments.
10879compiler=$CC
10880
10881
10882 # save warnings/boilerplate of simple test code
10883 ac_outfile=conftest.$ac_objext
10884echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10885eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10886_lt_compiler_boilerplate=`cat conftest.err`
10887$RM conftest*
10888
10889 ac_outfile=conftest.$ac_objext
10890echo "$lt_simple_link_test_code" >conftest.$ac_ext
10891eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10892_lt_linker_boilerplate=`cat conftest.err`
10893$RM conftest*
10894
10895
10896 # Allow CC to be a program name with arguments.
10897 lt_save_CC=$CC
10898 lt_save_LD=$LD
10899 lt_save_GCC=$GCC
10900 GCC=$GXX
10901 lt_save_with_gnu_ld=$with_gnu_ld
10902 lt_save_path_LD=$lt_cv_path_LD
10903 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10904 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10905 else
10906 $as_unset lt_cv_prog_gnu_ld
10907 fi
10908 if test -n "${lt_cv_path_LDCXX+set}"; then
10909 lt_cv_path_LD=$lt_cv_path_LDCXX
10910 else
10911 $as_unset lt_cv_path_LD
10912 fi
10913 test -z "${LDCXX+set}" || LD=$LDCXX
10914 CC=${CXX-"c++"}
10915 compiler=$CC
10916 compiler_CXX=$CC
10917 for cc_temp in $compiler""; do
10918 case $cc_temp in
10919 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10920 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10921 \-*) ;;
10922 *) break;;
10923 esac
10924done
10925cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10926
10927
10928 if test -n "$compiler"; then
10929 # We don't want -fno-exception when compiling C++ code, so set the
10930 # no_builtin_flag separately
10931 if test "$GXX" = yes; then
10932 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10933 else
10934 lt_prog_compiler_no_builtin_flag_CXX=
10935 fi
10936
10937 if test "$GXX" = yes; then
10938 # Set up default GNU C++ configuration
10939
10940
10941
7eed349e 10942# Check whether --with-gnu-ld or --without-gnu-ld was given.
1cf3d07d 10943if test "${with_gnu_ld+set}" = set; then
7eed349e
PC
10944 withval="$with_gnu_ld"
10945 test "$withval" = no || with_gnu_ld=yes
1cf3d07d
SE
10946else
10947 with_gnu_ld=no
7eed349e 10948fi;
1cf3d07d
SE
10949ac_prog=ld
10950if test "$GCC" = yes; then
10951 # Check if gcc -print-prog-name=ld gives a path.
7eed349e
PC
10952 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10953echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
1cf3d07d
SE
10954 case $host in
10955 *-*-mingw*)
10956 # gcc leaves a trailing carriage return which upsets mingw
10957 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10958 *)
10959 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10960 esac
10961 case $ac_prog in
10962 # Accept absolute paths.
10963 [\\/]* | ?:[\\/]*)
10964 re_direlt='/[^/][^/]*/\.\./'
10965 # Canonicalize the pathname of ld
10966 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10967 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10968 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10969 done
10970 test -z "$LD" && LD="$ac_prog"
10971 ;;
10972 "")
10973 # If it fails, then pretend we aren't using GCC.
10974 ac_prog=ld
10975 ;;
10976 *)
10977 # If it is relative, then search for the first ld in PATH.
10978 with_gnu_ld=unknown
10979 ;;
10980 esac
10981elif test "$with_gnu_ld" = yes; then
7eed349e
PC
10982 echo "$as_me:$LINENO: checking for GNU ld" >&5
10983echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
1cf3d07d 10984else
7eed349e
PC
10985 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10986echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
1cf3d07d
SE
10987fi
10988if test "${lt_cv_path_LD+set}" = set; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10990else
10991 if test -z "$LD"; then
10992 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10993 for ac_dir in $PATH; do
10994 IFS="$lt_save_ifs"
10995 test -z "$ac_dir" && ac_dir=.
10996 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10997 lt_cv_path_LD="$ac_dir/$ac_prog"
10998 # Check to see if the program is GNU ld. I'd rather use --version,
10999 # but apparently some variants of GNU ld only accept -v.
11000 # Break only if it was the GNU/non-GNU ld that we prefer.
11001 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11002 *GNU* | *'with BFD'*)
11003 test "$with_gnu_ld" != no && break
11004 ;;
11005 *)
11006 test "$with_gnu_ld" != yes && break
11007 ;;
11008 esac
11009 fi
11010 done
11011 IFS="$lt_save_ifs"
11012else
11013 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11014fi
11015fi
11016
11017LD="$lt_cv_path_LD"
11018if test -n "$LD"; then
7eed349e
PC
11019 echo "$as_me:$LINENO: result: $LD" >&5
11020echo "${ECHO_T}$LD" >&6
1cf3d07d 11021else
7eed349e
PC
11022 echo "$as_me:$LINENO: result: no" >&5
11023echo "${ECHO_T}no" >&6
1cf3d07d
SE
11024fi
11025test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11026echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11027 { (exit 1); exit 1; }; }
7eed349e
PC
11028echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11029echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
1cf3d07d
SE
11030if test "${lt_cv_prog_gnu_ld+set}" = set; then
11031 echo $ECHO_N "(cached) $ECHO_C" >&6
11032else
11033 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11034case `$LD -v 2>&1 </dev/null` in
11035*GNU* | *'with BFD'*)
11036 lt_cv_prog_gnu_ld=yes
11037 ;;
11038*)
11039 lt_cv_prog_gnu_ld=no
11040 ;;
11041esac
11042fi
7eed349e
PC
11043echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11044echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
1cf3d07d
SE
11045with_gnu_ld=$lt_cv_prog_gnu_ld
11046
11047
11048
11049
11050
11051
11052
11053 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11054 # archiving commands below assume that GNU ld is being used.
11055 if test "$with_gnu_ld" = yes; then
11056 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11057 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'
11058
11059 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11060 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11061
11062 # If archive_cmds runs LD, not CC, wlarc should be empty
11063 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11064 # investigate it a little bit more. (MM)
11065 wlarc='${wl}'
11066
11067 # ancient GNU ld didn't support --whole-archive et. al.
11068 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11069 $GREP 'no-whole-archive' > /dev/null; then
11070 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11071 else
11072 whole_archive_flag_spec_CXX=
11073 fi
11074 else
11075 with_gnu_ld=no
11076 wlarc=
11077
11078 # A generic and very simple default shared library creation
11079 # command for GNU C++ for the case where it uses the native
11080 # linker, instead of GNU ld. If possible, this setting should
11081 # overridden to take advantage of the native linker features on
11082 # the platform it is being used on.
11083 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11084 fi
11085
11086 # Commands to make compiler produce verbose output that lists
11087 # what "hidden" libraries, object files and flags are used when
11088 # linking a shared library.
11089 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11090
11091 else
11092 GXX=no
11093 with_gnu_ld=no
11094 wlarc=
11095 fi
11096
11097 # PORTME: fill in a description of your system's C++ link characteristics
7eed349e
PC
11098 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11099echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1cf3d07d
SE
11100 ld_shlibs_CXX=yes
11101 case $host_os in
11102 aix3*)
11103 # FIXME: insert proper C++ library support
11104 ld_shlibs_CXX=no
11105 ;;
716e4bc6 11106 aix[4-9]*)
1cf3d07d
SE
11107 if test "$host_cpu" = ia64; then
11108 # On IA64, the linker does run time linking by default, so we don't
11109 # have to do anything special.
11110 aix_use_runtimelinking=no
11111 exp_sym_flag='-Bexport'
11112 no_entry_flag=""
11113 else
11114 aix_use_runtimelinking=no
11115
11116 # Test if we are trying to use run time linking or normal
11117 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11118 # need to do runtime linking.
716e4bc6 11119 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
11120 for ld_flag in $LDFLAGS; do
11121 case $ld_flag in
11122 *-brtl*)
11123 aix_use_runtimelinking=yes
11124 break
11125 ;;
11126 esac
11127 done
11128 ;;
11129 esac
11130
11131 exp_sym_flag='-bexport'
11132 no_entry_flag='-bnoentry'
11133 fi
11134
11135 # When large executables or shared objects are built, AIX ld can
11136 # have problems creating the table of contents. If linking a library
11137 # or program results in "error TOC overflow" add -mminimal-toc to
11138 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11139 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11140
11141 archive_cmds_CXX=''
11142 hardcode_direct_CXX=yes
11143 hardcode_direct_absolute_CXX=yes
11144 hardcode_libdir_separator_CXX=':'
11145 link_all_deplibs_CXX=yes
11146 file_list_spec_CXX='${wl}-f,'
11147
11148 if test "$GXX" = yes; then
11149 case $host_os in aix4.[012]|aix4.[012].*)
11150 # We only want to do this on AIX 4.2 and lower, the check
11151 # below for broken collect2 doesn't work under 4.3+
11152 collect2name=`${CC} -print-prog-name=collect2`
11153 if test -f "$collect2name" &&
11154 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11155 then
11156 # We have reworked collect2
11157 :
11158 else
11159 # We have old collect2
11160 hardcode_direct_CXX=unsupported
11161 # It fails to find uninstalled libraries when the uninstalled
11162 # path is not listed in the libpath. Setting hardcode_minus_L
11163 # to unsupported forces relinking
11164 hardcode_minus_L_CXX=yes
11165 hardcode_libdir_flag_spec_CXX='-L$libdir'
11166 hardcode_libdir_separator_CXX=
11167 fi
11168 esac
11169 shared_flag='-shared'
11170 if test "$aix_use_runtimelinking" = yes; then
11171 shared_flag="$shared_flag "'${wl}-G'
11172 fi
11173 else
11174 # not using gcc
11175 if test "$host_cpu" = ia64; then
11176 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11177 # chokes on -Wl,-G. The following line is correct:
11178 shared_flag='-G'
11179 else
11180 if test "$aix_use_runtimelinking" = yes; then
11181 shared_flag='${wl}-G'
11182 else
11183 shared_flag='${wl}-bM:SRE'
11184 fi
11185 fi
11186 fi
11187
11188 # It seems that -bexpall does not export symbols beginning with
11189 # underscore (_), so it is better to generate a list of symbols to
11190 # export.
11191 always_export_symbols_CXX=yes
11192 if test "$aix_use_runtimelinking" = yes; then
11193 # Warning - without using the other runtime loading flags (-brtl),
11194 # -berok will link without error, but may produce a broken library.
11195 allow_undefined_flag_CXX='-berok'
11196 # Determine the default libpath from the value encoded in an empty
11197 # executable.
11198 if test x$gcc_no_link = xyes; then
11199 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11200echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11201 { (exit 1); exit 1; }; }
11202fi
11203cat >conftest.$ac_ext <<_ACEOF
11204/* confdefs.h. */
11205_ACEOF
11206cat confdefs.h >>conftest.$ac_ext
11207cat >>conftest.$ac_ext <<_ACEOF
11208/* end confdefs.h. */
11209
11210int
11211main ()
11212{
11213
11214 ;
11215 return 0;
11216}
11217_ACEOF
11218rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
11219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11220 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
11221 ac_status=$?
11222 grep -v '^ *+' conftest.er1 >conftest.err
11223 rm -f conftest.er1
11224 cat conftest.err >&5
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
11226 (exit $ac_status); } &&
11227 { ac_try='test -z "$ac_cxx_werror_flag"
11228 || test ! -s conftest.err'
11229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11230 (eval $ac_try) 2>&5
11231 ac_status=$?
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); }; } &&
11234 { ac_try='test -s conftest$ac_exeext'
11235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11236 (eval $ac_try) 2>&5
11237 ac_status=$?
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; }; then
1cf3d07d
SE
11240
11241lt_aix_libpath_sed='
11242 /Import File Strings/,/^$/ {
11243 /^0/ {
11244 s/^0 *\(.*\)$/\1/
11245 p
11246 }
11247 }'
11248aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11249# Check for a 64-bit object if we didn't find anything.
11250if test -z "$aix_libpath"; then
11251 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11252fi
11253else
11254 echo "$as_me: failed program was:" >&5
11255sed 's/^/| /' conftest.$ac_ext >&5
11256
11257fi
7eed349e 11258rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
11259 conftest$ac_exeext conftest.$ac_ext
11260if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11261
11262 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11263
11264 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"
11265 else
11266 if test "$host_cpu" = ia64; then
11267 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11268 allow_undefined_flag_CXX="-z nodefs"
11269 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"
11270 else
11271 # Determine the default libpath from the value encoded in an
11272 # empty executable.
11273 if test x$gcc_no_link = xyes; then
11274 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11275echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11276 { (exit 1); exit 1; }; }
11277fi
11278cat >conftest.$ac_ext <<_ACEOF
11279/* confdefs.h. */
11280_ACEOF
11281cat confdefs.h >>conftest.$ac_ext
11282cat >>conftest.$ac_ext <<_ACEOF
11283/* end confdefs.h. */
11284
11285int
11286main ()
11287{
11288
11289 ;
11290 return 0;
11291}
11292_ACEOF
11293rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
11294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11295 (eval $ac_link) 2>conftest.er1
1cf3d07d
SE
11296 ac_status=$?
11297 grep -v '^ *+' conftest.er1 >conftest.err
11298 rm -f conftest.er1
11299 cat conftest.err >&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
11301 (exit $ac_status); } &&
11302 { ac_try='test -z "$ac_cxx_werror_flag"
11303 || test ! -s conftest.err'
11304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11305 (eval $ac_try) 2>&5
11306 ac_status=$?
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; } &&
11309 { ac_try='test -s conftest$ac_exeext'
11310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11311 (eval $ac_try) 2>&5
11312 ac_status=$?
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; }; then
1cf3d07d
SE
11315
11316lt_aix_libpath_sed='
11317 /Import File Strings/,/^$/ {
11318 /^0/ {
11319 s/^0 *\(.*\)$/\1/
11320 p
11321 }
11322 }'
11323aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11324# Check for a 64-bit object if we didn't find anything.
11325if test -z "$aix_libpath"; then
11326 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11327fi
11328else
11329 echo "$as_me: failed program was:" >&5
11330sed 's/^/| /' conftest.$ac_ext >&5
11331
11332fi
7eed349e 11333rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
11334 conftest$ac_exeext conftest.$ac_ext
11335if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11336
11337 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11338 # Warning - without using the other run time loading flags,
11339 # -berok will link without error, but may produce a broken library.
11340 no_undefined_flag_CXX=' ${wl}-bernotok'
11341 allow_undefined_flag_CXX=' ${wl}-berok'
11342 # Exported symbols can be pulled into shared objects from archives
11343 whole_archive_flag_spec_CXX='$convenience'
11344 archive_cmds_need_lc_CXX=yes
11345 # This is similar to how AIX traditionally builds its shared
11346 # libraries.
11347 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'
11348 fi
11349 fi
11350 ;;
11351
11352 beos*)
11353 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11354 allow_undefined_flag_CXX=unsupported
11355 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11356 # support --undefined. This deserves some investigation. FIXME
11357 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11358 else
11359 ld_shlibs_CXX=no
11360 fi
11361 ;;
11362
11363 chorus*)
11364 case $cc_basename in
11365 *)
11366 # FIXME: insert proper C++ library support
11367 ld_shlibs_CXX=no
11368 ;;
11369 esac
11370 ;;
11371
11372 cygwin* | mingw* | pw32*)
11373 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11374 # as there is no search path for DLLs.
11375 hardcode_libdir_flag_spec_CXX='-L$libdir'
11376 allow_undefined_flag_CXX=unsupported
11377 always_export_symbols_CXX=no
11378 enable_shared_with_static_runtimes_CXX=yes
11379
11380 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11381 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'
11382 # If the export-symbols file already is a .def file (1st line
11383 # is EXPORTS), use it as is; otherwise, prepend...
11384 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11385 cp $export_symbols $output_objdir/$soname.def;
11386 else
11387 echo EXPORTS > $output_objdir/$soname.def;
11388 cat $export_symbols >> $output_objdir/$soname.def;
11389 fi~
11390 $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'
11391 else
11392 ld_shlibs_CXX=no
11393 fi
11394 ;;
11395 darwin* | rhapsody*)
11396 case $host_os in
11397 rhapsody* | darwin1.[012])
11398 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11399 ;;
11400 *) # Darwin 1.3 on
11401 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
11402 10.[012])
11403 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11404 ;;
11405 10.*)
11406 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11407 ;;
11408 esac
11409 ;;
11410 esac
11411 archive_cmds_need_lc_CXX=no
11412 hardcode_direct_CXX=no
11413 hardcode_automatic_CXX=yes
11414 hardcode_shlibpath_var_CXX=unsupported
11415 whole_archive_flag_spec_CXX=''
11416 link_all_deplibs_CXX=yes
11417
11418 if test "$GXX" = yes ; then
11419 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11420 echo $ECHO_N "(cached) $ECHO_C" >&6
11421else
11422 lt_cv_apple_cc_single_mod=no
11423 if test -z "${LT_MULTI_MODULE}"; then
11424 # By default we will add the -single_module flag. You can override
11425 # by either setting the environment variable LT_MULTI_MODULE
11426 # non-empty at configure time, or by adding -multi-module to the
11427 # link flags.
11428 echo "int foo(void){return 1;}" > conftest.c
11429 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11430 -dynamiclib ${wl}-single_module conftest.c
11431 if test -f libconftest.dylib; then
11432 lt_cv_apple_cc_single_mod=yes
11433 rm libconftest.dylib
11434 fi
11435 rm conftest.$ac_ext
11436 fi
11437fi
11438
11439 output_verbose_link_cmd=echo
11440 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
11441 archive_cmds_CXX='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11442 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}'
11443 else
11444 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'
11445 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}'
11446 fi
11447 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11448 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}'
11449 else
11450 case $cc_basename in
11451 xlc*)
11452 output_verbose_link_cmd=echo
11453 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'
11454 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11455 # Don't fix this by using the ld -exported_symbols_list flag,
11456 # it doesn't exist in older darwin lds
11457 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}'
11458 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}'
11459 ;;
11460 *)
11461 ld_shlibs_CXX=no
11462 ;;
11463 esac
11464 fi
11465 ;;
11466
11467 dgux*)
11468 case $cc_basename in
11469 ec++*)
11470 # FIXME: insert proper C++ library support
11471 ld_shlibs_CXX=no
11472 ;;
11473 ghcx*)
11474 # Green Hills C++ Compiler
11475 # FIXME: insert proper C++ library support
11476 ld_shlibs_CXX=no
11477 ;;
11478 *)
11479 # FIXME: insert proper C++ library support
11480 ld_shlibs_CXX=no
11481 ;;
11482 esac
11483 ;;
11484
11485 freebsd[12]*)
11486 # C++ shared libraries reported to be fairly broken before
11487 # switch to ELF
11488 ld_shlibs_CXX=no
11489 ;;
11490
11491 freebsd-elf*)
11492 archive_cmds_need_lc_CXX=no
11493 ;;
11494
11495 freebsd* | dragonfly*)
11496 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11497 # conventions
11498 ld_shlibs_CXX=yes
11499 ;;
11500
11501 gnu*)
11502 ;;
11503
11504 hpux9*)
11505 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11506 hardcode_libdir_separator_CXX=:
11507 export_dynamic_flag_spec_CXX='${wl}-E'
11508 hardcode_direct_CXX=yes
11509 hardcode_minus_L_CXX=yes # Not in the search PATH,
11510 # but as the default
11511 # location of the library.
11512
11513 case $cc_basename in
11514 CC*)
11515 # FIXME: insert proper C++ library support
11516 ld_shlibs_CXX=no
11517 ;;
11518 aCC*)
11519 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'
11520 # Commands to make compiler produce verbose output that lists
11521 # what "hidden" libraries, object files and flags are used when
11522 # linking a shared library.
11523 #
11524 # There doesn't appear to be a way to prevent this compiler from
11525 # explicitly linking system object files so we need to strip them
11526 # from the output so that they don't get included in the library
11527 # dependencies.
11528 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'
11529 ;;
11530 *)
11531 if test "$GXX" = yes; then
11532 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'
11533 else
11534 # FIXME: insert proper C++ library support
11535 ld_shlibs_CXX=no
11536 fi
11537 ;;
11538 esac
11539 ;;
11540
11541 hpux10*|hpux11*)
11542 if test $with_gnu_ld = no; then
11543 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11544 hardcode_libdir_separator_CXX=:
11545
11546 case $host_cpu in
11547 hppa*64*|ia64*)
11548 ;;
11549 *)
11550 export_dynamic_flag_spec_CXX='${wl}-E'
11551 ;;
11552 esac
11553 fi
11554 case $host_cpu in
11555 hppa*64*|ia64*)
11556 hardcode_direct_CXX=no
11557 hardcode_shlibpath_var_CXX=no
11558 ;;
11559 *)
11560 hardcode_direct_CXX=yes
11561 hardcode_direct_absolute_CXX=yes
11562 hardcode_minus_L_CXX=yes # Not in the search PATH,
11563 # but as the default
11564 # location of the library.
11565 ;;
11566 esac
11567
11568 case $cc_basename in
11569 CC*)
11570 # FIXME: insert proper C++ library support
11571 ld_shlibs_CXX=no
11572 ;;
11573 aCC*)
11574 case $host_cpu in
11575 hppa*64*)
11576 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11577 ;;
11578 ia64*)
11579 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11580 ;;
11581 *)
11582 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11583 ;;
11584 esac
11585 # Commands to make compiler produce verbose output that lists
11586 # what "hidden" libraries, object files and flags are used when
11587 # linking a shared library.
11588 #
11589 # There doesn't appear to be a way to prevent this compiler from
11590 # explicitly linking system object files so we need to strip them
11591 # from the output so that they don't get included in the library
11592 # dependencies.
11593 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'
11594 ;;
11595 *)
11596 if test "$GXX" = yes; then
11597 if test $with_gnu_ld = no; then
11598 case $host_cpu in
11599 hppa*64*)
11600 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11601 ;;
11602 ia64*)
11603 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11604 ;;
11605 *)
11606 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'
11607 ;;
11608 esac
11609 fi
11610 else
11611 # FIXME: insert proper C++ library support
11612 ld_shlibs_CXX=no
11613 fi
11614 ;;
11615 esac
11616 ;;
11617
11618 interix[3-9]*)
11619 hardcode_direct_CXX=no
11620 hardcode_shlibpath_var_CXX=no
11621 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11622 export_dynamic_flag_spec_CXX='${wl}-E'
11623 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11624 # Instead, shared libraries are loaded at an image base (0x10000000 by
11625 # default) and relocated if they conflict, which is a slow very memory
11626 # consuming and fragmenting process. To avoid this, we pick a random,
11627 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11628 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11629 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'
11630 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'
11631 ;;
11632 irix5* | irix6*)
11633 case $cc_basename in
11634 CC*)
11635 # SGI C++
11636 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'
11637
11638 # Archives containing C++ object files must be created using
11639 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11640 # necessary to make sure instantiated templates are included
11641 # in the archive.
11642 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11643 ;;
11644 *)
11645 if test "$GXX" = yes; then
11646 if test "$with_gnu_ld" = no; then
11647 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'
11648 else
11649 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'
11650 fi
11651 fi
11652 link_all_deplibs_CXX=yes
11653 ;;
11654 esac
11655 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11656 hardcode_libdir_separator_CXX=:
11657 inherit_rpath_CXX=yes
11658 ;;
11659
11660 linux* | k*bsd*-gnu)
11661 case $cc_basename in
11662 KCC*)
11663 # Kuck and Associates, Inc. (KAI) C++ Compiler
11664
11665 # KCC will only create a shared library if the output file
11666 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11667 # to its proper name (with version) after linking.
11668 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'
11669 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'
11670 # Commands to make compiler produce verbose output that lists
11671 # what "hidden" libraries, object files and flags are used when
11672 # linking a shared library.
11673 #
11674 # There doesn't appear to be a way to prevent this compiler from
11675 # explicitly linking system object files so we need to strip them
11676 # from the output so that they don't get included in the library
11677 # dependencies.
11678 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'
11679
11680 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11681 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11682
11683 # Archives containing C++ object files must be created using
11684 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11685 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11686 ;;
11687 icpc* | ecpc* )
11688 # Intel C++
11689 with_gnu_ld=yes
11690 # version 8.0 and above of icpc choke on multiply defined symbols
11691 # if we add $predep_objects and $postdep_objects, however 7.1 and
11692 # earlier do not add the objects themselves.
11693 case `$CC -V 2>&1` in
11694 *"Version 7."*)
11695 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11696 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'
11697 ;;
11698 *) # Version 8.0 or newer
11699 tmp_idyn=
11700 case $host_cpu in
11701 ia64*) tmp_idyn=' -i_dynamic';;
11702 esac
11703 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11704 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'
11705 ;;
11706 esac
11707 archive_cmds_need_lc_CXX=no
11708 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11709 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11710 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11711 ;;
11712 pgCC*)
11713 # Portland Group C++ compiler
11714 case `$CC -V` in
11715 *pgCC\ [1-5]*)
11716 prelink_cmds_CXX='tpldir=Template.dir~
11717 rm -rf $tpldir~
11718 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
11719 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
11720 old_archive_cmds_CXX='tpldir=Template.dir~
11721 rm -rf $tpldir~
11722 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
11723 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
11724 $RANLIB $oldlib'
11725 archive_cmds_CXX='tpldir=Template.dir~
11726 rm -rf $tpldir~
11727 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
11728 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11729 archive_expsym_cmds_CXX='tpldir=Template.dir~
11730 rm -rf $tpldir~
11731 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
11732 $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'
11733 ;;
11734 *) # Version 6 will use weak symbols
11735 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11736 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'
11737 ;;
11738 esac
11739
11740 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11741 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11742 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'
11743 ;;
11744 cxx*)
11745 # Compaq C++
11746 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11747 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'
11748
11749 runpath_var=LD_RUN_PATH
11750 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11751 hardcode_libdir_separator_CXX=:
11752
11753 # Commands to make compiler produce verbose output that lists
11754 # what "hidden" libraries, object files and flags are used when
11755 # linking a shared library.
11756 #
11757 # There doesn't appear to be a way to prevent this compiler from
11758 # explicitly linking system object files so we need to strip them
11759 # from the output so that they don't get included in the library
11760 # dependencies.
11761 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'
11762 ;;
11763 *)
11764 case `$CC -V 2>&1 | sed 5q` in
11765 *Sun\ C*)
11766 # Sun C++ 5.9
11767 no_undefined_flag_CXX=' -zdefs'
11768 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11769 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'
11770 hardcode_libdir_flag_spec_CXX='-R$libdir'
11771 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'
11772 compiler_needs_object_CXX=yes
11773
11774 # Not sure whether something based on
11775 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11776 # would be better.
11777 output_verbose_link_cmd='echo'
11778
11779 # Archives containing C++ object files must be created using
11780 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11781 # necessary to make sure instantiated templates are included
11782 # in the archive.
11783 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11784 ;;
11785 esac
11786 ;;
11787 esac
11788 ;;
11789
11790 lynxos*)
11791 # FIXME: insert proper C++ library support
11792 ld_shlibs_CXX=no
11793 ;;
11794
11795 m88k*)
11796 # FIXME: insert proper C++ library support
11797 ld_shlibs_CXX=no
11798 ;;
11799
11800 mvs*)
11801 case $cc_basename in
11802 cxx*)
11803 # FIXME: insert proper C++ library support
11804 ld_shlibs_CXX=no
11805 ;;
11806 *)
11807 # FIXME: insert proper C++ library support
11808 ld_shlibs_CXX=no
11809 ;;
11810 esac
11811 ;;
11812
11813 netbsd*)
11814 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11815 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11816 wlarc=
11817 hardcode_libdir_flag_spec_CXX='-R$libdir'
11818 hardcode_direct_CXX=yes
11819 hardcode_shlibpath_var_CXX=no
11820 fi
11821 # Workaround some broken pre-1.5 toolchains
11822 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11823 ;;
11824
11825 *nto* | *qnx*)
11826 ld_shlibs_CXX=yes
11827 ;;
11828
11829 openbsd2*)
11830 # C++ shared libraries are fairly broken
11831 ld_shlibs_CXX=no
11832 ;;
11833
11834 openbsd*)
11835 hardcode_direct_CXX=yes
11836 hardcode_shlibpath_var_CXX=no
11837 hardcode_direct_absolute_CXX=yes
11838 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11839 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11840 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11841 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11842 export_dynamic_flag_spec_CXX='${wl}-E'
11843 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11844 fi
11845 output_verbose_link_cmd=echo
11846 ;;
11847
11848 osf3* | osf4* | osf5*)
11849 case $cc_basename in
11850 KCC*)
11851 # Kuck and Associates, Inc. (KAI) C++ Compiler
11852
11853 # KCC will only create a shared library if the output file
11854 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11855 # to its proper name (with version) after linking.
11856 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'
11857
11858 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11859 hardcode_libdir_separator_CXX=:
11860
11861 # Archives containing C++ object files must be created using
11862 # the KAI C++ compiler.
11863 case $host in
11864 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
11865 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
11866 esac
11867 ;;
11868 RCC*)
11869 # Rational C++ 2.4.1
11870 # FIXME: insert proper C++ library support
11871 ld_shlibs_CXX=no
11872 ;;
11873 cxx*)
11874 case $host in
11875 osf3*)
11876 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11877 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'
11878 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11879 ;;
11880 *)
11881 allow_undefined_flag_CXX=' -expect_unresolved \*'
11882 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'
11883 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11884 echo "-hidden">> $lib.exp~
11885 $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~
11886 $RM $lib.exp'
11887 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11888 ;;
11889 esac
11890
11891 hardcode_libdir_separator_CXX=:
11892
11893 # Commands to make compiler produce verbose output that lists
11894 # what "hidden" libraries, object files and flags are used when
11895 # linking a shared library.
11896 #
11897 # There doesn't appear to be a way to prevent this compiler from
11898 # explicitly linking system object files so we need to strip them
11899 # from the output so that they don't get included in the library
11900 # dependencies.
11901 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'
11902 ;;
11903 *)
11904 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11905 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11906 case $host in
11907 osf3*)
11908 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'
11909 ;;
11910 *)
11911 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'
11912 ;;
11913 esac
11914
11915 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11916 hardcode_libdir_separator_CXX=:
11917
11918 # Commands to make compiler produce verbose output that lists
11919 # what "hidden" libraries, object files and flags are used when
11920 # linking a shared library.
11921 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11922
11923 else
11924 # FIXME: insert proper C++ library support
11925 ld_shlibs_CXX=no
11926 fi
11927 ;;
11928 esac
11929 ;;
11930
11931 psos*)
11932 # FIXME: insert proper C++ library support
11933 ld_shlibs_CXX=no
11934 ;;
11935
11936 sunos4*)
11937 case $cc_basename in
11938 CC*)
11939 # Sun C++ 4.x
11940 # FIXME: insert proper C++ library support
11941 ld_shlibs_CXX=no
11942 ;;
11943 lcc*)
11944 # Lucid
11945 # FIXME: insert proper C++ library support
11946 ld_shlibs_CXX=no
11947 ;;
11948 *)
11949 # FIXME: insert proper C++ library support
11950 ld_shlibs_CXX=no
11951 ;;
11952 esac
11953 ;;
11954
11955 solaris*)
11956 case $cc_basename in
11957 CC*)
11958 # Sun C++ 4.2, 5.x and Centerline C++
11959 archive_cmds_need_lc_CXX=yes
11960 no_undefined_flag_CXX=' -zdefs'
11961 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11962 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11963 $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'
11964
11965 hardcode_libdir_flag_spec_CXX='-R$libdir'
11966 hardcode_shlibpath_var_CXX=no
11967 case $host_os in
11968 solaris2.[0-5] | solaris2.[0-5].*) ;;
11969 *)
11970 # The compiler driver will combine and reorder linker options,
11971 # but understands `-z linker_flag'.
11972 # Supported since Solaris 2.6 (maybe 2.5.1?)
11973 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11974 ;;
11975 esac
11976 link_all_deplibs_CXX=yes
11977
11978 output_verbose_link_cmd='echo'
11979
11980 # Archives containing C++ object files must be created using
11981 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11982 # necessary to make sure instantiated templates are included
11983 # in the archive.
11984 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11985 ;;
11986 gcx*)
11987 # Green Hills C++ Compiler
11988 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11989
11990 # The C++ compiler must be used to create the archive.
11991 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11992 ;;
11993 *)
11994 # GNU C++ compiler with Solaris linker
11995 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11996 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11997 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
11998 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11999 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12000 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12001
12002 # Commands to make compiler produce verbose output that lists
12003 # what "hidden" libraries, object files and flags are used when
12004 # linking a shared library.
12005 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12006 else
12007 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12008 # platform.
12009 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12010 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12011 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12012
12013 # Commands to make compiler produce verbose output that lists
12014 # what "hidden" libraries, object files and flags are used when
12015 # linking a shared library.
12016 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12017 fi
12018
12019 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12020 case $host_os in
12021 solaris2.[0-5] | solaris2.[0-5].*) ;;
12022 *)
12023 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12024 ;;
12025 esac
12026 fi
12027 ;;
12028 esac
12029 ;;
12030
12031 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12032 no_undefined_flag_CXX='${wl}-z,text'
12033 archive_cmds_need_lc_CXX=no
12034 hardcode_shlibpath_var_CXX=no
12035 runpath_var='LD_RUN_PATH'
12036
12037 case $cc_basename in
12038 CC*)
12039 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12040 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12041 ;;
12042 *)
12043 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12044 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12045 ;;
12046 esac
12047 ;;
12048
12049 sysv5* | sco3.2v5* | sco5v6*)
12050 # Note: We can NOT use -z defs as we might desire, because we do not
12051 # link with -lc, and that would cause any symbols used from libc to
12052 # always be unresolved, which means just about no library would
12053 # ever link correctly. If we're not using GNU ld we use -z text
12054 # though, which does catch some bad symbols but isn't as heavy-handed
12055 # as -z defs.
12056 no_undefined_flag_CXX='${wl}-z,text'
12057 allow_undefined_flag_CXX='${wl}-z,nodefs'
12058 archive_cmds_need_lc_CXX=no
12059 hardcode_shlibpath_var_CXX=no
12060 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12061 hardcode_libdir_separator_CXX=':'
12062 link_all_deplibs_CXX=yes
12063 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12064 runpath_var='LD_RUN_PATH'
12065
12066 case $cc_basename in
12067 CC*)
12068 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12069 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12070 ;;
12071 *)
12072 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12073 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12074 ;;
12075 esac
12076 ;;
12077
12078 tandem*)
12079 case $cc_basename in
12080 NCC*)
12081 # NonStop-UX NCC 3.20
12082 # FIXME: insert proper C++ library support
12083 ld_shlibs_CXX=no
12084 ;;
12085 *)
12086 # FIXME: insert proper C++ library support
12087 ld_shlibs_CXX=no
12088 ;;
12089 esac
12090 ;;
12091
12092 vxworks*)
12093 # FIXME: insert proper C++ library support
12094 ld_shlibs_CXX=no
12095 ;;
12096
12097 *)
12098 # FIXME: insert proper C++ library support
12099 ld_shlibs_CXX=no
12100 ;;
12101 esac
12102
7eed349e
PC
12103 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12104echo "${ECHO_T}$ld_shlibs_CXX" >&6
1cf3d07d
SE
12105 test "$ld_shlibs_CXX" = no && can_build_shared=no
12106
12107 GCC_CXX="$GXX"
12108 LD_CXX="$LD"
12109
12110 ## CAVEAT EMPTOR:
12111 ## There is no encapsulation within the following macros, do not change
12112 ## the running order or otherwise move them around unless you know exactly
12113 ## what you are doing...
12114 # Dependencies to place before and after the object being linked:
12115predep_objects_CXX=
12116postdep_objects_CXX=
12117predeps_CXX=
12118postdeps_CXX=
12119compiler_lib_search_path_CXX=
12120
12121cat > conftest.$ac_ext <<_LT_EOF
12122class Foo
12123{
12124public:
12125 Foo (void) { a = 0; }
12126private:
12127 int a;
12128};
12129_LT_EOF
12130
12131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12132 (eval $ac_compile) 2>&5
12133 ac_status=$?
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; then
12136 # Parse the compiler output and extract the necessary
12137 # objects, libraries and library flags.
12138
12139 # Sentinel used to keep track of whether or not we are before
12140 # the conftest object file.
12141 pre_test_object_deps_done=no
12142
12143 # The `*' in the case matches for architectures that use `case' in
12144 # $output_verbose_cmd can trigger glob expansion during the loop
12145 # eval without this substitution.
12146 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12147
12148 for p in `eval $output_verbose_link_cmd`; do
12149 case $p in
12150
12151 -L* | -R* | -l*)
12152 # Some compilers place space between "-{L,R}" and the path.
12153 # Remove the space.
12154 if test $p = "-L" ||
12155 test $p = "-R"; then
12156 prev=$p
12157 continue
12158 else
12159 prev=
12160 fi
12161
12162 if test "$pre_test_object_deps_done" = no; then
12163 case $p in
12164 -L* | -R*)
12165 # Internal compiler library paths should come after those
12166 # provided the user. The postdeps already come after the
12167 # user supplied libs so there is no need to process them.
12168 if test -z "$compiler_lib_search_path_CXX"; then
12169 compiler_lib_search_path_CXX="${prev}${p}"
12170 else
12171 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12172 fi
12173 ;;
12174 # The "-l" case would never come before the object being
12175 # linked, so don't bother handling this case.
12176 esac
12177 else
12178 if test -z "$postdeps_CXX"; then
12179 postdeps_CXX="${prev}${p}"
12180 else
12181 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12182 fi
12183 fi
12184 ;;
12185
12186 *.$objext)
12187 # This assumes that the test object file only shows up
12188 # once in the compiler output.
12189 if test "$p" = "conftest.$objext"; then
12190 pre_test_object_deps_done=yes
12191 continue
12192 fi
12193
12194 if test "$pre_test_object_deps_done" = no; then
12195 if test -z "$predep_objects_CXX"; then
12196 predep_objects_CXX="$p"
12197 else
12198 predep_objects_CXX="$predep_objects_CXX $p"
12199 fi
12200 else
12201 if test -z "$postdep_objects_CXX"; then
12202 postdep_objects_CXX="$p"
12203 else
12204 postdep_objects_CXX="$postdep_objects_CXX $p"
12205 fi
12206 fi
12207 ;;
12208
12209 *) ;; # Ignore the rest.
12210
12211 esac
12212 done
12213
12214 # Clean up.
12215 rm -f a.out a.exe
12216else
12217 echo "libtool.m4: error: problem compiling CXX test program"
12218fi
12219
12220$RM -f confest.$objext
12221
12222# PORTME: override above test on systems where it is broken
12223case $host_os in
12224interix[3-9]*)
12225 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12226 # hack all around it, let's just trust "g++" to DTRT.
12227 predep_objects_CXX=
12228 postdep_objects_CXX=
12229 postdeps_CXX=
12230 ;;
12231
12232linux*)
12233 case `$CC -V 2>&1 | sed 5q` in
12234 *Sun\ C*)
12235 # Sun C++ 5.9
12236
12237 # The more standards-conforming stlport4 library is
12238 # incompatible with the Cstd library. Avoid specifying
12239 # it if it's in CXXFLAGS. Ignore libCrun as
12240 # -library=stlport4 depends on it.
12241 case " $CXX $CXXFLAGS " in
12242 *" -library=stlport4 "*)
12243 solaris_use_stlport4=yes
12244 ;;
12245 esac
12246
12247 if test "$solaris_use_stlport4" != yes; then
12248 postdeps_CXX='-library=Cstd -library=Crun'
12249 fi
12250 ;;
12251 esac
12252 ;;
12253
12254solaris*)
12255 case $cc_basename in
12256 CC*)
12257 # The more standards-conforming stlport4 library is
12258 # incompatible with the Cstd library. Avoid specifying
12259 # it if it's in CXXFLAGS. Ignore libCrun as
12260 # -library=stlport4 depends on it.
12261 case " $CXX $CXXFLAGS " in
12262 *" -library=stlport4 "*)
12263 solaris_use_stlport4=yes
12264 ;;
12265 esac
12266
12267 # Adding this requires a known-good setup of shared libraries for
12268 # Sun compiler versions before 5.6, else PIC objects from an old
12269 # archive will be linked into the output, leading to subtle bugs.
12270 if test "$solaris_use_stlport4" != yes; then
12271 postdeps_CXX='-library=Cstd -library=Crun'
12272 fi
12273 ;;
12274 esac
12275 ;;
12276esac
12277
12278
12279case " $postdeps_CXX " in
12280*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12281esac
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308 lt_prog_compiler_wl_CXX=
12309lt_prog_compiler_pic_CXX=
12310lt_prog_compiler_static_CXX=
12311
7eed349e
PC
12312echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12313echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
1cf3d07d
SE
12314
12315 # C++ specific cases for pic, static, wl, etc.
12316 if test "$GXX" = yes; then
12317 lt_prog_compiler_wl_CXX='-Wl,'
12318 lt_prog_compiler_static_CXX='-static'
12319
12320 case $host_os in
12321 aix*)
12322 # All AIX code is PIC.
12323 if test "$host_cpu" = ia64; then
12324 # AIX 5 now supports IA64 processor
12325 lt_prog_compiler_static_CXX='-Bstatic'
12326 fi
12327 ;;
12328 amigaos*)
12329 if test "$host_cpu" = m68k; then
12330 # FIXME: we need at least 68020 code to build shared libraries, but
12331 # adding the `-m68020' flag to GCC prevents building anything better,
12332 # like `-m68040'.
12333 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12334 fi
12335 ;;
12336 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12337 # PIC is the default for these OSes.
12338 ;;
12339 mingw* | cygwin* | os2* | pw32*)
12340 # This hack is so that the source file can tell whether it is being
12341 # built for inclusion in a dll (and should export symbols for example).
12342 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12343 # (--disable-auto-import) libraries
12344 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12345 ;;
12346 darwin* | rhapsody*)
12347 # PIC is the default on this platform
12348 # Common symbols not allowed in MH_DYLIB files
12349 lt_prog_compiler_pic_CXX='-fno-common'
12350 ;;
12351 *djgpp*)
12352 # DJGPP does not support shared libraries at all
12353 lt_prog_compiler_pic_CXX=
12354 ;;
12355 interix[3-9]*)
12356 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12357 # Instead, we relocate shared libraries at runtime.
12358 ;;
12359 sysv4*MP*)
12360 if test -d /usr/nec; then
12361 lt_prog_compiler_pic_CXX=-Kconform_pic
12362 fi
12363 ;;
12364 hpux*)
12365 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12366 # not for PA HP-UX.
12367 case $host_cpu in
12368 hppa*64*|ia64*)
12369 ;;
12370 *)
12371 lt_prog_compiler_pic_CXX='-fPIC'
12372 ;;
12373 esac
12374 ;;
12375 *qnx* | *nto*)
12376 # QNX uses GNU C++, but need to define -shared option too, otherwise
12377 # it will coredump.
12378 lt_prog_compiler_pic_CXX='-fPIC -shared'
12379 ;;
12380 *)
12381 lt_prog_compiler_pic_CXX='-fPIC'
12382 ;;
12383 esac
12384 else
12385 case $host_os in
716e4bc6 12386 aix[4-9]*)
1cf3d07d
SE
12387 # All AIX code is PIC.
12388 if test "$host_cpu" = ia64; then
12389 # AIX 5 now supports IA64 processor
12390 lt_prog_compiler_static_CXX='-Bstatic'
12391 else
12392 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12393 fi
12394 ;;
12395 chorus*)
12396 case $cc_basename in
12397 cxch68*)
12398 # Green Hills C++ Compiler
12399 # _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"
12400 ;;
12401 esac
12402 ;;
12403 darwin*)
12404 # PIC is the default on this platform
12405 # Common symbols not allowed in MH_DYLIB files
12406 case $cc_basename in
12407 xlc*)
12408 lt_prog_compiler_pic_CXX='-qnocommon'
12409 lt_prog_compiler_wl_CXX='-Wl,'
12410 ;;
12411 esac
12412 ;;
12413 dgux*)
12414 case $cc_basename in
12415 ec++*)
12416 lt_prog_compiler_pic_CXX='-KPIC'
12417 ;;
12418 ghcx*)
12419 # Green Hills C++ Compiler
12420 lt_prog_compiler_pic_CXX='-pic'
12421 ;;
12422 *)
12423 ;;
12424 esac
12425 ;;
12426 freebsd* | dragonfly*)
12427 # FreeBSD uses GNU C++
12428 ;;
12429 hpux9* | hpux10* | hpux11*)
12430 case $cc_basename in
12431 CC*)
12432 lt_prog_compiler_wl_CXX='-Wl,'
12433 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12434 if test "$host_cpu" != ia64; then
12435 lt_prog_compiler_pic_CXX='+Z'
12436 fi
12437 ;;
12438 aCC*)
12439 lt_prog_compiler_wl_CXX='-Wl,'
12440 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12441 case $host_cpu in
12442 hppa*64*|ia64*)
12443 # +Z the default
12444 ;;
12445 *)
12446 lt_prog_compiler_pic_CXX='+Z'
12447 ;;
12448 esac
12449 ;;
12450 *)
12451 ;;
12452 esac
12453 ;;
12454 interix*)
12455 # This is c89, which is MS Visual C++ (no shared libs)
12456 # Anyone wants to do a port?
12457 ;;
12458 irix5* | irix6* | nonstopux*)
12459 case $cc_basename in
12460 CC*)
12461 lt_prog_compiler_wl_CXX='-Wl,'
12462 lt_prog_compiler_static_CXX='-non_shared'
12463 # CC pic flag -KPIC is the default.
12464 ;;
12465 *)
12466 ;;
12467 esac
12468 ;;
12469 linux* | k*bsd*-gnu)
12470 case $cc_basename in
12471 KCC*)
12472 # KAI C++ Compiler
12473 lt_prog_compiler_wl_CXX='--backend -Wl,'
12474 lt_prog_compiler_pic_CXX='-fPIC'
12475 ;;
12476 icpc* | ecpc* )
12477 # Intel C++
12478 lt_prog_compiler_wl_CXX='-Wl,'
12479 lt_prog_compiler_pic_CXX='-KPIC'
12480 lt_prog_compiler_static_CXX='-static'
12481 ;;
12482 pgCC*)
12483 # Portland Group C++ compiler
12484 lt_prog_compiler_wl_CXX='-Wl,'
12485 lt_prog_compiler_pic_CXX='-fpic'
12486 lt_prog_compiler_static_CXX='-Bstatic'
12487 ;;
12488 cxx*)
12489 # Compaq C++
12490 # Make sure the PIC flag is empty. It appears that all Alpha
12491 # Linux and Compaq Tru64 Unix objects are PIC.
12492 lt_prog_compiler_pic_CXX=
12493 lt_prog_compiler_static_CXX='-non_shared'
12494 ;;
12495 *)
12496 case `$CC -V 2>&1 | sed 5q` in
12497 *Sun\ C*)
12498 # Sun C++ 5.9
12499 lt_prog_compiler_pic_CXX='-KPIC'
12500 lt_prog_compiler_static_CXX='-Bstatic'
12501 lt_prog_compiler_wl_CXX='-Qoption ld '
12502 ;;
12503 esac
12504 ;;
12505 esac
12506 ;;
12507 lynxos*)
12508 ;;
12509 m88k*)
12510 ;;
12511 mvs*)
12512 case $cc_basename in
12513 cxx*)
12514 lt_prog_compiler_pic_CXX='-W c,exportall'
12515 ;;
12516 *)
12517 ;;
12518 esac
12519 ;;
12520 netbsd*)
12521 ;;
12522 *qnx* | *nto*)
12523 # QNX uses GNU C++, but need to define -shared option too, otherwise
12524 # it will coredump.
12525 lt_prog_compiler_pic_CXX='-fPIC -shared'
12526 ;;
12527 osf3* | osf4* | osf5*)
12528 case $cc_basename in
12529 KCC*)
12530 lt_prog_compiler_wl_CXX='--backend -Wl,'
12531 ;;
12532 RCC*)
12533 # Rational C++ 2.4.1
12534 lt_prog_compiler_pic_CXX='-pic'
12535 ;;
12536 cxx*)
12537 # Digital/Compaq C++
12538 lt_prog_compiler_wl_CXX='-Wl,'
12539 # Make sure the PIC flag is empty. It appears that all Alpha
12540 # Linux and Compaq Tru64 Unix objects are PIC.
12541 lt_prog_compiler_pic_CXX=
12542 lt_prog_compiler_static_CXX='-non_shared'
12543 ;;
12544 *)
12545 ;;
12546 esac
12547 ;;
12548 psos*)
12549 ;;
12550 solaris*)
12551 case $cc_basename in
12552 CC*)
12553 # Sun C++ 4.2, 5.x and Centerline C++
12554 lt_prog_compiler_pic_CXX='-KPIC'
12555 lt_prog_compiler_static_CXX='-Bstatic'
12556 lt_prog_compiler_wl_CXX='-Qoption ld '
12557 ;;
12558 gcx*)
12559 # Green Hills C++ Compiler
12560 lt_prog_compiler_pic_CXX='-PIC'
12561 ;;
12562 *)
12563 ;;
12564 esac
12565 ;;
12566 sunos4*)
12567 case $cc_basename in
12568 CC*)
12569 # Sun C++ 4.x
12570 lt_prog_compiler_pic_CXX='-pic'
12571 lt_prog_compiler_static_CXX='-Bstatic'
12572 ;;
12573 lcc*)
12574 # Lucid
12575 lt_prog_compiler_pic_CXX='-pic'
12576 ;;
12577 *)
12578 ;;
12579 esac
12580 ;;
12581 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12582 case $cc_basename in
12583 CC*)
12584 lt_prog_compiler_wl_CXX='-Wl,'
12585 lt_prog_compiler_pic_CXX='-KPIC'
12586 lt_prog_compiler_static_CXX='-Bstatic'
12587 ;;
12588 esac
12589 ;;
12590 tandem*)
12591 case $cc_basename in
12592 NCC*)
12593 # NonStop-UX NCC 3.20
12594 lt_prog_compiler_pic_CXX='-KPIC'
12595 ;;
12596 *)
12597 ;;
12598 esac
12599 ;;
12600 vxworks*)
12601 ;;
12602 *)
12603 lt_prog_compiler_can_build_shared_CXX=no
12604 ;;
12605 esac
12606 fi
12607
12608case $host_os in
12609 # For platforms which do not support PIC, -DPIC is meaningless:
12610 *djgpp*)
12611 lt_prog_compiler_pic_CXX=
12612 ;;
12613 *)
12614 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12615 ;;
12616esac
7eed349e
PC
12617echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12618echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
1cf3d07d
SE
12619
12620
12621
12622#
12623# Check to make sure the PIC flag actually works.
12624#
12625if test -n "$lt_prog_compiler_pic_CXX"; then
7eed349e
PC
12626 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12627echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
1cf3d07d
SE
12628if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12629 echo $ECHO_N "(cached) $ECHO_C" >&6
12630else
12631 lt_prog_compiler_pic_works_CXX=no
12632 ac_outfile=conftest.$ac_objext
12633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12634 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12635 # Insert the option either (1) after the last *FLAGS variable, or
12636 # (2) before a word containing "conftest.", or (3) at the end.
12637 # Note that $ac_compile itself does not contain backslashes and begins
12638 # with a dollar sign (not a hyphen), so the echo should work correctly.
12639 # The option is referenced via a variable to avoid confusing sed.
12640 lt_compile=`echo "$ac_compile" | $SED \
12641 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12643 -e 's:$: $lt_compiler_flag:'`
38d24731 12644 (eval echo "\"\$as_me:12644: $lt_compile\"" >&5)
1cf3d07d
SE
12645 (eval "$lt_compile" 2>conftest.err)
12646 ac_status=$?
12647 cat conftest.err >&5
38d24731 12648 echo "$as_me:12648: \$? = $ac_status" >&5
1cf3d07d
SE
12649 if (exit $ac_status) && test -s "$ac_outfile"; then
12650 # The compiler can only warn and ignore the option if not recognized
12651 # So say no if there are warnings other than the usual output.
12652 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12654 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12655 lt_prog_compiler_pic_works_CXX=yes
12656 fi
12657 fi
12658 $RM conftest*
12659
12660fi
7eed349e
PC
12661echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12662echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
1cf3d07d
SE
12663
12664if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12665 case $lt_prog_compiler_pic_CXX in
12666 "" | " "*) ;;
12667 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12668 esac
12669else
12670 lt_prog_compiler_pic_CXX=
12671 lt_prog_compiler_can_build_shared_CXX=no
12672fi
12673
12674fi
12675
12676
12677
12678#
12679# Check to make sure the static flag actually works.
12680#
12681wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
7eed349e
PC
12682echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12683echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
1cf3d07d
SE
12684if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12685 echo $ECHO_N "(cached) $ECHO_C" >&6
12686else
12687 lt_prog_compiler_static_works_CXX=no
12688 save_LDFLAGS="$LDFLAGS"
12689 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12690 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12691 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12692 # The linker can only warn and ignore the option if not recognized
12693 # So say no if there are warnings
12694 if test -s conftest.err; then
12695 # Append any errors to the config.log.
12696 cat conftest.err 1>&5
12697 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12698 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12699 if diff conftest.exp conftest.er2 >/dev/null; then
12700 lt_prog_compiler_static_works_CXX=yes
12701 fi
12702 else
12703 lt_prog_compiler_static_works_CXX=yes
12704 fi
12705 fi
12706 $RM conftest*
12707 LDFLAGS="$save_LDFLAGS"
12708
12709fi
7eed349e
PC
12710echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12711echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
1cf3d07d
SE
12712
12713if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12714 :
12715else
12716 lt_prog_compiler_static_CXX=
12717fi
12718
12719
12720
12721
7eed349e
PC
12722 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12723echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
1cf3d07d
SE
12724if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12726else
12727 lt_cv_prog_compiler_c_o_CXX=no
12728 $RM -r conftest 2>/dev/null
12729 mkdir conftest
12730 cd conftest
12731 mkdir out
12732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12733
12734 lt_compiler_flag="-o out/conftest2.$ac_objext"
12735 # Insert the option either (1) after the last *FLAGS variable, or
12736 # (2) before a word containing "conftest.", or (3) at the end.
12737 # Note that $ac_compile itself does not contain backslashes and begins
12738 # with a dollar sign (not a hyphen), so the echo should work correctly.
12739 lt_compile=`echo "$ac_compile" | $SED \
12740 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12742 -e 's:$: $lt_compiler_flag:'`
38d24731 12743 (eval echo "\"\$as_me:12743: $lt_compile\"" >&5)
1cf3d07d
SE
12744 (eval "$lt_compile" 2>out/conftest.err)
12745 ac_status=$?
12746 cat out/conftest.err >&5
38d24731 12747 echo "$as_me:12747: \$? = $ac_status" >&5
1cf3d07d
SE
12748 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12749 then
12750 # The compiler can only warn and ignore the option if not recognized
12751 # So say no if there are warnings
12752 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12753 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12754 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12755 lt_cv_prog_compiler_c_o_CXX=yes
12756 fi
12757 fi
12758 chmod u+w . 2>&5
12759 $RM conftest*
12760 # SGI C++ compiler will create directory out/ii_files/ for
12761 # template instantiation
12762 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12763 $RM out/* && rmdir out
12764 cd ..
12765 $RM -r conftest
12766 $RM conftest*
12767
12768fi
7eed349e
PC
12769echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12770echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
1cf3d07d
SE
12771
12772
12773
7eed349e
PC
12774 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12775echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
1cf3d07d
SE
12776if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
12778else
12779 lt_cv_prog_compiler_c_o_CXX=no
12780 $RM -r conftest 2>/dev/null
12781 mkdir conftest
12782 cd conftest
12783 mkdir out
12784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12785
12786 lt_compiler_flag="-o out/conftest2.$ac_objext"
12787 # Insert the option either (1) after the last *FLAGS variable, or
12788 # (2) before a word containing "conftest.", or (3) at the end.
12789 # Note that $ac_compile itself does not contain backslashes and begins
12790 # with a dollar sign (not a hyphen), so the echo should work correctly.
12791 lt_compile=`echo "$ac_compile" | $SED \
12792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12794 -e 's:$: $lt_compiler_flag:'`
38d24731 12795 (eval echo "\"\$as_me:12795: $lt_compile\"" >&5)
1cf3d07d
SE
12796 (eval "$lt_compile" 2>out/conftest.err)
12797 ac_status=$?
12798 cat out/conftest.err >&5
38d24731 12799 echo "$as_me:12799: \$? = $ac_status" >&5
1cf3d07d
SE
12800 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12801 then
12802 # The compiler can only warn and ignore the option if not recognized
12803 # So say no if there are warnings
12804 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12805 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12806 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12807 lt_cv_prog_compiler_c_o_CXX=yes
12808 fi
12809 fi
12810 chmod u+w . 2>&5
12811 $RM conftest*
12812 # SGI C++ compiler will create directory out/ii_files/ for
12813 # template instantiation
12814 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12815 $RM out/* && rmdir out
12816 cd ..
12817 $RM -r conftest
12818 $RM conftest*
12819
12820fi
7eed349e
PC
12821echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12822echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
1cf3d07d
SE
12823
12824
12825
12826
12827hard_links="nottested"
12828if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12829 # do not overwrite the value of need_locks provided by the user
7eed349e
PC
12830 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12831echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
1cf3d07d
SE
12832 hard_links=yes
12833 $RM conftest*
12834 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12835 touch conftest.a
12836 ln conftest.a conftest.b 2>&5 || hard_links=no
12837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7eed349e
PC
12838 echo "$as_me:$LINENO: result: $hard_links" >&5
12839echo "${ECHO_T}$hard_links" >&6
1cf3d07d
SE
12840 if test "$hard_links" = no; then
12841 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12842echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12843 need_locks=warn
12844 fi
12845else
12846 need_locks=no
12847fi
12848
12849
12850
7eed349e
PC
12851 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12852echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
1cf3d07d
SE
12853
12854 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12855 case $host_os in
716e4bc6 12856 aix[4-9]*)
1cf3d07d
SE
12857 # If we're using GNU nm, then we don't want the "-C" option.
12858 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12859 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12860 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'
12861 else
12862 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'
12863 fi
12864 ;;
12865 pw32*)
12866 export_symbols_cmds_CXX="$ltdll_cmds"
12867 ;;
12868 cygwin* | mingw*)
12869 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'
12870 ;;
12871 *)
12872 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12873 ;;
12874 esac
12875
7eed349e
PC
12876echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12877echo "${ECHO_T}$ld_shlibs_CXX" >&6
1cf3d07d
SE
12878test "$ld_shlibs_CXX" = no && can_build_shared=no
12879
12880with_gnu_ld_CXX=$with_gnu_ld
12881
12882
12883
12884
12885
12886
12887#
12888# Do we need to explicitly link libc?
12889#
12890case "x$archive_cmds_need_lc_CXX" in
12891x|xyes)
12892 # Assume -lc should be added
12893 archive_cmds_need_lc_CXX=yes
12894
12895 if test "$enable_shared" = yes && test "$GCC" = yes; then
12896 case $archive_cmds_CXX in
12897 *'~'*)
12898 # FIXME: we may have to deal with multi-command sequences.
12899 ;;
12900 '$CC '*)
12901 # Test whether the compiler implicitly links with -lc since on some
12902 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12903 # to ld, don't add -lc before -lgcc.
7eed349e
PC
12904 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12905echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
1cf3d07d
SE
12906 $RM conftest*
12907 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12908
12909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12910 (eval $ac_compile) 2>&5
12911 ac_status=$?
12912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12913 (exit $ac_status); } 2>conftest.err; then
12914 soname=conftest
12915 lib=conftest
12916 libobjs=conftest.$ac_objext
12917 deplibs=
12918 wl=$lt_prog_compiler_wl_CXX
12919 pic_flag=$lt_prog_compiler_pic_CXX
12920 compiler_flags=-v
12921 linker_flags=-v
12922 verstring=
12923 output_objdir=.
12924 libname=conftest
12925 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12926 allow_undefined_flag_CXX=
12927 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
12928 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12929 ac_status=$?
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }
12932 then
12933 archive_cmds_need_lc_CXX=no
12934 else
12935 archive_cmds_need_lc_CXX=yes
12936 fi
12937 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12938 else
12939 cat conftest.err 1>&5
12940 fi
12941 $RM conftest*
7eed349e
PC
12942 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12943echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
1cf3d07d
SE
12944 ;;
12945 esac
12946 fi
12947 ;;
12948esac
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
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
7eed349e
PC
13013 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13014echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
1cf3d07d
SE
13015withGCC=$GXX
13016library_names_spec=
13017libname_spec='lib$name'
13018soname_spec=
13019shrext_cmds=".so"
13020postinstall_cmds=
13021postuninstall_cmds=
13022finish_cmds=
13023finish_eval=
13024shlibpath_var=
13025shlibpath_overrides_runpath=unknown
13026version_type=none
13027dynamic_linker="$host_os ld.so"
13028sys_lib_dlsearch_path_spec="/lib /usr/lib"
13029need_lib_prefix=unknown
13030hardcode_into_libs=no
13031
13032# when you set need_version to no, make sure it does not cause -set_version
13033# flags to be left without arguments
13034need_version=unknown
13035
13036case $host_os in
13037aix3*)
13038 version_type=linux
13039 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13040 shlibpath_var=LIBPATH
13041
13042 # AIX 3 has no versioning support, so we append a major version to the name.
13043 soname_spec='${libname}${release}${shared_ext}$major'
13044 ;;
13045
716e4bc6 13046aix[4-9]*)
1cf3d07d
SE
13047 version_type=linux
13048 need_lib_prefix=no
13049 need_version=no
13050 hardcode_into_libs=yes
13051 if test "$host_cpu" = ia64; then
13052 # AIX 5 supports IA64
13053 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13054 shlibpath_var=LD_LIBRARY_PATH
13055 else
13056 # With GCC up to 2.95.x, collect2 would create an import file
13057 # for dependence libraries. The import file would start with
13058 # the line `#! .'. This would cause the generated library to
13059 # depend on `.', always an invalid library. This was fixed in
13060 # development snapshots of GCC prior to 3.0.
13061 case $host_os in
13062 aix4 | aix4.[01] | aix4.[01].*)
13063 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13064 echo ' yes '
13065 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13066 :
13067 else
13068 can_build_shared=no
13069 fi
13070 ;;
13071 esac
13072 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13073 # soname into executable. Probably we can add versioning support to
13074 # collect2, so additional links can be useful in future.
13075 if test "$aix_use_runtimelinking" = yes; then
13076 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13077 # instead of lib<name>.a to let people know that these are not
13078 # typical AIX shared libraries.
13079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13080 else
13081 # We preserve .a as extension for shared libraries through AIX4.2
13082 # and later when we are not doing run time linking.
13083 library_names_spec='${libname}${release}.a $libname.a'
13084 soname_spec='${libname}${release}${shared_ext}$major'
13085 fi
13086 shlibpath_var=LIBPATH
13087 fi
13088 ;;
13089
13090amigaos*)
13091 if test "$host_cpu" = m68k; then
13092 library_names_spec='$libname.ixlibrary $libname.a'
13093 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13094 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'
13095 else
13096 dynamic_linker=no
13097 fi
13098 ;;
13099
13100beos*)
13101 library_names_spec='${libname}${shared_ext}'
13102 dynamic_linker="$host_os ld.so"
13103 shlibpath_var=LIBRARY_PATH
13104 ;;
13105
13106bsdi[45]*)
13107 version_type=linux
13108 need_version=no
13109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13110 soname_spec='${libname}${release}${shared_ext}$major'
13111 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13112 shlibpath_var=LD_LIBRARY_PATH
13113 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13114 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13115 # the default ld.so.conf also contains /usr/contrib/lib and
13116 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13117 # libtool to hard-code these into programs
13118 ;;
13119
13120cygwin* | mingw* | pw32*)
13121 version_type=windows
13122 shrext_cmds=".dll"
13123 need_version=no
13124 need_lib_prefix=no
13125
13126 case $withGCC,$host_os in
13127 yes,cygwin* | yes,mingw* | yes,pw32*)
13128 library_names_spec='$libname.dll.a'
13129 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13130 postinstall_cmds='base_file=`basename \${file}`~
13131 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13132 dldir=$destdir/`dirname \$dlpath`~
13133 test -d \$dldir || mkdir -p \$dldir~
13134 $install_prog $dir/$dlname \$dldir/$dlname~
13135 chmod a+x \$dldir/$dlname~
13136 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13137 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13138 fi'
13139 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13140 dlpath=$dir/\$dldll~
13141 $RM \$dlpath'
13142 shlibpath_overrides_runpath=yes
13143
13144 case $host_os in
13145 cygwin*)
13146 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13147 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13148 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13149 ;;
13150 mingw*)
13151 # MinGW DLLs use traditional 'lib' prefix
13152 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13153 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13154 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13155 # It is most probably a Windows format PATH printed by
13156 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13157 # path with ; separators, and with drive letters. We can handle the
13158 # drive letters (cygwin fileutils understands them), so leave them,
13159 # especially as we might pass files found there to a mingw objdump,
13160 # which wouldn't understand a cygwinified path. Ahh.
13161 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13162 else
13163 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13164 fi
13165 ;;
13166 pw32*)
13167 # pw32 DLLs use 'pw' prefix rather than 'lib'
13168 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13169 ;;
13170 esac
13171 ;;
13172
13173 *)
13174 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13175 ;;
13176 esac
13177 dynamic_linker='Win32 ld.exe'
13178 # FIXME: first we should search . and the directory the executable is in
13179 shlibpath_var=PATH
13180 ;;
13181
13182darwin* | rhapsody*)
13183 dynamic_linker="$host_os dyld"
13184 version_type=darwin
13185 need_lib_prefix=no
13186 need_version=no
13187 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13188 soname_spec='${libname}${release}${major}$shared_ext'
13189 shlibpath_overrides_runpath=yes
13190 shlibpath_var=DYLD_LIBRARY_PATH
13191 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13192
13193 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13194 ;;
13195
13196dgux*)
13197 version_type=linux
13198 need_lib_prefix=no
13199 need_version=no
13200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13201 soname_spec='${libname}${release}${shared_ext}$major'
13202 shlibpath_var=LD_LIBRARY_PATH
13203 ;;
13204
13205freebsd1*)
13206 dynamic_linker=no
13207 ;;
13208
13209freebsd* | dragonfly*)
13210 # DragonFly does not have aout. When/if they implement a new
13211 # versioning mechanism, adjust this.
13212 if test -x /usr/bin/objformat; then
13213 objformat=`/usr/bin/objformat`
13214 else
13215 case $host_os in
13216 freebsd[123]*) objformat=aout ;;
13217 *) objformat=elf ;;
13218 esac
13219 fi
13220 version_type=freebsd-$objformat
13221 case $version_type in
13222 freebsd-elf*)
13223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13224 need_version=no
13225 need_lib_prefix=no
13226 ;;
13227 freebsd-*)
13228 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13229 need_version=yes
13230 ;;
13231 esac
13232 shlibpath_var=LD_LIBRARY_PATH
13233 case $host_os in
13234 freebsd2*)
13235 shlibpath_overrides_runpath=yes
13236 ;;
13237 freebsd3.[01]* | freebsdelf3.[01]*)
13238 shlibpath_overrides_runpath=yes
13239 hardcode_into_libs=yes
13240 ;;
13241 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13242 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13243 shlibpath_overrides_runpath=no
13244 hardcode_into_libs=yes
13245 ;;
13246 *) # from 4.6 on, and DragonFly
13247 shlibpath_overrides_runpath=yes
13248 hardcode_into_libs=yes
13249 ;;
13250 esac
13251 ;;
13252
13253gnu*)
13254 version_type=linux
13255 need_lib_prefix=no
13256 need_version=no
13257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13258 soname_spec='${libname}${release}${shared_ext}$major'
13259 shlibpath_var=LD_LIBRARY_PATH
13260 hardcode_into_libs=yes
13261 ;;
13262
13263hpux9* | hpux10* | hpux11*)
13264 # Give a soname corresponding to the major version so that dld.sl refuses to
13265 # link against other versions.
13266 version_type=sunos
13267 need_lib_prefix=no
13268 need_version=no
13269 case $host_cpu in
13270 ia64*)
13271 shrext_cmds='.so'
13272 hardcode_into_libs=yes
13273 dynamic_linker="$host_os dld.so"
13274 shlibpath_var=LD_LIBRARY_PATH
13275 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13277 soname_spec='${libname}${release}${shared_ext}$major'
13278 if test "X$HPUX_IA64_MODE" = X32; then
13279 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13280 else
13281 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13282 fi
13283 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13284 ;;
13285 hppa*64*)
13286 shrext_cmds='.sl'
13287 hardcode_into_libs=yes
13288 dynamic_linker="$host_os dld.sl"
13289 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13290 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13292 soname_spec='${libname}${release}${shared_ext}$major'
13293 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13294 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13295 ;;
13296 *)
13297 shrext_cmds='.sl'
13298 dynamic_linker="$host_os dld.sl"
13299 shlibpath_var=SHLIB_PATH
13300 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13302 soname_spec='${libname}${release}${shared_ext}$major'
13303 ;;
13304 esac
13305 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13306 postinstall_cmds='chmod 555 $lib'
13307 ;;
13308
13309interix[3-9]*)
13310 version_type=linux
13311 need_lib_prefix=no
13312 need_version=no
13313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13314 soname_spec='${libname}${release}${shared_ext}$major'
13315 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13316 shlibpath_var=LD_LIBRARY_PATH
13317 shlibpath_overrides_runpath=no
13318 hardcode_into_libs=yes
13319 ;;
13320
13321irix5* | irix6* | nonstopux*)
13322 case $host_os in
13323 nonstopux*) version_type=nonstopux ;;
13324 *)
13325 if test "$lt_cv_prog_gnu_ld" = yes; then
13326 version_type=linux
13327 else
13328 version_type=irix
13329 fi ;;
13330 esac
13331 need_lib_prefix=no
13332 need_version=no
13333 soname_spec='${libname}${release}${shared_ext}$major'
13334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13335 case $host_os in
13336 irix5* | nonstopux*)
13337 libsuff= shlibsuff=
13338 ;;
13339 *)
13340 case $LD in # libtool.m4 will add one of these switches to LD
13341 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13342 libsuff= shlibsuff= libmagic=32-bit;;
13343 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13344 libsuff=32 shlibsuff=N32 libmagic=N32;;
13345 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13346 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13347 *) libsuff= shlibsuff= libmagic=never-match;;
13348 esac
13349 ;;
13350 esac
13351 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13352 shlibpath_overrides_runpath=no
13353 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13354 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13355 hardcode_into_libs=yes
13356 ;;
13357
13358# No shared lib support for Linux oldld, aout, or coff.
13359linux*oldld* | linux*aout* | linux*coff*)
13360 dynamic_linker=no
13361 ;;
13362
13363# This must be Linux ELF.
13364linux* | k*bsd*-gnu)
13365 version_type=linux
13366 need_lib_prefix=no
13367 need_version=no
13368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13369 soname_spec='${libname}${release}${shared_ext}$major'
13370 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13371 shlibpath_var=LD_LIBRARY_PATH
13372 shlibpath_overrides_runpath=no
13373 # Some binutils ld are patched to set DT_RUNPATH
13374 save_LDFLAGS=$LDFLAGS
13375 save_libdir=$libdir
13376 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13377 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13378 if test x$gcc_no_link = xyes; then
13379 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13380echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13381 { (exit 1); exit 1; }; }
ff66d28f 13382fi
1cf3d07d 13383cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
13384/* confdefs.h. */
13385_ACEOF
13386cat confdefs.h >>conftest.$ac_ext
13387cat >>conftest.$ac_ext <<_ACEOF
13388/* end confdefs.h. */
1cf3d07d
SE
13389
13390int
13391main ()
13392{
13393
13394 ;
13395 return 0;
13396}
ff66d28f 13397_ACEOF
1cf3d07d 13398rm -f conftest.$ac_objext conftest$ac_exeext
7eed349e
PC
13399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13400 (eval $ac_link) 2>conftest.er1
ff66d28f
PE
13401 ac_status=$?
13402 grep -v '^ *+' conftest.er1 >conftest.err
13403 rm -f conftest.er1
13404 cat conftest.err >&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7eed349e
PC
13406 (exit $ac_status); } &&
13407 { ac_try='test -z "$ac_cxx_werror_flag"
13408 || test ! -s conftest.err'
13409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410 (eval $ac_try) 2>&5
13411 ac_status=$?
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); }; } &&
13414 { ac_try='test -s conftest$ac_exeext'
13415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13416 (eval $ac_try) 2>&5
13417 ac_status=$?
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); }; }; then
1cf3d07d
SE
13420 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
13421 shlibpath_overrides_runpath=yes
ff66d28f 13422fi
1cf3d07d 13423
ff66d28f
PE
13424else
13425 echo "$as_me: failed program was:" >&5
13426sed 's/^/| /' conftest.$ac_ext >&5
13427
ff66d28f 13428fi
7eed349e 13429rm -f conftest.err conftest.$ac_objext \
1cf3d07d
SE
13430 conftest$ac_exeext conftest.$ac_ext
13431 LDFLAGS=$save_LDFLAGS
13432 libdir=$save_libdir
13433
13434 # This implies no fast_install, which is unacceptable.
13435 # Some rework will be needed to allow for fast_install
13436 # before this can be enabled.
13437 hardcode_into_libs=yes
13438
13439 # Append ld.so.conf contents to the search path
13440 if test -f /etc/ld.so.conf; then
13441 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' ' '`
13442 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13443 fi
13444
13445 # We used to test for /lib/ld.so.1 and disable shared libraries on
13446 # powerpc, because MkLinux only supported shared libraries with the
13447 # GNU dynamic linker. Since this was broken with cross compilers,
13448 # most powerpc-linux boxes support dynamic linking these days and
13449 # people can always --disable-shared, the test was removed, and we
13450 # assume the GNU/Linux dynamic linker is in use.
13451 dynamic_linker='GNU/Linux ld.so'
13452 ;;
ff66d28f 13453
1cf3d07d
SE
13454netbsd*)
13455 version_type=sunos
13456 need_lib_prefix=no
13457 need_version=no
13458 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13461 dynamic_linker='NetBSD (a.out) ld.so'
13462 else
13463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13464 soname_spec='${libname}${release}${shared_ext}$major'
13465 dynamic_linker='NetBSD ld.elf_so'
13466 fi
13467 shlibpath_var=LD_LIBRARY_PATH
13468 shlibpath_overrides_runpath=yes
13469 hardcode_into_libs=yes
13470 ;;
ff66d28f 13471
1cf3d07d
SE
13472newsos6)
13473 version_type=linux
13474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13475 shlibpath_var=LD_LIBRARY_PATH
13476 shlibpath_overrides_runpath=yes
13477 ;;
ff66d28f 13478
1cf3d07d
SE
13479*nto* | *qnx*)
13480 version_type=qnx
13481 need_lib_prefix=no
13482 need_version=no
13483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13484 soname_spec='${libname}${release}${shared_ext}$major'
13485 shlibpath_var=LD_LIBRARY_PATH
13486 shlibpath_overrides_runpath=no
13487 hardcode_into_libs=yes
13488 dynamic_linker='ldqnx.so'
13489 ;;
13490
13491openbsd*)
13492 version_type=sunos
13493 sys_lib_dlsearch_path_spec="/usr/lib"
13494 need_lib_prefix=no
13495 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13496 case $host_os in
13497 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13498 *) need_version=no ;;
13499 esac
13500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13502 shlibpath_var=LD_LIBRARY_PATH
13503 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13504 case $host_os in
13505 openbsd2.[89] | openbsd2.[89].*)
13506 shlibpath_overrides_runpath=no
13507 ;;
13508 *)
13509 shlibpath_overrides_runpath=yes
13510 ;;
13511 esac
ff66d28f 13512 else
1cf3d07d 13513 shlibpath_overrides_runpath=yes
ff66d28f 13514 fi
1cf3d07d 13515 ;;
ff66d28f 13516
1cf3d07d
SE
13517os2*)
13518 libname_spec='$name'
13519 shrext_cmds=".dll"
13520 need_lib_prefix=no
13521 library_names_spec='$libname${shared_ext} $libname.a'
13522 dynamic_linker='OS/2 ld.exe'
13523 shlibpath_var=LIBPATH
13524 ;;
13525
13526osf3* | osf4* | osf5*)
13527 version_type=osf
13528 need_lib_prefix=no
13529 need_version=no
13530 soname_spec='${libname}${release}${shared_ext}$major'
13531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13532 shlibpath_var=LD_LIBRARY_PATH
13533 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13534 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13535 ;;
13536
13537rdos*)
13538 dynamic_linker=no
13539 ;;
13540
13541solaris*)
13542 version_type=linux
13543 need_lib_prefix=no
13544 need_version=no
13545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13546 soname_spec='${libname}${release}${shared_ext}$major'
13547 shlibpath_var=LD_LIBRARY_PATH
13548 shlibpath_overrides_runpath=yes
13549 hardcode_into_libs=yes
13550 # ldd complains unless libraries are executable
13551 postinstall_cmds='chmod +x $lib'
13552 ;;
13553
13554sunos4*)
13555 version_type=sunos
13556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13557 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13558 shlibpath_var=LD_LIBRARY_PATH
13559 shlibpath_overrides_runpath=yes
13560 if test "$with_gnu_ld" = yes; then
13561 need_lib_prefix=no
13562 fi
13563 need_version=yes
13564 ;;
13565
13566sysv4 | sysv4.3*)
13567 version_type=linux
13568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13569 soname_spec='${libname}${release}${shared_ext}$major'
13570 shlibpath_var=LD_LIBRARY_PATH
13571 case $host_vendor in
13572 sni)
13573 shlibpath_overrides_runpath=no
13574 need_lib_prefix=no
13575 runpath_var=LD_RUN_PATH
13576 ;;
13577 siemens)
13578 need_lib_prefix=no
13579 ;;
13580 motorola)
13581 need_lib_prefix=no
13582 need_version=no
13583 shlibpath_overrides_runpath=no
13584 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13585 ;;
13586 esac
13587 ;;
13588
13589sysv4*MP*)
13590 if test -d /usr/nec ;then
13591 version_type=linux
13592 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13593 soname_spec='$libname${shared_ext}.$major'
13594 shlibpath_var=LD_LIBRARY_PATH
13595 fi
13596 ;;
13597
13598sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13599 version_type=freebsd-elf
13600 need_lib_prefix=no
13601 need_version=no
13602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13603 soname_spec='${libname}${release}${shared_ext}$major'
13604 shlibpath_var=LD_LIBRARY_PATH
13605 shlibpath_overrides_runpath=yes
13606 hardcode_into_libs=yes
13607 if test "$with_gnu_ld" = yes; then
13608 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13609 else
13610 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13611 case $host_os in
13612 sco3.2v5*)
13613 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13614 ;;
13615 esac
13616 fi
13617 sys_lib_dlsearch_path_spec='/usr/lib'
13618 ;;
13619
13620tpf*)
13621 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13622 version_type=linux
13623 need_lib_prefix=no
13624 need_version=no
13625 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13626 shlibpath_var=LD_LIBRARY_PATH
13627 shlibpath_overrides_runpath=no
13628 hardcode_into_libs=yes
13629 ;;
13630
13631uts4*)
13632 version_type=linux
13633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13634 soname_spec='${libname}${release}${shared_ext}$major'
13635 shlibpath_var=LD_LIBRARY_PATH
13636 ;;
13637
13638*)
13639 dynamic_linker=no
13640 ;;
13641esac
7eed349e
PC
13642echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13643echo "${ECHO_T}$dynamic_linker" >&6
1cf3d07d
SE
13644test "$dynamic_linker" = no && can_build_shared=no
13645
13646variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13647if test "$GCC" = yes; then
13648 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
ff66d28f 13649fi
ff66d28f 13650
1cf3d07d
SE
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
7eed349e
PC
13686 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13687echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
1cf3d07d
SE
13688hardcode_action_CXX=
13689if test -n "$hardcode_libdir_flag_spec_CXX" ||
13690 test -n "$runpath_var_CXX" ||
13691 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13692
13693 # We can hardcode non-existent directories.
13694 if test "$hardcode_direct_CXX" != no &&
13695 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13696 # have to relink, otherwise we might link with an installed library
13697 # when we should be linking with a yet-to-be-installed one
13698 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13699 test "$hardcode_minus_L_CXX" != no; then
13700 # Linking always hardcodes the temporary library directory.
13701 hardcode_action_CXX=relink
ff66d28f 13702 else
1cf3d07d
SE
13703 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13704 hardcode_action_CXX=immediate
ff66d28f
PE
13705 fi
13706else
1cf3d07d
SE
13707 # We cannot hardcode anything, or else we can only hardcode existing
13708 # directories.
13709 hardcode_action_CXX=unsupported
ff66d28f 13710fi
7eed349e
PC
13711echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13712echo "${ECHO_T}$hardcode_action_CXX" >&6
ff66d28f 13713
1cf3d07d
SE
13714if test "$hardcode_action_CXX" = relink ||
13715 test "$inherit_rpath_CXX" = yes; then
13716 # Fast installation is not supported
13717 enable_fast_install=no
13718elif test "$shlibpath_overrides_runpath" = yes ||
13719 test "$enable_shared" = no; then
13720 # Fast installation is not necessary
13721 enable_fast_install=needless
ff66d28f 13722fi
ff66d28f 13723
1cf3d07d
SE
13724
13725
13726
13727
13728
13729
13730 fi # test -n "$compiler"
13731
13732 CC=$lt_save_CC
13733 LDCXX=$LD
13734 LD=$lt_save_LD
13735 GCC=$lt_save_GCC
13736 with_gnu_ld=$lt_save_with_gnu_ld
13737 lt_cv_path_LDCXX=$lt_cv_path_LD
13738 lt_cv_path_LD=$lt_save_path_LD
13739 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13740 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13741fi # test "$_lt_caught_CXX_error" != yes
ff66d28f
PE
13742
13743ac_ext=c
13744ac_cpp='$CPP $CPPFLAGS'
13745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13747ac_compiler_gnu=$ac_cv_c_compiler_gnu
13748
3df64633
AO
13749
13750
3df64633 13751
3df64633 13752
3df64633 13753
34791641
PE
13754
13755
33590f13 13756
ff66d28f
PE
13757
13758
13759
ff66d28f 13760
7eed349e 13761 ac_config_commands="$ac_config_commands libtool"
1cf3d07d
SE
13762
13763
13764
13765
13766# Only expand once:
13767
13768
13769
13770
13771
5f34ed87
BK
13772# Possibly disable most of the library.
13773## TODO: Consider skipping unncessary tests altogether in this case, rather
13774## than just ignoring the results. Faster /and/ more correct, win win.
4ffe6e87 13775
7eed349e 13776 # Check whether --enable-hosted-libstdcxx or --disable-hosted-libstdcxx was given.
5f34ed87 13777if test "${enable_hosted_libstdcxx+set}" = set; then
7eed349e
PC
13778 enableval="$enable_hosted_libstdcxx"
13779
4ffe6e87 13780else
5f34ed87
BK
13781 case "$host" in
13782 arm*-*-symbianelf*)
13783 enable_hosted_libstdcxx=no
13784 ;;
13785 *)
13786 enable_hosted_libstdcxx=yes
13787 ;;
13788 esac
7eed349e 13789fi;
5f34ed87
BK
13790 if test "$enable_hosted_libstdcxx" = no; then
13791 { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5
13792echo "$as_me: Only freestanding libraries will be built" >&6;}
13793 is_hosted=no
13794 hosted_define=0
13795 enable_abi_check=no
13796 enable_libstdcxx_pch=no
4ffe6e87 13797 else
5f34ed87
BK
13798 is_hosted=yes
13799 hosted_define=1
4ffe6e87 13800 fi
5f34ed87
BK
13801
13802
13803cat >>confdefs.h <<_ACEOF
13804#define _GLIBCXX_HOSTED $hosted_define
13805_ACEOF
13806
13807
13808
0646d8a3 13809# Enable compiler support that doesn't require linking.
5f34ed87 13810
7eed349e
PC
13811 echo "$as_me:$LINENO: checking for exception model to use" >&5
13812echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5f34ed87 13813
7eed349e
PC
13814
13815 ac_ext=cc
5f34ed87
BK
13816ac_cpp='$CXXCPP $CPPFLAGS'
13817ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13818ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13819ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13820
7eed349e 13821 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5f34ed87 13822if test "${enable_sjlj_exceptions+set}" = set; then
7eed349e
PC
13823 enableval="$enable_sjlj_exceptions"
13824
5f34ed87
BK
13825 case "$enableval" in
13826 yes|no|auto) ;;
13827 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5
13828echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;}
13829 { (exit 1); exit 1; }; } ;;
13830 esac
13831
4ffe6e87 13832else
5f34ed87 13833 enable_sjlj_exceptions=auto
7eed349e 13834fi;
5f34ed87
BK
13835
13836
13837 if test $enable_sjlj_exceptions = auto; then
13838 # Botheration. Now we've got to detect the exception model. Link tests
13839 # against libgcc.a are problematic since we've not been given proper -L
13840 # bits for single-tree newlib and libgloss.
13841 #
13842 # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style.
13843 cat > conftest.$ac_ext << EOF
38d24731 13844#line 13844 "configure"
5f34ed87
BK
13845struct S { ~S(); };
13846void bar();
13847void foo()
13848{
13849 S s;
13850 bar();
13851}
13852EOF
13853 old_CXXFLAGS="$CXXFLAGS"
13854 CXXFLAGS=-S
13855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13856 (eval $ac_compile) 2>&5
13857 ac_status=$?
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; then
13860 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
13861 enable_sjlj_exceptions=yes
13862 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
13863 enable_sjlj_exceptions=no
13864 elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
13865 enable_sjlj_exceptions=no
4ffe6e87
BK
13866 fi
13867 fi
5f34ed87
BK
13868 CXXFLAGS="$old_CXXFLAGS"
13869 rm -f conftest*
13870 fi
4ffe6e87 13871
5f34ed87
BK
13872 # This is a tad weird, for hysterical raisins. We have to map
13873 # enable/disable to two different models.
13874 case $enable_sjlj_exceptions in
13875 yes)
13876
13877cat >>confdefs.h <<\_ACEOF
13878#define _GLIBCXX_SJLJ_EXCEPTIONS 1
13879_ACEOF
13880
13881 ac_exception_model_name=sjlj
13882 ;;
13883 no)
13884 ac_exception_model_name="call frame"
13885 ;;
13886 *)
13887 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
13888echo "$as_me: error: unable to detect exception model" >&2;}
4ffe6e87 13889 { (exit 1); exit 1; }; }
5f34ed87
BK
13890 ;;
13891 esac
13892 ac_ext=c
13893ac_cpp='$CPP $CPPFLAGS'
13894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13896ac_compiler_gnu=$ac_cv_c_compiler_gnu
4ffe6e87 13897
7eed349e
PC
13898 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
13899echo "${ECHO_T}$ac_exception_model_name" >&6
4ffe6e87
BK
13900
13901
7eed349e 13902 # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given.
5f34ed87 13903if test "${enable_libstdcxx_pch+set}" = set; then
7eed349e
PC
13904 enableval="$enable_libstdcxx_pch"
13905
5f34ed87
BK
13906 case "$enableval" in
13907 yes|no) ;;
13908 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5
13909echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;}
13910 { (exit 1); exit 1; }; } ;;
13911 esac
4ffe6e87 13912
4ffe6e87 13913else
5f34ed87 13914 enable_libstdcxx_pch=$is_hosted
7eed349e 13915fi;
4ffe6e87 13916
5f34ed87 13917 if test $enable_libstdcxx_pch = yes; then
7eed349e
PC
13918 echo "$as_me:$LINENO: checking for compiler with PCH support" >&5
13919echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6
5f34ed87
BK
13920if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then
13921 echo $ECHO_N "(cached) $ECHO_C" >&6
13922else
13923 ac_save_CXXFLAGS="$CXXFLAGS"
13924 CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
4ffe6e87 13925
7eed349e
PC
13926
13927 ac_ext=cc
5f34ed87
BK
13928ac_cpp='$CXXCPP $CPPFLAGS'
13929ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13930ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13931ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4ffe6e87 13932
5f34ed87
BK
13933 echo '#include <math.h>' > conftest.h
13934 if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
13935 -o conftest.h.gch 1>&5 2>&1 &&
13936 echo '#error "pch failed"' > conftest.h &&
13937 echo '#include "conftest.h"' > conftest.cc &&
13938 $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
13939 then
13940 glibcxx_cv_prog_CXX_pch=yes
13941 else
13942 glibcxx_cv_prog_CXX_pch=no
13943 fi
13944 rm -f conftest*
13945 CXXFLAGS=$ac_save_CXXFLAGS
13946 ac_ext=c
13947ac_cpp='$CPP $CPPFLAGS'
13948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13950ac_compiler_gnu=$ac_cv_c_compiler_gnu
4ffe6e87
BK
13951
13952
5f34ed87 13953fi
7eed349e
PC
13954echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5
13955echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6
5f34ed87
BK
13956 enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
13957 fi
4ffe6e87 13958
7eed349e
PC
13959 echo "$as_me:$LINENO: checking for enabled PCH" >&5
13960echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6
13961 echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5
13962echo "${ECHO_T}$enable_libstdcxx_pch" >&6
4ffe6e87 13963
4ffe6e87 13964
5f34ed87 13965 if test $enable_libstdcxx_pch = yes; then
c2ba9709 13966 glibcxx_PCHFLAGS="-include bits/stdc++.h"
5f34ed87
BK
13967 else
13968 glibcxx_PCHFLAGS=""
13969 fi
4ffe6e87 13970
4ffe6e87
BK
13971
13972
0646d8a3 13973# Enable all the variable C++ runtime options that doesn't require linking.
4ffe6e87 13974
7eed349e
PC
13975 echo "$as_me:$LINENO: checking for underlying I/O to use" >&5
13976echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6
13977 # Check whether --enable-cstdio or --disable-cstdio was given.
5f34ed87 13978if test "${enable_cstdio+set}" = set; then
7eed349e
PC
13979 enableval="$enable_cstdio"
13980
5f34ed87
BK
13981 case "$enableval" in
13982 stdio) ;;
13983 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5
13984echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;}
13985 { (exit 1); exit 1; }; } ;;
13986 esac
4ffe6e87 13987
5f34ed87
BK
13988else
13989 enable_cstdio=stdio
7eed349e 13990fi;
4ffe6e87 13991
4ffe6e87 13992
5f34ed87
BK
13993 # Now that libio has been removed, you can have any color you want as long
13994 # as it's black. This is one big no-op until other packages are added, but
13995 # showing the framework never hurts.
13996 case ${enable_cstdio} in
13997 stdio)
13998 CSTDIO_H=config/io/c_io_stdio.h
13999 BASIC_FILE_H=config/io/basic_file_stdio.h
14000 BASIC_FILE_CC=config/io/basic_file_stdio.cc
7eed349e
PC
14001 echo "$as_me:$LINENO: result: stdio" >&5
14002echo "${ECHO_T}stdio" >&6
5f34ed87
BK
14003 ;;
14004 esac
4ffe6e87 14005
4ffe6e87 14006
4ffe6e87 14007
4ffe6e87 14008
4ffe6e87 14009
4ffe6e87 14010
7eed349e 14011 # Check whether --enable-clocale or --disable-clocale was given.
5f34ed87 14012if test "${enable_clocale+set}" = set; then
7eed349e
PC
14013 enableval="$enable_clocale"
14014
5f34ed87
BK
14015 case "$enableval" in
14016 generic|gnu|ieee_1003.1-2001|yes|no|auto) ;;
14017 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
14018echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
14019 { (exit 1); exit 1; }; } ;;
14020 esac
92eabea2
PE
14021
14022else
5f34ed87 14023 enable_clocale=auto
7eed349e 14024fi;
92eabea2 14025
5780a46b 14026
0258dc3a
BK
14027 # Deal with gettext issues. Default to not using it (=no) until we detect
14028 # support for it later. Let the user turn it off via --e/d, but let that
14029 # default to on for easier handling.
14030 USE_NLS=no
7eed349e 14031 # Check whether --enable-nls or --disable-nls was given.
0258dc3a 14032if test "${enable_nls+set}" = set; then
7eed349e
PC
14033 enableval="$enable_nls"
14034
0258dc3a
BK
14035else
14036 enable_nls=yes
7eed349e 14037fi;
0258dc3a
BK
14038
14039 # Either a known packaage, or "auto"
5f34ed87
BK
14040 if test $enable_clocale = no || test $enable_clocale = yes; then
14041 enable_clocale=auto
14042 fi
5f34ed87 14043 enable_clocale_flag=$enable_clocale
dd75251f 14044
0258dc3a 14045 # Probe for locale model to use if none specified.
ff66d28f
PE
14046 # Default to "generic".
14047 if test $enable_clocale_flag = auto; then
7d3998a4
PE
14048 case ${target_os} in
14049 linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu)
0258dc3a
BK
14050 enable_clocale_flag=gnu
14051 ;;
14052 darwin* | freebsd*)
14053 enable_clocale_flag=darwin
14054 ;;
14055 *)
14056 enable_clocale_flag=generic
14057 ;;
14058 esac
14059 fi
14060
14061 # Sanity check model, and test for special functionality.
14062 if test $enable_clocale_flag = gnu; then
14063 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
14064/* confdefs.h. */
14065_ACEOF
14066cat confdefs.h >>conftest.$ac_ext
14067cat >>conftest.$ac_ext <<_ACEOF
14068/* end confdefs.h. */
56deb74c 14069
0258dc3a
BK
14070 #include <features.h>
14071 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
14072 _GLIBCXX_ok
14073 #endif
ff66d28f
PE
14074
14075_ACEOF
56deb74c 14076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ff66d28f 14077 $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then
56deb74c
BK
14078 enable_clocale_flag=gnu
14079else
56deb74c
BK
14080 enable_clocale_flag=generic
14081fi
14082rm -f conftest*
14083
1451a492 14084
1ba74130
PC
14085 if test $enable_clocale = auto; then
14086 # Test for bugs early in glibc-2.2.x series
14087 if test "$cross_compiling" = yes; then
1451a492
BK
14088 enable_clocale_flag=generic
14089else
ff66d28f 14090 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
14091/* confdefs.h. */
14092_ACEOF
14093cat confdefs.h >>conftest.$ac_ext
14094cat >>conftest.$ac_ext <<_ACEOF
14095/* end confdefs.h. */
14096
1ba74130
PC
14097 #define _GNU_SOURCE 1
14098 #include <locale.h>
14099 #include <string.h>
14100 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
14101 extern __typeof(newlocale) __newlocale;
14102 extern __typeof(duplocale) __duplocale;
14103 extern __typeof(strcoll_l) __strcoll_l;
14104 #endif
14105 int main()
14106 {
14107