4212
5886
CFLAGS="$SAVE_CFLAGS"
5890
# Find out which ABI we are using.
5891
echo 'int i;' > conftest.$ac_ext
5892
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5893
(eval $ac_compile) 2>&5
5895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896
(exit $ac_status); }; then
5897
case `/usr/bin/file conftest.o` in
5899
case $lt_cv_prog_gnu_ld in
5900
yes*) LD="${LD-ld} -m elf64_sparc" ;;
5901
*) LD="${LD-ld} -64" ;;
4220
# Save cache, so that ltconfig can load it
4221
cat >confcache <<\_ACEOF
4222
# This file is a shell script that caches the results of configure
4223
# tests run on this system so they can be shared between configure
4224
# scripts and configure runs, see configure's option --config-cache.
4225
# It is not useful on other systems. If it contains results you don't
4226
# want to keep, you may remove or edit it.
4228
# config.status only pays attention to the cache file if you give it
4229
# the --recheck option to rerun configure.
4231
# `ac_cv_env_foo' variables (set or unset) will be overridden when
4232
# loading this file, other *unset* `ac_cv_foo' will be assigned the
4237
# The following way of writing the cache mishandles newlines in values,
4238
# but we know of no workaround that is simple, portable, and efficient.
4239
# So, don't put newlines in cache variables' values.
4240
# Ultrix sh set writes to stderr and can't be redirected directly,
4241
# and sets the high bit in the cache file unless we assign to the vars.
4244
case `(ac_space=' '; set | grep ac_space) 2>&1` in
4246
# `set' does not quote correctly, so add quotes (double-quote
4247
# substitution turns \\\\ into \\, and sed turns \\ into \).
4250
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4253
# `set' quotes correctly as required by POSIX, so do not add quotes.
4255
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4262
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4264
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4266
if diff $cache_file confcache >/dev/null 2>&1; then :; else
4267
if test -w $cache_file; then
4268
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4269
cat confcache >$cache_file
4271
echo "not updating unwritable cache $cache_file"
4276
# Actually configure libtool. ac_aux_dir is where install-sh is found.
4277
AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4278
MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4279
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4280
AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4281
objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4282
deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4283
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4284
$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4285
|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4286
echo "$as_me: error: libtool configure failed" >&2;}
5910
need_locks="$enable_libtool_lock"
5913
ac_cpp='$CPP $CPPFLAGS'
5914
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5915
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5916
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5917
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5918
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5919
# On Suns, sometimes $CPP names a directory.
5920
if test -n "$CPP" && test -d "$CPP"; then
5923
if test -z "$CPP"; then
5924
if test "${ac_cv_prog_CPP+set}" = set; then
5925
echo $ECHO_N "(cached) $ECHO_C" >&6
5927
# Double quotes because CPP needs to be expanded
5928
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5931
for ac_c_preproc_warn_flag in '' yes
5933
# Use a header file that comes with gcc, so configuring glibc
5934
# with a fresh cross-compiler works.
5935
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5936
# <limits.h> exists even on freestanding compilers.
5937
# On the NeXT, cc -E runs the code through the compiler's parser,
5938
# not just through cpp. "Syntax error" is here to catch this case.
5939
cat >conftest.$ac_ext <<_ACEOF
5942
cat confdefs.h >>conftest.$ac_ext
5943
cat >>conftest.$ac_ext <<_ACEOF
5944
/* end confdefs.h. */
5946
# include <limits.h>
5948
# include <assert.h>
5952
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5953
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5955
grep -v '^ *+' conftest.er1 >conftest.err
5957
cat conftest.err >&5
5958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959
(exit $ac_status); } >/dev/null; then
5960
if test -s conftest.err; then
5961
ac_cpp_err=$ac_c_preproc_warn_flag
5962
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5969
if test -z "$ac_cpp_err"; then
5972
echo "$as_me: failed program was:" >&5
5973
sed 's/^/| /' conftest.$ac_ext >&5
5975
# Broken: fails on valid input.
5978
rm -f conftest.err conftest.$ac_ext
5980
# OK, works on sane cases. Now check whether non-existent headers
5981
# can be detected and how.
5982
cat >conftest.$ac_ext <<_ACEOF
5985
cat confdefs.h >>conftest.$ac_ext
5986
cat >>conftest.$ac_ext <<_ACEOF
5987
/* end confdefs.h. */
5988
#include <ac_nonexistent.h>
5990
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5991
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5993
grep -v '^ *+' conftest.er1 >conftest.err
5995
cat conftest.err >&5
5996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997
(exit $ac_status); } >/dev/null; then
5998
if test -s conftest.err; then
5999
ac_cpp_err=$ac_c_preproc_warn_flag
6000
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6007
if test -z "$ac_cpp_err"; then
6008
# Broken: success on invalid input.
6011
echo "$as_me: failed program was:" >&5
6012
sed 's/^/| /' conftest.$ac_ext >&5
6014
# Passes both tests.
6018
rm -f conftest.err conftest.$ac_ext
6021
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6022
rm -f conftest.err conftest.$ac_ext
6023
if $ac_preproc_ok; then
6035
echo "$as_me:$LINENO: result: $CPP" >&5
6036
echo "${ECHO_T}$CPP" >&6
6038
for ac_c_preproc_warn_flag in '' yes
6040
# Use a header file that comes with gcc, so configuring glibc
6041
# with a fresh cross-compiler works.
6042
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6043
# <limits.h> exists even on freestanding compilers.
6044
# On the NeXT, cc -E runs the code through the compiler's parser,
6045
# not just through cpp. "Syntax error" is here to catch this case.
6046
cat >conftest.$ac_ext <<_ACEOF
6049
cat confdefs.h >>conftest.$ac_ext
6050
cat >>conftest.$ac_ext <<_ACEOF
6051
/* end confdefs.h. */
6053
# include <limits.h>
6055
# include <assert.h>
6059
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6060
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6062
grep -v '^ *+' conftest.er1 >conftest.err
6064
cat conftest.err >&5
6065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066
(exit $ac_status); } >/dev/null; then
6067
if test -s conftest.err; then
6068
ac_cpp_err=$ac_c_preproc_warn_flag
6069
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6076
if test -z "$ac_cpp_err"; then
6079
echo "$as_me: failed program was:" >&5
6080
sed 's/^/| /' conftest.$ac_ext >&5
6082
# Broken: fails on valid input.
6085
rm -f conftest.err conftest.$ac_ext
6087
# OK, works on sane cases. Now check whether non-existent headers
6088
# can be detected and how.
6089
cat >conftest.$ac_ext <<_ACEOF
6092
cat confdefs.h >>conftest.$ac_ext
6093
cat >>conftest.$ac_ext <<_ACEOF
6094
/* end confdefs.h. */
6095
#include <ac_nonexistent.h>
6097
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6098
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6100
grep -v '^ *+' conftest.er1 >conftest.err
6102
cat conftest.err >&5
6103
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104
(exit $ac_status); } >/dev/null; then
6105
if test -s conftest.err; then
6106
ac_cpp_err=$ac_c_preproc_warn_flag
6107
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6114
if test -z "$ac_cpp_err"; then
6115
# Broken: success on invalid input.
6118
echo "$as_me: failed program was:" >&5
6119
sed 's/^/| /' conftest.$ac_ext >&5
6121
# Passes both tests.
6125
rm -f conftest.err conftest.$ac_ext
6128
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6129
rm -f conftest.err conftest.$ac_ext
6130
if $ac_preproc_ok; then
6133
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6134
See \`config.log' for more details." >&5
6135
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6136
See \`config.log' for more details." >&2;}
4287
6137
{ (exit 1); exit 1; }; }
4289
# Reload cache, that may have been modified by ltconfig
4290
if test -r "$cache_file"; then
4291
# Some versions of bash will fail to source /dev/null (special
4292
# files actually), so we avoid doing that.
4293
if test -f "$cache_file"; then
4294
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
4295
echo "$as_me: loading cache $cache_file" >&6;}
4297
[\\/]* | ?:[\\/]* ) . $cache_file;;
4298
*) . ./$cache_file;;
4302
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
4303
echo "$as_me: creating cache $cache_file" >&6;}
6141
ac_cpp='$CPP $CPPFLAGS'
6142
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6143
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6144
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6147
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6148
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6149
if test "${ac_cv_header_stdc+set}" = set; then
6150
echo $ECHO_N "(cached) $ECHO_C" >&6
6152
cat >conftest.$ac_ext <<_ACEOF
6155
cat confdefs.h >>conftest.$ac_ext
6156
cat >>conftest.$ac_ext <<_ACEOF
6157
/* end confdefs.h. */
6171
rm -f conftest.$ac_objext
6172
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6173
(eval $ac_compile) 2>conftest.er1
6175
grep -v '^ *+' conftest.er1 >conftest.err
6177
cat conftest.err >&5
6178
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179
(exit $ac_status); } &&
6180
{ ac_try='test -z "$ac_c_werror_flag"
6181
|| test ! -s conftest.err'
6182
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186
(exit $ac_status); }; } &&
6187
{ ac_try='test -s conftest.$ac_objext'
6188
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192
(exit $ac_status); }; }; then
6193
ac_cv_header_stdc=yes
6195
echo "$as_me: failed program was:" >&5
6196
sed 's/^/| /' conftest.$ac_ext >&5
6198
ac_cv_header_stdc=no
6200
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6202
if test $ac_cv_header_stdc = yes; then
6203
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6204
cat >conftest.$ac_ext <<_ACEOF
6207
cat confdefs.h >>conftest.$ac_ext
6208
cat >>conftest.$ac_ext <<_ACEOF
6209
/* end confdefs.h. */
6213
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6214
$EGREP "memchr" >/dev/null 2>&1; then
6217
ac_cv_header_stdc=no
6223
if test $ac_cv_header_stdc = yes; then
6224
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6225
cat >conftest.$ac_ext <<_ACEOF
6228
cat confdefs.h >>conftest.$ac_ext
6229
cat >>conftest.$ac_ext <<_ACEOF
6230
/* end confdefs.h. */
6234
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6235
$EGREP "free" >/dev/null 2>&1; then
6238
ac_cv_header_stdc=no
6244
if test $ac_cv_header_stdc = yes; then
6245
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6246
if test "$cross_compiling" = yes; then
6249
cat >conftest.$ac_ext <<_ACEOF
6252
cat confdefs.h >>conftest.$ac_ext
6253
cat >>conftest.$ac_ext <<_ACEOF
6254
/* end confdefs.h. */
6256
#if ((' ' & 0x0FF) == 0x020)
6257
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6258
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6260
# define ISLOWER(c) \
6261
(('a' <= (c) && (c) <= 'i') \
6262
|| ('j' <= (c) && (c) <= 'r') \
6263
|| ('s' <= (c) && (c) <= 'z'))
6264
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6267
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6272
for (i = 0; i < 256; i++)
6273
if (XOR (islower (i), ISLOWER (i))
6274
|| toupper (i) != TOUPPER (i))
6279
rm -f conftest$ac_exeext
6280
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6281
(eval $ac_link) 2>&5
6283
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6285
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289
(exit $ac_status); }; }; then
6292
echo "$as_me: program exited with status $ac_status" >&5
6293
echo "$as_me: failed program was:" >&5
6294
sed 's/^/| /' conftest.$ac_ext >&5
6297
ac_cv_header_stdc=no
6299
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6303
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6304
echo "${ECHO_T}$ac_cv_header_stdc" >&6
6305
if test $ac_cv_header_stdc = yes; then
6307
cat >>confdefs.h <<\_ACEOF
6308
#define STDC_HEADERS 1
6313
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6323
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6324
inttypes.h stdint.h unistd.h
6326
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6327
echo "$as_me:$LINENO: checking for $ac_header" >&5
6328
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6329
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6330
echo $ECHO_N "(cached) $ECHO_C" >&6
6332
cat >conftest.$ac_ext <<_ACEOF
6335
cat confdefs.h >>conftest.$ac_ext
6336
cat >>conftest.$ac_ext <<_ACEOF
6337
/* end confdefs.h. */
6338
$ac_includes_default
6340
#include <$ac_header>
6342
rm -f conftest.$ac_objext
6343
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6344
(eval $ac_compile) 2>conftest.er1
6346
grep -v '^ *+' conftest.er1 >conftest.err
6348
cat conftest.err >&5
6349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350
(exit $ac_status); } &&
6351
{ ac_try='test -z "$ac_c_werror_flag"
6352
|| test ! -s conftest.err'
6353
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357
(exit $ac_status); }; } &&
6358
{ ac_try='test -s conftest.$ac_objext'
6359
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363
(exit $ac_status); }; }; then
6364
eval "$as_ac_Header=yes"
6366
echo "$as_me: failed program was:" >&5
6367
sed 's/^/| /' conftest.$ac_ext >&5
6369
eval "$as_ac_Header=no"
6371
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6373
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6374
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6375
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6376
cat >>confdefs.h <<_ACEOF
6377
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6386
for ac_header in dlfcn.h
6388
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6389
echo "$as_me:$LINENO: checking for $ac_header" >&5
6390
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6391
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6392
echo $ECHO_N "(cached) $ECHO_C" >&6
6394
cat >conftest.$ac_ext <<_ACEOF
6397
cat confdefs.h >>conftest.$ac_ext
6398
cat >>conftest.$ac_ext <<_ACEOF
6399
/* end confdefs.h. */
6400
$ac_includes_default
6402
#include <$ac_header>
6404
rm -f conftest.$ac_objext
6405
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406
(eval $ac_compile) 2>conftest.er1
6408
grep -v '^ *+' conftest.er1 >conftest.err
6410
cat conftest.err >&5
6411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412
(exit $ac_status); } &&
6413
{ ac_try='test -z "$ac_c_werror_flag"
6414
|| test ! -s conftest.err'
6415
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419
(exit $ac_status); }; } &&
6420
{ ac_try='test -s conftest.$ac_objext'
6421
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425
(exit $ac_status); }; }; then
6426
eval "$as_ac_Header=yes"
6428
echo "$as_me: failed program was:" >&5
6429
sed 's/^/| /' conftest.$ac_ext >&5
6431
eval "$as_ac_Header=no"
6433
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6435
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6436
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6437
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6438
cat >>confdefs.h <<_ACEOF
6439
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4308
6448
# This can be used to rebuild libtool when needed
4309
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6449
LIBTOOL_DEPS="$ltmain"
4311
6451
# Always use our own libtool.
4312
6452
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4314
# Redirect the config.log output again, so that the ltconfig log is not
4315
# clobbered by the next message.
4316
exec 5>>./config.log
6478
test -z "$LN_S" && LN_S="ln -s"
6493
if test -n "${ZSH_VERSION+set}" ; then
6494
setopt NO_GLOB_SUBST
6497
echo "$as_me:$LINENO: checking for objdir" >&5
6498
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6499
if test "${lt_cv_objdir+set}" = set; then
6500
echo $ECHO_N "(cached) $ECHO_C" >&6
6502
rm -f .libs 2>/dev/null
6503
mkdir .libs 2>/dev/null
6504
if test -d .libs; then
6507
# MS-DOS does not allow filenames that begin with a dot.
6510
rmdir .libs 2>/dev/null
6512
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6513
echo "${ECHO_T}$lt_cv_objdir" >&6
6514
objdir=$lt_cv_objdir
6520
cat >>confdefs.h <<_ACEOF
6521
#define LT_OBJDIR "$lt_cv_objdir/"
6542
# AIX sometimes has problems with the GCC collect2 program. For some
6543
# reason, if we set the COLLECT_NAMES environment variable, the problems
6544
# vanish in a puff of smoke.
6545
if test "X${COLLECT_NAMES+set}" != Xset; then
6547
export COLLECT_NAMES
6552
# Sed substitution that helps us do robust quoting. It backslashifies
6553
# metacharacters that are still active within double-quoted strings.
6554
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6556
# Same as above, but do not quote variable references.
6557
double_quote_subst='s/\(["`\\]\)/\\\1/g'
6559
# Sed substitution to delay expansion of an escaped shell variable in a
6560
# double_quote_subst'ed string.
6561
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6563
# Sed substitution to delay expansion of an escaped single quote.
6564
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6566
# Sed substitution to avoid accidental globbing in evaled expressions
6567
no_glob_subst='s/\*/\\\*/g'
6571
can_build_shared=yes
6573
# All known linkers require a `.a' archive for static linking (except MSVC,
6574
# which needs '.lib').
6577
with_gnu_ld="$lt_cv_prog_gnu_ld"
6580
old_CFLAGS="$CFLAGS"
6582
# Set sane defaults for various variables
6583
test -z "$CC" && CC=cc
6584
test -z "$LTCC" && LTCC=$CC
6585
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6586
test -z "$LD" && LD=ld
6587
test -z "$ac_objext" && ac_objext=o
6589
for cc_temp in $compiler""; do
6591
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6592
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6597
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6600
# Only perform the check for file, if the check method requires it
6601
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6602
case $deplibs_check_method in
6604
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6605
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6606
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6607
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6608
echo $ECHO_N "(cached) $ECHO_C" >&6
6612
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6615
lt_save_MAGIC_CMD="$MAGIC_CMD"
6616
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6617
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6618
for ac_dir in $ac_dummy; do
6620
test -z "$ac_dir" && ac_dir=.
6621
if test -f $ac_dir/${ac_tool_prefix}file; then
6622
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6623
if test -n "$file_magic_test_file"; then
6624
case $deplibs_check_method in
6626
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6627
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6628
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6629
$EGREP "$file_magic_regex" > /dev/null; then
6634
*** Warning: the command libtool uses to detect shared libraries,
6635
*** $file_magic_cmd, produces output that libtool cannot recognize.
6636
*** The result is that libtool may fail to recognize shared libraries
6637
*** as such. This will affect the creation of libtool libraries that
6638
*** depend on shared libraries, but programs linked with such libtool
6639
*** libraries will work regardless of this problem. Nevertheless, you
6640
*** may want to report the problem to your system manager and/or to
6641
*** bug-libtool@gnu.org
6651
MAGIC_CMD="$lt_save_MAGIC_CMD"
6656
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6657
if test -n "$MAGIC_CMD"; then
6658
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6659
echo "${ECHO_T}$MAGIC_CMD" >&6
6661
echo "$as_me:$LINENO: result: no" >&5
6662
echo "${ECHO_T}no" >&6
6669
if test -z "$lt_cv_path_MAGIC_CMD"; then
6670
if test -n "$ac_tool_prefix"; then
6671
echo "$as_me:$LINENO: checking for file" >&5
6672
echo $ECHO_N "checking for file... $ECHO_C" >&6
6673
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6674
echo $ECHO_N "(cached) $ECHO_C" >&6
6678
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6681
lt_save_MAGIC_CMD="$MAGIC_CMD"
6682
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6683
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6684
for ac_dir in $ac_dummy; do
6686
test -z "$ac_dir" && ac_dir=.
6687
if test -f $ac_dir/file; then
6688
lt_cv_path_MAGIC_CMD="$ac_dir/file"
6689
if test -n "$file_magic_test_file"; then
6690
case $deplibs_check_method in
6692
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6693
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6694
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6695
$EGREP "$file_magic_regex" > /dev/null; then
6700
*** Warning: the command libtool uses to detect shared libraries,
6701
*** $file_magic_cmd, produces output that libtool cannot recognize.
6702
*** The result is that libtool may fail to recognize shared libraries
6703
*** as such. This will affect the creation of libtool libraries that
6704
*** depend on shared libraries, but programs linked with such libtool
6705
*** libraries will work regardless of this problem. Nevertheless, you
6706
*** may want to report the problem to your system manager and/or to
6707
*** bug-libtool@gnu.org
6717
MAGIC_CMD="$lt_save_MAGIC_CMD"
6722
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6723
if test -n "$MAGIC_CMD"; then
6724
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6725
echo "${ECHO_T}$MAGIC_CMD" >&6
6727
echo "$as_me:$LINENO: result: no" >&5
6728
echo "${ECHO_T}no" >&6
6741
# Use C for the default configuration in the libtool script
6745
ac_cpp='$CPP $CPPFLAGS'
6746
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6747
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6748
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6751
# Source file extension for C test sources.
6754
# Object file extension for compiled C test sources.
6758
# Code to be used in simple compile tests
6759
lt_simple_compile_test_code="int some_variable = 0;"
6761
# Code to be used in simple link tests
6762
lt_simple_link_test_code='int main(){return(0);}'
6770
# If no C compiler was specified, use CC.
6773
# If no C compiler flags were specified, use CFLAGS.
6774
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6776
# Allow CC to be a program name with arguments.
6779
# Save the default compiler, since it gets overwritten when the other
6780
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6781
compiler_DEFAULT=$CC
6783
# save warnings/boilerplate of simple test code
6784
ac_outfile=conftest.$ac_objext
6785
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6786
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6787
_lt_compiler_boilerplate=`cat conftest.err`
6790
ac_outfile=conftest.$ac_objext
6791
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6792
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6793
_lt_linker_boilerplate=`cat conftest.err`
6798
## There is no encapsulation within the following macros, do not change
6799
## the running order or otherwise move them around unless you know exactly
6800
## what you are doing...
6801
if test -n "$compiler"; then
6803
lt_prog_compiler_no_builtin_flag=
6805
if test "$GCC" = yes; then
6806
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6808
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6809
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6810
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6811
echo $ECHO_N "(cached) $ECHO_C" >&6
6813
lt_cv_prog_compiler_rtti_exceptions=no
6814
ac_outfile=conftest.$ac_objext
6815
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6816
lt_compiler_flag="-fno-rtti -fno-exceptions"
6817
# Insert the option either (1) after the last *FLAGS variable, or
6818
# (2) before a word containing "conftest.", or (3) at the end.
6819
# Note that $ac_compile itself does not contain backslashes and begins
6820
# with a dollar sign (not a hyphen), so the echo should work correctly.
6821
# The option is referenced via a variable to avoid confusing sed.
6822
lt_compile=`echo "$ac_compile" | $SED \
6823
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6824
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6825
-e 's:$: $lt_compiler_flag:'`
6826
(eval echo "\"\$as_me:6826: $lt_compile\"" >&5)
6827
(eval "$lt_compile" 2>conftest.err)
6829
cat conftest.err >&5
6830
echo "$as_me:6830: \$? = $ac_status" >&5
6831
if (exit $ac_status) && test -s "$ac_outfile"; then
6832
# The compiler can only warn and ignore the option if not recognized
6833
# So say no if there are warnings other than the usual output.
6834
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6835
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6836
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6837
lt_cv_prog_compiler_rtti_exceptions=yes
6843
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6844
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6846
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6847
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6859
lt_prog_compiler_wl=
6860
lt_prog_compiler_pic=
6861
lt_prog_compiler_static=
6863
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6864
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6866
if test "$GCC" = yes; then
6867
lt_prog_compiler_wl='-Wl,'
6868
lt_prog_compiler_static='-static'
6872
# All AIX code is PIC.
6873
if test "$host_cpu" = ia64; then
6874
# AIX 5 now supports IA64 processor
6875
lt_prog_compiler_static='-Bstatic'
6880
if test "$host_cpu" = m68k; then
6881
# FIXME: we need at least 68020 code to build shared libraries, but
6882
# adding the `-m68020' flag to GCC prevents building anything better,
6884
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6888
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6889
# PIC is the default for these OSes.
6892
mingw* | cygwin* | pw32* | os2*)
6893
# This hack is so that the source file can tell whether it is being
6894
# built for inclusion in a dll (and should export symbols for example).
6895
# Although the cygwin gcc ignores -fPIC, still need this for old-style
6896
# (--disable-auto-import) libraries
6897
lt_prog_compiler_pic='-DDLL_EXPORT'
6900
darwin* | rhapsody*)
6901
# PIC is the default on this platform
6902
# Common symbols not allowed in MH_DYLIB files
6903
lt_prog_compiler_pic='-fno-common'
6907
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6914
lt_prog_compiler_pic='-fPIC'
6920
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
6921
# Instead, we relocate shared libraries at runtime.
6925
# Just because we use GCC doesn't mean we suddenly get shared libraries
6926
# on systems that don't support them.
6927
lt_prog_compiler_can_build_shared=no
6932
# QNX uses GNU C++, but need to define -shared option too, otherwise
6934
lt_prog_compiler_pic='-fPIC -shared'
6938
if test -d /usr/nec; then
6939
lt_prog_compiler_pic=-Kconform_pic
6944
lt_prog_compiler_pic='-fPIC'
6948
# PORTME Check for flag to pass linker flags through the system compiler.
6951
lt_prog_compiler_wl='-Wl,'
6952
if test "$host_cpu" = ia64; then
6953
# AIX 5 now supports IA64 processor
6954
lt_prog_compiler_static='-Bstatic'
6956
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6960
# PIC is the default on this platform
6961
# Common symbols not allowed in MH_DYLIB files
6962
case $cc_basename in
6964
lt_prog_compiler_pic='-qnocommon'
6965
lt_prog_compiler_wl='-Wl,'
6970
mingw* | cygwin* | pw32* | os2*)
6971
# This hack is so that the source file can tell whether it is being
6972
# built for inclusion in a dll (and should export symbols for example).
6973
lt_prog_compiler_pic='-DDLL_EXPORT'
6976
hpux9* | hpux10* | hpux11*)
6977
lt_prog_compiler_wl='-Wl,'
6978
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6985
lt_prog_compiler_pic='+Z'
6988
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6989
lt_prog_compiler_static='${wl}-a ${wl}archive'
6992
irix5* | irix6* | nonstopux*)
6993
lt_prog_compiler_wl='-Wl,'
6994
# PIC (with -KPIC) is the default.
6995
lt_prog_compiler_static='-non_shared'
6998
linux* | k*bsd*-gnu)
6999
case $cc_basename in
7001
lt_prog_compiler_wl='-Wl,'
7002
lt_prog_compiler_pic='-KPIC'
7003
lt_prog_compiler_static='-static'
7005
pgcc* | pgf77* | pgf90* | pgf95*)
7006
# Portland Group compilers (*not* the Pentium gcc compiler,
7007
# which looks to be a dead project)
7008
lt_prog_compiler_wl='-Wl,'
7009
lt_prog_compiler_pic='-fpic'
7010
lt_prog_compiler_static='-Bstatic'
7013
lt_prog_compiler_wl='-Wl,'
7014
# All Alpha code is PIC.
7015
lt_prog_compiler_static='-non_shared'
7018
case `$CC -V 2>&1 | sed 5q` in
7021
lt_prog_compiler_pic='-KPIC'
7022
lt_prog_compiler_static='-Bstatic'
7023
lt_prog_compiler_wl='-Wl,'
7026
# Sun Fortran 8.3 passes all unrecognized flags to the linker
7027
lt_prog_compiler_pic='-KPIC'
7028
lt_prog_compiler_static='-Bstatic'
7029
lt_prog_compiler_wl=''
7037
lt_prog_compiler_pic='-KPIC'
7038
lt_prog_compiler_static='-Bstatic'
7042
# QNX uses GNU C++, but need to define -shared option too, otherwise
7044
lt_prog_compiler_pic='-fPIC -shared'
7047
osf3* | osf4* | osf5*)
7048
lt_prog_compiler_wl='-Wl,'
7049
# All OSF/1 code is PIC.
7050
lt_prog_compiler_static='-non_shared'
7054
lt_prog_compiler_static='-non_shared'
7058
lt_prog_compiler_pic='-KPIC'
7059
lt_prog_compiler_static='-Bstatic'
7060
case $cc_basename in
7062
lt_prog_compiler_wl='-Qoption ld ';;
7064
lt_prog_compiler_wl='-Wl,';;
7069
lt_prog_compiler_wl='-Qoption ld '
7070
lt_prog_compiler_pic='-PIC'
7071
lt_prog_compiler_static='-Bstatic'
7074
sysv4 | sysv4.2uw2* | sysv4.3*)
7075
lt_prog_compiler_wl='-Wl,'
7076
lt_prog_compiler_pic='-KPIC'
7077
lt_prog_compiler_static='-Bstatic'
7081
if test -d /usr/nec ;then
7082
lt_prog_compiler_pic='-Kconform_pic'
7083
lt_prog_compiler_static='-Bstatic'
7087
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7088
lt_prog_compiler_wl='-Wl,'
7089
lt_prog_compiler_pic='-KPIC'
7090
lt_prog_compiler_static='-Bstatic'
7094
lt_prog_compiler_wl='-Wl,'
7095
lt_prog_compiler_can_build_shared=no
7099
lt_prog_compiler_pic='-pic'
7100
lt_prog_compiler_static='-Bstatic'
7104
lt_prog_compiler_can_build_shared=no
7110
# For platforms which do not support PIC, -DPIC is meaningless:
7112
lt_prog_compiler_pic=
7115
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7118
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7119
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7127
# Check to make sure the PIC flag actually works.
7129
if test -n "$lt_prog_compiler_pic"; then
7130
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7131
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7132
if test "${lt_prog_compiler_pic_works+set}" = set; then
7133
echo $ECHO_N "(cached) $ECHO_C" >&6
7135
lt_prog_compiler_pic_works=no
7136
ac_outfile=conftest.$ac_objext
7137
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7138
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7139
# Insert the option either (1) after the last *FLAGS variable, or
7140
# (2) before a word containing "conftest.", or (3) at the end.
7141
# Note that $ac_compile itself does not contain backslashes and begins
7142
# with a dollar sign (not a hyphen), so the echo should work correctly.
7143
# The option is referenced via a variable to avoid confusing sed.
7144
lt_compile=`echo "$ac_compile" | $SED \
7145
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7146
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7147
-e 's:$: $lt_compiler_flag:'`
7148
(eval echo "\"\$as_me:7148: $lt_compile\"" >&5)
7149
(eval "$lt_compile" 2>conftest.err)
7151
cat conftest.err >&5
7152
echo "$as_me:7152: \$? = $ac_status" >&5
7153
if (exit $ac_status) && test -s "$ac_outfile"; then
7154
# The compiler can only warn and ignore the option if not recognized
7155
# So say no if there are warnings other than the usual output.
7156
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7157
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7158
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7159
lt_prog_compiler_pic_works=yes
7165
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7166
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7168
if test x"$lt_prog_compiler_pic_works" = xyes; then
7169
case $lt_prog_compiler_pic in
7171
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7174
lt_prog_compiler_pic=
7175
lt_prog_compiler_can_build_shared=no
7186
# Check to make sure the static flag actually works.
7188
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7189
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7190
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7191
if test "${lt_prog_compiler_static_works+set}" = set; then
7192
echo $ECHO_N "(cached) $ECHO_C" >&6
7194
lt_prog_compiler_static_works=no
7195
save_LDFLAGS="$LDFLAGS"
7196
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7197
echo "$lt_simple_link_test_code" > conftest.$ac_ext
7198
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7199
# The linker can only warn and ignore the option if not recognized
7200
# So say no if there are warnings
7201
if test -s conftest.err; then
7202
# Append any errors to the config.log.
7203
cat conftest.err 1>&5
7204
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7205
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7206
if diff conftest.exp conftest.er2 >/dev/null; then
7207
lt_prog_compiler_static_works=yes
7210
lt_prog_compiler_static_works=yes
7214
LDFLAGS="$save_LDFLAGS"
7217
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7218
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7220
if test x"$lt_prog_compiler_static_works" = xyes; then
7223
lt_prog_compiler_static=
7232
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7233
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7234
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7235
echo $ECHO_N "(cached) $ECHO_C" >&6
7237
lt_cv_prog_compiler_c_o=no
7238
$RM -r conftest 2>/dev/null
7242
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7244
lt_compiler_flag="-o out/conftest2.$ac_objext"
7245
# Insert the option either (1) after the last *FLAGS variable, or
7246
# (2) before a word containing "conftest.", or (3) at the end.
7247
# Note that $ac_compile itself does not contain backslashes and begins
7248
# with a dollar sign (not a hyphen), so the echo should work correctly.
7249
lt_compile=`echo "$ac_compile" | $SED \
7250
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7251
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7252
-e 's:$: $lt_compiler_flag:'`
7253
(eval echo "\"\$as_me:7253: $lt_compile\"" >&5)
7254
(eval "$lt_compile" 2>out/conftest.err)
7256
cat out/conftest.err >&5
7257
echo "$as_me:7257: \$? = $ac_status" >&5
7258
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7260
# The compiler can only warn and ignore the option if not recognized
7261
# So say no if there are warnings
7262
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7263
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7264
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7265
lt_cv_prog_compiler_c_o=yes
7270
# SGI C++ compiler will create directory out/ii_files/ for
7271
# template instantiation
7272
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7273
$RM out/* && rmdir out
7279
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7280
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7287
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7288
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7289
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7290
echo $ECHO_N "(cached) $ECHO_C" >&6
7292
lt_cv_prog_compiler_c_o=no
7293
$RM -r conftest 2>/dev/null
7297
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7299
lt_compiler_flag="-o out/conftest2.$ac_objext"
7300
# Insert the option either (1) after the last *FLAGS variable, or
7301
# (2) before a word containing "conftest.", or (3) at the end.
7302
# Note that $ac_compile itself does not contain backslashes and begins
7303
# with a dollar sign (not a hyphen), so the echo should work correctly.
7304
lt_compile=`echo "$ac_compile" | $SED \
7305
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7306
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7307
-e 's:$: $lt_compiler_flag:'`
7308
(eval echo "\"\$as_me:7308: $lt_compile\"" >&5)
7309
(eval "$lt_compile" 2>out/conftest.err)
7311
cat out/conftest.err >&5
7312
echo "$as_me:7312: \$? = $ac_status" >&5
7313
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7315
# The compiler can only warn and ignore the option if not recognized
7316
# So say no if there are warnings
7317
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7318
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7319
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7320
lt_cv_prog_compiler_c_o=yes
7325
# SGI C++ compiler will create directory out/ii_files/ for
7326
# template instantiation
7327
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7328
$RM out/* && rmdir out
7334
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7335
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7340
hard_links="nottested"
7341
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7342
# do not overwrite the value of need_locks provided by the user
7343
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7344
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7347
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7349
ln conftest.a conftest.b 2>&5 || hard_links=no
7350
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7351
echo "$as_me:$LINENO: result: $hard_links" >&5
7352
echo "${ECHO_T}$hard_links" >&6
7353
if test "$hard_links" = no; then
7354
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7355
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7367
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7368
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7371
allow_undefined_flag=
7372
always_export_symbols=no
7374
archive_expsym_cmds=
7375
compiler_needs_object=no
7376
enable_shared_with_static_runtimes=no
7377
export_dynamic_flag_spec=
7378
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7379
hardcode_automatic=no
7381
hardcode_direct_absolute=no
7382
hardcode_libdir_flag_spec=
7383
hardcode_libdir_flag_spec_ld=
7384
hardcode_libdir_separator=
7386
hardcode_shlibpath_var=unsupported
7388
link_all_deplibs=unknown
7391
old_archive_from_new_cmds=
7392
old_archive_from_expsyms_cmds=
7393
thread_safe_flag_spec=
7394
whole_archive_flag_spec=
7395
# include_expsyms should be a list of space-separated symbols to be *always*
7396
# included in the symbol list
7398
# exclude_expsyms can be an extended regexp of symbols to exclude
7399
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7400
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7401
# as well as any symbol that contains `d'.
7402
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7403
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7404
# platforms (ab)use it in PIC code, but their linkers get confused if
7405
# the symbol is explicitly referenced. Since portable code cannot
7406
# rely on this symbol name, it's probably fine to never include it in
7407
# preloaded symbol tables.
7408
extract_expsyms_cmds=
7411
cygwin* | mingw* | pw32*)
7412
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7413
# When not using gcc, we currently assume that we are using
7414
# Microsoft Visual C++.
7415
if test "$GCC" != yes; then
7420
# we just hope/assume this is gcc and not c89 (= MSVC++)
7429
if test "$with_gnu_ld" = yes; then
7430
# If archive_cmds runs LD, not CC, wlarc should be empty
7433
# Set some defaults for GNU ld with shared library support. These
7434
# are reset later if shared libraries are not supported. Putting them
7435
# here allows them to be overridden if necessary.
7436
runpath_var=LD_RUN_PATH
7437
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7438
export_dynamic_flag_spec='${wl}--export-dynamic'
7439
# ancient GNU ld didn't support --whole-archive et. al.
7440
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7441
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7443
whole_archive_flag_spec=
7445
supports_anon_versioning=no
7446
case `$LD -v 2>&1` in
7447
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7448
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7449
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7450
*\ 2.11.*) ;; # other 2.11 versions
7451
*) supports_anon_versioning=yes ;;
7454
# See if GNU ld supports shared libraries.
7456
aix3* | aix4* | aix5*)
7457
# On AIX/PPC, the GNU linker is very broken
7458
if test "$host_cpu" != ia64; then
7462
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7463
*** to be unable to reliably create shared libraries on AIX.
7464
*** Therefore, libtool is disabling shared libraries support. If you
7465
*** really care for shared libraries, you may want to modify your PATH
7466
*** so that a non-GNU linker is found, and then restart.
7473
if test "$host_cpu" = m68k; then
7474
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)'
7475
hardcode_libdir_flag_spec='-L$libdir'
7476
hardcode_minus_L=yes
7479
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7480
# that the semantics of dynamic libraries on AmigaOS, at least up
7481
# to version 4, is to share data among multiple programs linked
7482
# with the same dynamic library. Since this doesn't match the
7483
# behavior of shared libraries on other platforms, we can't use
7489
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7490
allow_undefined_flag=unsupported
7491
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7492
# support --undefined. This deserves some investigation. FIXME
7493
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7499
cygwin* | mingw* | pw32*)
7500
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7501
# as there is no search path for DLLs.
7502
hardcode_libdir_flag_spec='-L$libdir'
7503
allow_undefined_flag=unsupported
7504
always_export_symbols=no
7505
enable_shared_with_static_runtimes=yes
7506
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7508
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7509
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7510
# If the export-symbols file already is a .def file (1st line
7511
# is EXPORTS), use it as is; otherwise, prepend...
7512
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7513
cp $export_symbols $output_objdir/$soname.def;
7515
echo EXPORTS > $output_objdir/$soname.def;
7516
cat $export_symbols >> $output_objdir/$soname.def;
7518
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7526
hardcode_shlibpath_var=no
7527
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7528
export_dynamic_flag_spec='${wl}-E'
7529
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7530
# Instead, shared libraries are loaded at an image base (0x10000000 by
7531
# default) and relocated if they conflict, which is a slow very memory
7532
# consuming and fragmenting process. To avoid this, we pick a random,
7533
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7534
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
7535
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7536
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'
7539
gnu* | linux* | tpf* | k*bsd*-gnu)
7541
if test "$host_os" = linux-dietlibc; then
7542
case $cc_basename in
7543
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7546
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7547
&& test "$tmp_diet" = no
7550
case $cc_basename,$host_cpu in
7551
pgcc*) # Portland Group C compiler
7552
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'
7553
tmp_addflag=' $pic_flag'
7555
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7556
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'
7557
tmp_addflag=' $pic_flag -Mnomain' ;;
7558
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7559
tmp_addflag=' -i_dynamic' ;;
7560
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7561
tmp_addflag=' -i_dynamic -nofor_main' ;;
7562
ifc* | ifort*) # Intel Fortran compiler
7563
tmp_addflag=' -nofor_main' ;;
7565
case `$CC -V 2>&1 | sed 5q` in
7566
*Sun\ C*) # Sun C 5.9
7567
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'
7568
compiler_needs_object=yes
7569
tmp_sharedflag='-G' ;;
7570
*Sun\ F*) # Sun Fortran 8.3
7571
tmp_sharedflag='-G' ;;
7573
tmp_sharedflag='-shared' ;;
7575
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7577
if test "x$supports_anon_versioning" = xyes; then
7578
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7579
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7580
echo "local: *; };" >> $output_objdir/$libname.ver~
7581
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7589
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7590
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7593
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7594
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7599
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
7603
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7604
*** create shared libraries on Solaris systems. Therefore, libtool
7605
*** is disabling shared libraries support. We urge you to upgrade GNU
7606
*** binutils to release 2.9.1 or newer. Another option is to modify
7607
*** your PATH or compiler configuration so that the native linker is
7608
*** used, and then restart.
7611
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7612
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7613
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7619
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7620
case `$LD -v 2>&1` in
7621
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7625
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7626
*** reliably create shared libraries on SCO systems. Therefore, libtool
7627
*** is disabling shared libraries support. We urge you to upgrade GNU
7628
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7629
*** your PATH or compiler configuration so that the native linker is
7630
*** used, and then restart.
7635
# For security reasons, it is highly recommended that you always
7636
# use absolute paths for naming shared libraries, and exclude the
7637
# DT_RUNPATH tag from executables and libraries. But doing so
7638
# requires that you compile everything twice, which is a pain.
7639
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7640
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7641
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7642
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7651
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7654
hardcode_shlibpath_var=no
7658
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7659
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7660
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7667
if test "$ld_shlibs" = no; then
7669
hardcode_libdir_flag_spec=
7670
export_dynamic_flag_spec=
7671
whole_archive_flag_spec=
7674
# PORTME fill in a description of your system's linker (not GNU ld)
7677
allow_undefined_flag=unsupported
7678
always_export_symbols=yes
7679
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'
7680
# Note: this linker hardcodes the directories in LIBPATH if there
7681
# are no directories specified by -L.
7682
hardcode_minus_L=yes
7683
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7684
# Neither direct hardcoding nor static linking is supported with a
7686
hardcode_direct=unsupported
7691
if test "$host_cpu" = ia64; then
7692
# On IA64, the linker does run time linking by default, so we don't
7693
# have to do anything special.
7694
aix_use_runtimelinking=no
7695
exp_sym_flag='-Bexport'
7698
# If we're using GNU nm, then we don't want the "-C" option.
7699
# -C means demangle to AIX nm, but means don't demangle with GNU nm
7700
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7701
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'
7703
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'
7705
aix_use_runtimelinking=no
7707
# Test if we are trying to use run time linking or normal
7708
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7709
# need to do runtime linking.
7710
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7711
for ld_flag in $LDFLAGS; do
7712
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7713
aix_use_runtimelinking=yes
7720
exp_sym_flag='-bexport'
7721
no_entry_flag='-bnoentry'
7724
# When large executables or shared objects are built, AIX ld can
7725
# have problems creating the table of contents. If linking a library
7726
# or program results in "error TOC overflow" add -mminimal-toc to
7727
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7728
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7732
hardcode_direct_absolute=yes
7733
hardcode_libdir_separator=':'
7734
link_all_deplibs=yes
7735
file_list_spec='${wl}-f,'
7737
if test "$GCC" = yes; then
7738
case $host_os in aix4.[012]|aix4.[012].*)
7739
# We only want to do this on AIX 4.2 and lower, the check
7740
# below for broken collect2 doesn't work under 4.3+
7741
collect2name=`${CC} -print-prog-name=collect2`
7742
if test -f "$collect2name" &&
7743
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
7745
# We have reworked collect2
7748
# We have old collect2
7749
hardcode_direct=unsupported
7750
# It fails to find uninstalled libraries when the uninstalled
7751
# path is not listed in the libpath. Setting hardcode_minus_L
7752
# to unsupported forces relinking
7753
hardcode_minus_L=yes
7754
hardcode_libdir_flag_spec='-L$libdir'
7755
hardcode_libdir_separator=
7759
shared_flag='-shared'
7760
if test "$aix_use_runtimelinking" = yes; then
7761
shared_flag="$shared_flag "'${wl}-G'
7765
if test "$host_cpu" = ia64; then
7766
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7767
# chokes on -Wl,-G. The following line is correct:
7770
if test "$aix_use_runtimelinking" = yes; then
7771
shared_flag='${wl}-G'
7773
shared_flag='${wl}-bM:SRE'
7778
# It seems that -bexpall does not export symbols beginning with
7779
# underscore (_), so it is better to generate a list of symbols to export.
7780
always_export_symbols=yes
7781
if test "$aix_use_runtimelinking" = yes; then
7782
# Warning - without using the other runtime loading flags (-brtl),
7783
# -berok will link without error, but may produce a broken library.
7784
allow_undefined_flag='-berok'
7785
# Determine the default libpath from the value encoded in an
7787
cat >conftest.$ac_ext <<_ACEOF
7790
cat confdefs.h >>conftest.$ac_ext
7791
cat >>conftest.$ac_ext <<_ACEOF
7792
/* end confdefs.h. */
7802
rm -f conftest.$ac_objext conftest$ac_exeext
7803
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7804
(eval $ac_link) 2>conftest.er1
7806
grep -v '^ *+' conftest.er1 >conftest.err
7808
cat conftest.err >&5
7809
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810
(exit $ac_status); } &&
7811
{ ac_try='test -z "$ac_c_werror_flag"
7812
|| test ! -s conftest.err'
7813
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7816
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817
(exit $ac_status); }; } &&
7818
{ ac_try='test -s conftest$ac_exeext'
7819
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823
(exit $ac_status); }; }; then
7825
lt_aix_libpath_sed='
7826
/Import File Strings/,/^$/ {
7832
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7833
# Check for a 64-bit object if we didn't find anything.
7834
if test -z "$aix_libpath"; then
7835
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7838
echo "$as_me: failed program was:" >&5
7839
sed 's/^/| /' conftest.$ac_ext >&5
7842
rm -f conftest.err conftest.$ac_objext \
7843
conftest$ac_exeext conftest.$ac_ext
7844
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7846
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7847
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"
7849
if test "$host_cpu" = ia64; then
7850
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7851
allow_undefined_flag="-z nodefs"
7852
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"
7854
# Determine the default libpath from the value encoded in an
7856
cat >conftest.$ac_ext <<_ACEOF
7859
cat confdefs.h >>conftest.$ac_ext
7860
cat >>conftest.$ac_ext <<_ACEOF
7861
/* end confdefs.h. */
7871
rm -f conftest.$ac_objext conftest$ac_exeext
7872
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7873
(eval $ac_link) 2>conftest.er1
7875
grep -v '^ *+' conftest.er1 >conftest.err
7877
cat conftest.err >&5
7878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879
(exit $ac_status); } &&
7880
{ ac_try='test -z "$ac_c_werror_flag"
7881
|| test ! -s conftest.err'
7882
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886
(exit $ac_status); }; } &&
7887
{ ac_try='test -s conftest$ac_exeext'
7888
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892
(exit $ac_status); }; }; then
7894
lt_aix_libpath_sed='
7895
/Import File Strings/,/^$/ {
7901
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7902
# Check for a 64-bit object if we didn't find anything.
7903
if test -z "$aix_libpath"; then
7904
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7907
echo "$as_me: failed program was:" >&5
7908
sed 's/^/| /' conftest.$ac_ext >&5
7911
rm -f conftest.err conftest.$ac_objext \
7912
conftest$ac_exeext conftest.$ac_ext
7913
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7915
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7916
# Warning - without using the other run time loading flags,
7917
# -berok will link without error, but may produce a broken library.
7918
no_undefined_flag=' ${wl}-bernotok'
7919
allow_undefined_flag=' ${wl}-berok'
7920
# Exported symbols can be pulled into shared objects from archives
7921
whole_archive_flag_spec='$convenience'
7922
archive_cmds_need_lc=yes
7923
# This is similar to how AIX traditionally builds its shared libraries.
7924
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'
7930
if test "$host_cpu" = m68k; then
7931
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)'
7932
hardcode_libdir_flag_spec='-L$libdir'
7933
hardcode_minus_L=yes
7935
# see comment about different semantics on the GNU ld section
7940
export_dynamic_flag_spec=-rdynamic
7943
cygwin* | mingw* | pw32*)
7944
# When not using gcc, we currently assume that we are using
7945
# Microsoft Visual C++.
7946
# hardcode_libdir_flag_spec is actually meaningless, as there is
7947
# no search path for DLLs.
7948
hardcode_libdir_flag_spec=' '
7949
allow_undefined_flag=unsupported
7950
# Tell ltmain to make .lib files, not .a files.
7952
# Tell ltmain to make .dll files, not .so files.
7954
# FIXME: Setting linknames here is a bad hack.
7955
archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7956
# The linker will automatically build a .lib file if we build a DLL.
7957
old_archive_from_new_cmds='true'
7958
# FIXME: Should let the user specify the lib program.
7959
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7960
fix_srcfile_path='`cygpath -w "$srcfile"`'
7961
enable_shared_with_static_runtimes=yes
7964
darwin* | rhapsody*)
7966
rhapsody* | darwin1.[012])
7967
allow_undefined_flag='${wl}-undefined ${wl}suppress'
7970
case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7972
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7975
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7980
archive_cmds_need_lc=no
7982
hardcode_automatic=yes
7983
hardcode_shlibpath_var=unsupported
7984
whole_archive_flag_spec=''
7985
link_all_deplibs=yes
7986
if test "$GCC" = yes ; then
7987
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7988
echo $ECHO_N "(cached) $ECHO_C" >&6
7990
lt_cv_apple_cc_single_mod=no
7991
if test -z "${LT_MULTI_MODULE}"; then
7992
# By default we will add the -single_module flag. You can override
7993
# by either setting the environment variable LT_MULTI_MODULE
7994
# non-empty at configure time, or by adding -multi-module to the
7996
echo "int foo(void){return 1;}" > conftest.c
7997
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7998
-dynamiclib ${wl}-single_module conftest.c
7999
if test -f libconftest.dylib; then
8000
lt_cv_apple_cc_single_mod=yes
8001
rm libconftest.dylib
8007
output_verbose_link_cmd=echo
8008
if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
8009
archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8010
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}'
8012
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8013
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}'
8015
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8016
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}'
8018
case $cc_basename in
8020
output_verbose_link_cmd=echo
8021
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
8022
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8023
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8024
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}'
8025
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}'
8035
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8036
hardcode_libdir_flag_spec='-L$libdir'
8037
hardcode_shlibpath_var=no
8044
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8045
# support. Future versions do this automatically, but an explicit c++rt0.o
8046
# does not break anything, and helps significantly (at the cost of a little
8049
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8050
hardcode_libdir_flag_spec='-R$libdir'
8052
hardcode_shlibpath_var=no
8055
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8057
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8059
hardcode_minus_L=yes
8060
hardcode_shlibpath_var=no
8063
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8064
freebsd* | dragonfly*)
8065
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8066
hardcode_libdir_flag_spec='-R$libdir'
8068
hardcode_shlibpath_var=no
8072
if test "$GCC" = yes; then
8073
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'
8075
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'
8077
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8078
hardcode_libdir_separator=:
8081
# hardcode_minus_L: Not really in the search PATH,
8082
# but as the default location of the library.
8083
hardcode_minus_L=yes
8084
export_dynamic_flag_spec='${wl}-E'
8088
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8089
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8091
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8093
if test "$with_gnu_ld" = no; then
8094
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8095
hardcode_libdir_flag_spec_ld='+b $libdir'
8096
hardcode_libdir_separator=:
8098
hardcode_direct_absolute=yes
8099
export_dynamic_flag_spec='${wl}-E'
8100
# hardcode_minus_L: Not really in the search PATH,
8101
# but as the default location of the library.
8102
hardcode_minus_L=yes
8107
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8110
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8113
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8116
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8122
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8125
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8128
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8132
if test "$with_gnu_ld" = no; then
8133
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8134
hardcode_libdir_separator=:
8139
hardcode_shlibpath_var=no
8143
hardcode_direct_absolute=yes
8144
export_dynamic_flag_spec='${wl}-E'
8146
# hardcode_minus_L: Not really in the search PATH,
8147
# but as the default location of the library.
8148
hardcode_minus_L=yes
8154
irix5* | irix6* | nonstopux*)
8155
if test "$GCC" = yes; then
8156
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'
8157
# Try to use the -exported_symbol ld option, if it does not
8158
# work, assume that -exports_file does not work either and
8159
# implicitly export all symbols.
8160
save_LDFLAGS="$LDFLAGS"
8161
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8162
cat >conftest.$ac_ext <<_ACEOF
8165
rm -f conftest.$ac_objext conftest$ac_exeext
8166
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8167
(eval $ac_link) 2>conftest.er1
8169
grep -v '^ *+' conftest.er1 >conftest.err
8171
cat conftest.err >&5
8172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173
(exit $ac_status); } &&
8174
{ ac_try='test -z "$ac_c_werror_flag"
8175
|| test ! -s conftest.err'
8176
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180
(exit $ac_status); }; } &&
8181
{ ac_try='test -s conftest$ac_exeext'
8182
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186
(exit $ac_status); }; }; then
8187
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'
8190
echo "$as_me: failed program was:" >&5
8191
sed 's/^/| /' conftest.$ac_ext >&5
8194
rm -f conftest.err conftest.$ac_objext \
8195
conftest$ac_exeext conftest.$ac_ext
8196
LDFLAGS="$save_LDFLAGS"
8198
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'
8199
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'
8201
archive_cmds_need_lc='no'
8202
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8203
hardcode_libdir_separator=:
8205
link_all_deplibs=yes
8209
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8210
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8212
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8214
hardcode_libdir_flag_spec='-R$libdir'
8216
hardcode_shlibpath_var=no
8220
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8222
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8223
hardcode_libdir_separator=:
8224
hardcode_shlibpath_var=no
8232
hardcode_shlibpath_var=no
8233
hardcode_direct_absolute=yes
8234
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8235
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8236
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8237
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8238
export_dynamic_flag_spec='${wl}-E'
8241
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8242
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8243
hardcode_libdir_flag_spec='-R$libdir'
8246
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8247
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8254
hardcode_libdir_flag_spec='-L$libdir'
8255
hardcode_minus_L=yes
8256
allow_undefined_flag=unsupported
8257
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'
8258
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8262
if test "$GCC" = yes; then
8263
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8264
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'
8266
allow_undefined_flag=' -expect_unresolved \*'
8267
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'
8269
archive_cmds_need_lc='no'
8270
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8271
hardcode_libdir_separator=:
8274
osf4* | osf5*) # as osf3* with the addition of -msym flag
8275
if test "$GCC" = yes; then
8276
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8277
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'
8278
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8280
allow_undefined_flag=' -expect_unresolved \*'
8281
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'
8282
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~
8283
$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'
8285
# Both c and cxx compiler support -rpath directly
8286
hardcode_libdir_flag_spec='-rpath $libdir'
8288
archive_cmds_need_lc='no'
8289
hardcode_libdir_separator=:
8293
no_undefined_flag=' -z defs'
8294
if test "$GCC" = yes; then
8296
archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8297
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8298
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8300
case `$CC -V 2>&1` in
8303
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8304
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8305
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8309
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8310
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8311
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8315
hardcode_libdir_flag_spec='-R$libdir'
8316
hardcode_shlibpath_var=no
8318
solaris2.[0-5] | solaris2.[0-5].*) ;;
8320
# The compiler driver will combine and reorder linker options,
8321
# but understands `-z linker_flag'. GCC discards it without `$wl',
8322
# but is careful enough not to reorder.
8323
# Supported since Solaris 2.6 (maybe 2.5.1?)
8324
if test "$GCC" = yes; then
8325
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8327
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8331
link_all_deplibs=yes
8335
if test "x$host_vendor" = xsequent; then
8336
# Use $CC to link under sequent, because it throws in some extra .o
8337
# files that make .init and .fini sections work.
8338
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8340
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8342
hardcode_libdir_flag_spec='-L$libdir'
8344
hardcode_minus_L=yes
8345
hardcode_shlibpath_var=no
8349
case $host_vendor in
8351
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8352
hardcode_direct=yes # is this really true???
8355
## LD is ld it makes a PLAMLIB
8356
## CC just makes a GrossModule.
8357
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8358
reload_cmds='$CC -r -o $output$reload_objs'
8362
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8363
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8366
runpath_var='LD_RUN_PATH'
8367
hardcode_shlibpath_var=no
8371
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8372
hardcode_shlibpath_var=no
8373
export_dynamic_flag_spec='-Bexport'
8377
if test -d /usr/nec; then
8378
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8379
hardcode_shlibpath_var=no
8380
runpath_var=LD_RUN_PATH
8381
hardcode_runpath_var=yes
8386
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8387
no_undefined_flag='${wl}-z,text'
8388
archive_cmds_need_lc=no
8389
hardcode_shlibpath_var=no
8390
runpath_var='LD_RUN_PATH'
8392
if test "$GCC" = yes; then
8393
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8394
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8396
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8397
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8401
sysv5* | sco3.2v5* | sco5v6*)
8402
# Note: We can NOT use -z defs as we might desire, because we do not
8403
# link with -lc, and that would cause any symbols used from libc to
8404
# always be unresolved, which means just about no library would
8405
# ever link correctly. If we're not using GNU ld we use -z text
8406
# though, which does catch some bad symbols but isn't as heavy-handed
8408
no_undefined_flag='${wl}-z,text'
8409
allow_undefined_flag='${wl}-z,nodefs'
8410
archive_cmds_need_lc=no
8411
hardcode_shlibpath_var=no
8412
hardcode_libdir_flag_spec='${wl}-R,$libdir'
8413
hardcode_libdir_separator=':'
8414
link_all_deplibs=yes
8415
export_dynamic_flag_spec='${wl}-Bexport'
8416
runpath_var='LD_RUN_PATH'
8418
if test "$GCC" = yes; then
8419
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8420
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8422
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8423
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8428
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8429
hardcode_libdir_flag_spec='-L$libdir'
8430
hardcode_shlibpath_var=no
8438
if test x$host_vendor = xsni; then
8440
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8441
export_dynamic_flag_spec='${wl}-Blargedynsym'
8447
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8448
echo "${ECHO_T}$ld_shlibs" >&6
8449
test "$ld_shlibs" = no && can_build_shared=no
8451
with_gnu_ld=$with_gnu_ld
8468
# Do we need to explicitly link libc?
8470
case "x$archive_cmds_need_lc" in
8472
# Assume -lc should be added
8473
archive_cmds_need_lc=yes
8475
if test "$enable_shared" = yes && test "$GCC" = yes; then
8476
case $archive_cmds in
8478
# FIXME: we may have to deal with multi-command sequences.
8481
# Test whether the compiler implicitly links with -lc since on some
8482
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8483
# to ld, don't add -lc before -lgcc.
8484
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8485
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8487
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8489
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8490
(eval $ac_compile) 2>&5
8492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493
(exit $ac_status); } 2>conftest.err; then
8496
libobjs=conftest.$ac_objext
8498
wl=$lt_prog_compiler_wl
8499
pic_flag=$lt_prog_compiler_pic
8505
lt_save_allow_undefined_flag=$allow_undefined_flag
8506
allow_undefined_flag=
8507
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8508
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8510
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511
(exit $ac_status); }
8513
archive_cmds_need_lc=no
8515
archive_cmds_need_lc=yes
8517
allow_undefined_flag=$lt_save_allow_undefined_flag
8519
cat conftest.err 1>&5
8522
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8523
echo "${ECHO_T}$archive_cmds_need_lc" >&6
8686
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8687
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8689
if test "$withGCC" = yes; then
8691
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8692
*) lt_awk_arg="/^libraries:/" ;;
8694
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8695
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8696
# if the path contains ";" then we assume it to be the separator
8697
# otherwise default to the standard path separator (i.e. ":") - it is
8698
# assumed that no part of a normal pathname contains ";" but that should
8699
# okay in the real world where ";" in dirpaths is itself problematic.
8700
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8702
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8704
# Ok, now we have the path, separated by spaces, we can step through it
8705
# and add multilib dir if necessary.
8706
lt_tmp_lt_search_path_spec=
8707
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8708
for lt_sys_path in $lt_search_path_spec; do
8709
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8710
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8712
test -d "$lt_sys_path" && \
8713
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8716
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8717
BEGIN {RS=" "; FS="/|\n";} {
8720
for (lt_i = NF; lt_i > 0; lt_i--) {
8721
if ($lt_i != "" && $lt_i != ".") {
8722
if ($lt_i == "..") {
8725
if (lt_count == 0) {
8726
lt_foo="/" $lt_i lt_foo;
8733
if (lt_foo != "") { lt_freq[lt_foo]++; }
8734
if (lt_freq[lt_foo] == 1) { print lt_foo; }
8736
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8738
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8741
libname_spec='lib$name'
8749
shlibpath_overrides_runpath=unknown
8751
dynamic_linker="$host_os ld.so"
8752
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8753
need_lib_prefix=unknown
8754
hardcode_into_libs=no
8756
# when you set need_version to no, make sure it does not cause -set_version
8757
# flags to be left without arguments
8758
need_version=unknown
8763
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8764
shlibpath_var=LIBPATH
8766
# AIX 3 has no versioning support, so we append a major version to the name.
8767
soname_spec='${libname}${release}${shared_ext}$major'
8774
hardcode_into_libs=yes
8775
if test "$host_cpu" = ia64; then
8776
# AIX 5 supports IA64
8777
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8778
shlibpath_var=LD_LIBRARY_PATH
8780
# With GCC up to 2.95.x, collect2 would create an import file
8781
# for dependence libraries. The import file would start with
8782
# the line `#! .'. This would cause the generated library to
8783
# depend on `.', always an invalid library. This was fixed in
8784
# development snapshots of GCC prior to 3.0.
8786
aix4 | aix4.[01] | aix4.[01].*)
8787
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8789
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
8796
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8797
# soname into executable. Probably we can add versioning support to
8798
# collect2, so additional links can be useful in future.
8799
if test "$aix_use_runtimelinking" = yes; then
8800
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
8801
# instead of lib<name>.a to let people know that these are not
8802
# typical AIX shared libraries.
8803
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8805
# We preserve .a as extension for shared libraries through AIX4.2
8806
# and later when we are not doing run time linking.
8807
library_names_spec='${libname}${release}.a $libname.a'
8808
soname_spec='${libname}${release}${shared_ext}$major'
8810
shlibpath_var=LIBPATH
8815
if test "$host_cpu" = m68k; then
8816
library_names_spec='$libname.ixlibrary $libname.a'
8817
# Create ${libname}_ixlibrary.a entries in /sys/libs.
8818
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'
8825
library_names_spec='${libname}${shared_ext}'
8826
dynamic_linker="$host_os ld.so"
8827
shlibpath_var=LIBRARY_PATH
8833
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8834
soname_spec='${libname}${release}${shared_ext}$major'
8835
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8836
shlibpath_var=LD_LIBRARY_PATH
8837
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8838
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8839
# the default ld.so.conf also contains /usr/contrib/lib and
8840
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8841
# libtool to hard-code these into programs
8844
cygwin* | mingw* | pw32*)
8845
version_type=windows
8850
case $withGCC,$host_os in
8851
yes,cygwin* | yes,mingw* | yes,pw32*)
8852
library_names_spec='$libname.dll.a'
8853
# DLL is installed to $(libdir)/../bin by postinstall_cmds
8854
postinstall_cmds='base_file=`basename \${file}`~
8855
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8856
dldir=$destdir/`dirname \$dlpath`~
8857
test -d \$dldir || mkdir -p \$dldir~
8858
$install_prog $dir/$dlname \$dldir/$dlname~
8859
chmod a+x \$dldir/$dlname~
8860
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8861
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8863
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8864
dlpath=$dir/\$dldll~
8866
shlibpath_overrides_runpath=yes
8870
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
8871
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8872
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8875
# MinGW DLLs use traditional 'lib' prefix
8876
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8877
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8878
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8879
# It is most probably a Windows format PATH printed by
8880
# mingw gcc, but we are running on Cygwin. Gcc prints its search
8881
# path with ; separators, and with drive letters. We can handle the
8882
# drive letters (cygwin fileutils understands them), so leave them,
8883
# especially as we might pass files found there to a mingw objdump,
8884
# which wouldn't understand a cygwinified path. Ahh.
8885
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8887
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8891
# pw32 DLLs use 'pw' prefix rather than 'lib'
8892
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8898
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8901
dynamic_linker='Win32 ld.exe'
8902
# FIXME: first we should search . and the directory the executable is in
8906
darwin* | rhapsody*)
8907
dynamic_linker="$host_os dyld"
8911
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8912
soname_spec='${libname}${release}${major}$shared_ext'
8913
shlibpath_overrides_runpath=yes
8914
shlibpath_var=DYLD_LIBRARY_PATH
8915
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8917
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8918
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8925
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8926
soname_spec='${libname}${release}${shared_ext}$major'
8927
shlibpath_var=LD_LIBRARY_PATH
8934
freebsd* | dragonfly*)
8935
# DragonFly does not have aout. When/if they implement a new
8936
# versioning mechanism, adjust this.
8937
if test -x /usr/bin/objformat; then
8938
objformat=`/usr/bin/objformat`
8941
freebsd[123]*) objformat=aout ;;
8945
version_type=freebsd-$objformat
8946
case $version_type in
8948
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8953
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8957
shlibpath_var=LD_LIBRARY_PATH
8960
shlibpath_overrides_runpath=yes
8962
freebsd3.[01]* | freebsdelf3.[01]*)
8963
shlibpath_overrides_runpath=yes
8964
hardcode_into_libs=yes
8966
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8967
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8968
shlibpath_overrides_runpath=no
8969
hardcode_into_libs=yes
8971
*) # from 4.6 on, and DragonFly
8972
shlibpath_overrides_runpath=yes
8973
hardcode_into_libs=yes
8982
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8983
soname_spec='${libname}${release}${shared_ext}$major'
8984
shlibpath_var=LD_LIBRARY_PATH
8985
hardcode_into_libs=yes
8988
hpux9* | hpux10* | hpux11*)
8989
# Give a soname corresponding to the major version so that dld.sl refuses to
8990
# link against other versions.
8997
hardcode_into_libs=yes
8998
dynamic_linker="$host_os dld.so"
8999
shlibpath_var=LD_LIBRARY_PATH
9000
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9001
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9002
soname_spec='${libname}${release}${shared_ext}$major'
9003
if test "X$HPUX_IA64_MODE" = X32; then
9004
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9006
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9008
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9012
hardcode_into_libs=yes
9013
dynamic_linker="$host_os dld.sl"
9014
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9015
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9016
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9017
soname_spec='${libname}${release}${shared_ext}$major'
9018
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9019
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9023
dynamic_linker="$host_os dld.sl"
9024
shlibpath_var=SHLIB_PATH
9025
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9026
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9027
soname_spec='${libname}${release}${shared_ext}$major'
9030
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9031
postinstall_cmds='chmod 555 $lib'
9038
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9039
soname_spec='${libname}${release}${shared_ext}$major'
9040
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9041
shlibpath_var=LD_LIBRARY_PATH
9042
shlibpath_overrides_runpath=no
9043
hardcode_into_libs=yes
9046
irix5* | irix6* | nonstopux*)
9048
nonstopux*) version_type=nonstopux ;;
9050
if test "$lt_cv_prog_gnu_ld" = yes; then
9058
soname_spec='${libname}${release}${shared_ext}$major'
9059
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9061
irix5* | nonstopux*)
9065
case $LD in # libtool.m4 will add one of these switches to LD
9066
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9067
libsuff= shlibsuff= libmagic=32-bit;;
9068
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9069
libsuff=32 shlibsuff=N32 libmagic=N32;;
9070
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9071
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9072
*) libsuff= shlibsuff= libmagic=never-match;;
9076
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9077
shlibpath_overrides_runpath=no
9078
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9079
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9080
hardcode_into_libs=yes
9083
# No shared lib support for Linux oldld, aout, or coff.
9084
linux*oldld* | linux*aout* | linux*coff*)
9088
# This must be Linux ELF.
9089
linux* | k*bsd*-gnu)
9093
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9094
soname_spec='${libname}${release}${shared_ext}$major'
9095
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9096
shlibpath_var=LD_LIBRARY_PATH
9097
shlibpath_overrides_runpath=no
9098
# Some binutils ld are patched to set DT_RUNPATH
9099
save_LDFLAGS=$LDFLAGS
9101
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9102
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9103
cat >conftest.$ac_ext <<_ACEOF
9106
cat confdefs.h >>conftest.$ac_ext
9107
cat >>conftest.$ac_ext <<_ACEOF
9108
/* end confdefs.h. */
9118
rm -f conftest.$ac_objext conftest$ac_exeext
9119
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9120
(eval $ac_link) 2>conftest.er1
9122
grep -v '^ *+' conftest.er1 >conftest.err
9124
cat conftest.err >&5
9125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126
(exit $ac_status); } &&
9127
{ ac_try='test -z "$ac_c_werror_flag"
9128
|| test ! -s conftest.err'
9129
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9132
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133
(exit $ac_status); }; } &&
9134
{ ac_try='test -s conftest$ac_exeext'
9135
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139
(exit $ac_status); }; }; then
9140
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
9141
shlibpath_overrides_runpath=yes
9145
echo "$as_me: failed program was:" >&5
9146
sed 's/^/| /' conftest.$ac_ext >&5
9149
rm -f conftest.err conftest.$ac_objext \
9150
conftest$ac_exeext conftest.$ac_ext
9151
LDFLAGS=$save_LDFLAGS
9154
# This implies no fast_install, which is unacceptable.
9155
# Some rework will be needed to allow for fast_install
9156
# before this can be enabled.
9157
hardcode_into_libs=yes
9159
# Append ld.so.conf contents to the search path
9160
if test -f /etc/ld.so.conf; then
9161
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' ' '`
9162
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9165
# We used to test for /lib/ld.so.1 and disable shared libraries on
9166
# powerpc, because MkLinux only supported shared libraries with the
9167
# GNU dynamic linker. Since this was broken with cross compilers,
9168
# most powerpc-linux boxes support dynamic linking these days and
9169
# people can always --disable-shared, the test was removed, and we
9170
# assume the GNU/Linux dynamic linker is in use.
9171
dynamic_linker='GNU/Linux ld.so'
9178
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9179
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9180
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9181
dynamic_linker='NetBSD (a.out) ld.so'
9183
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9184
soname_spec='${libname}${release}${shared_ext}$major'
9185
dynamic_linker='NetBSD ld.elf_so'
9187
shlibpath_var=LD_LIBRARY_PATH
9188
shlibpath_overrides_runpath=yes
9189
hardcode_into_libs=yes
9194
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9195
shlibpath_var=LD_LIBRARY_PATH
9196
shlibpath_overrides_runpath=yes
9203
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9204
soname_spec='${libname}${release}${shared_ext}$major'
9205
shlibpath_var=LD_LIBRARY_PATH
9206
shlibpath_overrides_runpath=no
9207
hardcode_into_libs=yes
9208
dynamic_linker='ldqnx.so'
9213
sys_lib_dlsearch_path_spec="/usr/lib"
9215
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9217
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9218
*) need_version=no ;;
9220
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9221
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9222
shlibpath_var=LD_LIBRARY_PATH
9223
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9225
openbsd2.[89] | openbsd2.[89].*)
9226
shlibpath_overrides_runpath=no
9229
shlibpath_overrides_runpath=yes
9233
shlibpath_overrides_runpath=yes
9238
libname_spec='$name'
9241
library_names_spec='$libname${shared_ext} $libname.a'
9242
dynamic_linker='OS/2 ld.exe'
9243
shlibpath_var=LIBPATH
9246
osf3* | osf4* | osf5*)
9250
soname_spec='${libname}${release}${shared_ext}$major'
9251
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9252
shlibpath_var=LD_LIBRARY_PATH
9253
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9254
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9265
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9266
soname_spec='${libname}${release}${shared_ext}$major'
9267
shlibpath_var=LD_LIBRARY_PATH
9268
shlibpath_overrides_runpath=yes
9269
hardcode_into_libs=yes
9270
# ldd complains unless libraries are executable
9271
postinstall_cmds='chmod +x $lib'
9276
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9277
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9278
shlibpath_var=LD_LIBRARY_PATH
9279
shlibpath_overrides_runpath=yes
9280
if test "$with_gnu_ld" = yes; then
9288
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9289
soname_spec='${libname}${release}${shared_ext}$major'
9290
shlibpath_var=LD_LIBRARY_PATH
9291
case $host_vendor in
9293
shlibpath_overrides_runpath=no
9295
runpath_var=LD_RUN_PATH
9303
shlibpath_overrides_runpath=no
9304
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9310
if test -d /usr/nec ;then
9312
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9313
soname_spec='$libname${shared_ext}.$major'
9314
shlibpath_var=LD_LIBRARY_PATH
9318
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9319
version_type=freebsd-elf
9322
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9323
soname_spec='${libname}${release}${shared_ext}$major'
9324
shlibpath_var=LD_LIBRARY_PATH
9325
shlibpath_overrides_runpath=yes
9326
hardcode_into_libs=yes
9327
if test "$with_gnu_ld" = yes; then
9328
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9330
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9333
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9337
sys_lib_dlsearch_path_spec='/usr/lib'
9341
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9345
library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9346
shlibpath_var=LD_LIBRARY_PATH
9347
shlibpath_overrides_runpath=no
9348
hardcode_into_libs=yes
9353
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9354
soname_spec='${libname}${release}${shared_ext}$major'
9355
shlibpath_var=LD_LIBRARY_PATH
9362
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9363
echo "${ECHO_T}$dynamic_linker" >&6
9364
test "$dynamic_linker" = no && can_build_shared=no
9366
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9367
if test "$GCC" = yes; then
9368
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9457
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9458
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9460
if test -n "$hardcode_libdir_flag_spec" ||
9461
test -n "$runpath_var" ||
9462
test "X$hardcode_automatic" = "Xyes" ; then
9464
# We can hardcode non-existent directories.
9465
if test "$hardcode_direct" != no &&
9466
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9467
# have to relink, otherwise we might link with an installed library
9468
# when we should be linking with a yet-to-be-installed one
9469
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9470
test "$hardcode_minus_L" != no; then
9471
# Linking always hardcodes the temporary library directory.
9472
hardcode_action=relink
9474
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9475
hardcode_action=immediate
9478
# We cannot hardcode anything, or else we can only hardcode existing
9480
hardcode_action=unsupported
9482
echo "$as_me:$LINENO: result: $hardcode_action" >&5
9483
echo "${ECHO_T}$hardcode_action" >&6
9485
if test "$hardcode_action" = relink ||
9486
test "$inherit_rpath" = yes; then
9487
# Fast installation is not supported
9488
enable_fast_install=no
9489
elif test "$shlibpath_overrides_runpath" = yes ||
9490
test "$enable_shared" = no; then
9491
# Fast installation is not necessary
9492
enable_fast_install=needless
9500
if test "x$enable_dlopen" != xyes; then
9501
enable_dlopen=unknown
9502
enable_dlopen_self=unknown
9503
enable_dlopen_self_static=unknown
9510
lt_cv_dlopen="load_add_on"
9512
lt_cv_dlopen_self=yes
9516
lt_cv_dlopen="LoadLibrary"
9521
lt_cv_dlopen="dlopen"
9526
# if libdl is installed we need to link against it
9527
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9528
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9529
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9530
echo $ECHO_N "(cached) $ECHO_C" >&6
9532
ac_check_lib_save_LIBS=$LIBS
9534
cat >conftest.$ac_ext <<_ACEOF
9537
cat confdefs.h >>conftest.$ac_ext
9538
cat >>conftest.$ac_ext <<_ACEOF
9539
/* end confdefs.h. */
9541
/* Override any gcc2 internal prototype to avoid an error. */
9545
/* We use char because int might match the return type of a gcc2
9546
builtin and then its argument prototype would still apply. */
9556
rm -f conftest.$ac_objext conftest$ac_exeext
9557
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9558
(eval $ac_link) 2>conftest.er1
9560
grep -v '^ *+' conftest.er1 >conftest.err
9562
cat conftest.err >&5
9563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564
(exit $ac_status); } &&
9565
{ ac_try='test -z "$ac_c_werror_flag"
9566
|| test ! -s conftest.err'
9567
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571
(exit $ac_status); }; } &&
9572
{ ac_try='test -s conftest$ac_exeext'
9573
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577
(exit $ac_status); }; }; then
9578
ac_cv_lib_dl_dlopen=yes
9580
echo "$as_me: failed program was:" >&5
9581
sed 's/^/| /' conftest.$ac_ext >&5
9583
ac_cv_lib_dl_dlopen=no
9585
rm -f conftest.err conftest.$ac_objext \
9586
conftest$ac_exeext conftest.$ac_ext
9587
LIBS=$ac_check_lib_save_LIBS
9589
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9590
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9591
if test $ac_cv_lib_dl_dlopen = yes; then
9592
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9597
lt_cv_dlopen_self=yes
9604
echo "$as_me:$LINENO: checking for shl_load" >&5
9605
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9606
if test "${ac_cv_func_shl_load+set}" = set; then
9607
echo $ECHO_N "(cached) $ECHO_C" >&6
9609
cat >conftest.$ac_ext <<_ACEOF
9612
cat confdefs.h >>conftest.$ac_ext
9613
cat >>conftest.$ac_ext <<_ACEOF
9614
/* end confdefs.h. */
9615
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9616
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9617
#define shl_load innocuous_shl_load
9619
/* System header to define __stub macros and hopefully few prototypes,
9620
which can conflict with char shl_load (); below.
9621
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9622
<limits.h> exists even on freestanding compilers. */
9625
# include <limits.h>
9627
# include <assert.h>
9632
/* Override any gcc2 internal prototype to avoid an error. */
9637
/* We use char because int might match the return type of a gcc2
9638
builtin and then its argument prototype would still apply. */
9640
/* The GNU C library defines this for functions which it implements
9641
to always fail with ENOSYS. Some functions are actually named
9642
something starting with __ and the normal name is an alias. */
9643
#if defined (__stub_shl_load) || defined (__stub___shl_load)
9646
char (*f) () = shl_load;
9655
return f != shl_load;
9660
rm -f conftest.$ac_objext conftest$ac_exeext
9661
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9662
(eval $ac_link) 2>conftest.er1
9664
grep -v '^ *+' conftest.er1 >conftest.err
9666
cat conftest.err >&5
9667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668
(exit $ac_status); } &&
9669
{ ac_try='test -z "$ac_c_werror_flag"
9670
|| test ! -s conftest.err'
9671
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675
(exit $ac_status); }; } &&
9676
{ ac_try='test -s conftest$ac_exeext'
9677
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681
(exit $ac_status); }; }; then
9682
ac_cv_func_shl_load=yes
9684
echo "$as_me: failed program was:" >&5
9685
sed 's/^/| /' conftest.$ac_ext >&5
9687
ac_cv_func_shl_load=no
9689
rm -f conftest.err conftest.$ac_objext \
9690
conftest$ac_exeext conftest.$ac_ext
9692
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9693
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9694
if test $ac_cv_func_shl_load = yes; then
9695
lt_cv_dlopen="shl_load"
9697
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9698
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9699
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9700
echo $ECHO_N "(cached) $ECHO_C" >&6
9702
ac_check_lib_save_LIBS=$LIBS
9704
cat >conftest.$ac_ext <<_ACEOF
9707
cat confdefs.h >>conftest.$ac_ext
9708
cat >>conftest.$ac_ext <<_ACEOF
9709
/* end confdefs.h. */
9711
/* Override any gcc2 internal prototype to avoid an error. */
9715
/* We use char because int might match the return type of a gcc2
9716
builtin and then its argument prototype would still apply. */
9726
rm -f conftest.$ac_objext conftest$ac_exeext
9727
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9728
(eval $ac_link) 2>conftest.er1
9730
grep -v '^ *+' conftest.er1 >conftest.err
9732
cat conftest.err >&5
9733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734
(exit $ac_status); } &&
9735
{ ac_try='test -z "$ac_c_werror_flag"
9736
|| test ! -s conftest.err'
9737
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9740
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741
(exit $ac_status); }; } &&
9742
{ ac_try='test -s conftest$ac_exeext'
9743
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747
(exit $ac_status); }; }; then
9748
ac_cv_lib_dld_shl_load=yes
9750
echo "$as_me: failed program was:" >&5
9751
sed 's/^/| /' conftest.$ac_ext >&5
9753
ac_cv_lib_dld_shl_load=no
9755
rm -f conftest.err conftest.$ac_objext \
9756
conftest$ac_exeext conftest.$ac_ext
9757
LIBS=$ac_check_lib_save_LIBS
9759
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9760
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9761
if test $ac_cv_lib_dld_shl_load = yes; then
9762
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9764
echo "$as_me:$LINENO: checking for dlopen" >&5
9765
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9766
if test "${ac_cv_func_dlopen+set}" = set; then
9767
echo $ECHO_N "(cached) $ECHO_C" >&6
9769
cat >conftest.$ac_ext <<_ACEOF
9772
cat confdefs.h >>conftest.$ac_ext
9773
cat >>conftest.$ac_ext <<_ACEOF
9774
/* end confdefs.h. */
9775
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9776
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9777
#define dlopen innocuous_dlopen
9779
/* System header to define __stub macros and hopefully few prototypes,
9780
which can conflict with char dlopen (); below.
9781
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9782
<limits.h> exists even on freestanding compilers. */
9785
# include <limits.h>
9787
# include <assert.h>
9792
/* Override any gcc2 internal prototype to avoid an error. */
9797
/* We use char because int might match the return type of a gcc2
9798
builtin and then its argument prototype would still apply. */
9800
/* The GNU C library defines this for functions which it implements
9801
to always fail with ENOSYS. Some functions are actually named
9802
something starting with __ and the normal name is an alias. */
9803
#if defined (__stub_dlopen) || defined (__stub___dlopen)
9806
char (*f) () = dlopen;
9820
rm -f conftest.$ac_objext conftest$ac_exeext
9821
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9822
(eval $ac_link) 2>conftest.er1
9824
grep -v '^ *+' conftest.er1 >conftest.err
9826
cat conftest.err >&5
9827
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828
(exit $ac_status); } &&
9829
{ ac_try='test -z "$ac_c_werror_flag"
9830
|| test ! -s conftest.err'
9831
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835
(exit $ac_status); }; } &&
9836
{ ac_try='test -s conftest$ac_exeext'
9837
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841
(exit $ac_status); }; }; then
9842
ac_cv_func_dlopen=yes
9844
echo "$as_me: failed program was:" >&5
9845
sed 's/^/| /' conftest.$ac_ext >&5
9847
ac_cv_func_dlopen=no
9849
rm -f conftest.err conftest.$ac_objext \
9850
conftest$ac_exeext conftest.$ac_ext
9852
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9853
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9854
if test $ac_cv_func_dlopen = yes; then
9855
lt_cv_dlopen="dlopen"
9857
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9858
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9859
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9860
echo $ECHO_N "(cached) $ECHO_C" >&6
9862
ac_check_lib_save_LIBS=$LIBS
9864
cat >conftest.$ac_ext <<_ACEOF
9867
cat confdefs.h >>conftest.$ac_ext
9868
cat >>conftest.$ac_ext <<_ACEOF
9869
/* end confdefs.h. */
9871
/* Override any gcc2 internal prototype to avoid an error. */
9875
/* We use char because int might match the return type of a gcc2
9876
builtin and then its argument prototype would still apply. */
9886
rm -f conftest.$ac_objext conftest$ac_exeext
9887
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9888
(eval $ac_link) 2>conftest.er1
9890
grep -v '^ *+' conftest.er1 >conftest.err
9892
cat conftest.err >&5
9893
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894
(exit $ac_status); } &&
9895
{ ac_try='test -z "$ac_c_werror_flag"
9896
|| test ! -s conftest.err'
9897
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9900
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901
(exit $ac_status); }; } &&
9902
{ ac_try='test -s conftest$ac_exeext'
9903
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907
(exit $ac_status); }; }; then
9908
ac_cv_lib_dl_dlopen=yes
9910
echo "$as_me: failed program was:" >&5
9911
sed 's/^/| /' conftest.$ac_ext >&5
9913
ac_cv_lib_dl_dlopen=no
9915
rm -f conftest.err conftest.$ac_objext \
9916
conftest$ac_exeext conftest.$ac_ext
9917
LIBS=$ac_check_lib_save_LIBS
9919
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9920
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9921
if test $ac_cv_lib_dl_dlopen = yes; then
9922
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9924
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9925
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9926
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9927
echo $ECHO_N "(cached) $ECHO_C" >&6
9929
ac_check_lib_save_LIBS=$LIBS
9931
cat >conftest.$ac_ext <<_ACEOF
9934
cat confdefs.h >>conftest.$ac_ext
9935
cat >>conftest.$ac_ext <<_ACEOF
9936
/* end confdefs.h. */
9938
/* Override any gcc2 internal prototype to avoid an error. */
9942
/* We use char because int might match the return type of a gcc2
9943
builtin and then its argument prototype would still apply. */
9953
rm -f conftest.$ac_objext conftest$ac_exeext
9954
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9955
(eval $ac_link) 2>conftest.er1
9957
grep -v '^ *+' conftest.er1 >conftest.err
9959
cat conftest.err >&5
9960
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961
(exit $ac_status); } &&
9962
{ ac_try='test -z "$ac_c_werror_flag"
9963
|| test ! -s conftest.err'
9964
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968
(exit $ac_status); }; } &&
9969
{ ac_try='test -s conftest$ac_exeext'
9970
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974
(exit $ac_status); }; }; then
9975
ac_cv_lib_svld_dlopen=yes
9977
echo "$as_me: failed program was:" >&5
9978
sed 's/^/| /' conftest.$ac_ext >&5
9980
ac_cv_lib_svld_dlopen=no
9982
rm -f conftest.err conftest.$ac_objext \
9983
conftest$ac_exeext conftest.$ac_ext
9984
LIBS=$ac_check_lib_save_LIBS
9986
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9987
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9988
if test $ac_cv_lib_svld_dlopen = yes; then
9989
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9991
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9992
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9993
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9994
echo $ECHO_N "(cached) $ECHO_C" >&6
9996
ac_check_lib_save_LIBS=$LIBS
9998
cat >conftest.$ac_ext <<_ACEOF
10001
cat confdefs.h >>conftest.$ac_ext
10002
cat >>conftest.$ac_ext <<_ACEOF
10003
/* end confdefs.h. */
10005
/* Override any gcc2 internal prototype to avoid an error. */
10009
/* We use char because int might match the return type of a gcc2
10010
builtin and then its argument prototype would still apply. */
10020
rm -f conftest.$ac_objext conftest$ac_exeext
10021
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10022
(eval $ac_link) 2>conftest.er1
10024
grep -v '^ *+' conftest.er1 >conftest.err
10026
cat conftest.err >&5
10027
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028
(exit $ac_status); } &&
10029
{ ac_try='test -z "$ac_c_werror_flag"
10030
|| test ! -s conftest.err'
10031
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032
(eval $ac_try) 2>&5
10034
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035
(exit $ac_status); }; } &&
10036
{ ac_try='test -s conftest$ac_exeext'
10037
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10038
(eval $ac_try) 2>&5
10040
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041
(exit $ac_status); }; }; then
10042
ac_cv_lib_dld_dld_link=yes
10044
echo "$as_me: failed program was:" >&5
10045
sed 's/^/| /' conftest.$ac_ext >&5
10047
ac_cv_lib_dld_dld_link=no
10049
rm -f conftest.err conftest.$ac_objext \
10050
conftest$ac_exeext conftest.$ac_ext
10051
LIBS=$ac_check_lib_save_LIBS
10053
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10054
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10055
if test $ac_cv_lib_dld_dld_link = yes; then
10056
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10077
if test "x$lt_cv_dlopen" != xno; then
10083
case $lt_cv_dlopen in
10085
save_CPPFLAGS="$CPPFLAGS"
10086
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10088
save_LDFLAGS="$LDFLAGS"
10089
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10092
LIBS="$lt_cv_dlopen_libs $LIBS"
10094
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10095
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10096
if test "${lt_cv_dlopen_self+set}" = set; then
10097
echo $ECHO_N "(cached) $ECHO_C" >&6
10099
if test "$cross_compiling" = yes; then :
10100
lt_cv_dlopen_self=cross
10102
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10103
lt_status=$lt_dlunknown
10104
cat > conftest.$ac_ext <<_LT_EOF
10105
#line 10105 "configure"
10106
#include "confdefs.h"
10115
# define LT_DLGLOBAL RTLD_GLOBAL
10118
# define LT_DLGLOBAL DL_GLOBAL
10120
# define LT_DLGLOBAL 0
10124
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10125
find out it does not work in some platform. */
10126
#ifndef LT_DLLAZY_OR_NOW
10128
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10131
# define LT_DLLAZY_OR_NOW DL_LAZY
10134
# define LT_DLLAZY_OR_NOW RTLD_NOW
10137
# define LT_DLLAZY_OR_NOW DL_NOW
10139
# define LT_DLLAZY_OR_NOW 0
10147
extern "C" void exit (int);
10150
void fnord() { int i=42;}
10153
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10154
int status = $lt_dlunknown;
10158
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10159
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10160
/* dlclose (self); */
10168
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10169
(eval $ac_link) 2>&5
10171
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10173
(./conftest; exit; ) >&5 2>/dev/null
10175
case x$lt_status in
10176
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10177
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10178
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10181
# compilation failed
10182
lt_cv_dlopen_self=no
10189
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10190
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10192
if test "x$lt_cv_dlopen_self" = xyes; then
10193
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10194
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10195
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10196
if test "${lt_cv_dlopen_self_static+set}" = set; then
10197
echo $ECHO_N "(cached) $ECHO_C" >&6
10199
if test "$cross_compiling" = yes; then :
10200
lt_cv_dlopen_self_static=cross
10202
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10203
lt_status=$lt_dlunknown
10204
cat > conftest.$ac_ext <<_LT_EOF
10205
#line 10205 "configure"
10206
#include "confdefs.h"
10215
# define LT_DLGLOBAL RTLD_GLOBAL
10218
# define LT_DLGLOBAL DL_GLOBAL
10220
# define LT_DLGLOBAL 0
10224
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10225
find out it does not work in some platform. */
10226
#ifndef LT_DLLAZY_OR_NOW
10228
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10231
# define LT_DLLAZY_OR_NOW DL_LAZY
10234
# define LT_DLLAZY_OR_NOW RTLD_NOW
10237
# define LT_DLLAZY_OR_NOW DL_NOW
10239
# define LT_DLLAZY_OR_NOW 0
10247
extern "C" void exit (int);
10250
void fnord() { int i=42;}
10253
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10254
int status = $lt_dlunknown;
10258
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10259
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10260
/* dlclose (self); */
10268
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10269
(eval $ac_link) 2>&5
10271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10273
(./conftest; exit; ) >&5 2>/dev/null
10275
case x$lt_status in
10276
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10277
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10278
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10281
# compilation failed
10282
lt_cv_dlopen_self_static=no
10289
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10290
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10293
CPPFLAGS="$save_CPPFLAGS"
10294
LDFLAGS="$save_LDFLAGS"
10299
case $lt_cv_dlopen_self in
10300
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10301
*) enable_dlopen_self=unknown ;;
10304
case $lt_cv_dlopen_self_static in
10305
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10306
*) enable_dlopen_self_static=unknown ;;
10328
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10329
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10330
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10331
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10332
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10333
echo "$as_me:$LINENO: result: yes" >&5
10334
echo "${ECHO_T}yes" >&6
10336
# FIXME - insert some real tests, host_os isn't really good enough
10339
if test -n "$STRIP" ; then
10340
striplib="$STRIP -x"
10341
old_striplib="$STRIP -S"
10342
echo "$as_me:$LINENO: result: yes" >&5
10343
echo "${ECHO_T}yes" >&6
10345
echo "$as_me:$LINENO: result: no" >&5
10346
echo "${ECHO_T}no" >&6
10350
echo "$as_me:$LINENO: result: no" >&5
10351
echo "${ECHO_T}no" >&6
10367
# Report which library types will actually be built
10368
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10369
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10370
echo "$as_me:$LINENO: result: $can_build_shared" >&5
10371
echo "${ECHO_T}$can_build_shared" >&6
10373
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10374
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10375
test "$can_build_shared" = "no" && enable_shared=no
10377
# On AIX, shared libraries and static libraries use the same namespace, and
10378
# are all built from PIC.
10381
test "$enable_shared" = yes && enable_static=no
10382
if test -n "$RANLIB"; then
10383
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10384
postinstall_cmds='$RANLIB $lib'
10389
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10390
test "$enable_shared" = yes && enable_static=no
10394
echo "$as_me:$LINENO: result: $enable_shared" >&5
10395
echo "${ECHO_T}$enable_shared" >&6
10397
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10398
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10399
# Make sure either enable_shared or enable_static is yes.
10400
test "$enable_shared" = yes || enable_static=yes
10401
echo "$as_me:$LINENO: result: $enable_static" >&5
10402
echo "${ECHO_T}$enable_static" >&6
10409
ac_cpp='$CPP $CPPFLAGS'
10410
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10411
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10412
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10428
ac_config_commands="$ac_config_commands libtool"
10433
# Only expand once: