]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/configure
mips.c (mips_output_mi_thunk): Only load gp if not LOADGP_ABSOLUTE and not binds_local_p.
[thirdparty/gcc.git] / libstdc++-v3 / configure
CommitLineData
b2dad0e3 1#! /bin/sh
b2dad0e3 2# Guess values for system-dependent variables and create Makefiles.
ec2075e9 3# Generated by GNU Autoconf 2.59 for package-unused version-unused.
b2dad0e3 4#
ec2075e9 5# Copyright (C) 2003 Free Software Foundation, Inc.
b2dad0e3
BK
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
ff66d28f
PE
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
ec2075e9 22DUALCASE=1; export DUALCASE # for MKS sh
ff66d28f
PE
23
24# Support unset when possible.
ec2075e9 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
ff66d28f
PE
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
ec2075e9 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
ff66d28f
PE
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
b2dad0e3 116
ff66d28f
PE
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
ec2075e9 221 test -d ./-p && rmdir ./-p
ff66d28f
PE
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
ec2075e9 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ff66d28f
PE
229
230# Sed expression to map a string onto a valid variable name.
ec2075e9 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ff66d28f
PE
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
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
398exec 6>&1
399
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
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
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>
427#if HAVE_SYS_TYPES_H
428# include <sys/types.h>
429#endif
430#if HAVE_SYS_STAT_H
431# include <sys/stat.h>
432#endif
433#if STDC_HEADERS
434# include <stdlib.h>
435# include <stddef.h>
436#else
437# if HAVE_STDLIB_H
438# include <stdlib.h>
439# endif
440#endif
441#if HAVE_STRING_H
442# if !STDC_HEADERS && HAVE_MEMORY_H
443# include <memory.h>
444# endif
445# include <string.h>
446#endif
447#if HAVE_STRINGS_H
448# include <strings.h>
449#endif
450#if HAVE_INTTYPES_H
451# include <inttypes.h>
452#else
453# if HAVE_STDINT_H
454# include <stdint.h>
455# endif
456#endif
457#if HAVE_UNISTD_H
458# include <unistd.h>
459#endif"
460
1cf3d07d 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 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 CPU_DEFINES_SRCDIR ABI_TWEAKS_SRCDIR OS_INC_SRCDIR glibcxx_prefixdir gxx_include_dir glibcxx_toolexecdir glibcxx_toolexeclibdir GLIBCXX_INCLUDES TOPLEVEL_INCLUDES OPTIMIZE_CXXFLAGS WARN_FLAGS LIBSUPCXX_PICFLAGS LIBOBJS LTLIBOBJS'
ff66d28f 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'
492datadir='${prefix}/share'
493sysconfdir='${prefix}/etc'
494sharedstatedir='${prefix}/com'
495localstatedir='${prefix}/var'
496libdir='${exec_prefix}/lib'
497includedir='${prefix}/include'
498oldincludedir='/usr/include'
499infodir='${prefix}/info'
500mandir='${prefix}/man'
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
507 eval "$ac_prev=\$ac_option"
508 ac_prev=
509 continue
510 fi
511
ff66d28f 512 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
b2dad0e3
BK
513
514 # Accept the important Cygnus configure options, so we can diagnose typos.
515
ff66d28f 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
BK
537
538 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
539 ac_prev=datadir ;;
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.
ff66d28f
PE
547 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
548 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
549 { (exit 1); exit 1; }; }
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.
ff66d28f
PE
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 case $ac_option in
561 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
b2dad0e3
BK
562 *) ac_optarg=yes ;;
563 esac
ff66d28f 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 \
616 | --localstate | --localstat | --localsta | --localst \
617 | --locals | --local | --loca | --loc | --lo)
618 ac_prev=localstatedir ;;
619 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
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.
ff66d28f
PE
738 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
739 { echo "$as_me: error: invalid package name: $ac_package" >&2
740 { (exit 1); exit 1; }; }
b2dad0e3 741 ac_package=`echo $ac_package| sed 's/-/_/g'`
ff66d28f
PE
742 case $ac_option in
743 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
b2dad0e3
BK
744 *) ac_optarg=yes ;;
745 esac
ff66d28f 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.
ff66d28f
PE
751 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
752 { echo "$as_me: error: invalid package name: $ac_package" >&2
753 { (exit 1); exit 1; }; }
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; }; }
786 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
787 eval "$ac_envvar='$ac_optarg'"
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
ff66d28f
PE
807# Be sure to have absolute paths.
808for ac_var in exec_prefix prefix
809do
810 eval ac_val=$`echo $ac_var`
811 case $ac_val in
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
b2dad0e3 817
ff66d28f
PE
818# Be sure to have absolute paths.
819for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ec2075e9 820 localstatedir libdir includedir oldincludedir infodir mandir
b2dad0e3 821do
ff66d28f
PE
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
857 # Try the directory containing this script, then its parent.
ff66d28f
PE
858 ac_confdir=`(dirname "$0") 2>/dev/null ||
859$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ec2075e9
BK
860 X"$0" : 'X\(//\)[^/]' \| \
861 X"$0" : 'X\(//\)$' \| \
862 X"$0" : 'X\(/\)' \| \
863 . : '\(.\)' 2>/dev/null ||
ff66d28f
PE
864echo X"$0" |
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
BK
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
873 fi
874else
875 ac_srcdir_defaulted=no
876fi
877if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
ff66d28f
PE
879 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
880 { (exit 1); exit 1; }; }
b2dad0e3 881 else
ff66d28f
PE
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
ff66d28f
PE
902ac_env_CPP_set=${CPP+set}
903ac_env_CPP_value=$CPP
904ac_cv_env_CPP_set=${CPP+set}
905ac_cv_env_CPP_value=$CPP
464aea98
JM
906ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907ac_env_CPPFLAGS_value=$CPPFLAGS
908ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909ac_cv_env_CPPFLAGS_value=$CPPFLAGS
1cf3d07d
SE
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
464aea98
JM
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
954_ACEOF
955
956 cat <<_ACEOF
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]
974 --datadir=DIR read-only architecture-independent data [PREFIX/share]
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]
981 --infodir=DIR info documentation [PREFIX/info]
982 --mandir=DIR man documentation [PREFIX/man]
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
1cf3d07d
SE
1011 --enable-shared[=PKGS]
1012 build shared libraries [default=yes]
1013 --enable-static[=PKGS]
1014 build static libraries [default=yes]
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]
1025 --enable-cstdio=PACKAGE use target-specific I/O package
1026 [default=stdio]
ff66d28f 1027 --enable-clocale[=MODEL]
517da0ce
MM
1028 use MODEL for target locale package
1029 [default=auto]
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]
517da0ce
MM
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]
8a9b2875
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
517da0ce
MM
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
517da0ce
MM
1056 --enable-symvers=STYLE enables symbol versioning of the shared library
1057 [default=yes]
98e615b4 1058 --enable-visibility enables visibility safe usage [default=yes]
ff66d28f 1059 --enable-version-specific-runtime-libs
517da0ce
MM
1060 Specify that runtime libraries should be installed
1061 in a compiler-specific directory
ff66d28f
PE
1062
1063Optional Packages:
1064 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1065 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1066 --with-target-subdir=SUBDIR
1067 configuring in a subdirectory
517da0ce
MM
1068 --with-cross-host=HOST configuring with a cross compiler
1069 --with-newlib assume newlib as a system C library
1cf3d07d
SE
1070 --with-pic try to use only PIC/non-PIC objects [default=use
1071 both]
1072 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
ff66d28f 1073 --with-gnu-ld assume the C compiler uses GNU ld default=no
4ffe6e87
BK
1074 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1075 --without-libiconv-prefix don't search for libiconv in includedir and libdir
ff66d28f
PE
1076 --with-gxx-include-dir=DIR
1077 installation directory for include files
1078
1079Some influential environment variables:
517da0ce
MM
1080 CC C compiler command
1081 CFLAGS C compiler flags
1082 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1083 nonstandard directory <lib dir>
1084 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1085 headers in a nonstandard directory <include dir>
1086 CXX C++ compiler command
1087 CXXFLAGS C++ compiler flags
517da0ce 1088 CPP C preprocessor
464aea98 1089 CXXCPP C++ preprocessor
ff66d28f
PE
1090
1091Use these variables to override the choices made by `configure' or to help
1092it to find libraries and programs with nonstandard names/locations.
1093
1094_ACEOF
1095fi
1096
1097if test "$ac_init_help" = "recursive"; then
1098 # If there are subdirs, report their specific --help.
1099 ac_popdir=`pwd`
1100 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1101 test -d $ac_dir || continue
1102 ac_builddir=.
1103
1104if test "$ac_dir" != .; then
1105 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1106 # A "../" for each directory in $ac_dir_suffix.
1107 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1108else
1109 ac_dir_suffix= ac_top_builddir=
1110fi
1111
1112case $srcdir in
1113 .) # No --srcdir option. We are building in place.
1114 ac_srcdir=.
1115 if test -z "$ac_top_builddir"; then
1116 ac_top_srcdir=.
1117 else
1118 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1119 fi ;;
1120 [\\/]* | ?:[\\/]* ) # Absolute path.
1121 ac_srcdir=$srcdir$ac_dir_suffix;
1122 ac_top_srcdir=$srcdir ;;
1123 *) # Relative path.
1124 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1125 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1126esac
ec2075e9
BK
1127
1128# Do not use `cd foo && pwd` to compute absolute paths, because
1129# the directories may not exist.
1130case `pwd` in
1131.) ac_abs_builddir="$ac_dir";;
1132*)
1133 case "$ac_dir" in
1134 .) ac_abs_builddir=`pwd`;;
1135 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1136 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1137 esac;;
1138esac
1139case $ac_abs_builddir in
1140.) ac_abs_top_builddir=${ac_top_builddir}.;;
1141*)
1142 case ${ac_top_builddir}. in
1143 .) ac_abs_top_builddir=$ac_abs_builddir;;
1144 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1145 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1146 esac;;
1147esac
1148case $ac_abs_builddir in
1149.) ac_abs_srcdir=$ac_srcdir;;
1150*)
1151 case $ac_srcdir in
1152 .) ac_abs_srcdir=$ac_abs_builddir;;
1153 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1154 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1155 esac;;
1156esac
1157case $ac_abs_builddir in
1158.) ac_abs_top_srcdir=$ac_top_srcdir;;
1159*)
1160 case $ac_top_srcdir in
1161 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1162 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1163 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1164 esac;;
1165esac
ff66d28f
PE
1166
1167 cd $ac_dir
1168 # Check for guested configure; otherwise get Cygnus style configure.
1169 if test -f $ac_srcdir/configure.gnu; then
1170 echo
1171 $SHELL $ac_srcdir/configure.gnu --help=recursive
1172 elif test -f $ac_srcdir/configure; then
1173 echo
1174 $SHELL $ac_srcdir/configure --help=recursive
1175 elif test -f $ac_srcdir/configure.ac ||
ec2075e9 1176 test -f $ac_srcdir/configure.in; then
ff66d28f
PE
1177 echo
1178 $ac_configure --help
1179 else
1180 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1181 fi
5b043f08 1182 cd $ac_popdir
ff66d28f
PE
1183 done
1184fi
1185
1186test -n "$ac_init_help" && exit 0
1187if $ac_init_version; then
1188 cat <<\_ACEOF
fbe057bb 1189package-unused configure version-unused
ec2075e9 1190generated by GNU Autoconf 2.59
ff66d28f 1191
ec2075e9 1192Copyright (C) 2003 Free Software Foundation, Inc.
ff66d28f
PE
1193This configure script is free software; the Free Software Foundation
1194gives unlimited permission to copy, distribute and modify it.
1195_ACEOF
1196 exit 0
b2dad0e3 1197fi
ff66d28f
PE
1198exec 5>config.log
1199cat >&5 <<_ACEOF
1200This file contains any messages produced by compilers while
1201running configure, to aid debugging if configure makes a mistake.
1202
fbe057bb 1203It was created by package-unused $as_me version-unused, which was
ec2075e9 1204generated by GNU Autoconf 2.59. Invocation command line was
ff66d28f
PE
1205
1206 $ $0 $@
1207
1208_ACEOF
1209{
1210cat <<_ASUNAME
1211## --------- ##
1212## Platform. ##
1213## --------- ##
1214
1215hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1216uname -m = `(uname -m) 2>/dev/null || echo unknown`
1217uname -r = `(uname -r) 2>/dev/null || echo unknown`
1218uname -s = `(uname -s) 2>/dev/null || echo unknown`
1219uname -v = `(uname -v) 2>/dev/null || echo unknown`
1220
1221/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1222/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1223
1224/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1225/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1226/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1227hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1228/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1229/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1230/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1231
1232_ASUNAME
1233
1234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1235for as_dir in $PATH
1236do
1237 IFS=$as_save_IFS
1238 test -z "$as_dir" && as_dir=.
1239 echo "PATH: $as_dir"
1240done
1241
1242} >&5
1243
1244cat >&5 <<_ACEOF
1245
1246
1247## ----------- ##
1248## Core tests. ##
1249## ----------- ##
1250
1251_ACEOF
1252
1253
1254# Keep a trace of the command line.
1255# Strip out --no-create and --no-recursion so they do not pile up.
1256# Strip out --silent because we don't want to record it for future runs.
1257# Also quote any args containing shell meta-characters.
1258# Make two passes to allow for proper duplicate-argument suppression.
1259ac_configure_args=
1260ac_configure_args0=
1261ac_configure_args1=
1262ac_sep=
1263ac_must_keep_next=false
1264for ac_pass in 1 2
1265do
1266 for ac_arg
1267 do
1268 case $ac_arg in
1269 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1270 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1271 | -silent | --silent | --silen | --sile | --sil)
1272 continue ;;
1273 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1274 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1275 esac
1276 case $ac_pass in
1277 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1278 2)
1279 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1280 if test $ac_must_keep_next = true; then
ec2075e9 1281 ac_must_keep_next=false # Got value, back to normal.
ff66d28f 1282 else
ec2075e9
BK
1283 case $ac_arg in
1284 *=* | --config-cache | -C | -disable-* | --disable-* \
1285 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1286 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1287 | -with-* | --with-* | -without-* | --without-* | --x)
1288 case "$ac_configure_args0 " in
1289 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1290 esac
1291 ;;
1292 -* ) ac_must_keep_next=true ;;
1293 esac
ff66d28f
PE
1294 fi
1295 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1296 # Get rid of the leading space.
1297 ac_sep=" "
1298 ;;
1299 esac
1300 done
1301done
1302$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1303$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1304
1305# When interrupted or exit'd, cleanup temporary files, and complete
1306# config.log. We remove comments because anyway the quotes in there
1307# would cause problems or look ugly.
1308# WARNING: Be sure not to use single quotes in there, as some shells,
1309# such as our DU 5.0 friend, will then `close' the trap.
1310trap 'exit_status=$?
1311 # Save into config.log some information that might help in debugging.
1312 {
1313 echo
1314
1315 cat <<\_ASBOX
1316## ---------------- ##
1317## Cache variables. ##
1318## ---------------- ##
1319_ASBOX
1320 echo
1321 # The following way of writing the cache mishandles newlines in values,
1322{
1323 (set) 2>&1 |
1324 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1325 *ac_space=\ *)
1326 sed -n \
ec2075e9
BK
1327 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1328 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
ff66d28f
PE
1329 ;;
1330 *)
1331 sed -n \
ec2075e9 1332 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
ff66d28f
PE
1333 ;;
1334 esac;
1335}
1336 echo
1337
1338 cat <<\_ASBOX
1339## ----------------- ##
1340## Output variables. ##
1341## ----------------- ##
1342_ASBOX
1343 echo
1344 for ac_var in $ac_subst_vars
1345 do
1346 eval ac_val=$`echo $ac_var`
1347 echo "$ac_var='"'"'$ac_val'"'"'"
1348 done | sort
1349 echo
1350
1351 if test -n "$ac_subst_files"; then
1352 cat <<\_ASBOX
1353## ------------- ##
1354## Output files. ##
1355## ------------- ##
1356_ASBOX
1357 echo
1358 for ac_var in $ac_subst_files
1359 do
1360 eval ac_val=$`echo $ac_var`
ec2075e9 1361 echo "$ac_var='"'"'$ac_val'"'"'"
ff66d28f
PE
1362 done | sort
1363 echo
1364 fi
1365
1366 if test -s confdefs.h; then
1367 cat <<\_ASBOX
1368## ----------- ##
1369## confdefs.h. ##
1370## ----------- ##
1371_ASBOX
1372 echo
1373 sed "/^$/d" confdefs.h | sort
1374 echo
1375 fi
1376 test "$ac_signal" != 0 &&
1377 echo "$as_me: caught signal $ac_signal"
1378 echo "$as_me: exit $exit_status"
1379 } >&5
ec2075e9 1380 rm -f core *.core &&
ff66d28f
PE
1381 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1382 exit $exit_status
1383 ' 0
1384for ac_signal in 1 2 13 15; do
1385 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1386done
1387ac_signal=0
1388
1389# confdefs.h avoids OS command line length limits that DEFS can exceed.
1390rm -rf conftest* confdefs.h
1391# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1392echo >confdefs.h
1393
1394# Predefined preprocessor variables.
1395
1396cat >>confdefs.h <<_ACEOF
1397#define PACKAGE_NAME "$PACKAGE_NAME"
1398_ACEOF
1399
1400
1401cat >>confdefs.h <<_ACEOF
1402#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1403_ACEOF
1404
1405
1406cat >>confdefs.h <<_ACEOF
1407#define PACKAGE_VERSION "$PACKAGE_VERSION"
1408_ACEOF
1409
b2dad0e3 1410
ff66d28f
PE
1411cat >>confdefs.h <<_ACEOF
1412#define PACKAGE_STRING "$PACKAGE_STRING"
1413_ACEOF
1414
1415
1416cat >>confdefs.h <<_ACEOF
1417#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1418_ACEOF
1419
1420
1421# Let the site file select an alternate cache file if it wants to.
b2dad0e3 1422# Prefer explicitly selected file to automatically selected ones.
a0f27776
PE
1423if test -z "$CONFIG_SITE"; then
1424 if test "x$prefix" != xNONE; then
1425 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1426 else
1427 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
b2dad0e3
BK
1428 fi
1429fi
1430for ac_site_file in $CONFIG_SITE; do
1431 if test -r "$ac_site_file"; then
ff66d28f
PE
1432 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1433echo "$as_me: loading site script $ac_site_file" >&6;}
1434 sed 's/^/| /' "$ac_site_file" >&5
b2dad0e3
BK
1435 . "$ac_site_file"
1436 fi
1437done
1438
1439if test -r "$cache_file"; then
ff66d28f
PE
1440 # Some versions of bash will fail to source /dev/null (special
1441 # files actually), so we avoid doing that.
1442 if test -f "$cache_file"; then
1443 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1444echo "$as_me: loading cache $cache_file" >&6;}
1445 case $cache_file in
1446 [\\/]* | ?:[\\/]* ) . $cache_file;;
1447 *) . ./$cache_file;;
1448 esac
1449 fi
b2dad0e3 1450else
ff66d28f
PE
1451 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1452echo "$as_me: creating cache $cache_file" >&6;}
1453 >$cache_file
1454fi
1455
1456# Check that the precious variables saved in the cache have kept the same
1457# value.
1458ac_cache_corrupted=false
1459for ac_var in `(set) 2>&1 |
ec2075e9 1460 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
ff66d28f
PE
1461 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1462 eval ac_new_set=\$ac_env_${ac_var}_set
1463 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1464 eval ac_new_val="\$ac_env_${ac_var}_value"
1465 case $ac_old_set,$ac_new_set in
1466 set,)
1467 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1468echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1469 ac_cache_corrupted=: ;;
1470 ,set)
1471 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1472echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1473 ac_cache_corrupted=: ;;
1474 ,);;
1475 *)
1476 if test "x$ac_old_val" != "x$ac_new_val"; then
ec2075e9 1477 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
ff66d28f 1478echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ec2075e9 1479 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
ff66d28f 1480echo "$as_me: former value: $ac_old_val" >&2;}
ec2075e9 1481 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
ff66d28f 1482echo "$as_me: current value: $ac_new_val" >&2;}
ec2075e9 1483 ac_cache_corrupted=:
ff66d28f
PE
1484 fi;;
1485 esac
1486 # Pass precious variables to config.status.
1487 if test "$ac_new_set" = set; then
1488 case $ac_new_val in
1489 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1490 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1491 *) ac_arg=$ac_var=$ac_new_val ;;
1492 esac
1493 case " $ac_configure_args " in
1494 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1495 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1496 esac
1497 fi
1498done
1499if $ac_cache_corrupted; then
1500 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1501echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1502 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1503echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1504 { (exit 1); exit 1; }; }
b2dad0e3
BK
1505fi
1506
1507ac_ext=c
b2dad0e3 1508ac_cpp='$CPP $CPPFLAGS'
ff66d28f
PE
1509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1511ac_compiler_gnu=$ac_cv_c_compiler_gnu
b2dad0e3
BK
1512
1513
e2c20fae 1514
6706f116 1515
33590f13
BK
1516
1517
1518
aebb8c22 1519
aebb8c22 1520
ff66d28f
PE
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540 ac_config_headers="$ac_config_headers config.h"
1541
1542
1543# This works around the fact that libtool configuration may change LD
1544# for this particular configuration, but some shells, instead of
1545# keeping the changes in LD private, export them just because LD is
1546# exported. Only used at the end of this file.
1547### am handles this now? ORIGINAL_LD_FOR_MULTILIBS=$LD
1548
1549# For libtool versioning info, format is CURRENT:REVISION:AGE
c3f0f556 1550libtool_VERSION=6:9:0
ff66d28f
PE
1551
1552
1553# Find the rest of the source tree framework.
076e5443 1554# Default to --enable-multilib
ff66d28f
PE
1555# Check whether --enable-multilib or --disable-multilib was given.
1556if test "${enable_multilib+set}" = set; then
1557 enableval="$enable_multilib"
1558 case "$enableval" in
1559 yes) multilib=yes ;;
1560 no) multilib=no ;;
1561 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1562echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1563 { (exit 1); exit 1; }; } ;;
1564 esac
1565else
1566 multilib=yes
1567fi;
1568
1569# We may get other options which we leave undocumented:
1570# --with-target-subdir, --with-multisrctop, --with-multisubdir
1571# See config-ml.in if you want the gory details.
1572
1573if test "$srcdir" = "."; then
1574 if test "$with_target_subdir" != "."; then
1575 multi_basedir="$srcdir/$with_multisrctop../.."
1576 else
1577 multi_basedir="$srcdir/$with_multisrctop.."
1578 fi
1579else
1580 multi_basedir="$srcdir/.."
1581fi
1582
1583
5b043f08
GK
1584# Even if the default multilib is not a cross compilation,
1585# it may be that some of the other multilibs are.
1586if test $cross_compiling = no && test $multilib = yes \
1587 && test "x${with_multisubdir}" != x ; then
1588 cross_compiling=maybe
1589fi
1590
ff66d28f
PE
1591 ac_config_commands="$ac_config_commands default-1"
1592
1593
076e5443
PB
1594# Gets build, host, target, *_vendor, *_cpu, *_os, etc.
1595#
1596# You will slowly go insane if you do not grok the following fact: when
1597# building v3 as part of the compiler, the top-level /target/ becomes the
1598# library's /host/. configure then causes --target to default to --host,
1599# exactly like any other package using autoconf. Therefore, 'target' and
1600# 'host' will always be the same. This makes sense both for native and
1601# cross compilers, just think about it for a little while. :-)
1602#
1603# Also, if v3 is being configured as part of a cross compiler, the top-level
1604# configure script will pass the "real" host as $with_cross_host.
1605#
1606# Do not delete or change the following two lines. For why, see
1607# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
1608ac_aux_dir=
1609for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
ff66d28f
PE
1610 if test -f $ac_dir/install-sh; then
1611 ac_aux_dir=$ac_dir
1612 ac_install_sh="$ac_aux_dir/install-sh -c"
1613 break
1614 elif test -f $ac_dir/install.sh; then
1615 ac_aux_dir=$ac_dir
b2dad0e3
BK
1616 ac_install_sh="$ac_aux_dir/install.sh -c"
1617 break
ff66d28f
PE
1618 elif test -f $ac_dir/shtool; then
1619 ac_aux_dir=$ac_dir
1620 ac_install_sh="$ac_aux_dir/shtool install -c"
1621 break
b2dad0e3
BK
1622 fi
1623done
1624if test -z "$ac_aux_dir"; then
076e5443
PB
1625 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1626echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
ff66d28f 1627 { (exit 1); exit 1; }; }
b2dad0e3 1628fi
ff66d28f
PE
1629ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1630ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1631ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1632
ff66d28f
PE
1633# Make sure we can run config.sub.
1634$ac_config_sub sun4 >/dev/null 2>&1 ||
1635 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1636echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1637 { (exit 1); exit 1; }; }
1638
1639echo "$as_me:$LINENO: checking build system type" >&5
1640echo $ECHO_N "checking build system type... $ECHO_C" >&6
1641if test "${ac_cv_build+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1643else
1644 ac_cv_build_alias=$build_alias
1645test -z "$ac_cv_build_alias" &&
1646 ac_cv_build_alias=`$ac_config_guess`
1647test -z "$ac_cv_build_alias" &&
1648 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1649echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1650 { (exit 1); exit 1; }; }
1651ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1652 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1653echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1654 { (exit 1); exit 1; }; }
1655
1656fi
1657echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1658echo "${ECHO_T}$ac_cv_build" >&6
1659build=$ac_cv_build
1660build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1661build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1662build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1663
1664
1665echo "$as_me:$LINENO: checking host system type" >&5
1666echo $ECHO_N "checking host system type... $ECHO_C" >&6
1667if test "${ac_cv_host+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1669else
1670 ac_cv_host_alias=$host_alias
1671test -z "$ac_cv_host_alias" &&
1672 ac_cv_host_alias=$ac_cv_build_alias
1673ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1674 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1675echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1676 { (exit 1); exit 1; }; }
1677
1678fi
1679echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1680echo "${ECHO_T}$ac_cv_host" >&6
1681host=$ac_cv_host
1682host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1683host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1684host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685
1686
1687echo "$as_me:$LINENO: checking target system type" >&5
1688echo $ECHO_N "checking target system type... $ECHO_C" >&6
1689if test "${ac_cv_target+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1691else
1692 ac_cv_target_alias=$target_alias
1693test "x$ac_cv_target_alias" = "x" &&
1694 ac_cv_target_alias=$ac_cv_host_alias
1695ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1696 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1697echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1698 { (exit 1); exit 1; }; }
1699
1700fi
1701echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1702echo "${ECHO_T}$ac_cv_target" >&6
1703target=$ac_cv_target
1704target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1705target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1706target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
b2dad0e3 1707
b2dad0e3
BK
1708
1709# The aliases save the names the user supplied, while $host etc.
1710# will get canonicalized.
ff66d28f
PE
1711test -n "$target_alias" &&
1712 test "$program_prefix$program_suffix$program_transform_name" = \
1713 NONENONEs,x,x, &&
1714 program_prefix=${target_alias}-
1715target_alias=${target_alias-$host_alias}
1716
1717# Handy for debugging:
1718#AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
1719
0df3f383
PE
1720if test "$build" != "$host"; then
1721 # We are being configured with some form of cross compiler.
1722 GLIBCXX_IS_NATIVE=false
0646b059
GK
1723 case "$host","$target" in
1724 # Darwin crosses can use the host system's libraries and headers,
1725 # because of the fat library support. Of course, it must be the
1726 # same version of Darwin on both sides. Allow the user to
1727 # just say --target=foo-darwin without a version number to mean
1728 # "the version on this system".
1729 *-*-darwin*,*-*-darwin*)
1730 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
1731 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
1732 if test $hostos = $targetos -o $targetos = darwin ; then
1733 GLIBCXX_IS_NATIVE=true
1734 fi
1735 ;;
1736
1737 *)
3a24bf5d 1738
0646b059
GK
1739 ;;
1740 esac
0df3f383
PE
1741else
1742 GLIBCXX_IS_NATIVE=true
1743fi
1744
ff66d28f
PE
1745# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
1746# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
1747# 1.x: minimum required version
1748# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
1749# of other PACKAGE_* variables will, however, and there's nothing
fbe057bb 1750# we can do about that; they come from AC_INIT).
ff66d28f
PE
1751# foreign: we don't follow the normal rules for GNU packages (no COPYING
1752# file in the top srcdir, etc, etc), so stop complaining.
1753# no-dependencies: turns off auto dependency generation (just for now)
2d52e9e3
PE
1754# -Wall: turns on all automake warnings...
1755# -Wno-portability: ...except this one, since GNU make is now required.
a60945f8 1756am__api_version="1.9"
ff66d28f
PE
1757# Find a good install program. We prefer a C program (faster),
1758# so one script is as good as another. But avoid the broken or
1759# incompatible versions:
1760# SysV /etc/install, /usr/sbin/install
1761# SunOS /usr/etc/install
1762# IRIX /sbin/install
1763# AIX /bin/install
1764# AmigaOS /C/install, which installs bootblocks on floppy discs
1765# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1766# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1767# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ec2075e9 1768# OS/2's system install, which has a completely different semantic
ff66d28f
PE
1769# ./install, which can be erroneously created by make from ./install.sh.
1770echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1771echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1772if test -z "$INSTALL"; then
1773if test "${ac_cv_path_install+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1775else
1776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1777for as_dir in $PATH
1778do
1779 IFS=$as_save_IFS
1780 test -z "$as_dir" && as_dir=.
1781 # Account for people who put trailing slashes in PATH elements.
1782case $as_dir/ in
1783 ./ | .// | /cC/* | \
1784 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ec2075e9 1785 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
ff66d28f
PE
1786 /usr/ucb/* ) ;;
1787 *)
1788 # OSF1 and SCO ODT 3.0 have their own names for install.
1789 # Don't use installbsd from OSF since it installs stuff as root
1790 # by default.
1791 for ac_prog in ginstall scoinst install; do
1792 for ac_exec_ext in '' $ac_executable_extensions; do
ec2075e9
BK
1793 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1794 if test $ac_prog = install &&
1795 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1796 # AIX install. It has an incompatible calling convention.
1797 :
1798 elif test $ac_prog = install &&
1799 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1800 # program-specific install script used by HP pwplus--don't use.
1801 :
1802 else
1803 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1804 break 3
1805 fi
1806 fi
ff66d28f
PE
1807 done
1808 done
1809 ;;
b2dad0e3 1810esac
ff66d28f 1811done
b2dad0e3
BK
1812
1813
b2dad0e3 1814fi
ff66d28f
PE
1815 if test "${ac_cv_path_install+set}" = set; then
1816 INSTALL=$ac_cv_path_install
1817 else
1818 # As a last resort, use the slow shell script. We don't cache a
1819 # path for INSTALL within a source directory, because that will
1820 # break other packages using the cache if that directory is
1821 # removed, or if the path is relative.
1822 INSTALL=$ac_install_sh
1823 fi
1824fi
1825echo "$as_me:$LINENO: result: $INSTALL" >&5
1826echo "${ECHO_T}$INSTALL" >&6
b2dad0e3 1827
ff66d28f
PE
1828# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1829# It thinks the first close brace ends the variable substitution.
1830test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
b2dad0e3 1831
ff66d28f 1832test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
b2dad0e3 1833
ff66d28f 1834test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
b2dad0e3 1835
ff66d28f
PE
1836echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1837echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1838# Just in case
1839sleep 1
1840echo timestamp > conftest.file
1841# Do `set' in a subshell so we don't clobber the current shell's
1842# arguments. Must try -L first in case configure is actually a
1843# symlink; some systems play weird games with the mod time of symlinks
1844# (eg FreeBSD returns the mod time of the symlink's containing
1845# directory).
1846if (
1847 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1848 if test "$*" = "X"; then
1849 # -L didn't work.
1850 set X `ls -t $srcdir/configure conftest.file`
1851 fi
1852 rm -f conftest.file
1853 if test "$*" != "X $srcdir/configure conftest.file" \
1854 && test "$*" != "X conftest.file $srcdir/configure"; then
b2dad0e3 1855
ff66d28f
PE
1856 # If neither matched, then we have a broken ls. This can happen
1857 # if, for instance, CONFIG_SHELL is bash and it inherits a
1858 # broken ls alias from the environment. This has actually
1859 # happened. Such a system could not be considered "sane".
1860 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1861alias in your environment" >&5
1862echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1863alias in your environment" >&2;}
1864 { (exit 1); exit 1; }; }
1865 fi
b2dad0e3 1866
ff66d28f
PE
1867 test "$2" = conftest.file
1868 )
1869then
1870 # Ok.
1871 :
33590f13 1872else
ff66d28f
PE
1873 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1874Check your system clock" >&5
1875echo "$as_me: error: newly created file is older than distributed files!
1876Check your system clock" >&2;}
1877 { (exit 1); exit 1; }; }
33590f13 1878fi
ff66d28f
PE
1879echo "$as_me:$LINENO: result: yes" >&5
1880echo "${ECHO_T}yes" >&6
1881test "$program_prefix" != NONE &&
1882 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1883# Use a double $ so make ignores it.
1884test "$program_suffix" != NONE &&
1885 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1886# Double any \ or $. echo might interpret backslashes.
1887# By default was `s,x,x', remove it if useless.
1888cat <<\_ACEOF >conftest.sed
1889s/[\\$]/&&/g;s/;s,x,x,$//
1890_ACEOF
1891program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1892rm conftest.sed
b2dad0e3 1893
ff66d28f
PE
1894# expand $ac_aux_dir to an absolute path
1895am_aux_dir=`cd $ac_aux_dir && pwd`
33590f13 1896
ff66d28f
PE
1897test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1898# Use eval to expand $SHELL
1899if eval "$MISSING --run true"; then
1900 am_missing_run="$MISSING --run "
b2dad0e3 1901else
ff66d28f
PE
1902 am_missing_run=
1903 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1904echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
33590f13
BK
1905fi
1906
7eaf73d7 1907if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
a60945f8
PC
1908 # We used to keeping the `.' as first argument, in order to
1909 # allow $(mkdir_p) to be used without argument. As in
7eaf73d7 1910 # $(mkdir_p) $(somedir)
a60945f8
PC
1911 # where $(somedir) is conditionally defined. However this is wrong
1912 # for two reasons:
1913 # 1. if the package is installed by a user who cannot write `.'
1914 # make install will fail,
1915 # 2. the above comment should most certainly read
1916 # $(mkdir_p) $(DESTDIR)$(somedir)
1917 # so it does not work when $(somedir) is undefined and
1918 # $(DESTDIR) is not.
1919 # To support the latter case, we have to write
1920 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1921 # so the `.' trick is pointless.
1922 mkdir_p='mkdir -p --'
7eaf73d7
KC
1923else
1924 # On NextStep and OpenStep, the `mkdir' command does not
1925 # recognize any option. It will interpret all options as
1926 # directories to create, and then abort because `.' already
1927 # exists.
1928 for d in ./-p ./--version;
1929 do
1930 test -d $d && rmdir $d
1931 done
1932 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1933 if test -f "$ac_aux_dir/mkinstalldirs"; then
1934 mkdir_p='$(mkinstalldirs)'
1935 else
1936 mkdir_p='$(install_sh) -d'
1937 fi
1938fi
1939
ff66d28f 1940for ac_prog in gawk mawk nawk awk
c98b201b 1941do
ff66d28f 1942 # Extract the first word of "$ac_prog", so it can be a program name with args.
c98b201b 1943set dummy $ac_prog; ac_word=$2
ff66d28f
PE
1944echo "$as_me:$LINENO: checking for $ac_word" >&5
1945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1946if test "${ac_cv_prog_AWK+set}" = set; then
1947 echo $ECHO_N "(cached) $ECHO_C" >&6
c98b201b
PE
1948else
1949 if test -n "$AWK"; then
1950 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1951else
ff66d28f
PE
1952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1953for as_dir in $PATH
1954do
1955 IFS=$as_save_IFS
1956 test -z "$as_dir" && as_dir=.
1957 for ac_exec_ext in '' $ac_executable_extensions; do
1958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1959 ac_cv_prog_AWK="$ac_prog"
1960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1961 break 2
1962 fi
1963done
1964done
1965
c98b201b
PE
1966fi
1967fi
ff66d28f 1968AWK=$ac_cv_prog_AWK
c98b201b 1969if test -n "$AWK"; then
ff66d28f
PE
1970 echo "$as_me:$LINENO: result: $AWK" >&5
1971echo "${ECHO_T}$AWK" >&6
c98b201b 1972else
ff66d28f
PE
1973 echo "$as_me:$LINENO: result: no" >&5
1974echo "${ECHO_T}no" >&6
c98b201b
PE
1975fi
1976
ff66d28f 1977 test -n "$AWK" && break
c98b201b
PE
1978done
1979
ff66d28f
PE
1980echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1981echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ec2075e9 1982set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
ff66d28f
PE
1983if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1985else
1986 cat >conftest.make <<\_ACEOF
1987all:
1988 @echo 'ac_maketemp="$(MAKE)"'
1989_ACEOF
1990# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1991eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1992if test -n "$ac_maketemp"; then
1993 eval ac_cv_prog_make_${ac_make}_set=yes
33590f13 1994else
ff66d28f 1995 eval ac_cv_prog_make_${ac_make}_set=no
33590f13 1996fi
ff66d28f 1997rm -f conftest.make
33590f13 1998fi
ff66d28f
PE
1999if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2000 echo "$as_me:$LINENO: result: yes" >&5
2001echo "${ECHO_T}yes" >&6
2002 SET_MAKE=
33590f13 2003else
ff66d28f
PE
2004 echo "$as_me:$LINENO: result: no" >&5
2005echo "${ECHO_T}no" >&6
2006 SET_MAKE="MAKE=${MAKE-make}"
33590f13
BK
2007fi
2008
ff66d28f
PE
2009rm -rf .tst 2>/dev/null
2010mkdir .tst 2>/dev/null
2011if test -d .tst; then
2012 am__leading_dot=.
2013else
2014 am__leading_dot=_
2015fi
2016rmdir .tst 2>/dev/null
33590f13 2017
7eaf73d7 2018# test to see if srcdir already configured
ff66d28f
PE
2019if test "`cd $srcdir && pwd`" != "`pwd`" &&
2020 test -f $srcdir/config.status; then
2021 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2022echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2023 { (exit 1); exit 1; }; }
33590f13
BK
2024fi
2025
ff66d28f
PE
2026# test whether we have cygpath
2027if test -z "$CYGPATH_W"; then
2028 if (cygpath --version) >/dev/null 2>/dev/null; then
2029 CYGPATH_W='cygpath -w'
2030 else
2031 CYGPATH_W=echo
2032 fi
33590f13
BK
2033fi
2034
2035
ff66d28f 2036# Define the identity of the package.
fbe057bb 2037 PACKAGE='libstdc++'
ff66d28f 2038 VERSION='version-unused'
b731048b
BK
2039
2040
ff66d28f 2041# Some tools Automake needs.
33590f13 2042
ff66d28f 2043ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
33590f13 2044
33590f13 2045
ff66d28f 2046AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
33590f13 2047
ff66d28f
PE
2048
2049AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2050
2051
2052AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2053
2054
2055MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2056
ff66d28f
PE
2057install_sh=${install_sh-"$am_aux_dir/install-sh"}
2058
2059# Installed binaries are usually stripped using `strip' when the user
2060# run `make install-strip'. However `strip' might not be the right
2061# tool to use in cross-compilation environments, therefore Automake
2062# will honor the `STRIP' environment variable to overrule this program.
2063if test "$cross_compiling" != no; then
2064 if test -n "$ac_tool_prefix"; then
2065 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2066set dummy ${ac_tool_prefix}strip; ac_word=$2
2067echo "$as_me:$LINENO: checking for $ac_word" >&5
2068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2069if test "${ac_cv_prog_STRIP+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
33590f13 2071else
ff66d28f
PE
2072 if test -n "$STRIP"; then
2073 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
33590f13 2074else
ff66d28f
PE
2075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076for as_dir in $PATH
2077do
2078 IFS=$as_save_IFS
2079 test -z "$as_dir" && as_dir=.
2080 for ac_exec_ext in '' $ac_executable_extensions; do
2081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2082 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084 break 2
2085 fi
2086done
2087done
2088
33590f13
BK
2089fi
2090fi
ff66d28f
PE
2091STRIP=$ac_cv_prog_STRIP
2092if test -n "$STRIP"; then
2093 echo "$as_me:$LINENO: result: $STRIP" >&5
2094echo "${ECHO_T}$STRIP" >&6
33590f13 2095else
ff66d28f
PE
2096 echo "$as_me:$LINENO: result: no" >&5
2097echo "${ECHO_T}no" >&6
33590f13
BK
2098fi
2099
ff66d28f
PE
2100fi
2101if test -z "$ac_cv_prog_STRIP"; then
2102 ac_ct_STRIP=$STRIP
2103 # Extract the first word of "strip", so it can be a program name with args.
2104set dummy strip; ac_word=$2
2105echo "$as_me:$LINENO: checking for $ac_word" >&5
2106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2107if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
33590f13 2109else
ff66d28f
PE
2110 if test -n "$ac_ct_STRIP"; then
2111 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
33590f13 2112else
ff66d28f
PE
2113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114for as_dir in $PATH
2115do
2116 IFS=$as_save_IFS
2117 test -z "$as_dir" && as_dir=.
2118 for ac_exec_ext in '' $ac_executable_extensions; do
2119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2120 ac_cv_prog_ac_ct_STRIP="strip"
2121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2122 break 2
b2dad0e3 2123 fi
ff66d28f
PE
2124done
2125done
2126
2127 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
b2dad0e3
BK
2128fi
2129fi
ff66d28f
PE
2130ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2131if test -n "$ac_ct_STRIP"; then
2132 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2133echo "${ECHO_T}$ac_ct_STRIP" >&6
b2dad0e3 2134else
ff66d28f
PE
2135 echo "$as_me:$LINENO: result: no" >&5
2136echo "${ECHO_T}no" >&6
b2dad0e3
BK
2137fi
2138
ff66d28f 2139 STRIP=$ac_ct_STRIP
b2dad0e3 2140else
ff66d28f 2141 STRIP="$ac_cv_prog_STRIP"
b2dad0e3 2142fi
ff66d28f 2143
b2dad0e3 2144fi
ff66d28f 2145INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
b2dad0e3 2146
ff66d28f
PE
2147# We need awk for the "check" target. The system "awk" is bad on
2148# some platforms.
a60945f8
PC
2149# Always define AMTAR for backward compatibility.
2150
2151AMTAR=${AMTAR-"${am_missing_run}tar"}
2152
2153am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2154
2155
b2dad0e3 2156
b2dad0e3 2157
b2dad0e3 2158
ff66d28f 2159
3a24bf5d
KC
2160
2161
2162
2163
ff66d28f
PE
2164# Runs configure.host, finds CC, CXX, and assorted other critical bits. Sets
2165# up critical shell variables.
2166
464aea98
JM
2167ac_ext=c
2168ac_cpp='$CPP $CPPFLAGS'
2169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2171ac_compiler_gnu=$ac_cv_c_compiler_gnu
2172echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2173echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2174# On Suns, sometimes $CPP names a directory.
2175if test -n "$CPP" && test -d "$CPP"; then
2176 CPP=
2177fi
2178if test -z "$CPP"; then
2179 if test "${ac_cv_prog_CPP+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2181else
2182 # Double quotes because CPP needs to be expanded
2183 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2184 do
2185 ac_preproc_ok=false
2186for ac_c_preproc_warn_flag in '' yes
2187do
2188 # Use a header file that comes with gcc, so configuring glibc
2189 # with a fresh cross-compiler works.
2190 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2191 # <limits.h> exists even on freestanding compilers.
2192 # On the NeXT, cc -E runs the code through the compiler's parser,
2193 # not just through cpp. "Syntax error" is here to catch this case.
2194 cat >conftest.$ac_ext <<_ACEOF
2195/* confdefs.h. */
2196_ACEOF
2197cat confdefs.h >>conftest.$ac_ext
2198cat >>conftest.$ac_ext <<_ACEOF
2199/* end confdefs.h. */
2200#ifdef __STDC__
2201# include <limits.h>
2202#else
2203# include <assert.h>
2204#endif
2205 Syntax error
2206_ACEOF
2207if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2209 ac_status=$?
2210 grep -v '^ *+' conftest.er1 >conftest.err
2211 rm -f conftest.er1
2212 cat conftest.err >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); } >/dev/null; then
2215 if test -s conftest.err; then
2216 ac_cpp_err=$ac_c_preproc_warn_flag
2217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2218 else
2219 ac_cpp_err=
2220 fi
2221else
2222 ac_cpp_err=yes
2223fi
2224if test -z "$ac_cpp_err"; then
2225 :
2226else
2227 echo "$as_me: failed program was:" >&5
2228sed 's/^/| /' conftest.$ac_ext >&5
2229
2230 # Broken: fails on valid input.
2231continue
2232fi
2233rm -f conftest.err conftest.$ac_ext
2234
2235 # OK, works on sane cases. Now check whether non-existent headers
2236 # can be detected and how.
2237 cat >conftest.$ac_ext <<_ACEOF
2238/* confdefs.h. */
2239_ACEOF
2240cat confdefs.h >>conftest.$ac_ext
2241cat >>conftest.$ac_ext <<_ACEOF
2242/* end confdefs.h. */
2243#include <ac_nonexistent.h>
2244_ACEOF
2245if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2247 ac_status=$?
2248 grep -v '^ *+' conftest.er1 >conftest.err
2249 rm -f conftest.er1
2250 cat conftest.err >&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); } >/dev/null; then
2253 if test -s conftest.err; then
2254 ac_cpp_err=$ac_c_preproc_warn_flag
2255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2256 else
2257 ac_cpp_err=
2258 fi
2259else
2260 ac_cpp_err=yes
2261fi
2262if test -z "$ac_cpp_err"; then
2263 # Broken: success on invalid input.
2264continue
2265else
2266 echo "$as_me: failed program was:" >&5
2267sed 's/^/| /' conftest.$ac_ext >&5
2268
2269 # Passes both tests.
2270ac_preproc_ok=:
2271break
2272fi
2273rm -f conftest.err conftest.$ac_ext
2274
2275done
2276# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2277rm -f conftest.err conftest.$ac_ext
2278if $ac_preproc_ok; then
2279 break
2280fi
2281
2282 done
2283 ac_cv_prog_CPP=$CPP
2284
2285fi
2286 CPP=$ac_cv_prog_CPP
2287else
2288 ac_cv_prog_CPP=$CPP
2289fi
2290echo "$as_me:$LINENO: result: $CPP" >&5
2291echo "${ECHO_T}$CPP" >&6
2292ac_preproc_ok=false
2293for ac_c_preproc_warn_flag in '' yes
2294do
2295 # Use a header file that comes with gcc, so configuring glibc
2296 # with a fresh cross-compiler works.
2297 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2298 # <limits.h> exists even on freestanding compilers.
2299 # On the NeXT, cc -E runs the code through the compiler's parser,
2300 # not just through cpp. "Syntax error" is here to catch this case.
2301 cat >conftest.$ac_ext <<_ACEOF
2302/* confdefs.h. */
2303_ACEOF
2304cat confdefs.h >>conftest.$ac_ext
2305cat >>conftest.$ac_ext <<_ACEOF
2306/* end confdefs.h. */
2307#ifdef __STDC__
2308# include <limits.h>
2309#else
2310# include <assert.h>
2311#endif
2312 Syntax error
2313_ACEOF
2314if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2316 ac_status=$?
2317 grep -v '^ *+' conftest.er1 >conftest.err
2318 rm -f conftest.er1
2319 cat conftest.err >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); } >/dev/null; then
2322 if test -s conftest.err; then
2323 ac_cpp_err=$ac_c_preproc_warn_flag
2324 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2325 else
2326 ac_cpp_err=
2327 fi
2328else
2329 ac_cpp_err=yes
2330fi
2331if test -z "$ac_cpp_err"; then
2332 :
2333else
2334 echo "$as_me: failed program was:" >&5
2335sed 's/^/| /' conftest.$ac_ext >&5
2336
2337 # Broken: fails on valid input.
2338continue
2339fi
2340rm -f conftest.err conftest.$ac_ext
2341
2342 # OK, works on sane cases. Now check whether non-existent headers
2343 # can be detected and how.
2344 cat >conftest.$ac_ext <<_ACEOF
2345/* confdefs.h. */
2346_ACEOF
2347cat confdefs.h >>conftest.$ac_ext
2348cat >>conftest.$ac_ext <<_ACEOF
2349/* end confdefs.h. */
2350#include <ac_nonexistent.h>
2351_ACEOF
2352if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2354 ac_status=$?
2355 grep -v '^ *+' conftest.er1 >conftest.err
2356 rm -f conftest.er1
2357 cat conftest.err >&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); } >/dev/null; then
2360 if test -s conftest.err; then
2361 ac_cpp_err=$ac_c_preproc_warn_flag
2362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2363 else
2364 ac_cpp_err=
2365 fi
2366else
2367 ac_cpp_err=yes
2368fi
2369if test -z "$ac_cpp_err"; then
2370 # Broken: success on invalid input.
2371continue
2372else
2373 echo "$as_me: failed program was:" >&5
2374sed 's/^/| /' conftest.$ac_ext >&5
2375
2376 # Passes both tests.
2377ac_preproc_ok=:
2378break
2379fi
2380rm -f conftest.err conftest.$ac_ext
2381
2382done
2383# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2384rm -f conftest.err conftest.$ac_ext
2385if $ac_preproc_ok; then
2386 :
2387else
2388 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2389See \`config.log' for more details." >&5
2390echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2391See \`config.log' for more details." >&2;}
2392 { (exit 1); exit 1; }; }
2393fi
2394
2395ac_ext=c
2396ac_cpp='$CPP $CPPFLAGS'
2397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2399ac_compiler_gnu=$ac_cv_c_compiler_gnu
2400
2401
2402echo "$as_me:$LINENO: checking for egrep" >&5
2403echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2404if test "${ac_cv_prog_egrep+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2406else
2407 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2408 then ac_cv_prog_egrep='grep -E'
2409 else ac_cv_prog_egrep='egrep'
2410 fi
2411fi
2412echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2413echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2414 EGREP=$ac_cv_prog_egrep
2415
2416
2417
82ba99d5
PE
2418 # Keep these sync'd with the list in Makefile.am. The first provides an
2419 # expandable list at autoconf time; the second provides an expandable list
2420 # (i.e., shell variable) at configure time.
2421
2422 SUBDIRS='include libmath libsupc++ src po testsuite'
2423
ff66d28f
PE
2424 # These need to be absolute paths, yet at the same time need to
2425 # canonicalize only relative paths, because then amd will not unmount
2426 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
2427 glibcxx_builddir=`${PWDCMD-pwd}`
2428 case $srcdir in
2429 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
2430 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
2431 esac
2432 toplevel_srcdir=${glibcxx_srcdir}/..
2433
2434
2435
2436
2437 # We use these options to decide which functions to include. They are
2438 # set from the top level.
2439
2440# Check whether --with-target-subdir or --without-target-subdir was given.
2441if test "${with_target_subdir+set}" = set; then
2442 withval="$with_target_subdir"
2443
2444fi;
2445
2446
2447# Check whether --with-cross-host or --without-cross-host was given.
2448if test "${with_cross_host+set}" = set; then
2449 withval="$with_cross_host"
2450
2451fi;
2452
2453
2454# Check whether --with-newlib or --without-newlib was given.
2455if test "${with_newlib+set}" = set; then
2456 withval="$with_newlib"
2457
2458fi;
2459
f6dda651
PE
2460 # We're almost certainly being configured before anything else which uses
2461 # C++, so all of our AC_PROG_* discoveries will be cached. It's vital that
2462 # we not cache the value of CXX that we "discover" here, because it's set
2463 # to something unique for us and libjava. Other target libraries need to
2464 # find CXX for themselves. We yank the rug out from under the normal AC_*
2465 # process by sneakily renaming the cache variable. This also lets us debug
2466 # the value of "our" CXX in postmortems.
2467 #
2468 # We must also force CXX to /not/ be a precious variable, otherwise the
2469 # wrong (non-multilib-adjusted) value will be used in multilibs. This
2470 # little trick also affects CPPFLAGS, CXXFLAGS, and LDFLAGS. And as a side
2471 # effect, CXXFLAGS is no longer automagically subst'd, so we have to do
2472 # that ourselves. Un-preciousing AC_PROG_CC also affects CC and CFLAGS.
2473 #
2474 # -fno-builtin must be present here so that a non-conflicting form of
2475 # std::exit can be guessed by AC_PROG_CXX, and used in later tests.
2476
2477
2478
2479
2480 save_CXXFLAGS="$CXXFLAGS"
2481 CXXFLAGS="$CXXFLAGS -fno-builtin"
ff66d28f
PE
2482 ac_ext=c
2483ac_cpp='$CPP $CPPFLAGS'
2484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2486ac_compiler_gnu=$ac_cv_c_compiler_gnu
2487if test -n "$ac_tool_prefix"; then
2488 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2489set dummy ${ac_tool_prefix}gcc; ac_word=$2
2490echo "$as_me:$LINENO: checking for $ac_word" >&5
2491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2492if test "${ac_cv_prog_CC+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2494else
ff66d28f
PE
2495 if test -n "$CC"; then
2496 ac_cv_prog_CC="$CC" # Let the user override the test.
b2dad0e3 2497else
ff66d28f
PE
2498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499for as_dir in $PATH
2500do
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2505 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 break 2
2508 fi
2509done
2510done
2511
b2dad0e3
BK
2512fi
2513fi
ff66d28f
PE
2514CC=$ac_cv_prog_CC
2515if test -n "$CC"; then
2516 echo "$as_me:$LINENO: result: $CC" >&5
2517echo "${ECHO_T}$CC" >&6
b2dad0e3 2518else
ff66d28f
PE
2519 echo "$as_me:$LINENO: result: no" >&5
2520echo "${ECHO_T}no" >&6
b2dad0e3
BK
2521fi
2522
ff66d28f
PE
2523fi
2524if test -z "$ac_cv_prog_CC"; then
2525 ac_ct_CC=$CC
2526 # Extract the first word of "gcc", so it can be a program name with args.
2527set dummy gcc; ac_word=$2
2528echo "$as_me:$LINENO: checking for $ac_word" >&5
2529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2530if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2532else
ff66d28f
PE
2533 if test -n "$ac_ct_CC"; then
2534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b2dad0e3 2535else
ff66d28f
PE
2536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537for as_dir in $PATH
2538do
2539 IFS=$as_save_IFS
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2543 ac_cv_prog_ac_ct_CC="gcc"
2544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545 break 2
2546 fi
2547done
2548done
2549
b2dad0e3
BK
2550fi
2551fi
ff66d28f
PE
2552ac_ct_CC=$ac_cv_prog_ac_ct_CC
2553if test -n "$ac_ct_CC"; then
2554 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2555echo "${ECHO_T}$ac_ct_CC" >&6
b2dad0e3 2556else
ff66d28f
PE
2557 echo "$as_me:$LINENO: result: no" >&5
2558echo "${ECHO_T}no" >&6
b2dad0e3 2559fi
b2dad0e3 2560
ff66d28f
PE
2561 CC=$ac_ct_CC
2562else
2563 CC="$ac_cv_prog_CC"
b2dad0e3
BK
2564fi
2565
ff66d28f
PE
2566if test -z "$CC"; then
2567 if test -n "$ac_tool_prefix"; then
2568 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2569set dummy ${ac_tool_prefix}cc; ac_word=$2
2570echo "$as_me:$LINENO: checking for $ac_word" >&5
2571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2572if test "${ac_cv_prog_CC+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2574else
2575 if test -n "$CC"; then
2576 ac_cv_prog_CC="$CC" # Let the user override the test.
2577else
2578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579for as_dir in $PATH
2580do
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
2583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2585 ac_cv_prog_CC="${ac_tool_prefix}cc"
2586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2587 break 2
b2dad0e3 2588 fi
ff66d28f
PE
2589done
2590done
93b85586 2591
ff66d28f
PE
2592fi
2593fi
2594CC=$ac_cv_prog_CC
2595if test -n "$CC"; then
2596 echo "$as_me:$LINENO: result: $CC" >&5
2597echo "${ECHO_T}$CC" >&6
974e336b 2598else
ff66d28f
PE
2599 echo "$as_me:$LINENO: result: no" >&5
2600echo "${ECHO_T}no" >&6
2601fi
974e336b 2602
974e336b 2603fi
ff66d28f
PE
2604if test -z "$ac_cv_prog_CC"; then
2605 ac_ct_CC=$CC
2606 # Extract the first word of "cc", so it can be a program name with args.
2607set dummy cc; ac_word=$2
2608echo "$as_me:$LINENO: checking for $ac_word" >&5
2609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2610if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2611 echo $ECHO_N "(cached) $ECHO_C" >&6
2612else
2613 if test -n "$ac_ct_CC"; then
2614 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2615else
2616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617for as_dir in $PATH
2618do
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2623 ac_cv_prog_ac_ct_CC="cc"
2624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 break 2
2626 fi
2627done
2628done
33590f13 2629
974e336b 2630fi
ff66d28f
PE
2631fi
2632ac_ct_CC=$ac_cv_prog_ac_ct_CC
2633if test -n "$ac_ct_CC"; then
2634 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2635echo "${ECHO_T}$ac_ct_CC" >&6
33590f13 2636else
ff66d28f
PE
2637 echo "$as_me:$LINENO: result: no" >&5
2638echo "${ECHO_T}no" >&6
33590f13
BK
2639fi
2640
ff66d28f
PE
2641 CC=$ac_ct_CC
2642else
2643 CC="$ac_cv_prog_CC"
2644fi
33590f13 2645
ff66d28f
PE
2646fi
2647if test -z "$CC"; then
2648 # Extract the first word of "cc", so it can be a program name with args.
2649set dummy cc; ac_word=$2
2650echo "$as_me:$LINENO: checking for $ac_word" >&5
2651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2652if test "${ac_cv_prog_CC+set}" = set; then
2653 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2654else
ff66d28f
PE
2655 if test -n "$CC"; then
2656 ac_cv_prog_CC="$CC" # Let the user override the test.
b2dad0e3 2657else
ff66d28f
PE
2658 ac_prog_rejected=no
2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2666 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2667 ac_prog_rejected=yes
2668 continue
2669 fi
2670 ac_cv_prog_CC="cc"
2671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2673 fi
2674done
2675done
2676
2677if test $ac_prog_rejected = yes; then
2678 # We found a bogon in the path, so make sure we never use it.
2679 set dummy $ac_cv_prog_CC
2680 shift
2681 if test $# != 0; then
2682 # We chose a different compiler from the bogus one.
2683 # However, it has the same basename, so the bogon will be chosen
2684 # first if we set CC to just the basename; use the full file name.
2685 shift
2686 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2687 fi
b2dad0e3
BK
2688fi
2689fi
ff66d28f
PE
2690fi
2691CC=$ac_cv_prog_CC
2692if test -n "$CC"; then
2693 echo "$as_me:$LINENO: result: $CC" >&5
2694echo "${ECHO_T}$CC" >&6
b2dad0e3 2695else
ff66d28f
PE
2696 echo "$as_me:$LINENO: result: no" >&5
2697echo "${ECHO_T}no" >&6
b2dad0e3
BK
2698fi
2699
ff66d28f
PE
2700fi
2701if test -z "$CC"; then
2702 if test -n "$ac_tool_prefix"; then
2703 for ac_prog in cl
2704 do
2705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2706set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2707echo "$as_me:$LINENO: checking for $ac_word" >&5
2708echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2709if test "${ac_cv_prog_CC+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2711else
ff66d28f
PE
2712 if test -n "$CC"; then
2713 ac_cv_prog_CC="$CC" # Let the user override the test.
b2dad0e3 2714else
ff66d28f
PE
2715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716for as_dir in $PATH
2717do
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2722 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2724 break 2
2725 fi
2726done
2727done
2728
b2dad0e3
BK
2729fi
2730fi
ff66d28f
PE
2731CC=$ac_cv_prog_CC
2732if test -n "$CC"; then
2733 echo "$as_me:$LINENO: result: $CC" >&5
2734echo "${ECHO_T}$CC" >&6
b2dad0e3 2735else
ff66d28f
PE
2736 echo "$as_me:$LINENO: result: no" >&5
2737echo "${ECHO_T}no" >&6
b2dad0e3
BK
2738fi
2739
ff66d28f
PE
2740 test -n "$CC" && break
2741 done
2742fi
2743if test -z "$CC"; then
2744 ac_ct_CC=$CC
2745 for ac_prog in cl
2746do
2747 # Extract the first word of "$ac_prog", so it can be a program name with args.
2748set dummy $ac_prog; ac_word=$2
2749echo "$as_me:$LINENO: checking for $ac_word" >&5
2750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2751if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 2753else
ff66d28f
PE
2754 if test -n "$ac_ct_CC"; then
2755 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b2dad0e3 2756else
ff66d28f
PE
2757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758for as_dir in $PATH
2759do
2760 IFS=$as_save_IFS
2761 test -z "$as_dir" && as_dir=.
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2764 ac_cv_prog_ac_ct_CC="$ac_prog"
2765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 break 2
2767 fi
2768done
2769done
2770
b2dad0e3
BK
2771fi
2772fi
ff66d28f
PE
2773ac_ct_CC=$ac_cv_prog_ac_ct_CC
2774if test -n "$ac_ct_CC"; then
2775 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2776echo "${ECHO_T}$ac_ct_CC" >&6
b2dad0e3 2777else
ff66d28f
PE
2778 echo "$as_me:$LINENO: result: no" >&5
2779echo "${ECHO_T}no" >&6
b2dad0e3
BK
2780fi
2781
ff66d28f
PE
2782 test -n "$ac_ct_CC" && break
2783done
b2dad0e3 2784
ff66d28f
PE
2785 CC=$ac_ct_CC
2786fi
2787
2788fi
2789
2790
2791test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2792See \`config.log' for more details." >&5
2793echo "$as_me: error: no acceptable C compiler found in \$PATH
2794See \`config.log' for more details." >&2;}
2795 { (exit 1); exit 1; }; }
2796
2797# Provide some information about the compiler.
2798echo "$as_me:$LINENO:" \
2799 "checking for C compiler version" >&5
2800ac_compiler=`set X $ac_compile; echo $2`
2801{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2802 (eval $ac_compiler --version </dev/null >&5) 2>&5
2803 ac_status=$?
2804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805 (exit $ac_status); }
2806{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2807 (eval $ac_compiler -v </dev/null >&5) 2>&5
2808 ac_status=$?
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }
2811{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2812 (eval $ac_compiler -V </dev/null >&5) 2>&5
2813 ac_status=$?
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }
2816
2817cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
2818/* confdefs.h. */
2819_ACEOF
2820cat confdefs.h >>conftest.$ac_ext
2821cat >>conftest.$ac_ext <<_ACEOF
2822/* end confdefs.h. */
2823
3a24bf5d
KC
2824int
2825main ()
2826{
2827
2828 ;
2829 return 0;
2830}
2831_ACEOF
2832# FIXME: Cleanup?
2833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2834 (eval $ac_link) 2>&5
2835 ac_status=$?
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; then
2838 gcc_no_link=no
2839else
2840 gcc_no_link=yes
2841fi
2842
2843if test x$gcc_no_link = xyes; then
2844 # Setting cross_compile will disable run tests; it will
2845 # also disable AC_CHECK_FILE but that's generally
2846 # correct if we can't link.
2847 cross_compiling=yes
2848 EXEEXT=
2849else
2850 cat >conftest.$ac_ext <<_ACEOF
2851/* confdefs.h. */
2852_ACEOF
2853cat confdefs.h >>conftest.$ac_ext
2854cat >>conftest.$ac_ext <<_ACEOF
2855/* end confdefs.h. */
2856
ff66d28f
PE
2857int
2858main ()
2859{
2860
2861 ;
2862 return 0;
2863}
2864_ACEOF
2865ac_clean_files_save=$ac_clean_files
2866ac_clean_files="$ac_clean_files a.out a.exe b.out"
2867# Try to create an executable without -o first, disregard a.out.
2868# It will help us diagnose broken compilers, and finding out an intuition
2869# of exeext.
ec2075e9
BK
2870echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2871echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
ff66d28f
PE
2872ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2873if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2874 (eval $ac_link_default) 2>&5
2875 ac_status=$?
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); }; then
2878 # Find the output, starting from the most likely. This scheme is
2879# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2880# resort.
2881
2882# Be careful to initialize this variable, since it used to be cached.
2883# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2884ac_cv_exeext=
2885# b.out is created by i960 compilers.
2886for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2887do
2888 test -f "$ac_file" || continue
2889 case $ac_file in
2890 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ec2075e9 2891 ;;
ff66d28f 2892 conftest.$ac_ext )
ec2075e9
BK
2893 # This is the source file.
2894 ;;
ff66d28f 2895 [ab].out )
ec2075e9
BK
2896 # We found the default executable, but exeext='' is most
2897 # certainly right.
2898 break;;
ff66d28f 2899 *.* )
ec2075e9
BK
2900 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2901 # FIXME: I believe we export ac_cv_exeext for Libtool,
2902 # but it would be cool to find out if it's true. Does anybody
2903 # maintain Libtool? --akim.
2904 export ac_cv_exeext
2905 break;;
ff66d28f 2906 * )
ec2075e9 2907 break;;
ff66d28f
PE
2908 esac
2909done
b2dad0e3 2910else
ff66d28f
PE
2911 echo "$as_me: failed program was:" >&5
2912sed 's/^/| /' conftest.$ac_ext >&5
2913
2914{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2915See \`config.log' for more details." >&5
2916echo "$as_me: error: C compiler cannot create executables
2917See \`config.log' for more details." >&2;}
2918 { (exit 77); exit 77; }; }
2919fi
2920
2921ac_exeext=$ac_cv_exeext
2922echo "$as_me:$LINENO: result: $ac_file" >&5
2923echo "${ECHO_T}$ac_file" >&6
2924
2925# Check the compiler produces executables we can run. If not, either
2926# the compiler is broken, or we cross compile.
2927echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2928echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2929# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2930# If not cross compiling, check that we can run a simple program.
2931if test "$cross_compiling" != yes; then
2932 if { ac_try='./$ac_file'
2933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934 (eval $ac_try) 2>&5
2935 ac_status=$?
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; }; then
2938 cross_compiling=no
2939 else
2940 if test "$cross_compiling" = maybe; then
2941 cross_compiling=yes
2942 else
2943 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2944If you meant to cross compile, use \`--host'.
2945See \`config.log' for more details." >&5
2946echo "$as_me: error: cannot run C compiled programs.
2947If you meant to cross compile, use \`--host'.
2948See \`config.log' for more details." >&2;}
2949 { (exit 1); exit 1; }; }
b2dad0e3 2950 fi
ff66d28f 2951 fi
b2dad0e3 2952fi
ff66d28f
PE
2953echo "$as_me:$LINENO: result: yes" >&5
2954echo "${ECHO_T}yes" >&6
2955
2956rm -f a.out a.exe conftest$ac_cv_exeext b.out
2957ac_clean_files=$ac_clean_files_save
2958# Check the compiler produces executables we can run. If not, either
2959# the compiler is broken, or we cross compile.
2960echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2961echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2962echo "$as_me:$LINENO: result: $cross_compiling" >&5
2963echo "${ECHO_T}$cross_compiling" >&6
2964
2965echo "$as_me:$LINENO: checking for suffix of executables" >&5
2966echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2968 (eval $ac_link) 2>&5
2969 ac_status=$?
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; then
2972 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2973# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2974# work properly (i.e., refer to `conftest.exe'), while it won't with
2975# `rm'.
2976for ac_file in conftest.exe conftest conftest.*; do
2977 test -f "$ac_file" || continue
2978 case $ac_file in
2979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2980 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ec2075e9
BK
2981 export ac_cv_exeext
2982 break;;
ff66d28f
PE
2983 * ) break;;
2984 esac
2985done
b2dad0e3 2986else
ff66d28f
PE
2987 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2988See \`config.log' for more details." >&5
2989echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2990See \`config.log' for more details." >&2;}
2991 { (exit 1); exit 1; }; }
b2dad0e3
BK
2992fi
2993
ff66d28f
PE
2994rm -f conftest$ac_cv_exeext
2995echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2996echo "${ECHO_T}$ac_cv_exeext" >&6
2997
2998rm -f conftest.$ac_ext
2999EXEEXT=$ac_cv_exeext
3000ac_exeext=$EXEEXT
3a24bf5d 3001fi
ff66d28f
PE
3002echo "$as_me:$LINENO: checking for suffix of object files" >&5
3003echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3004if test "${ac_cv_objext+set}" = set; then
3005 echo $ECHO_N "(cached) $ECHO_C" >&6
3006else
3007 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3008/* confdefs.h. */
3009_ACEOF
3010cat confdefs.h >>conftest.$ac_ext
3011cat >>conftest.$ac_ext <<_ACEOF
3012/* end confdefs.h. */
3013
3014int
3015main ()
3016{
3017
3018 ;
3019 return 0;
3020}
3021_ACEOF
3022rm -f conftest.o conftest.obj
3023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3024 (eval $ac_compile) 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; then
3028 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3029 case $ac_file in
3030 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
3031 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3032 break;;
3033 esac
3034done
b2dad0e3 3035else
ff66d28f
PE
3036 echo "$as_me: failed program was:" >&5
3037sed 's/^/| /' conftest.$ac_ext >&5
3038
3039{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3040See \`config.log' for more details." >&5
3041echo "$as_me: error: cannot compute suffix of object files: cannot compile
3042See \`config.log' for more details." >&2;}
3043 { (exit 1); exit 1; }; }
46840bcd 3044fi
ff66d28f
PE
3045
3046rm -f conftest.$ac_cv_objext conftest.$ac_ext
46840bcd 3047fi
ff66d28f
PE
3048echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3049echo "${ECHO_T}$ac_cv_objext" >&6
3050OBJEXT=$ac_cv_objext
3051ac_objext=$OBJEXT
3052echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3053echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3054if test "${ac_cv_c_compiler_gnu+set}" = set; then
3055 echo $ECHO_N "(cached) $ECHO_C" >&6
3056else
3057 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3058/* confdefs.h. */
3059_ACEOF
3060cat confdefs.h >>conftest.$ac_ext
3061cat >>conftest.$ac_ext <<_ACEOF
3062/* end confdefs.h. */
46840bcd 3063
ff66d28f
PE
3064int
3065main ()
3066{
3067#ifndef __GNUC__
3068 choke me
3069#endif
3070
3071 ;
3072 return 0;
3073}
3074_ACEOF
3075rm -f conftest.$ac_objext
3076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 3077 (eval $ac_compile) 2>conftest.er1
ff66d28f 3078 ac_status=$?
ec2075e9
BK
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
ff66d28f
PE
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
5b043f08
GK
3084 { ac_try='test -z "$ac_c_werror_flag"
3085 || test ! -s conftest.err'
ec2075e9
BK
3086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 (eval $ac_try) 2>&5
3088 ac_status=$?
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; } &&
3091 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
3092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093 (eval $ac_try) 2>&5
3094 ac_status=$?
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; }; then
3097 ac_compiler_gnu=yes
3098else
3099 echo "$as_me: failed program was:" >&5
3100sed 's/^/| /' conftest.$ac_ext >&5
3101
3102ac_compiler_gnu=no
3103fi
ec2075e9 3104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
3105ac_cv_c_compiler_gnu=$ac_compiler_gnu
3106
3107fi
3108echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3109echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3110GCC=`test $ac_compiler_gnu = yes && echo yes`
3111ac_test_CFLAGS=${CFLAGS+set}
3112ac_save_CFLAGS=$CFLAGS
3113CFLAGS="-g"
3114echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3115echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3116if test "${ac_cv_prog_cc_g+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3118else
3119 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3120/* confdefs.h. */
3121_ACEOF
3122cat confdefs.h >>conftest.$ac_ext
3123cat >>conftest.$ac_ext <<_ACEOF
3124/* end confdefs.h. */
3125
3126int
3127main ()
3128{
3129
3130 ;
3131 return 0;
3132}
3133_ACEOF
3134rm -f conftest.$ac_objext
3135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 3136 (eval $ac_compile) 2>conftest.er1
ff66d28f 3137 ac_status=$?
ec2075e9
BK
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
ff66d28f
PE
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } &&
5b043f08
GK
3143 { ac_try='test -z "$ac_c_werror_flag"
3144 || test ! -s conftest.err'
ec2075e9
BK
3145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3146 (eval $ac_try) 2>&5
3147 ac_status=$?
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; } &&
3150 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
3151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3152 (eval $ac_try) 2>&5
3153 ac_status=$?
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); }; }; then
3156 ac_cv_prog_cc_g=yes
b2dad0e3 3157else
ff66d28f
PE
3158 echo "$as_me: failed program was:" >&5
3159sed 's/^/| /' conftest.$ac_ext >&5
b2dad0e3 3160
ff66d28f 3161ac_cv_prog_cc_g=no
b2dad0e3 3162fi
ec2075e9 3163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
3164fi
3165echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3166echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3167if test "$ac_test_CFLAGS" = set; then
3168 CFLAGS=$ac_save_CFLAGS
3169elif test $ac_cv_prog_cc_g = yes; then
3170 if test "$GCC" = yes; then
3171 CFLAGS="-g -O2"
b2dad0e3 3172 else
ff66d28f 3173 CFLAGS="-g"
b2dad0e3 3174 fi
ff66d28f
PE
3175else
3176 if test "$GCC" = yes; then
3177 CFLAGS="-O2"
3178 else
3179 CFLAGS=
3180 fi
3181fi
3182echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3183echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3184if test "${ac_cv_prog_cc_stdc+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3186else
3187 ac_cv_prog_cc_stdc=no
3188ac_save_CC=$CC
3189cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3190/* confdefs.h. */
3191_ACEOF
3192cat confdefs.h >>conftest.$ac_ext
3193cat >>conftest.$ac_ext <<_ACEOF
3194/* end confdefs.h. */
3195#include <stdarg.h>
3196#include <stdio.h>
3197#include <sys/types.h>
3198#include <sys/stat.h>
3199/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3200struct buf { int x; };
3201FILE * (*rcsopen) (struct buf *, struct stat *, int);
3202static char *e (p, i)
3203 char **p;
3204 int i;
3205{
3206 return p[i];
3207}
3208static char *f (char * (*g) (char **, int), char **p, ...)
3209{
3210 char *s;
3211 va_list v;
3212 va_start (v,p);
3213 s = g (p, va_arg (v,int));
3214 va_end (v);
3215 return s;
3216}
ec2075e9
BK
3217
3218/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3219 function prototypes and stuff, but not '\xHH' hex character constants.
3220 These don't provoke an error unfortunately, instead are silently treated
3221 as 'x'. The following induces an error, until -std1 is added to get
3222 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3223 array size at least. It's necessary to write '\x00'==0 to get something
3224 that's true only with -std1. */
3225int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3226
ff66d28f
PE
3227int test (int i, double x);
3228struct s1 {int (*f) (int a);};
3229struct s2 {int (*f) (double a);};
3230int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3231int argc;
3232char **argv;
3233int
3234main ()
3235{
3236return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3237 ;
3238 return 0;
3239}
3240_ACEOF
3241# Don't try gcc -ansi; that turns off useful extensions and
3242# breaks some systems' header files.
3243# AIX -qlanglvl=ansi
3244# Ultrix and OSF/1 -std1
3245# HP-UX 10.20 and later -Ae
3246# HP-UX older versions -Aa -D_HPUX_SOURCE
3247# SVR4 -Xc -D__EXTENSIONS__
3248for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3249do
3250 CC="$ac_save_CC $ac_arg"
3251 rm -f conftest.$ac_objext
3252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 3253 (eval $ac_compile) 2>conftest.er1
ff66d28f 3254 ac_status=$?
ec2075e9
BK
3255 grep -v '^ *+' conftest.er1 >conftest.err
3256 rm -f conftest.er1
3257 cat conftest.err >&5
ff66d28f
PE
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } &&
5b043f08
GK
3260 { ac_try='test -z "$ac_c_werror_flag"
3261 || test ! -s conftest.err'
ec2075e9
BK
3262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3263 (eval $ac_try) 2>&5
3264 ac_status=$?
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }; } &&
3267 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
3268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269 (eval $ac_try) 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }; }; then
3273 ac_cv_prog_cc_stdc=$ac_arg
3274break
3275else
3276 echo "$as_me: failed program was:" >&5
3277sed 's/^/| /' conftest.$ac_ext >&5
3278
b2dad0e3 3279fi
ec2075e9 3280rm -f conftest.err conftest.$ac_objext
ff66d28f
PE
3281done
3282rm -f conftest.$ac_ext conftest.$ac_objext
3283CC=$ac_save_CC
b2dad0e3 3284
ff66d28f 3285fi
b2dad0e3 3286
ff66d28f
PE
3287case "x$ac_cv_prog_cc_stdc" in
3288 x|xno)
3289 echo "$as_me:$LINENO: result: none needed" >&5
3290echo "${ECHO_T}none needed" >&6 ;;
3291 *)
3292 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3293echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3294 CC="$CC $ac_cv_prog_cc_stdc" ;;
3295esac
b2dad0e3 3296
ff66d28f
PE
3297# Some people use a C++ compiler to compile C. Since we use `exit',
3298# in C++ we need to declare it. In case someone uses the same compiler
3299# for both compiling C and C++ we need to have the C++ compiler decide
3300# the declaration of exit, since it's the most demanding environment.
3301cat >conftest.$ac_ext <<_ACEOF
3302#ifndef __cplusplus
3303 choke me
3304#endif
3305_ACEOF
3306rm -f conftest.$ac_objext
3307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 3308 (eval $ac_compile) 2>conftest.er1
ff66d28f 3309 ac_status=$?
ec2075e9
BK
3310 grep -v '^ *+' conftest.er1 >conftest.err
3311 rm -f conftest.er1
3312 cat conftest.err >&5
ff66d28f
PE
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } &&
5b043f08
GK
3315 { ac_try='test -z "$ac_c_werror_flag"
3316 || test ! -s conftest.err'
ec2075e9
BK
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 (eval $ac_try) 2>&5
3319 ac_status=$?
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; } &&
3322 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
3323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 (eval $ac_try) 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; }; then
3328 for ac_declaration in \
ec2075e9 3329 '' \
ff66d28f
PE
3330 'extern "C" void std::exit (int) throw (); using std::exit;' \
3331 'extern "C" void std::exit (int); using std::exit;' \
3332 'extern "C" void exit (int) throw ();' \
3333 'extern "C" void exit (int);' \
3334 'void exit (int);'
3335do
3336 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3337/* confdefs.h. */
3338_ACEOF
3339cat confdefs.h >>conftest.$ac_ext
3340cat >>conftest.$ac_ext <<_ACEOF
3341/* end confdefs.h. */
158960ba 3342$ac_declaration
ec2075e9 3343#include <stdlib.h>
ff66d28f
PE
3344int
3345main ()
3346{
3347exit (42);
3348 ;
3349 return 0;
3350}
3351_ACEOF
3352rm -f conftest.$ac_objext
3353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 3354 (eval $ac_compile) 2>conftest.er1
ff66d28f 3355 ac_status=$?
ec2075e9
BK
3356 grep -v '^ *+' conftest.er1 >conftest.err
3357 rm -f conftest.er1
3358 cat conftest.err >&5
ff66d28f
PE
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); } &&
5b043f08
GK
3361 { ac_try='test -z "$ac_c_werror_flag"
3362 || test ! -s conftest.err'
ec2075e9
BK
3363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364 (eval $ac_try) 2>&5
3365 ac_status=$?
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }; } &&
3368 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 (eval $ac_try) 2>&5
3371 ac_status=$?
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; }; then
3374 :
3375else
3376 echo "$as_me: failed program was:" >&5
3377sed 's/^/| /' conftest.$ac_ext >&5
b2dad0e3 3378
ff66d28f
PE
3379continue
3380fi
ec2075e9 3381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f 3382 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3383/* confdefs.h. */
3384_ACEOF
3385cat confdefs.h >>conftest.$ac_ext
3386cat >>conftest.$ac_ext <<_ACEOF
3387/* end confdefs.h. */
3388$ac_declaration
3389int
3390main ()
3391{
3392exit (42);
3393 ;
3394 return 0;
3395}
3396_ACEOF
3397rm -f conftest.$ac_objext
3398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 3399 (eval $ac_compile) 2>conftest.er1
ff66d28f 3400 ac_status=$?
ec2075e9
BK
3401 grep -v '^ *+' conftest.er1 >conftest.err
3402 rm -f conftest.er1
3403 cat conftest.err >&5
ff66d28f
PE
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } &&
5b043f08
GK
3406 { ac_try='test -z "$ac_c_werror_flag"
3407 || test ! -s conftest.err'
ec2075e9
BK
3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 (eval $ac_try) 2>&5
3410 ac_status=$?
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; } &&
3413 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 (eval $ac_try) 2>&5
3416 ac_status=$?
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; }; then
3419 break
3420else
3421 echo "$as_me: failed program was:" >&5
3422sed 's/^/| /' conftest.$ac_ext >&5
3423
3424fi
ec2075e9 3425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
3426done
3427rm -f conftest*
3428if test -n "$ac_declaration"; then
3429 echo '#ifdef __cplusplus' >>confdefs.h
3430 echo $ac_declaration >>confdefs.h
3431 echo '#endif' >>confdefs.h
3432fi
b2dad0e3 3433
b2dad0e3 3434else
ff66d28f
PE
3435 echo "$as_me: failed program was:" >&5
3436sed 's/^/| /' conftest.$ac_ext >&5
3437
b2dad0e3 3438fi
ec2075e9 3439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
3440ac_ext=c
3441ac_cpp='$CPP $CPPFLAGS'
3442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3444ac_compiler_gnu=$ac_cv_c_compiler_gnu
3445
ff66d28f
PE
3446 ac_ext=cc
3447ac_cpp='$CXXCPP $CPPFLAGS'
3448ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3451if test -n "$ac_tool_prefix"; then
3452 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3453 do
3454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3455set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3456echo "$as_me:$LINENO: checking for $ac_word" >&5
3457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3458if test "${glibcxx_cv_prog_CXX+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3460else
3461 if test -n "$CXX"; then
3462 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
3463else
3464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465for as_dir in $PATH
3466do
3467 IFS=$as_save_IFS
3468 test -z "$as_dir" && as_dir=.
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3471 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3473 break 2
3474 fi
3475done
3476done
3477
3478fi
3479fi
3480CXX=$glibcxx_cv_prog_CXX
3481if test -n "$CXX"; then
3482 echo "$as_me:$LINENO: result: $CXX" >&5
3483echo "${ECHO_T}$CXX" >&6
b2dad0e3 3484else
ff66d28f
PE
3485 echo "$as_me:$LINENO: result: no" >&5
3486echo "${ECHO_T}no" >&6
b2dad0e3 3487fi
b2dad0e3 3488
ff66d28f
PE
3489 test -n "$CXX" && break
3490 done
3491fi
3492if test -z "$CXX"; then
3493 ac_ct_CXX=$CXX
3494 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3495do
3496 # Extract the first word of "$ac_prog", so it can be a program name with args.
3497set dummy $ac_prog; ac_word=$2
3498echo "$as_me:$LINENO: checking for $ac_word" >&5
3499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3500if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502else
3503 if test -n "$ac_ct_CXX"; then
3504 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3505else
3506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507for as_dir in $PATH
3508do
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3513 ac_cv_prog_ac_ct_CXX="$ac_prog"
3514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2
b2dad0e3 3516 fi
ff66d28f
PE
3517done
3518done
3519
b2dad0e3 3520fi
ff66d28f
PE
3521fi
3522ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3523if test -n "$ac_ct_CXX"; then
3524 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3525echo "${ECHO_T}$ac_ct_CXX" >&6
3526else
3527 echo "$as_me:$LINENO: result: no" >&5
3528echo "${ECHO_T}no" >&6
b2dad0e3
BK
3529fi
3530
ff66d28f
PE
3531 test -n "$ac_ct_CXX" && break
3532done
3533test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3534
3535 CXX=$ac_ct_CXX
3536fi
3537
3538
3539# Provide some information about the compiler.
3540echo "$as_me:$LINENO:" \
3541 "checking for C++ compiler version" >&5
3542ac_compiler=`set X $ac_compile; echo $2`
3543{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3544 (eval $ac_compiler --version </dev/null >&5) 2>&5
3545 ac_status=$?
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }
3548{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3549 (eval $ac_compiler -v </dev/null >&5) 2>&5
3550 ac_status=$?
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }
3553{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3554 (eval $ac_compiler -V </dev/null >&5) 2>&5
3555 ac_status=$?
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); }
3558
3559echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3560echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3561if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563else
3564 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3565/* confdefs.h. */
3566_ACEOF
3567cat confdefs.h >>conftest.$ac_ext
3568cat >>conftest.$ac_ext <<_ACEOF
3569/* end confdefs.h. */
3570
3571int
3572main ()
3573{
3574#ifndef __GNUC__
3575 choke me
3576#endif
3577
3578 ;
3579 return 0;
3580}
3581_ACEOF
3582rm -f conftest.$ac_objext
3583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 3584 (eval $ac_compile) 2>conftest.er1
ff66d28f 3585 ac_status=$?
ec2075e9
BK
3586 grep -v '^ *+' conftest.er1 >conftest.err
3587 rm -f conftest.er1
3588 cat conftest.err >&5
ff66d28f
PE
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } &&
5b043f08
GK
3591 { ac_try='test -z "$ac_cxx_werror_flag"
3592 || test ! -s conftest.err'
ec2075e9
BK
3593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3594 (eval $ac_try) 2>&5
3595 ac_status=$?
3596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); }; } &&
3598 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
3599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600 (eval $ac_try) 2>&5
3601 ac_status=$?
3602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603 (exit $ac_status); }; }; then
3604 ac_compiler_gnu=yes
3605else
3606 echo "$as_me: failed program was:" >&5
3607sed 's/^/| /' conftest.$ac_ext >&5
3608
3609ac_compiler_gnu=no
3610fi
ec2075e9 3611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
3612ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3613
3614fi
3615echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3616echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3617GXX=`test $ac_compiler_gnu = yes && echo yes`
3618ac_test_CXXFLAGS=${CXXFLAGS+set}
3619ac_save_CXXFLAGS=$CXXFLAGS
3620CXXFLAGS="-g"
3621echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3622echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3623if test "${ac_cv_prog_cxx_g+set}" = set; then
3624 echo $ECHO_N "(cached) $ECHO_C" >&6
3625else
3626 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3627/* confdefs.h. */
3628_ACEOF
3629cat confdefs.h >>conftest.$ac_ext
3630cat >>conftest.$ac_ext <<_ACEOF
3631/* end confdefs.h. */
3632
3633int
3634main ()
3635{
b2dad0e3 3636
ff66d28f
PE
3637 ;
3638 return 0;
3639}
3640_ACEOF
3641rm -f conftest.$ac_objext
3642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 3643 (eval $ac_compile) 2>conftest.er1
ff66d28f 3644 ac_status=$?
ec2075e9
BK
3645 grep -v '^ *+' conftest.er1 >conftest.err
3646 rm -f conftest.er1
3647 cat conftest.err >&5
ff66d28f
PE
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } &&
5b043f08
GK
3650 { ac_try='test -z "$ac_cxx_werror_flag"
3651 || test ! -s conftest.err'
ec2075e9
BK
3652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653 (eval $ac_try) 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; } &&
3657 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3659 (eval $ac_try) 2>&5
3660 ac_status=$?
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; }; then
3663 ac_cv_prog_cxx_g=yes
3664else
3665 echo "$as_me: failed program was:" >&5
3666sed 's/^/| /' conftest.$ac_ext >&5
3667
3668ac_cv_prog_cxx_g=no
3669fi
ec2075e9 3670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
3671fi
3672echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3673echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3674if test "$ac_test_CXXFLAGS" = set; then
3675 CXXFLAGS=$ac_save_CXXFLAGS
3676elif test $ac_cv_prog_cxx_g = yes; then
3677 if test "$GXX" = yes; then
3678 CXXFLAGS="-g -O2"
3679 else
3680 CXXFLAGS="-g"
3681 fi
3682else
3683 if test "$GXX" = yes; then
3684 CXXFLAGS="-O2"
3685 else
3686 CXXFLAGS=
5780a46b 3687 fi
ff66d28f
PE
3688fi
3689for ac_declaration in \
ec2075e9 3690 '' \
ff66d28f
PE
3691 'extern "C" void std::exit (int) throw (); using std::exit;' \
3692 'extern "C" void std::exit (int); using std::exit;' \
3693 'extern "C" void exit (int) throw ();' \
3694 'extern "C" void exit (int);' \
3695 'void exit (int);'
3696do
3697 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3698/* confdefs.h. */
3699_ACEOF
3700cat confdefs.h >>conftest.$ac_ext
3701cat >>conftest.$ac_ext <<_ACEOF
3702/* end confdefs.h. */
158960ba 3703$ac_declaration
ec2075e9 3704#include <stdlib.h>
ff66d28f
PE
3705int
3706main ()
3707{
3708exit (42);
3709 ;
3710 return 0;
3711}
3712_ACEOF
3713rm -f conftest.$ac_objext
3714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 3715 (eval $ac_compile) 2>conftest.er1
ff66d28f 3716 ac_status=$?
ec2075e9
BK
3717 grep -v '^ *+' conftest.er1 >conftest.err
3718 rm -f conftest.er1
3719 cat conftest.err >&5
ff66d28f
PE
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); } &&
5b043f08
GK
3722 { ac_try='test -z "$ac_cxx_werror_flag"
3723 || test ! -s conftest.err'
ec2075e9
BK
3724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725 (eval $ac_try) 2>&5
3726 ac_status=$?
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }; } &&
3729 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
3730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731 (eval $ac_try) 2>&5
3732 ac_status=$?
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; }; then
3735 :
3736else
3737 echo "$as_me: failed program was:" >&5
3738sed 's/^/| /' conftest.$ac_ext >&5
b2dad0e3 3739
ff66d28f
PE
3740continue
3741fi
ec2075e9 3742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f 3743 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
3744/* confdefs.h. */
3745_ACEOF
3746cat confdefs.h >>conftest.$ac_ext
3747cat >>conftest.$ac_ext <<_ACEOF
3748/* end confdefs.h. */
3749$ac_declaration
3750int
3751main ()
3752{
3753exit (42);
3754 ;
3755 return 0;
3756}
3757_ACEOF
3758rm -f conftest.$ac_objext
3759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ec2075e9 3760 (eval $ac_compile) 2>conftest.er1
ff66d28f 3761 ac_status=$?
ec2075e9
BK
3762 grep -v '^ *+' conftest.er1 >conftest.err
3763 rm -f conftest.er1
3764 cat conftest.err >&5
ff66d28f
PE
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); } &&
5b043f08
GK
3767 { ac_try='test -z "$ac_cxx_werror_flag"
3768 || test ! -s conftest.err'
ec2075e9
BK
3769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770 (eval $ac_try) 2>&5
3771 ac_status=$?
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); }; } &&
3774 { ac_try='test -s conftest.$ac_objext'
ff66d28f
PE
3775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3776 (eval $ac_try) 2>&5
3777 ac_status=$?
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }; }; then
3780 break
3781else
3782 echo "$as_me: failed program was:" >&5
3783sed 's/^/| /' conftest.$ac_ext >&5
3784
3785fi
ec2075e9 3786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ff66d28f
PE
3787done
3788rm -f conftest*
3789if test -n "$ac_declaration"; then
3790 echo '#ifdef __cplusplus' >>confdefs.h
3791 echo $ac_declaration >>confdefs.h
3792 echo '#endif' >>confdefs.h
3793fi
3840fa2a 3794
ff66d28f
PE
3795ac_ext=c
3796ac_cpp='$CPP $CPPFLAGS'
3797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799ac_compiler_gnu=$ac_cv_c_compiler_gnu
16da539b 3800
ff66d28f 3801 CXXFLAGS="$save_CXXFLAGS"
d0941a31
PE
3802
3803
33590f13 3804
f6dda651 3805
ff66d28f
PE
3806 # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
3807 # available). Uncomment the next line to force a particular method.
3808 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3809echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3810LN_S=$as_ln_s
3811if test "$LN_S" = "ln -s"; then
3812 echo "$as_me:$LINENO: result: yes" >&5
3813echo "${ECHO_T}yes" >&6
2f235b6d 3814else
ff66d28f
PE
3815 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3816echo "${ECHO_T}no, using $LN_S" >&6
2f235b6d 3817fi
2f235b6d 3818
ff66d28f 3819 #LN_S='cp -p'
2f235b6d 3820
ff66d28f
PE
3821 if test -n "$ac_tool_prefix"; then
3822 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3823set dummy ${ac_tool_prefix}as; ac_word=$2
3824echo "$as_me:$LINENO: checking for $ac_word" >&5
3825echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3826if test "${ac_cv_prog_AS+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
2f235b6d 3828else
ff66d28f
PE
3829 if test -n "$AS"; then
3830 ac_cv_prog_AS="$AS" # Let the user override the test.
2f235b6d 3831else
ff66d28f
PE
3832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833for as_dir in $PATH
3834do
3835 IFS=$as_save_IFS
3836 test -z "$as_dir" && as_dir=.
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3839 ac_cv_prog_AS="${ac_tool_prefix}as"
3840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3841 break 2
3842 fi
3843done
3844done
3845
2f235b6d 3846fi
2f235b6d 3847fi
ff66d28f
PE
3848AS=$ac_cv_prog_AS
3849if test -n "$AS"; then
3850 echo "$as_me:$LINENO: result: $AS" >&5
3851echo "${ECHO_T}$AS" >&6
2f235b6d 3852else
ff66d28f
PE
3853 echo "$as_me:$LINENO: result: no" >&5
3854echo "${ECHO_T}no" >&6
2f235b6d
PE
3855fi
3856
ff66d28f
PE
3857fi
3858if test -z "$ac_cv_prog_AS"; then
3859 ac_ct_AS=$AS
3860 # Extract the first word of "as", so it can be a program name with args.
3861set dummy as; ac_word=$2
3862echo "$as_me:$LINENO: checking for $ac_word" >&5
3863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3864if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3866else
3867 if test -n "$ac_ct_AS"; then
3868 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3869else
3870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871for as_dir in $PATH
3872do
3873 IFS=$as_save_IFS
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877 ac_cv_prog_ac_ct_AS="as"
3878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 break 2
3880 fi
3881done
3882done
2f235b6d 3883
ff66d28f
PE
3884fi
3885fi
3886ac_ct_AS=$ac_cv_prog_ac_ct_AS
3887if test -n "$ac_ct_AS"; then
3888 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3889echo "${ECHO_T}$ac_ct_AS" >&6
3890else
3891 echo "$as_me:$LINENO: result: no" >&5
3892echo "${ECHO_T}no" >&6
3893fi
2f235b6d 3894
ff66d28f
PE
3895 AS=$ac_ct_AS
3896else
3897 AS="$ac_cv_prog_AS"
2f235b6d 3898fi
2f235b6d 3899
ff66d28f
PE
3900 if test -n "$ac_tool_prefix"; then
3901 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3902set dummy ${ac_tool_prefix}ar; ac_word=$2
3903echo "$as_me:$LINENO: checking for $ac_word" >&5
3904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3905if test "${ac_cv_prog_AR+set}" = set; then
3906 echo $ECHO_N "(cached) $ECHO_C" >&6
3907else
3908 if test -n "$AR"; then
3909 ac_cv_prog_AR="$AR" # Let the user override the test.
3910else
3911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912for as_dir in $PATH
3913do
3914 IFS=$as_save_IFS
3915 test -z "$as_dir" && as_dir=.
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3918 ac_cv_prog_AR="${ac_tool_prefix}ar"
3919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3920 break 2
3921 fi
3922done
3923done
2f235b6d 3924
ff66d28f
PE
3925fi
3926fi
3927AR=$ac_cv_prog_AR
3928if test -n "$AR"; then
3929 echo "$as_me:$LINENO: result: $AR" >&5
3930echo "${ECHO_T}$AR" >&6
3931else
3932 echo "$as_me:$LINENO: result: no" >&5
3933echo "${ECHO_T}no" >&6
3934fi
2f235b6d 3935
ff66d28f
PE
3936fi
3937if test -z "$ac_cv_prog_AR"; then
3938 ac_ct_AR=$AR
3939 # Extract the first word of "ar", so it can be a program name with args.
3940set dummy ar; ac_word=$2
3941echo "$as_me:$LINENO: checking for $ac_word" >&5
3942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3943if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945else
3946 if test -n "$ac_ct_AR"; then
3947 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3948else
3949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950for as_dir in $PATH
3951do
3952 IFS=$as_save_IFS
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3956 ac_cv_prog_ac_ct_AR="ar"
3957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3958 break 2
3959 fi
3960done
3961done
2f235b6d 3962
ff66d28f
PE
3963fi
3964fi
3965ac_ct_AR=$ac_cv_prog_ac_ct_AR
3966if test -n "$ac_ct_AR"; then
3967 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3968echo "${ECHO_T}$ac_ct_AR" >&6
2f235b6d 3969else
ff66d28f
PE
3970 echo "$as_me:$LINENO: result: no" >&5
3971echo "${ECHO_T}no" >&6
2f235b6d
PE
3972fi
3973
ff66d28f 3974 AR=$ac_ct_AR
2f235b6d 3975else
ff66d28f 3976 AR="$ac_cv_prog_AR"
2f235b6d
PE
3977fi
3978
ff66d28f
PE
3979 if test -n "$ac_tool_prefix"; then
3980 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3981set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3982echo "$as_me:$LINENO: checking for $ac_word" >&5
3983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3984if test "${ac_cv_prog_RANLIB+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3986else
3987 if test -n "$RANLIB"; then
3988 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3989else
3990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991for as_dir in $PATH
3992do
3993 IFS=$as_save_IFS
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 break 2
4000 fi
4001done
4002done
4003
4004fi
4005fi
4006RANLIB=$ac_cv_prog_RANLIB
4007if test -n "$RANLIB"; then
4008 echo "$as_me:$LINENO: result: $RANLIB" >&5
4009echo "${ECHO_T}$RANLIB" >&6
2f235b6d 4010else
ff66d28f
PE
4011 echo "$as_me:$LINENO: result: no" >&5
4012echo "${ECHO_T}no" >&6
2f235b6d
PE
4013fi
4014
ff66d28f
PE
4015fi
4016if test -z "$ac_cv_prog_RANLIB"; then
4017 ac_ct_RANLIB=$RANLIB
4018 # Extract the first word of "ranlib", so it can be a program name with args.
4019set dummy ranlib; ac_word=$2
4020echo "$as_me:$LINENO: checking for $ac_word" >&5
4021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4022if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4024else
4025 if test -n "$ac_ct_RANLIB"; then
4026 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2f235b6d 4027else
ff66d28f
PE
4028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029for as_dir in $PATH
4030do
4031 IFS=$as_save_IFS
4032 test -z "$as_dir" && as_dir=.
4033 for ac_exec_ext in '' $ac_executable_extensions; do
4034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4035 ac_cv_prog_ac_ct_RANLIB="ranlib"
4036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 break 2
4038 fi
4039done
4040done
4041
4042 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error"
4043fi
4044fi
4045ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4046if test -n "$ac_ct_RANLIB"; then
4047 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4048echo "${ECHO_T}$ac_ct_RANLIB" >&6
4049else
4050 echo "$as_me:$LINENO: result: no" >&5
4051echo "${ECHO_T}no" >&6
2f235b6d
PE
4052fi
4053
ff66d28f 4054 RANLIB=$ac_ct_RANLIB
2f235b6d 4055else
ff66d28f 4056 RANLIB="$ac_cv_prog_RANLIB"
2f235b6d
PE
4057fi
4058
4059
ff66d28f
PE
4060 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4061echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4062 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4063if test "${enable_maintainer_mode+set}" = set; then
4064 enableval="$enable_maintainer_mode"
4065 USE_MAINTAINER_MODE=$enableval
4066else
4067 USE_MAINTAINER_MODE=no
4068fi;
4069 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4070echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2f235b6d
PE
4071
4072
ff66d28f
PE
4073if test $USE_MAINTAINER_MODE = yes; then
4074 MAINTAINER_MODE_TRUE=
4075 MAINTAINER_MODE_FALSE='#'
4076else
4077 MAINTAINER_MODE_TRUE='#'
4078 MAINTAINER_MODE_FALSE=
4079fi
4080
4081 MAINT=$MAINTAINER_MODE_TRUE
2f235b6d 4082
5780a46b 4083
f4c79fef 4084
92eabea2
PE
4085 # Set up safe default values for all subsequent AM_CONDITIONAL tests
4086 # which are themselves conditionally expanded.
4087 ## (Right now, this only matters for enable_wchar_t, but nothing prevents
4088 ## other macros from doing the same. This should be automated.) -pme
ff66d28f 4089 need_libmath=no
ff66d28f 4090
464aea98
JM
4091 # Check for uClibc since Linux platforms use different configuration
4092 # directories depending on the C library in use.
4093 cat >conftest.$ac_ext <<_ACEOF
4094/* confdefs.h. */
4095_ACEOF
4096cat confdefs.h >>conftest.$ac_ext
4097cat >>conftest.$ac_ext <<_ACEOF
4098/* end confdefs.h. */
4099
4100 #include <stdio.h>
4101 #if __UCLIBC__
4102 _using_uclibc
4103 #endif
4104
4105_ACEOF
4106if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4107 $EGREP "_using_uclibc" >/dev/null 2>&1; then
4108 uclibc=yes
4109else
4110 uclibc=no
4111fi
4112rm -f conftest*
4113
4114
ff66d28f
PE
4115 # Find platform-specific directories containing configuration info.
4116 # Also possibly modify flags used elsewhere, as needed by the platform.
4117
4118 . $glibcxx_srcdir/configure.host
4119 { echo "$as_me:$LINENO: CPU config directory is $cpu_include_dir" >&5
4120echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
4121 { echo "$as_me:$LINENO: OS config directory is $os_include_dir" >&5
4122echo "$as_me: OS config directory is $os_include_dir" >&6;}
4123
4124
4125
1cf3d07d
SE
4126enable_dlopen=yes
4127
4128
4129
4130
4131
4132macro_version='2.1a'
4133macro_revision='1.2435'
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146ltmain="$ac_aux_dir/ltmain.sh"
4147
4148# Set options
4149
4150
4151enable_win32_dll=no
4152
ff66d28f 4153
b2dad0e3
BK
4154# Check whether --enable-shared or --disable-shared was given.
4155if test "${enable_shared+set}" = set; then
4156 enableval="$enable_shared"
4157 p=${PACKAGE-default}
1cf3d07d
SE
4158 case $enableval in
4159 yes) enable_shared=yes ;;
4160 no) enable_shared=no ;;
4161 *)
4162 enable_shared=no
4163 # Look at the argument we got. We use all the common list separators.
4164 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4165 for pkg in $enableval; do
4166 IFS="$lt_save_ifs"
4167 if test "X$pkg" = "X$p"; then
4168 enable_shared=yes
4169 fi
4170 done
4171 IFS="$lt_save_ifs"
4172 ;;
4173 esac
b2dad0e3
BK
4174else
4175 enable_shared=yes
ff66d28f 4176fi;
1cf3d07d
SE
4177
4178
4179
4180
4181
4182
4183
4184
b2dad0e3
BK
4185# Check whether --enable-static or --disable-static was given.
4186if test "${enable_static+set}" = set; then
4187 enableval="$enable_static"
4188 p=${PACKAGE-default}
1cf3d07d
SE
4189 case $enableval in
4190 yes) enable_static=yes ;;
4191 no) enable_static=no ;;
4192 *)
4193 enable_static=no
4194 # Look at the argument we got. We use all the common list separators.
4195 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4196 for pkg in $enableval; do
4197 IFS="$lt_save_ifs"
4198 if test "X$pkg" = "X$p"; then
4199 enable_static=yes
4200 fi
4201 done
4202 IFS="$lt_save_ifs"
4203 ;;
4204 esac
b2dad0e3
BK
4205else
4206 enable_static=yes
ff66d28f 4207fi;
1cf3d07d
SE
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217# Check whether --with-pic or --without-pic was given.
4218if test "${with_pic+set}" = set; then
4219 withval="$with_pic"
4220 pic_mode="$withval"
4221else
4222 pic_mode=default
4223fi;
4224
4225test -z "$pic_mode" && pic_mode=default
4226
4227
4228
4229
4230
4231
4232
b2dad0e3
BK
4233# Check whether --enable-fast-install or --disable-fast-install was given.
4234if test "${enable_fast_install+set}" = set; then
4235 enableval="$enable_fast_install"
4236 p=${PACKAGE-default}
1cf3d07d
SE
4237 case $enableval in
4238 yes) enable_fast_install=yes ;;
4239 no) enable_fast_install=no ;;
4240 *)
4241 enable_fast_install=no
4242 # Look at the argument we got. We use all the common list separators.
4243 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4244 for pkg in $enableval; do
4245 IFS="$lt_save_ifs"
4246 if test "X$pkg" = "X$p"; then
4247 enable_fast_install=yes
4248 fi
4249 done
4250 IFS="$lt_save_ifs"
4251 ;;
4252 esac
b2dad0e3
BK
4253else
4254 enable_fast_install=yes
ff66d28f 4255fi;
b2dad0e3 4256
1cf3d07d
SE
4257
4258
4259
4260
4261
4262
4263
4264echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4265echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4266if test "${lt_cv_path_SED+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4268else
4269 # Loop through the user's path and test for sed and gsed.
4270# Then use that list of sed's as ones to test for truncation.
4271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272for as_dir in $PATH
4273do
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 for lt_ac_prog in sed gsed; do
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4279 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4280 fi
4281 done
4282 done
4283done
4284IFS=$as_save_IFS
4285lt_ac_max=0
4286lt_ac_count=0
4287# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4288# along with /bin/sed that truncates output.
4289for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4290 test ! -f $lt_ac_sed && continue
4291 cat /dev/null > conftest.in
4292 lt_ac_count=0
4293 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4294 # Check for GNU sed and select it if it is found.
4295 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4296 lt_cv_path_SED=$lt_ac_sed
4297 break
4298 fi
4299 while true; do
4300 cat conftest.in conftest.in >conftest.tmp
4301 mv conftest.tmp conftest.in
4302 cp conftest.in conftest.nl
4303 echo >>conftest.nl
4304 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4305 cmp -s conftest.out conftest.nl || break
4306 # 10000 chars as input seems more than enough
4307 test $lt_ac_count -gt 10 && break
4308 lt_ac_count=`expr $lt_ac_count + 1`
4309 if test $lt_ac_count -gt $lt_ac_max; then
4310 lt_ac_max=$lt_ac_count
4311 lt_cv_path_SED=$lt_ac_sed
4312 fi
4313 done
4314done
4315
4316fi
4317
4318SED=$lt_cv_path_SED
4319
4320echo "$as_me:$LINENO: result: $SED" >&5
4321echo "${ECHO_T}$SED" >&6
4322
4323test -z "$SED" && SED=sed
4324Xsed="$SED -e 1s/^X//"
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336echo "$as_me:$LINENO: checking for fgrep" >&5
4337echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
4338if test "${ac_cv_prog_fgrep+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4340else
4341 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
4342 then ac_cv_prog_fgrep='grep -F'
4343 else ac_cv_prog_fgrep='fgrep'
4344 fi
4345fi
4346echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
4347echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
4348 FGREP=$ac_cv_prog_fgrep
4349
4350
4351test -z "$GREP" && GREP=grep
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
b2dad0e3
BK
4371# Check whether --with-gnu-ld or --without-gnu-ld was given.
4372if test "${with_gnu_ld+set}" = set; then
4373 withval="$with_gnu_ld"
4374 test "$withval" = no || with_gnu_ld=yes
4375else
4376 with_gnu_ld=no
ff66d28f 4377fi;
b2dad0e3 4378ac_prog=ld
c21b6f87 4379if test "$GCC" = yes; then
b2dad0e3 4380 # Check if gcc -print-prog-name=ld gives a path.
1cf3d07d
SE
4381 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4382echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3df64633
AO
4383 case $host in
4384 *-*-mingw*)
4385 # gcc leaves a trailing carriage return which upsets mingw
4386 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4387 *)
4388 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4389 esac
c21b6f87 4390 case $ac_prog in
b2dad0e3 4391 # Accept absolute paths.
1cf3d07d 4392 [\\/]* | ?:[\\/]*)
b2dad0e3 4393 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
4394 # Canonicalize the pathname of ld
4395 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4396 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4397 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
b2dad0e3
BK
4398 done
4399 test -z "$LD" && LD="$ac_prog"
4400 ;;
4401 "")
4402 # If it fails, then pretend we aren't using GCC.
4403 ac_prog=ld
4404 ;;
4405 *)
4406 # If it is relative, then search for the first ld in PATH.
4407 with_gnu_ld=unknown
4408 ;;
4409 esac
4410elif test "$with_gnu_ld" = yes; then
ff66d28f
PE
4411 echo "$as_me:$LINENO: checking for GNU ld" >&5
4412echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
b2dad0e3 4413else
ff66d28f
PE
4414 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4415echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
b2dad0e3 4416fi
ff66d28f
PE
4417if test "${lt_cv_path_LD+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3
BK
4419else
4420 if test -z "$LD"; then
1cf3d07d 4421 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
b2dad0e3 4422 for ac_dir in $PATH; do
1cf3d07d 4423 IFS="$lt_save_ifs"
b2dad0e3 4424 test -z "$ac_dir" && ac_dir=.
3840fa2a 4425 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
c21b6f87 4426 lt_cv_path_LD="$ac_dir/$ac_prog"
b2dad0e3 4427 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 4428 # but apparently some variants of GNU ld only accept -v.
b2dad0e3 4429 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
4430 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4431 *GNU* | *'with BFD'*)
b2dad0e3 4432 test "$with_gnu_ld" != no && break
1cf3d07d
SE
4433 ;;
4434 *)
b2dad0e3 4435 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
4436 ;;
4437 esac
b2dad0e3
BK
4438 fi
4439 done
1cf3d07d 4440 IFS="$lt_save_ifs"
b2dad0e3 4441else
c21b6f87 4442 lt_cv_path_LD="$LD" # Let the user override the test with a path.
b2dad0e3
BK
4443fi
4444fi
4445
c21b6f87 4446LD="$lt_cv_path_LD"
b2dad0e3 4447if test -n "$LD"; then
ff66d28f
PE
4448 echo "$as_me:$LINENO: result: $LD" >&5
4449echo "${ECHO_T}$LD" >&6
b2dad0e3 4450else
ff66d28f
PE
4451 echo "$as_me:$LINENO: result: no" >&5
4452echo "${ECHO_T}no" >&6
b2dad0e3 4453fi
ff66d28f
PE
4454test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4455echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4456 { (exit 1); exit 1; }; }
4457echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4458echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4459if test "${lt_cv_prog_gnu_ld+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3 4461else
1cf3d07d
SE
4462 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4463case `$LD -v 2>&1 </dev/null` in
4464*GNU* | *'with BFD'*)
c21b6f87 4465 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
4466 ;;
4467*)
c21b6f87 4468 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
4469 ;;
4470esac
b2dad0e3 4471fi
ff66d28f
PE
4472echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4473echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
c21b6f87 4474with_gnu_ld=$lt_cv_prog_gnu_ld
3df64633 4475
b2dad0e3
BK
4476
4477
1cf3d07d
SE
4478
4479
4480
4481
4482
4483
4484
4485echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4486echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
ff66d28f
PE
4487if test "${lt_cv_path_NM+set}" = set; then
4488 echo $ECHO_N "(cached) $ECHO_C" >&6
b2dad0e3
BK
4489else
4490 if test -n "$NM"; then
4491 # Let the user override the test.
c21b6f87 4492 lt_cv_path_NM="$NM"
b2dad0e3 4493else
1cf3d07d
SE
4494 lt_nm_to_check="${ac_tool_prefix}nm"
4495 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4496 lt_nm_to_check="$lt_nm_to_check nm"
4497 fi
4498 for lt_tmp_nm in $lt_nm_to_check; do
4499 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4500 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4501 IFS="$lt_save_ifs"
4502 test -z "$ac_dir" && ac_dir=.
4503 tmp_nm="$ac_dir/$lt_tmp_nm"
4504 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4505 # Check to see if the nm accepts a BSD-compat flag.
4506 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4507 # nm: unknown option "B" ignored
4508 # Tru64's nm complains that /dev/null is an invalid object file
4509 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4510 */dev/null* | *'Invalid file or object type'*)
4511 lt_cv_path_NM="$tmp_nm -B"
4512 break
4513 ;;
4514 *)
4515 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4516 */dev/null*)
4517 lt_cv_path_NM="$tmp_nm -p"
4518 break
4519 ;;
4520 *)
4521 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4522 continue # so that we can try to find one that supports BSD flags
4523 ;;
4524 esac
4525 ;;
4526 esac
b2dad0e3 4527 fi
1cf3d07d
SE
4528 done
4529 IFS="$lt_save_ifs"
b2dad0e3 4530 done
1cf3d07d 4531 : ${lt_cv_path_NM=no}
b2dad0e3
BK
4532fi
4533fi
1cf3d07d
SE
4534echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4535echo "${ECHO_T}$lt_cv_path_NM" >&6
4536if test "$lt_cv_path_NM" != "no"; then
4537 NM="$lt_cv_path_NM"
4538else
4539 # Didn't find any BSD compatible name lister, look for dumpbin.
4540 if test -n "$ac_tool_prefix"; then
4541 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4542 do
4543 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4544set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4545echo "$as_me:$LINENO: checking for $ac_word" >&5
4546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4547if test "${ac_cv_prog_DUMPBIN+set}" = set; then
ff66d28f 4548 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 4549else
1cf3d07d
SE
4550 if test -n "$DUMPBIN"; then
4551 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4552else
4553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554for as_dir in $PATH
4555do
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4560 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 break 2
4563 fi
4564done
4565done
3df64633 4566
1cf3d07d
SE
4567fi
4568fi
4569DUMPBIN=$ac_cv_prog_DUMPBIN
4570if test -n "$DUMPBIN"; then
4571 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4572echo "${ECHO_T}$DUMPBIN" >&6
4573else
4574 echo "$as_me:$LINENO: result: no" >&5
4575echo "${ECHO_T}no" >&6
4576fi
c21b6f87 4577
1cf3d07d
SE
4578 test -n "$DUMPBIN" && break
4579 done
4580fi
4581if test -z "$DUMPBIN"; then
4582 ac_ct_DUMPBIN=$DUMPBIN
4583 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4584do
4585 # Extract the first word of "$ac_prog", so it can be a program name with args.
4586set dummy $ac_prog; ac_word=$2
4587echo "$as_me:$LINENO: checking for $ac_word" >&5
4588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4589if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4590 echo $ECHO_N "(cached) $ECHO_C" >&6
4591else
4592 if test -n "$ac_ct_DUMPBIN"; then
4593 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4594else
4595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596for as_dir in $PATH
4597do
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4602 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 break 2
3df64633 4605 fi
1cf3d07d
SE
4606done
4607done
3df64633 4608
1cf3d07d
SE
4609fi
4610fi
4611ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4612if test -n "$ac_ct_DUMPBIN"; then
4613 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4614echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
4615else
4616 echo "$as_me:$LINENO: result: no" >&5
4617echo "${ECHO_T}no" >&6
4618fi
3df64633 4619
1cf3d07d
SE
4620 test -n "$ac_ct_DUMPBIN" && break
4621done
4622test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3df64633 4623
1cf3d07d
SE
4624 DUMPBIN=$ac_ct_DUMPBIN
4625fi
3df64633 4626
3df64633 4627
1cf3d07d
SE
4628 if test "$DUMPBIN" != ":"; then
4629 NM="$DUMPBIN"
3df64633 4630 fi
1cf3d07d
SE
4631fi
4632test -z "$NM" && NM=nm
3df64633 4633
3df64633 4634
3df64633 4635
3df64633 4636
bfa1e6b1 4637
3df64633 4638
1cf3d07d
SE
4639echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4640echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
4641if test "${lt_cv_nm_interface+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4643else
4644 lt_cv_nm_interface="BSD nm"
4645 echo "int some_variable = 0;" > conftest.$ac_ext
4646 (eval echo "\"\$as_me:4646: $ac_compile\"" >&5)
4647 (eval "$ac_compile" 2>conftest.err)
4648 cat conftest.err >&5
4649 (eval echo "\"\$as_me:4649: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4650 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4651 cat conftest.err >&5
4652 (eval echo "\"\$as_me:4652: output\"" >&5)
4653 cat conftest.out >&5
4654 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4655 lt_cv_nm_interface="MS dumpbin"
4656 fi
4657 rm -f conftest*
3df64633 4658fi
1cf3d07d
SE
4659echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4660echo "${ECHO_T}$lt_cv_nm_interface" >&6
3df64633 4661
6dab073b
MS
4662# find the maximum length of command line arguments
4663echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4664echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4665if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4667else
4668 i=0
4669 teststring="ABCD"
4670
4671 case $build_os in
4672 msdosdjgpp*)
4673 # On DJGPP, this test can blow up pretty badly due to problems in libc
4674 # (any single argument exceeding 2000 bytes causes a buffer overrun
4675 # during glob expansion). Even if it were fixed, the result of this
4676 # check would be larger than it should be.
4677 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4678 ;;
4679
1cf3d07d
SE
4680 gnu*)
4681 # Under GNU Hurd, this test is not required because there is
4682 # no limit to the length of command line arguments.
4683 # Libtool will interpret -1 as no limit whatsoever
4684 lt_cv_sys_max_cmd_len=-1;
4685 ;;
4686
6dab073b
MS
4687 cygwin* | mingw*)
4688 # On Win9x/ME, this test blows up -- it succeeds, but takes
4689 # about 5 minutes as the teststring grows exponentially.
4690 # Worse, since 9x/ME are not pre-emptively multitasking,
4691 # you end up with a "frozen" computer, even though with patience
4692 # the test eventually succeeds (with a max line length of 256k).
4693 # Instead, let's just punt: use the minimum linelength reported by
4694 # all of the supported platforms: 8192 (on NT/2K/XP).
4695 lt_cv_sys_max_cmd_len=8192;
4696 ;;
4697
4698 amigaos*)
4699 # On AmigaOS with pdksh, this test takes hours, literally.
4700 # So we just punt and use a minimum line length of 8192.
4701 lt_cv_sys_max_cmd_len=8192;
4702 ;;
4703
4704 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4705 # This has been around since 386BSD, at least. Likely further.
4706 if test -x /sbin/sysctl; then
4707 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4708 elif test -x /usr/sbin/sysctl; then
4709 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4710 else
1cf3d07d 4711 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6dab073b
MS
4712 fi
4713 # And add a safety zone
4714 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4715 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4716 ;;
1cf3d07d
SE
4717
4718 interix*)
4719 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4720 lt_cv_sys_max_cmd_len=196608
4721 ;;
4722
4723 osf*)
4724 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4725 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4726 # nice to cause kernel panics so lets avoid the loop below.
4727 # First set a reasonable default.
4728 lt_cv_sys_max_cmd_len=16384
4729 #
4730 if test -x /sbin/sysconfig; then
4731 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4732 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4733 esac
4734 fi
4735 ;;
4736 sco3.2v5*)
4737 lt_cv_sys_max_cmd_len=102400
4738 ;;
4739 sysv5* | sco5v6* | sysv4.2uw2*)
4740 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4741 if test -n "$kargmax"; then
4742 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4743 else
4744 lt_cv_sys_max_cmd_len=32768
4745 fi
4746 ;;
4747 *)
4748 # Make teststring a little bigger before we do anything with it.
4749 # a 1K string should be a reasonable start.
4750 for i in 1 2 3 4 5 6 7 8 ; do
4751 teststring=$teststring$teststring
4752 done
4753 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4754 # If test is not a shell built-in, we'll probably end up computing a
4755 # maximum length that is only half of the actual maximum length, but
4756 # we can't tell.
4757 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4758 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4759 test $i != 17 # 1/2 MB should be enough
4760 do
4761 i=`expr $i + 1`
4762 teststring=$teststring$teststring
4763 done
4764 # Only check the string length outside the loop.
4765 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4766 teststring=
4767 # Add a significant safety factor because C++ compilers can tack on massive
4768 # amounts of additional arguments before passing them to the linker.
4769 # It appears as though 1/2 is a usable value.
4770 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4771 ;;
6dab073b
MS
4772 esac
4773
4774fi
4775
1cf3d07d 4776if test -n $lt_cv_sys_max_cmd_len ; then
6dab073b
MS
4777 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4778echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4779else
4780 echo "$as_me:$LINENO: result: none" >&5
4781echo "${ECHO_T}none" >&6
4782fi
1cf3d07d 4783max_cmd_len=$lt_cv_sys_max_cmd_len
6dab073b
MS
4784
4785
1cf3d07d
SE
4786
4787
4788
4789
4790
4791: ${CP="cp -f"}
4792: ${MV="mv -f"}
4793: ${RM="rm -f"}
4794
4795echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4796echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4797# Try some XSI features
4798xsi_shell=no
4799( _lt_dummy="a/b/c"
4800 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4801 = c,a/b,, ) >/dev/null 2>&1 \
4802 && xsi_shell=yes
4803echo "$as_me:$LINENO: result: $xsi_shell" >&5
4804echo "${ECHO_T}$xsi_shell" >&6
4805
4806
4807echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4808echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4809lt_shell_append=no
4810( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4811 >/dev/null 2>&1 \
4812 && lt_shell_append=yes
4813echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4814echo "${ECHO_T}$lt_shell_append" >&6
4815
4816
4817if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4818 lt_unset=unset
3df64633 4819else
1cf3d07d
SE
4820 lt_unset=false
4821fi
3df64633 4822
3df64633 4823
1cf3d07d
SE
4824
4825
4826
4827# test EBCDIC or ASCII
4828case `echo X|tr X '\101'` in
4829 A) # ASCII based system
4830 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4831 lt_SP2NL='tr \040 \012'
4832 lt_NL2SP='tr \015\012 \040\040'
4833 ;;
4834 *) # EBCDIC based system
4835 lt_SP2NL='tr \100 \n'
4836 lt_NL2SP='tr \r\n \100\100'
3df64633
AO
4837 ;;
4838esac
3df64633 4839
1cf3d07d
SE
4840
4841
4842
4843
4844
4845
4846
4847
4848echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4849echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4850if test "${lt_cv_ld_reload_flag+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 4852else
1cf3d07d 4853 lt_cv_ld_reload_flag='-r'
3df64633 4854fi
1cf3d07d
SE
4855echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4856echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4857reload_flag=$lt_cv_ld_reload_flag
4858case $reload_flag in
4859"" | " "*) ;;
4860*) reload_flag=" $reload_flag" ;;
4861esac
4862reload_cmds='$LD$reload_flag -o $output$reload_objs'
4863case $host_os in
4864 darwin*)
4865 if test "$GCC" = yes; then
4866 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4867 else
4868 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4869 fi
4870 ;;
4871esac
3df64633 4872
1cf3d07d
SE
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4883echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4884if test "${lt_cv_deplibs_check_method+set}" = set; then
ff66d28f 4885 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 4886else
1cf3d07d
SE
4887 lt_cv_file_magic_cmd='$MAGIC_CMD'
4888lt_cv_file_magic_test_file=
4889lt_cv_deplibs_check_method='unknown'
4890# Need to set the preceding variable on all platforms that support
4891# interlibrary dependencies.
4892# 'none' -- dependencies not supported.
4893# `unknown' -- same as none, but documents that we really don't know.
4894# 'pass_all' -- all dependencies passed with no checks.
4895# 'test_compile' -- check by making test program.
4896# 'file_magic [[regex]]' -- check by looking for files in library path
4897# which responds to the $file_magic_cmd with a given extended regex.
4898# If you have `file' or equivalent on your system and you're not sure
4899# whether `pass_all' will *always* work, you probably want this one.
4900
4901case $host_os in
4902aix4* | aix5*)
4903 lt_cv_deplibs_check_method=pass_all
4904 ;;
4905
4906beos*)
4907 lt_cv_deplibs_check_method=pass_all
4908 ;;
4909
4910bsdi[45]*)
4911 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4912 lt_cv_file_magic_cmd='/usr/bin/file -L'
4913 lt_cv_file_magic_test_file=/shlib/libc.so
4914 ;;
4915
4916cygwin*)
4917 # func_win32_libid is a shell function defined in ltmain.sh
4918 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4919 lt_cv_file_magic_cmd='func_win32_libid'
4920 ;;
4921
4922mingw* | pw32*)
4923 # Base MSYS/MinGW do not provide the 'file' command needed by
4924 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4925 # unless we find 'file', for example because we are cross-compiling.
4926 if ( file / ) >/dev/null 2>&1; then
4927 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4928 lt_cv_file_magic_cmd='func_win32_libid'
4929 else
4930 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4931 lt_cv_file_magic_cmd='$OBJDUMP -f'
4932 fi
4933 ;;
4934
4935darwin* | rhapsody*)
4936 lt_cv_deplibs_check_method=pass_all
4937 ;;
4938
4939freebsd* | dragonfly*)
4940 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4941 case $host_cpu in
4942 i*86 )
4943 # Not sure whether the presence of OpenBSD here was a mistake.
4944 # Let's accept both of them until this is cleared up.
4945 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4946 lt_cv_file_magic_cmd=/usr/bin/file
4947 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4948 ;;
4949 esac
4950 else
4951 lt_cv_deplibs_check_method=pass_all
4952 fi
3df64633 4953 ;;
1cf3d07d
SE
4954
4955gnu*)
4956 lt_cv_deplibs_check_method=pass_all
3df64633 4957 ;;
1cf3d07d
SE
4958
4959hpux10.20* | hpux11*)
4960 lt_cv_file_magic_cmd=/usr/bin/file
4961 case $host_cpu in
4962 ia64*)
4963 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4964 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4965 ;;
4966 hppa*64*)
4967 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]'
4968 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4969 ;;
3df64633 4970 *)
1cf3d07d
SE
4971 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4972 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4973 ;;
4974 esac
4975 ;;
3df64633 4976
1cf3d07d
SE
4977interix[3-9]*)
4978 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4980 ;;
3df64633 4981
1cf3d07d
SE
4982irix5* | irix6* | nonstopux*)
4983 case $LD in
4984 *-32|*"-32 ") libmagic=32-bit;;
4985 *-n32|*"-n32 ") libmagic=N32;;
4986 *-64|*"-64 ") libmagic=64-bit;;
4987 *) libmagic=never-match;;
4988 esac
4989 lt_cv_deplibs_check_method=pass_all
3df64633 4990 ;;
3df64633 4991
1cf3d07d
SE
4992# This must be Linux ELF.
4993linux* | k*bsd*-gnu)
4994 lt_cv_deplibs_check_method=pass_all
4995 ;;
3df64633 4996
1cf3d07d
SE
4997netbsd*)
4998 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3df64633 5000 else
1cf3d07d 5001 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3df64633 5002 fi
1cf3d07d
SE
5003 ;;
5004
5005newos6*)
5006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5007 lt_cv_file_magic_cmd=/usr/bin/file
5008 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5009 ;;
5010
5011*nto* | *qnx*)
5012 lt_cv_deplibs_check_method=pass_all
5013 ;;
3df64633 5014
1cf3d07d
SE
5015openbsd*)
5016 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5017 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5018 else
5019 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3df64633
AO
5020 fi
5021 ;;
1cf3d07d
SE
5022
5023osf3* | osf4* | osf5*)
5024 lt_cv_deplibs_check_method=pass_all
5025 ;;
5026
5027rdos*)
5028 lt_cv_deplibs_check_method=pass_all
5029 ;;
5030
5031solaris*)
5032 lt_cv_deplibs_check_method=pass_all
5033 ;;
5034
5035sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5036 lt_cv_deplibs_check_method=pass_all
5037 ;;
5038
5039sysv4 | sysv4.3*)
5040 case $host_vendor in
5041 motorola)
5042 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]'
5043 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5044 ;;
5045 ncr)
5046 lt_cv_deplibs_check_method=pass_all
5047 ;;
5048 sequent)
5049 lt_cv_file_magic_cmd='/bin/file'
5050 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5051 ;;
5052 sni)
5053 lt_cv_file_magic_cmd='/bin/file'
5054 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5055 lt_cv_file_magic_test_file=/lib/libc.so
5056 ;;
5057 siemens)
5058 lt_cv_deplibs_check_method=pass_all
5059 ;;
5060 pc)
5061 lt_cv_deplibs_check_method=pass_all
5062 ;;
5063 esac
5064 ;;
5065
5066tpf*)
5067 lt_cv_deplibs_check_method=pass_all
5068 ;;
3df64633
AO
5069esac
5070
1cf3d07d
SE
5071fi
5072echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5073echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5074file_magic_cmd=$lt_cv_file_magic_cmd
5075deplibs_check_method=$lt_cv_deplibs_check_method
5076test -z "$deplibs_check_method" && deplibs_check_method=unknown
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
ff66d28f 5089if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
5090 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5091set dummy ${ac_tool_prefix}ar; ac_word=$2
ff66d28f
PE
5092echo "$as_me:$LINENO: checking for $ac_word" >&5
5093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 5094if test "${ac_cv_prog_AR+set}" = set; then
ff66d28f 5095 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 5096else
1cf3d07d
SE
5097 if test -n "$AR"; then
5098 ac_cv_prog_AR="$AR" # Let the user override the test.
3df64633 5099else
ff66d28f
PE
5100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101for as_dir in $PATH
5102do
5103 IFS=$as_save_IFS
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 5107 ac_cv_prog_AR="${ac_tool_prefix}ar"
ff66d28f
PE
5108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5109 break 2
5110 fi
5111done
5112done
5113
3df64633
AO
5114fi
5115fi
1cf3d07d
SE
5116AR=$ac_cv_prog_AR
5117if test -n "$AR"; then
5118 echo "$as_me:$LINENO: result: $AR" >&5
5119echo "${ECHO_T}$AR" >&6
3df64633 5120else
ff66d28f
PE
5121 echo "$as_me:$LINENO: result: no" >&5
5122echo "${ECHO_T}no" >&6
3df64633
AO
5123fi
5124
ff66d28f 5125fi
1cf3d07d
SE
5126if test -z "$ac_cv_prog_AR"; then
5127 ac_ct_AR=$AR
5128 # Extract the first word of "ar", so it can be a program name with args.
5129set dummy ar; ac_word=$2
ff66d28f
PE
5130echo "$as_me:$LINENO: checking for $ac_word" >&5
5131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 5132if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
ff66d28f 5133 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 5134else
1cf3d07d
SE
5135 if test -n "$ac_ct_AR"; then
5136 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3df64633 5137else
ff66d28f
PE
5138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139for as_dir in $PATH
5140do
5141 IFS=$as_save_IFS
5142 test -z "$as_dir" && as_dir=.
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 5145 ac_cv_prog_ac_ct_AR="ar"
ff66d28f
PE
5146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 break 2
5148 fi
5149done
5150done
5151
1cf3d07d 5152 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
3df64633
AO
5153fi
5154fi
1cf3d07d
SE
5155ac_ct_AR=$ac_cv_prog_ac_ct_AR
5156if test -n "$ac_ct_AR"; then
5157 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5158echo "${ECHO_T}$ac_ct_AR" >&6
3df64633 5159else
ff66d28f
PE
5160 echo "$as_me:$LINENO: result: no" >&5
5161echo "${ECHO_T}no" >&6
3df64633
AO
5162fi
5163
1cf3d07d 5164 AR=$ac_ct_AR
3df64633 5165else
1cf3d07d 5166 AR="$ac_cv_prog_AR"
3df64633
AO
5167fi
5168
1cf3d07d
SE
5169test -z "$AR" && AR=ar
5170test -z "$AR_FLAGS" && AR_FLAGS=cru
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
ff66d28f
PE
5182if test -n "$ac_tool_prefix"; then
5183 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3df64633 5184set dummy ${ac_tool_prefix}strip; ac_word=$2
ff66d28f
PE
5185echo "$as_me:$LINENO: checking for $ac_word" >&5
5186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5187if test "${ac_cv_prog_STRIP+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633
AO
5189else
5190 if test -n "$STRIP"; then
5191 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5192else
ff66d28f
PE
5193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194for as_dir in $PATH
5195do
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 break 2
5203 fi
5204done
5205done
5206
3df64633
AO
5207fi
5208fi
ff66d28f 5209STRIP=$ac_cv_prog_STRIP
3df64633 5210if test -n "$STRIP"; then
ff66d28f
PE
5211 echo "$as_me:$LINENO: result: $STRIP" >&5
5212echo "${ECHO_T}$STRIP" >&6
3df64633 5213else
ff66d28f
PE
5214 echo "$as_me:$LINENO: result: no" >&5
5215echo "${ECHO_T}no" >&6
3df64633
AO
5216fi
5217
ff66d28f 5218fi
3df64633 5219if test -z "$ac_cv_prog_STRIP"; then
ff66d28f 5220 ac_ct_STRIP=$STRIP
3df64633
AO
5221 # Extract the first word of "strip", so it can be a program name with args.
5222set dummy strip; ac_word=$2
ff66d28f
PE
5223echo "$as_me:$LINENO: checking for $ac_word" >&5
5224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5225if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 5227else
ff66d28f
PE
5228 if test -n "$ac_ct_STRIP"; then
5229 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3df64633 5230else
ff66d28f
PE
5231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232for as_dir in $PATH
5233do
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_prog_ac_ct_STRIP="strip"
5239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 break 2
5241 fi
5242done
5243done
5244
5245 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3df64633
AO
5246fi
5247fi
ff66d28f
PE
5248ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5249if test -n "$ac_ct_STRIP"; then
5250 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5251echo "${ECHO_T}$ac_ct_STRIP" >&6
3df64633 5252else
ff66d28f
PE
5253 echo "$as_me:$LINENO: result: no" >&5
5254echo "${ECHO_T}no" >&6
3df64633
AO
5255fi
5256
ff66d28f 5257 STRIP=$ac_ct_STRIP
3df64633 5258else
ff66d28f 5259 STRIP="$ac_cv_prog_STRIP"
3df64633
AO
5260fi
5261
1cf3d07d 5262test -z "$STRIP" && STRIP=:
b2dad0e3 5263
ff66d28f 5264
3840fa2a 5265
3840fa2a 5266
b2dad0e3 5267
ff66d28f 5268
1cf3d07d
SE
5269if test -n "$ac_tool_prefix"; then
5270 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5271set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5272echo "$as_me:$LINENO: checking for $ac_word" >&5
5273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5274if test "${ac_cv_prog_RANLIB+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
3df64633 5276else
1cf3d07d
SE
5277 if test -n "$RANLIB"; then
5278 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5279else
5280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281for as_dir in $PATH
5282do
5283 IFS=$as_save_IFS
5284 test -z "$as_dir" && as_dir=.
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5287 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5289 break 2
b2dad0e3 5290 fi
1cf3d07d
SE
5291done
5292done
b2dad0e3 5293
1cf3d07d
SE
5294fi
5295fi
5296RANLIB=$ac_cv_prog_RANLIB
5297if test -n "$RANLIB"; then
5298 echo "$as_me:$LINENO: result: $RANLIB" >&5
5299echo "${ECHO_T}$RANLIB" >&6
5300else
5301 echo "$as_me:$LINENO: result: no" >&5
5302echo "${ECHO_T}no" >&6
5303fi
38cca750 5304
1cf3d07d
SE
5305fi
5306if test -z "$ac_cv_prog_RANLIB"; then
5307 ac_ct_RANLIB=$RANLIB
5308 # Extract the first word of "ranlib", so it can be a program name with args.
5309set dummy ranlib; ac_word=$2
5310echo "$as_me:$LINENO: checking for $ac_word" >&5
5311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5312if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5314else
5315 if test -n "$ac_ct_RANLIB"; then
5316 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5317else
5318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319for as_dir in $PATH
5320do
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5325 ac_cv_prog_ac_ct_RANLIB="ranlib"
5326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
162c7cd9 5328 fi
1cf3d07d
SE
5329done
5330done
162c7cd9 5331
1cf3d07d
SE
5332 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5333fi
5334fi
5335ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5336if test -n "$ac_ct_RANLIB"; then
5337 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5338echo "${ECHO_T}$ac_ct_RANLIB" >&6
b2dad0e3 5339else
1cf3d07d
SE
5340 echo "$as_me:$LINENO: result: no" >&5
5341echo "${ECHO_T}no" >&6
5342fi
ff66d28f 5343
1cf3d07d
SE
5344 RANLIB=$ac_ct_RANLIB
5345else
5346 RANLIB="$ac_cv_prog_RANLIB"
5347fi
ff66d28f 5348
1cf3d07d 5349test -z "$RANLIB" && RANLIB=:
ff66d28f 5350
1cf3d07d
SE
5351
5352
5353
5354
5355
5356# Determine commands to create old-style static archives.
5357old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5358old_postinstall_cmds='chmod 644 $oldlib'
5359old_postuninstall_cmds=
5360
5361if test -n "$RANLIB"; then
5362 case $host_os in
5363 openbsd*)
5364 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5365 ;;
5366 *)
5367 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5368 ;;
5369 esac
5370 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5371fi
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406# If no C compiler was specified, use CC.
5407LTCC=${LTCC-"$CC"}
5408
5409# If no C compiler flags were specified, use CFLAGS.
5410LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5411
5412# Allow CC to be a program name with arguments.
5413compiler=$CC
5414
5415
5416# Check for command to grab the raw symbol name followed by C symbol from nm.
5417echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5418echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5419if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5421else
5422
5423# These are sane defaults that work on at least a few old systems.
5424# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5425
5426# Character class describing NM global symbol codes.
5427symcode='[BCDEGRST]'
5428
5429# Regexp to match symbols that can be accessed directly from C.
5430sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5431
5432# Define system-specific variables.
5433case $host_os in
5434aix*)
5435 symcode='[BCDT]'
5436 ;;
5437cygwin* | mingw* | pw32*)
5438 symcode='[ABCDGISTW]'
5439 ;;
5440hpux*)
5441 if test "$host_cpu" = ia64; then
5442 symcode='[ABCDEGRST]'
5443 fi
5444 ;;
5445irix* | nonstopux*)
5446 symcode='[BCDEGRST]'
5447 ;;
5448osf*)
5449 symcode='[BCDEGQRST]'
5450 ;;
5451solaris*)
5452 symcode='[BDRT]'
5453 ;;
5454sco3.2v5*)
5455 symcode='[DT]'
5456 ;;
5457sysv4.2uw2*)
5458 symcode='[DT]'
5459 ;;
5460sysv5* | sco5v6* | unixware* | OpenUNIX*)
5461 symcode='[ABDT]'
5462 ;;
5463sysv4)
5464 symcode='[DFNSTU]'
5465 ;;
5466esac
5467
5468# If we're using GNU nm, then use its standard symbol codes.
5469case `$NM -V 2>&1` in
5470*GNU* | *'with BFD'*)
5471 symcode='[ABCDGIRSTW]' ;;
5472esac
5473
5474# Transform an extracted symbol line into a proper C declaration.
5475# Some systems (esp. on ia64) link data and code symbols differently,
5476# so use this general approach.
5477lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5478
5479# Transform an extracted symbol line into symbol name and symbol address
5480lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5481
5482# Handle CRLF in mingw tool chain
5483opt_cr=
5484case $build_os in
5485mingw*)
5486 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5487 ;;
5488esac
5489
5490# Try without a prefix underscore, then with it.
5491for ac_symprfx in "" "_"; do
5492
5493 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5494 symxfrm="\\1 $ac_symprfx\\2 \\2"
5495
5496 # Write the raw and C identifiers.
5497 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5498 # Fake it for dumpbin and say T for any non-static function
5499 # and D for any global variable.
5500 # Also find C++ and __fastcall symbols from MSVC++,
5501 # which start with @ or ?.
5502 lt_cv_sys_global_symbol_pipe="$AWK '"\
5503" {last_section=section; section=\$ 3};"\
5504" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5505" \$ 0!~/External *\|/{next};"\
5506" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5507" {if(hide[section]) next};"\
5508" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5509" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5510" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5511" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5512" ' prfx=^$ac_symprfx"
5513 else
5514 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5515 fi
5516
5517 # Check to see that the pipe works correctly.
5518 pipe_works=no
5519
5520 rm -f conftest*
5521 cat > conftest.$ac_ext <<_LT_EOF
5522#ifdef __cplusplus
5523extern "C" {
5524#endif
5525char nm_test_var;
5526void nm_test_func(void);
5527void nm_test_func(void){}
5528#ifdef __cplusplus
5529}
5530#endif
5531int main(){nm_test_var='a';nm_test_func();return(0);}
5532_LT_EOF
5533
5534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5535 (eval $ac_compile) 2>&5
5536 ac_status=$?
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; then
5539 # Now try to grab the symbols.
5540 nlist=conftest.nm
5541 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5542 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5543 ac_status=$?
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } && test -s "$nlist"; then
5546 # Try sorting and uniquifying the output.
5547 if sort "$nlist" | uniq > "$nlist"T; then
5548 mv -f "$nlist"T "$nlist"
5549 else
5550 rm -f "$nlist"T
5551 fi
5552
5553 # Make sure that we snagged all the symbols we need.
5554 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5555 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5556 cat <<_LT_EOF > conftest.$ac_ext
5557#ifdef __cplusplus
5558extern "C" {
5559#endif
5560
5561_LT_EOF
5562 # Now generate the symbol file.
5563 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5564
5565 cat <<_LT_EOF >> conftest.$ac_ext
5566
5567/* The mapping between symbol names and symbols. */
5568const struct {
5569 const char *name;
5570 void *address;
5571}
5572lt__PROGRAM__LTX_preloaded_symbols[] =
5573{
5574 { "@PROGRAM@", (void *) 0 },
5575_LT_EOF
5576 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5577 cat <<\_LT_EOF >> conftest.$ac_ext
5578 {0, (void *) 0}
5579};
5580
5581/* This works around a problem in FreeBSD linker */
5582#ifdef FREEBSD_WORKAROUND
5583static const void *lt_preloaded_setup() {
5584 return lt__PROGRAM__LTX_preloaded_symbols;
5585}
5586#endif
5587
5588#ifdef __cplusplus
5589}
5590#endif
5591_LT_EOF
5592 # Now try linking the two files.
5593 mv conftest.$ac_objext conftstm.$ac_objext
5594 lt_save_LIBS="$LIBS"
5595 lt_save_CFLAGS="$CFLAGS"
5596 LIBS="conftstm.$ac_objext"
5597 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5599 (eval $ac_link) 2>&5
5600 ac_status=$?
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5603 pipe_works=yes
5604 fi
5605 LIBS="$lt_save_LIBS"
5606 CFLAGS="$lt_save_CFLAGS"
5607 else
5608 echo "cannot find nm_test_func in $nlist" >&5
5609 fi
5610 else
5611 echo "cannot find nm_test_var in $nlist" >&5
5612 fi
5613 else
5614 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5615 fi
5616 else
5617 echo "$progname: failed program was:" >&5
5618 cat conftest.$ac_ext >&5
5619 fi
5620 rm -f conftest* conftst*
5621
5622 # Do not use the global_symbol_pipe unless it works.
5623 if test "$pipe_works" = yes; then
5624 break
5625 else
5626 lt_cv_sys_global_symbol_pipe=
5627 fi
5628done
5629
5630fi
5631
5632if test -z "$lt_cv_sys_global_symbol_pipe"; then
5633 lt_cv_sys_global_symbol_to_cdecl=
5634fi
5635if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5636 echo "$as_me:$LINENO: result: failed" >&5
5637echo "${ECHO_T}failed" >&6
5638else
5639 echo "$as_me:$LINENO: result: ok" >&5
5640echo "${ECHO_T}ok" >&6
5641fi
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5660if test "${enable_libtool_lock+set}" = set; then
5661 enableval="$enable_libtool_lock"
5662
5663fi;
5664test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5665
5666# Some flags need to be propagated to the compiler or linker for good
5667# libtool support.
5668case $host in
5669ia64-*-hpux*)
5670 # Find out which ABI we are using.
5671 echo 'int i;' > conftest.$ac_ext
5672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5673 (eval $ac_compile) 2>&5
5674 ac_status=$?
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); }; then
5677 case `/usr/bin/file conftest.$ac_objext` in
5678 *ELF-32*)
5679 HPUX_IA64_MODE="32"
5680 ;;
5681 *ELF-64*)
5682 HPUX_IA64_MODE="64"
5683 ;;
5684 esac
5685 fi
5686 rm -rf conftest*
5687 ;;
5688*-*-irix6*)
5689 # Find out which ABI we are using.
5690 echo '#line 5690 "configure"' > conftest.$ac_ext
5691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5692 (eval $ac_compile) 2>&5
5693 ac_status=$?
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); }; then
5696 if test "$lt_cv_prog_gnu_ld" = yes; then
5697 case `/usr/bin/file conftest.$ac_objext` in
5698 *32-bit*)
5699 LD="${LD-ld} -melf32bsmip"
5700 ;;
5701 *N32*)
5702 LD="${LD-ld} -melf32bmipn32"
5703 ;;
5704 *64-bit*)
5705 LD="${LD-ld} -melf64bmip"
5706 ;;
5707 esac
5708 else
5709 case `/usr/bin/file conftest.$ac_objext` in
5710 *32-bit*)
5711 LD="${LD-ld} -32"
5712 ;;
5713 *N32*)
5714 LD="${LD-ld} -n32"
5715 ;;
5716 *64-bit*)
5717 LD="${LD-ld} -64"
5718 ;;
5719 esac
5720 fi
5721 fi
5722 rm -rf conftest*
5723 ;;
5724
5725x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5726s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5727 # Find out which ABI we are using.
5728 echo 'int i;' > conftest.$ac_ext
5729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5730 (eval $ac_compile) 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; then
5734 case `/usr/bin/file conftest.o` in
5735 *32-bit*)
5736 case $host in
5737 x86_64-*kfreebsd*-gnu)
5738 LD="${LD-ld} -m elf_i386_fbsd"
5739 ;;
5740 x86_64-*linux*)
5741 LD="${LD-ld} -m elf_i386"
5742 ;;
5743 ppc64-*linux*|powerpc64-*linux*)
5744 LD="${LD-ld} -m elf32ppclinux"
5745 ;;
5746 s390x-*linux*)
5747 LD="${LD-ld} -m elf_s390"
5748 ;;
5749 sparc64-*linux*)
5750 LD="${LD-ld} -m elf32_sparc"
5751 ;;
5752 esac
5753 ;;
5754 *64-bit*)
5755 case $host in
5756 x86_64-*kfreebsd*-gnu)
5757 LD="${LD-ld} -m elf_x86_64_fbsd"
5758 ;;
5759 x86_64-*linux*)
5760 LD="${LD-ld} -m elf_x86_64"
5761 ;;
5762 ppc*-*linux*|powerpc*-*linux*)
5763 LD="${LD-ld} -m elf64ppc"
5764 ;;
5765 s390*-*linux*|s390*-*tpf*)
5766 LD="${LD-ld} -m elf64_s390"
5767 ;;
5768 sparc*-*linux*)
5769 LD="${LD-ld} -m elf64_sparc"
5770 ;;
5771 esac
5772 ;;
5773 esac
5774 fi
5775 rm -rf conftest*
5776 ;;
5777
5778*-*-sco3.2v5*)
5779 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5780 SAVE_CFLAGS="$CFLAGS"
5781 CFLAGS="$CFLAGS -belf"
5782 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5783echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5784if test "${lt_cv_cc_needs_belf+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5786else
5787 ac_ext=c
5788ac_cpp='$CPP $CPPFLAGS'
5789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5791ac_compiler_gnu=$ac_cv_c_compiler_gnu
5792
5793 if test x$gcc_no_link = xyes; then
5794 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5795echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5796 { (exit 1); exit 1; }; }
5797fi
5798cat >conftest.$ac_ext <<_ACEOF
5799/* confdefs.h. */
ff66d28f
PE
5800_ACEOF
5801cat confdefs.h >>conftest.$ac_ext
5802cat >>conftest.$ac_ext <<_ACEOF
5803/* end confdefs.h. */
3df64633 5804
ff66d28f
PE
5805int
5806main ()
5807{
b2dad0e3 5808
ff66d28f
PE
5809 ;
5810 return 0;
5811}
5812_ACEOF
5813rm -f conftest.$ac_objext conftest$ac_exeext
5814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ec2075e9 5815 (eval $ac_link) 2>conftest.er1
ff66d28f 5816 ac_status=$?
ec2075e9
BK
5817 grep -v '^ *+' conftest.er1 >conftest.err
5818 rm -f conftest.er1
5819 cat conftest.err >&5
ff66d28f
PE
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); } &&
5b043f08
GK
5822 { ac_try='test -z "$ac_c_werror_flag"
5823 || test ! -s conftest.err'
ec2075e9
BK
5824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5825 (eval $ac_try) 2>&5
5826 ac_status=$?
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); }; } &&
5829 { ac_try='test -s conftest$ac_exeext'
ff66d28f
PE
5830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5831 (eval $ac_try) 2>&5
5832 ac_status=$?
5833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); }; }; then
b2dad0e3
BK
5835 lt_cv_cc_needs_belf=yes
5836else
ff66d28f
PE
5837 echo "$as_me: failed program was:" >&5
5838sed 's/^/| /' conftest.$ac_ext >&5
5839
5840lt_cv_cc_needs_belf=no
b2dad0e3 5841fi
ec2075e9
BK
5842rm -f conftest.err conftest.$ac_objext \
5843 conftest$ac_exeext conftest.$ac_ext
3df64633 5844 ac_ext=c
3df64633 5845ac_cpp='$CPP $CPPFLAGS'
ff66d28f
PE
5846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5848ac_compiler_gnu=$ac_cv_c_compiler_gnu
3df64633 5849
b2dad0e3 5850fi
ff66d28f
PE
5851echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5852echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
b2dad0e3
BK
5853 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5854 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5855 CFLAGS="$SAVE_CFLAGS"
5856 fi
5857 ;;
1cf3d07d
SE
5858sparc*-*solaris*)
5859 # Find out which ABI we are using.
5860 echo 'int i;' > conftest.$ac_ext
5861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5862 (eval $ac_compile) 2>&5
5863 ac_status=$?
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }; then
5866 case `/usr/bin/file conftest.o` in
5867 *64-bit*)
5868 case $lt_cv_prog_gnu_ld in
5869 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5870 *) LD="${LD-ld} -64" ;;
5871 esac
5872 ;;
5873 esac
5874 fi
5875 rm -rf conftest*
5876 ;;
b2dad0e3
BK
5877esac
5878
1cf3d07d 5879need_locks="$enable_libtool_lock"
b2dad0e3 5880
1cf3d07d
SE
5881echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5882echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5883if test "${ac_cv_header_stdc+set}" = set; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5885else
5886 cat >conftest.$ac_ext <<_ACEOF
5887/* confdefs.h. */
ff66d28f 5888_ACEOF
1cf3d07d
SE
5889cat confdefs.h >>conftest.$ac_ext
5890cat >>conftest.$ac_ext <<_ACEOF
5891/* end confdefs.h. */
5892#include <stdlib.h>
5893#include <stdarg.h>
5894#include <string.h>
5895#include <float.h>
ff66d28f 5896
1cf3d07d
SE
5897int
5898main ()
ff66d28f 5899{
1cf3d07d
SE
5900
5901 ;
5902 return 0;
5903}
5904_ACEOF
5905rm -f conftest.$ac_objext
5906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5907 (eval $ac_compile) 2>conftest.er1
5908 ac_status=$?
5909 grep -v '^ *+' conftest.er1 >conftest.err
5910 rm -f conftest.er1
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } &&
5914 { ac_try='test -z "$ac_c_werror_flag"
5915 || test ! -s conftest.err'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 (eval $ac_try) 2>&5
5918 ac_status=$?
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; } &&
5921 { ac_try='test -s conftest.$ac_objext'
5922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923 (eval $ac_try) 2>&5
5924 ac_status=$?
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; }; then
5927 ac_cv_header_stdc=yes
5928else
5929 echo "$as_me: failed program was:" >&5
5930sed 's/^/| /' conftest.$ac_ext >&5
5931
5932ac_cv_header_stdc=no
b2dad0e3 5933fi
1cf3d07d 5934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b2dad0e3 5935
1cf3d07d
SE
5936if test $ac_cv_header_stdc = yes; then
5937 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5938 cat >conftest.$ac_ext <<_ACEOF
5939/* confdefs.h. */
5940_ACEOF
5941cat confdefs.h >>conftest.$ac_ext
5942cat >>conftest.$ac_ext <<_ACEOF
5943/* end confdefs.h. */
5944#include <string.h>
b2dad0e3 5945
1cf3d07d
SE
5946_ACEOF
5947if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5948 $EGREP "memchr" >/dev/null 2>&1; then
5949 :
b2dad0e3 5950else
1cf3d07d 5951 ac_cv_header_stdc=no
b2dad0e3 5952fi
1cf3d07d 5953rm -f conftest*
b2dad0e3 5954
1cf3d07d 5955fi
b2dad0e3 5956
1cf3d07d
SE
5957if test $ac_cv_header_stdc = yes; then
5958 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5959 cat >conftest.$ac_ext <<_ACEOF
5960/* confdefs.h. */
5961_ACEOF
5962cat confdefs.h >>conftest.$ac_ext
5963cat >>conftest.$ac_ext <<_ACEOF
5964/* end confdefs.h. */
5965#include <stdlib.h>
b2dad0e3 5966
1cf3d07d
SE
5967_ACEOF
5968if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5969 $EGREP "free" >/dev/null 2>&1; then
5970 :
5971else
5972 ac_cv_header_stdc=no
5973fi
5974rm -f conftest*
b2dad0e3 5975
1cf3d07d 5976fi
b2dad0e3 5977
1cf3d07d
SE
5978if test $ac_cv_header_stdc = yes; then
5979 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5980 if test "$cross_compiling" = yes; then
5981 :
ff66d28f 5982else
ff66d28f 5983 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
5984/* confdefs.h. */
5985_ACEOF
5986cat confdefs.h >>conftest.$ac_ext
5987cat >>conftest.$ac_ext <<_ACEOF
5988/* end confdefs.h. */
1cf3d07d
SE
5989#include <ctype.h>
5990#if ((' ' & 0x0FF) == 0x020)
5991# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5992# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
ff66d28f 5993#else
1cf3d07d
SE
5994# define ISLOWER(c) \
5995 (('a' <= (c) && (c) <= 'i') \
5996 || ('j' <= (c) && (c) <= 'r') \
5997 || ('s' <= (c) && (c) <= 'z'))
5998# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
ff66d28f 5999#endif
1cf3d07d
SE
6000
6001#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6002int
6003main ()
6004{
6005 int i;
6006 for (i = 0; i < 256; i++)
6007 if (XOR (islower (i), ISLOWER (i))
6008 || toupper (i) != TOUPPER (i))
6009 exit(2);
6010 exit (0);
6011}
ff66d28f 6012_ACEOF
1cf3d07d
SE
6013rm -f conftest$ac_exeext
6014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6015 (eval $ac_link) 2>&5
ff66d28f 6016 ac_status=$?
ff66d28f 6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
6018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 (eval $ac_try) 2>&5
6021 ac_status=$?
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; }; then
ff66d28f
PE
6024 :
6025else
1cf3d07d
SE
6026 echo "$as_me: program exited with status $ac_status" >&5
6027echo "$as_me: failed program was:" >&5
ff66d28f
PE
6028sed 's/^/| /' conftest.$ac_ext >&5
6029
1cf3d07d
SE
6030( exit $ac_status )
6031ac_cv_header_stdc=no
6032fi
6033rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6034fi
6035fi
6036fi
6037echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6038echo "${ECHO_T}$ac_cv_header_stdc" >&6
6039if test $ac_cv_header_stdc = yes; then
6040
6041cat >>confdefs.h <<\_ACEOF
6042#define STDC_HEADERS 1
6043_ACEOF
6044
6045fi
6046
6047# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6058 inttypes.h stdint.h unistd.h
6059do
6060as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6061echo "$as_me:$LINENO: checking for $ac_header" >&5
6062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6063if eval "test \"\${$as_ac_Header+set}\" = set"; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6065else
6066 cat >conftest.$ac_ext <<_ACEOF
6067/* confdefs.h. */
6068_ACEOF
6069cat confdefs.h >>conftest.$ac_ext
6070cat >>conftest.$ac_ext <<_ACEOF
6071/* end confdefs.h. */
6072$ac_includes_default
6073
6074#include <$ac_header>
6075_ACEOF
6076rm -f conftest.$ac_objext
6077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6078 (eval $ac_compile) 2>conftest.er1
6079 ac_status=$?
6080 grep -v '^ *+' conftest.er1 >conftest.err
6081 rm -f conftest.er1
6082 cat conftest.err >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } &&
6085 { ac_try='test -z "$ac_c_werror_flag"
6086 || test ! -s conftest.err'
6087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 (eval $ac_try) 2>&5
6089 ac_status=$?
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; } &&
6092 { ac_try='test -s conftest.$ac_objext'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 (eval $ac_try) 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6098 eval "$as_ac_Header=yes"
6099else
6100 echo "$as_me: failed program was:" >&5
6101sed 's/^/| /' conftest.$ac_ext >&5
6102
6103eval "$as_ac_Header=no"
6104fi
6105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6106fi
6107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6108echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6109if test `eval echo '${'$as_ac_Header'}'` = yes; then
6110 cat >>confdefs.h <<_ACEOF
6111#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6112_ACEOF
6113
6114fi
6115
6116done
6117
6118
6119
6120for ac_header in dlfcn.h
6121do
6122as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6123echo "$as_me:$LINENO: checking for $ac_header" >&5
6124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6125if eval "test \"\${$as_ac_Header+set}\" = set"; then
6126 echo $ECHO_N "(cached) $ECHO_C" >&6
6127else
6128 cat >conftest.$ac_ext <<_ACEOF
6129/* confdefs.h. */
6130_ACEOF
6131cat confdefs.h >>conftest.$ac_ext
6132cat >>conftest.$ac_ext <<_ACEOF
6133/* end confdefs.h. */
6134$ac_includes_default
6135
6136#include <$ac_header>
6137_ACEOF
6138rm -f conftest.$ac_objext
6139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6140 (eval $ac_compile) 2>conftest.er1
6141 ac_status=$?
6142 grep -v '^ *+' conftest.er1 >conftest.err
6143 rm -f conftest.er1
6144 cat conftest.err >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } &&
6147 { ac_try='test -z "$ac_c_werror_flag"
6148 || test ! -s conftest.err'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 (eval $ac_try) 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; } &&
6154 { ac_try='test -s conftest.$ac_objext'
6155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 (eval $ac_try) 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; }; then
6160 eval "$as_ac_Header=yes"
6161else
6162 echo "$as_me: failed program was:" >&5
6163sed 's/^/| /' conftest.$ac_ext >&5
6164
6165eval "$as_ac_Header=no"
6166fi
6167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6168fi
6169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6170echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6171if test `eval echo '${'$as_ac_Header'}'` = yes; then
6172 cat >>confdefs.h <<_ACEOF
6173#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6174_ACEOF
6175
6176fi
6177
6178done
6179
6180
6181
6182ac_ext=cc
6183ac_cpp='$CXXCPP $CPPFLAGS'
6184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6187if test -n "$ac_tool_prefix"; then
6188 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6189 do
6190 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6191set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6192echo "$as_me:$LINENO: checking for $ac_word" >&5
6193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6194if test "${glibcxx_cv_prog_CXX+set}" = set; then
6195 echo $ECHO_N "(cached) $ECHO_C" >&6
6196else
6197 if test -n "$CXX"; then
6198 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
6199else
6200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201for as_dir in $PATH
6202do
6203 IFS=$as_save_IFS
6204 test -z "$as_dir" && as_dir=.
6205 for ac_exec_ext in '' $ac_executable_extensions; do
6206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6207 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6209 break 2
6210 fi
6211done
6212done
6213
6214fi
6215fi
6216CXX=$glibcxx_cv_prog_CXX
6217if test -n "$CXX"; then
6218 echo "$as_me:$LINENO: result: $CXX" >&5
6219echo "${ECHO_T}$CXX" >&6
6220else
6221 echo "$as_me:$LINENO: result: no" >&5
6222echo "${ECHO_T}no" >&6
6223fi
6224
6225 test -n "$CXX" && break
6226 done
6227fi
6228if test -z "$CXX"; then
6229 ac_ct_CXX=$CXX
6230 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6231do
6232 # Extract the first word of "$ac_prog", so it can be a program name with args.
6233set dummy $ac_prog; ac_word=$2
6234echo "$as_me:$LINENO: checking for $ac_word" >&5
6235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6236if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6238else
6239 if test -n "$ac_ct_CXX"; then
6240 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6241else
6242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243for as_dir in $PATH
6244do
6245 IFS=$as_save_IFS
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6249 ac_cv_prog_ac_ct_CXX="$ac_prog"
6250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 break 2
6252 fi
6253done
6254done
6255
6256fi
6257fi
6258ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6259if test -n "$ac_ct_CXX"; then
6260 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6261echo "${ECHO_T}$ac_ct_CXX" >&6
6262else
6263 echo "$as_me:$LINENO: result: no" >&5
6264echo "${ECHO_T}no" >&6
6265fi
6266
6267 test -n "$ac_ct_CXX" && break
6268done
6269test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6270
6271 CXX=$ac_ct_CXX
6272fi
6273
6274
6275# Provide some information about the compiler.
6276echo "$as_me:$LINENO:" \
6277 "checking for C++ compiler version" >&5
6278ac_compiler=`set X $ac_compile; echo $2`
6279{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6280 (eval $ac_compiler --version </dev/null >&5) 2>&5
6281 ac_status=$?
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); }
6284{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6285 (eval $ac_compiler -v </dev/null >&5) 2>&5
6286 ac_status=$?
6287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288 (exit $ac_status); }
6289{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6290 (eval $ac_compiler -V </dev/null >&5) 2>&5
6291 ac_status=$?
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }
6294
6295echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6296echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6297if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6299else
6300 cat >conftest.$ac_ext <<_ACEOF
6301/* confdefs.h. */
6302_ACEOF
6303cat confdefs.h >>conftest.$ac_ext
6304cat >>conftest.$ac_ext <<_ACEOF
6305/* end confdefs.h. */
6306
6307int
6308main ()
6309{
6310#ifndef __GNUC__
6311 choke me
6312#endif
6313
6314 ;
6315 return 0;
6316}
6317_ACEOF
6318rm -f conftest.$ac_objext
6319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6320 (eval $ac_compile) 2>conftest.er1
6321 ac_status=$?
6322 grep -v '^ *+' conftest.er1 >conftest.err
6323 rm -f conftest.er1
6324 cat conftest.err >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } &&
6327 { ac_try='test -z "$ac_cxx_werror_flag"
6328 || test ! -s conftest.err'
6329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330 (eval $ac_try) 2>&5
6331 ac_status=$?
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }; } &&
6334 { ac_try='test -s conftest.$ac_objext'
6335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6336 (eval $ac_try) 2>&5
6337 ac_status=$?
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; }; then
6340 ac_compiler_gnu=yes
6341else
6342 echo "$as_me: failed program was:" >&5
6343sed 's/^/| /' conftest.$ac_ext >&5
6344
6345ac_compiler_gnu=no
6346fi
6347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6348ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6349
6350fi
6351echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6352echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6353GXX=`test $ac_compiler_gnu = yes && echo yes`
6354ac_test_CXXFLAGS=${CXXFLAGS+set}
6355ac_save_CXXFLAGS=$CXXFLAGS
6356CXXFLAGS="-g"
6357echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6358echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6359if test "${ac_cv_prog_cxx_g+set}" = set; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6361else
6362 cat >conftest.$ac_ext <<_ACEOF
6363/* confdefs.h. */
6364_ACEOF
6365cat confdefs.h >>conftest.$ac_ext
6366cat >>conftest.$ac_ext <<_ACEOF
6367/* end confdefs.h. */
6368
6369int
6370main ()
6371{
6372
6373 ;
6374 return 0;
6375}
6376_ACEOF
6377rm -f conftest.$ac_objext
6378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6379 (eval $ac_compile) 2>conftest.er1
6380 ac_status=$?
6381 grep -v '^ *+' conftest.er1 >conftest.err
6382 rm -f conftest.er1
6383 cat conftest.err >&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); } &&
6386 { ac_try='test -z "$ac_cxx_werror_flag"
6387 || test ! -s conftest.err'
6388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389 (eval $ac_try) 2>&5
6390 ac_status=$?
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); }; } &&
6393 { ac_try='test -s conftest.$ac_objext'
6394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6395 (eval $ac_try) 2>&5
6396 ac_status=$?
6397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6398 (exit $ac_status); }; }; then
6399 ac_cv_prog_cxx_g=yes
6400else
6401 echo "$as_me: failed program was:" >&5
6402sed 's/^/| /' conftest.$ac_ext >&5
6403
6404ac_cv_prog_cxx_g=no
6405fi
6406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6407fi
6408echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6409echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6410if test "$ac_test_CXXFLAGS" = set; then
6411 CXXFLAGS=$ac_save_CXXFLAGS
6412elif test $ac_cv_prog_cxx_g = yes; then
6413 if test "$GXX" = yes; then
6414 CXXFLAGS="-g -O2"
6415 else
6416 CXXFLAGS="-g"
6417 fi
6418else
6419 if test "$GXX" = yes; then
6420 CXXFLAGS="-O2"
6421 else
6422 CXXFLAGS=
6423 fi
6424fi
6425for ac_declaration in \
6426 '' \
6427 'extern "C" void std::exit (int) throw (); using std::exit;' \
6428 'extern "C" void std::exit (int); using std::exit;' \
6429 'extern "C" void exit (int) throw ();' \
6430 'extern "C" void exit (int);' \
6431 'void exit (int);'
6432do
6433 cat >conftest.$ac_ext <<_ACEOF
6434/* confdefs.h. */
6435_ACEOF
6436cat confdefs.h >>conftest.$ac_ext
6437cat >>conftest.$ac_ext <<_ACEOF
6438/* end confdefs.h. */
6439$ac_declaration
6440#include <stdlib.h>
6441int
6442main ()
6443{
6444exit (42);
6445 ;
6446 return 0;
6447}
6448_ACEOF
6449rm -f conftest.$ac_objext
6450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6451 (eval $ac_compile) 2>conftest.er1
6452 ac_status=$?
6453 grep -v '^ *+' conftest.er1 >conftest.err
6454 rm -f conftest.er1
6455 cat conftest.err >&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } &&
6458 { ac_try='test -z "$ac_cxx_werror_flag"
6459 || test ! -s conftest.err'
6460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461 (eval $ac_try) 2>&5
6462 ac_status=$?
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; } &&
6465 { ac_try='test -s conftest.$ac_objext'
6466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467 (eval $ac_try) 2>&5
6468 ac_status=$?
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); }; }; then
6471 :
6472else
6473 echo "$as_me: failed program was:" >&5
6474sed 's/^/| /' conftest.$ac_ext >&5
6475
6476continue
6477fi
6478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6479 cat >conftest.$ac_ext <<_ACEOF
6480/* confdefs.h. */
6481_ACEOF
6482cat confdefs.h >>conftest.$ac_ext
6483cat >>conftest.$ac_ext <<_ACEOF
6484/* end confdefs.h. */
6485$ac_declaration
6486int
6487main ()
6488{
6489exit (42);
6490 ;
6491 return 0;
6492}
6493_ACEOF
6494rm -f conftest.$ac_objext
6495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6496 (eval $ac_compile) 2>conftest.er1
6497 ac_status=$?
6498 grep -v '^ *+' conftest.er1 >conftest.err
6499 rm -f conftest.er1
6500 cat conftest.err >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } &&
6503 { ac_try='test -z "$ac_cxx_werror_flag"
6504 || test ! -s conftest.err'
6505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506 (eval $ac_try) 2>&5
6507 ac_status=$?
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; } &&
6510 { ac_try='test -s conftest.$ac_objext'
6511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512 (eval $ac_try) 2>&5
6513 ac_status=$?
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); }; }; then
6516 break
6517else
6518 echo "$as_me: failed program was:" >&5
6519sed 's/^/| /' conftest.$ac_ext >&5
6520
6521fi
6522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6523done
6524rm -f conftest*
6525if test -n "$ac_declaration"; then
6526 echo '#ifdef __cplusplus' >>confdefs.h
6527 echo $ac_declaration >>confdefs.h
6528 echo '#endif' >>confdefs.h
6529fi
6530
6531ac_ext=c
6532ac_cpp='$CPP $CPPFLAGS'
6533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6535ac_compiler_gnu=$ac_cv_c_compiler_gnu
6536
6537if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6538 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6539 (test "X$CXX" != "Xg++"))) ; then
6540 ac_ext=cc
6541ac_cpp='$CXXCPP $CPPFLAGS'
6542ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6543ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6544ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6545echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6546echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6547if test -z "$CXXCPP"; then
6548 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6550else
6551 # Double quotes because CXXCPP needs to be expanded
6552 for CXXCPP in "$CXX -E" "/lib/cpp"
6553 do
6554 ac_preproc_ok=false
6555for ac_cxx_preproc_warn_flag in '' yes
6556do
6557 # Use a header file that comes with gcc, so configuring glibc
6558 # with a fresh cross-compiler works.
6559 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6560 # <limits.h> exists even on freestanding compilers.
6561 # On the NeXT, cc -E runs the code through the compiler's parser,
6562 # not just through cpp. "Syntax error" is here to catch this case.
6563 cat >conftest.$ac_ext <<_ACEOF
6564/* confdefs.h. */
6565_ACEOF
6566cat confdefs.h >>conftest.$ac_ext
6567cat >>conftest.$ac_ext <<_ACEOF
6568/* end confdefs.h. */
6569#ifdef __STDC__
6570# include <limits.h>
6571#else
6572# include <assert.h>
6573#endif
6574 Syntax error
6575_ACEOF
6576if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6578 ac_status=$?
6579 grep -v '^ *+' conftest.er1 >conftest.err
6580 rm -f conftest.er1
6581 cat conftest.err >&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } >/dev/null; then
6584 if test -s conftest.err; then
6585 ac_cpp_err=$ac_cxx_preproc_warn_flag
6586 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6587 else
6588 ac_cpp_err=
6589 fi
6590else
6591 ac_cpp_err=yes
6592fi
6593if test -z "$ac_cpp_err"; then
6594 :
6595else
6596 echo "$as_me: failed program was:" >&5
6597sed 's/^/| /' conftest.$ac_ext >&5
6598
6599 # Broken: fails on valid input.
6600continue
6601fi
6602rm -f conftest.err conftest.$ac_ext
6603
6604 # OK, works on sane cases. Now check whether non-existent headers
6605 # can be detected and how.
6606 cat >conftest.$ac_ext <<_ACEOF
6607/* confdefs.h. */
6608_ACEOF
6609cat confdefs.h >>conftest.$ac_ext
6610cat >>conftest.$ac_ext <<_ACEOF
6611/* end confdefs.h. */
6612#include <ac_nonexistent.h>
6613_ACEOF
6614if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6615 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6616 ac_status=$?
6617 grep -v '^ *+' conftest.er1 >conftest.err
6618 rm -f conftest.er1
6619 cat conftest.err >&5
6620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 (exit $ac_status); } >/dev/null; then
6622 if test -s conftest.err; then
6623 ac_cpp_err=$ac_cxx_preproc_warn_flag
6624 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6625 else
6626 ac_cpp_err=
6627 fi
6628else
6629 ac_cpp_err=yes
6630fi
6631if test -z "$ac_cpp_err"; then
6632 # Broken: success on invalid input.
6633continue
6634else
6635 echo "$as_me: failed program was:" >&5
6636sed 's/^/| /' conftest.$ac_ext >&5
6637
6638 # Passes both tests.
6639ac_preproc_ok=:
6640break
6641fi
6642rm -f conftest.err conftest.$ac_ext
6643
6644done
6645# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6646rm -f conftest.err conftest.$ac_ext
6647if $ac_preproc_ok; then
6648 break
6649fi
6650
6651 done
6652 ac_cv_prog_CXXCPP=$CXXCPP
6653
6654fi
6655 CXXCPP=$ac_cv_prog_CXXCPP
6656else
6657 ac_cv_prog_CXXCPP=$CXXCPP
6658fi
6659echo "$as_me:$LINENO: result: $CXXCPP" >&5
6660echo "${ECHO_T}$CXXCPP" >&6
6661ac_preproc_ok=false
6662for ac_cxx_preproc_warn_flag in '' yes
6663do
6664 # Use a header file that comes with gcc, so configuring glibc
6665 # with a fresh cross-compiler works.
6666 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6667 # <limits.h> exists even on freestanding compilers.
6668 # On the NeXT, cc -E runs the code through the compiler's parser,
6669 # not just through cpp. "Syntax error" is here to catch this case.
6670 cat >conftest.$ac_ext <<_ACEOF
6671/* confdefs.h. */
6672_ACEOF
6673cat confdefs.h >>conftest.$ac_ext
6674cat >>conftest.$ac_ext <<_ACEOF
6675/* end confdefs.h. */
6676#ifdef __STDC__
6677# include <limits.h>
6678#else
6679# include <assert.h>
6680#endif
6681 Syntax error
6682_ACEOF
6683if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6685 ac_status=$?
6686 grep -v '^ *+' conftest.er1 >conftest.err
6687 rm -f conftest.er1
6688 cat conftest.err >&5
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); } >/dev/null; then
6691 if test -s conftest.err; then
6692 ac_cpp_err=$ac_cxx_preproc_warn_flag
6693 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6694 else
6695 ac_cpp_err=
6696 fi
6697else
6698 ac_cpp_err=yes
6699fi
6700if test -z "$ac_cpp_err"; then
6701 :
6702else
6703 echo "$as_me: failed program was:" >&5
6704sed 's/^/| /' conftest.$ac_ext >&5
6705
6706 # Broken: fails on valid input.
6707continue
6708fi
6709rm -f conftest.err conftest.$ac_ext
6710
6711 # OK, works on sane cases. Now check whether non-existent headers
6712 # can be detected and how.
6713 cat >conftest.$ac_ext <<_ACEOF
6714/* confdefs.h. */
6715_ACEOF
6716cat confdefs.h >>conftest.$ac_ext
6717cat >>conftest.$ac_ext <<_ACEOF
6718/* end confdefs.h. */
6719#include <ac_nonexistent.h>
6720_ACEOF
6721if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6722 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6723 ac_status=$?
6724 grep -v '^ *+' conftest.er1 >conftest.err
6725 rm -f conftest.er1
6726 cat conftest.err >&5
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); } >/dev/null; then
6729 if test -s conftest.err; then
6730 ac_cpp_err=$ac_cxx_preproc_warn_flag
6731 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6732 else
6733 ac_cpp_err=
6734 fi
6735else
6736 ac_cpp_err=yes
6737fi
6738if test -z "$ac_cpp_err"; then
6739 # Broken: success on invalid input.
6740continue
6741else
6742 echo "$as_me: failed program was:" >&5
6743sed 's/^/| /' conftest.$ac_ext >&5
6744
6745 # Passes both tests.
6746ac_preproc_ok=:
6747break
6748fi
6749rm -f conftest.err conftest.$ac_ext
6750
6751done
6752# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6753rm -f conftest.err conftest.$ac_ext
6754if $ac_preproc_ok; then
6755 :
6756else
6757 _lt_caught_CXX_error=yes
6758fi
6759
6760ac_ext=c
6761ac_cpp='$CPP $CPPFLAGS'
6762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6764ac_compiler_gnu=$ac_cv_c_compiler_gnu
6765
6766else
6767 _lt_caught_CXX_error=yes
6768fi
6769
6770
6771
6772
6773
6774# This can be used to rebuild libtool when needed
6775LIBTOOL_DEPS="$ltmain"
6776
6777# Always use our own libtool.
6778LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804test -z "$LN_S" && LN_S="ln -s"
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819if test -n "${ZSH_VERSION+set}" ; then
6820 setopt NO_GLOB_SUBST
6821fi
6822
6823echo "$as_me:$LINENO: checking for objdir" >&5
6824echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6825if test "${lt_cv_objdir+set}" = set; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6827else
6828 rm -f .libs 2>/dev/null
6829mkdir .libs 2>/dev/null
6830if test -d .libs; then
6831 lt_cv_objdir=.libs
6832else
6833 # MS-DOS does not allow filenames that begin with a dot.
6834 lt_cv_objdir=_libs
6835fi
6836rmdir .libs 2>/dev/null
6837fi
6838echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6839echo "${ECHO_T}$lt_cv_objdir" >&6
6840objdir=$lt_cv_objdir
6841
6842
6843
6844
6845
6846cat >>confdefs.h <<_ACEOF
6847#define LT_OBJDIR "$lt_cv_objdir/"
6848_ACEOF
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866case $host_os in
6867aix3*)
6868 # AIX sometimes has problems with the GCC collect2 program. For some
6869 # reason, if we set the COLLECT_NAMES environment variable, the problems
6870 # vanish in a puff of smoke.
6871 if test "X${COLLECT_NAMES+set}" != Xset; then
6872 COLLECT_NAMES=
6873 export COLLECT_NAMES
6874 fi
6875 ;;
6876esac
6877
6878# Sed substitution that helps us do robust quoting. It backslashifies
6879# metacharacters that are still active within double-quoted strings.
6880sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6881
6882# Same as above, but do not quote variable references.
6883double_quote_subst='s/\(["`\\]\)/\\\1/g'
6884
6885# Sed substitution to delay expansion of an escaped shell variable in a
6886# double_quote_subst'ed string.
6887delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6888
6889# Sed substitution to delay expansion of an escaped single quote.
6890delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6891
6892# Sed substitution to avoid accidental globbing in evaled expressions
6893no_glob_subst='s/\*/\\\*/g'
6894
6895# Global variables:
6896ofile=libtool
6897can_build_shared=yes
6898
6899# All known linkers require a `.a' archive for static linking (except MSVC,
6900# which needs '.lib').
6901libext=a
6902
6903with_gnu_ld="$lt_cv_prog_gnu_ld"
6904
6905old_CC="$CC"
6906old_CFLAGS="$CFLAGS"
6907
6908# Set sane defaults for various variables
6909test -z "$CC" && CC=cc
6910test -z "$LTCC" && LTCC=$CC
6911test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6912test -z "$LD" && LD=ld
6913test -z "$ac_objext" && ac_objext=o
6914
6915for cc_temp in $compiler""; do
6916 case $cc_temp in
6917 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6918 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6919 \-*) ;;
6920 *) break;;
6921 esac
6922done
6923cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6924
6925
6926# Only perform the check for file, if the check method requires it
6927test -z "$MAGIC_CMD" && MAGIC_CMD=file
6928case $deplibs_check_method in
6929file_magic*)
6930 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6931 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6932echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6933if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6935else
6936 case $MAGIC_CMD in
6937[\\/*] | ?:[\\/]*)
6938 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6939 ;;
6940*)
6941 lt_save_MAGIC_CMD="$MAGIC_CMD"
6942 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6943 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6944 for ac_dir in $ac_dummy; do
6945 IFS="$lt_save_ifs"
6946 test -z "$ac_dir" && ac_dir=.
6947 if test -f $ac_dir/${ac_tool_prefix}file; then
6948 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6949 if test -n "$file_magic_test_file"; then
6950 case $deplibs_check_method in
6951 "file_magic "*)
6952 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6953 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6954 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6955 $EGREP "$file_magic_regex" > /dev/null; then
6956 :
6957 else
6958 cat <<_LT_EOF 1>&2
6959
6960*** Warning: the command libtool uses to detect shared libraries,
6961*** $file_magic_cmd, produces output that libtool cannot recognize.
6962*** The result is that libtool may fail to recognize shared libraries
6963*** as such. This will affect the creation of libtool libraries that
6964*** depend on shared libraries, but programs linked with such libtool
6965*** libraries will work regardless of this problem. Nevertheless, you
6966*** may want to report the problem to your system manager and/or to
6967*** bug-libtool@gnu.org
6968
6969_LT_EOF
6970 fi ;;
6971 esac
6972 fi
6973 break
6974 fi
6975 done
6976 IFS="$lt_save_ifs"
6977 MAGIC_CMD="$lt_save_MAGIC_CMD"
6978 ;;
6979esac
6980fi
6981
6982MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6983if test -n "$MAGIC_CMD"; then
6984 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6985echo "${ECHO_T}$MAGIC_CMD" >&6
6986else
6987 echo "$as_me:$LINENO: result: no" >&5
6988echo "${ECHO_T}no" >&6
6989fi
6990
6991
6992
6993
6994
6995if test -z "$lt_cv_path_MAGIC_CMD"; then
6996 if test -n "$ac_tool_prefix"; then
6997 echo "$as_me:$LINENO: checking for file" >&5
6998echo $ECHO_N "checking for file... $ECHO_C" >&6
6999if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7000 echo $ECHO_N "(cached) $ECHO_C" >&6
7001else
7002 case $MAGIC_CMD in
7003[\\/*] | ?:[\\/]*)
7004 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7005 ;;
7006*)
7007 lt_save_MAGIC_CMD="$MAGIC_CMD"
7008 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7009 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7010 for ac_dir in $ac_dummy; do
7011 IFS="$lt_save_ifs"
7012 test -z "$ac_dir" && ac_dir=.
7013 if test -f $ac_dir/file; then
7014 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7015 if test -n "$file_magic_test_file"; then
7016 case $deplibs_check_method in
7017 "file_magic "*)
7018 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7019 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7020 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7021 $EGREP "$file_magic_regex" > /dev/null; then
7022 :
7023 else
7024 cat <<_LT_EOF 1>&2
7025
7026*** Warning: the command libtool uses to detect shared libraries,
7027*** $file_magic_cmd, produces output that libtool cannot recognize.
7028*** The result is that libtool may fail to recognize shared libraries
7029*** as such. This will affect the creation of libtool libraries that
7030*** depend on shared libraries, but programs linked with such libtool
7031*** libraries will work regardless of this problem. Nevertheless, you
7032*** may want to report the problem to your system manager and/or to
7033*** bug-libtool@gnu.org
7034
7035_LT_EOF
7036 fi ;;
7037 esac
7038 fi
7039 break
7040 fi
7041 done
7042 IFS="$lt_save_ifs"
7043 MAGIC_CMD="$lt_save_MAGIC_CMD"
7044 ;;
7045esac
7046fi
7047
7048MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7049if test -n "$MAGIC_CMD"; then
7050 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7051echo "${ECHO_T}$MAGIC_CMD" >&6
7052else
7053 echo "$as_me:$LINENO: result: no" >&5
7054echo "${ECHO_T}no" >&6
7055fi
7056
7057
7058 else
7059 MAGIC_CMD=:
7060 fi
7061fi
7062
7063 fi
7064 ;;
7065esac
7066
7067# Use C for the default configuration in the libtool script
7068
7069lt_save_CC="$CC"
7070ac_ext=c
7071ac_cpp='$CPP $CPPFLAGS'
7072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7074ac_compiler_gnu=$ac_cv_c_compiler_gnu
7075
7076
7077# Source file extension for C test sources.
7078ac_ext=c
7079
7080# Object file extension for compiled C test sources.
7081objext=o
7082objext=$objext
7083
7084# Code to be used in simple compile tests
7085lt_simple_compile_test_code="int some_variable = 0;"
7086
7087# Code to be used in simple link tests
7088lt_simple_link_test_code='int main(){return(0);}'
7089
7090
7091
7092
7093
7094
7095
7096# If no C compiler was specified, use CC.
7097LTCC=${LTCC-"$CC"}
7098
7099# If no C compiler flags were specified, use CFLAGS.
7100LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7101
7102# Allow CC to be a program name with arguments.
7103compiler=$CC
7104
7105# Save the default compiler, since it gets overwritten when the other
7106# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7107compiler_DEFAULT=$CC
7108
7109# save warnings/boilerplate of simple test code
7110ac_outfile=conftest.$ac_objext
7111echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7112eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7113_lt_compiler_boilerplate=`cat conftest.err`
7114$RM conftest*
7115
7116ac_outfile=conftest.$ac_objext
7117echo "$lt_simple_link_test_code" >conftest.$ac_ext
7118eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7119_lt_linker_boilerplate=`cat conftest.err`
7120$RM conftest*
7121
7122
7123## CAVEAT EMPTOR:
7124## There is no encapsulation within the following macros, do not change
7125## the running order or otherwise move them around unless you know exactly
7126## what you are doing...
7127if test -n "$compiler"; then
7128
7129lt_prog_compiler_no_builtin_flag=
7130
7131if test "$GCC" = yes; then
7132 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7133
7134 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7135echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7136if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7138else
7139 lt_cv_prog_compiler_rtti_exceptions=no
7140 ac_outfile=conftest.$ac_objext
7141 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7142 lt_compiler_flag="-fno-rtti -fno-exceptions"
7143 # Insert the option either (1) after the last *FLAGS variable, or
7144 # (2) before a word containing "conftest.", or (3) at the end.
7145 # Note that $ac_compile itself does not contain backslashes and begins
7146 # with a dollar sign (not a hyphen), so the echo should work correctly.
7147 # The option is referenced via a variable to avoid confusing sed.
7148 lt_compile=`echo "$ac_compile" | $SED \
7149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7151 -e 's:$: $lt_compiler_flag:'`
7152 (eval echo "\"\$as_me:7152: $lt_compile\"" >&5)
7153 (eval "$lt_compile" 2>conftest.err)
7154 ac_status=$?
7155 cat conftest.err >&5
7156 echo "$as_me:7156: \$? = $ac_status" >&5
7157 if (exit $ac_status) && test -s "$ac_outfile"; then
7158 # The compiler can only warn and ignore the option if not recognized
7159 # So say no if there are warnings other than the usual output.
7160 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7161 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7162 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7163 lt_cv_prog_compiler_rtti_exceptions=yes
7164 fi
7165 fi
7166 $RM conftest*
7167
7168fi
7169echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7170echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7171
7172if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7173 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7174else
7175 :
7176fi
7177
7178fi
7179
7180
7181
7182
7183
7184
7185 lt_prog_compiler_wl=
7186lt_prog_compiler_pic=
7187lt_prog_compiler_static=
7188
7189echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7190echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7191
7192 if test "$GCC" = yes; then
7193 lt_prog_compiler_wl='-Wl,'
7194 lt_prog_compiler_static='-static'
7195
7196 case $host_os in
7197 aix*)
7198 # All AIX code is PIC.
7199 if test "$host_cpu" = ia64; then
7200 # AIX 5 now supports IA64 processor
7201 lt_prog_compiler_static='-Bstatic'
7202 fi
7203 ;;
7204
7205 amigaos*)
7206 if test "$host_cpu" = m68k; then
7207 # FIXME: we need at least 68020 code to build shared libraries, but
7208 # adding the `-m68020' flag to GCC prevents building anything better,
7209 # like `-m68040'.
7210 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7211 fi
7212 ;;
7213
7214 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7215 # PIC is the default for these OSes.
7216 ;;
7217
7218 mingw* | cygwin* | pw32* | os2*)
7219 # This hack is so that the source file can tell whether it is being
7220 # built for inclusion in a dll (and should export symbols for example).
7221 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7222 # (--disable-auto-import) libraries
7223 lt_prog_compiler_pic='-DDLL_EXPORT'
7224 ;;
7225
7226 darwin* | rhapsody*)
7227 # PIC is the default on this platform
7228 # Common symbols not allowed in MH_DYLIB files
7229 lt_prog_compiler_pic='-fno-common'
7230 ;;
7231
7232 hpux*)
7233 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7234 # not for PA HP-UX.
7235 case $host_cpu in
7236 hppa*64*|ia64*)
7237 # +Z the default
7238 ;;
7239 *)
7240 lt_prog_compiler_pic='-fPIC'
7241 ;;
7242 esac
7243 ;;
7244
7245 interix[3-9]*)
7246 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7247 # Instead, we relocate shared libraries at runtime.
7248 ;;
7249
7250 msdosdjgpp*)
7251 # Just because we use GCC doesn't mean we suddenly get shared libraries
7252 # on systems that don't support them.
7253 lt_prog_compiler_can_build_shared=no
7254 enable_shared=no
7255 ;;
7256
7257 *nto* | *qnx*)
7258 # QNX uses GNU C++, but need to define -shared option too, otherwise
7259 # it will coredump.
7260 lt_prog_compiler_pic='-fPIC -shared'
7261 ;;
7262
7263 sysv4*MP*)
7264 if test -d /usr/nec; then
7265 lt_prog_compiler_pic=-Kconform_pic
7266 fi
7267 ;;
7268
7269 *)
7270 lt_prog_compiler_pic='-fPIC'
7271 ;;
7272 esac
7273 else
7274 # PORTME Check for flag to pass linker flags through the system compiler.
7275 case $host_os in
7276 aix*)
7277 lt_prog_compiler_wl='-Wl,'
7278 if test "$host_cpu" = ia64; then
7279 # AIX 5 now supports IA64 processor
7280 lt_prog_compiler_static='-Bstatic'
7281 else
7282 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7283 fi
7284 ;;
7285 darwin*)
7286 # PIC is the default on this platform
7287 # Common symbols not allowed in MH_DYLIB files
7288 case $cc_basename in
7289 xlc*)
7290 lt_prog_compiler_pic='-qnocommon'
7291 lt_prog_compiler_wl='-Wl,'
7292 ;;
7293 esac
7294 ;;
7295
7296 mingw* | cygwin* | pw32* | os2*)
7297 # This hack is so that the source file can tell whether it is being
7298 # built for inclusion in a dll (and should export symbols for example).
7299 lt_prog_compiler_pic='-DDLL_EXPORT'
7300 ;;
7301
7302 hpux9* | hpux10* | hpux11*)
7303 lt_prog_compiler_wl='-Wl,'
7304 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7305 # not for PA HP-UX.
7306 case $host_cpu in
7307 hppa*64*|ia64*)
7308 # +Z the default
7309 ;;
7310 *)
7311 lt_prog_compiler_pic='+Z'
7312 ;;
7313 esac
7314 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7315 lt_prog_compiler_static='${wl}-a ${wl}archive'
7316 ;;
7317
7318 irix5* | irix6* | nonstopux*)
7319 lt_prog_compiler_wl='-Wl,'
7320 # PIC (with -KPIC) is the default.
7321 lt_prog_compiler_static='-non_shared'
7322 ;;
7323
7324 linux* | k*bsd*-gnu)
7325 case $cc_basename in
7326 icc* | ecc*)
7327 lt_prog_compiler_wl='-Wl,'
7328 lt_prog_compiler_pic='-KPIC'
7329 lt_prog_compiler_static='-static'
7330 ;;
7331 pgcc* | pgf77* | pgf90* | pgf95*)
7332 # Portland Group compilers (*not* the Pentium gcc compiler,
7333 # which looks to be a dead project)
7334 lt_prog_compiler_wl='-Wl,'
7335 lt_prog_compiler_pic='-fpic'
7336 lt_prog_compiler_static='-Bstatic'
7337 ;;
7338 ccc*)
7339 lt_prog_compiler_wl='-Wl,'
7340 # All Alpha code is PIC.
7341 lt_prog_compiler_static='-non_shared'
7342 ;;
7343 *)
7344 case `$CC -V 2>&1 | sed 5q` in
7345 *Sun\ C*)
7346 # Sun C 5.9
7347 lt_prog_compiler_pic='-KPIC'
7348 lt_prog_compiler_static='-Bstatic'
7349 lt_prog_compiler_wl='-Wl,'
7350 ;;
7351 *Sun\ F*)
7352 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7353 lt_prog_compiler_pic='-KPIC'
7354 lt_prog_compiler_static='-Bstatic'
7355 lt_prog_compiler_wl=''
7356 ;;
7357 esac
7358 ;;
7359 esac
7360 ;;
7361
7362 newsos6)
7363 lt_prog_compiler_pic='-KPIC'
7364 lt_prog_compiler_static='-Bstatic'
7365 ;;
7366
7367 *nto* | *qnx*)
7368 # QNX uses GNU C++, but need to define -shared option too, otherwise
7369 # it will coredump.
7370 lt_prog_compiler_pic='-fPIC -shared'
7371 ;;
7372
7373 osf3* | osf4* | osf5*)
7374 lt_prog_compiler_wl='-Wl,'
7375 # All OSF/1 code is PIC.
7376 lt_prog_compiler_static='-non_shared'
7377 ;;
7378
7379 rdos*)
7380 lt_prog_compiler_static='-non_shared'
7381 ;;
7382
7383 solaris*)
7384 lt_prog_compiler_pic='-KPIC'
7385 lt_prog_compiler_static='-Bstatic'
7386 case $cc_basename in
7387 f77* | f90* | f95*)
7388 lt_prog_compiler_wl='-Qoption ld ';;
7389 *)
7390 lt_prog_compiler_wl='-Wl,';;
7391 esac
7392 ;;
7393
7394 sunos4*)
7395 lt_prog_compiler_wl='-Qoption ld '
7396 lt_prog_compiler_pic='-PIC'
7397 lt_prog_compiler_static='-Bstatic'
7398 ;;
7399
7400 sysv4 | sysv4.2uw2* | sysv4.3*)
7401 lt_prog_compiler_wl='-Wl,'
7402 lt_prog_compiler_pic='-KPIC'
7403 lt_prog_compiler_static='-Bstatic'
7404 ;;
7405
7406 sysv4*MP*)
7407 if test -d /usr/nec ;then
7408 lt_prog_compiler_pic='-Kconform_pic'
7409 lt_prog_compiler_static='-Bstatic'
7410 fi
7411 ;;
7412
7413 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7414 lt_prog_compiler_wl='-Wl,'
7415 lt_prog_compiler_pic='-KPIC'
7416 lt_prog_compiler_static='-Bstatic'
7417 ;;
7418
7419 unicos*)
7420 lt_prog_compiler_wl='-Wl,'
7421 lt_prog_compiler_can_build_shared=no
7422 ;;
7423
7424 uts4*)
7425 lt_prog_compiler_pic='-pic'
7426 lt_prog_compiler_static='-Bstatic'
7427 ;;
7428
7429 *)
7430 lt_prog_compiler_can_build_shared=no
7431 ;;
7432 esac
7433 fi
7434
7435case $host_os in
7436 # For platforms which do not support PIC, -DPIC is meaningless:
7437 *djgpp*)
7438 lt_prog_compiler_pic=
7439 ;;
7440 *)
7441 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7442 ;;
7443esac
7444echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7445echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7446
7447
7448
7449
7450
7451
7452#
7453# Check to make sure the PIC flag actually works.
7454#
7455if test -n "$lt_prog_compiler_pic"; then
7456 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7457echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7458if test "${lt_prog_compiler_pic_works+set}" = set; then
7459 echo $ECHO_N "(cached) $ECHO_C" >&6
7460else
7461 lt_prog_compiler_pic_works=no
7462 ac_outfile=conftest.$ac_objext
7463 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7464 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7465 # Insert the option either (1) after the last *FLAGS variable, or
7466 # (2) before a word containing "conftest.", or (3) at the end.
7467 # Note that $ac_compile itself does not contain backslashes and begins
7468 # with a dollar sign (not a hyphen), so the echo should work correctly.
7469 # The option is referenced via a variable to avoid confusing sed.
7470 lt_compile=`echo "$ac_compile" | $SED \
7471 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7472 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7473 -e 's:$: $lt_compiler_flag:'`
7474 (eval echo "\"\$as_me:7474: $lt_compile\"" >&5)
7475 (eval "$lt_compile" 2>conftest.err)
7476 ac_status=$?
7477 cat conftest.err >&5
7478 echo "$as_me:7478: \$? = $ac_status" >&5
7479 if (exit $ac_status) && test -s "$ac_outfile"; then
7480 # The compiler can only warn and ignore the option if not recognized
7481 # So say no if there are warnings other than the usual output.
7482 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7483 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7484 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7485 lt_prog_compiler_pic_works=yes
7486 fi
7487 fi
7488 $RM conftest*
7489
7490fi
7491echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7492echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7493
7494if test x"$lt_prog_compiler_pic_works" = xyes; then
7495 case $lt_prog_compiler_pic in
7496 "" | " "*) ;;
7497 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7498 esac
7499else
7500 lt_prog_compiler_pic=
7501 lt_prog_compiler_can_build_shared=no
7502fi
7503
7504fi
7505
7506
7507
7508
7509
7510
7511#
7512# Check to make sure the static flag actually works.
7513#
7514wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7515echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7516echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7517if test "${lt_prog_compiler_static_works+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7519else
7520 lt_prog_compiler_static_works=no
7521 save_LDFLAGS="$LDFLAGS"
7522 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7523 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7524 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7525 # The linker can only warn and ignore the option if not recognized
7526 # So say no if there are warnings
7527 if test -s conftest.err; then
7528 # Append any errors to the config.log.
7529 cat conftest.err 1>&5
7530 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7531 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7532 if diff conftest.exp conftest.er2 >/dev/null; then
7533 lt_prog_compiler_static_works=yes
7534 fi
7535 else
7536 lt_prog_compiler_static_works=yes
7537 fi
7538 fi
7539 $RM conftest*
7540 LDFLAGS="$save_LDFLAGS"
7541
7542fi
7543echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7544echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7545
7546if test x"$lt_prog_compiler_static_works" = xyes; then
7547 :
7548else
7549 lt_prog_compiler_static=
7550fi
7551
7552
7553
7554
7555
7556
7557
7558 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7559echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7560if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7562else
7563 lt_cv_prog_compiler_c_o=no
7564 $RM -r conftest 2>/dev/null
7565 mkdir conftest
7566 cd conftest
7567 mkdir out
7568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7569
7570 lt_compiler_flag="-o out/conftest2.$ac_objext"
7571 # Insert the option either (1) after the last *FLAGS variable, or
7572 # (2) before a word containing "conftest.", or (3) at the end.
7573 # Note that $ac_compile itself does not contain backslashes and begins
7574 # with a dollar sign (not a hyphen), so the echo should work correctly.
7575 lt_compile=`echo "$ac_compile" | $SED \
7576 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7578 -e 's:$: $lt_compiler_flag:'`
7579 (eval echo "\"\$as_me:7579: $lt_compile\"" >&5)
7580 (eval "$lt_compile" 2>out/conftest.err)
7581 ac_status=$?
7582 cat out/conftest.err >&5
7583 echo "$as_me:7583: \$? = $ac_status" >&5
7584 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7585 then
7586 # The compiler can only warn and ignore the option if not recognized
7587 # So say no if there are warnings
7588 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7589 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7590 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7591 lt_cv_prog_compiler_c_o=yes
7592 fi
7593 fi
7594 chmod u+w . 2>&5
7595 $RM conftest*
7596 # SGI C++ compiler will create directory out/ii_files/ for
7597 # template instantiation
7598 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7599 $RM out/* && rmdir out
7600 cd ..
7601 $RM -r conftest
7602 $RM conftest*
7603
7604fi
7605echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7606echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7607
7608
7609
7610
7611
7612
7613 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7614echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7615if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7616 echo $ECHO_N "(cached) $ECHO_C" >&6
7617else
7618 lt_cv_prog_compiler_c_o=no
7619 $RM -r conftest 2>/dev/null
7620 mkdir conftest
7621 cd conftest
7622 mkdir out
7623 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7624
7625 lt_compiler_flag="-o out/conftest2.$ac_objext"
7626 # Insert the option either (1) after the last *FLAGS variable, or
7627 # (2) before a word containing "conftest.", or (3) at the end.
7628 # Note that $ac_compile itself does not contain backslashes and begins
7629 # with a dollar sign (not a hyphen), so the echo should work correctly.
7630 lt_compile=`echo "$ac_compile" | $SED \
7631 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7632 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7633 -e 's:$: $lt_compiler_flag:'`
7634 (eval echo "\"\$as_me:7634: $lt_compile\"" >&5)
7635 (eval "$lt_compile" 2>out/conftest.err)
7636 ac_status=$?
7637 cat out/conftest.err >&5
7638 echo "$as_me:7638: \$? = $ac_status" >&5
7639 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7640 then
7641 # The compiler can only warn and ignore the option if not recognized
7642 # So say no if there are warnings
7643 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7644 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7645 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7646 lt_cv_prog_compiler_c_o=yes
7647 fi
7648 fi
7649 chmod u+w . 2>&5
7650 $RM conftest*
7651 # SGI C++ compiler will create directory out/ii_files/ for
7652 # template instantiation
7653 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7654 $RM out/* && rmdir out
7655 cd ..
7656 $RM -r conftest
7657 $RM conftest*
7658
7659fi
7660echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7661echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7662
7663
7664
7665
7666hard_links="nottested"
7667if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7668 # do not overwrite the value of need_locks provided by the user
7669 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7670echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7671 hard_links=yes
7672 $RM conftest*
7673 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7674 touch conftest.a
7675 ln conftest.a conftest.b 2>&5 || hard_links=no
7676 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7677 echo "$as_me:$LINENO: result: $hard_links" >&5
7678echo "${ECHO_T}$hard_links" >&6
7679 if test "$hard_links" = no; then
7680 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7681echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7682 need_locks=warn
7683 fi
7684else
7685 need_locks=no
7686fi
7687
7688
7689
7690
7691
7692
7693 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7694echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7695
7696 runpath_var=
7697 allow_undefined_flag=
7698 always_export_symbols=no
7699 archive_cmds=
7700 archive_expsym_cmds=
7701 compiler_needs_object=no
7702 enable_shared_with_static_runtimes=no
7703 export_dynamic_flag_spec=
7704 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7705 hardcode_automatic=no
7706 hardcode_direct=no
7707 hardcode_direct_absolute=no
7708 hardcode_libdir_flag_spec=
7709 hardcode_libdir_flag_spec_ld=
7710 hardcode_libdir_separator=
7711 hardcode_minus_L=no
7712 hardcode_shlibpath_var=unsupported
7713 inherit_rpath=no
7714 link_all_deplibs=unknown
7715 module_cmds=
7716 module_expsym_cmds=
7717 old_archive_from_new_cmds=
7718 old_archive_from_expsyms_cmds=
7719 thread_safe_flag_spec=
7720 whole_archive_flag_spec=
7721 # include_expsyms should be a list of space-separated symbols to be *always*
7722 # included in the symbol list
7723 include_expsyms=
7724 # exclude_expsyms can be an extended regexp of symbols to exclude
7725 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7726 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7727 # as well as any symbol that contains `d'.
7728 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7729 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7730 # platforms (ab)use it in PIC code, but their linkers get confused if
7731 # the symbol is explicitly referenced. Since portable code cannot
7732 # rely on this symbol name, it's probably fine to never include it in
7733 # preloaded symbol tables.
7734 extract_expsyms_cmds=
7735
7736 case $host_os in
7737 cygwin* | mingw* | pw32*)
7738 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7739 # When not using gcc, we currently assume that we are using
7740 # Microsoft Visual C++.
7741 if test "$GCC" != yes; then
7742 with_gnu_ld=no
7743 fi
7744 ;;
7745 interix*)
7746 # we just hope/assume this is gcc and not c89 (= MSVC++)
7747 with_gnu_ld=yes
7748 ;;
7749 openbsd*)
7750 with_gnu_ld=no
7751 ;;
7752 esac
7753
7754 ld_shlibs=yes
7755 if test "$with_gnu_ld" = yes; then
7756 # If archive_cmds runs LD, not CC, wlarc should be empty
7757 wlarc='${wl}'
7758
7759 # Set some defaults for GNU ld with shared library support. These
7760 # are reset later if shared libraries are not supported. Putting them
7761 # here allows them to be overridden if necessary.
7762 runpath_var=LD_RUN_PATH
7763 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7764 export_dynamic_flag_spec='${wl}--export-dynamic'
7765 # ancient GNU ld didn't support --whole-archive et. al.
7766 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7767 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7768 else
7769 whole_archive_flag_spec=
7770 fi
7771 supports_anon_versioning=no
7772 case `$LD -v 2>&1` in
7773 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7774 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7775 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7776 *\ 2.11.*) ;; # other 2.11 versions
7777 *) supports_anon_versioning=yes ;;
7778 esac
7779
7780 # See if GNU ld supports shared libraries.
7781 case $host_os in
7782 aix3* | aix4* | aix5*)
7783 # On AIX/PPC, the GNU linker is very broken
7784 if test "$host_cpu" != ia64; then
7785 ld_shlibs=no
7786 cat <<_LT_EOF 1>&2
7787
7788*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7789*** to be unable to reliably create shared libraries on AIX.
7790*** Therefore, libtool is disabling shared libraries support. If you
7791*** really care for shared libraries, you may want to modify your PATH
7792*** so that a non-GNU linker is found, and then restart.
7793
7794_LT_EOF
7795 fi
7796 ;;
7797
7798 amigaos*)
7799 if test "$host_cpu" = m68k; then
7800 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)'
7801 hardcode_libdir_flag_spec='-L$libdir'
7802 hardcode_minus_L=yes
7803 fi
7804
7805 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7806 # that the semantics of dynamic libraries on AmigaOS, at least up
7807 # to version 4, is to share data among multiple programs linked
7808 # with the same dynamic library. Since this doesn't match the
7809 # behavior of shared libraries on other platforms, we can't use
7810 # them.
7811 ld_shlibs=no
7812 ;;
7813
7814 beos*)
7815 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7816 allow_undefined_flag=unsupported
7817 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7818 # support --undefined. This deserves some investigation. FIXME
7819 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7820 else
7821 ld_shlibs=no
7822 fi
7823 ;;
7824
7825 cygwin* | mingw* | pw32*)
7826 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7827 # as there is no search path for DLLs.
7828 hardcode_libdir_flag_spec='-L$libdir'
7829 allow_undefined_flag=unsupported
7830 always_export_symbols=no
7831 enable_shared_with_static_runtimes=yes
7832 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7833
7834 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7835 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7836 # If the export-symbols file already is a .def file (1st line
7837 # is EXPORTS), use it as is; otherwise, prepend...
7838 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7839 cp $export_symbols $output_objdir/$soname.def;
7840 else
7841 echo EXPORTS > $output_objdir/$soname.def;
7842 cat $export_symbols >> $output_objdir/$soname.def;
7843 fi~
7844 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7845 else
7846 ld_shlibs=no
7847 fi
7848 ;;
7849
7850 interix[3-9]*)
7851 hardcode_direct=no
7852 hardcode_shlibpath_var=no
7853 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7854 export_dynamic_flag_spec='${wl}-E'
7855 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7856 # Instead, shared libraries are loaded at an image base (0x10000000 by
7857 # default) and relocated if they conflict, which is a slow very memory
7858 # consuming and fragmenting process. To avoid this, we pick a random,
7859 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7860 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7861 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7862 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'
7863 ;;
7864
7865 gnu* | linux* | tpf* | k*bsd*-gnu)
7866 tmp_diet=no
7867 if test "$host_os" = linux-dietlibc; then
7868 case $cc_basename in
7869 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7870 esac
7871 fi
7872 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7873 && test "$tmp_diet" = no
7874 then
7875 tmp_addflag=
7876 case $cc_basename,$host_cpu in
7877 pgcc*) # Portland Group C compiler
7878 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'
7879 tmp_addflag=' $pic_flag'
7880 ;;
7881 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7882 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'
7883 tmp_addflag=' $pic_flag -Mnomain' ;;
7884 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7885 tmp_addflag=' -i_dynamic' ;;
7886 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7887 tmp_addflag=' -i_dynamic -nofor_main' ;;
7888 ifc* | ifort*) # Intel Fortran compiler
7889 tmp_addflag=' -nofor_main' ;;
7890 esac
7891 case `$CC -V 2>&1 | sed 5q` in
7892 *Sun\ C*) # Sun C 5.9
7893 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'
7894 compiler_needs_object=yes
7895 tmp_sharedflag='-G' ;;
7896 *Sun\ F*) # Sun Fortran 8.3
7897 tmp_sharedflag='-G' ;;
7898 *)
7899 tmp_sharedflag='-shared' ;;
7900 esac
7901 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7902
7903 if test "x$supports_anon_versioning" = xyes; then
7904 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7905 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7906 echo "local: *; };" >> $output_objdir/$libname.ver~
7907 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7908 fi
7909 else
7910 ld_shlibs=no
7911 fi
7912 ;;
7913
7914 netbsd*)
7915 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7916 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7917 wlarc=
7918 else
7919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7920 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7921 fi
7922 ;;
7923
7924 solaris*)
7925 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7926 ld_shlibs=no
7927 cat <<_LT_EOF 1>&2
7928
7929*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7930*** create shared libraries on Solaris systems. Therefore, libtool
7931*** is disabling shared libraries support. We urge you to upgrade GNU
7932*** binutils to release 2.9.1 or newer. Another option is to modify
7933*** your PATH or compiler configuration so that the native linker is
7934*** used, and then restart.
7935
7936_LT_EOF
7937 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7938 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7939 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7940 else
7941 ld_shlibs=no
7942 fi
7943 ;;
7944
7945 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7946 case `$LD -v 2>&1` in
7947 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7948 ld_shlibs=no
7949 cat <<_LT_EOF 1>&2
7950
7951*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7952*** reliably create shared libraries on SCO systems. Therefore, libtool
7953*** is disabling shared libraries support. We urge you to upgrade GNU
7954*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7955*** your PATH or compiler configuration so that the native linker is
7956*** used, and then restart.
7957
7958_LT_EOF
7959 ;;
7960 *)
7961 # For security reasons, it is highly recommended that you always
7962 # use absolute paths for naming shared libraries, and exclude the
7963 # DT_RUNPATH tag from executables and libraries. But doing so
7964 # requires that you compile everything twice, which is a pain.
7965 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7967 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7968 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7969 else
7970 ld_shlibs=no
7971 fi
7972 ;;
7973 esac
7974 ;;
7975
7976 sunos4*)
7977 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7978 wlarc=
7979 hardcode_direct=yes
7980 hardcode_shlibpath_var=no
7981 ;;
7982
7983 *)
7984 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7985 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7986 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7987 else
7988 ld_shlibs=no
7989 fi
7990 ;;
7991 esac
7992
7993 if test "$ld_shlibs" = no; then
7994 runpath_var=
7995 hardcode_libdir_flag_spec=
7996 export_dynamic_flag_spec=
7997 whole_archive_flag_spec=
7998 fi
7999 else
8000 # PORTME fill in a description of your system's linker (not GNU ld)
8001 case $host_os in
8002 aix3*)
8003 allow_undefined_flag=unsupported
8004 always_export_symbols=yes
8005 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'
8006 # Note: this linker hardcodes the directories in LIBPATH if there
8007 # are no directories specified by -L.
8008 hardcode_minus_L=yes
8009 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8010 # Neither direct hardcoding nor static linking is supported with a
8011 # broken collect2.
8012 hardcode_direct=unsupported
8013 fi
8014 ;;
8015
8016 aix4* | aix5*)
8017 if test "$host_cpu" = ia64; then
8018 # On IA64, the linker does run time linking by default, so we don't
8019 # have to do anything special.
8020 aix_use_runtimelinking=no
8021 exp_sym_flag='-Bexport'
8022 no_entry_flag=""
8023 else
8024 # If we're using GNU nm, then we don't want the "-C" option.
8025 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8026 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8027 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'
8028 else
8029 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'
8030 fi
8031 aix_use_runtimelinking=no
8032
8033 # Test if we are trying to use run time linking or normal
8034 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8035 # need to do runtime linking.
8036 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8037 for ld_flag in $LDFLAGS; do
8038 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8039 aix_use_runtimelinking=yes
8040 break
8041 fi
8042 done
8043 ;;
8044 esac
8045
8046 exp_sym_flag='-bexport'
8047 no_entry_flag='-bnoentry'
8048 fi
8049
8050 # When large executables or shared objects are built, AIX ld can
8051 # have problems creating the table of contents. If linking a library
8052 # or program results in "error TOC overflow" add -mminimal-toc to
8053 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8054 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8055
8056 archive_cmds=''
8057 hardcode_direct=yes
8058 hardcode_direct_absolute=yes
8059 hardcode_libdir_separator=':'
8060 link_all_deplibs=yes
8061 file_list_spec='${wl}-f,'
8062
8063 if test "$GCC" = yes; then
8064 case $host_os in aix4.[012]|aix4.[012].*)
8065 # We only want to do this on AIX 4.2 and lower, the check
8066 # below for broken collect2 doesn't work under 4.3+
8067 collect2name=`${CC} -print-prog-name=collect2`
8068 if test -f "$collect2name" &&
8069 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8070 then
8071 # We have reworked collect2
8072 :
8073 else
8074 # We have old collect2
8075 hardcode_direct=unsupported
8076 # It fails to find uninstalled libraries when the uninstalled
8077 # path is not listed in the libpath. Setting hardcode_minus_L
8078 # to unsupported forces relinking
8079 hardcode_minus_L=yes
8080 hardcode_libdir_flag_spec='-L$libdir'
8081 hardcode_libdir_separator=
8082 fi
8083 ;;
8084 esac
8085 shared_flag='-shared'
8086 if test "$aix_use_runtimelinking" = yes; then
8087 shared_flag="$shared_flag "'${wl}-G'
8088 fi
8089 else
8090 # not using gcc
8091 if test "$host_cpu" = ia64; then
8092 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8093 # chokes on -Wl,-G. The following line is correct:
8094 shared_flag='-G'
8095 else
8096 if test "$aix_use_runtimelinking" = yes; then
8097 shared_flag='${wl}-G'
8098 else
8099 shared_flag='${wl}-bM:SRE'
8100 fi
8101 fi
8102 fi
8103
8104 # It seems that -bexpall does not export symbols beginning with
8105 # underscore (_), so it is better to generate a list of symbols to export.
8106 always_export_symbols=yes
8107 if test "$aix_use_runtimelinking" = yes; then
8108 # Warning - without using the other runtime loading flags (-brtl),
8109 # -berok will link without error, but may produce a broken library.
8110 allow_undefined_flag='-berok'
8111 # Determine the default libpath from the value encoded in an
8112 # empty executable.
8113 if test x$gcc_no_link = xyes; then
8114 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8115echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8116 { (exit 1); exit 1; }; }
8117fi
8118cat >conftest.$ac_ext <<_ACEOF
8119/* confdefs.h. */
8120_ACEOF
8121cat confdefs.h >>conftest.$ac_ext
8122cat >>conftest.$ac_ext <<_ACEOF
8123/* end confdefs.h. */
8124
8125int
8126main ()
8127{
8128
8129 ;
8130 return 0;
8131}
8132_ACEOF
8133rm -f conftest.$ac_objext conftest$ac_exeext
8134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8135 (eval $ac_link) 2>conftest.er1
8136 ac_status=$?
8137 grep -v '^ *+' conftest.er1 >conftest.err
8138 rm -f conftest.er1
8139 cat conftest.err >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } &&
8142 { ac_try='test -z "$ac_c_werror_flag"
8143 || test ! -s conftest.err'
8144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 (eval $ac_try) 2>&5
8146 ac_status=$?
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; } &&
8149 { ac_try='test -s conftest$ac_exeext'
8150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 (eval $ac_try) 2>&5
8152 ac_status=$?
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); }; }; then
8155
8156lt_aix_libpath_sed='
8157 /Import File Strings/,/^$/ {
8158 /^0/ {
8159 s/^0 *\(.*\)$/\1/
8160 p
8161 }
8162 }'
8163aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8164# Check for a 64-bit object if we didn't find anything.
8165if test -z "$aix_libpath"; then
8166 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8167fi
8168else
8169 echo "$as_me: failed program was:" >&5
8170sed 's/^/| /' conftest.$ac_ext >&5
8171
8172fi
8173rm -f conftest.err conftest.$ac_objext \
8174 conftest$ac_exeext conftest.$ac_ext
8175if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8176
8177 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8178 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"
8179 else
8180 if test "$host_cpu" = ia64; then
8181 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8182 allow_undefined_flag="-z nodefs"
8183 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"
8184 else
8185 # Determine the default libpath from the value encoded in an
8186 # empty executable.
8187 if test x$gcc_no_link = xyes; then
8188 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8189echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8190 { (exit 1); exit 1; }; }
8191fi
8192cat >conftest.$ac_ext <<_ACEOF
8193/* confdefs.h. */
8194_ACEOF
8195cat confdefs.h >>conftest.$ac_ext
8196cat >>conftest.$ac_ext <<_ACEOF
8197/* end confdefs.h. */
8198
8199int
8200main ()
8201{
8202
8203 ;
8204 return 0;
8205}
8206_ACEOF
8207rm -f conftest.$ac_objext conftest$ac_exeext
8208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8209 (eval $ac_link) 2>conftest.er1
8210 ac_status=$?
8211 grep -v '^ *+' conftest.er1 >conftest.err
8212 rm -f conftest.er1
8213 cat conftest.err >&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); } &&
8216 { ac_try='test -z "$ac_c_werror_flag"
8217 || test ! -s conftest.err'
8218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219 (eval $ac_try) 2>&5
8220 ac_status=$?
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; } &&
8223 { ac_try='test -s conftest$ac_exeext'
8224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225 (eval $ac_try) 2>&5
8226 ac_status=$?
8227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); }; }; then
8229
8230lt_aix_libpath_sed='
8231 /Import File Strings/,/^$/ {
8232 /^0/ {
8233 s/^0 *\(.*\)$/\1/
8234 p
8235 }
8236 }'
8237aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8238# Check for a 64-bit object if we didn't find anything.
8239if test -z "$aix_libpath"; then
8240 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8241fi
8242else
8243 echo "$as_me: failed program was:" >&5
8244sed 's/^/| /' conftest.$ac_ext >&5
8245
8246fi
8247rm -f conftest.err conftest.$ac_objext \
8248 conftest$ac_exeext conftest.$ac_ext
8249if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8250
8251 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8252 # Warning - without using the other run time loading flags,
8253 # -berok will link without error, but may produce a broken library.
8254 no_undefined_flag=' ${wl}-bernotok'
8255 allow_undefined_flag=' ${wl}-berok'
8256 # Exported symbols can be pulled into shared objects from archives
8257 whole_archive_flag_spec='$convenience'
8258 archive_cmds_need_lc=yes
8259 # This is similar to how AIX traditionally builds its shared libraries.
8260 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'
8261 fi
8262 fi
8263 ;;
8264
8265 amigaos*)
8266 if test "$host_cpu" = m68k; then
8267 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)'
8268 hardcode_libdir_flag_spec='-L$libdir'
8269 hardcode_minus_L=yes
8270 fi
8271 # see comment about different semantics on the GNU ld section
8272 ld_shlibs=no
8273 ;;
8274
8275 bsdi[45]*)
8276 export_dynamic_flag_spec=-rdynamic
8277 ;;
8278
8279 cygwin* | mingw* | pw32*)
8280 # When not using gcc, we currently assume that we are using
8281 # Microsoft Visual C++.
8282 # hardcode_libdir_flag_spec is actually meaningless, as there is
8283 # no search path for DLLs.
8284 hardcode_libdir_flag_spec=' '
8285 allow_undefined_flag=unsupported
8286 # Tell ltmain to make .lib files, not .a files.
8287 libext=lib
8288 # Tell ltmain to make .dll files, not .so files.
8289 shrext_cmds=".dll"
8290 # FIXME: Setting linknames here is a bad hack.
8291 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8292 # The linker will automatically build a .lib file if we build a DLL.
8293 old_archive_from_new_cmds='true'
8294 # FIXME: Should let the user specify the lib program.
8295 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8296 fix_srcfile_path='`cygpath -w "$srcfile"`'
8297 enable_shared_with_static_runtimes=yes
8298 ;;
8299
8300 darwin* | rhapsody*)
8301 case $host_os in
8302 rhapsody* | darwin1.[012])
8303 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8304 ;;
8305 *) # Darwin 1.3 on
8306 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
8307 10.[012])
8308 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8309 ;;
8310 10.*)
8311 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8312 ;;
8313 esac
8314 ;;
8315 esac
8316 archive_cmds_need_lc=no
8317 hardcode_direct=no
8318 hardcode_automatic=yes
8319 hardcode_shlibpath_var=unsupported
8320 whole_archive_flag_spec=''
8321 link_all_deplibs=yes
8322 if test "$GCC" = yes ; then
8323 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8325else
8326 lt_cv_apple_cc_single_mod=no
8327 if test -z "${LT_MULTI_MODULE}"; then
8328 # By default we will add the -single_module flag. You can override
8329 # by either setting the environment variable LT_MULTI_MODULE
8330 # non-empty at configure time, or by adding -multi-module to the
8331 # link flags.
8332 echo "int foo(void){return 1;}" > conftest.c
8333 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8334 -dynamiclib ${wl}-single_module conftest.c
8335 if test -f libconftest.dylib; then
8336 lt_cv_apple_cc_single_mod=yes
8337 rm libconftest.dylib
8338 fi
8339 rm conftest.$ac_ext
8340 fi
8341fi
8342
8343 output_verbose_link_cmd=echo
8344 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8345 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8346 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}'
8347 else
8348 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8349 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}'
8350 fi
8351 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8352 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}'
8353 else
8354 case $cc_basename in
8355 xlc*)
8356 output_verbose_link_cmd=echo
8357 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8358 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8359 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8360 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}'
8361 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}'
8362 ;;
8363 *)
8364 ld_shlibs=no
8365 ;;
8366 esac
8367 fi
8368 ;;
8369
8370 dgux*)
8371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8372 hardcode_libdir_flag_spec='-L$libdir'
8373 hardcode_shlibpath_var=no
8374 ;;
8375
8376 freebsd1*)
8377 ld_shlibs=no
8378 ;;
8379
8380 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8381 # support. Future versions do this automatically, but an explicit c++rt0.o
8382 # does not break anything, and helps significantly (at the cost of a little
8383 # extra space).
8384 freebsd2.2*)
8385 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8386 hardcode_libdir_flag_spec='-R$libdir'
8387 hardcode_direct=yes
8388 hardcode_shlibpath_var=no
8389 ;;
8390
8391 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8392 freebsd2*)
8393 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8394 hardcode_direct=yes
8395 hardcode_minus_L=yes
8396 hardcode_shlibpath_var=no
8397 ;;
8398
8399 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8400 freebsd* | dragonfly*)
8401 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8402 hardcode_libdir_flag_spec='-R$libdir'
8403 hardcode_direct=yes
8404 hardcode_shlibpath_var=no
8405 ;;
8406
8407 hpux9*)
8408 if test "$GCC" = yes; then
8409 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'
8410 else
8411 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'
8412 fi
8413 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8414 hardcode_libdir_separator=:
8415 hardcode_direct=yes
8416
8417 # hardcode_minus_L: Not really in the search PATH,
8418 # but as the default location of the library.
8419 hardcode_minus_L=yes
8420 export_dynamic_flag_spec='${wl}-E'
8421 ;;
8422
8423 hpux10*)
8424 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8425 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8426 else
8427 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8428 fi
8429 if test "$with_gnu_ld" = no; then
8430 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8431 hardcode_libdir_flag_spec_ld='+b $libdir'
8432 hardcode_libdir_separator=:
8433 hardcode_direct=yes
8434 hardcode_direct_absolute=yes
8435 export_dynamic_flag_spec='${wl}-E'
8436 # hardcode_minus_L: Not really in the search PATH,
8437 # but as the default location of the library.
8438 hardcode_minus_L=yes
8439 fi
8440 ;;
8441
8442 hpux11*)
8443 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8444 case $host_cpu in
8445 hppa*64*)
8446 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8447 ;;
8448 ia64*)
8449 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8450 ;;
8451 *)
8452 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8453 ;;
8454 esac
8455 else
8456 case $host_cpu in
8457 hppa*64*)
8458 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8459 ;;
8460 ia64*)
8461 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8462 ;;
8463 *)
8464 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8465 ;;
8466 esac
8467 fi
8468 if test "$with_gnu_ld" = no; then
8469 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8470 hardcode_libdir_separator=:
8471
8472 case $host_cpu in
8473 hppa*64*|ia64*)
8474 hardcode_direct=no
8475 hardcode_shlibpath_var=no
8476 ;;
8477 *)
8478 hardcode_direct=yes
8479 hardcode_direct_absolute=yes
8480 export_dynamic_flag_spec='${wl}-E'
8481
8482 # hardcode_minus_L: Not really in the search PATH,
8483 # but as the default location of the library.
8484 hardcode_minus_L=yes
8485 ;;
8486 esac
8487 fi
8488 ;;
8489
8490 irix5* | irix6* | nonstopux*)
8491 if test "$GCC" = yes; then
8492 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'
8493 # Try to use the -exported_symbol ld option, if it does not
8494 # work, assume that -exports_file does not work either and
8495 # implicitly export all symbols.
8496 save_LDFLAGS="$LDFLAGS"
8497 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8498 if test x$gcc_no_link = xyes; then
8499 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8500echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8501 { (exit 1); exit 1; }; }
8502fi
8503cat >conftest.$ac_ext <<_ACEOF
8504int foo(void) {}
8505_ACEOF
8506rm -f conftest.$ac_objext conftest$ac_exeext
8507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8508 (eval $ac_link) 2>conftest.er1
8509 ac_status=$?
8510 grep -v '^ *+' conftest.er1 >conftest.err
8511 rm -f conftest.er1
8512 cat conftest.err >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); } &&
8515 { ac_try='test -z "$ac_c_werror_flag"
8516 || test ! -s conftest.err'
8517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8518 (eval $ac_try) 2>&5
8519 ac_status=$?
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }; } &&
8522 { ac_try='test -s conftest$ac_exeext'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 (eval $ac_try) 2>&5
8525 ac_status=$?
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; }; then
8528 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'
8529
8530else
8531 echo "$as_me: failed program was:" >&5
8532sed 's/^/| /' conftest.$ac_ext >&5
8533
8534fi
8535rm -f conftest.err conftest.$ac_objext \
8536 conftest$ac_exeext conftest.$ac_ext
8537 LDFLAGS="$save_LDFLAGS"
8538 else
8539 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'
8540 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'
8541 fi
8542 archive_cmds_need_lc='no'
8543 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8544 hardcode_libdir_separator=:
8545 inherit_rpath=yes
8546 link_all_deplibs=yes
8547 ;;
8548
8549 netbsd*)
8550 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8552 else
8553 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8554 fi
8555 hardcode_libdir_flag_spec='-R$libdir'
8556 hardcode_direct=yes
8557 hardcode_shlibpath_var=no
8558 ;;
8559
8560 newsos6)
8561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8562 hardcode_direct=yes
8563 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8564 hardcode_libdir_separator=:
8565 hardcode_shlibpath_var=no
8566 ;;
8567
8568 *nto* | *qnx*)
8569 ;;
8570
8571 openbsd*)
8572 hardcode_direct=yes
8573 hardcode_shlibpath_var=no
8574 hardcode_direct_absolute=yes
8575 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8576 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8577 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8578 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8579 export_dynamic_flag_spec='${wl}-E'
8580 else
8581 case $host_os in
8582 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8583 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8584 hardcode_libdir_flag_spec='-R$libdir'
8585 ;;
8586 *)
8587 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8588 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8589 ;;
8590 esac
8591 fi
8592 ;;
8593
8594 os2*)
8595 hardcode_libdir_flag_spec='-L$libdir'
8596 hardcode_minus_L=yes
8597 allow_undefined_flag=unsupported
8598 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'
8599 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8600 ;;
8601
8602 osf3*)
8603 if test "$GCC" = yes; then
8604 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8605 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'
8606 else
8607 allow_undefined_flag=' -expect_unresolved \*'
8608 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'
8609 fi
8610 archive_cmds_need_lc='no'
8611 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8612 hardcode_libdir_separator=:
8613 ;;
8614
8615 osf4* | osf5*) # as osf3* with the addition of -msym flag
8616 if test "$GCC" = yes; then
8617 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8618 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'
8619 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8620 else
8621 allow_undefined_flag=' -expect_unresolved \*'
8622 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'
8623 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~
8624 $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'
8625
8626 # Both c and cxx compiler support -rpath directly
8627 hardcode_libdir_flag_spec='-rpath $libdir'
8628 fi
8629 archive_cmds_need_lc='no'
8630 hardcode_libdir_separator=:
8631 ;;
8632
8633 solaris*)
8634 no_undefined_flag=' -z defs'
8635 if test "$GCC" = yes; then
8636 wlarc='${wl}'
8637 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8638 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8639 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8640 else
8641 case `$CC -V 2>&1` in
8642 *"Compilers 5.0"*)
8643 wlarc=''
8644 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8645 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8646 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8647 ;;
8648 *)
8649 wlarc='${wl}'
8650 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8651 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8652 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8653 ;;
8654 esac
8655 fi
8656 hardcode_libdir_flag_spec='-R$libdir'
8657 hardcode_shlibpath_var=no
8658 case $host_os in
8659 solaris2.[0-5] | solaris2.[0-5].*) ;;
8660 *)
8661 # The compiler driver will combine and reorder linker options,
8662 # but understands `-z linker_flag'. GCC discards it without `$wl',
8663 # but is careful enough not to reorder.
8664 # Supported since Solaris 2.6 (maybe 2.5.1?)
8665 if test "$GCC" = yes; then
8666 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8667 else
8668 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8669 fi
8670 ;;
8671 esac
8672 link_all_deplibs=yes
8673 ;;
8674
8675 sunos4*)
8676 if test "x$host_vendor" = xsequent; then
8677 # Use $CC to link under sequent, because it throws in some extra .o
8678 # files that make .init and .fini sections work.
8679 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8680 else
8681 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8682 fi
8683 hardcode_libdir_flag_spec='-L$libdir'
8684 hardcode_direct=yes
8685 hardcode_minus_L=yes
8686 hardcode_shlibpath_var=no
8687 ;;
8688
8689 sysv4)
8690 case $host_vendor in
8691 sni)
8692 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8693 hardcode_direct=yes # is this really true???
8694 ;;
8695 siemens)
8696 ## LD is ld it makes a PLAMLIB
8697 ## CC just makes a GrossModule.
8698 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8699 reload_cmds='$CC -r -o $output$reload_objs'
8700 hardcode_direct=no
8701 ;;
8702 motorola)
8703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8704 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8705 ;;
8706 esac
8707 runpath_var='LD_RUN_PATH'
8708 hardcode_shlibpath_var=no
8709 ;;
8710
8711 sysv4.3*)
8712 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8713 hardcode_shlibpath_var=no
8714 export_dynamic_flag_spec='-Bexport'
8715 ;;
8716
8717 sysv4*MP*)
8718 if test -d /usr/nec; then
8719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8720 hardcode_shlibpath_var=no
8721 runpath_var=LD_RUN_PATH
8722 hardcode_runpath_var=yes
8723 ld_shlibs=yes
8724 fi
8725 ;;
8726
8727 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8728 no_undefined_flag='${wl}-z,text'
8729 archive_cmds_need_lc=no
8730 hardcode_shlibpath_var=no
8731 runpath_var='LD_RUN_PATH'
8732
8733 if test "$GCC" = yes; then
8734 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8735 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8736 else
8737 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8738 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8739 fi
8740 ;;
8741
8742 sysv5* | sco3.2v5* | sco5v6*)
8743 # Note: We can NOT use -z defs as we might desire, because we do not
8744 # link with -lc, and that would cause any symbols used from libc to
8745 # always be unresolved, which means just about no library would
8746 # ever link correctly. If we're not using GNU ld we use -z text
8747 # though, which does catch some bad symbols but isn't as heavy-handed
8748 # as -z defs.
8749 no_undefined_flag='${wl}-z,text'
8750 allow_undefined_flag='${wl}-z,nodefs'
8751 archive_cmds_need_lc=no
8752 hardcode_shlibpath_var=no
8753 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8754 hardcode_libdir_separator=':'
8755 link_all_deplibs=yes
8756 export_dynamic_flag_spec='${wl}-Bexport'
8757 runpath_var='LD_RUN_PATH'
8758
8759 if test "$GCC" = yes; then
8760 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8761 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8762 else
8763 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8764 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8765 fi
8766 ;;
8767
8768 uts4*)
8769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8770 hardcode_libdir_flag_spec='-L$libdir'
8771 hardcode_shlibpath_var=no
8772 ;;
8773
8774 *)
8775 ld_shlibs=no
8776 ;;
8777 esac
8778
8779 if test x$host_vendor = xsni; then
8780 case $host in
8781 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8782 export_dynamic_flag_spec='${wl}-Blargedynsym'
8783 ;;
8784 esac
8785 fi
8786 fi
8787
8788echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8789echo "${ECHO_T}$ld_shlibs" >&6
8790test "$ld_shlibs" = no && can_build_shared=no
8791
8792with_gnu_ld=$with_gnu_ld
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808#
8809# Do we need to explicitly link libc?
8810#
8811case "x$archive_cmds_need_lc" in
8812x|xyes)
8813 # Assume -lc should be added
8814 archive_cmds_need_lc=yes
8815
8816 if test "$enable_shared" = yes && test "$GCC" = yes; then
8817 case $archive_cmds in
8818 *'~'*)
8819 # FIXME: we may have to deal with multi-command sequences.
8820 ;;
8821 '$CC '*)
8822 # Test whether the compiler implicitly links with -lc since on some
8823 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8824 # to ld, don't add -lc before -lgcc.
8825 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8826echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8827 $RM conftest*
8828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8829
8830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8831 (eval $ac_compile) 2>&5
8832 ac_status=$?
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } 2>conftest.err; then
8835 soname=conftest
8836 lib=conftest
8837 libobjs=conftest.$ac_objext
8838 deplibs=
8839 wl=$lt_prog_compiler_wl
8840 pic_flag=$lt_prog_compiler_pic
8841 compiler_flags=-v
8842 linker_flags=-v
8843 verstring=
8844 output_objdir=.
8845 libname=conftest
8846 lt_save_allow_undefined_flag=$allow_undefined_flag
8847 allow_undefined_flag=
8848 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8849 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8850 ac_status=$?
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }
8853 then
8854 archive_cmds_need_lc=no
8855 else
8856 archive_cmds_need_lc=yes
8857 fi
8858 allow_undefined_flag=$lt_save_allow_undefined_flag
8859 else
8860 cat conftest.err 1>&5
8861 fi
8862 $RM conftest*
8863 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8864echo "${ECHO_T}$archive_cmds_need_lc" >&6
8865 ;;
8866 esac
8867 fi
8868 ;;
8869esac
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
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 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9028echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9029withGCC=$GCC
9030if test "$withGCC" = yes; then
9031 case $host_os in
9032 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9033 *) lt_awk_arg="/^libraries:/" ;;
9034 esac
9035 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9036 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9037 # if the path contains ";" then we assume it to be the separator
9038 # otherwise default to the standard path separator (i.e. ":") - it is
9039 # assumed that no part of a normal pathname contains ";" but that should
9040 # okay in the real world where ";" in dirpaths is itself problematic.
9041 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9042 else
9043 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9044 fi
9045 # Ok, now we have the path, separated by spaces, we can step through it
9046 # and add multilib dir if necessary.
9047 lt_tmp_lt_search_path_spec=
9048 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9049 for lt_sys_path in $lt_search_path_spec; do
9050 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9051 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9052 else
9053 test -d "$lt_sys_path" && \
9054 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9055 fi
9056 done
9057 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9058BEGIN {RS=" "; FS="/|\n";} {
9059 lt_foo="";
9060 lt_count=0;
9061 for (lt_i = NF; lt_i > 0; lt_i--) {
9062 if ($lt_i != "" && $lt_i != ".") {
9063 if ($lt_i == "..") {
9064 lt_count++;
9065 } else {
9066 if (lt_count == 0) {
9067 lt_foo="/" $lt_i lt_foo;
9068 } else {
9069 lt_count--;
9070 }
9071 }
9072 }
9073 }
9074 if (lt_foo != "") { lt_freq[lt_foo]++; }
9075 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9076}'`
9077 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9078else
9079 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9080fi
9081library_names_spec=
9082libname_spec='lib$name'
9083soname_spec=
9084shrext_cmds=".so"
9085postinstall_cmds=
9086postuninstall_cmds=
9087finish_cmds=
9088finish_eval=
9089shlibpath_var=
9090shlibpath_overrides_runpath=unknown
9091version_type=none
9092dynamic_linker="$host_os ld.so"
9093sys_lib_dlsearch_path_spec="/lib /usr/lib"
9094need_lib_prefix=unknown
9095hardcode_into_libs=no
9096
9097# when you set need_version to no, make sure it does not cause -set_version
9098# flags to be left without arguments
9099need_version=unknown
9100
9101case $host_os in
9102aix3*)
9103 version_type=linux
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9105 shlibpath_var=LIBPATH
9106
9107 # AIX 3 has no versioning support, so we append a major version to the name.
9108 soname_spec='${libname}${release}${shared_ext}$major'
9109 ;;
9110
9111aix4* | aix5*)
9112 version_type=linux
9113 need_lib_prefix=no
9114 need_version=no
9115 hardcode_into_libs=yes
9116 if test "$host_cpu" = ia64; then
9117 # AIX 5 supports IA64
9118 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9119 shlibpath_var=LD_LIBRARY_PATH
9120 else
9121 # With GCC up to 2.95.x, collect2 would create an import file
9122 # for dependence libraries. The import file would start with
9123 # the line `#! .'. This would cause the generated library to
9124 # depend on `.', always an invalid library. This was fixed in
9125 # development snapshots of GCC prior to 3.0.
9126 case $host_os in
9127 aix4 | aix4.[01] | aix4.[01].*)
9128 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9129 echo ' yes '
9130 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9131 :
9132 else
9133 can_build_shared=no
9134 fi
9135 ;;
9136 esac
9137 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9138 # soname into executable. Probably we can add versioning support to
9139 # collect2, so additional links can be useful in future.
9140 if test "$aix_use_runtimelinking" = yes; then
9141 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9142 # instead of lib<name>.a to let people know that these are not
9143 # typical AIX shared libraries.
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145 else
9146 # We preserve .a as extension for shared libraries through AIX4.2
9147 # and later when we are not doing run time linking.
9148 library_names_spec='${libname}${release}.a $libname.a'
9149 soname_spec='${libname}${release}${shared_ext}$major'
9150 fi
9151 shlibpath_var=LIBPATH
9152 fi
9153 ;;
9154
9155amigaos*)
9156 if test "$host_cpu" = m68k; then
9157 library_names_spec='$libname.ixlibrary $libname.a'
9158 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9159 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'
9160 else
9161 dynamic_linker=no
9162 fi
9163 ;;
9164
9165beos*)
9166 library_names_spec='${libname}${shared_ext}'
9167 dynamic_linker="$host_os ld.so"
9168 shlibpath_var=LIBRARY_PATH
9169 ;;
9170
9171bsdi[45]*)
9172 version_type=linux
9173 need_version=no
9174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9175 soname_spec='${libname}${release}${shared_ext}$major'
9176 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9177 shlibpath_var=LD_LIBRARY_PATH
9178 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9179 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9180 # the default ld.so.conf also contains /usr/contrib/lib and
9181 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9182 # libtool to hard-code these into programs
9183 ;;
9184
9185cygwin* | mingw* | pw32*)
9186 version_type=windows
9187 shrext_cmds=".dll"
9188 need_version=no
9189 need_lib_prefix=no
9190
9191 case $withGCC,$host_os in
9192 yes,cygwin* | yes,mingw* | yes,pw32*)
9193 library_names_spec='$libname.dll.a'
9194 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9195 postinstall_cmds='base_file=`basename \${file}`~
9196 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9197 dldir=$destdir/`dirname \$dlpath`~
9198 test -d \$dldir || mkdir -p \$dldir~
9199 $install_prog $dir/$dlname \$dldir/$dlname~
9200 chmod a+x \$dldir/$dlname~
9201 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9202 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9203 fi'
9204 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9205 dlpath=$dir/\$dldll~
9206 $RM \$dlpath'
9207 shlibpath_overrides_runpath=yes
9208
9209 case $host_os in
9210 cygwin*)
9211 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9212 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9213 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9214 ;;
9215 mingw*)
9216 # MinGW DLLs use traditional 'lib' prefix
9217 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9218 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9219 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9220 # It is most probably a Windows format PATH printed by
9221 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9222 # path with ; separators, and with drive letters. We can handle the
9223 # drive letters (cygwin fileutils understands them), so leave them,
9224 # especially as we might pass files found there to a mingw objdump,
9225 # which wouldn't understand a cygwinified path. Ahh.
9226 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9227 else
9228 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9229 fi
9230 ;;
9231 pw32*)
9232 # pw32 DLLs use 'pw' prefix rather than 'lib'
9233 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9234 ;;
9235 esac
9236 ;;
9237
9238 *)
9239 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9240 ;;
9241 esac
9242 dynamic_linker='Win32 ld.exe'
9243 # FIXME: first we should search . and the directory the executable is in
9244 shlibpath_var=PATH
9245 ;;
9246
9247darwin* | rhapsody*)
9248 dynamic_linker="$host_os dyld"
9249 version_type=darwin
9250 need_lib_prefix=no
9251 need_version=no
9252 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9253 soname_spec='${libname}${release}${major}$shared_ext'
9254 shlibpath_overrides_runpath=yes
9255 shlibpath_var=DYLD_LIBRARY_PATH
9256 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9257
9258 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9259 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9260 ;;
9261
9262dgux*)
9263 version_type=linux
9264 need_lib_prefix=no
9265 need_version=no
9266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9267 soname_spec='${libname}${release}${shared_ext}$major'
9268 shlibpath_var=LD_LIBRARY_PATH
9269 ;;
9270
9271freebsd1*)
9272 dynamic_linker=no
9273 ;;
9274
9275freebsd* | dragonfly*)
9276 # DragonFly does not have aout. When/if they implement a new
9277 # versioning mechanism, adjust this.
9278 if test -x /usr/bin/objformat; then
9279 objformat=`/usr/bin/objformat`
9280 else
9281 case $host_os in
9282 freebsd[123]*) objformat=aout ;;
9283 *) objformat=elf ;;
9284 esac
9285 fi
9286 version_type=freebsd-$objformat
9287 case $version_type in
9288 freebsd-elf*)
9289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9290 need_version=no
9291 need_lib_prefix=no
9292 ;;
9293 freebsd-*)
9294 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9295 need_version=yes
9296 ;;
9297 esac
9298 shlibpath_var=LD_LIBRARY_PATH
9299 case $host_os in
9300 freebsd2*)
9301 shlibpath_overrides_runpath=yes
9302 ;;
9303 freebsd3.[01]* | freebsdelf3.[01]*)
9304 shlibpath_overrides_runpath=yes
9305 hardcode_into_libs=yes
9306 ;;
9307 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9308 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9309 shlibpath_overrides_runpath=no
9310 hardcode_into_libs=yes
9311 ;;
9312 *) # from 4.6 on, and DragonFly
9313 shlibpath_overrides_runpath=yes
9314 hardcode_into_libs=yes
9315 ;;
9316 esac
9317 ;;
9318
9319gnu*)
9320 version_type=linux
9321 need_lib_prefix=no
9322 need_version=no
9323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9324 soname_spec='${libname}${release}${shared_ext}$major'
9325 shlibpath_var=LD_LIBRARY_PATH
9326 hardcode_into_libs=yes
9327 ;;
9328
9329hpux9* | hpux10* | hpux11*)
9330 # Give a soname corresponding to the major version so that dld.sl refuses to
9331 # link against other versions.
9332 version_type=sunos
9333 need_lib_prefix=no
9334 need_version=no
9335 case $host_cpu in
9336 ia64*)
9337 shrext_cmds='.so'
9338 hardcode_into_libs=yes
9339 dynamic_linker="$host_os dld.so"
9340 shlibpath_var=LD_LIBRARY_PATH
9341 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9343 soname_spec='${libname}${release}${shared_ext}$major'
9344 if test "X$HPUX_IA64_MODE" = X32; then
9345 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9346 else
9347 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9348 fi
9349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9350 ;;
9351 hppa*64*)
9352 shrext_cmds='.sl'
9353 hardcode_into_libs=yes
9354 dynamic_linker="$host_os dld.sl"
9355 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9358 soname_spec='${libname}${release}${shared_ext}$major'
9359 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9360 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9361 ;;
9362 *)
9363 shrext_cmds='.sl'
9364 dynamic_linker="$host_os dld.sl"
9365 shlibpath_var=SHLIB_PATH
9366 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9368 soname_spec='${libname}${release}${shared_ext}$major'
9369 ;;
9370 esac
9371 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9372 postinstall_cmds='chmod 555 $lib'
9373 ;;
9374
9375interix[3-9]*)
9376 version_type=linux
9377 need_lib_prefix=no
9378 need_version=no
9379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9380 soname_spec='${libname}${release}${shared_ext}$major'
9381 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9382 shlibpath_var=LD_LIBRARY_PATH
9383 shlibpath_overrides_runpath=no
9384 hardcode_into_libs=yes
9385 ;;
9386
9387irix5* | irix6* | nonstopux*)
9388 case $host_os in
9389 nonstopux*) version_type=nonstopux ;;
9390 *)
9391 if test "$lt_cv_prog_gnu_ld" = yes; then
9392 version_type=linux
9393 else
9394 version_type=irix
9395 fi ;;
9396 esac
9397 need_lib_prefix=no
9398 need_version=no
9399 soname_spec='${libname}${release}${shared_ext}$major'
9400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9401 case $host_os in
9402 irix5* | nonstopux*)
9403 libsuff= shlibsuff=
9404 ;;
9405 *)
9406 case $LD in # libtool.m4 will add one of these switches to LD
9407 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9408 libsuff= shlibsuff= libmagic=32-bit;;
9409 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9410 libsuff=32 shlibsuff=N32 libmagic=N32;;
9411 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9412 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9413 *) libsuff= shlibsuff= libmagic=never-match;;
9414 esac
9415 ;;
9416 esac
9417 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9418 shlibpath_overrides_runpath=no
9419 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9420 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9421 hardcode_into_libs=yes
9422 ;;
9423
9424# No shared lib support for Linux oldld, aout, or coff.
9425linux*oldld* | linux*aout* | linux*coff*)
9426 dynamic_linker=no
9427 ;;
9428
9429# This must be Linux ELF.
9430linux* | k*bsd*-gnu)
9431 version_type=linux
9432 need_lib_prefix=no
9433 need_version=no
9434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9435 soname_spec='${libname}${release}${shared_ext}$major'
9436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9437 shlibpath_var=LD_LIBRARY_PATH
9438 shlibpath_overrides_runpath=no
9439 # Some binutils ld are patched to set DT_RUNPATH
9440 save_LDFLAGS=$LDFLAGS
9441 save_libdir=$libdir
9442 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9443 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9444 if test x$gcc_no_link = xyes; then
9445 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9446echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9447 { (exit 1); exit 1; }; }
9448fi
9449cat >conftest.$ac_ext <<_ACEOF
9450/* confdefs.h. */
9451_ACEOF
9452cat confdefs.h >>conftest.$ac_ext
9453cat >>conftest.$ac_ext <<_ACEOF
9454/* end confdefs.h. */
9455
9456int
9457main ()
9458{
9459
9460 ;
9461 return 0;
9462}
9463_ACEOF
9464rm -f conftest.$ac_objext conftest$ac_exeext
9465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9466 (eval $ac_link) 2>conftest.er1
9467 ac_status=$?
9468 grep -v '^ *+' conftest.er1 >conftest.err
9469 rm -f conftest.er1
9470 cat conftest.err >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); } &&
9473 { ac_try='test -z "$ac_c_werror_flag"
9474 || test ! -s conftest.err'
9475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476 (eval $ac_try) 2>&5
9477 ac_status=$?
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; } &&
9480 { ac_try='test -s conftest$ac_exeext'
9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482 (eval $ac_try) 2>&5
9483 ac_status=$?
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; }; then
9486 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9487 shlibpath_overrides_runpath=yes
9488fi
9489
9490else
9491 echo "$as_me: failed program was:" >&5
9492sed 's/^/| /' conftest.$ac_ext >&5
9493
9494fi
9495rm -f conftest.err conftest.$ac_objext \
9496 conftest$ac_exeext conftest.$ac_ext
9497 LDFLAGS=$save_LDFLAGS
9498 libdir=$save_libdir
9499
9500 # This implies no fast_install, which is unacceptable.
9501 # Some rework will be needed to allow for fast_install
9502 # before this can be enabled.
9503 hardcode_into_libs=yes
9504
9505 # Append ld.so.conf contents to the search path
9506 if test -f /etc/ld.so.conf; then
9507 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' ' '`
9508 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9509 fi
9510
9511 # We used to test for /lib/ld.so.1 and disable shared libraries on
9512 # powerpc, because MkLinux only supported shared libraries with the
9513 # GNU dynamic linker. Since this was broken with cross compilers,
9514 # most powerpc-linux boxes support dynamic linking these days and
9515 # people can always --disable-shared, the test was removed, and we
9516 # assume the GNU/Linux dynamic linker is in use.
9517 dynamic_linker='GNU/Linux ld.so'
9518 ;;
9519
9520netbsd*)
9521 version_type=sunos
9522 need_lib_prefix=no
9523 need_version=no
9524 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9527 dynamic_linker='NetBSD (a.out) ld.so'
9528 else
9529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9530 soname_spec='${libname}${release}${shared_ext}$major'
9531 dynamic_linker='NetBSD ld.elf_so'
9532 fi
9533 shlibpath_var=LD_LIBRARY_PATH
9534 shlibpath_overrides_runpath=yes
9535 hardcode_into_libs=yes
9536 ;;
9537
9538newsos6)
9539 version_type=linux
9540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9541 shlibpath_var=LD_LIBRARY_PATH
9542 shlibpath_overrides_runpath=yes
9543 ;;
9544
9545*nto* | *qnx*)
9546 version_type=qnx
9547 need_lib_prefix=no
9548 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
9552 shlibpath_overrides_runpath=no
9553 hardcode_into_libs=yes
9554 dynamic_linker='ldqnx.so'
9555 ;;
9556
9557openbsd*)
9558 version_type=sunos
9559 sys_lib_dlsearch_path_spec="/usr/lib"
9560 need_lib_prefix=no
9561 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9562 case $host_os in
9563 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9564 *) need_version=no ;;
9565 esac
9566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9568 shlibpath_var=LD_LIBRARY_PATH
9569 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9570 case $host_os in
9571 openbsd2.[89] | openbsd2.[89].*)
9572 shlibpath_overrides_runpath=no
9573 ;;
9574 *)
9575 shlibpath_overrides_runpath=yes
9576 ;;
9577 esac
9578 else
9579 shlibpath_overrides_runpath=yes
9580 fi
9581 ;;
9582
9583os2*)
9584 libname_spec='$name'
9585 shrext_cmds=".dll"
9586 need_lib_prefix=no
9587 library_names_spec='$libname${shared_ext} $libname.a'
9588 dynamic_linker='OS/2 ld.exe'
9589 shlibpath_var=LIBPATH
9590 ;;
9591
9592osf3* | osf4* | osf5*)
9593 version_type=osf
9594 need_lib_prefix=no
9595 need_version=no
9596 soname_spec='${libname}${release}${shared_ext}$major'
9597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9598 shlibpath_var=LD_LIBRARY_PATH
9599 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9600 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9601 ;;
9602
9603rdos*)
9604 dynamic_linker=no
9605 ;;
9606
9607solaris*)
9608 version_type=linux
9609 need_lib_prefix=no
9610 need_version=no
9611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9612 soname_spec='${libname}${release}${shared_ext}$major'
9613 shlibpath_var=LD_LIBRARY_PATH
9614 shlibpath_overrides_runpath=yes
9615 hardcode_into_libs=yes
9616 # ldd complains unless libraries are executable
9617 postinstall_cmds='chmod +x $lib'
9618 ;;
9619
9620sunos4*)
9621 version_type=sunos
9622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9623 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9624 shlibpath_var=LD_LIBRARY_PATH
9625 shlibpath_overrides_runpath=yes
9626 if test "$with_gnu_ld" = yes; then
9627 need_lib_prefix=no
9628 fi
9629 need_version=yes
9630 ;;
9631
9632sysv4 | sysv4.3*)
9633 version_type=linux
9634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9635 soname_spec='${libname}${release}${shared_ext}$major'
9636 shlibpath_var=LD_LIBRARY_PATH
9637 case $host_vendor in
9638 sni)
9639 shlibpath_overrides_runpath=no
9640 need_lib_prefix=no
9641 runpath_var=LD_RUN_PATH
9642 ;;
9643 siemens)
9644 need_lib_prefix=no
9645 ;;
9646 motorola)
9647 need_lib_prefix=no
9648 need_version=no
9649 shlibpath_overrides_runpath=no
9650 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9651 ;;
9652 esac
9653 ;;
9654
9655sysv4*MP*)
9656 if test -d /usr/nec ;then
9657 version_type=linux
9658 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9659 soname_spec='$libname${shared_ext}.$major'
9660 shlibpath_var=LD_LIBRARY_PATH
9661 fi
9662 ;;
9663
9664sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9665 version_type=freebsd-elf
9666 need_lib_prefix=no
9667 need_version=no
9668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9669 soname_spec='${libname}${release}${shared_ext}$major'
9670 shlibpath_var=LD_LIBRARY_PATH
9671 shlibpath_overrides_runpath=yes
9672 hardcode_into_libs=yes
9673 if test "$with_gnu_ld" = yes; then
9674 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9675 else
9676 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9677 case $host_os in
9678 sco3.2v5*)
9679 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9680 ;;
9681 esac
9682 fi
9683 sys_lib_dlsearch_path_spec='/usr/lib'
9684 ;;
9685
9686tpf*)
9687 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9688 version_type=linux
9689 need_lib_prefix=no
9690 need_version=no
9691 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9692 shlibpath_var=LD_LIBRARY_PATH
9693 shlibpath_overrides_runpath=no
9694 hardcode_into_libs=yes
9695 ;;
9696
9697uts4*)
9698 version_type=linux
9699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9700 soname_spec='${libname}${release}${shared_ext}$major'
9701 shlibpath_var=LD_LIBRARY_PATH
9702 ;;
9703
9704*)
9705 dynamic_linker=no
9706 ;;
9707esac
9708echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9709echo "${ECHO_T}$dynamic_linker" >&6
9710test "$dynamic_linker" = no && can_build_shared=no
9711
9712variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9713if test "$GCC" = yes; then
9714 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9715fi
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
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 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9804echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9805hardcode_action=
9806if test -n "$hardcode_libdir_flag_spec" ||
9807 test -n "$runpath_var" ||
9808 test "X$hardcode_automatic" = "Xyes" ; then
9809
9810 # We can hardcode non-existent directories.
9811 if test "$hardcode_direct" != no &&
9812 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9813 # have to relink, otherwise we might link with an installed library
9814 # when we should be linking with a yet-to-be-installed one
9815 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9816 test "$hardcode_minus_L" != no; then
9817 # Linking always hardcodes the temporary library directory.
9818 hardcode_action=relink
9819 else
9820 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9821 hardcode_action=immediate
9822 fi
9823else
9824 # We cannot hardcode anything, or else we can only hardcode existing
9825 # directories.
9826 hardcode_action=unsupported
9827fi
9828echo "$as_me:$LINENO: result: $hardcode_action" >&5
9829echo "${ECHO_T}$hardcode_action" >&6
9830
9831if test "$hardcode_action" = relink ||
9832 test "$inherit_rpath" = yes; then
9833 # Fast installation is not supported
9834 enable_fast_install=no
9835elif test "$shlibpath_overrides_runpath" = yes ||
9836 test "$enable_shared" = no; then
9837 # Fast installation is not necessary
9838 enable_fast_install=needless
9839fi
9840
9841
9842
9843
9844
9845
9846 if test "x$enable_dlopen" != xyes; then
9847 enable_dlopen=unknown
9848 enable_dlopen_self=unknown
9849 enable_dlopen_self_static=unknown
9850else
9851 lt_cv_dlopen=no
9852 lt_cv_dlopen_libs=
9853
9854 case $host_os in
9855 beos*)
9856 lt_cv_dlopen="load_add_on"
9857 lt_cv_dlopen_libs=
9858 lt_cv_dlopen_self=yes
9859 ;;
9860
9861 mingw* | pw32*)
9862 lt_cv_dlopen="LoadLibrary"
9863 lt_cv_dlopen_libs=
9864 ;;
9865
9866 cygwin*)
9867 lt_cv_dlopen="dlopen"
9868 lt_cv_dlopen_libs=
9869 ;;
9870
9871 darwin*)
9872 # if libdl is installed we need to link against it
9873 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9874echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9875if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9877else
9878 ac_check_lib_save_LIBS=$LIBS
9879LIBS="-ldl $LIBS"
9880if test x$gcc_no_link = xyes; then
9881 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9882echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9883 { (exit 1); exit 1; }; }
9884fi
9885cat >conftest.$ac_ext <<_ACEOF
9886/* confdefs.h. */
9887_ACEOF
9888cat confdefs.h >>conftest.$ac_ext
9889cat >>conftest.$ac_ext <<_ACEOF
9890/* end confdefs.h. */
9891
9892/* Override any gcc2 internal prototype to avoid an error. */
9893#ifdef __cplusplus
9894extern "C"
9895#endif
9896/* We use char because int might match the return type of a gcc2
9897 builtin and then its argument prototype would still apply. */
9898char dlopen ();
9899int
9900main ()
9901{
9902dlopen ();
9903 ;
9904 return 0;
9905}
9906_ACEOF
9907rm -f conftest.$ac_objext conftest$ac_exeext
9908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9909 (eval $ac_link) 2>conftest.er1
9910 ac_status=$?
9911 grep -v '^ *+' conftest.er1 >conftest.err
9912 rm -f conftest.er1
9913 cat conftest.err >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } &&
9916 { ac_try='test -z "$ac_c_werror_flag"
9917 || test ! -s conftest.err'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 (eval $ac_try) 2>&5
9920 ac_status=$?
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; } &&
9923 { ac_try='test -s conftest$ac_exeext'
9924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 (eval $ac_try) 2>&5
9926 ac_status=$?
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; }; then
9929 ac_cv_lib_dl_dlopen=yes
9930else
9931 echo "$as_me: failed program was:" >&5
9932sed 's/^/| /' conftest.$ac_ext >&5
9933
9934ac_cv_lib_dl_dlopen=no
9935fi
9936rm -f conftest.err conftest.$ac_objext \
9937 conftest$ac_exeext conftest.$ac_ext
9938LIBS=$ac_check_lib_save_LIBS
9939fi
9940echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9941echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9942if test $ac_cv_lib_dl_dlopen = yes; then
9943 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9944else
9945
9946 lt_cv_dlopen="dyld"
9947 lt_cv_dlopen_libs=
9948 lt_cv_dlopen_self=yes
9949
9950fi
9951
9952 ;;
9953
9954 *)
9955 echo "$as_me:$LINENO: checking for shl_load" >&5
9956echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9957if test "${ac_cv_func_shl_load+set}" = set; then
9958 echo $ECHO_N "(cached) $ECHO_C" >&6
9959else
9960 if test x$gcc_no_link = xyes; then
9961 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9962echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9963 { (exit 1); exit 1; }; }
9964fi
9965cat >conftest.$ac_ext <<_ACEOF
9966/* confdefs.h. */
9967_ACEOF
9968cat confdefs.h >>conftest.$ac_ext
9969cat >>conftest.$ac_ext <<_ACEOF
9970/* end confdefs.h. */
9971/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9973#define shl_load innocuous_shl_load
9974
9975/* System header to define __stub macros and hopefully few prototypes,
9976 which can conflict with char shl_load (); below.
9977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9978 <limits.h> exists even on freestanding compilers. */
9979
9980#ifdef __STDC__
9981# include <limits.h>
9982#else
9983# include <assert.h>
9984#endif
9985
9986#undef shl_load
9987
9988/* Override any gcc2 internal prototype to avoid an error. */
9989#ifdef __cplusplus
9990extern "C"
9991{
9992#endif
9993/* We use char because int might match the return type of a gcc2
9994 builtin and then its argument prototype would still apply. */
9995char shl_load ();
9996/* The GNU C library defines this for functions which it implements
9997 to always fail with ENOSYS. Some functions are actually named
9998 something starting with __ and the normal name is an alias. */
9999#if defined (__stub_shl_load) || defined (__stub___shl_load)
10000choke me
10001#else
10002char (*f) () = shl_load;
10003#endif
10004#ifdef __cplusplus
10005}
10006#endif
10007
10008int
10009main ()
10010{
10011return f != shl_load;
10012 ;
10013 return 0;
10014}
10015_ACEOF
10016rm -f conftest.$ac_objext conftest$ac_exeext
10017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10018 (eval $ac_link) 2>conftest.er1
10019 ac_status=$?
10020 grep -v '^ *+' conftest.er1 >conftest.err
10021 rm -f conftest.er1
10022 cat conftest.err >&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } &&
10025 { ac_try='test -z "$ac_c_werror_flag"
10026 || test ! -s conftest.err'
10027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028 (eval $ac_try) 2>&5
10029 ac_status=$?
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; } &&
10032 { ac_try='test -s conftest$ac_exeext'
10033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034 (eval $ac_try) 2>&5
10035 ac_status=$?
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; }; then
10038 ac_cv_func_shl_load=yes
10039else
10040 echo "$as_me: failed program was:" >&5
10041sed 's/^/| /' conftest.$ac_ext >&5
10042
10043ac_cv_func_shl_load=no
10044fi
10045rm -f conftest.err conftest.$ac_objext \
10046 conftest$ac_exeext conftest.$ac_ext
10047fi
10048echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10049echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10050if test $ac_cv_func_shl_load = yes; then
10051 lt_cv_dlopen="shl_load"
10052else
10053 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10054echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10055if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10056 echo $ECHO_N "(cached) $ECHO_C" >&6
10057else
10058 ac_check_lib_save_LIBS=$LIBS
10059LIBS="-ldld $LIBS"
10060if test x$gcc_no_link = xyes; then
10061 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10062echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10063 { (exit 1); exit 1; }; }
10064fi
10065cat >conftest.$ac_ext <<_ACEOF
10066/* confdefs.h. */
10067_ACEOF
10068cat confdefs.h >>conftest.$ac_ext
10069cat >>conftest.$ac_ext <<_ACEOF
10070/* end confdefs.h. */
10071
10072/* Override any gcc2 internal prototype to avoid an error. */
10073#ifdef __cplusplus
10074extern "C"
10075#endif
10076/* We use char because int might match the return type of a gcc2
10077 builtin and then its argument prototype would still apply. */
10078char shl_load ();
10079int
10080main ()
10081{
10082shl_load ();
10083 ;
10084 return 0;
10085}
10086_ACEOF
10087rm -f conftest.$ac_objext conftest$ac_exeext
10088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10089 (eval $ac_link) 2>conftest.er1
10090 ac_status=$?
10091 grep -v '^ *+' conftest.er1 >conftest.err
10092 rm -f conftest.er1
10093 cat conftest.err >&5
10094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10095 (exit $ac_status); } &&
10096 { ac_try='test -z "$ac_c_werror_flag"
10097 || test ! -s conftest.err'
10098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10099 (eval $ac_try) 2>&5
10100 ac_status=$?
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); }; } &&
10103 { ac_try='test -s conftest$ac_exeext'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10106 ac_status=$?
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; }; then
10109 ac_cv_lib_dld_shl_load=yes
10110else
10111 echo "$as_me: failed program was:" >&5
10112sed 's/^/| /' conftest.$ac_ext >&5
10113
10114ac_cv_lib_dld_shl_load=no
10115fi
10116rm -f conftest.err conftest.$ac_objext \
10117 conftest$ac_exeext conftest.$ac_ext
10118LIBS=$ac_check_lib_save_LIBS
10119fi
10120echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10121echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10122if test $ac_cv_lib_dld_shl_load = yes; then
10123 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10124else
10125 echo "$as_me:$LINENO: checking for dlopen" >&5
10126echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10127if test "${ac_cv_func_dlopen+set}" = set; then
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10129else
10130 if test x$gcc_no_link = xyes; then
10131 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10132echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10133 { (exit 1); exit 1; }; }
10134fi
10135cat >conftest.$ac_ext <<_ACEOF
10136/* confdefs.h. */
10137_ACEOF
10138cat confdefs.h >>conftest.$ac_ext
10139cat >>conftest.$ac_ext <<_ACEOF
10140/* end confdefs.h. */
10141/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10143#define dlopen innocuous_dlopen
10144
10145/* System header to define __stub macros and hopefully few prototypes,
10146 which can conflict with char dlopen (); below.
10147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10148 <limits.h> exists even on freestanding compilers. */
10149
10150#ifdef __STDC__
10151# include <limits.h>
10152#else
10153# include <assert.h>
10154#endif
10155
10156#undef dlopen
10157
10158/* Override any gcc2 internal prototype to avoid an error. */
10159#ifdef __cplusplus
10160extern "C"
10161{
10162#endif
10163/* We use char because int might match the return type of a gcc2
10164 builtin and then its argument prototype would still apply. */
10165char dlopen ();
10166/* The GNU C library defines this for functions which it implements
10167 to always fail with ENOSYS. Some functions are actually named
10168 something starting with __ and the normal name is an alias. */
10169#if defined (__stub_dlopen) || defined (__stub___dlopen)
10170choke me
10171#else
10172char (*f) () = dlopen;
10173#endif
10174#ifdef __cplusplus
10175}
10176#endif
10177
10178int
10179main ()
10180{
10181return f != dlopen;
10182 ;
10183 return 0;
10184}
10185_ACEOF
10186rm -f conftest.$ac_objext conftest$ac_exeext
10187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10188 (eval $ac_link) 2>conftest.er1
10189 ac_status=$?
10190 grep -v '^ *+' conftest.er1 >conftest.err
10191 rm -f conftest.er1
10192 cat conftest.err >&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } &&
10195 { ac_try='test -z "$ac_c_werror_flag"
10196 || test ! -s conftest.err'
10197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198 (eval $ac_try) 2>&5
10199 ac_status=$?
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; } &&
10202 { ac_try='test -s conftest$ac_exeext'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10205 ac_status=$?
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; }; then
10208 ac_cv_func_dlopen=yes
10209else
10210 echo "$as_me: failed program was:" >&5
10211sed 's/^/| /' conftest.$ac_ext >&5
10212
10213ac_cv_func_dlopen=no
10214fi
10215rm -f conftest.err conftest.$ac_objext \
10216 conftest$ac_exeext conftest.$ac_ext
10217fi
10218echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10219echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10220if test $ac_cv_func_dlopen = yes; then
10221 lt_cv_dlopen="dlopen"
10222else
10223 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10224echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10225if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10226 echo $ECHO_N "(cached) $ECHO_C" >&6
10227else
10228 ac_check_lib_save_LIBS=$LIBS
10229LIBS="-ldl $LIBS"
10230if test x$gcc_no_link = xyes; then
10231 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10232echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10233 { (exit 1); exit 1; }; }
10234fi
10235cat >conftest.$ac_ext <<_ACEOF
10236/* confdefs.h. */
10237_ACEOF
10238cat confdefs.h >>conftest.$ac_ext
10239cat >>conftest.$ac_ext <<_ACEOF
10240/* end confdefs.h. */
10241
10242/* Override any gcc2 internal prototype to avoid an error. */
10243#ifdef __cplusplus
10244extern "C"
10245#endif
10246/* We use char because int might match the return type of a gcc2
10247 builtin and then its argument prototype would still apply. */
10248char dlopen ();
10249int
10250main ()
10251{
10252dlopen ();
10253 ;
10254 return 0;
10255}
10256_ACEOF
10257rm -f conftest.$ac_objext conftest$ac_exeext
10258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10259 (eval $ac_link) 2>conftest.er1
10260 ac_status=$?
10261 grep -v '^ *+' conftest.er1 >conftest.err
10262 rm -f conftest.er1
10263 cat conftest.err >&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } &&
10266 { ac_try='test -z "$ac_c_werror_flag"
10267 || test ! -s conftest.err'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10270 ac_status=$?
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; } &&
10273 { ac_try='test -s conftest$ac_exeext'
10274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10275 (eval $ac_try) 2>&5
10276 ac_status=$?
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; }; then
10279 ac_cv_lib_dl_dlopen=yes
10280else
10281 echo "$as_me: failed program was:" >&5
10282sed 's/^/| /' conftest.$ac_ext >&5
10283
10284ac_cv_lib_dl_dlopen=no
10285fi
10286rm -f conftest.err conftest.$ac_objext \
10287 conftest$ac_exeext conftest.$ac_ext
10288LIBS=$ac_check_lib_save_LIBS
10289fi
10290echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10291echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10292if test $ac_cv_lib_dl_dlopen = yes; then
10293 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10294else
10295 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10296echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10297if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10299else
10300 ac_check_lib_save_LIBS=$LIBS
10301LIBS="-lsvld $LIBS"
10302if test x$gcc_no_link = xyes; then
10303 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10304echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10305 { (exit 1); exit 1; }; }
10306fi
10307cat >conftest.$ac_ext <<_ACEOF
10308/* confdefs.h. */
10309_ACEOF
10310cat confdefs.h >>conftest.$ac_ext
10311cat >>conftest.$ac_ext <<_ACEOF
10312/* end confdefs.h. */
10313
10314/* Override any gcc2 internal prototype to avoid an error. */
10315#ifdef __cplusplus
10316extern "C"
10317#endif
10318/* We use char because int might match the return type of a gcc2
10319 builtin and then its argument prototype would still apply. */
10320char dlopen ();
10321int
10322main ()
10323{
10324dlopen ();
10325 ;
10326 return 0;
10327}
10328_ACEOF
10329rm -f conftest.$ac_objext conftest$ac_exeext
10330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10331 (eval $ac_link) 2>conftest.er1
10332 ac_status=$?
10333 grep -v '^ *+' conftest.er1 >conftest.err
10334 rm -f conftest.er1
10335 cat conftest.err >&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } &&
10338 { ac_try='test -z "$ac_c_werror_flag"
10339 || test ! -s conftest.err'
10340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10341 (eval $ac_try) 2>&5
10342 ac_status=$?
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); }; } &&
10345 { ac_try='test -s conftest$ac_exeext'
10346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10347 (eval $ac_try) 2>&5
10348 ac_status=$?
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); }; }; then
10351 ac_cv_lib_svld_dlopen=yes
10352else
10353 echo "$as_me: failed program was:" >&5
10354sed 's/^/| /' conftest.$ac_ext >&5
10355
10356ac_cv_lib_svld_dlopen=no
10357fi
10358rm -f conftest.err conftest.$ac_objext \
10359 conftest$ac_exeext conftest.$ac_ext
10360LIBS=$ac_check_lib_save_LIBS
10361fi
10362echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10363echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10364if test $ac_cv_lib_svld_dlopen = yes; then
10365 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10366else
10367 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10368echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10369if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10370 echo $ECHO_N "(cached) $ECHO_C" >&6
10371else
10372 ac_check_lib_save_LIBS=$LIBS
10373LIBS="-ldld $LIBS"
10374if test x$gcc_no_link = xyes; then
10375 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10376echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10377 { (exit 1); exit 1; }; }
10378fi
10379cat >conftest.$ac_ext <<_ACEOF
10380/* confdefs.h. */
10381_ACEOF
10382cat confdefs.h >>conftest.$ac_ext
10383cat >>conftest.$ac_ext <<_ACEOF
10384/* end confdefs.h. */
10385
10386/* Override any gcc2 internal prototype to avoid an error. */
10387#ifdef __cplusplus
10388extern "C"
10389#endif
10390/* We use char because int might match the return type of a gcc2
10391 builtin and then its argument prototype would still apply. */
10392char dld_link ();
10393int
10394main ()
10395{
10396dld_link ();
10397 ;
10398 return 0;
10399}
10400_ACEOF
10401rm -f conftest.$ac_objext conftest$ac_exeext
10402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10403 (eval $ac_link) 2>conftest.er1
10404 ac_status=$?
10405 grep -v '^ *+' conftest.er1 >conftest.err
10406 rm -f conftest.er1
10407 cat conftest.err >&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } &&
10410 { ac_try='test -z "$ac_c_werror_flag"
10411 || test ! -s conftest.err'
10412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10413 (eval $ac_try) 2>&5
10414 ac_status=$?
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); }; } &&
10417 { ac_try='test -s conftest$ac_exeext'
10418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10419 (eval $ac_try) 2>&5
10420 ac_status=$?
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); }; }; then
10423 ac_cv_lib_dld_dld_link=yes
10424else
10425 echo "$as_me: failed program was:" >&5
10426sed 's/^/| /' conftest.$ac_ext >&5
10427
10428ac_cv_lib_dld_dld_link=no
10429fi
10430rm -f conftest.err conftest.$ac_objext \
10431 conftest$ac_exeext conftest.$ac_ext
10432LIBS=$ac_check_lib_save_LIBS
10433fi
10434echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10435echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10436if test $ac_cv_lib_dld_dld_link = yes; then
10437 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10438fi
10439
10440
10441fi
10442
10443
10444fi
10445
10446
10447fi
10448
10449
10450fi
10451
10452
10453fi
10454
10455 ;;
10456 esac
10457
10458 if test "x$lt_cv_dlopen" != xno; then
10459 enable_dlopen=yes
10460 else
10461 enable_dlopen=no
10462 fi
10463
10464 case $lt_cv_dlopen in
10465 dlopen)
10466 save_CPPFLAGS="$CPPFLAGS"
10467 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10468
10469 save_LDFLAGS="$LDFLAGS"
10470 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10471
10472 save_LIBS="$LIBS"
10473 LIBS="$lt_cv_dlopen_libs $LIBS"
10474
10475 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10476echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10477if test "${lt_cv_dlopen_self+set}" = set; then
10478 echo $ECHO_N "(cached) $ECHO_C" >&6
10479else
10480 if test "$cross_compiling" = yes; then :
10481 lt_cv_dlopen_self=cross
10482else
10483 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10484 lt_status=$lt_dlunknown
10485 cat > conftest.$ac_ext <<_LT_EOF
10486#line 10486 "configure"
10487#include "confdefs.h"
10488
10489#if HAVE_DLFCN_H
10490#include <dlfcn.h>
10491#endif
10492
10493#include <stdio.h>
10494
10495#ifdef RTLD_GLOBAL
10496# define LT_DLGLOBAL RTLD_GLOBAL
10497#else
10498# ifdef DL_GLOBAL
10499# define LT_DLGLOBAL DL_GLOBAL
10500# else
10501# define LT_DLGLOBAL 0
10502# endif
10503#endif
10504
10505/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10506 find out it does not work in some platform. */
10507#ifndef LT_DLLAZY_OR_NOW
10508# ifdef RTLD_LAZY
10509# define LT_DLLAZY_OR_NOW RTLD_LAZY
10510# else
10511# ifdef DL_LAZY
10512# define LT_DLLAZY_OR_NOW DL_LAZY
10513# else
10514# ifdef RTLD_NOW
10515# define LT_DLLAZY_OR_NOW RTLD_NOW
10516# else
10517# ifdef DL_NOW
10518# define LT_DLLAZY_OR_NOW DL_NOW
10519# else
10520# define LT_DLLAZY_OR_NOW 0
10521# endif
10522# endif
10523# endif
10524# endif
10525#endif
10526
10527#ifdef __cplusplus
10528extern "C" void exit (int);
10529#endif
10530
10531void fnord() { int i=42;}
10532int main ()
10533{
10534 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10535 int status = $lt_dlunknown;
10536
10537 if (self)
10538 {
10539 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10540 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10541 /* dlclose (self); */
10542 }
10543 else
10544 puts (dlerror ());
10545
10546 exit (status);
10547}
10548_LT_EOF
10549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10550 (eval $ac_link) 2>&5
10551 ac_status=$?
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10554 (./conftest; exit; ) >&5 2>/dev/null
10555 lt_status=$?
10556 case x$lt_status in
10557 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10558 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10559 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10560 esac
10561 else :
10562 # compilation failed
10563 lt_cv_dlopen_self=no
10564 fi
10565fi
10566rm -fr conftest*
10567
10568
10569fi
10570echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10571echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10572
10573 if test "x$lt_cv_dlopen_self" = xyes; then
10574 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10575 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10576echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10577if test "${lt_cv_dlopen_self_static+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10579else
10580 if test "$cross_compiling" = yes; then :
10581 lt_cv_dlopen_self_static=cross
10582else
10583 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10584 lt_status=$lt_dlunknown
10585 cat > conftest.$ac_ext <<_LT_EOF
10586#line 10586 "configure"
10587#include "confdefs.h"
10588
10589#if HAVE_DLFCN_H
10590#include <dlfcn.h>
10591#endif
10592
10593#include <stdio.h>
10594
10595#ifdef RTLD_GLOBAL
10596# define LT_DLGLOBAL RTLD_GLOBAL
10597#else
10598# ifdef DL_GLOBAL
10599# define LT_DLGLOBAL DL_GLOBAL
10600# else
10601# define LT_DLGLOBAL 0
10602# endif
10603#endif
10604
10605/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10606 find out it does not work in some platform. */
10607#ifndef LT_DLLAZY_OR_NOW
10608# ifdef RTLD_LAZY
10609# define LT_DLLAZY_OR_NOW RTLD_LAZY
10610# else
10611# ifdef DL_LAZY
10612# define LT_DLLAZY_OR_NOW DL_LAZY
10613# else
10614# ifdef RTLD_NOW
10615# define LT_DLLAZY_OR_NOW RTLD_NOW
10616# else
10617# ifdef DL_NOW
10618# define LT_DLLAZY_OR_NOW DL_NOW
10619# else
10620# define LT_DLLAZY_OR_NOW 0
10621# endif
10622# endif
10623# endif
10624# endif
10625#endif
10626
10627#ifdef __cplusplus
10628extern "C" void exit (int);
10629#endif
10630
10631void fnord() { int i=42;}
10632int main ()
10633{
10634 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10635 int status = $lt_dlunknown;
10636
10637 if (self)
10638 {
10639 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10640 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10641 /* dlclose (self); */
10642 }
10643 else
10644 puts (dlerror ());
10645
10646 exit (status);
10647}
10648_LT_EOF
10649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10650 (eval $ac_link) 2>&5
10651 ac_status=$?
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10654 (./conftest; exit; ) >&5 2>/dev/null
10655 lt_status=$?
10656 case x$lt_status in
10657 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10658 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10659 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10660 esac
10661 else :
10662 # compilation failed
10663 lt_cv_dlopen_self_static=no
10664 fi
10665fi
10666rm -fr conftest*
10667
10668
10669fi
10670echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10671echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10672 fi
10673
10674 CPPFLAGS="$save_CPPFLAGS"
10675 LDFLAGS="$save_LDFLAGS"
10676 LIBS="$save_LIBS"
10677 ;;
10678 esac
10679
10680 case $lt_cv_dlopen_self in
10681 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10682 *) enable_dlopen_self=unknown ;;
10683 esac
10684
10685 case $lt_cv_dlopen_self_static in
10686 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10687 *) enable_dlopen_self_static=unknown ;;
10688 esac
10689fi
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707striplib=
10708old_striplib=
10709echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10710echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10711if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10712 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10713 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10714 echo "$as_me:$LINENO: result: yes" >&5
10715echo "${ECHO_T}yes" >&6
10716else
10717# FIXME - insert some real tests, host_os isn't really good enough
10718 case $host_os in
10719 darwin*)
10720 if test -n "$STRIP" ; then
10721 striplib="$STRIP -x"
10722 old_striplib="$STRIP -S"
10723 echo "$as_me:$LINENO: result: yes" >&5
10724echo "${ECHO_T}yes" >&6
10725 else
10726 echo "$as_me:$LINENO: result: no" >&5
10727echo "${ECHO_T}no" >&6
10728 fi
10729 ;;
10730 *)
10731 echo "$as_me:$LINENO: result: no" >&5
10732echo "${ECHO_T}no" >&6
10733 ;;
10734 esac
10735fi
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748 # Report which library types will actually be built
10749 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10750echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10751 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10752echo "${ECHO_T}$can_build_shared" >&6
10753
10754 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10755echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10756 test "$can_build_shared" = "no" && enable_shared=no
10757
10758 # On AIX, shared libraries and static libraries use the same namespace, and
10759 # are all built from PIC.
10760 case $host_os in
10761 aix3*)
10762 test "$enable_shared" = yes && enable_static=no
10763 if test -n "$RANLIB"; then
10764 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10765 postinstall_cmds='$RANLIB $lib'
10766 fi
10767 ;;
10768
10769 aix4* | aix5*)
10770 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10771 test "$enable_shared" = yes && enable_static=no
10772 fi
10773 ;;
10774 esac
10775 echo "$as_me:$LINENO: result: $enable_shared" >&5
10776echo "${ECHO_T}$enable_shared" >&6
10777
10778 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10779echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10780 # Make sure either enable_shared or enable_static is yes.
10781 test "$enable_shared" = yes || enable_static=yes
10782 echo "$as_me:$LINENO: result: $enable_static" >&5
10783echo "${ECHO_T}$enable_static" >&6
10784
10785
10786
10787
10788fi
10789ac_ext=c
10790ac_cpp='$CPP $CPPFLAGS'
10791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10793ac_compiler_gnu=$ac_cv_c_compiler_gnu
10794
10795CC="$lt_save_CC"
10796
10797
10798ac_ext=cc
10799ac_cpp='$CXXCPP $CPPFLAGS'
10800ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10801ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10802ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10803
10804archive_cmds_need_lc_CXX=no
10805allow_undefined_flag_CXX=
10806always_export_symbols_CXX=no
10807archive_expsym_cmds_CXX=
10808compiler_needs_object_CXX=no
10809export_dynamic_flag_spec_CXX=
10810hardcode_direct_CXX=no
10811hardcode_direct_absolute_CXX=no
10812hardcode_libdir_flag_spec_CXX=
10813hardcode_libdir_flag_spec_ld_CXX=
10814hardcode_libdir_separator_CXX=
10815hardcode_minus_L_CXX=no
10816hardcode_shlibpath_var_CXX=unsupported
10817hardcode_automatic_CXX=no
10818inherit_rpath_CXX=no
10819module_cmds_CXX=
10820module_expsym_cmds_CXX=
10821link_all_deplibs_CXX=unknown
10822old_archive_cmds_CXX=$old_archive_cmds
10823no_undefined_flag_CXX=
10824whole_archive_flag_spec_CXX=
10825enable_shared_with_static_runtimes_CXX=no
10826
10827# Source file extension for C++ test sources.
10828ac_ext=cpp
10829
10830# Object file extension for compiled C++ test sources.
10831objext=o
10832objext_CXX=$objext
10833
10834# No sense in running all these tests if we already determined that
10835# the CXX compiler isn't working. Some variables (like enable_shared)
10836# are currently assumed to apply to all compilers on this platform,
10837# and will be corrupted by setting them based on a non-working compiler.
10838if test "$_lt_caught_CXX_error" != yes; then
10839 # Code to be used in simple compile tests
10840 lt_simple_compile_test_code="int some_variable = 0;"
10841
10842 # Code to be used in simple link tests
10843 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10844
10845 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10846
10847
10848
10849
10850
10851
10852# If no C compiler was specified, use CC.
10853LTCC=${LTCC-"$CC"}
10854
10855# If no C compiler flags were specified, use CFLAGS.
10856LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10857
10858# Allow CC to be a program name with arguments.
10859compiler=$CC
10860
10861
10862 # save warnings/boilerplate of simple test code
10863 ac_outfile=conftest.$ac_objext
10864echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10865eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10866_lt_compiler_boilerplate=`cat conftest.err`
10867$RM conftest*
10868
10869 ac_outfile=conftest.$ac_objext
10870echo "$lt_simple_link_test_code" >conftest.$ac_ext
10871eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10872_lt_linker_boilerplate=`cat conftest.err`
10873$RM conftest*
10874
10875
10876 # Allow CC to be a program name with arguments.
10877 lt_save_CC=$CC
10878 lt_save_LD=$LD
10879 lt_save_GCC=$GCC
10880 GCC=$GXX
10881 lt_save_with_gnu_ld=$with_gnu_ld
10882 lt_save_path_LD=$lt_cv_path_LD
10883 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10884 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10885 else
10886 $as_unset lt_cv_prog_gnu_ld
10887 fi
10888 if test -n "${lt_cv_path_LDCXX+set}"; then
10889 lt_cv_path_LD=$lt_cv_path_LDCXX
10890 else
10891 $as_unset lt_cv_path_LD
10892 fi
10893 test -z "${LDCXX+set}" || LD=$LDCXX
10894 CC=${CXX-"c++"}
10895 compiler=$CC
10896 compiler_CXX=$CC
10897 for cc_temp in $compiler""; do
10898 case $cc_temp in
10899 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10900 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10901 \-*) ;;
10902 *) break;;
10903 esac
10904done
10905cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10906
10907
10908 if test -n "$compiler"; then
10909 # We don't want -fno-exception when compiling C++ code, so set the
10910 # no_builtin_flag separately
10911 if test "$GXX" = yes; then
10912 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10913 else
10914 lt_prog_compiler_no_builtin_flag_CXX=
10915 fi
10916
10917 if test "$GXX" = yes; then
10918 # Set up default GNU C++ configuration
10919
10920
10921
10922# Check whether --with-gnu-ld or --without-gnu-ld was given.
10923if test "${with_gnu_ld+set}" = set; then
10924 withval="$with_gnu_ld"
10925 test "$withval" = no || with_gnu_ld=yes
10926else
10927 with_gnu_ld=no
10928fi;
10929ac_prog=ld
10930if test "$GCC" = yes; then
10931 # Check if gcc -print-prog-name=ld gives a path.
10932 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10933echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10934 case $host in
10935 *-*-mingw*)
10936 # gcc leaves a trailing carriage return which upsets mingw
10937 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10938 *)
10939 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10940 esac
10941 case $ac_prog in
10942 # Accept absolute paths.
10943 [\\/]* | ?:[\\/]*)
10944 re_direlt='/[^/][^/]*/\.\./'
10945 # Canonicalize the pathname of ld
10946 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
10947 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
10948 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
10949 done
10950 test -z "$LD" && LD="$ac_prog"
10951 ;;
10952 "")
10953 # If it fails, then pretend we aren't using GCC.
10954 ac_prog=ld
10955 ;;
10956 *)
10957 # If it is relative, then search for the first ld in PATH.
10958 with_gnu_ld=unknown
10959 ;;
10960 esac
10961elif test "$with_gnu_ld" = yes; then
10962 echo "$as_me:$LINENO: checking for GNU ld" >&5
10963echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10964else
10965 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10966echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10967fi
10968if test "${lt_cv_path_LD+set}" = set; then
10969 echo $ECHO_N "(cached) $ECHO_C" >&6
10970else
10971 if test -z "$LD"; then
10972 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10973 for ac_dir in $PATH; do
10974 IFS="$lt_save_ifs"
10975 test -z "$ac_dir" && ac_dir=.
10976 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10977 lt_cv_path_LD="$ac_dir/$ac_prog"
10978 # Check to see if the program is GNU ld. I'd rather use --version,
10979 # but apparently some variants of GNU ld only accept -v.
10980 # Break only if it was the GNU/non-GNU ld that we prefer.
10981 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10982 *GNU* | *'with BFD'*)
10983 test "$with_gnu_ld" != no && break
10984 ;;
10985 *)
10986 test "$with_gnu_ld" != yes && break
10987 ;;
10988 esac
10989 fi
10990 done
10991 IFS="$lt_save_ifs"
10992else
10993 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10994fi
10995fi
10996
10997LD="$lt_cv_path_LD"
10998if test -n "$LD"; then
10999 echo "$as_me:$LINENO: result: $LD" >&5
11000echo "${ECHO_T}$LD" >&6
11001else
11002 echo "$as_me:$LINENO: result: no" >&5
11003echo "${ECHO_T}no" >&6
11004fi
11005test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11006echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11007 { (exit 1); exit 1; }; }
11008echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11009echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11010if test "${lt_cv_prog_gnu_ld+set}" = set; then
11011 echo $ECHO_N "(cached) $ECHO_C" >&6
11012else
11013 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11014case `$LD -v 2>&1 </dev/null` in
11015*GNU* | *'with BFD'*)
11016 lt_cv_prog_gnu_ld=yes
11017 ;;
11018*)
11019 lt_cv_prog_gnu_ld=no
11020 ;;
11021esac
11022fi
11023echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11024echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11025with_gnu_ld=$lt_cv_prog_gnu_ld
11026
11027
11028
11029
11030
11031
11032
11033 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11034 # archiving commands below assume that GNU ld is being used.
11035 if test "$with_gnu_ld" = yes; then
11036 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11037 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'
11038
11039 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11040 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11041
11042 # If archive_cmds runs LD, not CC, wlarc should be empty
11043 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11044 # investigate it a little bit more. (MM)
11045 wlarc='${wl}'
11046
11047 # ancient GNU ld didn't support --whole-archive et. al.
11048 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11049 $GREP 'no-whole-archive' > /dev/null; then
11050 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11051 else
11052 whole_archive_flag_spec_CXX=
11053 fi
11054 else
11055 with_gnu_ld=no
11056 wlarc=
11057
11058 # A generic and very simple default shared library creation
11059 # command for GNU C++ for the case where it uses the native
11060 # linker, instead of GNU ld. If possible, this setting should
11061 # overridden to take advantage of the native linker features on
11062 # the platform it is being used on.
11063 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11064 fi
11065
11066 # Commands to make compiler produce verbose output that lists
11067 # what "hidden" libraries, object files and flags are used when
11068 # linking a shared library.
11069 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11070
11071 else
11072 GXX=no
11073 with_gnu_ld=no
11074 wlarc=
11075 fi
11076
11077 # PORTME: fill in a description of your system's C++ link characteristics
11078 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11079echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11080 ld_shlibs_CXX=yes
11081 case $host_os in
11082 aix3*)
11083 # FIXME: insert proper C++ library support
11084 ld_shlibs_CXX=no
11085 ;;
11086 aix4* | aix5*)
11087 if test "$host_cpu" = ia64; then
11088 # On IA64, the linker does run time linking by default, so we don't
11089 # have to do anything special.
11090 aix_use_runtimelinking=no
11091 exp_sym_flag='-Bexport'
11092 no_entry_flag=""
11093 else
11094 aix_use_runtimelinking=no
11095
11096 # Test if we are trying to use run time linking or normal
11097 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11098 # need to do runtime linking.
11099 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11100 for ld_flag in $LDFLAGS; do
11101 case $ld_flag in
11102 *-brtl*)
11103 aix_use_runtimelinking=yes
11104 break
11105 ;;
11106 esac
11107 done
11108 ;;
11109 esac
11110
11111 exp_sym_flag='-bexport'
11112 no_entry_flag='-bnoentry'
11113 fi
11114
11115 # When large executables or shared objects are built, AIX ld can
11116 # have problems creating the table of contents. If linking a library
11117 # or program results in "error TOC overflow" add -mminimal-toc to
11118 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11119 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11120
11121 archive_cmds_CXX=''
11122 hardcode_direct_CXX=yes
11123 hardcode_direct_absolute_CXX=yes
11124 hardcode_libdir_separator_CXX=':'
11125 link_all_deplibs_CXX=yes
11126 file_list_spec_CXX='${wl}-f,'
11127
11128 if test "$GXX" = yes; then
11129 case $host_os in aix4.[012]|aix4.[012].*)
11130 # We only want to do this on AIX 4.2 and lower, the check
11131 # below for broken collect2 doesn't work under 4.3+
11132 collect2name=`${CC} -print-prog-name=collect2`
11133 if test -f "$collect2name" &&
11134 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11135 then
11136 # We have reworked collect2
11137 :
11138 else
11139 # We have old collect2
11140 hardcode_direct_CXX=unsupported
11141 # It fails to find uninstalled libraries when the uninstalled
11142 # path is not listed in the libpath. Setting hardcode_minus_L
11143 # to unsupported forces relinking
11144 hardcode_minus_L_CXX=yes
11145 hardcode_libdir_flag_spec_CXX='-L$libdir'
11146 hardcode_libdir_separator_CXX=
11147 fi
11148 esac
11149 shared_flag='-shared'
11150 if test "$aix_use_runtimelinking" = yes; then
11151 shared_flag="$shared_flag "'${wl}-G'
11152 fi
11153 else
11154 # not using gcc
11155 if test "$host_cpu" = ia64; then
11156 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11157 # chokes on -Wl,-G. The following line is correct:
11158 shared_flag='-G'
11159 else
11160 if test "$aix_use_runtimelinking" = yes; then
11161 shared_flag='${wl}-G'
11162 else
11163 shared_flag='${wl}-bM:SRE'
11164 fi
11165 fi
11166 fi
11167
11168 # It seems that -bexpall does not export symbols beginning with
11169 # underscore (_), so it is better to generate a list of symbols to
11170 # export.
11171 always_export_symbols_CXX=yes
11172 if test "$aix_use_runtimelinking" = yes; then
11173 # Warning - without using the other runtime loading flags (-brtl),
11174 # -berok will link without error, but may produce a broken library.
11175 allow_undefined_flag_CXX='-berok'
11176 # Determine the default libpath from the value encoded in an empty
11177 # executable.
11178 if test x$gcc_no_link = xyes; then
11179 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11180echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11181 { (exit 1); exit 1; }; }
11182fi
11183cat >conftest.$ac_ext <<_ACEOF
11184/* confdefs.h. */
11185_ACEOF
11186cat confdefs.h >>conftest.$ac_ext
11187cat >>conftest.$ac_ext <<_ACEOF
11188/* end confdefs.h. */
11189
11190int
11191main ()
11192{
11193
11194 ;
11195 return 0;
11196}
11197_ACEOF
11198rm -f conftest.$ac_objext conftest$ac_exeext
11199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11200 (eval $ac_link) 2>conftest.er1
11201 ac_status=$?
11202 grep -v '^ *+' conftest.er1 >conftest.err
11203 rm -f conftest.er1
11204 cat conftest.err >&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); } &&
11207 { ac_try='test -z "$ac_cxx_werror_flag"
11208 || test ! -s conftest.err'
11209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11210 (eval $ac_try) 2>&5
11211 ac_status=$?
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); }; } &&
11214 { ac_try='test -s conftest$ac_exeext'
11215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11216 (eval $ac_try) 2>&5
11217 ac_status=$?
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); }; }; then
11220
11221lt_aix_libpath_sed='
11222 /Import File Strings/,/^$/ {
11223 /^0/ {
11224 s/^0 *\(.*\)$/\1/
11225 p
11226 }
11227 }'
11228aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11229# Check for a 64-bit object if we didn't find anything.
11230if test -z "$aix_libpath"; then
11231 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11232fi
11233else
11234 echo "$as_me: failed program was:" >&5
11235sed 's/^/| /' conftest.$ac_ext >&5
11236
11237fi
11238rm -f conftest.err conftest.$ac_objext \
11239 conftest$ac_exeext conftest.$ac_ext
11240if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11241
11242 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11243
11244 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"
11245 else
11246 if test "$host_cpu" = ia64; then
11247 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11248 allow_undefined_flag_CXX="-z nodefs"
11249 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"
11250 else
11251 # Determine the default libpath from the value encoded in an
11252 # empty executable.
11253 if test x$gcc_no_link = xyes; then
11254 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11255echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11256 { (exit 1); exit 1; }; }
11257fi
11258cat >conftest.$ac_ext <<_ACEOF
11259/* confdefs.h. */
11260_ACEOF
11261cat confdefs.h >>conftest.$ac_ext
11262cat >>conftest.$ac_ext <<_ACEOF
11263/* end confdefs.h. */
11264
11265int
11266main ()
11267{
11268
11269 ;
11270 return 0;
11271}
11272_ACEOF
11273rm -f conftest.$ac_objext conftest$ac_exeext
11274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11275 (eval $ac_link) 2>conftest.er1
11276 ac_status=$?
11277 grep -v '^ *+' conftest.er1 >conftest.err
11278 rm -f conftest.er1
11279 cat conftest.err >&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); } &&
11282 { ac_try='test -z "$ac_cxx_werror_flag"
11283 || test ! -s conftest.err'
11284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11285 (eval $ac_try) 2>&5
11286 ac_status=$?
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); }; } &&
11289 { ac_try='test -s conftest$ac_exeext'
11290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11291 (eval $ac_try) 2>&5
11292 ac_status=$?
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); }; }; then
11295
11296lt_aix_libpath_sed='
11297 /Import File Strings/,/^$/ {
11298 /^0/ {
11299 s/^0 *\(.*\)$/\1/
11300 p
11301 }
11302 }'
11303aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11304# Check for a 64-bit object if we didn't find anything.
11305if test -z "$aix_libpath"; then
11306 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11307fi
11308else
11309 echo "$as_me: failed program was:" >&5
11310sed 's/^/| /' conftest.$ac_ext >&5
11311
11312fi
11313rm -f conftest.err conftest.$ac_objext \
11314 conftest$ac_exeext conftest.$ac_ext
11315if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11316
11317 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11318 # Warning - without using the other run time loading flags,
11319 # -berok will link without error, but may produce a broken library.
11320 no_undefined_flag_CXX=' ${wl}-bernotok'
11321 allow_undefined_flag_CXX=' ${wl}-berok'
11322 # Exported symbols can be pulled into shared objects from archives
11323 whole_archive_flag_spec_CXX='$convenience'
11324 archive_cmds_need_lc_CXX=yes
11325 # This is similar to how AIX traditionally builds its shared
11326 # libraries.
11327 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'
11328 fi
11329 fi
11330 ;;
11331
11332 beos*)
11333 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11334 allow_undefined_flag_CXX=unsupported
11335 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11336 # support --undefined. This deserves some investigation. FIXME
11337 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11338 else
11339 ld_shlibs_CXX=no
11340 fi
11341 ;;
11342
11343 chorus*)
11344 case $cc_basename in
11345 *)
11346 # FIXME: insert proper C++ library support
11347 ld_shlibs_CXX=no
11348 ;;
11349 esac
11350 ;;
11351
11352 cygwin* | mingw* | pw32*)
11353 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11354 # as there is no search path for DLLs.
11355 hardcode_libdir_flag_spec_CXX='-L$libdir'
11356 allow_undefined_flag_CXX=unsupported
11357 always_export_symbols_CXX=no
11358 enable_shared_with_static_runtimes_CXX=yes
11359
11360 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11361 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'
11362 # If the export-symbols file already is a .def file (1st line
11363 # is EXPORTS), use it as is; otherwise, prepend...
11364 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11365 cp $export_symbols $output_objdir/$soname.def;
11366 else
11367 echo EXPORTS > $output_objdir/$soname.def;
11368 cat $export_symbols >> $output_objdir/$soname.def;
11369 fi~
11370 $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'
11371 else
11372 ld_shlibs_CXX=no
11373 fi
11374 ;;
11375 darwin* | rhapsody*)
11376 case $host_os in
11377 rhapsody* | darwin1.[012])
11378 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11379 ;;
11380 *) # Darwin 1.3 on
11381 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
11382 10.[012])
11383 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11384 ;;
11385 10.*)
11386 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11387 ;;
11388 esac
11389 ;;
11390 esac
11391 archive_cmds_need_lc_CXX=no
11392 hardcode_direct_CXX=no
11393 hardcode_automatic_CXX=yes
11394 hardcode_shlibpath_var_CXX=unsupported
11395 whole_archive_flag_spec_CXX=''
11396 link_all_deplibs_CXX=yes
11397
11398 if test "$GXX" = yes ; then
11399 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11400 echo $ECHO_N "(cached) $ECHO_C" >&6
11401else
11402 lt_cv_apple_cc_single_mod=no
11403 if test -z "${LT_MULTI_MODULE}"; then
11404 # By default we will add the -single_module flag. You can override
11405 # by either setting the environment variable LT_MULTI_MODULE
11406 # non-empty at configure time, or by adding -multi-module to the
11407 # link flags.
11408 echo "int foo(void){return 1;}" > conftest.c
11409 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11410 -dynamiclib ${wl}-single_module conftest.c
11411 if test -f libconftest.dylib; then
11412 lt_cv_apple_cc_single_mod=yes
11413 rm libconftest.dylib
11414 fi
11415 rm conftest.$ac_ext
11416 fi
11417fi
11418
11419 output_verbose_link_cmd=echo
11420 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
11421 archive_cmds_CXX='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11422 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}'
11423 else
11424 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'
11425 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}'
11426 fi
11427 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11428 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}'
11429 else
11430 case $cc_basename in
11431 xlc*)
11432 output_verbose_link_cmd=echo
11433 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'
11434 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11435 # Don't fix this by using the ld -exported_symbols_list flag,
11436 # it doesn't exist in older darwin lds
11437 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}'
11438 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}'
11439 ;;
11440 *)
11441 ld_shlibs_CXX=no
11442 ;;
11443 esac
11444 fi
11445 ;;
11446
11447 dgux*)
11448 case $cc_basename in
11449 ec++*)
11450 # FIXME: insert proper C++ library support
11451 ld_shlibs_CXX=no
11452 ;;
11453 ghcx*)
11454 # Green Hills C++ Compiler
11455 # FIXME: insert proper C++ library support
11456 ld_shlibs_CXX=no
11457 ;;
11458 *)
11459 # FIXME: insert proper C++ library support
11460 ld_shlibs_CXX=no
11461 ;;
11462 esac
11463 ;;
11464
11465 freebsd[12]*)
11466 # C++ shared libraries reported to be fairly broken before
11467 # switch to ELF
11468 ld_shlibs_CXX=no
11469 ;;
11470
11471 freebsd-elf*)
11472 archive_cmds_need_lc_CXX=no
11473 ;;
11474
11475 freebsd* | dragonfly*)
11476 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11477 # conventions
11478 ld_shlibs_CXX=yes
11479 ;;
11480
11481 gnu*)
11482 ;;
11483
11484 hpux9*)
11485 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11486 hardcode_libdir_separator_CXX=:
11487 export_dynamic_flag_spec_CXX='${wl}-E'
11488 hardcode_direct_CXX=yes
11489 hardcode_minus_L_CXX=yes # Not in the search PATH,
11490 # but as the default
11491 # location of the library.
11492
11493 case $cc_basename in
11494 CC*)
11495 # FIXME: insert proper C++ library support
11496 ld_shlibs_CXX=no
11497 ;;
11498 aCC*)
11499 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'
11500 # Commands to make compiler produce verbose output that lists
11501 # what "hidden" libraries, object files and flags are used when
11502 # linking a shared library.
11503 #
11504 # There doesn't appear to be a way to prevent this compiler from
11505 # explicitly linking system object files so we need to strip them
11506 # from the output so that they don't get included in the library
11507 # dependencies.
11508 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'
11509 ;;
11510 *)
11511 if test "$GXX" = yes; then
11512 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'
11513 else
11514 # FIXME: insert proper C++ library support
11515 ld_shlibs_CXX=no
11516 fi
11517 ;;
11518 esac
11519 ;;
11520
11521 hpux10*|hpux11*)
11522 if test $with_gnu_ld = no; then
11523 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11524 hardcode_libdir_separator_CXX=:
11525
11526 case $host_cpu in
11527 hppa*64*|ia64*)
11528 ;;
11529 *)
11530 export_dynamic_flag_spec_CXX='${wl}-E'
11531 ;;
11532 esac
11533 fi
11534 case $host_cpu in
11535 hppa*64*|ia64*)
11536 hardcode_direct_CXX=no
11537 hardcode_shlibpath_var_CXX=no
11538 ;;
11539 *)
11540 hardcode_direct_CXX=yes
11541 hardcode_direct_absolute_CXX=yes
11542 hardcode_minus_L_CXX=yes # Not in the search PATH,
11543 # but as the default
11544 # location of the library.
11545 ;;
11546 esac
11547
11548 case $cc_basename in
11549 CC*)
11550 # FIXME: insert proper C++ library support
11551 ld_shlibs_CXX=no
11552 ;;
11553 aCC*)
11554 case $host_cpu in
11555 hppa*64*)
11556 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11557 ;;
11558 ia64*)
11559 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11560 ;;
11561 *)
11562 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11563 ;;
11564 esac
11565 # Commands to make compiler produce verbose output that lists
11566 # what "hidden" libraries, object files and flags are used when
11567 # linking a shared library.
11568 #
11569 # There doesn't appear to be a way to prevent this compiler from
11570 # explicitly linking system object files so we need to strip them
11571 # from the output so that they don't get included in the library
11572 # dependencies.
11573 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'
11574 ;;
11575 *)
11576 if test "$GXX" = yes; then
11577 if test $with_gnu_ld = no; then
11578 case $host_cpu in
11579 hppa*64*)
11580 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11581 ;;
11582 ia64*)
11583 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11584 ;;
11585 *)
11586 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'
11587 ;;
11588 esac
11589 fi
11590 else
11591 # FIXME: insert proper C++ library support
11592 ld_shlibs_CXX=no
11593 fi
11594 ;;
11595 esac
11596 ;;
11597
11598 interix[3-9]*)
11599 hardcode_direct_CXX=no
11600 hardcode_shlibpath_var_CXX=no
11601 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11602 export_dynamic_flag_spec_CXX='${wl}-E'
11603 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11604 # Instead, shared libraries are loaded at an image base (0x10000000 by
11605 # default) and relocated if they conflict, which is a slow very memory
11606 # consuming and fragmenting process. To avoid this, we pick a random,
11607 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11608 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11609 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'
11610 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'
11611 ;;
11612 irix5* | irix6*)
11613 case $cc_basename in
11614 CC*)
11615 # SGI C++
11616 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'
11617
11618 # Archives containing C++ object files must be created using
11619 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11620 # necessary to make sure instantiated templates are included
11621 # in the archive.
11622 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11623 ;;
11624 *)
11625 if test "$GXX" = yes; then
11626 if test "$with_gnu_ld" = no; then
11627 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'
11628 else
11629 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'
11630 fi
11631 fi
11632 link_all_deplibs_CXX=yes
11633 ;;
11634 esac
11635 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11636 hardcode_libdir_separator_CXX=:
11637 inherit_rpath_CXX=yes
11638 ;;
11639
11640 linux* | k*bsd*-gnu)
11641 case $cc_basename in
11642 KCC*)
11643 # Kuck and Associates, Inc. (KAI) C++ Compiler
11644
11645 # KCC will only create a shared library if the output file
11646 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11647 # to its proper name (with version) after linking.
11648 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'
11649 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'
11650 # Commands to make compiler produce verbose output that lists
11651 # what "hidden" libraries, object files and flags are used when
11652 # linking a shared library.
11653 #
11654 # There doesn't appear to be a way to prevent this compiler from
11655 # explicitly linking system object files so we need to strip them
11656 # from the output so that they don't get included in the library
11657 # dependencies.
11658 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'
11659
11660 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11661 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11662
11663 # Archives containing C++ object files must be created using
11664 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11665 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11666 ;;
11667 icpc* | ecpc* )
11668 # Intel C++
11669 with_gnu_ld=yes
11670 # version 8.0 and above of icpc choke on multiply defined symbols
11671 # if we add $predep_objects and $postdep_objects, however 7.1 and
11672 # earlier do not add the objects themselves.
11673 case `$CC -V 2>&1` in
11674 *"Version 7."*)
11675 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11676 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'
11677 ;;
11678 *) # Version 8.0 or newer
11679 tmp_idyn=
11680 case $host_cpu in
11681 ia64*) tmp_idyn=' -i_dynamic';;
11682 esac
11683 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11684 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'
11685 ;;
11686 esac
11687 archive_cmds_need_lc_CXX=no
11688 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11689 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11690 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11691 ;;
11692 pgCC*)
11693 # Portland Group C++ compiler
11694 case `$CC -V` in
11695 *pgCC\ [1-5]*)
11696 prelink_cmds_CXX='tpldir=Template.dir~
11697 rm -rf $tpldir~
11698 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
11699 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
11700 old_archive_cmds_CXX='tpldir=Template.dir~
11701 rm -rf $tpldir~
11702 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
11703 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
11704 $RANLIB $oldlib'
11705 archive_cmds_CXX='tpldir=Template.dir~
11706 rm -rf $tpldir~
11707 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
11708 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11709 archive_expsym_cmds_CXX='tpldir=Template.dir~
11710 rm -rf $tpldir~
11711 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
11712 $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'
11713 ;;
11714 *) # Version 6 will use weak symbols
11715 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11716 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'
11717 ;;
11718 esac
11719
11720 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11721 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11722 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'
11723 ;;
11724 cxx*)
11725 # Compaq C++
11726 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11727 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'
11728
11729 runpath_var=LD_RUN_PATH
11730 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11731 hardcode_libdir_separator_CXX=:
11732
11733 # Commands to make compiler produce verbose output that lists
11734 # what "hidden" libraries, object files and flags are used when
11735 # linking a shared library.
11736 #
11737 # There doesn't appear to be a way to prevent this compiler from
11738 # explicitly linking system object files so we need to strip them
11739 # from the output so that they don't get included in the library
11740 # dependencies.
11741 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'
11742 ;;
11743 *)
11744 case `$CC -V 2>&1 | sed 5q` in
11745 *Sun\ C*)
11746 # Sun C++ 5.9
11747 no_undefined_flag_CXX=' -zdefs'
11748 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11749 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'
11750 hardcode_libdir_flag_spec_CXX='-R$libdir'
11751 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'
11752 compiler_needs_object_CXX=yes
11753
11754 # Not sure whether something based on
11755 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11756 # would be better.
11757 output_verbose_link_cmd='echo'
11758
11759 # Archives containing C++ object files must be created using
11760 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11761 # necessary to make sure instantiated templates are included
11762 # in the archive.
11763 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11764 ;;
11765 esac
11766 ;;
11767 esac
11768 ;;
11769
11770 lynxos*)
11771 # FIXME: insert proper C++ library support
11772 ld_shlibs_CXX=no
11773 ;;
11774
11775 m88k*)
11776 # FIXME: insert proper C++ library support
11777 ld_shlibs_CXX=no
11778 ;;
11779
11780 mvs*)
11781 case $cc_basename in
11782 cxx*)
11783 # FIXME: insert proper C++ library support
11784 ld_shlibs_CXX=no
11785 ;;
11786 *)
11787 # FIXME: insert proper C++ library support
11788 ld_shlibs_CXX=no
11789 ;;
11790 esac
11791 ;;
11792
11793 netbsd*)
11794 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11795 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11796 wlarc=
11797 hardcode_libdir_flag_spec_CXX='-R$libdir'
11798 hardcode_direct_CXX=yes
11799 hardcode_shlibpath_var_CXX=no
11800 fi
11801 # Workaround some broken pre-1.5 toolchains
11802 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11803 ;;
11804
11805 *nto* | *qnx*)
11806 ld_shlibs_CXX=yes
11807 ;;
11808
11809 openbsd2*)
11810 # C++ shared libraries are fairly broken
11811 ld_shlibs_CXX=no
11812 ;;
11813
11814 openbsd*)
11815 hardcode_direct_CXX=yes
11816 hardcode_shlibpath_var_CXX=no
11817 hardcode_direct_absolute_CXX=yes
11818 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11819 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11820 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11821 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11822 export_dynamic_flag_spec_CXX='${wl}-E'
11823 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11824 fi
11825 output_verbose_link_cmd=echo
11826 ;;
11827
11828 osf3* | osf4* | osf5*)
11829 case $cc_basename in
11830 KCC*)
11831 # Kuck and Associates, Inc. (KAI) C++ Compiler
11832
11833 # KCC will only create a shared library if the output file
11834 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11835 # to its proper name (with version) after linking.
11836 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'
11837
11838 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11839 hardcode_libdir_separator_CXX=:
11840
11841 # Archives containing C++ object files must be created using
11842 # the KAI C++ compiler.
11843 case $host in
11844 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
11845 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
11846 esac
11847 ;;
11848 RCC*)
11849 # Rational C++ 2.4.1
11850 # FIXME: insert proper C++ library support
11851 ld_shlibs_CXX=no
11852 ;;
11853 cxx*)
11854 case $host in
11855 osf3*)
11856 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11857 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'
11858 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11859 ;;
11860 *)
11861 allow_undefined_flag_CXX=' -expect_unresolved \*'
11862 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'
11863 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11864 echo "-hidden">> $lib.exp~
11865 $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~
11866 $RM $lib.exp'
11867 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11868 ;;
11869 esac
11870
11871 hardcode_libdir_separator_CXX=:
11872
11873 # Commands to make compiler produce verbose output that lists
11874 # what "hidden" libraries, object files and flags are used when
11875 # linking a shared library.
11876 #
11877 # There doesn't appear to be a way to prevent this compiler from
11878 # explicitly linking system object files so we need to strip them
11879 # from the output so that they don't get included in the library
11880 # dependencies.
11881 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'
11882 ;;
11883 *)
11884 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11885 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11886 case $host in
11887 osf3*)
11888 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'
11889 ;;
11890 *)
11891 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'
11892 ;;
11893 esac
11894
11895 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11896 hardcode_libdir_separator_CXX=:
11897
11898 # Commands to make compiler produce verbose output that lists
11899 # what "hidden" libraries, object files and flags are used when
11900 # linking a shared library.
11901 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11902
11903 else
11904 # FIXME: insert proper C++ library support
11905 ld_shlibs_CXX=no
11906 fi
11907 ;;
11908 esac
11909 ;;
11910
11911 psos*)
11912 # FIXME: insert proper C++ library support
11913 ld_shlibs_CXX=no
11914 ;;
11915
11916 sunos4*)
11917 case $cc_basename in
11918 CC*)
11919 # Sun C++ 4.x
11920 # FIXME: insert proper C++ library support
11921 ld_shlibs_CXX=no
11922 ;;
11923 lcc*)
11924 # Lucid
11925 # FIXME: insert proper C++ library support
11926 ld_shlibs_CXX=no
11927 ;;
11928 *)
11929 # FIXME: insert proper C++ library support
11930 ld_shlibs_CXX=no
11931 ;;
11932 esac
11933 ;;
11934
11935 solaris*)
11936 case $cc_basename in
11937 CC*)
11938 # Sun C++ 4.2, 5.x and Centerline C++
11939 archive_cmds_need_lc_CXX=yes
11940 no_undefined_flag_CXX=' -zdefs'
11941 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11942 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11943 $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'
11944
11945 hardcode_libdir_flag_spec_CXX='-R$libdir'
11946 hardcode_shlibpath_var_CXX=no
11947 case $host_os in
11948 solaris2.[0-5] | solaris2.[0-5].*) ;;
11949 *)
11950 # The compiler driver will combine and reorder linker options,
11951 # but understands `-z linker_flag'.
11952 # Supported since Solaris 2.6 (maybe 2.5.1?)
11953 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11954 ;;
11955 esac
11956 link_all_deplibs_CXX=yes
11957
11958 output_verbose_link_cmd='echo'
11959
11960 # Archives containing C++ object files must be created using
11961 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11962 # necessary to make sure instantiated templates are included
11963 # in the archive.
11964 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11965 ;;
11966 gcx*)
11967 # Green Hills C++ Compiler
11968 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11969
11970 # The C++ compiler must be used to create the archive.
11971 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11972 ;;
11973 *)
11974 # GNU C++ compiler with Solaris linker
11975 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11976 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11977 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
11978 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11979 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11980 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
11981
11982 # Commands to make compiler produce verbose output that lists
11983 # what "hidden" libraries, object files and flags are used when
11984 # linking a shared library.
11985 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11986 else
11987 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11988 # platform.
11989 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11990 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11991 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
11992
11993 # Commands to make compiler produce verbose output that lists
11994 # what "hidden" libraries, object files and flags are used when
11995 # linking a shared library.
11996 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11997 fi
11998
11999 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12000 case $host_os in
12001 solaris2.[0-5] | solaris2.[0-5].*) ;;
12002 *)
12003 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12004 ;;
12005 esac
12006 fi
12007 ;;
12008 esac
12009 ;;
12010
12011 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12012 no_undefined_flag_CXX='${wl}-z,text'
12013 archive_cmds_need_lc_CXX=no
12014 hardcode_shlibpath_var_CXX=no
12015 runpath_var='LD_RUN_PATH'
12016
12017 case $cc_basename in
12018 CC*)
12019 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12020 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12021 ;;
12022 *)
12023 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12024 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12025 ;;
12026 esac
12027 ;;
12028
12029 sysv5* | sco3.2v5* | sco5v6*)
12030 # Note: We can NOT use -z defs as we might desire, because we do not
12031 # link with -lc, and that would cause any symbols used from libc to
12032 # always be unresolved, which means just about no library would
12033 # ever link correctly. If we're not using GNU ld we use -z text
12034 # though, which does catch some bad symbols but isn't as heavy-handed
12035 # as -z defs.
12036 no_undefined_flag_CXX='${wl}-z,text'
12037 allow_undefined_flag_CXX='${wl}-z,nodefs'
12038 archive_cmds_need_lc_CXX=no
12039 hardcode_shlibpath_var_CXX=no
12040 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12041 hardcode_libdir_separator_CXX=':'
12042 link_all_deplibs_CXX=yes
12043 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12044 runpath_var='LD_RUN_PATH'
12045
12046 case $cc_basename in
12047 CC*)
12048 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12049 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12050 ;;
12051 *)
12052 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12053 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12054 ;;
12055 esac
12056 ;;
12057
12058 tandem*)
12059 case $cc_basename in
12060 NCC*)
12061 # NonStop-UX NCC 3.20
12062 # FIXME: insert proper C++ library support
12063 ld_shlibs_CXX=no
12064 ;;
12065 *)
12066 # FIXME: insert proper C++ library support
12067 ld_shlibs_CXX=no
12068 ;;
12069 esac
12070 ;;
12071
12072 vxworks*)
12073 # FIXME: insert proper C++ library support
12074 ld_shlibs_CXX=no
12075 ;;
12076
12077 *)
12078 # FIXME: insert proper C++ library support
12079 ld_shlibs_CXX=no
12080 ;;
12081 esac
12082
12083 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12084echo "${ECHO_T}$ld_shlibs_CXX" >&6
12085 test "$ld_shlibs_CXX" = no && can_build_shared=no
12086
12087 GCC_CXX="$GXX"
12088 LD_CXX="$LD"
12089
12090 ## CAVEAT EMPTOR:
12091 ## There is no encapsulation within the following macros, do not change
12092 ## the running order or otherwise move them around unless you know exactly
12093 ## what you are doing...
12094 # Dependencies to place before and after the object being linked:
12095predep_objects_CXX=
12096postdep_objects_CXX=
12097predeps_CXX=
12098postdeps_CXX=
12099compiler_lib_search_path_CXX=
12100
12101cat > conftest.$ac_ext <<_LT_EOF
12102class Foo
12103{
12104public:
12105 Foo (void) { a = 0; }
12106private:
12107 int a;
12108};
12109_LT_EOF
12110
12111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12112 (eval $ac_compile) 2>&5
12113 ac_status=$?
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; then
12116 # Parse the compiler output and extract the necessary
12117 # objects, libraries and library flags.
12118
12119 # Sentinel used to keep track of whether or not we are before
12120 # the conftest object file.
12121 pre_test_object_deps_done=no
12122
12123 # The `*' in the case matches for architectures that use `case' in
12124 # $output_verbose_cmd can trigger glob expansion during the loop
12125 # eval without this substitution.
12126 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12127
12128 for p in `eval $output_verbose_link_cmd`; do
12129 case $p in
12130
12131 -L* | -R* | -l*)
12132 # Some compilers place space between "-{L,R}" and the path.
12133 # Remove the space.
12134 if test $p = "-L" ||
12135 test $p = "-R"; then
12136 prev=$p
12137 continue
12138 else
12139 prev=
12140 fi
12141
12142 if test "$pre_test_object_deps_done" = no; then
12143 case $p in
12144 -L* | -R*)
12145 # Internal compiler library paths should come after those
12146 # provided the user. The postdeps already come after the
12147 # user supplied libs so there is no need to process them.
12148 if test -z "$compiler_lib_search_path_CXX"; then
12149 compiler_lib_search_path_CXX="${prev}${p}"
12150 else
12151 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12152 fi
12153 ;;
12154 # The "-l" case would never come before the object being
12155 # linked, so don't bother handling this case.
12156 esac
12157 else
12158 if test -z "$postdeps_CXX"; then
12159 postdeps_CXX="${prev}${p}"
12160 else
12161 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12162 fi
12163 fi
12164 ;;
12165
12166 *.$objext)
12167 # This assumes that the test object file only shows up
12168 # once in the compiler output.
12169 if test "$p" = "conftest.$objext"; then
12170 pre_test_object_deps_done=yes
12171 continue
12172 fi
12173
12174 if test "$pre_test_object_deps_done" = no; then
12175 if test -z "$predep_objects_CXX"; then
12176 predep_objects_CXX="$p"
12177 else
12178 predep_objects_CXX="$predep_objects_CXX $p"
12179 fi
12180 else
12181 if test -z "$postdep_objects_CXX"; then
12182 postdep_objects_CXX="$p"
12183 else
12184 postdep_objects_CXX="$postdep_objects_CXX $p"
12185 fi
12186 fi
12187 ;;
12188
12189 *) ;; # Ignore the rest.
12190
12191 esac
12192 done
12193
12194 # Clean up.
12195 rm -f a.out a.exe
12196else
12197 echo "libtool.m4: error: problem compiling CXX test program"
12198fi
12199
12200$RM -f confest.$objext
12201
12202# PORTME: override above test on systems where it is broken
12203case $host_os in
12204interix[3-9]*)
12205 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12206 # hack all around it, let's just trust "g++" to DTRT.
12207 predep_objects_CXX=
12208 postdep_objects_CXX=
12209 postdeps_CXX=
12210 ;;
12211
12212linux*)
12213 case `$CC -V 2>&1 | sed 5q` in
12214 *Sun\ C*)
12215 # Sun C++ 5.9
12216
12217 # The more standards-conforming stlport4 library is
12218 # incompatible with the Cstd library. Avoid specifying
12219 # it if it's in CXXFLAGS. Ignore libCrun as
12220 # -library=stlport4 depends on it.
12221 case " $CXX $CXXFLAGS " in
12222 *" -library=stlport4 "*)
12223 solaris_use_stlport4=yes
12224 ;;
12225 esac
12226
12227 if test "$solaris_use_stlport4" != yes; then
12228 postdeps_CXX='-library=Cstd -library=Crun'
12229 fi
12230 ;;
12231 esac
12232 ;;
12233
12234solaris*)
12235 case $cc_basename in
12236 CC*)
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 # Adding this requires a known-good setup of shared libraries for
12248 # Sun compiler versions before 5.6, else PIC objects from an old
12249 # archive will be linked into the output, leading to subtle bugs.
12250 if test "$solaris_use_stlport4" != yes; then
12251 postdeps_CXX='-library=Cstd -library=Crun'
12252 fi
12253 ;;
12254 esac
12255 ;;
12256esac
12257
12258
12259case " $postdeps_CXX " in
12260*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12261esac
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288 lt_prog_compiler_wl_CXX=
12289lt_prog_compiler_pic_CXX=
12290lt_prog_compiler_static_CXX=
12291
12292echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12293echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12294
12295 # C++ specific cases for pic, static, wl, etc.
12296 if test "$GXX" = yes; then
12297 lt_prog_compiler_wl_CXX='-Wl,'
12298 lt_prog_compiler_static_CXX='-static'
12299
12300 case $host_os in
12301 aix*)
12302 # All AIX code is PIC.
12303 if test "$host_cpu" = ia64; then
12304 # AIX 5 now supports IA64 processor
12305 lt_prog_compiler_static_CXX='-Bstatic'
12306 fi
12307 ;;
12308 amigaos*)
12309 if test "$host_cpu" = m68k; then
12310 # FIXME: we need at least 68020 code to build shared libraries, but
12311 # adding the `-m68020' flag to GCC prevents building anything better,
12312 # like `-m68040'.
12313 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12314 fi
12315 ;;
12316 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12317 # PIC is the default for these OSes.
12318 ;;
12319 mingw* | cygwin* | os2* | pw32*)
12320 # This hack is so that the source file can tell whether it is being
12321 # built for inclusion in a dll (and should export symbols for example).
12322 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12323 # (--disable-auto-import) libraries
12324 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12325 ;;
12326 darwin* | rhapsody*)
12327 # PIC is the default on this platform
12328 # Common symbols not allowed in MH_DYLIB files
12329 lt_prog_compiler_pic_CXX='-fno-common'
12330 ;;
12331 *djgpp*)
12332 # DJGPP does not support shared libraries at all
12333 lt_prog_compiler_pic_CXX=
12334 ;;
12335 interix[3-9]*)
12336 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12337 # Instead, we relocate shared libraries at runtime.
12338 ;;
12339 sysv4*MP*)
12340 if test -d /usr/nec; then
12341 lt_prog_compiler_pic_CXX=-Kconform_pic
12342 fi
12343 ;;
12344 hpux*)
12345 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12346 # not for PA HP-UX.
12347 case $host_cpu in
12348 hppa*64*|ia64*)
12349 ;;
12350 *)
12351 lt_prog_compiler_pic_CXX='-fPIC'
12352 ;;
12353 esac
12354 ;;
12355 *qnx* | *nto*)
12356 # QNX uses GNU C++, but need to define -shared option too, otherwise
12357 # it will coredump.
12358 lt_prog_compiler_pic_CXX='-fPIC -shared'
12359 ;;
12360 *)
12361 lt_prog_compiler_pic_CXX='-fPIC'
12362 ;;
12363 esac
12364 else
12365 case $host_os in
12366 aix4* | aix5*)
12367 # All AIX code is PIC.
12368 if test "$host_cpu" = ia64; then
12369 # AIX 5 now supports IA64 processor
12370 lt_prog_compiler_static_CXX='-Bstatic'
12371 else
12372 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12373 fi
12374 ;;
12375 chorus*)
12376 case $cc_basename in
12377 cxch68*)
12378 # Green Hills C++ Compiler
12379 # _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"
12380 ;;
12381 esac
12382 ;;
12383 darwin*)
12384 # PIC is the default on this platform
12385 # Common symbols not allowed in MH_DYLIB files
12386 case $cc_basename in
12387 xlc*)
12388 lt_prog_compiler_pic_CXX='-qnocommon'
12389 lt_prog_compiler_wl_CXX='-Wl,'
12390 ;;
12391 esac
12392 ;;
12393 dgux*)
12394 case $cc_basename in
12395 ec++*)
12396 lt_prog_compiler_pic_CXX='-KPIC'
12397 ;;
12398 ghcx*)
12399 # Green Hills C++ Compiler
12400 lt_prog_compiler_pic_CXX='-pic'
12401 ;;
12402 *)
12403 ;;
12404 esac
12405 ;;
12406 freebsd* | dragonfly*)
12407 # FreeBSD uses GNU C++
12408 ;;
12409 hpux9* | hpux10* | hpux11*)
12410 case $cc_basename in
12411 CC*)
12412 lt_prog_compiler_wl_CXX='-Wl,'
12413 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12414 if test "$host_cpu" != ia64; then
12415 lt_prog_compiler_pic_CXX='+Z'
12416 fi
12417 ;;
12418 aCC*)
12419 lt_prog_compiler_wl_CXX='-Wl,'
12420 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12421 case $host_cpu in
12422 hppa*64*|ia64*)
12423 # +Z the default
12424 ;;
12425 *)
12426 lt_prog_compiler_pic_CXX='+Z'
12427 ;;
12428 esac
12429 ;;
12430 *)
12431 ;;
12432 esac
12433 ;;
12434 interix*)
12435 # This is c89, which is MS Visual C++ (no shared libs)
12436 # Anyone wants to do a port?
12437 ;;
12438 irix5* | irix6* | nonstopux*)
12439 case $cc_basename in
12440 CC*)
12441 lt_prog_compiler_wl_CXX='-Wl,'
12442 lt_prog_compiler_static_CXX='-non_shared'
12443 # CC pic flag -KPIC is the default.
12444 ;;
12445 *)
12446 ;;
12447 esac
12448 ;;
12449 linux* | k*bsd*-gnu)
12450 case $cc_basename in
12451 KCC*)
12452 # KAI C++ Compiler
12453 lt_prog_compiler_wl_CXX='--backend -Wl,'
12454 lt_prog_compiler_pic_CXX='-fPIC'
12455 ;;
12456 icpc* | ecpc* )
12457 # Intel C++
12458 lt_prog_compiler_wl_CXX='-Wl,'
12459 lt_prog_compiler_pic_CXX='-KPIC'
12460 lt_prog_compiler_static_CXX='-static'
12461 ;;
12462 pgCC*)
12463 # Portland Group C++ compiler
12464 lt_prog_compiler_wl_CXX='-Wl,'
12465 lt_prog_compiler_pic_CXX='-fpic'
12466 lt_prog_compiler_static_CXX='-Bstatic'
12467 ;;
12468 cxx*)
12469 # Compaq C++
12470 # Make sure the PIC flag is empty. It appears that all Alpha
12471 # Linux and Compaq Tru64 Unix objects are PIC.
12472 lt_prog_compiler_pic_CXX=
12473 lt_prog_compiler_static_CXX='-non_shared'
12474 ;;
12475 *)
12476 case `$CC -V 2>&1 | sed 5q` in
12477 *Sun\ C*)
12478 # Sun C++ 5.9
12479 lt_prog_compiler_pic_CXX='-KPIC'
12480 lt_prog_compiler_static_CXX='-Bstatic'
12481 lt_prog_compiler_wl_CXX='-Qoption ld '
12482 ;;
12483 esac
12484 ;;
12485 esac
12486 ;;
12487 lynxos*)
12488 ;;
12489 m88k*)
12490 ;;
12491 mvs*)
12492 case $cc_basename in
12493 cxx*)
12494 lt_prog_compiler_pic_CXX='-W c,exportall'
12495 ;;
12496 *)
12497 ;;
12498 esac
12499 ;;
12500 netbsd*)
12501 ;;
12502 *qnx* | *nto*)
12503 # QNX uses GNU C++, but need to define -shared option too, otherwise
12504 # it will coredump.
12505 lt_prog_compiler_pic_CXX='-fPIC -shared'
12506 ;;
12507 osf3* | osf4* | osf5*)
12508 case $cc_basename in
12509 KCC*)
12510 lt_prog_compiler_wl_CXX='--backend -Wl,'
12511 ;;
12512 RCC*)
12513 # Rational C++ 2.4.1
12514 lt_prog_compiler_pic_CXX='-pic'
12515 ;;
12516 cxx*)
12517 # Digital/Compaq C++
12518 lt_prog_compiler_wl_CXX='-Wl,'
12519 # Make sure the PIC flag is empty. It appears that all Alpha
12520 # Linux and Compaq Tru64 Unix objects are PIC.
12521 lt_prog_compiler_pic_CXX=
12522 lt_prog_compiler_static_CXX='-non_shared'
12523 ;;
12524 *)
12525 ;;
12526 esac
12527 ;;
12528 psos*)
12529 ;;
12530 solaris*)
12531 case $cc_basename in
12532 CC*)
12533 # Sun C++ 4.2, 5.x and Centerline C++
12534 lt_prog_compiler_pic_CXX='-KPIC'
12535 lt_prog_compiler_static_CXX='-Bstatic'
12536 lt_prog_compiler_wl_CXX='-Qoption ld '
12537 ;;
12538 gcx*)
12539 # Green Hills C++ Compiler
12540 lt_prog_compiler_pic_CXX='-PIC'
12541 ;;
12542 *)
12543 ;;
12544 esac
12545 ;;
12546 sunos4*)
12547 case $cc_basename in
12548 CC*)
12549 # Sun C++ 4.x
12550 lt_prog_compiler_pic_CXX='-pic'
12551 lt_prog_compiler_static_CXX='-Bstatic'
12552 ;;
12553 lcc*)
12554 # Lucid
12555 lt_prog_compiler_pic_CXX='-pic'
12556 ;;
12557 *)
12558 ;;
12559 esac
12560 ;;
12561 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12562 case $cc_basename in
12563 CC*)
12564 lt_prog_compiler_wl_CXX='-Wl,'
12565 lt_prog_compiler_pic_CXX='-KPIC'
12566 lt_prog_compiler_static_CXX='-Bstatic'
12567 ;;
12568 esac
12569 ;;
12570 tandem*)
12571 case $cc_basename in
12572 NCC*)
12573 # NonStop-UX NCC 3.20
12574 lt_prog_compiler_pic_CXX='-KPIC'
12575 ;;
12576 *)
12577 ;;
12578 esac
12579 ;;
12580 vxworks*)
12581 ;;
12582 *)
12583 lt_prog_compiler_can_build_shared_CXX=no
12584 ;;
12585 esac
12586 fi
12587
12588case $host_os in
12589 # For platforms which do not support PIC, -DPIC is meaningless:
12590 *djgpp*)
12591 lt_prog_compiler_pic_CXX=
12592 ;;
12593 *)
12594 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12595 ;;
12596esac
12597echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12598echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12599
12600
12601
12602#
12603# Check to make sure the PIC flag actually works.
12604#
12605if test -n "$lt_prog_compiler_pic_CXX"; then
12606 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12607echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12608if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12609 echo $ECHO_N "(cached) $ECHO_C" >&6
12610else
12611 lt_prog_compiler_pic_works_CXX=no
12612 ac_outfile=conftest.$ac_objext
12613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12614 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12615 # Insert the option either (1) after the last *FLAGS variable, or
12616 # (2) before a word containing "conftest.", or (3) at the end.
12617 # Note that $ac_compile itself does not contain backslashes and begins
12618 # with a dollar sign (not a hyphen), so the echo should work correctly.
12619 # The option is referenced via a variable to avoid confusing sed.
12620 lt_compile=`echo "$ac_compile" | $SED \
12621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12623 -e 's:$: $lt_compiler_flag:'`
12624 (eval echo "\"\$as_me:12624: $lt_compile\"" >&5)
12625 (eval "$lt_compile" 2>conftest.err)
12626 ac_status=$?
12627 cat conftest.err >&5
12628 echo "$as_me:12628: \$? = $ac_status" >&5
12629 if (exit $ac_status) && test -s "$ac_outfile"; then
12630 # The compiler can only warn and ignore the option if not recognized
12631 # So say no if there are warnings other than the usual output.
12632 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12634 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12635 lt_prog_compiler_pic_works_CXX=yes
12636 fi
12637 fi
12638 $RM conftest*
12639
12640fi
12641echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12642echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12643
12644if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12645 case $lt_prog_compiler_pic_CXX in
12646 "" | " "*) ;;
12647 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12648 esac
12649else
12650 lt_prog_compiler_pic_CXX=
12651 lt_prog_compiler_can_build_shared_CXX=no
12652fi
12653
12654fi
12655
12656
12657
12658#
12659# Check to make sure the static flag actually works.
12660#
12661wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12662echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12663echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12664if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12665 echo $ECHO_N "(cached) $ECHO_C" >&6
12666else
12667 lt_prog_compiler_static_works_CXX=no
12668 save_LDFLAGS="$LDFLAGS"
12669 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12670 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12671 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12672 # The linker can only warn and ignore the option if not recognized
12673 # So say no if there are warnings
12674 if test -s conftest.err; then
12675 # Append any errors to the config.log.
12676 cat conftest.err 1>&5
12677 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12678 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12679 if diff conftest.exp conftest.er2 >/dev/null; then
12680 lt_prog_compiler_static_works_CXX=yes
12681 fi
12682 else
12683 lt_prog_compiler_static_works_CXX=yes
12684 fi
12685 fi
12686 $RM conftest*
12687 LDFLAGS="$save_LDFLAGS"
12688
12689fi
12690echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12691echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12692
12693if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12694 :
12695else
12696 lt_prog_compiler_static_CXX=
12697fi
12698
12699
12700
12701
12702 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12703echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12704if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12705 echo $ECHO_N "(cached) $ECHO_C" >&6
12706else
12707 lt_cv_prog_compiler_c_o_CXX=no
12708 $RM -r conftest 2>/dev/null
12709 mkdir conftest
12710 cd conftest
12711 mkdir out
12712 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12713
12714 lt_compiler_flag="-o out/conftest2.$ac_objext"
12715 # Insert the option either (1) after the last *FLAGS variable, or
12716 # (2) before a word containing "conftest.", or (3) at the end.
12717 # Note that $ac_compile itself does not contain backslashes and begins
12718 # with a dollar sign (not a hyphen), so the echo should work correctly.
12719 lt_compile=`echo "$ac_compile" | $SED \
12720 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12722 -e 's:$: $lt_compiler_flag:'`
12723 (eval echo "\"\$as_me:12723: $lt_compile\"" >&5)
12724 (eval "$lt_compile" 2>out/conftest.err)
12725 ac_status=$?
12726 cat out/conftest.err >&5
12727 echo "$as_me:12727: \$? = $ac_status" >&5
12728 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12729 then
12730 # The compiler can only warn and ignore the option if not recognized
12731 # So say no if there are warnings
12732 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12733 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12734 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12735 lt_cv_prog_compiler_c_o_CXX=yes
12736 fi
12737 fi
12738 chmod u+w . 2>&5
12739 $RM conftest*
12740 # SGI C++ compiler will create directory out/ii_files/ for
12741 # template instantiation
12742 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12743 $RM out/* && rmdir out
12744 cd ..
12745 $RM -r conftest
12746 $RM conftest*
12747
12748fi
12749echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12750echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12751
12752
12753
12754 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12755echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12756if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12757 echo $ECHO_N "(cached) $ECHO_C" >&6
12758else
12759 lt_cv_prog_compiler_c_o_CXX=no
12760 $RM -r conftest 2>/dev/null
12761 mkdir conftest
12762 cd conftest
12763 mkdir out
12764 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12765
12766 lt_compiler_flag="-o out/conftest2.$ac_objext"
12767 # Insert the option either (1) after the last *FLAGS variable, or
12768 # (2) before a word containing "conftest.", or (3) at the end.
12769 # Note that $ac_compile itself does not contain backslashes and begins
12770 # with a dollar sign (not a hyphen), so the echo should work correctly.
12771 lt_compile=`echo "$ac_compile" | $SED \
12772 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12773 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12774 -e 's:$: $lt_compiler_flag:'`
12775 (eval echo "\"\$as_me:12775: $lt_compile\"" >&5)
12776 (eval "$lt_compile" 2>out/conftest.err)
12777 ac_status=$?
12778 cat out/conftest.err >&5
12779 echo "$as_me:12779: \$? = $ac_status" >&5
12780 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12781 then
12782 # The compiler can only warn and ignore the option if not recognized
12783 # So say no if there are warnings
12784 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12785 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12786 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12787 lt_cv_prog_compiler_c_o_CXX=yes
12788 fi
12789 fi
12790 chmod u+w . 2>&5
12791 $RM conftest*
12792 # SGI C++ compiler will create directory out/ii_files/ for
12793 # template instantiation
12794 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12795 $RM out/* && rmdir out
12796 cd ..
12797 $RM -r conftest
12798 $RM conftest*
12799
12800fi
12801echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12802echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12803
12804
12805
12806
12807hard_links="nottested"
12808if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12809 # do not overwrite the value of need_locks provided by the user
12810 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12811echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12812 hard_links=yes
12813 $RM conftest*
12814 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12815 touch conftest.a
12816 ln conftest.a conftest.b 2>&5 || hard_links=no
12817 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12818 echo "$as_me:$LINENO: result: $hard_links" >&5
12819echo "${ECHO_T}$hard_links" >&6
12820 if test "$hard_links" = no; then
12821 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12822echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12823 need_locks=warn
12824 fi
12825else
12826 need_locks=no
12827fi
12828
12829
12830
12831 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12832echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12833
12834 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12835 case $host_os in
12836 aix4* | aix5*)
12837 # If we're using GNU nm, then we don't want the "-C" option.
12838 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12839 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12840 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'
12841 else
12842 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'
12843 fi
12844 ;;
12845 pw32*)
12846 export_symbols_cmds_CXX="$ltdll_cmds"
12847 ;;
12848 cygwin* | mingw*)
12849 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'
12850 ;;
12851 *)
12852 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12853 ;;
12854 esac
12855
12856echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12857echo "${ECHO_T}$ld_shlibs_CXX" >&6
12858test "$ld_shlibs_CXX" = no && can_build_shared=no
12859
12860with_gnu_ld_CXX=$with_gnu_ld
12861
12862
12863
12864
12865
12866
12867#
12868# Do we need to explicitly link libc?
12869#
12870case "x$archive_cmds_need_lc_CXX" in
12871x|xyes)
12872 # Assume -lc should be added
12873 archive_cmds_need_lc_CXX=yes
12874
12875 if test "$enable_shared" = yes && test "$GCC" = yes; then
12876 case $archive_cmds_CXX in
12877 *'~'*)
12878 # FIXME: we may have to deal with multi-command sequences.
12879 ;;
12880 '$CC '*)
12881 # Test whether the compiler implicitly links with -lc since on some
12882 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12883 # to ld, don't add -lc before -lgcc.
12884 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12885echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12886 $RM conftest*
12887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12888
12889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12890 (eval $ac_compile) 2>&5
12891 ac_status=$?
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); } 2>conftest.err; then
12894 soname=conftest
12895 lib=conftest
12896 libobjs=conftest.$ac_objext
12897 deplibs=
12898 wl=$lt_prog_compiler_wl_CXX
12899 pic_flag=$lt_prog_compiler_pic_CXX
12900 compiler_flags=-v
12901 linker_flags=-v
12902 verstring=
12903 output_objdir=.
12904 libname=conftest
12905 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12906 allow_undefined_flag_CXX=
12907 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
12908 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12909 ac_status=$?
12910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911 (exit $ac_status); }
12912 then
12913 archive_cmds_need_lc_CXX=no
12914 else
12915 archive_cmds_need_lc_CXX=yes
12916 fi
12917 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12918 else
12919 cat conftest.err 1>&5
12920 fi
12921 $RM conftest*
12922 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12923echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12924 ;;
12925 esac
12926 fi
12927 ;;
12928esac
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
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 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12994echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12995withGCC=$GXX
12996library_names_spec=
12997libname_spec='lib$name'
12998soname_spec=
12999shrext_cmds=".so"
13000postinstall_cmds=
13001postuninstall_cmds=
13002finish_cmds=
13003finish_eval=
13004shlibpath_var=
13005shlibpath_overrides_runpath=unknown
13006version_type=none
13007dynamic_linker="$host_os ld.so"
13008sys_lib_dlsearch_path_spec="/lib /usr/lib"
13009need_lib_prefix=unknown
13010hardcode_into_libs=no
13011
13012# when you set need_version to no, make sure it does not cause -set_version
13013# flags to be left without arguments
13014need_version=unknown
13015
13016case $host_os in
13017aix3*)
13018 version_type=linux
13019 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13020 shlibpath_var=LIBPATH
13021
13022 # AIX 3 has no versioning support, so we append a major version to the name.
13023 soname_spec='${libname}${release}${shared_ext}$major'
13024 ;;
13025
13026aix4* | aix5*)
13027 version_type=linux
13028 need_lib_prefix=no
13029 need_version=no
13030 hardcode_into_libs=yes
13031 if test "$host_cpu" = ia64; then
13032 # AIX 5 supports IA64
13033 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13034 shlibpath_var=LD_LIBRARY_PATH
13035 else
13036 # With GCC up to 2.95.x, collect2 would create an import file
13037 # for dependence libraries. The import file would start with
13038 # the line `#! .'. This would cause the generated library to
13039 # depend on `.', always an invalid library. This was fixed in
13040 # development snapshots of GCC prior to 3.0.
13041 case $host_os in
13042 aix4 | aix4.[01] | aix4.[01].*)
13043 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13044 echo ' yes '
13045 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13046 :
13047 else
13048 can_build_shared=no
13049 fi
13050 ;;
13051 esac
13052 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13053 # soname into executable. Probably we can add versioning support to
13054 # collect2, so additional links can be useful in future.
13055 if test "$aix_use_runtimelinking" = yes; then
13056 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13057 # instead of lib<name>.a to let people know that these are not
13058 # typical AIX shared libraries.
13059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13060 else
13061 # We preserve .a as extension for shared libraries through AIX4.2
13062 # and later when we are not doing run time linking.
13063 library_names_spec='${libname}${release}.a $libname.a'
13064 soname_spec='${libname}${release}${shared_ext}$major'
13065 fi
13066 shlibpath_var=LIBPATH
13067 fi
13068 ;;
13069
13070amigaos*)
13071 if test "$host_cpu" = m68k; then
13072 library_names_spec='$libname.ixlibrary $libname.a'
13073 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13074 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'
13075 else
13076 dynamic_linker=no
13077 fi
13078 ;;
13079
13080beos*)
13081 library_names_spec='${libname}${shared_ext}'
13082 dynamic_linker="$host_os ld.so"
13083 shlibpath_var=LIBRARY_PATH
13084 ;;
13085
13086bsdi[45]*)
13087 version_type=linux
13088 need_version=no
13089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13090 soname_spec='${libname}${release}${shared_ext}$major'
13091 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13092 shlibpath_var=LD_LIBRARY_PATH
13093 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13094 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13095 # the default ld.so.conf also contains /usr/contrib/lib and
13096 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13097 # libtool to hard-code these into programs
13098 ;;
13099
13100cygwin* | mingw* | pw32*)
13101 version_type=windows
13102 shrext_cmds=".dll"
13103 need_version=no
13104 need_lib_prefix=no
13105
13106 case $withGCC,$host_os in
13107 yes,cygwin* | yes,mingw* | yes,pw32*)
13108 library_names_spec='$libname.dll.a'
13109 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13110 postinstall_cmds='base_file=`basename \${file}`~
13111 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13112 dldir=$destdir/`dirname \$dlpath`~
13113 test -d \$dldir || mkdir -p \$dldir~
13114 $install_prog $dir/$dlname \$dldir/$dlname~
13115 chmod a+x \$dldir/$dlname~
13116 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13117 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13118 fi'
13119 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13120 dlpath=$dir/\$dldll~
13121 $RM \$dlpath'
13122 shlibpath_overrides_runpath=yes
13123
13124 case $host_os in
13125 cygwin*)
13126 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13127 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13128 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13129 ;;
13130 mingw*)
13131 # MinGW DLLs use traditional 'lib' prefix
13132 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13133 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13134 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13135 # It is most probably a Windows format PATH printed by
13136 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13137 # path with ; separators, and with drive letters. We can handle the
13138 # drive letters (cygwin fileutils understands them), so leave them,
13139 # especially as we might pass files found there to a mingw objdump,
13140 # which wouldn't understand a cygwinified path. Ahh.
13141 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13142 else
13143 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13144 fi
13145 ;;
13146 pw32*)
13147 # pw32 DLLs use 'pw' prefix rather than 'lib'
13148 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13149 ;;
13150 esac
13151 ;;
13152
13153 *)
13154 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13155 ;;
13156 esac
13157 dynamic_linker='Win32 ld.exe'
13158 # FIXME: first we should search . and the directory the executable is in
13159 shlibpath_var=PATH
13160 ;;
13161
13162darwin* | rhapsody*)
13163 dynamic_linker="$host_os dyld"
13164 version_type=darwin
13165 need_lib_prefix=no
13166 need_version=no
13167 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13168 soname_spec='${libname}${release}${major}$shared_ext'
13169 shlibpath_overrides_runpath=yes
13170 shlibpath_var=DYLD_LIBRARY_PATH
13171 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13172
13173 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13174 ;;
13175
13176dgux*)
13177 version_type=linux
13178 need_lib_prefix=no
13179 need_version=no
13180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13181 soname_spec='${libname}${release}${shared_ext}$major'
13182 shlibpath_var=LD_LIBRARY_PATH
13183 ;;
13184
13185freebsd1*)
13186 dynamic_linker=no
13187 ;;
13188
13189freebsd* | dragonfly*)
13190 # DragonFly does not have aout. When/if they implement a new
13191 # versioning mechanism, adjust this.
13192 if test -x /usr/bin/objformat; then
13193 objformat=`/usr/bin/objformat`
13194 else
13195 case $host_os in
13196 freebsd[123]*) objformat=aout ;;
13197 *) objformat=elf ;;
13198 esac
13199 fi
13200 version_type=freebsd-$objformat
13201 case $version_type in
13202 freebsd-elf*)
13203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13204 need_version=no
13205 need_lib_prefix=no
13206 ;;
13207 freebsd-*)
13208 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13209 need_version=yes
13210 ;;
13211 esac
13212 shlibpath_var=LD_LIBRARY_PATH
13213 case $host_os in
13214 freebsd2*)
13215 shlibpath_overrides_runpath=yes
13216 ;;
13217 freebsd3.[01]* | freebsdelf3.[01]*)
13218 shlibpath_overrides_runpath=yes
13219 hardcode_into_libs=yes
13220 ;;
13221 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13222 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13223 shlibpath_overrides_runpath=no
13224 hardcode_into_libs=yes
13225 ;;
13226 *) # from 4.6 on, and DragonFly
13227 shlibpath_overrides_runpath=yes
13228 hardcode_into_libs=yes
13229 ;;
13230 esac
13231 ;;
13232
13233gnu*)
13234 version_type=linux
13235 need_lib_prefix=no
13236 need_version=no
13237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13238 soname_spec='${libname}${release}${shared_ext}$major'
13239 shlibpath_var=LD_LIBRARY_PATH
13240 hardcode_into_libs=yes
13241 ;;
13242
13243hpux9* | hpux10* | hpux11*)
13244 # Give a soname corresponding to the major version so that dld.sl refuses to
13245 # link against other versions.
13246 version_type=sunos
13247 need_lib_prefix=no
13248 need_version=no
13249 case $host_cpu in
13250 ia64*)
13251 shrext_cmds='.so'
13252 hardcode_into_libs=yes
13253 dynamic_linker="$host_os dld.so"
13254 shlibpath_var=LD_LIBRARY_PATH
13255 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13257 soname_spec='${libname}${release}${shared_ext}$major'
13258 if test "X$HPUX_IA64_MODE" = X32; then
13259 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13260 else
13261 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13262 fi
13263 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13264 ;;
13265 hppa*64*)
13266 shrext_cmds='.sl'
13267 hardcode_into_libs=yes
13268 dynamic_linker="$host_os dld.sl"
13269 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13270 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13272 soname_spec='${libname}${release}${shared_ext}$major'
13273 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13274 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13275 ;;
13276 *)
13277 shrext_cmds='.sl'
13278 dynamic_linker="$host_os dld.sl"
13279 shlibpath_var=SHLIB_PATH
13280 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13282 soname_spec='${libname}${release}${shared_ext}$major'
13283 ;;
13284 esac
13285 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13286 postinstall_cmds='chmod 555 $lib'
13287 ;;
13288
13289interix[3-9]*)
13290 version_type=linux
13291 need_lib_prefix=no
13292 need_version=no
13293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13294 soname_spec='${libname}${release}${shared_ext}$major'
13295 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13296 shlibpath_var=LD_LIBRARY_PATH
13297 shlibpath_overrides_runpath=no
13298 hardcode_into_libs=yes
13299 ;;
13300
13301irix5* | irix6* | nonstopux*)
13302 case $host_os in
13303 nonstopux*) version_type=nonstopux ;;
13304 *)
13305 if test "$lt_cv_prog_gnu_ld" = yes; then
13306 version_type=linux
13307 else
13308 version_type=irix
13309 fi ;;
13310 esac
13311 need_lib_prefix=no
13312 need_version=no
13313 soname_spec='${libname}${release}${shared_ext}$major'
13314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13315 case $host_os in
13316 irix5* | nonstopux*)
13317 libsuff= shlibsuff=
13318 ;;
13319 *)
13320 case $LD in # libtool.m4 will add one of these switches to LD
13321 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13322 libsuff= shlibsuff= libmagic=32-bit;;
13323 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13324 libsuff=32 shlibsuff=N32 libmagic=N32;;
13325 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13326 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13327 *) libsuff= shlibsuff= libmagic=never-match;;
13328 esac
13329 ;;
13330 esac
13331 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13332 shlibpath_overrides_runpath=no
13333 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13334 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13335 hardcode_into_libs=yes
13336 ;;
13337
13338# No shared lib support for Linux oldld, aout, or coff.
13339linux*oldld* | linux*aout* | linux*coff*)
13340 dynamic_linker=no
13341 ;;
13342
13343# This must be Linux ELF.
13344linux* | k*bsd*-gnu)
13345 version_type=linux
13346 need_lib_prefix=no
13347 need_version=no
13348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13349 soname_spec='${libname}${release}${shared_ext}$major'
13350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13351 shlibpath_var=LD_LIBRARY_PATH
13352 shlibpath_overrides_runpath=no
13353 # Some binutils ld are patched to set DT_RUNPATH
13354 save_LDFLAGS=$LDFLAGS
13355 save_libdir=$libdir
13356 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13357 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13358 if test x$gcc_no_link = xyes; then
13359 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13360echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13361 { (exit 1); exit 1; }; }
ff66d28f 13362fi
1cf3d07d 13363cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
13364/* confdefs.h. */
13365_ACEOF
13366cat confdefs.h >>conftest.$ac_ext
13367cat >>conftest.$ac_ext <<_ACEOF
13368/* end confdefs.h. */
1cf3d07d
SE
13369
13370int
13371main ()
13372{
13373
13374 ;
13375 return 0;
13376}
ff66d28f 13377_ACEOF
1cf3d07d
SE
13378rm -f conftest.$ac_objext conftest$ac_exeext
13379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13380 (eval $ac_link) 2>conftest.er1
ff66d28f
PE
13381 ac_status=$?
13382 grep -v '^ *+' conftest.er1 >conftest.err
13383 rm -f conftest.er1
13384 cat conftest.err >&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
13386 (exit $ac_status); } &&
13387 { ac_try='test -z "$ac_cxx_werror_flag"
13388 || test ! -s conftest.err'
13389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13390 (eval $ac_try) 2>&5
13391 ac_status=$?
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); }; } &&
13394 { ac_try='test -s conftest$ac_exeext'
13395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13396 (eval $ac_try) 2>&5
13397 ac_status=$?
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); }; }; then
13400 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
13401 shlibpath_overrides_runpath=yes
ff66d28f 13402fi
1cf3d07d 13403
ff66d28f
PE
13404else
13405 echo "$as_me: failed program was:" >&5
13406sed 's/^/| /' conftest.$ac_ext >&5
13407
ff66d28f 13408fi
1cf3d07d
SE
13409rm -f conftest.err conftest.$ac_objext \
13410 conftest$ac_exeext conftest.$ac_ext
13411 LDFLAGS=$save_LDFLAGS
13412 libdir=$save_libdir
13413
13414 # This implies no fast_install, which is unacceptable.
13415 # Some rework will be needed to allow for fast_install
13416 # before this can be enabled.
13417 hardcode_into_libs=yes
13418
13419 # Append ld.so.conf contents to the search path
13420 if test -f /etc/ld.so.conf; then
13421 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' ' '`
13422 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13423 fi
13424
13425 # We used to test for /lib/ld.so.1 and disable shared libraries on
13426 # powerpc, because MkLinux only supported shared libraries with the
13427 # GNU dynamic linker. Since this was broken with cross compilers,
13428 # most powerpc-linux boxes support dynamic linking these days and
13429 # people can always --disable-shared, the test was removed, and we
13430 # assume the GNU/Linux dynamic linker is in use.
13431 dynamic_linker='GNU/Linux ld.so'
13432 ;;
ff66d28f 13433
1cf3d07d
SE
13434netbsd*)
13435 version_type=sunos
13436 need_lib_prefix=no
13437 need_version=no
13438 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13441 dynamic_linker='NetBSD (a.out) ld.so'
13442 else
13443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13444 soname_spec='${libname}${release}${shared_ext}$major'
13445 dynamic_linker='NetBSD ld.elf_so'
13446 fi
13447 shlibpath_var=LD_LIBRARY_PATH
13448 shlibpath_overrides_runpath=yes
13449 hardcode_into_libs=yes
13450 ;;
ff66d28f 13451
1cf3d07d
SE
13452newsos6)
13453 version_type=linux
13454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13455 shlibpath_var=LD_LIBRARY_PATH
13456 shlibpath_overrides_runpath=yes
13457 ;;
ff66d28f 13458
1cf3d07d
SE
13459*nto* | *qnx*)
13460 version_type=qnx
13461 need_lib_prefix=no
13462 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
13466 shlibpath_overrides_runpath=no
13467 hardcode_into_libs=yes
13468 dynamic_linker='ldqnx.so'
13469 ;;
13470
13471openbsd*)
13472 version_type=sunos
13473 sys_lib_dlsearch_path_spec="/usr/lib"
13474 need_lib_prefix=no
13475 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13476 case $host_os in
13477 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13478 *) need_version=no ;;
13479 esac
13480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13481 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13482 shlibpath_var=LD_LIBRARY_PATH
13483 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13484 case $host_os in
13485 openbsd2.[89] | openbsd2.[89].*)
13486 shlibpath_overrides_runpath=no
13487 ;;
13488 *)
13489 shlibpath_overrides_runpath=yes
13490 ;;
13491 esac
ff66d28f 13492 else
1cf3d07d 13493 shlibpath_overrides_runpath=yes
ff66d28f 13494 fi
1cf3d07d 13495 ;;
ff66d28f 13496
1cf3d07d
SE
13497os2*)
13498 libname_spec='$name'
13499 shrext_cmds=".dll"
13500 need_lib_prefix=no
13501 library_names_spec='$libname${shared_ext} $libname.a'
13502 dynamic_linker='OS/2 ld.exe'
13503 shlibpath_var=LIBPATH
13504 ;;
13505
13506osf3* | osf4* | osf5*)
13507 version_type=osf
13508 need_lib_prefix=no
13509 need_version=no
13510 soname_spec='${libname}${release}${shared_ext}$major'
13511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13512 shlibpath_var=LD_LIBRARY_PATH
13513 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13514 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13515 ;;
13516
13517rdos*)
13518 dynamic_linker=no
13519 ;;
13520
13521solaris*)
13522 version_type=linux
13523 need_lib_prefix=no
13524 need_version=no
13525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13526 soname_spec='${libname}${release}${shared_ext}$major'
13527 shlibpath_var=LD_LIBRARY_PATH
13528 shlibpath_overrides_runpath=yes
13529 hardcode_into_libs=yes
13530 # ldd complains unless libraries are executable
13531 postinstall_cmds='chmod +x $lib'
13532 ;;
13533
13534sunos4*)
13535 version_type=sunos
13536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13537 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13538 shlibpath_var=LD_LIBRARY_PATH
13539 shlibpath_overrides_runpath=yes
13540 if test "$with_gnu_ld" = yes; then
13541 need_lib_prefix=no
13542 fi
13543 need_version=yes
13544 ;;
13545
13546sysv4 | sysv4.3*)
13547 version_type=linux
13548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13549 soname_spec='${libname}${release}${shared_ext}$major'
13550 shlibpath_var=LD_LIBRARY_PATH
13551 case $host_vendor in
13552 sni)
13553 shlibpath_overrides_runpath=no
13554 need_lib_prefix=no
13555 runpath_var=LD_RUN_PATH
13556 ;;
13557 siemens)
13558 need_lib_prefix=no
13559 ;;
13560 motorola)
13561 need_lib_prefix=no
13562 need_version=no
13563 shlibpath_overrides_runpath=no
13564 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13565 ;;
13566 esac
13567 ;;
13568
13569sysv4*MP*)
13570 if test -d /usr/nec ;then
13571 version_type=linux
13572 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13573 soname_spec='$libname${shared_ext}.$major'
13574 shlibpath_var=LD_LIBRARY_PATH
13575 fi
13576 ;;
13577
13578sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13579 version_type=freebsd-elf
13580 need_lib_prefix=no
13581 need_version=no
13582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13583 soname_spec='${libname}${release}${shared_ext}$major'
13584 shlibpath_var=LD_LIBRARY_PATH
13585 shlibpath_overrides_runpath=yes
13586 hardcode_into_libs=yes
13587 if test "$with_gnu_ld" = yes; then
13588 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13589 else
13590 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13591 case $host_os in
13592 sco3.2v5*)
13593 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13594 ;;
13595 esac
13596 fi
13597 sys_lib_dlsearch_path_spec='/usr/lib'
13598 ;;
13599
13600tpf*)
13601 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13602 version_type=linux
13603 need_lib_prefix=no
13604 need_version=no
13605 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13606 shlibpath_var=LD_LIBRARY_PATH
13607 shlibpath_overrides_runpath=no
13608 hardcode_into_libs=yes
13609 ;;
13610
13611uts4*)
13612 version_type=linux
13613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13614 soname_spec='${libname}${release}${shared_ext}$major'
13615 shlibpath_var=LD_LIBRARY_PATH
13616 ;;
13617
13618*)
13619 dynamic_linker=no
13620 ;;
13621esac
13622echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13623echo "${ECHO_T}$dynamic_linker" >&6
13624test "$dynamic_linker" = no && can_build_shared=no
13625
13626variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13627if test "$GCC" = yes; then
13628 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
ff66d28f 13629fi
ff66d28f 13630
1cf3d07d
SE
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13667echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13668hardcode_action_CXX=
13669if test -n "$hardcode_libdir_flag_spec_CXX" ||
13670 test -n "$runpath_var_CXX" ||
13671 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13672
13673 # We can hardcode non-existent directories.
13674 if test "$hardcode_direct_CXX" != no &&
13675 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13676 # have to relink, otherwise we might link with an installed library
13677 # when we should be linking with a yet-to-be-installed one
13678 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13679 test "$hardcode_minus_L_CXX" != no; then
13680 # Linking always hardcodes the temporary library directory.
13681 hardcode_action_CXX=relink
ff66d28f 13682 else
1cf3d07d
SE
13683 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13684 hardcode_action_CXX=immediate
ff66d28f
PE
13685 fi
13686else
1cf3d07d
SE
13687 # We cannot hardcode anything, or else we can only hardcode existing
13688 # directories.
13689 hardcode_action_CXX=unsupported
ff66d28f 13690fi
1cf3d07d
SE
13691echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13692echo "${ECHO_T}$hardcode_action_CXX" >&6
ff66d28f 13693
1cf3d07d
SE
13694if test "$hardcode_action_CXX" = relink ||
13695 test "$inherit_rpath_CXX" = yes; then
13696 # Fast installation is not supported
13697 enable_fast_install=no
13698elif test "$shlibpath_overrides_runpath" = yes ||
13699 test "$enable_shared" = no; then
13700 # Fast installation is not necessary
13701 enable_fast_install=needless
ff66d28f 13702fi
ff66d28f 13703
1cf3d07d
SE
13704
13705
13706
13707
13708
13709
13710 fi # test -n "$compiler"
13711
13712 CC=$lt_save_CC
13713 LDCXX=$LD
13714 LD=$lt_save_LD
13715 GCC=$lt_save_GCC
13716 with_gnu_ld=$lt_save_with_gnu_ld
13717 lt_cv_path_LDCXX=$lt_cv_path_LD
13718 lt_cv_path_LD=$lt_save_path_LD
13719 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13720 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13721fi # test "$_lt_caught_CXX_error" != yes
ff66d28f
PE
13722
13723ac_ext=c
13724ac_cpp='$CPP $CPPFLAGS'
13725ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13726ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13727ac_compiler_gnu=$ac_cv_c_compiler_gnu
13728
3df64633
AO
13729
13730
3df64633 13731
3df64633 13732
3df64633 13733
34791641
PE
13734
13735
33590f13 13736
ff66d28f
PE
13737
13738
13739
ff66d28f 13740
1cf3d07d
SE
13741 ac_config_commands="$ac_config_commands libtool"
13742
13743
13744
13745
13746# Only expand once:
13747
13748
13749
13750
13751
5f34ed87
BK
13752# Possibly disable most of the library.
13753## TODO: Consider skipping unncessary tests altogether in this case, rather
13754## than just ignoring the results. Faster /and/ more correct, win win.
4ffe6e87 13755
5f34ed87
BK
13756 # Check whether --enable-hosted-libstdcxx or --disable-hosted-libstdcxx was given.
13757if test "${enable_hosted_libstdcxx+set}" = set; then
13758 enableval="$enable_hosted_libstdcxx"
4ffe6e87 13759
4ffe6e87 13760else
5f34ed87
BK
13761 case "$host" in
13762 arm*-*-symbianelf*)
13763 enable_hosted_libstdcxx=no
13764 ;;
13765 *)
13766 enable_hosted_libstdcxx=yes
13767 ;;
13768 esac
4ffe6e87 13769fi;
5f34ed87
BK
13770 if test "$enable_hosted_libstdcxx" = no; then
13771 { echo "$as_me:$LINENO: Only freestanding libraries will be built" >&5
13772echo "$as_me: Only freestanding libraries will be built" >&6;}
13773 is_hosted=no
13774 hosted_define=0
13775 enable_abi_check=no
13776 enable_libstdcxx_pch=no
4ffe6e87 13777 else
5f34ed87
BK
13778 is_hosted=yes
13779 hosted_define=1
4ffe6e87 13780 fi
5f34ed87
BK
13781
13782
13783cat >>confdefs.h <<_ACEOF
13784#define _GLIBCXX_HOSTED $hosted_define
13785_ACEOF
13786
13787
13788
13789# Check for compiler support that doesn't require linking.
13790
13791 echo "$as_me:$LINENO: checking for exception model to use" >&5
13792echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
13793
13794
13795 ac_ext=cc
13796ac_cpp='$CXXCPP $CPPFLAGS'
13797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13800
13801 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
13802if test "${enable_sjlj_exceptions+set}" = set; then
13803 enableval="$enable_sjlj_exceptions"
13804
13805 case "$enableval" in
13806 yes|no|auto) ;;
13807 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable sjlj-exceptions" >&5
13808echo "$as_me: error: Unknown argument to enable/disable sjlj-exceptions" >&2;}
13809 { (exit 1); exit 1; }; } ;;
13810 esac
13811
4ffe6e87 13812else
5f34ed87
BK
13813 enable_sjlj_exceptions=auto
13814fi;
13815
13816
13817 if test $enable_sjlj_exceptions = auto; then
13818 # Botheration. Now we've got to detect the exception model. Link tests
13819 # against libgcc.a are problematic since we've not been given proper -L
13820 # bits for single-tree newlib and libgloss.
13821 #
13822 # Fake what AC_TRY_COMPILE does. XXX Look at redoing this new-style.
13823 cat > conftest.$ac_ext << EOF
1cf3d07d 13824#line 13824 "configure"
5f34ed87
BK
13825struct S { ~S(); };
13826void bar();
13827void foo()
13828{
13829 S s;
13830 bar();
13831}
13832EOF
13833 old_CXXFLAGS="$CXXFLAGS"
13834 CXXFLAGS=-S
13835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13836 (eval $ac_compile) 2>&5
13837 ac_status=$?
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; then
13840 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
13841 enable_sjlj_exceptions=yes
13842 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
13843 enable_sjlj_exceptions=no
13844 elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
13845 enable_sjlj_exceptions=no
4ffe6e87
BK
13846 fi
13847 fi
5f34ed87
BK
13848 CXXFLAGS="$old_CXXFLAGS"
13849 rm -f conftest*
13850 fi
4ffe6e87 13851
5f34ed87
BK
13852 # This is a tad weird, for hysterical raisins. We have to map
13853 # enable/disable to two different models.
13854 case $enable_sjlj_exceptions in
13855 yes)
13856
13857cat >>confdefs.h <<\_ACEOF
13858#define _GLIBCXX_SJLJ_EXCEPTIONS 1
13859_ACEOF
13860
13861 ac_exception_model_name=sjlj
13862 ;;
13863 no)
13864 ac_exception_model_name="call frame"
13865 ;;
13866 *)
13867 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
13868echo "$as_me: error: unable to detect exception model" >&2;}
4ffe6e87 13869 { (exit 1); exit 1; }; }
5f34ed87
BK
13870 ;;
13871 esac
13872 ac_ext=c
13873ac_cpp='$CPP $CPPFLAGS'
13874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13876ac_compiler_gnu=$ac_cv_c_compiler_gnu
4ffe6e87 13877
5f34ed87
BK
13878 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
13879echo "${ECHO_T}$ac_exception_model_name" >&6
4ffe6e87
BK
13880
13881
5f34ed87
BK
13882 # Check whether --enable-libstdcxx-pch or --disable-libstdcxx-pch was given.
13883if test "${enable_libstdcxx_pch+set}" = set; then
13884 enableval="$enable_libstdcxx_pch"
4ffe6e87 13885
5f34ed87
BK
13886 case "$enableval" in
13887 yes|no) ;;
13888 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&5
13889echo "$as_me: error: Argument to enable/disable libstdcxx-pch must be yes or no" >&2;}
13890 { (exit 1); exit 1; }; } ;;
13891 esac
4ffe6e87 13892
4ffe6e87 13893else
5f34ed87 13894 enable_libstdcxx_pch=$is_hosted
4ffe6e87
BK
13895fi;
13896
5f34ed87
BK
13897 if test $enable_libstdcxx_pch = yes; then
13898 echo "$as_me:$LINENO: checking for compiler with PCH support" >&5
13899echo $ECHO_N "checking for compiler with PCH support... $ECHO_C" >&6
13900if test "${glibcxx_cv_prog_CXX_pch+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13902else
13903 ac_save_CXXFLAGS="$CXXFLAGS"
13904 CXXFLAGS="$CXXFLAGS -Werror -Winvalid-pch -Wno-deprecated"
4ffe6e87
BK
13905
13906
5f34ed87
BK
13907 ac_ext=cc
13908ac_cpp='$CXXCPP $CPPFLAGS'
13909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4ffe6e87 13912
5f34ed87
BK
13913 echo '#include <math.h>' > conftest.h
13914 if $CXX $CXXFLAGS $CPPFLAGS -x c++-header conftest.h \
13915 -o conftest.h.gch 1>&5 2>&1 &&
13916 echo '#error "pch failed"' > conftest.h &&
13917 echo '#include "conftest.h"' > conftest.cc &&
13918 $CXX -c $CXXFLAGS $CPPFLAGS conftest.cc 1>&5 2>&1 ;
13919 then
13920 glibcxx_cv_prog_CXX_pch=yes
13921 else
13922 glibcxx_cv_prog_CXX_pch=no
13923 fi
13924 rm -f conftest*
13925 CXXFLAGS=$ac_save_CXXFLAGS
13926 ac_ext=c
13927ac_cpp='$CPP $CPPFLAGS'
13928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13930ac_compiler_gnu=$ac_cv_c_compiler_gnu
4ffe6e87
BK
13931
13932
5f34ed87
BK
13933fi
13934echo "$as_me:$LINENO: result: $glibcxx_cv_prog_CXX_pch" >&5
13935echo "${ECHO_T}$glibcxx_cv_prog_CXX_pch" >&6
13936 enable_libstdcxx_pch=$glibcxx_cv_prog_CXX_pch
13937 fi
4ffe6e87 13938
5f34ed87
BK
13939 echo "$as_me:$LINENO: checking for enabled PCH" >&5
13940echo $ECHO_N "checking for enabled PCH... $ECHO_C" >&6
13941 echo "$as_me:$LINENO: result: $enable_libstdcxx_pch" >&5
13942echo "${ECHO_T}$enable_libstdcxx_pch" >&6
4ffe6e87 13943
4ffe6e87 13944
5f34ed87
BK
13945 if test $enable_libstdcxx_pch = yes; then
13946 glibcxx_PCHFLAGS="-include bits/stdtr1c++.h"
13947 else
13948 glibcxx_PCHFLAGS=""
13949 fi
4ffe6e87 13950
4ffe6e87
BK
13951
13952
5f34ed87 13953# Enable all the variable C++ runtime options.
4ffe6e87 13954
5f34ed87
BK
13955 echo "$as_me:$LINENO: checking for underlying I/O to use" >&5
13956echo $ECHO_N "checking for underlying I/O to use... $ECHO_C" >&6
13957 # Check whether --enable-cstdio or --disable-cstdio was given.
13958if test "${enable_cstdio+set}" = set; then
13959 enableval="$enable_cstdio"
4ffe6e87 13960
5f34ed87
BK
13961 case "$enableval" in
13962 stdio) ;;
13963 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable cstdio" >&5
13964echo "$as_me: error: Unknown argument to enable/disable cstdio" >&2;}
13965 { (exit 1); exit 1; }; } ;;
13966 esac
4ffe6e87 13967
5f34ed87
BK
13968else
13969 enable_cstdio=stdio
13970fi;
4ffe6e87 13971
4ffe6e87 13972
5f34ed87
BK
13973 # Now that libio has been removed, you can have any color you want as long
13974 # as it's black. This is one big no-op until other packages are added, but
13975 # showing the framework never hurts.
13976 case ${enable_cstdio} in
13977 stdio)
13978 CSTDIO_H=config/io/c_io_stdio.h
13979 BASIC_FILE_H=config/io/basic_file_stdio.h
13980 BASIC_FILE_CC=config/io/basic_file_stdio.cc
13981 echo "$as_me:$LINENO: result: stdio" >&5
13982echo "${ECHO_T}stdio" >&6
13983 ;;
13984 esac
4ffe6e87 13985
4ffe6e87 13986
4ffe6e87 13987
4ffe6e87 13988
4ffe6e87 13989
4ffe6e87 13990
5f34ed87
BK
13991 # Check whether --enable-clocale or --disable-clocale was given.
13992if test "${enable_clocale+set}" = set; then
13993 enableval="$enable_clocale"
92eabea2 13994
5f34ed87
BK
13995 case "$enableval" in
13996 generic|gnu|ieee_1003.1-2001|yes|no|auto) ;;
13997 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
13998echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
13999 { (exit 1); exit 1; }; } ;;
14000 esac
92eabea2
PE
14001
14002else
5f34ed87 14003 enable_clocale=auto
92eabea2 14004fi;
92eabea2 14005
5780a46b 14006
0258dc3a
BK
14007 # Deal with gettext issues. Default to not using it (=no) until we detect
14008 # support for it later. Let the user turn it off via --e/d, but let that
14009 # default to on for easier handling.
14010 USE_NLS=no
14011 # Check whether --enable-nls or --disable-nls was given.
14012if test "${enable_nls+set}" = set; then
14013 enableval="$enable_nls"
14014
14015else
14016 enable_nls=yes
14017fi;
14018
14019 # Either a known packaage, or "auto"
5f34ed87
BK
14020 if test $enable_clocale = no || test $enable_clocale = yes; then
14021 enable_clocale=auto
14022 fi
5f34ed87 14023 enable_clocale_flag=$enable_clocale
dd75251f 14024
0258dc3a 14025 # Probe for locale model to use if none specified.
ff66d28f
PE
14026 # Default to "generic".
14027 if test $enable_clocale_flag = auto; then
7d3998a4
PE
14028 case ${target_os} in
14029 linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu)
0258dc3a
BK
14030 enable_clocale_flag=gnu
14031 ;;
14032 darwin* | freebsd*)
14033 enable_clocale_flag=darwin
14034 ;;
14035 *)
14036 enable_clocale_flag=generic
14037 ;;
14038 esac
14039 fi
14040
14041 # Sanity check model, and test for special functionality.
14042 if test $enable_clocale_flag = gnu; then
14043 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
14044/* confdefs.h. */
14045_ACEOF
14046cat confdefs.h >>conftest.$ac_ext
14047cat >>conftest.$ac_ext <<_ACEOF
14048/* end confdefs.h. */
56deb74c 14049
0258dc3a
BK
14050 #include <features.h>
14051 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)
14052 _GLIBCXX_ok
14053 #endif
ff66d28f
PE
14054
14055_ACEOF
56deb74c 14056if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ff66d28f 14057 $EGREP "_GLIBCXX_ok" >/dev/null 2>&1; then
56deb74c
BK
14058 enable_clocale_flag=gnu
14059else
56deb74c
BK
14060 enable_clocale_flag=generic
14061fi
14062rm -f conftest*
14063
1451a492 14064
0258dc3a
BK
14065 # Test for bugs early in glibc-2.2.x series
14066 if test "$cross_compiling" = yes; then
1451a492
BK
14067 enable_clocale_flag=generic
14068else
ff66d28f 14069 cat >conftest.$ac_ext <<_ACEOF
ff66d28f
PE
14070/* confdefs.h. */
14071_ACEOF
14072cat confdefs.h >>conftest.$ac_ext
14073cat >>conftest.$ac_ext <<_ACEOF
14074/* end confdefs.h. */
14075
0258dc3a
BK
14076 #define _GNU_SOURCE 1
14077 #include <locale.h>
14078 #include <string.h>
14079 #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
14080 extern __typeof(newlocale) __newlocale;
14081 extern __typeof(duplocale) __duplocale;
14082 extern __typeof(strcoll_l) __strcoll_l;
14083 #endif
14084 int main()
14085 {
14086