1392
3788
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
1393
3789
SAVE_CFLAGS="$CFLAGS"
1394
3790
CFLAGS="$CFLAGS -belf"
1395
echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1396
echo "configure:1397: checking whether the C compiler needs -belf" >&5
1397
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1398
echo $ac_n "(cached) $ac_c" 1>&6
3791
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3792
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3793
if test "${lt_cv_cc_needs_belf+set}" = set; then
3794
echo $ECHO_N "(cached) $ECHO_C" >&6
1402
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1403
3797
ac_cpp='$CPP $CPPFLAGS'
1404
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1405
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1406
cross_compiling=$ac_cv_prog_cc_cross
1408
cat > conftest.$ac_ext <<EOF
1409
#line 1410 "configure"
1410
#include "confdefs.h"
1416
if { (eval echo configure:1417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3798
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3799
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3800
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3802
cat >conftest.$ac_ext <<_ACEOF
3805
cat confdefs.h >>conftest.$ac_ext
3806
cat >>conftest.$ac_ext <<_ACEOF
3807
/* end confdefs.h. */
3817
rm -f conftest.$ac_objext conftest$ac_exeext
3818
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3819
(eval $ac_link) 2>conftest.er1
3821
grep -v '^ *+' conftest.er1 >conftest.err
3823
cat conftest.err >&5
3824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825
(exit $ac_status); } &&
3826
{ ac_try='test -z "$ac_c_werror_flag"
3827
|| test ! -s conftest.err'
3828
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3831
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832
(exit $ac_status); }; } &&
3833
{ ac_try='test -s conftest$ac_exeext'
3834
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838
(exit $ac_status); }; }; then
1418
3839
lt_cv_cc_needs_belf=yes
1420
echo "configure: failed program was:" >&5
1421
cat conftest.$ac_ext >&5
1423
lt_cv_cc_needs_belf=no
3841
echo "$as_me: failed program was:" >&5
3842
sed 's/^/| /' conftest.$ac_ext >&5
3844
lt_cv_cc_needs_belf=no
3846
rm -f conftest.err conftest.$ac_objext \
3847
conftest$ac_exeext conftest.$ac_ext
1427
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1428
3849
ac_cpp='$CPP $CPPFLAGS'
1429
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1430
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1431
cross_compiling=$ac_cv_prog_cc_cross
3850
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1435
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3855
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3856
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
1436
3857
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1437
3858
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1438
3859
CFLAGS="$SAVE_CFLAGS"
1446
# Save cache, so that ltconfig can load it
1447
cat > confcache <<\EOF
1448
# This file is a shell script that caches the results of configure
1449
# tests run on this system so they can be shared between configure
1450
# scripts and configure runs. It is not useful on other systems.
1451
# If it contains results you don't want to keep, you may remove or edit it.
1453
# By default, configure uses ./config.cache as the cache file,
1454
# creating it if it does not exist already. You can give configure
1455
# the --cache-file=FILE option to use a different cache file; that is
1456
# what configure does when it calls configure scripts in
1457
# subdirectories, so they share the cache.
1458
# Giving --cache-file=/dev/null disables caching, for debugging configure.
1459
# config.status only pays attention to the cache file if you give it the
1460
# --recheck option to rerun configure.
1463
# The following way of writing the cache mishandles newlines in values,
1464
# but we know of no workaround that is simple, portable, and efficient.
1465
# So, don't put newlines in cache variables' values.
1466
# Ultrix sh set writes to stderr and can't be redirected directly,
1467
# and sets the high bit in the cache file unless we assign to the vars.
1469
case `(ac_space=' '; set | grep ac_space) 2>&1` in
1471
# `set' does not quote correctly, so add quotes (double-quote substitution
1472
# turns \\\\ into \\, and sed turns \\ into \).
1474
-e "s/'/'\\\\''/g" \
1475
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1478
# `set' quotes correctly as required by POSIX, so do not add quotes.
1479
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1482
if cmp -s $cache_file confcache; then
1485
if test -w $cache_file; then
1486
echo "updating cache $cache_file"
1487
cat confcache > $cache_file
1489
echo "not updating unwritable cache $cache_file"
1495
# Actually configure libtool. ac_aux_dir is where install-sh is found.
1496
CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1497
LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1498
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1499
DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1500
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1501
$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1502
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1504
# Reload cache, that may have been modified by ltconfig
1505
if test -r "$cache_file"; then
1506
echo "loading cache $cache_file"
1509
echo "creating cache $cache_file"
3863
# Find out which ABI we are using.
3864
echo 'int i;' > conftest.$ac_ext
3865
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3866
(eval $ac_compile) 2>&5
3868
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869
(exit $ac_status); }; then
3870
case `/usr/bin/file conftest.o` in
3872
case $lt_cv_prog_gnu_ld in
3873
yes*) LD="${LD-ld} -m elf64_sparc" ;;
3874
*) LD="${LD-ld} -64" ;;
3885
need_locks="$enable_libtool_lock"
3889
ac_cpp='$CPP $CPPFLAGS'
3890
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3891
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3892
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3893
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3894
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3895
# On Suns, sometimes $CPP names a directory.
3896
if test -n "$CPP" && test -d "$CPP"; then
3899
if test -z "$CPP"; then
3900
if test "${ac_cv_prog_CPP+set}" = set; then
3901
echo $ECHO_N "(cached) $ECHO_C" >&6
3903
# Double quotes because CPP needs to be expanded
3904
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3907
for ac_c_preproc_warn_flag in '' yes
3909
# Use a header file that comes with gcc, so configuring glibc
3910
# with a fresh cross-compiler works.
3911
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3912
# <limits.h> exists even on freestanding compilers.
3913
# On the NeXT, cc -E runs the code through the compiler's parser,
3914
# not just through cpp. "Syntax error" is here to catch this case.
3915
cat >conftest.$ac_ext <<_ACEOF
3918
cat confdefs.h >>conftest.$ac_ext
3919
cat >>conftest.$ac_ext <<_ACEOF
3920
/* end confdefs.h. */
3922
# include <limits.h>
3924
# include <assert.h>
3928
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3929
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3931
grep -v '^ *+' conftest.er1 >conftest.err
3933
cat conftest.err >&5
3934
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935
(exit $ac_status); } >/dev/null; then
3936
if test -s conftest.err; then
3937
ac_cpp_err=$ac_c_preproc_warn_flag
3938
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3945
if test -z "$ac_cpp_err"; then
3948
echo "$as_me: failed program was:" >&5
3949
sed 's/^/| /' conftest.$ac_ext >&5
3951
# Broken: fails on valid input.
3954
rm -f conftest.err conftest.$ac_ext
3956
# OK, works on sane cases. Now check whether non-existent headers
3957
# can be detected and how.
3958
cat >conftest.$ac_ext <<_ACEOF
3961
cat confdefs.h >>conftest.$ac_ext
3962
cat >>conftest.$ac_ext <<_ACEOF
3963
/* end confdefs.h. */
3964
#include <ac_nonexistent.h>
3966
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3967
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3969
grep -v '^ *+' conftest.er1 >conftest.err
3971
cat conftest.err >&5
3972
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973
(exit $ac_status); } >/dev/null; then
3974
if test -s conftest.err; then
3975
ac_cpp_err=$ac_c_preproc_warn_flag
3976
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3983
if test -z "$ac_cpp_err"; then
3984
# Broken: success on invalid input.
3987
echo "$as_me: failed program was:" >&5
3988
sed 's/^/| /' conftest.$ac_ext >&5
3990
# Passes both tests.
3994
rm -f conftest.err conftest.$ac_ext
3997
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3998
rm -f conftest.err conftest.$ac_ext
3999
if $ac_preproc_ok; then
4011
echo "$as_me:$LINENO: result: $CPP" >&5
4012
echo "${ECHO_T}$CPP" >&6
4014
for ac_c_preproc_warn_flag in '' yes
4016
# Use a header file that comes with gcc, so configuring glibc
4017
# with a fresh cross-compiler works.
4018
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4019
# <limits.h> exists even on freestanding compilers.
4020
# On the NeXT, cc -E runs the code through the compiler's parser,
4021
# not just through cpp. "Syntax error" is here to catch this case.
4022
cat >conftest.$ac_ext <<_ACEOF
4025
cat confdefs.h >>conftest.$ac_ext
4026
cat >>conftest.$ac_ext <<_ACEOF
4027
/* end confdefs.h. */
4029
# include <limits.h>
4031
# include <assert.h>
4035
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4036
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4038
grep -v '^ *+' conftest.er1 >conftest.err
4040
cat conftest.err >&5
4041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042
(exit $ac_status); } >/dev/null; then
4043
if test -s conftest.err; then
4044
ac_cpp_err=$ac_c_preproc_warn_flag
4045
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4052
if test -z "$ac_cpp_err"; then
4055
echo "$as_me: failed program was:" >&5
4056
sed 's/^/| /' conftest.$ac_ext >&5
4058
# Broken: fails on valid input.
4061
rm -f conftest.err conftest.$ac_ext
4063
# OK, works on sane cases. Now check whether non-existent headers
4064
# can be detected and how.
4065
cat >conftest.$ac_ext <<_ACEOF
4068
cat confdefs.h >>conftest.$ac_ext
4069
cat >>conftest.$ac_ext <<_ACEOF
4070
/* end confdefs.h. */
4071
#include <ac_nonexistent.h>
4073
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4074
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4076
grep -v '^ *+' conftest.er1 >conftest.err
4078
cat conftest.err >&5
4079
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080
(exit $ac_status); } >/dev/null; then
4081
if test -s conftest.err; then
4082
ac_cpp_err=$ac_c_preproc_warn_flag
4083
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4090
if test -z "$ac_cpp_err"; then
4091
# Broken: success on invalid input.
4094
echo "$as_me: failed program was:" >&5
4095
sed 's/^/| /' conftest.$ac_ext >&5
4097
# Passes both tests.
4101
rm -f conftest.err conftest.$ac_ext
4104
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4105
rm -f conftest.err conftest.$ac_ext
4106
if $ac_preproc_ok; then
4109
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4110
See \`config.log' for more details." >&5
4111
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4112
See \`config.log' for more details." >&2;}
4113
{ (exit 1); exit 1; }; }
4117
ac_cpp='$CPP $CPPFLAGS'
4118
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4119
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4120
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4123
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4124
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4125
if test "${ac_cv_header_stdc+set}" = set; then
4126
echo $ECHO_N "(cached) $ECHO_C" >&6
4128
cat >conftest.$ac_ext <<_ACEOF
4131
cat confdefs.h >>conftest.$ac_ext
4132
cat >>conftest.$ac_ext <<_ACEOF
4133
/* end confdefs.h. */
4147
rm -f conftest.$ac_objext
4148
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4149
(eval $ac_compile) 2>conftest.er1
4151
grep -v '^ *+' conftest.er1 >conftest.err
4153
cat conftest.err >&5
4154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155
(exit $ac_status); } &&
4156
{ ac_try='test -z "$ac_c_werror_flag"
4157
|| test ! -s conftest.err'
4158
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162
(exit $ac_status); }; } &&
4163
{ ac_try='test -s conftest.$ac_objext'
4164
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168
(exit $ac_status); }; }; then
4169
ac_cv_header_stdc=yes
4171
echo "$as_me: failed program was:" >&5
4172
sed 's/^/| /' conftest.$ac_ext >&5
4174
ac_cv_header_stdc=no
4176
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4178
if test $ac_cv_header_stdc = yes; then
4179
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4180
cat >conftest.$ac_ext <<_ACEOF
4183
cat confdefs.h >>conftest.$ac_ext
4184
cat >>conftest.$ac_ext <<_ACEOF
4185
/* end confdefs.h. */
4189
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4190
$EGREP "memchr" >/dev/null 2>&1; then
4193
ac_cv_header_stdc=no
4199
if test $ac_cv_header_stdc = yes; then
4200
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4201
cat >conftest.$ac_ext <<_ACEOF
4204
cat confdefs.h >>conftest.$ac_ext
4205
cat >>conftest.$ac_ext <<_ACEOF
4206
/* end confdefs.h. */
4210
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4211
$EGREP "free" >/dev/null 2>&1; then
4214
ac_cv_header_stdc=no
4220
if test $ac_cv_header_stdc = yes; then
4221
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4222
if test "$cross_compiling" = yes; then
4225
cat >conftest.$ac_ext <<_ACEOF
4228
cat confdefs.h >>conftest.$ac_ext
4229
cat >>conftest.$ac_ext <<_ACEOF
4230
/* end confdefs.h. */
4232
#if ((' ' & 0x0FF) == 0x020)
4233
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4234
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4236
# define ISLOWER(c) \
4237
(('a' <= (c) && (c) <= 'i') \
4238
|| ('j' <= (c) && (c) <= 'r') \
4239
|| ('s' <= (c) && (c) <= 'z'))
4240
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4243
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4248
for (i = 0; i < 256; i++)
4249
if (XOR (islower (i), ISLOWER (i))
4250
|| toupper (i) != TOUPPER (i))
4255
rm -f conftest$ac_exeext
4256
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4257
(eval $ac_link) 2>&5
4259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4261
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265
(exit $ac_status); }; }; then
4268
echo "$as_me: program exited with status $ac_status" >&5
4269
echo "$as_me: failed program was:" >&5
4270
sed 's/^/| /' conftest.$ac_ext >&5
4273
ac_cv_header_stdc=no
4275
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4279
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4280
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4281
if test $ac_cv_header_stdc = yes; then
4283
cat >>confdefs.h <<\_ACEOF
4284
#define STDC_HEADERS 1
4289
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4299
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4300
inttypes.h stdint.h unistd.h
4302
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4303
echo "$as_me:$LINENO: checking for $ac_header" >&5
4304
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4305
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4306
echo $ECHO_N "(cached) $ECHO_C" >&6
4308
cat >conftest.$ac_ext <<_ACEOF
4311
cat confdefs.h >>conftest.$ac_ext
4312
cat >>conftest.$ac_ext <<_ACEOF
4313
/* end confdefs.h. */
4314
$ac_includes_default
4316
#include <$ac_header>
4318
rm -f conftest.$ac_objext
4319
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4320
(eval $ac_compile) 2>conftest.er1
4322
grep -v '^ *+' conftest.er1 >conftest.err
4324
cat conftest.err >&5
4325
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326
(exit $ac_status); } &&
4327
{ ac_try='test -z "$ac_c_werror_flag"
4328
|| test ! -s conftest.err'
4329
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333
(exit $ac_status); }; } &&
4334
{ ac_try='test -s conftest.$ac_objext'
4335
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339
(exit $ac_status); }; }; then
4340
eval "$as_ac_Header=yes"
4342
echo "$as_me: failed program was:" >&5
4343
sed 's/^/| /' conftest.$ac_ext >&5
4345
eval "$as_ac_Header=no"
4347
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4349
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4350
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4351
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4352
cat >>confdefs.h <<_ACEOF
4353
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4362
for ac_header in dlfcn.h
4364
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4365
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4366
echo "$as_me:$LINENO: checking for $ac_header" >&5
4367
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4368
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4369
echo $ECHO_N "(cached) $ECHO_C" >&6
4371
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4372
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4374
# Is the header compilable?
4375
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4376
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4377
cat >conftest.$ac_ext <<_ACEOF
4380
cat confdefs.h >>conftest.$ac_ext
4381
cat >>conftest.$ac_ext <<_ACEOF
4382
/* end confdefs.h. */
4383
$ac_includes_default
4384
#include <$ac_header>
4386
rm -f conftest.$ac_objext
4387
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4388
(eval $ac_compile) 2>conftest.er1
4390
grep -v '^ *+' conftest.er1 >conftest.err
4392
cat conftest.err >&5
4393
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394
(exit $ac_status); } &&
4395
{ ac_try='test -z "$ac_c_werror_flag"
4396
|| test ! -s conftest.err'
4397
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401
(exit $ac_status); }; } &&
4402
{ ac_try='test -s conftest.$ac_objext'
4403
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407
(exit $ac_status); }; }; then
4408
ac_header_compiler=yes
4410
echo "$as_me: failed program was:" >&5
4411
sed 's/^/| /' conftest.$ac_ext >&5
4413
ac_header_compiler=no
4415
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4416
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4417
echo "${ECHO_T}$ac_header_compiler" >&6
4419
# Is the header present?
4420
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4421
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4422
cat >conftest.$ac_ext <<_ACEOF
4425
cat confdefs.h >>conftest.$ac_ext
4426
cat >>conftest.$ac_ext <<_ACEOF
4427
/* end confdefs.h. */
4428
#include <$ac_header>
4430
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4431
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4433
grep -v '^ *+' conftest.er1 >conftest.err
4435
cat conftest.err >&5
4436
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437
(exit $ac_status); } >/dev/null; then
4438
if test -s conftest.err; then
4439
ac_cpp_err=$ac_c_preproc_warn_flag
4440
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4447
if test -z "$ac_cpp_err"; then
4448
ac_header_preproc=yes
4450
echo "$as_me: failed program was:" >&5
4451
sed 's/^/| /' conftest.$ac_ext >&5
4453
ac_header_preproc=no
4455
rm -f conftest.err conftest.$ac_ext
4456
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4457
echo "${ECHO_T}$ac_header_preproc" >&6
4459
# So? What about this header?
4460
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4462
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4463
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4464
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4465
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4466
ac_header_preproc=yes
4469
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4470
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4471
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4472
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4473
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4474
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4475
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4476
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4477
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4478
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4479
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4480
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4483
## ------------------------------------------ ##
4484
## Report this to the AC_PACKAGE_NAME lists. ##
4485
## ------------------------------------------ ##
4488
sed "s/^/$as_me: WARNING: /" >&2
4491
echo "$as_me:$LINENO: checking for $ac_header" >&5
4492
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4493
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4494
echo $ECHO_N "(cached) $ECHO_C" >&6
4496
eval "$as_ac_Header=\$ac_header_preproc"
4498
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4499
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4502
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4503
cat >>confdefs.h <<_ACEOF
4504
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4512
ac_cpp='$CXXCPP $CPPFLAGS'
4513
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4514
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4515
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4516
if test -n "$ac_tool_prefix"; then
4517
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4519
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4520
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4521
echo "$as_me:$LINENO: checking for $ac_word" >&5
4522
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4523
if test "${ac_cv_prog_CXX+set}" = set; then
4524
echo $ECHO_N "(cached) $ECHO_C" >&6
4526
if test -n "$CXX"; then
4527
ac_cv_prog_CXX="$CXX" # Let the user override the test.
4529
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4533
test -z "$as_dir" && as_dir=.
4534
for ac_exec_ext in '' $ac_executable_extensions; do
4535
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4536
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4537
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546
if test -n "$CXX"; then
4547
echo "$as_me:$LINENO: result: $CXX" >&5
4548
echo "${ECHO_T}$CXX" >&6
4550
echo "$as_me:$LINENO: result: no" >&5
4551
echo "${ECHO_T}no" >&6
4554
test -n "$CXX" && break
4557
if test -z "$CXX"; then
4559
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4561
# Extract the first word of "$ac_prog", so it can be a program name with args.
4562
set dummy $ac_prog; ac_word=$2
4563
echo "$as_me:$LINENO: checking for $ac_word" >&5
4564
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4565
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4566
echo $ECHO_N "(cached) $ECHO_C" >&6
4568
if test -n "$ac_ct_CXX"; then
4569
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4571
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575
test -z "$as_dir" && as_dir=.
4576
for ac_exec_ext in '' $ac_executable_extensions; do
4577
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578
ac_cv_prog_ac_ct_CXX="$ac_prog"
4579
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4588
if test -n "$ac_ct_CXX"; then
4589
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4590
echo "${ECHO_T}$ac_ct_CXX" >&6
4592
echo "$as_me:$LINENO: result: no" >&5
4593
echo "${ECHO_T}no" >&6
4596
test -n "$ac_ct_CXX" && break
4598
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4604
# Provide some information about the compiler.
4605
echo "$as_me:$LINENO:" \
4606
"checking for C++ compiler version" >&5
4607
ac_compiler=`set X $ac_compile; echo $2`
4608
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4609
(eval $ac_compiler --version </dev/null >&5) 2>&5
4611
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612
(exit $ac_status); }
4613
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4614
(eval $ac_compiler -v </dev/null >&5) 2>&5
4616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617
(exit $ac_status); }
4618
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4619
(eval $ac_compiler -V </dev/null >&5) 2>&5
4621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622
(exit $ac_status); }
4624
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4625
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4626
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4627
echo $ECHO_N "(cached) $ECHO_C" >&6
4629
cat >conftest.$ac_ext <<_ACEOF
4632
cat confdefs.h >>conftest.$ac_ext
4633
cat >>conftest.$ac_ext <<_ACEOF
4634
/* end confdefs.h. */
4647
rm -f conftest.$ac_objext
4648
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4649
(eval $ac_compile) 2>conftest.er1
4651
grep -v '^ *+' conftest.er1 >conftest.err
4653
cat conftest.err >&5
4654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655
(exit $ac_status); } &&
4656
{ ac_try='test -z "$ac_cxx_werror_flag"
4657
|| test ! -s conftest.err'
4658
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662
(exit $ac_status); }; } &&
4663
{ ac_try='test -s conftest.$ac_objext'
4664
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668
(exit $ac_status); }; }; then
4671
echo "$as_me: failed program was:" >&5
4672
sed 's/^/| /' conftest.$ac_ext >&5
4676
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4677
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4680
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4681
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4682
GXX=`test $ac_compiler_gnu = yes && echo yes`
4683
ac_test_CXXFLAGS=${CXXFLAGS+set}
4684
ac_save_CXXFLAGS=$CXXFLAGS
4686
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4687
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4688
if test "${ac_cv_prog_cxx_g+set}" = set; then
4689
echo $ECHO_N "(cached) $ECHO_C" >&6
4691
cat >conftest.$ac_ext <<_ACEOF
4694
cat confdefs.h >>conftest.$ac_ext
4695
cat >>conftest.$ac_ext <<_ACEOF
4696
/* end confdefs.h. */
4706
rm -f conftest.$ac_objext
4707
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4708
(eval $ac_compile) 2>conftest.er1
4710
grep -v '^ *+' conftest.er1 >conftest.err
4712
cat conftest.err >&5
4713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714
(exit $ac_status); } &&
4715
{ ac_try='test -z "$ac_cxx_werror_flag"
4716
|| test ! -s conftest.err'
4717
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721
(exit $ac_status); }; } &&
4722
{ ac_try='test -s conftest.$ac_objext'
4723
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727
(exit $ac_status); }; }; then
4728
ac_cv_prog_cxx_g=yes
4730
echo "$as_me: failed program was:" >&5
4731
sed 's/^/| /' conftest.$ac_ext >&5
4735
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4737
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4738
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4739
if test "$ac_test_CXXFLAGS" = set; then
4740
CXXFLAGS=$ac_save_CXXFLAGS
4741
elif test $ac_cv_prog_cxx_g = yes; then
4742
if test "$GXX" = yes; then
4748
if test "$GXX" = yes; then
4754
for ac_declaration in \
4756
'extern "C" void std::exit (int) throw (); using std::exit;' \
4757
'extern "C" void std::exit (int); using std::exit;' \
4758
'extern "C" void exit (int) throw ();' \
4759
'extern "C" void exit (int);' \
4762
cat >conftest.$ac_ext <<_ACEOF
4765
cat confdefs.h >>conftest.$ac_ext
4766
cat >>conftest.$ac_ext <<_ACEOF
4767
/* end confdefs.h. */
4778
rm -f conftest.$ac_objext
4779
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4780
(eval $ac_compile) 2>conftest.er1
4782
grep -v '^ *+' conftest.er1 >conftest.err
4784
cat conftest.err >&5
4785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786
(exit $ac_status); } &&
4787
{ ac_try='test -z "$ac_cxx_werror_flag"
4788
|| test ! -s conftest.err'
4789
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793
(exit $ac_status); }; } &&
4794
{ ac_try='test -s conftest.$ac_objext'
4795
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799
(exit $ac_status); }; }; then
4802
echo "$as_me: failed program was:" >&5
4803
sed 's/^/| /' conftest.$ac_ext >&5
4807
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4808
cat >conftest.$ac_ext <<_ACEOF
4811
cat confdefs.h >>conftest.$ac_ext
4812
cat >>conftest.$ac_ext <<_ACEOF
4813
/* end confdefs.h. */
4823
rm -f conftest.$ac_objext
4824
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4825
(eval $ac_compile) 2>conftest.er1
4827
grep -v '^ *+' conftest.er1 >conftest.err
4829
cat conftest.err >&5
4830
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831
(exit $ac_status); } &&
4832
{ ac_try='test -z "$ac_cxx_werror_flag"
4833
|| test ! -s conftest.err'
4834
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4837
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838
(exit $ac_status); }; } &&
4839
{ ac_try='test -s conftest.$ac_objext'
4840
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844
(exit $ac_status); }; }; then
4847
echo "$as_me: failed program was:" >&5
4848
sed 's/^/| /' conftest.$ac_ext >&5
4851
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4854
if test -n "$ac_declaration"; then
4855
echo '#ifdef __cplusplus' >>confdefs.h
4856
echo $ac_declaration >>confdefs.h
4857
echo '#endif' >>confdefs.h
4861
ac_cpp='$CXXCPP $CPPFLAGS'
4862
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4863
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4864
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4866
depcc="$CXX" am_compiler_list=
4868
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4869
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4870
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4871
echo $ECHO_N "(cached) $ECHO_C" >&6
4873
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4874
# We make a subdir and do the tests there. Otherwise we can end up
4875
# making bogus files that we don't know about and never remove. For
4876
# instance it was reported that on HP-UX the gcc test will end up
4877
# making a dummy file named `D' -- because `-MD' means `put the output
4880
# Copy depcomp to subdir because otherwise we won't find it if we're
4881
# using a relative directory.
4882
cp "$am_depcomp" conftest.dir
4884
# We will build objects and dependencies in a subdirectory because
4885
# it helps to detect inapplicable dependency modes. For instance
4886
# both Tru64's cc and ICC support -MD to output dependencies as a
4887
# side effect of compilation, but ICC will put the dependencies in
4888
# the current directory while Tru64 will put them in the object
4892
am_cv_CXX_dependencies_compiler_type=none
4893
if test "$am_compiler_list" = ""; then
4894
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4896
for depmode in $am_compiler_list; do
4897
# Setup a source with many dependencies, because some compilers
4898
# like to wrap large dependency lists on column 80 (with \), and
4899
# we should not choose a depcomp mode which is confused by this.
4901
# We need to recreate these files for each test, as the compiler may
4902
# overwrite some of them when testing with obscure command lines.
4903
# This happens at least with the AIX C compiler.
4905
for i in 1 2 3 4 5 6; do
4906
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4907
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4908
# Solaris 8's {/usr,}/bin/sh.
4909
touch sub/conftst$i.h
4911
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4915
# after this tag, mechanisms are not by side-effect, so they'll
4916
# only be used when explicitly requested
4917
if test "x$enable_dependency_tracking" = xyes; then
4925
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4926
# mode. It turns out that the SunPro C++ compiler does not properly
4927
# handle `-M -o', and we need to detect this.
4928
if depmode=$depmode \
4929
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4930
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4931
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4932
>/dev/null 2>conftest.err &&
4933
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4934
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4935
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4936
# icc doesn't choke on unknown options, it will just issue warnings
4937
# or remarks (even with -Werror). So we grep stderr for any message
4938
# that says an option was ignored or not supported.
4939
# When given -MP, icc 7.0 and 7.1 complain thusly:
4940
# icc: Command line warning: ignoring option '-M'; no argument required
4941
# The diagnosis changed in icc 8.0:
4942
# icc: Command line remark: option '-MP' not supported
4943
if (grep 'ignoring option' conftest.err ||
4944
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4945
am_cv_CXX_dependencies_compiler_type=$depmode
4954
am_cv_CXX_dependencies_compiler_type=none
4958
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4959
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4960
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4965
test "x$enable_dependency_tracking" != xno \
4966
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4967
am__fastdepCXX_TRUE=
4968
am__fastdepCXX_FALSE='#'
4970
am__fastdepCXX_TRUE='#'
4971
am__fastdepCXX_FALSE=
4977
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4978
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4979
(test "X$CXX" != "Xg++"))) ; then
4981
ac_cpp='$CXXCPP $CPPFLAGS'
4982
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4983
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4984
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4985
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4986
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4987
if test -z "$CXXCPP"; then
4988
if test "${ac_cv_prog_CXXCPP+set}" = set; then
4989
echo $ECHO_N "(cached) $ECHO_C" >&6
4991
# Double quotes because CXXCPP needs to be expanded
4992
for CXXCPP in "$CXX -E" "/lib/cpp"
4995
for ac_cxx_preproc_warn_flag in '' yes
4997
# Use a header file that comes with gcc, so configuring glibc
4998
# with a fresh cross-compiler works.
4999
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5000
# <limits.h> exists even on freestanding compilers.
5001
# On the NeXT, cc -E runs the code through the compiler's parser,
5002
# not just through cpp. "Syntax error" is here to catch this case.
5003
cat >conftest.$ac_ext <<_ACEOF
5006
cat confdefs.h >>conftest.$ac_ext
5007
cat >>conftest.$ac_ext <<_ACEOF
5008
/* end confdefs.h. */
5010
# include <limits.h>
5012
# include <assert.h>
5016
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5017
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5019
grep -v '^ *+' conftest.er1 >conftest.err
5021
cat conftest.err >&5
5022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023
(exit $ac_status); } >/dev/null; then
5024
if test -s conftest.err; then
5025
ac_cpp_err=$ac_cxx_preproc_warn_flag
5026
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5033
if test -z "$ac_cpp_err"; then
5036
echo "$as_me: failed program was:" >&5
5037
sed 's/^/| /' conftest.$ac_ext >&5
5039
# Broken: fails on valid input.
5042
rm -f conftest.err conftest.$ac_ext
5044
# OK, works on sane cases. Now check whether non-existent headers
5045
# can be detected and how.
5046
cat >conftest.$ac_ext <<_ACEOF
5049
cat confdefs.h >>conftest.$ac_ext
5050
cat >>conftest.$ac_ext <<_ACEOF
5051
/* end confdefs.h. */
5052
#include <ac_nonexistent.h>
5054
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5055
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5057
grep -v '^ *+' conftest.er1 >conftest.err
5059
cat conftest.err >&5
5060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061
(exit $ac_status); } >/dev/null; then
5062
if test -s conftest.err; then
5063
ac_cpp_err=$ac_cxx_preproc_warn_flag
5064
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5071
if test -z "$ac_cpp_err"; then
5072
# Broken: success on invalid input.
5075
echo "$as_me: failed program was:" >&5
5076
sed 's/^/| /' conftest.$ac_ext >&5
5078
# Passes both tests.
5082
rm -f conftest.err conftest.$ac_ext
5085
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5086
rm -f conftest.err conftest.$ac_ext
5087
if $ac_preproc_ok; then
5092
ac_cv_prog_CXXCPP=$CXXCPP
5095
CXXCPP=$ac_cv_prog_CXXCPP
5097
ac_cv_prog_CXXCPP=$CXXCPP
5099
echo "$as_me:$LINENO: result: $CXXCPP" >&5
5100
echo "${ECHO_T}$CXXCPP" >&6
5102
for ac_cxx_preproc_warn_flag in '' yes
5104
# Use a header file that comes with gcc, so configuring glibc
5105
# with a fresh cross-compiler works.
5106
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5107
# <limits.h> exists even on freestanding compilers.
5108
# On the NeXT, cc -E runs the code through the compiler's parser,
5109
# not just through cpp. "Syntax error" is here to catch this case.
5110
cat >conftest.$ac_ext <<_ACEOF
5113
cat confdefs.h >>conftest.$ac_ext
5114
cat >>conftest.$ac_ext <<_ACEOF
5115
/* end confdefs.h. */
5117
# include <limits.h>
5119
# include <assert.h>
5123
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5124
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5126
grep -v '^ *+' conftest.er1 >conftest.err
5128
cat conftest.err >&5
5129
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130
(exit $ac_status); } >/dev/null; then
5131
if test -s conftest.err; then
5132
ac_cpp_err=$ac_cxx_preproc_warn_flag
5133
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5140
if test -z "$ac_cpp_err"; then
5143
echo "$as_me: failed program was:" >&5
5144
sed 's/^/| /' conftest.$ac_ext >&5
5146
# Broken: fails on valid input.
5149
rm -f conftest.err conftest.$ac_ext
5151
# OK, works on sane cases. Now check whether non-existent headers
5152
# can be detected and how.
5153
cat >conftest.$ac_ext <<_ACEOF
5156
cat confdefs.h >>conftest.$ac_ext
5157
cat >>conftest.$ac_ext <<_ACEOF
5158
/* end confdefs.h. */
5159
#include <ac_nonexistent.h>
5161
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5162
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5164
grep -v '^ *+' conftest.er1 >conftest.err
5166
cat conftest.err >&5
5167
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168
(exit $ac_status); } >/dev/null; then
5169
if test -s conftest.err; then
5170
ac_cpp_err=$ac_cxx_preproc_warn_flag
5171
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5178
if test -z "$ac_cpp_err"; then
5179
# Broken: success on invalid input.
5182
echo "$as_me: failed program was:" >&5
5183
sed 's/^/| /' conftest.$ac_ext >&5
5185
# Passes both tests.
5189
rm -f conftest.err conftest.$ac_ext
5192
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5193
rm -f conftest.err conftest.$ac_ext
5194
if $ac_preproc_ok; then
5197
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5198
See \`config.log' for more details." >&5
5199
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5200
See \`config.log' for more details." >&2;}
5201
{ (exit 1); exit 1; }; }
5205
ac_cpp='$CXXCPP $CPPFLAGS'
5206
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5207
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5208
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5214
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5215
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5216
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5217
if test -n "$ac_tool_prefix"; then
5218
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5220
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5221
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5222
echo "$as_me:$LINENO: checking for $ac_word" >&5
5223
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5224
if test "${ac_cv_prog_F77+set}" = set; then
5225
echo $ECHO_N "(cached) $ECHO_C" >&6
5227
if test -n "$F77"; then
5228
ac_cv_prog_F77="$F77" # Let the user override the test.
5230
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234
test -z "$as_dir" && as_dir=.
5235
for ac_exec_ext in '' $ac_executable_extensions; do
5236
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5238
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247
if test -n "$F77"; then
5248
echo "$as_me:$LINENO: result: $F77" >&5
5249
echo "${ECHO_T}$F77" >&6
5251
echo "$as_me:$LINENO: result: no" >&5
5252
echo "${ECHO_T}no" >&6
5255
test -n "$F77" && break
5258
if test -z "$F77"; then
5260
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5262
# Extract the first word of "$ac_prog", so it can be a program name with args.
5263
set dummy $ac_prog; ac_word=$2
5264
echo "$as_me:$LINENO: checking for $ac_word" >&5
5265
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5266
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5267
echo $ECHO_N "(cached) $ECHO_C" >&6
5269
if test -n "$ac_ct_F77"; then
5270
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5272
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276
test -z "$as_dir" && as_dir=.
5277
for ac_exec_ext in '' $ac_executable_extensions; do
5278
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5279
ac_cv_prog_ac_ct_F77="$ac_prog"
5280
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5288
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5289
if test -n "$ac_ct_F77"; then
5290
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5291
echo "${ECHO_T}$ac_ct_F77" >&6
5293
echo "$as_me:$LINENO: result: no" >&5
5294
echo "${ECHO_T}no" >&6
5297
test -n "$ac_ct_F77" && break
5304
# Provide some information about the compiler.
5305
echo "$as_me:5305:" \
5306
"checking for Fortran 77 compiler version" >&5
5307
ac_compiler=`set X $ac_compile; echo $2`
5308
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5309
(eval $ac_compiler --version </dev/null >&5) 2>&5
5311
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312
(exit $ac_status); }
5313
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5314
(eval $ac_compiler -v </dev/null >&5) 2>&5
5316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317
(exit $ac_status); }
5318
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5319
(eval $ac_compiler -V </dev/null >&5) 2>&5
5321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322
(exit $ac_status); }
5325
# If we don't use `.F' as extension, the preprocessor is not run on the
5326
# input file. (Note that this only needs to work for GNU compilers.)
5329
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5330
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5331
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5332
echo $ECHO_N "(cached) $ECHO_C" >&6
5334
cat >conftest.$ac_ext <<_ACEOF
5342
rm -f conftest.$ac_objext
5343
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5344
(eval $ac_compile) 2>conftest.er1
5346
grep -v '^ *+' conftest.er1 >conftest.err
5348
cat conftest.err >&5
5349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350
(exit $ac_status); } &&
5351
{ ac_try='test -z "$ac_f77_werror_flag"
5352
|| test ! -s conftest.err'
5353
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357
(exit $ac_status); }; } &&
5358
{ ac_try='test -s conftest.$ac_objext'
5359
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363
(exit $ac_status); }; }; then
5366
echo "$as_me: failed program was:" >&5
5367
sed 's/^/| /' conftest.$ac_ext >&5
5371
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5372
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5375
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5376
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5378
ac_test_FFLAGS=${FFLAGS+set}
5379
ac_save_FFLAGS=$FFLAGS
5381
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5382
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5383
if test "${ac_cv_prog_f77_g+set}" = set; then
5384
echo $ECHO_N "(cached) $ECHO_C" >&6
5387
cat >conftest.$ac_ext <<_ACEOF
5392
rm -f conftest.$ac_objext
5393
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5394
(eval $ac_compile) 2>conftest.er1
5396
grep -v '^ *+' conftest.er1 >conftest.err
5398
cat conftest.err >&5
5399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400
(exit $ac_status); } &&
5401
{ ac_try='test -z "$ac_f77_werror_flag"
5402
|| test ! -s conftest.err'
5403
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407
(exit $ac_status); }; } &&
5408
{ ac_try='test -s conftest.$ac_objext'
5409
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413
(exit $ac_status); }; }; then
5414
ac_cv_prog_f77_g=yes
5416
echo "$as_me: failed program was:" >&5
5417
sed 's/^/| /' conftest.$ac_ext >&5
5421
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5424
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5425
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5426
if test "$ac_test_FFLAGS" = set; then
5427
FFLAGS=$ac_save_FFLAGS
5428
elif test $ac_cv_prog_f77_g = yes; then
5429
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5435
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5442
G77=`test $ac_compiler_gnu = yes && echo yes`
5444
ac_cpp='$CPP $CPPFLAGS'
5445
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5446
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5447
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5451
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5453
# find the maximum length of command line arguments
5454
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5455
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5456
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5457
echo $ECHO_N "(cached) $ECHO_C" >&6
5464
# On DJGPP, this test can blow up pretty badly due to problems in libc
5465
# (any single argument exceeding 2000 bytes causes a buffer overrun
5466
# during glob expansion). Even if it were fixed, the result of this
5467
# check would be larger than it should be.
5468
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5472
# Under GNU Hurd, this test is not required because there is
5473
# no limit to the length of command line arguments.
5474
# Libtool will interpret -1 as no limit whatsoever
5475
lt_cv_sys_max_cmd_len=-1;
5479
# On Win9x/ME, this test blows up -- it succeeds, but takes
5480
# about 5 minutes as the teststring grows exponentially.
5481
# Worse, since 9x/ME are not pre-emptively multitasking,
5482
# you end up with a "frozen" computer, even though with patience
5483
# the test eventually succeeds (with a max line length of 256k).
5484
# Instead, let's just punt: use the minimum linelength reported by
5485
# all of the supported platforms: 8192 (on NT/2K/XP).
5486
lt_cv_sys_max_cmd_len=8192;
5490
# On AmigaOS with pdksh, this test takes hours, literally.
5491
# So we just punt and use a minimum line length of 8192.
5492
lt_cv_sys_max_cmd_len=8192;
5495
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5496
# This has been around since 386BSD, at least. Likely further.
5497
if test -x /sbin/sysctl; then
5498
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5499
elif test -x /usr/sbin/sysctl; then
5500
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5502
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5504
# And add a safety zone
5505
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5506
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5510
# We know the value 262144 and hardcode it with a safety zone (like BSD)
5511
lt_cv_sys_max_cmd_len=196608
5515
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5516
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5517
# nice to cause kernel panics so lets avoid the loop below.
5518
# First set a reasonable default.
5519
lt_cv_sys_max_cmd_len=16384
5521
if test -x /sbin/sysconfig; then
5522
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5523
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5528
lt_cv_sys_max_cmd_len=102400
5530
sysv5* | sco5v6* | sysv4.2uw2*)
5531
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5532
if test -n "$kargmax"; then
5533
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5535
lt_cv_sys_max_cmd_len=32768
5539
# If test is not a shell built-in, we'll probably end up computing a
5540
# maximum length that is only half of the actual maximum length, but
5542
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5543
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5544
= "XX$teststring") >/dev/null 2>&1 &&
5545
new_result=`expr "X$teststring" : ".*" 2>&1` &&
5546
lt_cv_sys_max_cmd_len=$new_result &&
5547
test $i != 17 # 1/2 MB should be enough
5550
teststring=$teststring$teststring
5553
# Add a significant safety factor because C++ compilers can tack on massive
5554
# amounts of additional arguments before passing them to the linker.
5555
# It appears as though 1/2 is a usable value.
5556
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5562
if test -n $lt_cv_sys_max_cmd_len ; then
5563
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5564
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5566
echo "$as_me:$LINENO: result: none" >&5
5567
echo "${ECHO_T}none" >&6
5573
# Check for command to grab the raw symbol name followed by C symbol from nm.
5574
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5575
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5576
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5577
echo $ECHO_N "(cached) $ECHO_C" >&6
5580
# These are sane defaults that work on at least a few old systems.
5581
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5583
# Character class describing NM global symbol codes.
5584
symcode='[BCDEGRST]'
5586
# Regexp to match symbols that can be accessed directly from C.
5587
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5589
# Transform an extracted symbol line into a proper C declaration
5590
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5592
# Transform an extracted symbol line into symbol name and symbol address
5593
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5595
# Define system-specific variables.
5600
cygwin* | mingw* | pw32*)
5601
symcode='[ABCDGISTW]'
5603
hpux*) # Its linker distinguishes data from code symbols
5604
if test "$host_cpu" = ia64; then
5605
symcode='[ABCDEGRST]'
5607
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5608
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5611
if test "$host_cpu" = ia64; then
5612
symcode='[ABCDGIRSTW]'
5613
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5614
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5618
symcode='[BCDEGRST]'
5621
symcode='[BCDEGQRST]'
5632
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5640
# Handle CRLF in mingw tool chain
5644
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5648
# If we're using GNU nm, then use its standard symbol codes.
5649
case `$NM -V 2>&1` in
5650
*GNU* | *'with BFD'*)
5651
symcode='[ABCDGIRSTW]' ;;
5654
# Try without a prefix undercore, then with it.
5655
for ac_symprfx in "" "_"; do
5657
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5658
symxfrm="\\1 $ac_symprfx\\2 \\2"
5660
# Write the raw and C identifiers.
5661
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5663
# Check to see that the pipe works correctly.
5667
cat > conftest.$ac_ext <<EOF
5672
void nm_test_func(){}
5676
int main(){nm_test_var='a';nm_test_func();return(0);}
5679
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5680
(eval $ac_compile) 2>&5
5682
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683
(exit $ac_status); }; then
5684
# Now try to grab the symbols.
5686
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5687
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690
(exit $ac_status); } && test -s "$nlist"; then
5691
# Try sorting and uniquifying the output.
5692
if sort "$nlist" | uniq > "$nlist"T; then
5693
mv -f "$nlist"T "$nlist"
5698
# Make sure that we snagged all the symbols we need.
5699
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5700
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5701
cat <<EOF > conftest.$ac_ext
5707
# Now generate the symbol file.
5708
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5710
cat <<EOF >> conftest.$ac_ext
5711
#if defined (__STDC__) && __STDC__
5712
# define lt_ptr_t void *
5714
# define lt_ptr_t char *
5718
/* The mapping between symbol names and symbols. */
5723
lt_preloaded_symbols[] =
5726
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5727
cat <<\EOF >> conftest.$ac_ext
5735
# Now try linking the two files.
5736
mv conftest.$ac_objext conftstm.$ac_objext
5737
lt_save_LIBS="$LIBS"
5738
lt_save_CFLAGS="$CFLAGS"
5739
LIBS="conftstm.$ac_objext"
5740
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5741
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5742
(eval $ac_link) 2>&5
5744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745
(exit $ac_status); } && test -s conftest${ac_exeext}; then
5748
LIBS="$lt_save_LIBS"
5749
CFLAGS="$lt_save_CFLAGS"
5751
echo "cannot find nm_test_func in $nlist" >&5
5754
echo "cannot find nm_test_var in $nlist" >&5
5757
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5760
echo "$progname: failed program was:" >&5
5761
cat conftest.$ac_ext >&5
5763
rm -f conftest* conftst*
5765
# Do not use the global_symbol_pipe unless it works.
5766
if test "$pipe_works" = yes; then
5769
lt_cv_sys_global_symbol_pipe=
5775
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5776
lt_cv_sys_global_symbol_to_cdecl=
5778
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5779
echo "$as_me:$LINENO: result: failed" >&5
5780
echo "${ECHO_T}failed" >&6
5782
echo "$as_me:$LINENO: result: ok" >&5
5783
echo "${ECHO_T}ok" >&6
5786
echo "$as_me:$LINENO: checking for objdir" >&5
5787
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5788
if test "${lt_cv_objdir+set}" = set; then
5789
echo $ECHO_N "(cached) $ECHO_C" >&6
5791
rm -f .libs 2>/dev/null
5792
mkdir .libs 2>/dev/null
5793
if test -d .libs; then
5796
# MS-DOS does not allow filenames that begin with a dot.
5799
rmdir .libs 2>/dev/null
5801
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5802
echo "${ECHO_T}$lt_cv_objdir" >&6
5803
objdir=$lt_cv_objdir
5811
# AIX sometimes has problems with the GCC collect2 program. For some
5812
# reason, if we set the COLLECT_NAMES environment variable, the problems
5813
# vanish in a puff of smoke.
5814
if test "X${COLLECT_NAMES+set}" != Xset; then
5816
export COLLECT_NAMES
5821
# Sed substitution that helps us do robust quoting. It backslashifies
5822
# metacharacters that are still active within double-quoted strings.
5823
Xsed='sed -e 1s/^X//'
5824
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5826
# Same as above, but do not quote variable references.
5827
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5829
# Sed substitution to delay expansion of an escaped shell variable in a
5830
# double_quote_subst'ed string.
5831
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5833
# Sed substitution to avoid accidental globbing in evaled expressions
5834
no_glob_subst='s/\*/\\\*/g'
5840
default_ofile=libtool
5841
can_build_shared=yes
5843
# All known linkers require a `.a' archive for static linking (except MSVC,
5844
# which needs '.lib').
5846
ltmain="$ac_aux_dir/ltmain.sh"
5847
ofile="$default_ofile"
5848
with_gnu_ld="$lt_cv_prog_gnu_ld"
5850
if test -n "$ac_tool_prefix"; then
5851
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5852
set dummy ${ac_tool_prefix}ar; ac_word=$2
5853
echo "$as_me:$LINENO: checking for $ac_word" >&5
5854
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5855
if test "${ac_cv_prog_AR+set}" = set; then
5856
echo $ECHO_N "(cached) $ECHO_C" >&6
5858
if test -n "$AR"; then
5859
ac_cv_prog_AR="$AR" # Let the user override the test.
5861
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865
test -z "$as_dir" && as_dir=.
5866
for ac_exec_ext in '' $ac_executable_extensions; do
5867
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5868
ac_cv_prog_AR="${ac_tool_prefix}ar"
5869
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5878
if test -n "$AR"; then
5879
echo "$as_me:$LINENO: result: $AR" >&5
5880
echo "${ECHO_T}$AR" >&6
5882
echo "$as_me:$LINENO: result: no" >&5
5883
echo "${ECHO_T}no" >&6
5887
if test -z "$ac_cv_prog_AR"; then
5889
# Extract the first word of "ar", so it can be a program name with args.
5890
set dummy ar; ac_word=$2
5891
echo "$as_me:$LINENO: checking for $ac_word" >&5
5892
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5893
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5894
echo $ECHO_N "(cached) $ECHO_C" >&6
5896
if test -n "$ac_ct_AR"; then
5897
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5899
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903
test -z "$as_dir" && as_dir=.
5904
for ac_exec_ext in '' $ac_executable_extensions; do
5905
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5906
ac_cv_prog_ac_ct_AR="ar"
5907
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5913
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5916
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5917
if test -n "$ac_ct_AR"; then
5918
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5919
echo "${ECHO_T}$ac_ct_AR" >&6
5921
echo "$as_me:$LINENO: result: no" >&5
5922
echo "${ECHO_T}no" >&6
5930
if test -n "$ac_tool_prefix"; then
5931
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5932
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5933
echo "$as_me:$LINENO: checking for $ac_word" >&5
5934
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5935
if test "${ac_cv_prog_RANLIB+set}" = set; then
5936
echo $ECHO_N "(cached) $ECHO_C" >&6
5938
if test -n "$RANLIB"; then
5939
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5941
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945
test -z "$as_dir" && as_dir=.
5946
for ac_exec_ext in '' $ac_executable_extensions; do
5947
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5948
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5949
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5957
RANLIB=$ac_cv_prog_RANLIB
5958
if test -n "$RANLIB"; then
5959
echo "$as_me:$LINENO: result: $RANLIB" >&5
5960
echo "${ECHO_T}$RANLIB" >&6
5962
echo "$as_me:$LINENO: result: no" >&5
5963
echo "${ECHO_T}no" >&6
5967
if test -z "$ac_cv_prog_RANLIB"; then
5968
ac_ct_RANLIB=$RANLIB
5969
# Extract the first word of "ranlib", so it can be a program name with args.
5970
set dummy ranlib; ac_word=$2
5971
echo "$as_me:$LINENO: checking for $ac_word" >&5
5972
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5973
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5974
echo $ECHO_N "(cached) $ECHO_C" >&6
5976
if test -n "$ac_ct_RANLIB"; then
5977
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5979
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983
test -z "$as_dir" && as_dir=.
5984
for ac_exec_ext in '' $ac_executable_extensions; do
5985
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5986
ac_cv_prog_ac_ct_RANLIB="ranlib"
5987
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5993
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5996
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5997
if test -n "$ac_ct_RANLIB"; then
5998
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5999
echo "${ECHO_T}$ac_ct_RANLIB" >&6
6001
echo "$as_me:$LINENO: result: no" >&5
6002
echo "${ECHO_T}no" >&6
6005
RANLIB=$ac_ct_RANLIB
6007
RANLIB="$ac_cv_prog_RANLIB"
6010
if test -n "$ac_tool_prefix"; then
6011
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6012
set dummy ${ac_tool_prefix}strip; ac_word=$2
6013
echo "$as_me:$LINENO: checking for $ac_word" >&5
6014
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6015
if test "${ac_cv_prog_STRIP+set}" = set; then
6016
echo $ECHO_N "(cached) $ECHO_C" >&6
6018
if test -n "$STRIP"; then
6019
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6021
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025
test -z "$as_dir" && as_dir=.
6026
for ac_exec_ext in '' $ac_executable_extensions; do
6027
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6028
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6029
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6037
STRIP=$ac_cv_prog_STRIP
6038
if test -n "$STRIP"; then
6039
echo "$as_me:$LINENO: result: $STRIP" >&5
6040
echo "${ECHO_T}$STRIP" >&6
6042
echo "$as_me:$LINENO: result: no" >&5
6043
echo "${ECHO_T}no" >&6
6047
if test -z "$ac_cv_prog_STRIP"; then
6049
# Extract the first word of "strip", so it can be a program name with args.
6050
set dummy strip; ac_word=$2
6051
echo "$as_me:$LINENO: checking for $ac_word" >&5
6052
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6053
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6054
echo $ECHO_N "(cached) $ECHO_C" >&6
6056
if test -n "$ac_ct_STRIP"; then
6057
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6059
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063
test -z "$as_dir" && as_dir=.
6064
for ac_exec_ext in '' $ac_executable_extensions; do
6065
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6066
ac_cv_prog_ac_ct_STRIP="strip"
6067
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6073
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6076
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6077
if test -n "$ac_ct_STRIP"; then
6078
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6079
echo "${ECHO_T}$ac_ct_STRIP" >&6
6081
echo "$as_me:$LINENO: result: no" >&5
6082
echo "${ECHO_T}no" >&6
6087
STRIP="$ac_cv_prog_STRIP"
6092
old_CFLAGS="$CFLAGS"
6094
# Set sane defaults for various variables
6095
test -z "$AR" && AR=ar
6096
test -z "$AR_FLAGS" && AR_FLAGS=cru
6097
test -z "$AS" && AS=as
6098
test -z "$CC" && CC=cc
6099
test -z "$LTCC" && LTCC=$CC
6100
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6101
test -z "$DLLTOOL" && DLLTOOL=dlltool
6102
test -z "$LD" && LD=ld
6103
test -z "$LN_S" && LN_S="ln -s"
6104
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6105
test -z "$NM" && NM=nm
6106
test -z "$SED" && SED=sed
6107
test -z "$OBJDUMP" && OBJDUMP=objdump
6108
test -z "$RANLIB" && RANLIB=:
6109
test -z "$STRIP" && STRIP=:
6110
test -z "$ac_objext" && ac_objext=o
6112
# Determine commands to create old-style static archives.
6113
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6114
old_postinstall_cmds='chmod 644 $oldlib'
6115
old_postuninstall_cmds=
6117
if test -n "$RANLIB"; then
6120
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6123
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6126
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6129
for cc_temp in $compiler""; do
6131
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6132
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6137
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6140
# Only perform the check for file, if the check method requires it
6141
case $deplibs_check_method in
6143
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6144
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6145
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6146
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6147
echo $ECHO_N "(cached) $ECHO_C" >&6
6151
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6154
lt_save_MAGIC_CMD="$MAGIC_CMD"
6155
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6156
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6157
for ac_dir in $ac_dummy; do
6159
test -z "$ac_dir" && ac_dir=.
6160
if test -f $ac_dir/${ac_tool_prefix}file; then
6161
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6162
if test -n "$file_magic_test_file"; then
6163
case $deplibs_check_method in
6165
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6166
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6167
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6168
$EGREP "$file_magic_regex" > /dev/null; then
6173
*** Warning: the command libtool uses to detect shared libraries,
6174
*** $file_magic_cmd, produces output that libtool cannot recognize.
6175
*** The result is that libtool may fail to recognize shared libraries
6176
*** as such. This will affect the creation of libtool libraries that
6177
*** depend on shared libraries, but programs linked with such libtool
6178
*** libraries will work regardless of this problem. Nevertheless, you
6179
*** may want to report the problem to your system manager and/or to
6180
*** bug-libtool@gnu.org
6190
MAGIC_CMD="$lt_save_MAGIC_CMD"
6195
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6196
if test -n "$MAGIC_CMD"; then
6197
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6198
echo "${ECHO_T}$MAGIC_CMD" >&6
6200
echo "$as_me:$LINENO: result: no" >&5
6201
echo "${ECHO_T}no" >&6
6204
if test -z "$lt_cv_path_MAGIC_CMD"; then
6205
if test -n "$ac_tool_prefix"; then
6206
echo "$as_me:$LINENO: checking for file" >&5
6207
echo $ECHO_N "checking for file... $ECHO_C" >&6
6208
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6209
echo $ECHO_N "(cached) $ECHO_C" >&6
6213
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6216
lt_save_MAGIC_CMD="$MAGIC_CMD"
6217
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6218
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6219
for ac_dir in $ac_dummy; do
6221
test -z "$ac_dir" && ac_dir=.
6222
if test -f $ac_dir/file; then
6223
lt_cv_path_MAGIC_CMD="$ac_dir/file"
6224
if test -n "$file_magic_test_file"; then
6225
case $deplibs_check_method in
6227
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6228
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6229
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6230
$EGREP "$file_magic_regex" > /dev/null; then
6235
*** Warning: the command libtool uses to detect shared libraries,
6236
*** $file_magic_cmd, produces output that libtool cannot recognize.
6237
*** The result is that libtool may fail to recognize shared libraries
6238
*** as such. This will affect the creation of libtool libraries that
6239
*** depend on shared libraries, but programs linked with such libtool
6240
*** libraries will work regardless of this problem. Nevertheless, you
6241
*** may want to report the problem to your system manager and/or to
6242
*** bug-libtool@gnu.org
6252
MAGIC_CMD="$lt_save_MAGIC_CMD"
6257
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6258
if test -n "$MAGIC_CMD"; then
6259
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6260
echo "${ECHO_T}$MAGIC_CMD" >&6
6262
echo "$as_me:$LINENO: result: no" >&5
6263
echo "${ECHO_T}no" >&6
6278
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6279
if test "${enable_libtool_lock+set}" = set; then
6280
enableval="$enable_libtool_lock"
6283
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6286
# Check whether --with-pic or --without-pic was given.
6287
if test "${with_pic+set}" = set; then
6293
test -z "$pic_mode" && pic_mode=default
6295
# Use C for the default configuration in the libtool script
6299
ac_cpp='$CPP $CPPFLAGS'
6300
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6301
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6302
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6305
# Source file extension for C test sources.
6308
# Object file extension for compiled C test sources.
6312
# Code to be used in simple compile tests
6313
lt_simple_compile_test_code="int some_variable = 0;\n"
6315
# Code to be used in simple link tests
6316
lt_simple_link_test_code='int main(){return(0);}\n'
6319
# If no C compiler was specified, use CC.
6322
# If no C compiler flags were specified, use CFLAGS.
6323
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6325
# Allow CC to be a program name with arguments.
6329
# save warnings/boilerplate of simple test code
6330
ac_outfile=conftest.$ac_objext
6331
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6332
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6333
_lt_compiler_boilerplate=`cat conftest.err`
6336
ac_outfile=conftest.$ac_objext
6337
printf "$lt_simple_link_test_code" >conftest.$ac_ext
6338
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6339
_lt_linker_boilerplate=`cat conftest.err`
6344
lt_prog_compiler_no_builtin_flag=
6346
if test "$GCC" = yes; then
6347
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6350
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6351
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6352
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6353
echo $ECHO_N "(cached) $ECHO_C" >&6
6355
lt_cv_prog_compiler_rtti_exceptions=no
6356
ac_outfile=conftest.$ac_objext
6357
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6358
lt_compiler_flag="-fno-rtti -fno-exceptions"
6359
# Insert the option either (1) after the last *FLAGS variable, or
6360
# (2) before a word containing "conftest.", or (3) at the end.
6361
# Note that $ac_compile itself does not contain backslashes and begins
6362
# with a dollar sign (not a hyphen), so the echo should work correctly.
6363
# The option is referenced via a variable to avoid confusing sed.
6364
lt_compile=`echo "$ac_compile" | $SED \
6365
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6366
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6367
-e 's:$: $lt_compiler_flag:'`
6368
(eval echo "\"\$as_me:6368: $lt_compile\"" >&5)
6369
(eval "$lt_compile" 2>conftest.err)
6371
cat conftest.err >&5
6372
echo "$as_me:6372: \$? = $ac_status" >&5
6373
if (exit $ac_status) && test -s "$ac_outfile"; then
6374
# The compiler can only warn and ignore the option if not recognized
6375
# So say no if there are warnings other than the usual output.
6376
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6377
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6378
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6379
lt_cv_prog_compiler_rtti_exceptions=yes
6385
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6386
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6388
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6389
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6396
lt_prog_compiler_wl=
6397
lt_prog_compiler_pic=
6398
lt_prog_compiler_static=
6400
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6401
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6403
if test "$GCC" = yes; then
6404
lt_prog_compiler_wl='-Wl,'
6405
lt_prog_compiler_static='-static'
6409
# All AIX code is PIC.
6410
if test "$host_cpu" = ia64; then
6411
# AIX 5 now supports IA64 processor
6412
lt_prog_compiler_static='-Bstatic'
6417
# FIXME: we need at least 68020 code to build shared libraries, but
6418
# adding the `-m68020' flag to GCC prevents building anything better,
6420
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6423
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6424
# PIC is the default for these OSes.
6427
mingw* | pw32* | os2*)
6428
# This hack is so that the source file can tell whether it is being
6429
# built for inclusion in a dll (and should export symbols for example).
6430
lt_prog_compiler_pic='-DDLL_EXPORT'
6433
darwin* | rhapsody*)
6434
# PIC is the default on this platform
6435
# Common symbols not allowed in MH_DYLIB files
6436
lt_prog_compiler_pic='-fno-common'
6440
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
6441
# Instead, we relocate shared libraries at runtime.
6445
# Just because we use GCC doesn't mean we suddenly get shared libraries
6446
# on systems that don't support them.
6447
lt_prog_compiler_can_build_shared=no
6452
if test -d /usr/nec; then
6453
lt_prog_compiler_pic=-Kconform_pic
6458
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6465
lt_prog_compiler_pic='-fPIC'
6471
lt_prog_compiler_pic='-fPIC'
6475
# PORTME Check for flag to pass linker flags through the system compiler.
6478
lt_prog_compiler_wl='-Wl,'
6479
if test "$host_cpu" = ia64; then
6480
# AIX 5 now supports IA64 processor
6481
lt_prog_compiler_static='-Bstatic'
6483
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6487
# PIC is the default on this platform
6488
# Common symbols not allowed in MH_DYLIB files
6489
case $cc_basename in
6491
lt_prog_compiler_pic='-qnocommon'
6492
lt_prog_compiler_wl='-Wl,'
6497
mingw* | pw32* | os2*)
6498
# This hack is so that the source file can tell whether it is being
6499
# built for inclusion in a dll (and should export symbols for example).
6500
lt_prog_compiler_pic='-DDLL_EXPORT'
6503
hpux9* | hpux10* | hpux11*)
6504
lt_prog_compiler_wl='-Wl,'
6505
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6512
lt_prog_compiler_pic='+Z'
6515
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6516
lt_prog_compiler_static='${wl}-a ${wl}archive'
6519
irix5* | irix6* | nonstopux*)
6520
lt_prog_compiler_wl='-Wl,'
6521
# PIC (with -KPIC) is the default.
6522
lt_prog_compiler_static='-non_shared'
6526
lt_prog_compiler_pic='-KPIC'
6527
lt_prog_compiler_static='-Bstatic'
6531
case $cc_basename in
6533
lt_prog_compiler_wl='-Wl,'
6534
lt_prog_compiler_pic='-KPIC'
6535
lt_prog_compiler_static='-static'
6537
pgcc* | pgf77* | pgf90* | pgf95*)
6538
# Portland Group compilers (*not* the Pentium gcc compiler,
6539
# which looks to be a dead project)
6540
lt_prog_compiler_wl='-Wl,'
6541
lt_prog_compiler_pic='-fpic'
6542
lt_prog_compiler_static='-Bstatic'
6545
lt_prog_compiler_wl='-Wl,'
6546
# All Alpha code is PIC.
6547
lt_prog_compiler_static='-non_shared'
6552
osf3* | osf4* | osf5*)
6553
lt_prog_compiler_wl='-Wl,'
6554
# All OSF/1 code is PIC.
6555
lt_prog_compiler_static='-non_shared'
6559
lt_prog_compiler_pic='-KPIC'
6560
lt_prog_compiler_static='-Bstatic'
6561
case $cc_basename in
6563
lt_prog_compiler_wl='-Qoption ld ';;
6565
lt_prog_compiler_wl='-Wl,';;
6570
lt_prog_compiler_wl='-Qoption ld '
6571
lt_prog_compiler_pic='-PIC'
6572
lt_prog_compiler_static='-Bstatic'
6575
sysv4 | sysv4.2uw2* | sysv4.3*)
6576
lt_prog_compiler_wl='-Wl,'
6577
lt_prog_compiler_pic='-KPIC'
6578
lt_prog_compiler_static='-Bstatic'
6582
if test -d /usr/nec ;then
6583
lt_prog_compiler_pic='-Kconform_pic'
6584
lt_prog_compiler_static='-Bstatic'
6588
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6589
lt_prog_compiler_wl='-Wl,'
6590
lt_prog_compiler_pic='-KPIC'
6591
lt_prog_compiler_static='-Bstatic'
6595
lt_prog_compiler_wl='-Wl,'
6596
lt_prog_compiler_can_build_shared=no
6600
lt_prog_compiler_pic='-pic'
6601
lt_prog_compiler_static='-Bstatic'
6605
lt_prog_compiler_can_build_shared=no
6610
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6611
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6614
# Check to make sure the PIC flag actually works.
6616
if test -n "$lt_prog_compiler_pic"; then
6618
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6619
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6620
if test "${lt_prog_compiler_pic_works+set}" = set; then
6621
echo $ECHO_N "(cached) $ECHO_C" >&6
6623
lt_prog_compiler_pic_works=no
6624
ac_outfile=conftest.$ac_objext
6625
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6626
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6627
# Insert the option either (1) after the last *FLAGS variable, or
6628
# (2) before a word containing "conftest.", or (3) at the end.
6629
# Note that $ac_compile itself does not contain backslashes and begins
6630
# with a dollar sign (not a hyphen), so the echo should work correctly.
6631
# The option is referenced via a variable to avoid confusing sed.
6632
lt_compile=`echo "$ac_compile" | $SED \
6633
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6634
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6635
-e 's:$: $lt_compiler_flag:'`
6636
(eval echo "\"\$as_me:6636: $lt_compile\"" >&5)
6637
(eval "$lt_compile" 2>conftest.err)
6639
cat conftest.err >&5
6640
echo "$as_me:6640: \$? = $ac_status" >&5
6641
if (exit $ac_status) && test -s "$ac_outfile"; then
6642
# The compiler can only warn and ignore the option if not recognized
6643
# So say no if there are warnings other than the usual output.
6644
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6645
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6646
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6647
lt_prog_compiler_pic_works=yes
6653
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6654
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6656
if test x"$lt_prog_compiler_pic_works" = xyes; then
6657
case $lt_prog_compiler_pic in
6659
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6662
lt_prog_compiler_pic=
6663
lt_prog_compiler_can_build_shared=no
6668
# For platforms which do not support PIC, -DPIC is meaningless:
6670
lt_prog_compiler_pic=
6673
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6678
# Check to make sure the static flag actually works.
6680
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6681
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6682
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6683
if test "${lt_prog_compiler_static_works+set}" = set; then
6684
echo $ECHO_N "(cached) $ECHO_C" >&6
6686
lt_prog_compiler_static_works=no
6687
save_LDFLAGS="$LDFLAGS"
6688
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6689
printf "$lt_simple_link_test_code" > conftest.$ac_ext
6690
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6691
# The linker can only warn and ignore the option if not recognized
6692
# So say no if there are warnings
6693
if test -s conftest.err; then
6694
# Append any errors to the config.log.
6695
cat conftest.err 1>&5
6696
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6697
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6698
if diff conftest.exp conftest.er2 >/dev/null; then
6699
lt_prog_compiler_static_works=yes
6702
lt_prog_compiler_static_works=yes
6706
LDFLAGS="$save_LDFLAGS"
6709
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6710
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6712
if test x"$lt_prog_compiler_static_works" = xyes; then
6715
lt_prog_compiler_static=
6719
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6720
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6721
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6722
echo $ECHO_N "(cached) $ECHO_C" >&6
6724
lt_cv_prog_compiler_c_o=no
6725
$rm -r conftest 2>/dev/null
6729
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6731
lt_compiler_flag="-o out/conftest2.$ac_objext"
6732
# Insert the option either (1) after the last *FLAGS variable, or
6733
# (2) before a word containing "conftest.", or (3) at the end.
6734
# Note that $ac_compile itself does not contain backslashes and begins
6735
# with a dollar sign (not a hyphen), so the echo should work correctly.
6736
lt_compile=`echo "$ac_compile" | $SED \
6737
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6738
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6739
-e 's:$: $lt_compiler_flag:'`
6740
(eval echo "\"\$as_me:6740: $lt_compile\"" >&5)
6741
(eval "$lt_compile" 2>out/conftest.err)
6743
cat out/conftest.err >&5
6744
echo "$as_me:6744: \$? = $ac_status" >&5
6745
if (exit $ac_status) && test -s out/conftest2.$ac_objext
6747
# The compiler can only warn and ignore the option if not recognized
6748
# So say no if there are warnings
6749
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6750
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6751
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6752
lt_cv_prog_compiler_c_o=yes
6757
# SGI C++ compiler will create directory out/ii_files/ for
6758
# template instantiation
6759
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6760
$rm out/* && rmdir out
6766
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6767
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6770
hard_links="nottested"
6771
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6772
# do not overwrite the value of need_locks provided by the user
6773
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6774
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6777
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6779
ln conftest.a conftest.b 2>&5 || hard_links=no
6780
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6781
echo "$as_me:$LINENO: result: $hard_links" >&5
6782
echo "${ECHO_T}$hard_links" >&6
6783
if test "$hard_links" = no; then
6784
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6785
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6792
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6793
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6796
allow_undefined_flag=
6797
enable_shared_with_static_runtimes=no
6799
archive_expsym_cmds=
6800
old_archive_From_new_cmds=
6801
old_archive_from_expsyms_cmds=
6802
export_dynamic_flag_spec=
6803
whole_archive_flag_spec=
6804
thread_safe_flag_spec=
6805
hardcode_libdir_flag_spec=
6806
hardcode_libdir_flag_spec_ld=
6807
hardcode_libdir_separator=
6810
hardcode_shlibpath_var=unsupported
6811
link_all_deplibs=unknown
6812
hardcode_automatic=no
6815
always_export_symbols=no
6816
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6817
# include_expsyms should be a list of space-separated symbols to be *always*
6818
# included in the symbol list
6820
# exclude_expsyms can be an extended regexp of symbols to exclude
6821
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6822
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6823
# as well as any symbol that contains `d'.
6824
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6825
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6826
# platforms (ab)use it in PIC code, but their linkers get confused if
6827
# the symbol is explicitly referenced. Since portable code cannot
6828
# rely on this symbol name, it's probably fine to never include it in
6829
# preloaded symbol tables.
6830
extract_expsyms_cmds=
6831
# Just being paranoid about ensuring that cc_basename is set.
6832
for cc_temp in $compiler""; do
6834
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6835
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6840
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6843
cygwin* | mingw* | pw32*)
6844
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6845
# When not using gcc, we currently assume that we are using
6846
# Microsoft Visual C++.
6847
if test "$GCC" != yes; then
6852
# we just hope/assume this is gcc and not c89 (= MSVC++)
6861
if test "$with_gnu_ld" = yes; then
6862
# If archive_cmds runs LD, not CC, wlarc should be empty
6865
# Set some defaults for GNU ld with shared library support. These
6866
# are reset later if shared libraries are not supported. Putting them
6867
# here allows them to be overridden if necessary.
6868
runpath_var=LD_RUN_PATH
6869
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6870
export_dynamic_flag_spec='${wl}--export-dynamic'
6871
# ancient GNU ld didn't support --whole-archive et. al.
6872
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6873
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6875
whole_archive_flag_spec=
6877
supports_anon_versioning=no
6878
case `$LD -v 2>/dev/null` in
6879
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6880
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6881
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6882
*\ 2.11.*) ;; # other 2.11 versions
6883
*) supports_anon_versioning=yes ;;
6886
# See if GNU ld supports shared libraries.
6888
aix3* | aix4* | aix5*)
6889
# On AIX/PPC, the GNU linker is very broken
6890
if test "$host_cpu" != ia64; then
6894
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6895
*** to be unable to reliably create shared libraries on AIX.
6896
*** Therefore, libtool is disabling shared libraries support. If you
6897
*** really care for shared libraries, you may want to modify your PATH
6898
*** so that a non-GNU linker is found, and then restart.
6905
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)'
6906
hardcode_libdir_flag_spec='-L$libdir'
6907
hardcode_minus_L=yes
6909
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6910
# that the semantics of dynamic libraries on AmigaOS, at least up
6911
# to version 4, is to share data among multiple programs linked
6912
# with the same dynamic library. Since this doesn't match the
6913
# behavior of shared libraries on other platforms, we can't use
6919
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6920
allow_undefined_flag=unsupported
6921
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6922
# support --undefined. This deserves some investigation. FIXME
6923
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6929
cygwin* | mingw* | pw32*)
6930
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6931
# as there is no search path for DLLs.
6932
hardcode_libdir_flag_spec='-L$libdir'
6933
allow_undefined_flag=unsupported
6934
always_export_symbols=no
6935
enable_shared_with_static_runtimes=yes
6936
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6938
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6939
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6940
# If the export-symbols file already is a .def file (1st line
6941
# is EXPORTS), use it as is; otherwise, prepend...
6942
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6943
cp $export_symbols $output_objdir/$soname.def;
6945
echo EXPORTS > $output_objdir/$soname.def;
6946
cat $export_symbols >> $output_objdir/$soname.def;
6948
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6956
hardcode_shlibpath_var=no
6957
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6958
export_dynamic_flag_spec='${wl}-E'
6959
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6960
# Instead, shared libraries are loaded at an image base (0x10000000 by
6961
# default) and relocated if they conflict, which is a slow very memory
6962
# consuming and fragmenting process. To avoid this, we pick a random,
6963
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6964
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6965
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6966
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'
6970
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6972
case $cc_basename,$host_cpu in
6973
pgcc*) # Portland Group C compiler
6974
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'
6975
tmp_addflag=' $pic_flag'
6977
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6978
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'
6979
tmp_addflag=' $pic_flag -Mnomain' ;;
6980
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6981
tmp_addflag=' -i_dynamic' ;;
6982
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6983
tmp_addflag=' -i_dynamic -nofor_main' ;;
6984
ifc* | ifort*) # Intel Fortran compiler
6985
tmp_addflag=' -nofor_main' ;;
6987
archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6989
if test $supports_anon_versioning = yes; then
6990
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6991
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6992
$echo "local: *; };" >> $output_objdir/$libname.ver~
6993
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7001
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7002
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7005
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7006
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7011
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7015
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7016
*** create shared libraries on Solaris systems. Therefore, libtool
7017
*** is disabling shared libraries support. We urge you to upgrade GNU
7018
*** binutils to release 2.9.1 or newer. Another option is to modify
7019
*** your PATH or compiler configuration so that the native linker is
7020
*** used, and then restart.
7023
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7024
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7025
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7031
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7032
case `$LD -v 2>&1` in
7033
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7037
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7038
*** reliably create shared libraries on SCO systems. Therefore, libtool
7039
*** is disabling shared libraries support. We urge you to upgrade GNU
7040
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7041
*** your PATH or compiler configuration so that the native linker is
7042
*** used, and then restart.
7047
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7048
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7049
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7050
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7059
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7062
hardcode_shlibpath_var=no
7066
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7067
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7068
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7075
if test "$ld_shlibs" = no; then
7077
hardcode_libdir_flag_spec=
7078
export_dynamic_flag_spec=
7079
whole_archive_flag_spec=
7082
# PORTME fill in a description of your system's linker (not GNU ld)
7085
allow_undefined_flag=unsupported
7086
always_export_symbols=yes
7087
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'
7088
# Note: this linker hardcodes the directories in LIBPATH if there
7089
# are no directories specified by -L.
7090
hardcode_minus_L=yes
7091
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7092
# Neither direct hardcoding nor static linking is supported with a
7094
hardcode_direct=unsupported
7099
if test "$host_cpu" = ia64; then
7100
# On IA64, the linker does run time linking by default, so we don't
7101
# have to do anything special.
7102
aix_use_runtimelinking=no
7103
exp_sym_flag='-Bexport'
7106
# If we're using GNU nm, then we don't want the "-C" option.
7107
# -C means demangle to AIX nm, but means don't demangle with GNU nm
7108
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7109
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'
7111
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'
7113
aix_use_runtimelinking=no
7115
# Test if we are trying to use run time linking or normal
7116
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7117
# need to do runtime linking.
7118
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7119
for ld_flag in $LDFLAGS; do
7120
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7121
aix_use_runtimelinking=yes
7128
exp_sym_flag='-bexport'
7129
no_entry_flag='-bnoentry'
7132
# When large executables or shared objects are built, AIX ld can
7133
# have problems creating the table of contents. If linking a library
7134
# or program results in "error TOC overflow" add -mminimal-toc to
7135
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7136
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7140
hardcode_libdir_separator=':'
7141
link_all_deplibs=yes
7143
if test "$GCC" = yes; then
7144
case $host_os in aix4.[012]|aix4.[012].*)
7145
# We only want to do this on AIX 4.2 and lower, the check
7146
# below for broken collect2 doesn't work under 4.3+
7147
collect2name=`${CC} -print-prog-name=collect2`
7148
if test -f "$collect2name" && \
7149
strings "$collect2name" | grep resolve_lib_name >/dev/null
7151
# We have reworked collect2
7154
# We have old collect2
7155
hardcode_direct=unsupported
7156
# It fails to find uninstalled libraries when the uninstalled
7157
# path is not listed in the libpath. Setting hardcode_minus_L
7158
# to unsupported forces relinking
7159
hardcode_minus_L=yes
7160
hardcode_libdir_flag_spec='-L$libdir'
7161
hardcode_libdir_separator=
7165
shared_flag='-shared'
7166
if test "$aix_use_runtimelinking" = yes; then
7167
shared_flag="$shared_flag "'${wl}-G'
7171
if test "$host_cpu" = ia64; then
7172
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7173
# chokes on -Wl,-G. The following line is correct:
7176
if test "$aix_use_runtimelinking" = yes; then
7177
shared_flag='${wl}-G'
7179
shared_flag='${wl}-bM:SRE'
7184
# It seems that -bexpall does not export symbols beginning with
7185
# underscore (_), so it is better to generate a list of symbols to export.
7186
always_export_symbols=yes
7187
if test "$aix_use_runtimelinking" = yes; then
7188
# Warning - without using the other runtime loading flags (-brtl),
7189
# -berok will link without error, but may produce a broken library.
7190
allow_undefined_flag='-berok'
7191
# Determine the default libpath from the value encoded in an empty executable.
7192
cat >conftest.$ac_ext <<_ACEOF
7195
cat confdefs.h >>conftest.$ac_ext
7196
cat >>conftest.$ac_ext <<_ACEOF
7197
/* end confdefs.h. */
7207
rm -f conftest.$ac_objext conftest$ac_exeext
7208
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7209
(eval $ac_link) 2>conftest.er1
7211
grep -v '^ *+' conftest.er1 >conftest.err
7213
cat conftest.err >&5
7214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215
(exit $ac_status); } &&
7216
{ ac_try='test -z "$ac_c_werror_flag"
7217
|| test ! -s conftest.err'
7218
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222
(exit $ac_status); }; } &&
7223
{ ac_try='test -s conftest$ac_exeext'
7224
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228
(exit $ac_status); }; }; then
7230
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7232
# Check for a 64-bit object if we didn't find anything.
7233
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7236
echo "$as_me: failed program was:" >&5
7237
sed 's/^/| /' conftest.$ac_ext >&5
7240
rm -f conftest.err conftest.$ac_objext \
7241
conftest$ac_exeext conftest.$ac_ext
7242
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7244
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7245
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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7247
if test "$host_cpu" = ia64; then
7248
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7249
allow_undefined_flag="-z nodefs"
7250
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"
7252
# Determine the default libpath from the value encoded in an empty executable.
7253
cat >conftest.$ac_ext <<_ACEOF
7256
cat confdefs.h >>conftest.$ac_ext
7257
cat >>conftest.$ac_ext <<_ACEOF
7258
/* end confdefs.h. */
7268
rm -f conftest.$ac_objext conftest$ac_exeext
7269
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7270
(eval $ac_link) 2>conftest.er1
7272
grep -v '^ *+' conftest.er1 >conftest.err
7274
cat conftest.err >&5
7275
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276
(exit $ac_status); } &&
7277
{ ac_try='test -z "$ac_c_werror_flag"
7278
|| test ! -s conftest.err'
7279
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283
(exit $ac_status); }; } &&
7284
{ ac_try='test -s conftest$ac_exeext'
7285
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289
(exit $ac_status); }; }; then
7291
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7293
# Check for a 64-bit object if we didn't find anything.
7294
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7297
echo "$as_me: failed program was:" >&5
7298
sed 's/^/| /' conftest.$ac_ext >&5
7301
rm -f conftest.err conftest.$ac_objext \
7302
conftest$ac_exeext conftest.$ac_ext
7303
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7305
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7306
# Warning - without using the other run time loading flags,
7307
# -berok will link without error, but may produce a broken library.
7308
no_undefined_flag=' ${wl}-bernotok'
7309
allow_undefined_flag=' ${wl}-berok'
7310
# Exported symbols can be pulled into shared objects from archives
7311
whole_archive_flag_spec='$convenience'
7312
archive_cmds_need_lc=yes
7313
# This is similar to how AIX traditionally builds its shared libraries.
7314
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'
7320
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)'
7321
hardcode_libdir_flag_spec='-L$libdir'
7322
hardcode_minus_L=yes
7323
# see comment about different semantics on the GNU ld section
7328
export_dynamic_flag_spec=-rdynamic
7331
cygwin* | mingw* | pw32*)
7332
# When not using gcc, we currently assume that we are using
7333
# Microsoft Visual C++.
7334
# hardcode_libdir_flag_spec is actually meaningless, as there is
7335
# no search path for DLLs.
7336
hardcode_libdir_flag_spec=' '
7337
allow_undefined_flag=unsupported
7338
# Tell ltmain to make .lib files, not .a files.
7340
# Tell ltmain to make .dll files, not .so files.
7342
# FIXME: Setting linknames here is a bad hack.
7343
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7344
# The linker will automatically build a .lib file if we build a DLL.
7345
old_archive_From_new_cmds='true'
7346
# FIXME: Should let the user specify the lib program.
7347
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7348
fix_srcfile_path='`cygpath -w "$srcfile"`'
7349
enable_shared_with_static_runtimes=yes
7352
darwin* | rhapsody*)
7354
rhapsody* | darwin1.[012])
7355
allow_undefined_flag='${wl}-undefined ${wl}suppress'
7358
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7359
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7361
case ${MACOSX_DEPLOYMENT_TARGET} in
7363
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7366
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7372
archive_cmds_need_lc=no
7374
hardcode_automatic=yes
7375
hardcode_shlibpath_var=unsupported
7376
whole_archive_flag_spec=''
7377
link_all_deplibs=yes
7378
if test "$GCC" = yes ; then
7379
output_verbose_link_cmd='echo'
7380
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7381
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7382
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7383
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
7384
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
7386
case $cc_basename in
7388
output_verbose_link_cmd='echo'
7389
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7390
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7391
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7392
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
7393
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
7403
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7404
hardcode_libdir_flag_spec='-L$libdir'
7405
hardcode_shlibpath_var=no
7412
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7413
# support. Future versions do this automatically, but an explicit c++rt0.o
7414
# does not break anything, and helps significantly (at the cost of a little
7417
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7418
hardcode_libdir_flag_spec='-R$libdir'
7420
hardcode_shlibpath_var=no
7423
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
7425
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7427
hardcode_minus_L=yes
7428
hardcode_shlibpath_var=no
7431
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7432
freebsd* | kfreebsd*-gnu | dragonfly*)
7433
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7434
hardcode_libdir_flag_spec='-R$libdir'
7436
hardcode_shlibpath_var=no
7440
if test "$GCC" = yes; then
7441
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'
7443
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'
7445
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7446
hardcode_libdir_separator=:
7449
# hardcode_minus_L: Not really in the search PATH,
7450
# but as the default location of the library.
7451
hardcode_minus_L=yes
7452
export_dynamic_flag_spec='${wl}-E'
7456
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7457
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7459
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7461
if test "$with_gnu_ld" = no; then
7462
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7463
hardcode_libdir_separator=:
7466
export_dynamic_flag_spec='${wl}-E'
7468
# hardcode_minus_L: Not really in the search PATH,
7469
# but as the default location of the library.
7470
hardcode_minus_L=yes
7475
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7478
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7481
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7484
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7490
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7493
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7496
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7500
if test "$with_gnu_ld" = no; then
7501
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7502
hardcode_libdir_separator=:
7506
hardcode_libdir_flag_spec_ld='+b $libdir'
7508
hardcode_shlibpath_var=no
7512
export_dynamic_flag_spec='${wl}-E'
7514
# hardcode_minus_L: Not really in the search PATH,
7515
# but as the default location of the library.
7516
hardcode_minus_L=yes
7522
irix5* | irix6* | nonstopux*)
7523
if test "$GCC" = yes; then
7524
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7526
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7527
hardcode_libdir_flag_spec_ld='-rpath $libdir'
7529
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7530
hardcode_libdir_separator=:
7531
link_all_deplibs=yes
7535
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7536
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7538
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7540
hardcode_libdir_flag_spec='-R$libdir'
7542
hardcode_shlibpath_var=no
7546
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7548
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7549
hardcode_libdir_separator=:
7550
hardcode_shlibpath_var=no
7555
hardcode_shlibpath_var=no
7556
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7557
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7558
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7559
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7560
export_dynamic_flag_spec='${wl}-E'
7563
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7564
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7565
hardcode_libdir_flag_spec='-R$libdir'
7568
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7569
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7576
hardcode_libdir_flag_spec='-L$libdir'
7577
hardcode_minus_L=yes
7578
allow_undefined_flag=unsupported
7579
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'
7580
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7584
if test "$GCC" = yes; then
7585
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7586
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7588
allow_undefined_flag=' -expect_unresolved \*'
7589
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7591
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7592
hardcode_libdir_separator=:
7595
osf4* | osf5*) # as osf3* with the addition of -msym flag
7596
if test "$GCC" = yes; then
7597
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7598
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7599
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7601
allow_undefined_flag=' -expect_unresolved \*'
7602
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7603
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7604
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7606
# Both c and cxx compiler support -rpath directly
7607
hardcode_libdir_flag_spec='-rpath $libdir'
7609
hardcode_libdir_separator=:
7613
no_undefined_flag=' -z text'
7614
if test "$GCC" = yes; then
7616
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7617
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7618
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7621
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7622
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7623
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7625
hardcode_libdir_flag_spec='-R$libdir'
7626
hardcode_shlibpath_var=no
7628
solaris2.[0-5] | solaris2.[0-5].*) ;;
7630
# The compiler driver will combine linker options so we
7631
# cannot just pass the convience library names through
7632
# without $wl, iff we do not link with $LD.
7633
# Luckily, gcc supports the same syntax we need for Sun Studio.
7634
# Supported since Solaris 2.6 (maybe 2.5.1?)
7637
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7639
whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7642
link_all_deplibs=yes
7646
if test "x$host_vendor" = xsequent; then
7647
# Use $CC to link under sequent, because it throws in some extra .o
7648
# files that make .init and .fini sections work.
7649
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7651
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7653
hardcode_libdir_flag_spec='-L$libdir'
7655
hardcode_minus_L=yes
7656
hardcode_shlibpath_var=no
7660
case $host_vendor in
7662
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7663
hardcode_direct=yes # is this really true???
7666
## LD is ld it makes a PLAMLIB
7667
## CC just makes a GrossModule.
7668
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7669
reload_cmds='$CC -r -o $output$reload_objs'
7673
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7674
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7677
runpath_var='LD_RUN_PATH'
7678
hardcode_shlibpath_var=no
7682
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7683
hardcode_shlibpath_var=no
7684
export_dynamic_flag_spec='-Bexport'
7688
if test -d /usr/nec; then
7689
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7690
hardcode_shlibpath_var=no
7691
runpath_var=LD_RUN_PATH
7692
hardcode_runpath_var=yes
7697
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7698
no_undefined_flag='${wl}-z,text'
7699
archive_cmds_need_lc=no
7700
hardcode_shlibpath_var=no
7701
runpath_var='LD_RUN_PATH'
7703
if test "$GCC" = yes; then
7704
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7705
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7707
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7708
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7712
sysv5* | sco3.2v5* | sco5v6*)
7713
# Note: We can NOT use -z defs as we might desire, because we do not
7714
# link with -lc, and that would cause any symbols used from libc to
7715
# always be unresolved, which means just about no library would
7716
# ever link correctly. If we're not using GNU ld we use -z text
7717
# though, which does catch some bad symbols but isn't as heavy-handed
7719
no_undefined_flag='${wl}-z,text'
7720
allow_undefined_flag='${wl}-z,nodefs'
7721
archive_cmds_need_lc=no
7722
hardcode_shlibpath_var=no
7723
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7724
hardcode_libdir_separator=':'
7725
link_all_deplibs=yes
7726
export_dynamic_flag_spec='${wl}-Bexport'
7727
runpath_var='LD_RUN_PATH'
7729
if test "$GCC" = yes; then
7730
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7731
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7733
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7734
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7739
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7740
hardcode_libdir_flag_spec='-L$libdir'
7741
hardcode_shlibpath_var=no
7750
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7751
echo "${ECHO_T}$ld_shlibs" >&6
7752
test "$ld_shlibs" = no && can_build_shared=no
7755
# Do we need to explicitly link libc?
7757
case "x$archive_cmds_need_lc" in
7759
# Assume -lc should be added
7760
archive_cmds_need_lc=yes
7762
if test "$enable_shared" = yes && test "$GCC" = yes; then
7763
case $archive_cmds in
7765
# FIXME: we may have to deal with multi-command sequences.
7768
# Test whether the compiler implicitly links with -lc since on some
7769
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7770
# to ld, don't add -lc before -lgcc.
7771
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7772
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7774
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7776
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7777
(eval $ac_compile) 2>&5
7779
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780
(exit $ac_status); } 2>conftest.err; then
7783
libobjs=conftest.$ac_objext
7785
wl=$lt_prog_compiler_wl
7786
pic_flag=$lt_prog_compiler_pic
7792
lt_save_allow_undefined_flag=$allow_undefined_flag
7793
allow_undefined_flag=
7794
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7795
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798
(exit $ac_status); }
7800
archive_cmds_need_lc=no
7802
archive_cmds_need_lc=yes
7804
allow_undefined_flag=$lt_save_allow_undefined_flag
7806
cat conftest.err 1>&5
7809
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7810
echo "${ECHO_T}$archive_cmds_need_lc" >&6
7817
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7818
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7820
libname_spec='lib$name'
7828
shlibpath_overrides_runpath=unknown
7830
dynamic_linker="$host_os ld.so"
7831
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7832
if test "$GCC" = yes; then
7833
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7834
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7835
# if the path contains ";" then we assume it to be the separator
7836
# otherwise default to the standard path separator (i.e. ":") - it is
7837
# assumed that no part of a normal pathname contains ";" but that should
7838
# okay in the real world where ";" in dirpaths is itself problematic.
7839
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7841
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7844
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7846
need_lib_prefix=unknown
7847
hardcode_into_libs=no
7849
# when you set need_version to no, make sure it does not cause -set_version
7850
# flags to be left without arguments
7851
need_version=unknown
7856
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7857
shlibpath_var=LIBPATH
7859
# AIX 3 has no versioning support, so we append a major version to the name.
7860
soname_spec='${libname}${release}${shared_ext}$major'
7867
hardcode_into_libs=yes
7868
if test "$host_cpu" = ia64; then
7869
# AIX 5 supports IA64
7870
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7871
shlibpath_var=LD_LIBRARY_PATH
7873
# With GCC up to 2.95.x, collect2 would create an import file
7874
# for dependence libraries. The import file would start with
7875
# the line `#! .'. This would cause the generated library to
7876
# depend on `.', always an invalid library. This was fixed in
7877
# development snapshots of GCC prior to 3.0.
7879
aix4 | aix4.[01] | aix4.[01].*)
7880
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7882
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7889
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7890
# soname into executable. Probably we can add versioning support to
7891
# collect2, so additional links can be useful in future.
7892
if test "$aix_use_runtimelinking" = yes; then
7893
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
7894
# instead of lib<name>.a to let people know that these are not
7895
# typical AIX shared libraries.
7896
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7898
# We preserve .a as extension for shared libraries through AIX4.2
7899
# and later when we are not doing run time linking.
7900
library_names_spec='${libname}${release}.a $libname.a'
7901
soname_spec='${libname}${release}${shared_ext}$major'
7903
shlibpath_var=LIBPATH
7908
library_names_spec='$libname.ixlibrary $libname.a'
7909
# Create ${libname}_ixlibrary.a entries in /sys/libs.
7910
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'
7914
library_names_spec='${libname}${shared_ext}'
7915
dynamic_linker="$host_os ld.so"
7916
shlibpath_var=LIBRARY_PATH
7922
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7923
soname_spec='${libname}${release}${shared_ext}$major'
7924
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7925
shlibpath_var=LD_LIBRARY_PATH
7926
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7927
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7928
# the default ld.so.conf also contains /usr/contrib/lib and
7929
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7930
# libtool to hard-code these into programs
7933
cygwin* | mingw* | pw32*)
7934
version_type=windows
7939
case $GCC,$host_os in
7940
yes,cygwin* | yes,mingw* | yes,pw32*)
7941
library_names_spec='$libname.dll.a'
7942
# DLL is installed to $(libdir)/../bin by postinstall_cmds
7943
postinstall_cmds='base_file=`basename \${file}`~
7944
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7945
dldir=$destdir/`dirname \$dlpath`~
7946
test -d \$dldir || mkdir -p \$dldir~
7947
$install_prog $dir/$dlname \$dldir/$dlname~
7948
chmod a+x \$dldir/$dlname'
7949
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7950
dlpath=$dir/\$dldll~
7952
shlibpath_overrides_runpath=yes
7956
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
7957
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7958
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7961
# MinGW DLLs use traditional 'lib' prefix
7962
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7963
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7964
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7965
# It is most probably a Windows format PATH printed by
7966
# mingw gcc, but we are running on Cygwin. Gcc prints its search
7967
# path with ; separators, and with drive letters. We can handle the
7968
# drive letters (cygwin fileutils understands them), so leave them,
7969
# especially as we might pass files found there to a mingw objdump,
7970
# which wouldn't understand a cygwinified path. Ahh.
7971
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7973
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7977
# pw32 DLLs use 'pw' prefix rather than 'lib'
7978
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7984
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7987
dynamic_linker='Win32 ld.exe'
7988
# FIXME: first we should search . and the directory the executable is in
7992
darwin* | rhapsody*)
7993
dynamic_linker="$host_os dyld"
7997
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7998
soname_spec='${libname}${release}${major}$shared_ext'
7999
shlibpath_overrides_runpath=yes
8000
shlibpath_var=DYLD_LIBRARY_PATH
8001
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8002
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8003
if test "$GCC" = yes; then
8004
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8006
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8008
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8015
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8016
soname_spec='${libname}${release}${shared_ext}$major'
8017
shlibpath_var=LD_LIBRARY_PATH
8028
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8029
soname_spec='${libname}${release}${shared_ext}$major'
8030
shlibpath_var=LD_LIBRARY_PATH
8031
shlibpath_overrides_runpath=no
8032
hardcode_into_libs=yes
8033
dynamic_linker='GNU ld.so'
8036
freebsd* | dragonfly*)
8037
# DragonFly does not have aout. When/if they implement a new
8038
# versioning mechanism, adjust this.
8039
if test -x /usr/bin/objformat; then
8040
objformat=`/usr/bin/objformat`
8043
freebsd[123]*) objformat=aout ;;
8047
version_type=freebsd-$objformat
8048
case $version_type in
8050
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8055
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8059
shlibpath_var=LD_LIBRARY_PATH
8062
shlibpath_overrides_runpath=yes
8064
freebsd3.[01]* | freebsdelf3.[01]*)
8065
shlibpath_overrides_runpath=yes
8066
hardcode_into_libs=yes
8068
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8069
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8070
shlibpath_overrides_runpath=no
8071
hardcode_into_libs=yes
8073
freebsd*) # from 4.6 on
8074
shlibpath_overrides_runpath=yes
8075
hardcode_into_libs=yes
8084
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8085
soname_spec='${libname}${release}${shared_ext}$major'
8086
shlibpath_var=LD_LIBRARY_PATH
8087
hardcode_into_libs=yes
8090
hpux9* | hpux10* | hpux11*)
8091
# Give a soname corresponding to the major version so that dld.sl refuses to
8092
# link against other versions.
8099
hardcode_into_libs=yes
8100
dynamic_linker="$host_os dld.so"
8101
shlibpath_var=LD_LIBRARY_PATH
8102
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8103
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8104
soname_spec='${libname}${release}${shared_ext}$major'
8105
if test "X$HPUX_IA64_MODE" = X32; then
8106
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8108
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8110
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8114
hardcode_into_libs=yes
8115
dynamic_linker="$host_os dld.sl"
8116
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8117
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8118
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8119
soname_spec='${libname}${release}${shared_ext}$major'
8120
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8121
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8125
dynamic_linker="$host_os dld.sl"
8126
shlibpath_var=SHLIB_PATH
8127
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8128
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8129
soname_spec='${libname}${release}${shared_ext}$major'
8132
# HP-UX runs *really* slowly unless shared libraries are mode 555.
8133
postinstall_cmds='chmod 555 $lib'
8140
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8141
soname_spec='${libname}${release}${shared_ext}$major'
8142
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8143
shlibpath_var=LD_LIBRARY_PATH
8144
shlibpath_overrides_runpath=no
8145
hardcode_into_libs=yes
8148
irix5* | irix6* | nonstopux*)
8150
nonstopux*) version_type=nonstopux ;;
8152
if test "$lt_cv_prog_gnu_ld" = yes; then
8160
soname_spec='${libname}${release}${shared_ext}$major'
8161
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8163
irix5* | nonstopux*)
8167
case $LD in # libtool.m4 will add one of these switches to LD
8168
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8169
libsuff= shlibsuff= libmagic=32-bit;;
8170
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8171
libsuff=32 shlibsuff=N32 libmagic=N32;;
8172
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8173
libsuff=64 shlibsuff=64 libmagic=64-bit;;
8174
*) libsuff= shlibsuff= libmagic=never-match;;
8178
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8179
shlibpath_overrides_runpath=no
8180
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8181
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8182
hardcode_into_libs=yes
8185
# No shared lib support for Linux oldld, aout, or coff.
8186
linux*oldld* | linux*aout* | linux*coff*)
8190
# This must be Linux ELF.
8195
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8196
soname_spec='${libname}${release}${shared_ext}$major'
8197
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8198
shlibpath_var=LD_LIBRARY_PATH
8199
shlibpath_overrides_runpath=no
8200
# This implies no fast_install, which is unacceptable.
8201
# Some rework will be needed to allow for fast_install
8202
# before this can be enabled.
8203
hardcode_into_libs=yes
8205
# Append ld.so.conf contents to the search path
8206
if test -f /etc/ld.so.conf; then
8207
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8208
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8211
# We used to test for /lib/ld.so.1 and disable shared libraries on
8212
# powerpc, because MkLinux only supported shared libraries with the
8213
# GNU dynamic linker. Since this was broken with cross compilers,
8214
# most powerpc-linux boxes support dynamic linking these days and
8215
# people can always --disable-shared, the test was removed, and we
8216
# assume the GNU/Linux dynamic linker is in use.
8217
dynamic_linker='GNU/Linux ld.so'
8224
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8225
soname_spec='${libname}${release}${shared_ext}$major'
8226
shlibpath_var=LD_LIBRARY_PATH
8227
shlibpath_overrides_runpath=no
8228
hardcode_into_libs=yes
8229
dynamic_linker='GNU ld.so'
8236
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8237
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8238
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8239
dynamic_linker='NetBSD (a.out) ld.so'
8241
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8242
soname_spec='${libname}${release}${shared_ext}$major'
8243
dynamic_linker='NetBSD ld.elf_so'
8245
shlibpath_var=LD_LIBRARY_PATH
8246
shlibpath_overrides_runpath=yes
8247
hardcode_into_libs=yes
8252
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8253
shlibpath_var=LD_LIBRARY_PATH
8254
shlibpath_overrides_runpath=yes
8261
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8262
soname_spec='${libname}${release}${shared_ext}$major'
8263
shlibpath_var=LD_LIBRARY_PATH
8264
shlibpath_overrides_runpath=yes
8269
sys_lib_dlsearch_path_spec="/usr/lib"
8271
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8273
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8274
*) need_version=no ;;
8276
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8277
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8278
shlibpath_var=LD_LIBRARY_PATH
8279
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8281
openbsd2.[89] | openbsd2.[89].*)
8282
shlibpath_overrides_runpath=no
8285
shlibpath_overrides_runpath=yes
8289
shlibpath_overrides_runpath=yes
8294
libname_spec='$name'
8297
library_names_spec='$libname${shared_ext} $libname.a'
8298
dynamic_linker='OS/2 ld.exe'
8299
shlibpath_var=LIBPATH
8302
osf3* | osf4* | osf5*)
8306
soname_spec='${libname}${release}${shared_ext}$major'
8307
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8308
shlibpath_var=LD_LIBRARY_PATH
8309
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8310
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8317
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8318
soname_spec='${libname}${release}${shared_ext}$major'
8319
shlibpath_var=LD_LIBRARY_PATH
8320
shlibpath_overrides_runpath=yes
8321
hardcode_into_libs=yes
8322
# ldd complains unless libraries are executable
8323
postinstall_cmds='chmod +x $lib'
8328
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8329
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8330
shlibpath_var=LD_LIBRARY_PATH
8331
shlibpath_overrides_runpath=yes
8332
if test "$with_gnu_ld" = yes; then
8340
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8341
soname_spec='${libname}${release}${shared_ext}$major'
8342
shlibpath_var=LD_LIBRARY_PATH
8343
case $host_vendor in
8345
shlibpath_overrides_runpath=no
8347
export_dynamic_flag_spec='${wl}-Blargedynsym'
8348
runpath_var=LD_RUN_PATH
8356
shlibpath_overrides_runpath=no
8357
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8363
if test -d /usr/nec ;then
8365
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8366
soname_spec='$libname${shared_ext}.$major'
8367
shlibpath_var=LD_LIBRARY_PATH
8371
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8372
version_type=freebsd-elf
8375
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8376
soname_spec='${libname}${release}${shared_ext}$major'
8377
shlibpath_var=LD_LIBRARY_PATH
8378
hardcode_into_libs=yes
8379
if test "$with_gnu_ld" = yes; then
8380
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8381
shlibpath_overrides_runpath=no
8383
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8384
shlibpath_overrides_runpath=yes
8387
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8391
sys_lib_dlsearch_path_spec='/usr/lib'
8396
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8397
soname_spec='${libname}${release}${shared_ext}$major'
8398
shlibpath_var=LD_LIBRARY_PATH
8405
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8406
echo "${ECHO_T}$dynamic_linker" >&6
8407
test "$dynamic_linker" = no && can_build_shared=no
8409
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8410
if test "$GCC" = yes; then
8411
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8414
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8415
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8417
if test -n "$hardcode_libdir_flag_spec" || \
8418
test -n "$runpath_var" || \
8419
test "X$hardcode_automatic" = "Xyes" ; then
8421
# We can hardcode non-existant directories.
8422
if test "$hardcode_direct" != no &&
8423
# If the only mechanism to avoid hardcoding is shlibpath_var, we
8424
# have to relink, otherwise we might link with an installed library
8425
# when we should be linking with a yet-to-be-installed one
8426
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8427
test "$hardcode_minus_L" != no; then
8428
# Linking always hardcodes the temporary library directory.
8429
hardcode_action=relink
8431
# We can link without hardcoding, and we can hardcode nonexisting dirs.
8432
hardcode_action=immediate
8435
# We cannot hardcode anything, or else we can only hardcode existing
8437
hardcode_action=unsupported
8439
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8440
echo "${ECHO_T}$hardcode_action" >&6
8442
if test "$hardcode_action" = relink; then
8443
# Fast installation is not supported
8444
enable_fast_install=no
8445
elif test "$shlibpath_overrides_runpath" = yes ||
8446
test "$enable_shared" = no; then
8447
# Fast installation is not necessary
8448
enable_fast_install=needless
8453
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8454
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8455
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8456
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8457
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8458
echo "$as_me:$LINENO: result: yes" >&5
8459
echo "${ECHO_T}yes" >&6
8461
# FIXME - insert some real tests, host_os isn't really good enough
8464
if test -n "$STRIP" ; then
8465
striplib="$STRIP -x"
8466
echo "$as_me:$LINENO: result: yes" >&5
8467
echo "${ECHO_T}yes" >&6
8469
echo "$as_me:$LINENO: result: no" >&5
8470
echo "${ECHO_T}no" >&6
8474
echo "$as_me:$LINENO: result: no" >&5
8475
echo "${ECHO_T}no" >&6
8480
if test "x$enable_dlopen" != xyes; then
8481
enable_dlopen=unknown
8482
enable_dlopen_self=unknown
8483
enable_dlopen_self_static=unknown
8490
lt_cv_dlopen="load_add_on"
8492
lt_cv_dlopen_self=yes
8496
lt_cv_dlopen="LoadLibrary"
8501
lt_cv_dlopen="dlopen"
8506
# if libdl is installed we need to link against it
8507
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8508
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8509
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8510
echo $ECHO_N "(cached) $ECHO_C" >&6
8512
ac_check_lib_save_LIBS=$LIBS
8514
cat >conftest.$ac_ext <<_ACEOF
8517
cat confdefs.h >>conftest.$ac_ext
8518
cat >>conftest.$ac_ext <<_ACEOF
8519
/* end confdefs.h. */
8521
/* Override any gcc2 internal prototype to avoid an error. */
8525
/* We use char because int might match the return type of a gcc2
8526
builtin and then its argument prototype would still apply. */
8536
rm -f conftest.$ac_objext conftest$ac_exeext
8537
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8538
(eval $ac_link) 2>conftest.er1
8540
grep -v '^ *+' conftest.er1 >conftest.err
8542
cat conftest.err >&5
8543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544
(exit $ac_status); } &&
8545
{ ac_try='test -z "$ac_c_werror_flag"
8546
|| test ! -s conftest.err'
8547
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551
(exit $ac_status); }; } &&
8552
{ ac_try='test -s conftest$ac_exeext'
8553
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557
(exit $ac_status); }; }; then
8558
ac_cv_lib_dl_dlopen=yes
8560
echo "$as_me: failed program was:" >&5
8561
sed 's/^/| /' conftest.$ac_ext >&5
8563
ac_cv_lib_dl_dlopen=no
8565
rm -f conftest.err conftest.$ac_objext \
8566
conftest$ac_exeext conftest.$ac_ext
8567
LIBS=$ac_check_lib_save_LIBS
8569
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8570
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8571
if test $ac_cv_lib_dl_dlopen = yes; then
8572
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8577
lt_cv_dlopen_self=yes
8584
echo "$as_me:$LINENO: checking for shl_load" >&5
8585
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8586
if test "${ac_cv_func_shl_load+set}" = set; then
8587
echo $ECHO_N "(cached) $ECHO_C" >&6
8589
cat >conftest.$ac_ext <<_ACEOF
8592
cat confdefs.h >>conftest.$ac_ext
8593
cat >>conftest.$ac_ext <<_ACEOF
8594
/* end confdefs.h. */
8595
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8596
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8597
#define shl_load innocuous_shl_load
8599
/* System header to define __stub macros and hopefully few prototypes,
8600
which can conflict with char shl_load (); below.
8601
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8602
<limits.h> exists even on freestanding compilers. */
8605
# include <limits.h>
8607
# include <assert.h>
8612
/* Override any gcc2 internal prototype to avoid an error. */
8617
/* We use char because int might match the return type of a gcc2
8618
builtin and then its argument prototype would still apply. */
8620
/* The GNU C library defines this for functions which it implements
8621
to always fail with ENOSYS. Some functions are actually named
8622
something starting with __ and the normal name is an alias. */
8623
#if defined (__stub_shl_load) || defined (__stub___shl_load)
8626
char (*f) () = shl_load;
8635
return f != shl_load;
8640
rm -f conftest.$ac_objext conftest$ac_exeext
8641
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8642
(eval $ac_link) 2>conftest.er1
8644
grep -v '^ *+' conftest.er1 >conftest.err
8646
cat conftest.err >&5
8647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648
(exit $ac_status); } &&
8649
{ ac_try='test -z "$ac_c_werror_flag"
8650
|| test ! -s conftest.err'
8651
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8654
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655
(exit $ac_status); }; } &&
8656
{ ac_try='test -s conftest$ac_exeext'
8657
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661
(exit $ac_status); }; }; then
8662
ac_cv_func_shl_load=yes
8664
echo "$as_me: failed program was:" >&5
8665
sed 's/^/| /' conftest.$ac_ext >&5
8667
ac_cv_func_shl_load=no
8669
rm -f conftest.err conftest.$ac_objext \
8670
conftest$ac_exeext conftest.$ac_ext
8672
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8673
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8674
if test $ac_cv_func_shl_load = yes; then
8675
lt_cv_dlopen="shl_load"
8677
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8678
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8679
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8680
echo $ECHO_N "(cached) $ECHO_C" >&6
8682
ac_check_lib_save_LIBS=$LIBS
8684
cat >conftest.$ac_ext <<_ACEOF
8687
cat confdefs.h >>conftest.$ac_ext
8688
cat >>conftest.$ac_ext <<_ACEOF
8689
/* end confdefs.h. */
8691
/* Override any gcc2 internal prototype to avoid an error. */
8695
/* We use char because int might match the return type of a gcc2
8696
builtin and then its argument prototype would still apply. */
8706
rm -f conftest.$ac_objext conftest$ac_exeext
8707
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8708
(eval $ac_link) 2>conftest.er1
8710
grep -v '^ *+' conftest.er1 >conftest.err
8712
cat conftest.err >&5
8713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714
(exit $ac_status); } &&
8715
{ ac_try='test -z "$ac_c_werror_flag"
8716
|| test ! -s conftest.err'
8717
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721
(exit $ac_status); }; } &&
8722
{ ac_try='test -s conftest$ac_exeext'
8723
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727
(exit $ac_status); }; }; then
8728
ac_cv_lib_dld_shl_load=yes
8730
echo "$as_me: failed program was:" >&5
8731
sed 's/^/| /' conftest.$ac_ext >&5
8733
ac_cv_lib_dld_shl_load=no
8735
rm -f conftest.err conftest.$ac_objext \
8736
conftest$ac_exeext conftest.$ac_ext
8737
LIBS=$ac_check_lib_save_LIBS
8739
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8740
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8741
if test $ac_cv_lib_dld_shl_load = yes; then
8742
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8744
echo "$as_me:$LINENO: checking for dlopen" >&5
8745
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8746
if test "${ac_cv_func_dlopen+set}" = set; then
8747
echo $ECHO_N "(cached) $ECHO_C" >&6
8749
cat >conftest.$ac_ext <<_ACEOF
8752
cat confdefs.h >>conftest.$ac_ext
8753
cat >>conftest.$ac_ext <<_ACEOF
8754
/* end confdefs.h. */
8755
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8756
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8757
#define dlopen innocuous_dlopen
8759
/* System header to define __stub macros and hopefully few prototypes,
8760
which can conflict with char dlopen (); below.
8761
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8762
<limits.h> exists even on freestanding compilers. */
8765
# include <limits.h>
8767
# include <assert.h>
8772
/* Override any gcc2 internal prototype to avoid an error. */
8777
/* We use char because int might match the return type of a gcc2
8778
builtin and then its argument prototype would still apply. */
8780
/* The GNU C library defines this for functions which it implements
8781
to always fail with ENOSYS. Some functions are actually named
8782
something starting with __ and the normal name is an alias. */
8783
#if defined (__stub_dlopen) || defined (__stub___dlopen)
8786
char (*f) () = dlopen;
8800
rm -f conftest.$ac_objext conftest$ac_exeext
8801
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8802
(eval $ac_link) 2>conftest.er1
8804
grep -v '^ *+' conftest.er1 >conftest.err
8806
cat conftest.err >&5
8807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808
(exit $ac_status); } &&
8809
{ ac_try='test -z "$ac_c_werror_flag"
8810
|| test ! -s conftest.err'
8811
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815
(exit $ac_status); }; } &&
8816
{ ac_try='test -s conftest$ac_exeext'
8817
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8820
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821
(exit $ac_status); }; }; then
8822
ac_cv_func_dlopen=yes
8824
echo "$as_me: failed program was:" >&5
8825
sed 's/^/| /' conftest.$ac_ext >&5
8827
ac_cv_func_dlopen=no
8829
rm -f conftest.err conftest.$ac_objext \
8830
conftest$ac_exeext conftest.$ac_ext
8832
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8833
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8834
if test $ac_cv_func_dlopen = yes; then
8835
lt_cv_dlopen="dlopen"
8837
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8838
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8839
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8840
echo $ECHO_N "(cached) $ECHO_C" >&6
8842
ac_check_lib_save_LIBS=$LIBS
8844
cat >conftest.$ac_ext <<_ACEOF
8847
cat confdefs.h >>conftest.$ac_ext
8848
cat >>conftest.$ac_ext <<_ACEOF
8849
/* end confdefs.h. */
8851
/* Override any gcc2 internal prototype to avoid an error. */
8855
/* We use char because int might match the return type of a gcc2
8856
builtin and then its argument prototype would still apply. */
8866
rm -f conftest.$ac_objext conftest$ac_exeext
8867
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8868
(eval $ac_link) 2>conftest.er1
8870
grep -v '^ *+' conftest.er1 >conftest.err
8872
cat conftest.err >&5
8873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874
(exit $ac_status); } &&
8875
{ ac_try='test -z "$ac_c_werror_flag"
8876
|| test ! -s conftest.err'
8877
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881
(exit $ac_status); }; } &&
8882
{ ac_try='test -s conftest$ac_exeext'
8883
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887
(exit $ac_status); }; }; then
8888
ac_cv_lib_dl_dlopen=yes
8890
echo "$as_me: failed program was:" >&5
8891
sed 's/^/| /' conftest.$ac_ext >&5
8893
ac_cv_lib_dl_dlopen=no
8895
rm -f conftest.err conftest.$ac_objext \
8896
conftest$ac_exeext conftest.$ac_ext
8897
LIBS=$ac_check_lib_save_LIBS
8899
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8900
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8901
if test $ac_cv_lib_dl_dlopen = yes; then
8902
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8904
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8905
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8906
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8907
echo $ECHO_N "(cached) $ECHO_C" >&6
8909
ac_check_lib_save_LIBS=$LIBS
8911
cat >conftest.$ac_ext <<_ACEOF
8914
cat confdefs.h >>conftest.$ac_ext
8915
cat >>conftest.$ac_ext <<_ACEOF
8916
/* end confdefs.h. */
8918
/* Override any gcc2 internal prototype to avoid an error. */
8922
/* We use char because int might match the return type of a gcc2
8923
builtin and then its argument prototype would still apply. */
8933
rm -f conftest.$ac_objext conftest$ac_exeext
8934
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8935
(eval $ac_link) 2>conftest.er1
8937
grep -v '^ *+' conftest.er1 >conftest.err
8939
cat conftest.err >&5
8940
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941
(exit $ac_status); } &&
8942
{ ac_try='test -z "$ac_c_werror_flag"
8943
|| test ! -s conftest.err'
8944
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948
(exit $ac_status); }; } &&
8949
{ ac_try='test -s conftest$ac_exeext'
8950
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954
(exit $ac_status); }; }; then
8955
ac_cv_lib_svld_dlopen=yes
8957
echo "$as_me: failed program was:" >&5
8958
sed 's/^/| /' conftest.$ac_ext >&5
8960
ac_cv_lib_svld_dlopen=no
8962
rm -f conftest.err conftest.$ac_objext \
8963
conftest$ac_exeext conftest.$ac_ext
8964
LIBS=$ac_check_lib_save_LIBS
8966
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8967
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8968
if test $ac_cv_lib_svld_dlopen = yes; then
8969
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8971
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8972
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8973
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8974
echo $ECHO_N "(cached) $ECHO_C" >&6
8976
ac_check_lib_save_LIBS=$LIBS
8978
cat >conftest.$ac_ext <<_ACEOF
8981
cat confdefs.h >>conftest.$ac_ext
8982
cat >>conftest.$ac_ext <<_ACEOF
8983
/* end confdefs.h. */
8985
/* Override any gcc2 internal prototype to avoid an error. */
8989
/* We use char because int might match the return type of a gcc2
8990
builtin and then its argument prototype would still apply. */
9000
rm -f conftest.$ac_objext conftest$ac_exeext
9001
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9002
(eval $ac_link) 2>conftest.er1
9004
grep -v '^ *+' conftest.er1 >conftest.err
9006
cat conftest.err >&5
9007
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008
(exit $ac_status); } &&
9009
{ ac_try='test -z "$ac_c_werror_flag"
9010
|| test ! -s conftest.err'
9011
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9014
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015
(exit $ac_status); }; } &&
9016
{ ac_try='test -s conftest$ac_exeext'
9017
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021
(exit $ac_status); }; }; then
9022
ac_cv_lib_dld_dld_link=yes
9024
echo "$as_me: failed program was:" >&5
9025
sed 's/^/| /' conftest.$ac_ext >&5
9027
ac_cv_lib_dld_dld_link=no
9029
rm -f conftest.err conftest.$ac_objext \
9030
conftest$ac_exeext conftest.$ac_ext
9031
LIBS=$ac_check_lib_save_LIBS
9033
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9034
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9035
if test $ac_cv_lib_dld_dld_link = yes; then
9036
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9057
if test "x$lt_cv_dlopen" != xno; then
9063
case $lt_cv_dlopen in
9065
save_CPPFLAGS="$CPPFLAGS"
9066
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9068
save_LDFLAGS="$LDFLAGS"
9069
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9072
LIBS="$lt_cv_dlopen_libs $LIBS"
9074
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9075
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9076
if test "${lt_cv_dlopen_self+set}" = set; then
9077
echo $ECHO_N "(cached) $ECHO_C" >&6
9079
if test "$cross_compiling" = yes; then :
9080
lt_cv_dlopen_self=cross
9082
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9083
lt_status=$lt_dlunknown
9084
cat > conftest.$ac_ext <<EOF
9085
#line 9085 "configure"
9086
#include "confdefs.h"
9095
# define LT_DLGLOBAL RTLD_GLOBAL
9098
# define LT_DLGLOBAL DL_GLOBAL
9100
# define LT_DLGLOBAL 0
9104
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9105
find out it does not work in some platform. */
9106
#ifndef LT_DLLAZY_OR_NOW
9108
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9111
# define LT_DLLAZY_OR_NOW DL_LAZY
9114
# define LT_DLLAZY_OR_NOW RTLD_NOW
9117
# define LT_DLLAZY_OR_NOW DL_NOW
9119
# define LT_DLLAZY_OR_NOW 0
9127
extern "C" void exit (int);
9130
void fnord() { int i=42;}
9133
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9134
int status = $lt_dlunknown;
9138
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9139
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9140
/* dlclose (self); */
9148
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9149
(eval $ac_link) 2>&5
9151
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9153
(./conftest; exit; ) >&5 2>/dev/null
9156
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9157
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9158
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9161
# compilation failed
9162
lt_cv_dlopen_self=no
9169
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9170
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9172
if test "x$lt_cv_dlopen_self" = xyes; then
9173
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9174
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9175
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9176
if test "${lt_cv_dlopen_self_static+set}" = set; then
9177
echo $ECHO_N "(cached) $ECHO_C" >&6
9179
if test "$cross_compiling" = yes; then :
9180
lt_cv_dlopen_self_static=cross
9182
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9183
lt_status=$lt_dlunknown
9184
cat > conftest.$ac_ext <<EOF
9185
#line 9185 "configure"
9186
#include "confdefs.h"
9195
# define LT_DLGLOBAL RTLD_GLOBAL
9198
# define LT_DLGLOBAL DL_GLOBAL
9200
# define LT_DLGLOBAL 0
9204
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9205
find out it does not work in some platform. */
9206
#ifndef LT_DLLAZY_OR_NOW
9208
# define LT_DLLAZY_OR_NOW RTLD_LAZY
9211
# define LT_DLLAZY_OR_NOW DL_LAZY
9214
# define LT_DLLAZY_OR_NOW RTLD_NOW
9217
# define LT_DLLAZY_OR_NOW DL_NOW
9219
# define LT_DLLAZY_OR_NOW 0
9227
extern "C" void exit (int);
9230
void fnord() { int i=42;}
9233
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9234
int status = $lt_dlunknown;
9238
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9239
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9240
/* dlclose (self); */
9248
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9249
(eval $ac_link) 2>&5
9251
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9253
(./conftest; exit; ) >&5 2>/dev/null
9256
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9257
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9258
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9261
# compilation failed
9262
lt_cv_dlopen_self_static=no
9269
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9270
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9273
CPPFLAGS="$save_CPPFLAGS"
9274
LDFLAGS="$save_LDFLAGS"
9279
case $lt_cv_dlopen_self in
9280
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9281
*) enable_dlopen_self=unknown ;;
9284
case $lt_cv_dlopen_self_static in
9285
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9286
*) enable_dlopen_self_static=unknown ;;
9291
# Report which library types will actually be built
9292
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9293
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9294
echo "$as_me:$LINENO: result: $can_build_shared" >&5
9295
echo "${ECHO_T}$can_build_shared" >&6
9297
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9298
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9299
test "$can_build_shared" = "no" && enable_shared=no
9301
# On AIX, shared libraries and static libraries use the same namespace, and
9302
# are all built from PIC.
9305
test "$enable_shared" = yes && enable_static=no
9306
if test -n "$RANLIB"; then
9307
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9308
postinstall_cmds='$RANLIB $lib'
9313
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9314
test "$enable_shared" = yes && enable_static=no
9318
echo "$as_me:$LINENO: result: $enable_shared" >&5
9319
echo "${ECHO_T}$enable_shared" >&6
9321
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9322
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9323
# Make sure either enable_shared or enable_static is yes.
9324
test "$enable_shared" = yes || enable_static=yes
9325
echo "$as_me:$LINENO: result: $enable_static" >&5
9326
echo "${ECHO_T}$enable_static" >&6
9328
# The else clause should only fire when bootstrapping the
9329
# libtool distribution, otherwise you forgot to ship ltmain.sh
9330
# with your package, and you will get complaints that there are
9331
# no rules to generate ltmain.sh.
9332
if test -f "$ltmain"; then
9333
# See if we are running on zsh, and set the options which allow our commands through
9334
# without removal of \ escapes.
9335
if test -n "${ZSH_VERSION+set}" ; then
9336
setopt NO_GLOB_SUBST
9338
# Now quote all the things that may contain metacharacters while being
9339
# careful not to overquote the AC_SUBSTed values. We take copies of the
9340
# variables and quote the copies for generation of the libtool script.
9341
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9343
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9344
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9345
deplibs_check_method reload_flag reload_cmds need_locks \
9346
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9347
lt_cv_sys_global_symbol_to_c_name_address \
9348
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9349
old_postinstall_cmds old_postuninstall_cmds \
9353
lt_prog_compiler_wl \
9354
lt_prog_compiler_pic \
9355
lt_prog_compiler_static \
9356
lt_prog_compiler_no_builtin_flag \
9357
export_dynamic_flag_spec \
9358
thread_safe_flag_spec \
9359
whole_archive_flag_spec \
9360
enable_shared_with_static_runtimes \
9362
old_archive_from_new_cmds \
9367
compiler_lib_search_path \
9369
archive_expsym_cmds \
9371
postuninstall_cmds \
9372
old_archive_from_expsyms_cmds \
9373
allow_undefined_flag \
9375
export_symbols_cmds \
9376
hardcode_libdir_flag_spec \
9377
hardcode_libdir_flag_spec_ld \
9378
hardcode_libdir_separator \
9379
hardcode_automatic \
9381
module_expsym_cmds \
9382
lt_cv_prog_compiler_c_o \
9387
old_archive_cmds | \
9388
old_archive_from_new_cmds | \
9390
archive_expsym_cmds | \
9392
module_expsym_cmds | \
9393
old_archive_from_expsyms_cmds | \
9394
export_symbols_cmds | \
9395
extract_expsyms_cmds | reload_cmds | finish_cmds | \
9396
postinstall_cmds | postuninstall_cmds | \
9397
old_postinstall_cmds | old_postuninstall_cmds | \
9398
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9399
# Double-quote double-evaled strings.
9400
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9403
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9409
*'\$0 --fallback-echo"')
9410
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9415
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9417
{ echo "$as_me:$LINENO: creating $ofile" >&5
9418
echo "$as_me: creating $ofile" >&6;}
9420
cat <<__EOF__ >> "$cfgfile"
9423
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9424
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9425
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9427
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9428
# Free Software Foundation, Inc.
9430
# This file is part of GNU Libtool:
9431
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9433
# This program is free software; you can redistribute it and/or modify
9434
# it under the terms of the GNU General Public License as published by
9435
# the Free Software Foundation; either version 2 of the License, or
9436
# (at your option) any later version.
9438
# This program is distributed in the hope that it will be useful, but
9439
# WITHOUT ANY WARRANTY; without even the implied warranty of
9440
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9441
# General Public License for more details.
9443
# You should have received a copy of the GNU General Public License
9444
# along with this program; if not, write to the Free Software
9445
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9447
# As a special exception to the GNU General Public License, if you
9448
# distribute this file as part of a program that contains a
9449
# configuration script generated by Autoconf, you may include it under
9450
# the same distribution terms that you use for the rest of that program.
9452
# A sed program that does not truncate output.
9455
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9456
Xsed="$SED -e 1s/^X//"
9458
# The HP-UX ksh and POSIX shell print the target directory to stdout
9460
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9462
# The names of the tagged configurations supported by this script.
9465
# ### BEGIN LIBTOOL CONFIG
9467
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9469
# Shell to use when invoking shell scripts.
9472
# Whether or not to build shared libraries.
9473
build_libtool_libs=$enable_shared
9475
# Whether or not to build static libraries.
9476
build_old_libs=$enable_static
9478
# Whether or not to add -lc for building shared libraries.
9479
build_libtool_need_lc=$archive_cmds_need_lc
9481
# Whether or not to disallow shared libs when runtime libs are static
9482
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9484
# Whether or not to optimize for fast installation.
9485
fast_install=$enable_fast_install
9488
host_alias=$host_alias
9493
build_alias=$build_alias
9497
# An echo program that does not interpret backslashes.
9502
AR_FLAGS=$lt_AR_FLAGS
9507
# LTCC compiler flags.
9508
LTCFLAGS=$lt_LTCFLAGS
9510
# A language-specific compiler.
9513
# Is the compiler the GNU C compiler?
9519
# The linker used to build libraries.
9522
# Whether we need hard or soft links.
9525
# A BSD-compatible nm program.
9528
# A symbol stripping program
9531
# Used to examine libraries when file_magic_cmd begins "file"
9532
MAGIC_CMD=$MAGIC_CMD
9534
# Used on cygwin: DLL creation program.
9537
# Used on cygwin: object dumper.
9540
# Used on cygwin: assembler.
9543
# The name of the directory that contains temporary libtool files.
9546
# How to create reloadable object files.
9547
reload_flag=$lt_reload_flag
9548
reload_cmds=$lt_reload_cmds
9550
# How to pass a linker flag through the compiler.
9551
wl=$lt_lt_prog_compiler_wl
9553
# Object file suffix (normally "o").
9556
# Old archive suffix (normally "a").
9559
# Shared library suffix (normally ".so").
9560
shrext_cmds='$shrext_cmds'
9562
# Executable file suffix (normally "").
9565
# Additional compiler flags for building library objects.
9566
pic_flag=$lt_lt_prog_compiler_pic
9569
# What is the maximum length of a command?
9570
max_cmd_len=$lt_cv_sys_max_cmd_len
9572
# Does compiler simultaneously support -c and -o options?
9573
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9575
# Must we lock files when doing compilation?
9576
need_locks=$lt_need_locks
9578
# Do we need the lib prefix for modules?
9579
need_lib_prefix=$need_lib_prefix
9581
# Do we need a version for libraries?
9582
need_version=$need_version
9584
# Whether dlopen is supported.
9585
dlopen_support=$enable_dlopen
9587
# Whether dlopen of programs is supported.
9588
dlopen_self=$enable_dlopen_self
9590
# Whether dlopen of statically linked programs is supported.
9591
dlopen_self_static=$enable_dlopen_self_static
9593
# Compiler flag to prevent dynamic linking.
9594
link_static_flag=$lt_lt_prog_compiler_static
9596
# Compiler flag to turn off builtin functions.
9597
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9599
# Compiler flag to allow reflexive dlopens.
9600
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9602
# Compiler flag to generate shared objects directly from archives.
9603
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9605
# Compiler flag to generate thread-safe objects.
9606
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9608
# Library versioning type.
9609
version_type=$version_type
9611
# Format of library name prefix.
9612
libname_spec=$lt_libname_spec
9614
# List of archive names. First name is the real one, the rest are links.
9615
# The last name is the one that the linker finds with -lNAME.
9616
library_names_spec=$lt_library_names_spec
9618
# The coded name of the library, if different from the real name.
9619
soname_spec=$lt_soname_spec
9621
# Commands used to build and install an old-style archive.
9623
old_archive_cmds=$lt_old_archive_cmds
9624
old_postinstall_cmds=$lt_old_postinstall_cmds
9625
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9627
# Create an old-style archive from a shared archive.
9628
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9630
# Create a temporary old-style archive to link instead of a shared archive.
9631
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9633
# Commands used to build and install a shared archive.
9634
archive_cmds=$lt_archive_cmds
9635
archive_expsym_cmds=$lt_archive_expsym_cmds
9636
postinstall_cmds=$lt_postinstall_cmds
9637
postuninstall_cmds=$lt_postuninstall_cmds
9639
# Commands used to build a loadable module (assumed same as above if empty)
9640
module_cmds=$lt_module_cmds
9641
module_expsym_cmds=$lt_module_expsym_cmds
9643
# Commands to strip libraries.
9644
old_striplib=$lt_old_striplib
9645
striplib=$lt_striplib
9647
# Dependencies to place before the objects being linked to create a
9649
predep_objects=$lt_predep_objects
9651
# Dependencies to place after the objects being linked to create a
9653
postdep_objects=$lt_postdep_objects
9655
# Dependencies to place before the objects being linked to create a
9659
# Dependencies to place after the objects being linked to create a
9661
postdeps=$lt_postdeps
9663
# The library search path used internally by the compiler when linking
9665
compiler_lib_search_path=$lt_compiler_lib_search_path
9667
# Method to check whether dependent libraries are shared objects.
9668
deplibs_check_method=$lt_deplibs_check_method
9670
# Command to use when deplibs_check_method == file_magic.
9671
file_magic_cmd=$lt_file_magic_cmd
9673
# Flag that allows shared libraries with undefined symbols to be built.
9674
allow_undefined_flag=$lt_allow_undefined_flag
9676
# Flag that forces no undefined symbols.
9677
no_undefined_flag=$lt_no_undefined_flag
9679
# Commands used to finish a libtool library installation in a directory.
9680
finish_cmds=$lt_finish_cmds
9682
# Same as above, but a single script fragment to be evaled but not shown.
9683
finish_eval=$lt_finish_eval
9685
# Take the output of nm and produce a listing of raw symbols and C names.
9686
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9688
# Transform the output of nm in a proper C declaration
9689
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9691
# Transform the output of nm in a C name address pair
9692
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9694
# This is the shared library runtime path variable.
9695
runpath_var=$runpath_var
9697
# This is the shared library path variable.
9698
shlibpath_var=$shlibpath_var
9700
# Is shlibpath searched before the hard-coded library search path?
9701
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9703
# How to hardcode a shared library path into an executable.
9704
hardcode_action=$hardcode_action
9706
# Whether we should hardcode library paths into libraries.
9707
hardcode_into_libs=$hardcode_into_libs
9709
# Flag to hardcode \$libdir into a binary during linking.
9710
# This must work even if \$libdir does not exist.
9711
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9713
# If ld is used when linking, flag to hardcode \$libdir into
9714
# a binary during linking. This must work even if \$libdir does
9716
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9718
# Whether we need a single -rpath flag with a separated argument.
9719
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9721
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9723
hardcode_direct=$hardcode_direct
9725
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9727
hardcode_minus_L=$hardcode_minus_L
9729
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9730
# the resulting binary.
9731
hardcode_shlibpath_var=$hardcode_shlibpath_var
9733
# Set to yes if building a shared library automatically hardcodes DIR into the library
9734
# and all subsequent libraries and executables linked against it.
9735
hardcode_automatic=$hardcode_automatic
9737
# Variables whose values should be saved in libtool wrapper scripts and
9738
# restored at relink time.
9739
variables_saved_for_relink="$variables_saved_for_relink"
9741
# Whether libtool must link a program against all its dependency libraries.
9742
link_all_deplibs=$link_all_deplibs
9744
# Compile-time system search path for libraries
9745
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9747
# Run-time system search path for libraries
9748
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9750
# Fix the shell variable \$srcfile for the compiler.
9751
fix_srcfile_path="$fix_srcfile_path"
9753
# Set to yes if exported symbols are required.
9754
always_export_symbols=$always_export_symbols
9756
# The commands to list exported symbols.
9757
export_symbols_cmds=$lt_export_symbols_cmds
9759
# The commands to extract the exported symbol list from a shared archive.
9760
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9762
# Symbols that should not be listed in the preloaded symbols.
9763
exclude_expsyms=$lt_exclude_expsyms
9765
# Symbols that must always be exported.
9766
include_expsyms=$lt_include_expsyms
9768
# ### END LIBTOOL CONFIG
9775
cat <<\EOF >> "$cfgfile"
9777
# AIX sometimes has problems with the GCC collect2 program. For some
9778
# reason, if we set the COLLECT_NAMES environment variable, the problems
9779
# vanish in a puff of smoke.
9780
if test "X${COLLECT_NAMES+set}" != Xset; then
9782
export COLLECT_NAMES
9788
# We use sed instead of cat because bash on DJGPP gets confused if
9789
# if finds mixed CR/LF and LF-only lines. Since sed operates in
9790
# text mode, it properly converts lines to CR/LF. This bash problem
9791
# is reportedly fixed, but why not run on old versions too?
9792
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9794
mv -f "$cfgfile" "$ofile" || \
9795
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9799
# If there is no Makefile yet, we rely on a make rule to execute
9800
# `config.status --recheck' to rerun these tests and create the
9801
# libtool script then.
9802
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9803
if test -f "$ltmain_in"; then
9804
test -f Makefile && make "$ltmain"
9810
ac_cpp='$CPP $CPPFLAGS'
9811
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9812
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9813
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9818
# Check whether --with-tags or --without-tags was given.
9819
if test "${with_tags+set}" = set; then
9820
withval="$with_tags"
9824
if test -f "$ltmain" && test -n "$tagnames"; then
9825
if test ! -f "${ofile}"; then
9826
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9827
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9830
if test -z "$LTCC"; then
9831
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9832
if test -z "$LTCC"; then
9833
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9834
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9836
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9837
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9840
if test -z "$LTCFLAGS"; then
9841
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9844
# Extract list of available tagged configurations in $ofile.
9845
# Note that this assumes the entire list is on one line.
9846
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9848
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9849
for tagname in $tagnames; do
9851
# Check whether tagname contains only valid characters
9852
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9854
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9855
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9856
{ (exit 1); exit 1; }; }
9860
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9862
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9863
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9864
{ (exit 1); exit 1; }; }
9867
# Update the list of available tags.
9868
if test -n "$tagname"; then
9869
echo appending configuration tag \"$tagname\" to $ofile
9873
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9874
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9875
(test "X$CXX" != "Xg++"))) ; then
9877
ac_cpp='$CXXCPP $CPPFLAGS'
9878
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9879
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9880
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9885
archive_cmds_need_lc_CXX=no
9886
allow_undefined_flag_CXX=
9887
always_export_symbols_CXX=no
9888
archive_expsym_cmds_CXX=
9889
export_dynamic_flag_spec_CXX=
9890
hardcode_direct_CXX=no
9891
hardcode_libdir_flag_spec_CXX=
9892
hardcode_libdir_flag_spec_ld_CXX=
9893
hardcode_libdir_separator_CXX=
9894
hardcode_minus_L_CXX=no
9895
hardcode_shlibpath_var_CXX=unsupported
9896
hardcode_automatic_CXX=no
9898
module_expsym_cmds_CXX=
9899
link_all_deplibs_CXX=unknown
9900
old_archive_cmds_CXX=$old_archive_cmds
9901
no_undefined_flag_CXX=
9902
whole_archive_flag_spec_CXX=
9903
enable_shared_with_static_runtimes_CXX=no
9905
# Dependencies to place before and after the object being linked:
9907
postdep_objects_CXX=
9910
compiler_lib_search_path_CXX=
9912
# Source file extension for C++ test sources.
9915
# Object file extension for compiled C++ test sources.
9919
# Code to be used in simple compile tests
9920
lt_simple_compile_test_code="int some_variable = 0;\n"
9922
# Code to be used in simple link tests
9923
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9925
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9927
# If no C compiler was specified, use CC.
9930
# If no C compiler flags were specified, use CFLAGS.
9931
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9933
# Allow CC to be a program name with arguments.
9937
# save warnings/boilerplate of simple test code
9938
ac_outfile=conftest.$ac_objext
9939
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9940
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9941
_lt_compiler_boilerplate=`cat conftest.err`
9944
ac_outfile=conftest.$ac_objext
9945
printf "$lt_simple_link_test_code" >conftest.$ac_ext
9946
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9947
_lt_linker_boilerplate=`cat conftest.err`
9951
# Allow CC to be a program name with arguments.
9956
lt_save_with_gnu_ld=$with_gnu_ld
9957
lt_save_path_LD=$lt_cv_path_LD
9958
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9959
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9961
$as_unset lt_cv_prog_gnu_ld
9963
if test -n "${lt_cv_path_LDCXX+set}"; then
9964
lt_cv_path_LD=$lt_cv_path_LDCXX
9966
$as_unset lt_cv_path_LD
9968
test -z "${LDCXX+set}" || LD=$LDCXX
9972
for cc_temp in $compiler""; do
9974
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9975
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9980
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9983
# We don't want -fno-exception wen compiling C++ code, so set the
9984
# no_builtin_flag separately
9985
if test "$GXX" = yes; then
9986
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9988
lt_prog_compiler_no_builtin_flag_CXX=
9991
if test "$GXX" = yes; then
9992
# Set up default GNU C++ configuration
9995
# Check whether --with-gnu-ld or --without-gnu-ld was given.
9996
if test "${with_gnu_ld+set}" = set; then
9997
withval="$with_gnu_ld"
9998
test "$withval" = no || with_gnu_ld=yes
10003
if test "$GCC" = yes; then
10004
# Check if gcc -print-prog-name=ld gives a path.
10005
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10006
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10009
# gcc leaves a trailing carriage return which upsets mingw
10010
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10012
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10015
# Accept absolute paths.
10017
re_direlt='/[^/][^/]*/\.\./'
10018
# Canonicalize the pathname of ld
10019
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10020
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10021
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10023
test -z "$LD" && LD="$ac_prog"
10026
# If it fails, then pretend we aren't using GCC.
10030
# If it is relative, then search for the first ld in PATH.
10031
with_gnu_ld=unknown
10034
elif test "$with_gnu_ld" = yes; then
10035
echo "$as_me:$LINENO: checking for GNU ld" >&5
10036
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10038
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10039
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10041
if test "${lt_cv_path_LD+set}" = set; then
10042
echo $ECHO_N "(cached) $ECHO_C" >&6
10044
if test -z "$LD"; then
10045
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10046
for ac_dir in $PATH; do
10048
test -z "$ac_dir" && ac_dir=.
10049
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10050
lt_cv_path_LD="$ac_dir/$ac_prog"
10051
# Check to see if the program is GNU ld. I'd rather use --version,
10052
# but apparently some variants of GNU ld only accept -v.
10053
# Break only if it was the GNU/non-GNU ld that we prefer.
10054
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10055
*GNU* | *'with BFD'*)
10056
test "$with_gnu_ld" != no && break
10059
test "$with_gnu_ld" != yes && break
10066
lt_cv_path_LD="$LD" # Let the user override the test with a path.
10070
LD="$lt_cv_path_LD"
10071
if test -n "$LD"; then
10072
echo "$as_me:$LINENO: result: $LD" >&5
10073
echo "${ECHO_T}$LD" >&6
10075
echo "$as_me:$LINENO: result: no" >&5
10076
echo "${ECHO_T}no" >&6
10078
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10079
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10080
{ (exit 1); exit 1; }; }
10081
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10082
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10083
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10084
echo $ECHO_N "(cached) $ECHO_C" >&6
10086
# I'd rather use --version here, but apparently some GNU lds only accept -v.
10087
case `$LD -v 2>&1 </dev/null` in
10088
*GNU* | *'with BFD'*)
10089
lt_cv_prog_gnu_ld=yes
10092
lt_cv_prog_gnu_ld=no
10096
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10097
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10098
with_gnu_ld=$lt_cv_prog_gnu_ld
10102
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10103
# archiving commands below assume that GNU ld is being used.
10104
if test "$with_gnu_ld" = yes; then
10105
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10106
archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10108
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10109
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10111
# If archive_cmds runs LD, not CC, wlarc should be empty
10112
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10113
# investigate it a little bit more. (MM)
10116
# ancient GNU ld didn't support --whole-archive et. al.
10117
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10118
grep 'no-whole-archive' > /dev/null; then
10119
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10121
whole_archive_flag_spec_CXX=
10127
# A generic and very simple default shared library creation
10128
# command for GNU C++ for the case where it uses the native
10129
# linker, instead of GNU ld. If possible, this setting should
10130
# overridden to take advantage of the native linker features on
10131
# the platform it is being used on.
10132
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10135
# Commands to make compiler produce verbose output that lists
10136
# what "hidden" libraries, object files and flags are used when
10137
# linking a shared library.
10138
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10146
# PORTME: fill in a description of your system's C++ link characteristics
10147
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10148
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10152
# FIXME: insert proper C++ library support
10156
if test "$host_cpu" = ia64; then
10157
# On IA64, the linker does run time linking by default, so we don't
10158
# have to do anything special.
10159
aix_use_runtimelinking=no
10160
exp_sym_flag='-Bexport'
10163
aix_use_runtimelinking=no
10165
# Test if we are trying to use run time linking or normal
10166
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10167
# need to do runtime linking.
10168
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10169
for ld_flag in $LDFLAGS; do
10172
aix_use_runtimelinking=yes
10180
exp_sym_flag='-bexport'
10181
no_entry_flag='-bnoentry'
10184
# When large executables or shared objects are built, AIX ld can
10185
# have problems creating the table of contents. If linking a library
10186
# or program results in "error TOC overflow" add -mminimal-toc to
10187
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10188
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10190
archive_cmds_CXX=''
10191
hardcode_direct_CXX=yes
10192
hardcode_libdir_separator_CXX=':'
10193
link_all_deplibs_CXX=yes
10195
if test "$GXX" = yes; then
10196
case $host_os in aix4.[012]|aix4.[012].*)
10197
# We only want to do this on AIX 4.2 and lower, the check
10198
# below for broken collect2 doesn't work under 4.3+
10199
collect2name=`${CC} -print-prog-name=collect2`
10200
if test -f "$collect2name" && \
10201
strings "$collect2name" | grep resolve_lib_name >/dev/null
10203
# We have reworked collect2
10204
hardcode_direct_CXX=yes
10206
# We have old collect2
10207
hardcode_direct_CXX=unsupported
10208
# It fails to find uninstalled libraries when the uninstalled
10209
# path is not listed in the libpath. Setting hardcode_minus_L
10210
# to unsupported forces relinking
10211
hardcode_minus_L_CXX=yes
10212
hardcode_libdir_flag_spec_CXX='-L$libdir'
10213
hardcode_libdir_separator_CXX=
10217
shared_flag='-shared'
10218
if test "$aix_use_runtimelinking" = yes; then
10219
shared_flag="$shared_flag "'${wl}-G'
10223
if test "$host_cpu" = ia64; then
10224
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10225
# chokes on -Wl,-G. The following line is correct:
10228
if test "$aix_use_runtimelinking" = yes; then
10229
shared_flag='${wl}-G'
10231
shared_flag='${wl}-bM:SRE'
10236
# It seems that -bexpall does not export symbols beginning with
10237
# underscore (_), so it is better to generate a list of symbols to export.
10238
always_export_symbols_CXX=yes
10239
if test "$aix_use_runtimelinking" = yes; then
10240
# Warning - without using the other runtime loading flags (-brtl),
10241
# -berok will link without error, but may produce a broken library.
10242
allow_undefined_flag_CXX='-berok'
10243
# Determine the default libpath from the value encoded in an empty executable.
10244
cat >conftest.$ac_ext <<_ACEOF
10247
cat confdefs.h >>conftest.$ac_ext
10248
cat >>conftest.$ac_ext <<_ACEOF
10249
/* end confdefs.h. */
10259
rm -f conftest.$ac_objext conftest$ac_exeext
10260
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10261
(eval $ac_link) 2>conftest.er1
10263
grep -v '^ *+' conftest.er1 >conftest.err
10265
cat conftest.err >&5
10266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267
(exit $ac_status); } &&
10268
{ ac_try='test -z "$ac_cxx_werror_flag"
10269
|| test ! -s conftest.err'
10270
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10271
(eval $ac_try) 2>&5
10273
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274
(exit $ac_status); }; } &&
10275
{ ac_try='test -s conftest$ac_exeext'
10276
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277
(eval $ac_try) 2>&5
10279
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280
(exit $ac_status); }; }; then
10282
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10284
# Check for a 64-bit object if we didn't find anything.
10285
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10288
echo "$as_me: failed program was:" >&5
10289
sed 's/^/| /' conftest.$ac_ext >&5
10292
rm -f conftest.err conftest.$ac_objext \
10293
conftest$ac_exeext conftest.$ac_ext
10294
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10296
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10298
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10300
if test "$host_cpu" = ia64; then
10301
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10302
allow_undefined_flag_CXX="-z nodefs"
10303
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10305
# Determine the default libpath from the value encoded in an empty executable.
10306
cat >conftest.$ac_ext <<_ACEOF
10309
cat confdefs.h >>conftest.$ac_ext
10310
cat >>conftest.$ac_ext <<_ACEOF
10311
/* end confdefs.h. */
10321
rm -f conftest.$ac_objext conftest$ac_exeext
10322
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10323
(eval $ac_link) 2>conftest.er1
10325
grep -v '^ *+' conftest.er1 >conftest.err
10327
cat conftest.err >&5
10328
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329
(exit $ac_status); } &&
10330
{ ac_try='test -z "$ac_cxx_werror_flag"
10331
|| test ! -s conftest.err'
10332
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10333
(eval $ac_try) 2>&5
10335
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336
(exit $ac_status); }; } &&
10337
{ ac_try='test -s conftest$ac_exeext'
10338
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10339
(eval $ac_try) 2>&5
10341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342
(exit $ac_status); }; }; then
10344
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10346
# Check for a 64-bit object if we didn't find anything.
10347
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10350
echo "$as_me: failed program was:" >&5
10351
sed 's/^/| /' conftest.$ac_ext >&5
10354
rm -f conftest.err conftest.$ac_objext \
10355
conftest$ac_exeext conftest.$ac_ext
10356
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10358
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10359
# Warning - without using the other run time loading flags,
10360
# -berok will link without error, but may produce a broken library.
10361
no_undefined_flag_CXX=' ${wl}-bernotok'
10362
allow_undefined_flag_CXX=' ${wl}-berok'
10363
# Exported symbols can be pulled into shared objects from archives
10364
whole_archive_flag_spec_CXX='$convenience'
10365
archive_cmds_need_lc_CXX=yes
10366
# This is similar to how AIX traditionally builds its shared libraries.
10367
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10373
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10374
allow_undefined_flag_CXX=unsupported
10375
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10376
# support --undefined. This deserves some investigation. FIXME
10377
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10384
case $cc_basename in
10386
# FIXME: insert proper C++ library support
10392
cygwin* | mingw* | pw32*)
10393
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10394
# as there is no search path for DLLs.
10395
hardcode_libdir_flag_spec_CXX='-L$libdir'
10396
allow_undefined_flag_CXX=unsupported
10397
always_export_symbols_CXX=no
10398
enable_shared_with_static_runtimes_CXX=yes
10400
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10401
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10402
# If the export-symbols file already is a .def file (1st line
10403
# is EXPORTS), use it as is; otherwise, prepend...
10404
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10405
cp $export_symbols $output_objdir/$soname.def;
10407
echo EXPORTS > $output_objdir/$soname.def;
10408
cat $export_symbols >> $output_objdir/$soname.def;
10410
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10415
darwin* | rhapsody*)
10417
rhapsody* | darwin1.[012])
10418
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10421
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10422
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10424
case ${MACOSX_DEPLOYMENT_TARGET} in
10426
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10429
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10435
archive_cmds_need_lc_CXX=no
10436
hardcode_direct_CXX=no
10437
hardcode_automatic_CXX=yes
10438
hardcode_shlibpath_var_CXX=unsupported
10439
whole_archive_flag_spec_CXX=''
10440
link_all_deplibs_CXX=yes
10442
if test "$GXX" = yes ; then
10443
lt_int_apple_cc_single_mod=no
10444
output_verbose_link_cmd='echo'
10445
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10446
lt_int_apple_cc_single_mod=yes
10448
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10449
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10451
archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10453
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10454
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10455
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10456
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10458
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10460
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
10462
case $cc_basename in
10464
output_verbose_link_cmd='echo'
10465
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10466
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10467
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10468
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10469
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
10479
case $cc_basename in
10481
# FIXME: insert proper C++ library support
10485
# Green Hills C++ Compiler
10486
# FIXME: insert proper C++ library support
10490
# FIXME: insert proper C++ library support
10496
# C++ shared libraries reported to be fairly broken before switch to ELF
10500
archive_cmds_need_lc_CXX=no
10502
freebsd* | kfreebsd*-gnu | dragonfly*)
10503
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10510
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10511
hardcode_libdir_separator_CXX=:
10512
export_dynamic_flag_spec_CXX='${wl}-E'
10513
hardcode_direct_CXX=yes
10514
hardcode_minus_L_CXX=yes # Not in the search PATH,
10515
# but as the default
10516
# location of the library.
10518
case $cc_basename in
10520
# FIXME: insert proper C++ library support
10524
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10525
# Commands to make compiler produce verbose output that lists
10526
# what "hidden" libraries, object files and flags are used when
10527
# linking a shared library.
10529
# There doesn't appear to be a way to prevent this compiler from
10530
# explicitly linking system object files so we need to strip them
10531
# from the output so that they don't get included in the library
10533
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10536
if test "$GXX" = yes; then
10537
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10539
# FIXME: insert proper C++ library support
10546
if test $with_gnu_ld = no; then
10547
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10548
hardcode_libdir_separator_CXX=:
10552
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10555
export_dynamic_flag_spec_CXX='${wl}-E'
10561
hardcode_direct_CXX=no
10562
hardcode_shlibpath_var_CXX=no
10565
hardcode_direct_CXX=yes
10566
hardcode_minus_L_CXX=yes # Not in the search PATH,
10567
# but as the default
10568
# location of the library.
10572
case $cc_basename in
10574
# FIXME: insert proper C++ library support
10580
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10583
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10586
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10589
# Commands to make compiler produce verbose output that lists
10590
# what "hidden" libraries, object files and flags are used when
10591
# linking a shared library.
10593
# There doesn't appear to be a way to prevent this compiler from
10594
# explicitly linking system object files so we need to strip them
10595
# from the output so that they don't get included in the library
10597
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10600
if test "$GXX" = yes; then
10601
if test $with_gnu_ld = no; then
10604
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10607
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10610
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10615
# FIXME: insert proper C++ library support
10622
hardcode_direct_CXX=no
10623
hardcode_shlibpath_var_CXX=no
10624
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10625
export_dynamic_flag_spec_CXX='${wl}-E'
10626
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10627
# Instead, shared libraries are loaded at an image base (0x10000000 by
10628
# default) and relocated if they conflict, which is a slow very memory
10629
# consuming and fragmenting process. To avoid this, we pick a random,
10630
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10631
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
10632
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10633
archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10636
case $cc_basename in
10639
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10641
# Archives containing C++ object files must be created using
10642
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
10643
# necessary to make sure instantiated templates are included
10645
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10648
if test "$GXX" = yes; then
10649
if test "$with_gnu_ld" = no; then
10650
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10652
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10655
link_all_deplibs_CXX=yes
10658
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10659
hardcode_libdir_separator_CXX=:
10662
case $cc_basename in
10664
# Kuck and Associates, Inc. (KAI) C++ Compiler
10666
# KCC will only create a shared library if the output file
10667
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10668
# to its proper name (with version) after linking.
10669
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10670
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
10671
# Commands to make compiler produce verbose output that lists
10672
# what "hidden" libraries, object files and flags are used when
10673
# linking a shared library.
10675
# There doesn't appear to be a way to prevent this compiler from
10676
# explicitly linking system object files so we need to strip them
10677
# from the output so that they don't get included in the library
10679
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10681
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10682
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10684
# Archives containing C++ object files must be created using
10685
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10686
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10691
# version 8.0 and above of icpc choke on multiply defined symbols
10692
# if we add $predep_objects and $postdep_objects, however 7.1 and
10693
# earlier do not add the objects themselves.
10694
case `$CC -V 2>&1` in
10696
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10697
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10699
*) # Version 8.0 or newer
10702
ia64*) tmp_idyn=' -i_dynamic';;
10704
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10705
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10708
archive_cmds_need_lc_CXX=no
10709
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10710
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10711
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10714
# Portland Group C++ compiler
10715
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10716
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10718
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10719
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10720
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10724
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10725
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10727
runpath_var=LD_RUN_PATH
10728
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10729
hardcode_libdir_separator_CXX=:
10731
# Commands to make compiler produce verbose output that lists
10732
# what "hidden" libraries, object files and flags are used when
10733
# linking a shared library.
10735
# There doesn't appear to be a way to prevent this compiler from
10736
# explicitly linking system object files so we need to strip them
10737
# from the output so that they don't get included in the library
10739
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10744
# FIXME: insert proper C++ library support
10748
# FIXME: insert proper C++ library support
10752
case $cc_basename in
10754
# FIXME: insert proper C++ library support
10758
# FIXME: insert proper C++ library support
10764
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10765
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10767
hardcode_libdir_flag_spec_CXX='-R$libdir'
10768
hardcode_direct_CXX=yes
10769
hardcode_shlibpath_var_CXX=no
10771
# Workaround some broken pre-1.5 toolchains
10772
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10775
# C++ shared libraries are fairly broken
10779
hardcode_direct_CXX=yes
10780
hardcode_shlibpath_var_CXX=no
10781
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10782
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10783
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10784
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10785
export_dynamic_flag_spec_CXX='${wl}-E'
10786
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10788
output_verbose_link_cmd='echo'
10791
case $cc_basename in
10793
# Kuck and Associates, Inc. (KAI) C++ Compiler
10795
# KCC will only create a shared library if the output file
10796
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10797
# to its proper name (with version) after linking.
10798
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10800
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10801
hardcode_libdir_separator_CXX=:
10803
# Archives containing C++ object files must be created using
10804
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10805
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10809
# Rational C++ 2.4.1
10810
# FIXME: insert proper C++ library support
10814
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10815
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10817
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10818
hardcode_libdir_separator_CXX=:
10820
# Commands to make compiler produce verbose output that lists
10821
# what "hidden" libraries, object files and flags are used when
10822
# linking a shared library.
10824
# There doesn't appear to be a way to prevent this compiler from
10825
# explicitly linking system object files so we need to strip them
10826
# from the output so that they don't get included in the library
10828
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10831
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10832
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10833
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10835
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10836
hardcode_libdir_separator_CXX=:
10838
# Commands to make compiler produce verbose output that lists
10839
# what "hidden" libraries, object files and flags are used when
10840
# linking a shared library.
10841
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10844
# FIXME: insert proper C++ library support
10851
case $cc_basename in
10853
# Kuck and Associates, Inc. (KAI) C++ Compiler
10855
# KCC will only create a shared library if the output file
10856
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10857
# to its proper name (with version) after linking.
10858
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10860
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10861
hardcode_libdir_separator_CXX=:
10863
# Archives containing C++ object files must be created using
10864
# the KAI C++ compiler.
10865
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10868
# Rational C++ 2.4.1
10869
# FIXME: insert proper C++ library support
10873
allow_undefined_flag_CXX=' -expect_unresolved \*'
10874
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10875
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10876
echo "-hidden">> $lib.exp~
10877
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10880
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10881
hardcode_libdir_separator_CXX=:
10883
# Commands to make compiler produce verbose output that lists
10884
# what "hidden" libraries, object files and flags are used when
10885
# linking a shared library.
10887
# There doesn't appear to be a way to prevent this compiler from
10888
# explicitly linking system object files so we need to strip them
10889
# from the output so that they don't get included in the library
10891
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10894
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10895
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10896
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10898
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10899
hardcode_libdir_separator_CXX=:
10901
# Commands to make compiler produce verbose output that lists
10902
# what "hidden" libraries, object files and flags are used when
10903
# linking a shared library.
10904
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10907
# FIXME: insert proper C++ library support
10914
# FIXME: insert proper C++ library support
10918
case $cc_basename in
10921
# FIXME: insert proper C++ library support
10926
# FIXME: insert proper C++ library support
10930
# FIXME: insert proper C++ library support
10936
case $cc_basename in
10938
# Sun C++ 4.2, 5.x and Centerline C++
10939
archive_cmds_need_lc_CXX=yes
10940
no_undefined_flag_CXX=' -zdefs'
10941
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10942
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10943
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10945
hardcode_libdir_flag_spec_CXX='-R$libdir'
10946
hardcode_shlibpath_var_CXX=no
10948
solaris2.[0-5] | solaris2.[0-5].*) ;;
10950
# The C++ compiler is used as linker so we must use $wl
10951
# flag to pass the commands to the underlying system
10952
# linker. We must also pass each convience library through
10953
# to the system linker between allextract/defaultextract.
10954
# The C++ compiler will combine linker options so we
10955
# cannot just pass the convience library names through
10957
# Supported since Solaris 2.6 (maybe 2.5.1?)
10958
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10961
link_all_deplibs_CXX=yes
10963
output_verbose_link_cmd='echo'
10965
# Archives containing C++ object files must be created using
10966
# "CC -xar", where "CC" is the Sun C++ compiler. This is
10967
# necessary to make sure instantiated templates are included
10969
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10972
# Green Hills C++ Compiler
10973
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10975
# The C++ compiler must be used to create the archive.
10976
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10979
# GNU C++ compiler with Solaris linker
10980
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10981
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10982
if $CC --version | grep -v '^2\.7' > /dev/null; then
10983
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10984
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10985
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10987
# Commands to make compiler produce verbose output that lists
10988
# what "hidden" libraries, object files and flags are used when
10989
# linking a shared library.
10990
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10992
# g++ 2.7 appears to require `-G' NOT `-shared' on this
10994
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10995
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10996
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10998
# Commands to make compiler produce verbose output that lists
10999
# what "hidden" libraries, object files and flags are used when
11000
# linking a shared library.
11001
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11004
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11009
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11010
no_undefined_flag_CXX='${wl}-z,text'
11011
archive_cmds_need_lc_CXX=no
11012
hardcode_shlibpath_var_CXX=no
11013
runpath_var='LD_RUN_PATH'
11015
case $cc_basename in
11017
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11018
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11021
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11022
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11026
sysv5* | sco3.2v5* | sco5v6*)
11027
# Note: We can NOT use -z defs as we might desire, because we do not
11028
# link with -lc, and that would cause any symbols used from libc to
11029
# always be unresolved, which means just about no library would
11030
# ever link correctly. If we're not using GNU ld we use -z text
11031
# though, which does catch some bad symbols but isn't as heavy-handed
11033
# For security reasons, it is highly recommended that you always
11034
# use absolute paths for naming shared libraries, and exclude the
11035
# DT_RUNPATH tag from executables and libraries. But doing so
11036
# requires that you compile everything twice, which is a pain.
11037
# So that behaviour is only enabled if SCOABSPATH is set to a
11038
# non-empty value in the environment. Most likely only useful for
11039
# creating official distributions of packages.
11040
# This is a hack until libtool officially supports absolute path
11041
# names for shared libraries.
11042
no_undefined_flag_CXX='${wl}-z,text'
11043
allow_undefined_flag_CXX='${wl}-z,nodefs'
11044
archive_cmds_need_lc_CXX=no
11045
hardcode_shlibpath_var_CXX=no
11046
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11047
hardcode_libdir_separator_CXX=':'
11048
link_all_deplibs_CXX=yes
11049
export_dynamic_flag_spec_CXX='${wl}-Bexport'
11050
runpath_var='LD_RUN_PATH'
11052
case $cc_basename in
11054
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11055
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11058
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11059
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11064
case $cc_basename in
11066
# NonStop-UX NCC 3.20
11067
# FIXME: insert proper C++ library support
11071
# FIXME: insert proper C++ library support
11077
# FIXME: insert proper C++ library support
11081
# FIXME: insert proper C++ library support
11085
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11086
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11087
test "$ld_shlibs_CXX" = no && can_build_shared=no
11093
cat > conftest.$ac_ext <<EOF
11097
Foo (void) { a = 0; }
11103
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11104
(eval $ac_compile) 2>&5
11106
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107
(exit $ac_status); }; then
11108
# Parse the compiler output and extract the necessary
11109
# objects, libraries and library flags.
11111
# Sentinel used to keep track of whether or not we are before
11112
# the conftest object file.
11113
pre_test_object_deps_done=no
11115
# The `*' in the case matches for architectures that use `case' in
11116
# $output_verbose_cmd can trigger glob expansion during the loop
11117
# eval without this substitution.
11118
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11120
for p in `eval $output_verbose_link_cmd`; do
11124
# Some compilers place space between "-{L,R}" and the path.
11125
# Remove the space.
11126
if test $p = "-L" \
11127
|| test $p = "-R"; then
11134
if test "$pre_test_object_deps_done" = no; then
11137
# Internal compiler library paths should come after those
11138
# provided the user. The postdeps already come after the
11139
# user supplied libs so there is no need to process them.
11140
if test -z "$compiler_lib_search_path_CXX"; then
11141
compiler_lib_search_path_CXX="${prev}${p}"
11143
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11146
# The "-l" case would never come before the object being
11147
# linked, so don't bother handling this case.
11150
if test -z "$postdeps_CXX"; then
11151
postdeps_CXX="${prev}${p}"
11153
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11159
# This assumes that the test object file only shows up
11160
# once in the compiler output.
11161
if test "$p" = "conftest.$objext"; then
11162
pre_test_object_deps_done=yes
11166
if test "$pre_test_object_deps_done" = no; then
11167
if test -z "$predep_objects_CXX"; then
11168
predep_objects_CXX="$p"
11170
predep_objects_CXX="$predep_objects_CXX $p"
11173
if test -z "$postdep_objects_CXX"; then
11174
postdep_objects_CXX="$p"
11176
postdep_objects_CXX="$postdep_objects_CXX $p"
11181
*) ;; # Ignore the rest.
11189
echo "libtool.m4: error: problem compiling CXX test program"
11192
$rm -f confest.$objext
11194
# PORTME: override above test on systems where it is broken
11197
# Interix 3.5 installs completely hosed .la files for C++, so rather than
11198
# hack all around it, let's just trust "g++" to DTRT.
11199
predep_objects_CXX=
11200
postdep_objects_CXX=
11205
case $cc_basename in
11207
# Adding this requires a known-good setup of shared libraries for
11208
# Sun compiler versions before 5.6, else PIC objects from an old
11209
# archive will be linked into the output, leading to subtle bugs.
11210
postdeps_CXX='-lCstd -lCrun'
11217
case " $postdeps_CXX " in
11218
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11221
lt_prog_compiler_wl_CXX=
11222
lt_prog_compiler_pic_CXX=
11223
lt_prog_compiler_static_CXX=
11225
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11226
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11228
# C++ specific cases for pic, static, wl, etc.
11229
if test "$GXX" = yes; then
11230
lt_prog_compiler_wl_CXX='-Wl,'
11231
lt_prog_compiler_static_CXX='-static'
11235
# All AIX code is PIC.
11236
if test "$host_cpu" = ia64; then
11237
# AIX 5 now supports IA64 processor
11238
lt_prog_compiler_static_CXX='-Bstatic'
11242
# FIXME: we need at least 68020 code to build shared libraries, but
11243
# adding the `-m68020' flag to GCC prevents building anything better,
11245
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11247
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11248
# PIC is the default for these OSes.
11250
mingw* | os2* | pw32*)
11251
# This hack is so that the source file can tell whether it is being
11252
# built for inclusion in a dll (and should export symbols for example).
11253
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11255
darwin* | rhapsody*)
11256
# PIC is the default on this platform
11257
# Common symbols not allowed in MH_DYLIB files
11258
lt_prog_compiler_pic_CXX='-fno-common'
11261
# DJGPP does not support shared libraries at all
11262
lt_prog_compiler_pic_CXX=
11265
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
11266
# Instead, we relocate shared libraries at runtime.
11269
if test -d /usr/nec; then
11270
lt_prog_compiler_pic_CXX=-Kconform_pic
11274
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11275
# not for PA HP-UX.
11280
lt_prog_compiler_pic_CXX='-fPIC'
11285
lt_prog_compiler_pic_CXX='-fPIC'
11291
# All AIX code is PIC.
11292
if test "$host_cpu" = ia64; then
11293
# AIX 5 now supports IA64 processor
11294
lt_prog_compiler_static_CXX='-Bstatic'
11296
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11300
case $cc_basename in
11302
# Green Hills C++ Compiler
11303
# _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11308
# PIC is the default on this platform
11309
# Common symbols not allowed in MH_DYLIB files
11310
case $cc_basename in
11312
lt_prog_compiler_pic_CXX='-qnocommon'
11313
lt_prog_compiler_wl_CXX='-Wl,'
11318
case $cc_basename in
11320
lt_prog_compiler_pic_CXX='-KPIC'
11323
# Green Hills C++ Compiler
11324
lt_prog_compiler_pic_CXX='-pic'
11330
freebsd* | kfreebsd*-gnu | dragonfly*)
11331
# FreeBSD uses GNU C++
11333
hpux9* | hpux10* | hpux11*)
11334
case $cc_basename in
11336
lt_prog_compiler_wl_CXX='-Wl,'
11337
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11338
if test "$host_cpu" != ia64; then
11339
lt_prog_compiler_pic_CXX='+Z'
11343
lt_prog_compiler_wl_CXX='-Wl,'
11344
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11350
lt_prog_compiler_pic_CXX='+Z'
11359
# This is c89, which is MS Visual C++ (no shared libs)
11360
# Anyone wants to do a port?
11362
irix5* | irix6* | nonstopux*)
11363
case $cc_basename in
11365
lt_prog_compiler_wl_CXX='-Wl,'
11366
lt_prog_compiler_static_CXX='-non_shared'
11367
# CC pic flag -KPIC is the default.
11374
case $cc_basename in
11377
lt_prog_compiler_wl_CXX='--backend -Wl,'
11378
lt_prog_compiler_pic_CXX='-fPIC'
11382
lt_prog_compiler_wl_CXX='-Wl,'
11383
lt_prog_compiler_pic_CXX='-KPIC'
11384
lt_prog_compiler_static_CXX='-static'
11387
# Portland Group C++ compiler.
11388
lt_prog_compiler_wl_CXX='-Wl,'
11389
lt_prog_compiler_pic_CXX='-fpic'
11390
lt_prog_compiler_static_CXX='-Bstatic'
11394
# Make sure the PIC flag is empty. It appears that all Alpha
11395
# Linux and Compaq Tru64 Unix objects are PIC.
11396
lt_prog_compiler_pic_CXX=
11397
lt_prog_compiler_static_CXX='-non_shared'
11408
case $cc_basename in
11410
lt_prog_compiler_pic_CXX='-W c,exportall'
11418
osf3* | osf4* | osf5*)
11419
case $cc_basename in
11421
lt_prog_compiler_wl_CXX='--backend -Wl,'
11424
# Rational C++ 2.4.1
11425
lt_prog_compiler_pic_CXX='-pic'
11428
# Digital/Compaq C++
11429
lt_prog_compiler_wl_CXX='-Wl,'
11430
# Make sure the PIC flag is empty. It appears that all Alpha
11431
# Linux and Compaq Tru64 Unix objects are PIC.
11432
lt_prog_compiler_pic_CXX=
11433
lt_prog_compiler_static_CXX='-non_shared'
11442
case $cc_basename in
11444
# Sun C++ 4.2, 5.x and Centerline C++
11445
lt_prog_compiler_pic_CXX='-KPIC'
11446
lt_prog_compiler_static_CXX='-Bstatic'
11447
lt_prog_compiler_wl_CXX='-Qoption ld '
11450
# Green Hills C++ Compiler
11451
lt_prog_compiler_pic_CXX='-PIC'
11458
case $cc_basename in
11461
lt_prog_compiler_pic_CXX='-pic'
11462
lt_prog_compiler_static_CXX='-Bstatic'
11466
lt_prog_compiler_pic_CXX='-pic'
11473
case $cc_basename in
11475
# NonStop-UX NCC 3.20
11476
lt_prog_compiler_pic_CXX='-KPIC'
11482
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11483
case $cc_basename in
11485
lt_prog_compiler_wl_CXX='-Wl,'
11486
lt_prog_compiler_pic_CXX='-KPIC'
11487
lt_prog_compiler_static_CXX='-Bstatic'
11494
lt_prog_compiler_can_build_shared_CXX=no
11499
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11500
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11503
# Check to make sure the PIC flag actually works.
11505
if test -n "$lt_prog_compiler_pic_CXX"; then
11507
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11508
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11509
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11510
echo $ECHO_N "(cached) $ECHO_C" >&6
11512
lt_prog_compiler_pic_works_CXX=no
11513
ac_outfile=conftest.$ac_objext
11514
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11515
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11516
# Insert the option either (1) after the last *FLAGS variable, or
11517
# (2) before a word containing "conftest.", or (3) at the end.
11518
# Note that $ac_compile itself does not contain backslashes and begins
11519
# with a dollar sign (not a hyphen), so the echo should work correctly.
11520
# The option is referenced via a variable to avoid confusing sed.
11521
lt_compile=`echo "$ac_compile" | $SED \
11522
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11523
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11524
-e 's:$: $lt_compiler_flag:'`
11525
(eval echo "\"\$as_me:11525: $lt_compile\"" >&5)
11526
(eval "$lt_compile" 2>conftest.err)
11528
cat conftest.err >&5
11529
echo "$as_me:11529: \$? = $ac_status" >&5
11530
if (exit $ac_status) && test -s "$ac_outfile"; then
11531
# The compiler can only warn and ignore the option if not recognized
11532
# So say no if there are warnings other than the usual output.
11533
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11534
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11535
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11536
lt_prog_compiler_pic_works_CXX=yes
11542
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11543
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11545
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11546
case $lt_prog_compiler_pic_CXX in
11548
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11551
lt_prog_compiler_pic_CXX=
11552
lt_prog_compiler_can_build_shared_CXX=no
11557
# For platforms which do not support PIC, -DPIC is meaningless:
11559
lt_prog_compiler_pic_CXX=
11562
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11567
# Check to make sure the static flag actually works.
11569
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11570
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11571
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11572
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11573
echo $ECHO_N "(cached) $ECHO_C" >&6
11575
lt_prog_compiler_static_works_CXX=no
11576
save_LDFLAGS="$LDFLAGS"
11577
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11578
printf "$lt_simple_link_test_code" > conftest.$ac_ext
11579
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11580
# The linker can only warn and ignore the option if not recognized
11581
# So say no if there are warnings
11582
if test -s conftest.err; then
11583
# Append any errors to the config.log.
11584
cat conftest.err 1>&5
11585
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11586
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11587
if diff conftest.exp conftest.er2 >/dev/null; then
11588
lt_prog_compiler_static_works_CXX=yes
11591
lt_prog_compiler_static_works_CXX=yes
11595
LDFLAGS="$save_LDFLAGS"
11598
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11599
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11601
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11604
lt_prog_compiler_static_CXX=
11608
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11609
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11610
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11611
echo $ECHO_N "(cached) $ECHO_C" >&6
11613
lt_cv_prog_compiler_c_o_CXX=no
11614
$rm -r conftest 2>/dev/null
11618
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11620
lt_compiler_flag="-o out/conftest2.$ac_objext"
11621
# Insert the option either (1) after the last *FLAGS variable, or
11622
# (2) before a word containing "conftest.", or (3) at the end.
11623
# Note that $ac_compile itself does not contain backslashes and begins
11624
# with a dollar sign (not a hyphen), so the echo should work correctly.
11625
lt_compile=`echo "$ac_compile" | $SED \
11626
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11627
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11628
-e 's:$: $lt_compiler_flag:'`
11629
(eval echo "\"\$as_me:11629: $lt_compile\"" >&5)
11630
(eval "$lt_compile" 2>out/conftest.err)
11632
cat out/conftest.err >&5
11633
echo "$as_me:11633: \$? = $ac_status" >&5
11634
if (exit $ac_status) && test -s out/conftest2.$ac_objext
11636
# The compiler can only warn and ignore the option if not recognized
11637
# So say no if there are warnings
11638
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11639
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11640
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11641
lt_cv_prog_compiler_c_o_CXX=yes
11646
# SGI C++ compiler will create directory out/ii_files/ for
11647
# template instantiation
11648
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11649
$rm out/* && rmdir out
11655
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11656
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11659
hard_links="nottested"
11660
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11661
# do not overwrite the value of need_locks provided by the user
11662
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11663
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11666
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11668
ln conftest.a conftest.b 2>&5 || hard_links=no
11669
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11670
echo "$as_me:$LINENO: result: $hard_links" >&5
11671
echo "${ECHO_T}$hard_links" >&6
11672
if test "$hard_links" = no; then
11673
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11674
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11681
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11682
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11684
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11687
# If we're using GNU nm, then we don't want the "-C" option.
11688
# -C means demangle to AIX nm, but means don't demangle with GNU nm
11689
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11690
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11692
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11696
export_symbols_cmds_CXX="$ltdll_cmds"
11699
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11702
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11706
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11707
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11708
test "$ld_shlibs_CXX" = no && can_build_shared=no
11711
# Do we need to explicitly link libc?
11713
case "x$archive_cmds_need_lc_CXX" in
11715
# Assume -lc should be added
11716
archive_cmds_need_lc_CXX=yes
11718
if test "$enable_shared" = yes && test "$GCC" = yes; then
11719
case $archive_cmds_CXX in
11721
# FIXME: we may have to deal with multi-command sequences.
11724
# Test whether the compiler implicitly links with -lc since on some
11725
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11726
# to ld, don't add -lc before -lgcc.
11727
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11728
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11730
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11732
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11733
(eval $ac_compile) 2>&5
11735
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736
(exit $ac_status); } 2>conftest.err; then
11739
libobjs=conftest.$ac_objext
11741
wl=$lt_prog_compiler_wl_CXX
11742
pic_flag=$lt_prog_compiler_pic_CXX
11748
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11749
allow_undefined_flag_CXX=
11750
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11751
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11753
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754
(exit $ac_status); }
11756
archive_cmds_need_lc_CXX=no
11758
archive_cmds_need_lc_CXX=yes
11760
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11762
cat conftest.err 1>&5
11765
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11766
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11773
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11774
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11775
library_names_spec=
11776
libname_spec='lib$name'
11780
postuninstall_cmds=
11784
shlibpath_overrides_runpath=unknown
11786
dynamic_linker="$host_os ld.so"
11787
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11788
if test "$GCC" = yes; then
11789
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11790
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11791
# if the path contains ";" then we assume it to be the separator
11792
# otherwise default to the standard path separator (i.e. ":") - it is
11793
# assumed that no part of a normal pathname contains ";" but that should
11794
# okay in the real world where ";" in dirpaths is itself problematic.
11795
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11797
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11800
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11802
need_lib_prefix=unknown
11803
hardcode_into_libs=no
11805
# when you set need_version to no, make sure it does not cause -set_version
11806
# flags to be left without arguments
11807
need_version=unknown
11812
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11813
shlibpath_var=LIBPATH
11815
# AIX 3 has no versioning support, so we append a major version to the name.
11816
soname_spec='${libname}${release}${shared_ext}$major'
11823
hardcode_into_libs=yes
11824
if test "$host_cpu" = ia64; then
11825
# AIX 5 supports IA64
11826
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11827
shlibpath_var=LD_LIBRARY_PATH
11829
# With GCC up to 2.95.x, collect2 would create an import file
11830
# for dependence libraries. The import file would start with
11831
# the line `#! .'. This would cause the generated library to
11832
# depend on `.', always an invalid library. This was fixed in
11833
# development snapshots of GCC prior to 3.0.
11835
aix4 | aix4.[01] | aix4.[01].*)
11836
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11838
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11841
can_build_shared=no
11845
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11846
# soname into executable. Probably we can add versioning support to
11847
# collect2, so additional links can be useful in future.
11848
if test "$aix_use_runtimelinking" = yes; then
11849
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11850
# instead of lib<name>.a to let people know that these are not
11851
# typical AIX shared libraries.
11852
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11854
# We preserve .a as extension for shared libraries through AIX4.2
11855
# and later when we are not doing run time linking.
11856
library_names_spec='${libname}${release}.a $libname.a'
11857
soname_spec='${libname}${release}${shared_ext}$major'
11859
shlibpath_var=LIBPATH
11864
library_names_spec='$libname.ixlibrary $libname.a'
11865
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11866
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'
11870
library_names_spec='${libname}${shared_ext}'
11871
dynamic_linker="$host_os ld.so"
11872
shlibpath_var=LIBRARY_PATH
11878
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11879
soname_spec='${libname}${release}${shared_ext}$major'
11880
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11881
shlibpath_var=LD_LIBRARY_PATH
11882
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11883
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11884
# the default ld.so.conf also contains /usr/contrib/lib and
11885
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11886
# libtool to hard-code these into programs
11889
cygwin* | mingw* | pw32*)
11890
version_type=windows
11895
case $GCC,$host_os in
11896
yes,cygwin* | yes,mingw* | yes,pw32*)
11897
library_names_spec='$libname.dll.a'
11898
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11899
postinstall_cmds='base_file=`basename \${file}`~
11900
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11901
dldir=$destdir/`dirname \$dlpath`~
11902
test -d \$dldir || mkdir -p \$dldir~
11903
$install_prog $dir/$dlname \$dldir/$dlname~
11904
chmod a+x \$dldir/$dlname'
11905
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11906
dlpath=$dir/\$dldll~
11908
shlibpath_overrides_runpath=yes
11912
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11913
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11914
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11917
# MinGW DLLs use traditional 'lib' prefix
11918
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11919
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11920
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11921
# It is most probably a Windows format PATH printed by
11922
# mingw gcc, but we are running on Cygwin. Gcc prints its search
11923
# path with ; separators, and with drive letters. We can handle the
11924
# drive letters (cygwin fileutils understands them), so leave them,
11925
# especially as we might pass files found there to a mingw objdump,
11926
# which wouldn't understand a cygwinified path. Ahh.
11927
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11929
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11933
# pw32 DLLs use 'pw' prefix rather than 'lib'
11934
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11940
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11943
dynamic_linker='Win32 ld.exe'
11944
# FIXME: first we should search . and the directory the executable is in
11948
darwin* | rhapsody*)
11949
dynamic_linker="$host_os dyld"
11950
version_type=darwin
11953
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11954
soname_spec='${libname}${release}${major}$shared_ext'
11955
shlibpath_overrides_runpath=yes
11956
shlibpath_var=DYLD_LIBRARY_PATH
11957
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11958
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11959
if test "$GCC" = yes; then
11960
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11962
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11964
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11971
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11972
soname_spec='${libname}${release}${shared_ext}$major'
11973
shlibpath_var=LD_LIBRARY_PATH
11984
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11985
soname_spec='${libname}${release}${shared_ext}$major'
11986
shlibpath_var=LD_LIBRARY_PATH
11987
shlibpath_overrides_runpath=no
11988
hardcode_into_libs=yes
11989
dynamic_linker='GNU ld.so'
11992
freebsd* | dragonfly*)
11993
# DragonFly does not have aout. When/if they implement a new
11994
# versioning mechanism, adjust this.
11995
if test -x /usr/bin/objformat; then
11996
objformat=`/usr/bin/objformat`
11999
freebsd[123]*) objformat=aout ;;
12000
*) objformat=elf ;;
12003
version_type=freebsd-$objformat
12004
case $version_type in
12006
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12011
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12015
shlibpath_var=LD_LIBRARY_PATH
12018
shlibpath_overrides_runpath=yes
12020
freebsd3.[01]* | freebsdelf3.[01]*)
12021
shlibpath_overrides_runpath=yes
12022
hardcode_into_libs=yes
12024
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12025
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12026
shlibpath_overrides_runpath=no
12027
hardcode_into_libs=yes
12029
freebsd*) # from 4.6 on
12030
shlibpath_overrides_runpath=yes
12031
hardcode_into_libs=yes
12040
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12041
soname_spec='${libname}${release}${shared_ext}$major'
12042
shlibpath_var=LD_LIBRARY_PATH
12043
hardcode_into_libs=yes
12046
hpux9* | hpux10* | hpux11*)
12047
# Give a soname corresponding to the major version so that dld.sl refuses to
12048
# link against other versions.
12055
hardcode_into_libs=yes
12056
dynamic_linker="$host_os dld.so"
12057
shlibpath_var=LD_LIBRARY_PATH
12058
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12059
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12060
soname_spec='${libname}${release}${shared_ext}$major'
12061
if test "X$HPUX_IA64_MODE" = X32; then
12062
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12064
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12066
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12070
hardcode_into_libs=yes
12071
dynamic_linker="$host_os dld.sl"
12072
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12073
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12074
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12075
soname_spec='${libname}${release}${shared_ext}$major'
12076
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12077
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12081
dynamic_linker="$host_os dld.sl"
12082
shlibpath_var=SHLIB_PATH
12083
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12084
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12085
soname_spec='${libname}${release}${shared_ext}$major'
12088
# HP-UX runs *really* slowly unless shared libraries are mode 555.
12089
postinstall_cmds='chmod 555 $lib'
12096
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12097
soname_spec='${libname}${release}${shared_ext}$major'
12098
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12099
shlibpath_var=LD_LIBRARY_PATH
12100
shlibpath_overrides_runpath=no
12101
hardcode_into_libs=yes
12104
irix5* | irix6* | nonstopux*)
12106
nonstopux*) version_type=nonstopux ;;
12108
if test "$lt_cv_prog_gnu_ld" = yes; then
12116
soname_spec='${libname}${release}${shared_ext}$major'
12117
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12119
irix5* | nonstopux*)
12120
libsuff= shlibsuff=
12123
case $LD in # libtool.m4 will add one of these switches to LD
12124
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12125
libsuff= shlibsuff= libmagic=32-bit;;
12126
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12127
libsuff=32 shlibsuff=N32 libmagic=N32;;
12128
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12129
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12130
*) libsuff= shlibsuff= libmagic=never-match;;
12134
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12135
shlibpath_overrides_runpath=no
12136
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12137
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12138
hardcode_into_libs=yes
12141
# No shared lib support for Linux oldld, aout, or coff.
12142
linux*oldld* | linux*aout* | linux*coff*)
12146
# This must be Linux ELF.
12151
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12152
soname_spec='${libname}${release}${shared_ext}$major'
12153
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12154
shlibpath_var=LD_LIBRARY_PATH
12155
shlibpath_overrides_runpath=no
12156
# This implies no fast_install, which is unacceptable.
12157
# Some rework will be needed to allow for fast_install
12158
# before this can be enabled.
12159
hardcode_into_libs=yes
12161
# Append ld.so.conf contents to the search path
12162
if test -f /etc/ld.so.conf; then
12163
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12164
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12167
# We used to test for /lib/ld.so.1 and disable shared libraries on
12168
# powerpc, because MkLinux only supported shared libraries with the
12169
# GNU dynamic linker. Since this was broken with cross compilers,
12170
# most powerpc-linux boxes support dynamic linking these days and
12171
# people can always --disable-shared, the test was removed, and we
12172
# assume the GNU/Linux dynamic linker is in use.
12173
dynamic_linker='GNU/Linux ld.so'
12180
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12181
soname_spec='${libname}${release}${shared_ext}$major'
12182
shlibpath_var=LD_LIBRARY_PATH
12183
shlibpath_overrides_runpath=no
12184
hardcode_into_libs=yes
12185
dynamic_linker='GNU ld.so'
12192
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12193
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12194
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12195
dynamic_linker='NetBSD (a.out) ld.so'
12197
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12198
soname_spec='${libname}${release}${shared_ext}$major'
12199
dynamic_linker='NetBSD ld.elf_so'
12201
shlibpath_var=LD_LIBRARY_PATH
12202
shlibpath_overrides_runpath=yes
12203
hardcode_into_libs=yes
12208
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12209
shlibpath_var=LD_LIBRARY_PATH
12210
shlibpath_overrides_runpath=yes
12217
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12218
soname_spec='${libname}${release}${shared_ext}$major'
12219
shlibpath_var=LD_LIBRARY_PATH
12220
shlibpath_overrides_runpath=yes
12225
sys_lib_dlsearch_path_spec="/usr/lib"
12227
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12229
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12230
*) need_version=no ;;
12232
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12233
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12234
shlibpath_var=LD_LIBRARY_PATH
12235
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12237
openbsd2.[89] | openbsd2.[89].*)
12238
shlibpath_overrides_runpath=no
12241
shlibpath_overrides_runpath=yes
12245
shlibpath_overrides_runpath=yes
12250
libname_spec='$name'
12253
library_names_spec='$libname${shared_ext} $libname.a'
12254
dynamic_linker='OS/2 ld.exe'
12255
shlibpath_var=LIBPATH
12258
osf3* | osf4* | osf5*)
12262
soname_spec='${libname}${release}${shared_ext}$major'
12263
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12264
shlibpath_var=LD_LIBRARY_PATH
12265
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12266
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12273
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12274
soname_spec='${libname}${release}${shared_ext}$major'
12275
shlibpath_var=LD_LIBRARY_PATH
12276
shlibpath_overrides_runpath=yes
12277
hardcode_into_libs=yes
12278
# ldd complains unless libraries are executable
12279
postinstall_cmds='chmod +x $lib'
12284
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12285
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12286
shlibpath_var=LD_LIBRARY_PATH
12287
shlibpath_overrides_runpath=yes
12288
if test "$with_gnu_ld" = yes; then
12296
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12297
soname_spec='${libname}${release}${shared_ext}$major'
12298
shlibpath_var=LD_LIBRARY_PATH
12299
case $host_vendor in
12301
shlibpath_overrides_runpath=no
12303
export_dynamic_flag_spec='${wl}-Blargedynsym'
12304
runpath_var=LD_RUN_PATH
12312
shlibpath_overrides_runpath=no
12313
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12319
if test -d /usr/nec ;then
12321
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12322
soname_spec='$libname${shared_ext}.$major'
12323
shlibpath_var=LD_LIBRARY_PATH
12327
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12328
version_type=freebsd-elf
12331
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12332
soname_spec='${libname}${release}${shared_ext}$major'
12333
shlibpath_var=LD_LIBRARY_PATH
12334
hardcode_into_libs=yes
12335
if test "$with_gnu_ld" = yes; then
12336
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12337
shlibpath_overrides_runpath=no
12339
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12340
shlibpath_overrides_runpath=yes
12343
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12347
sys_lib_dlsearch_path_spec='/usr/lib'
12352
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12353
soname_spec='${libname}${release}${shared_ext}$major'
12354
shlibpath_var=LD_LIBRARY_PATH
12361
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12362
echo "${ECHO_T}$dynamic_linker" >&6
12363
test "$dynamic_linker" = no && can_build_shared=no
12365
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12366
if test "$GCC" = yes; then
12367
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12370
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12371
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12372
hardcode_action_CXX=
12373
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12374
test -n "$runpath_var_CXX" || \
12375
test "X$hardcode_automatic_CXX" = "Xyes" ; then
12377
# We can hardcode non-existant directories.
12378
if test "$hardcode_direct_CXX" != no &&
12379
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12380
# have to relink, otherwise we might link with an installed library
12381
# when we should be linking with a yet-to-be-installed one
12382
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12383
test "$hardcode_minus_L_CXX" != no; then
12384
# Linking always hardcodes the temporary library directory.
12385
hardcode_action_CXX=relink
12387
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12388
hardcode_action_CXX=immediate
12391
# We cannot hardcode anything, or else we can only hardcode existing
12393
hardcode_action_CXX=unsupported
12395
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12396
echo "${ECHO_T}$hardcode_action_CXX" >&6
12398
if test "$hardcode_action_CXX" = relink; then
12399
# Fast installation is not supported
12400
enable_fast_install=no
12401
elif test "$shlibpath_overrides_runpath" = yes ||
12402
test "$enable_shared" = no; then
12403
# Fast installation is not necessary
12404
enable_fast_install=needless
12408
# The else clause should only fire when bootstrapping the
12409
# libtool distribution, otherwise you forgot to ship ltmain.sh
12410
# with your package, and you will get complaints that there are
12411
# no rules to generate ltmain.sh.
12412
if test -f "$ltmain"; then
12413
# See if we are running on zsh, and set the options which allow our commands through
12414
# without removal of \ escapes.
12415
if test -n "${ZSH_VERSION+set}" ; then
12416
setopt NO_GLOB_SUBST
12418
# Now quote all the things that may contain metacharacters while being
12419
# careful not to overquote the AC_SUBSTed values. We take copies of the
12420
# variables and quote the copies for generation of the libtool script.
12421
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12423
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12424
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12425
deplibs_check_method reload_flag reload_cmds need_locks \
12426
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12427
lt_cv_sys_global_symbol_to_c_name_address \
12428
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12429
old_postinstall_cmds old_postuninstall_cmds \
12433
lt_prog_compiler_wl_CXX \
12434
lt_prog_compiler_pic_CXX \
12435
lt_prog_compiler_static_CXX \
12436
lt_prog_compiler_no_builtin_flag_CXX \
12437
export_dynamic_flag_spec_CXX \
12438
thread_safe_flag_spec_CXX \
12439
whole_archive_flag_spec_CXX \
12440
enable_shared_with_static_runtimes_CXX \
12441
old_archive_cmds_CXX \
12442
old_archive_from_new_cmds_CXX \
12443
predep_objects_CXX \
12444
postdep_objects_CXX \
12447
compiler_lib_search_path_CXX \
12449
archive_expsym_cmds_CXX \
12450
postinstall_cmds_CXX \
12451
postuninstall_cmds_CXX \
12452
old_archive_from_expsyms_cmds_CXX \
12453
allow_undefined_flag_CXX \
12454
no_undefined_flag_CXX \
12455
export_symbols_cmds_CXX \
12456
hardcode_libdir_flag_spec_CXX \
12457
hardcode_libdir_flag_spec_ld_CXX \
12458
hardcode_libdir_separator_CXX \
12459
hardcode_automatic_CXX \
12461
module_expsym_cmds_CXX \
12462
lt_cv_prog_compiler_c_o_CXX \
12463
exclude_expsyms_CXX \
12464
include_expsyms_CXX; do
12467
old_archive_cmds_CXX | \
12468
old_archive_from_new_cmds_CXX | \
12469
archive_cmds_CXX | \
12470
archive_expsym_cmds_CXX | \
12471
module_cmds_CXX | \
12472
module_expsym_cmds_CXX | \
12473
old_archive_from_expsyms_cmds_CXX | \
12474
export_symbols_cmds_CXX | \
12475
extract_expsyms_cmds | reload_cmds | finish_cmds | \
12476
postinstall_cmds | postuninstall_cmds | \
12477
old_postinstall_cmds | old_postuninstall_cmds | \
12478
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12479
# Double-quote double-evaled strings.
12480
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12483
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12489
*'\$0 --fallback-echo"')
12490
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12496
cat <<__EOF__ >> "$cfgfile"
12497
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12499
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12501
# Shell to use when invoking shell scripts.
12504
# Whether or not to build shared libraries.
12505
build_libtool_libs=$enable_shared
12507
# Whether or not to build static libraries.
12508
build_old_libs=$enable_static
12510
# Whether or not to add -lc for building shared libraries.
12511
build_libtool_need_lc=$archive_cmds_need_lc_CXX
12513
# Whether or not to disallow shared libs when runtime libs are static
12514
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12516
# Whether or not to optimize for fast installation.
12517
fast_install=$enable_fast_install
12520
host_alias=$host_alias
12524
# The build system.
12525
build_alias=$build_alias
12529
# An echo program that does not interpret backslashes.
12534
AR_FLAGS=$lt_AR_FLAGS
12539
# LTCC compiler flags.
12540
LTCFLAGS=$lt_LTCFLAGS
12542
# A language-specific compiler.
12543
CC=$lt_compiler_CXX
12545
# Is the compiler the GNU C compiler?
12551
# The linker used to build libraries.
12554
# Whether we need hard or soft links.
12557
# A BSD-compatible nm program.
12560
# A symbol stripping program
12563
# Used to examine libraries when file_magic_cmd begins "file"
12564
MAGIC_CMD=$MAGIC_CMD
12566
# Used on cygwin: DLL creation program.
12569
# Used on cygwin: object dumper.
12572
# Used on cygwin: assembler.
12575
# The name of the directory that contains temporary libtool files.
12578
# How to create reloadable object files.
12579
reload_flag=$lt_reload_flag
12580
reload_cmds=$lt_reload_cmds
12582
# How to pass a linker flag through the compiler.
12583
wl=$lt_lt_prog_compiler_wl_CXX
12585
# Object file suffix (normally "o").
12586
objext="$ac_objext"
12588
# Old archive suffix (normally "a").
12591
# Shared library suffix (normally ".so").
12592
shrext_cmds='$shrext_cmds'
12594
# Executable file suffix (normally "").
12597
# Additional compiler flags for building library objects.
12598
pic_flag=$lt_lt_prog_compiler_pic_CXX
12601
# What is the maximum length of a command?
12602
max_cmd_len=$lt_cv_sys_max_cmd_len
12604
# Does compiler simultaneously support -c and -o options?
12605
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12607
# Must we lock files when doing compilation?
12608
need_locks=$lt_need_locks
12610
# Do we need the lib prefix for modules?
12611
need_lib_prefix=$need_lib_prefix
12613
# Do we need a version for libraries?
12614
need_version=$need_version
12616
# Whether dlopen is supported.
12617
dlopen_support=$enable_dlopen
12619
# Whether dlopen of programs is supported.
12620
dlopen_self=$enable_dlopen_self
12622
# Whether dlopen of statically linked programs is supported.
12623
dlopen_self_static=$enable_dlopen_self_static
12625
# Compiler flag to prevent dynamic linking.
12626
link_static_flag=$lt_lt_prog_compiler_static_CXX
12628
# Compiler flag to turn off builtin functions.
12629
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12631
# Compiler flag to allow reflexive dlopens.
12632
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12634
# Compiler flag to generate shared objects directly from archives.
12635
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12637
# Compiler flag to generate thread-safe objects.
12638
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12640
# Library versioning type.
12641
version_type=$version_type
12643
# Format of library name prefix.
12644
libname_spec=$lt_libname_spec
12646
# List of archive names. First name is the real one, the rest are links.
12647
# The last name is the one that the linker finds with -lNAME.
12648
library_names_spec=$lt_library_names_spec
12650
# The coded name of the library, if different from the real name.
12651
soname_spec=$lt_soname_spec
12653
# Commands used to build and install an old-style archive.
12655
old_archive_cmds=$lt_old_archive_cmds_CXX
12656
old_postinstall_cmds=$lt_old_postinstall_cmds
12657
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12659
# Create an old-style archive from a shared archive.
12660
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12662
# Create a temporary old-style archive to link instead of a shared archive.
12663
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12665
# Commands used to build and install a shared archive.
12666
archive_cmds=$lt_archive_cmds_CXX
12667
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12668
postinstall_cmds=$lt_postinstall_cmds
12669
postuninstall_cmds=$lt_postuninstall_cmds
12671
# Commands used to build a loadable module (assumed same as above if empty)
12672
module_cmds=$lt_module_cmds_CXX
12673
module_expsym_cmds=$lt_module_expsym_cmds_CXX
12675
# Commands to strip libraries.
12676
old_striplib=$lt_old_striplib
12677
striplib=$lt_striplib
12679
# Dependencies to place before the objects being linked to create a
12681
predep_objects=$lt_predep_objects_CXX
12683
# Dependencies to place after the objects being linked to create a
12685
postdep_objects=$lt_postdep_objects_CXX
12687
# Dependencies to place before the objects being linked to create a
12689
predeps=$lt_predeps_CXX
12691
# Dependencies to place after the objects being linked to create a
12693
postdeps=$lt_postdeps_CXX
12695
# The library search path used internally by the compiler when linking
12696
# a shared library.
12697
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12699
# Method to check whether dependent libraries are shared objects.
12700
deplibs_check_method=$lt_deplibs_check_method
12702
# Command to use when deplibs_check_method == file_magic.
12703
file_magic_cmd=$lt_file_magic_cmd
12705
# Flag that allows shared libraries with undefined symbols to be built.
12706
allow_undefined_flag=$lt_allow_undefined_flag_CXX
12708
# Flag that forces no undefined symbols.
12709
no_undefined_flag=$lt_no_undefined_flag_CXX
12711
# Commands used to finish a libtool library installation in a directory.
12712
finish_cmds=$lt_finish_cmds
12714
# Same as above, but a single script fragment to be evaled but not shown.
12715
finish_eval=$lt_finish_eval
12717
# Take the output of nm and produce a listing of raw symbols and C names.
12718
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12720
# Transform the output of nm in a proper C declaration
12721
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12723
# Transform the output of nm in a C name address pair
12724
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12726
# This is the shared library runtime path variable.
12727
runpath_var=$runpath_var
12729
# This is the shared library path variable.
12730
shlibpath_var=$shlibpath_var
12732
# Is shlibpath searched before the hard-coded library search path?
12733
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12735
# How to hardcode a shared library path into an executable.
12736
hardcode_action=$hardcode_action_CXX
12738
# Whether we should hardcode library paths into libraries.
12739
hardcode_into_libs=$hardcode_into_libs
12741
# Flag to hardcode \$libdir into a binary during linking.
12742
# This must work even if \$libdir does not exist.
12743
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12745
# If ld is used when linking, flag to hardcode \$libdir into
12746
# a binary during linking. This must work even if \$libdir does
12748
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12750
# Whether we need a single -rpath flag with a separated argument.
12751
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12753
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12754
# resulting binary.
12755
hardcode_direct=$hardcode_direct_CXX
12757
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12758
# resulting binary.
12759
hardcode_minus_L=$hardcode_minus_L_CXX
12761
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12762
# the resulting binary.
12763
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12765
# Set to yes if building a shared library automatically hardcodes DIR into the library
12766
# and all subsequent libraries and executables linked against it.
12767
hardcode_automatic=$hardcode_automatic_CXX
12769
# Variables whose values should be saved in libtool wrapper scripts and
12770
# restored at relink time.
12771
variables_saved_for_relink="$variables_saved_for_relink"
12773
# Whether libtool must link a program against all its dependency libraries.
12774
link_all_deplibs=$link_all_deplibs_CXX
12776
# Compile-time system search path for libraries
12777
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12779
# Run-time system search path for libraries
12780
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12782
# Fix the shell variable \$srcfile for the compiler.
12783
fix_srcfile_path="$fix_srcfile_path_CXX"
12785
# Set to yes if exported symbols are required.
12786
always_export_symbols=$always_export_symbols_CXX
12788
# The commands to list exported symbols.
12789
export_symbols_cmds=$lt_export_symbols_cmds_CXX
12791
# The commands to extract the exported symbol list from a shared archive.
12792
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12794
# Symbols that should not be listed in the preloaded symbols.
12795
exclude_expsyms=$lt_exclude_expsyms_CXX
12797
# Symbols that must always be exported.
12798
include_expsyms=$lt_include_expsyms_CXX
12800
# ### END LIBTOOL TAG CONFIG: $tagname
12806
# If there is no Makefile yet, we rely on a make rule to execute
12807
# `config.status --recheck' to rerun these tests and create the
12808
# libtool script then.
12809
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12810
if test -f "$ltmain_in"; then
12811
test -f Makefile && make "$ltmain"
12817
ac_cpp='$CPP $CPPFLAGS'
12818
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12819
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12820
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12826
with_gnu_ldcxx=$with_gnu_ld
12827
with_gnu_ld=$lt_save_with_gnu_ld
12828
lt_cv_path_LDCXX=$lt_cv_path_LD
12829
lt_cv_path_LD=$lt_save_path_LD
12830
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12831
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12839
if test -n "$F77" && test "X$F77" != "Xno"; then
12842
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12843
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12844
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12847
archive_cmds_need_lc_F77=no
12848
allow_undefined_flag_F77=
12849
always_export_symbols_F77=no
12850
archive_expsym_cmds_F77=
12851
export_dynamic_flag_spec_F77=
12852
hardcode_direct_F77=no
12853
hardcode_libdir_flag_spec_F77=
12854
hardcode_libdir_flag_spec_ld_F77=
12855
hardcode_libdir_separator_F77=
12856
hardcode_minus_L_F77=no
12857
hardcode_automatic_F77=no
12859
module_expsym_cmds_F77=
12860
link_all_deplibs_F77=unknown
12861
old_archive_cmds_F77=$old_archive_cmds
12862
no_undefined_flag_F77=
12863
whole_archive_flag_spec_F77=
12864
enable_shared_with_static_runtimes_F77=no
12866
# Source file extension for f77 test sources.
12869
# Object file extension for compiled f77 test sources.
12873
# Code to be used in simple compile tests
12874
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12876
# Code to be used in simple link tests
12877
lt_simple_link_test_code=" program t\n end\n"
12879
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12881
# If no C compiler was specified, use CC.
12884
# If no C compiler flags were specified, use CFLAGS.
12885
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12887
# Allow CC to be a program name with arguments.
12891
# save warnings/boilerplate of simple test code
12892
ac_outfile=conftest.$ac_objext
12893
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12894
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12895
_lt_compiler_boilerplate=`cat conftest.err`
12898
ac_outfile=conftest.$ac_objext
12899
printf "$lt_simple_link_test_code" >conftest.$ac_ext
12900
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12901
_lt_linker_boilerplate=`cat conftest.err`
12905
# Allow CC to be a program name with arguments.
12910
for cc_temp in $compiler""; do
12912
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12913
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12918
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12921
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12922
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12923
echo "$as_me:$LINENO: result: $can_build_shared" >&5
12924
echo "${ECHO_T}$can_build_shared" >&6
12926
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12927
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12928
test "$can_build_shared" = "no" && enable_shared=no
12930
# On AIX, shared libraries and static libraries use the same namespace, and
12931
# are all built from PIC.
12934
test "$enable_shared" = yes && enable_static=no
12935
if test -n "$RANLIB"; then
12936
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12937
postinstall_cmds='$RANLIB $lib'
12941
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12942
test "$enable_shared" = yes && enable_static=no
12946
echo "$as_me:$LINENO: result: $enable_shared" >&5
12947
echo "${ECHO_T}$enable_shared" >&6
12949
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12950
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12951
# Make sure either enable_shared or enable_static is yes.
12952
test "$enable_shared" = yes || enable_static=yes
12953
echo "$as_me:$LINENO: result: $enable_static" >&5
12954
echo "${ECHO_T}$enable_static" >&6
12959
lt_prog_compiler_wl_F77=
12960
lt_prog_compiler_pic_F77=
12961
lt_prog_compiler_static_F77=
12963
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12964
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12966
if test "$GCC" = yes; then
12967
lt_prog_compiler_wl_F77='-Wl,'
12968
lt_prog_compiler_static_F77='-static'
12972
# All AIX code is PIC.
12973
if test "$host_cpu" = ia64; then
12974
# AIX 5 now supports IA64 processor
12975
lt_prog_compiler_static_F77='-Bstatic'
12980
# FIXME: we need at least 68020 code to build shared libraries, but
12981
# adding the `-m68020' flag to GCC prevents building anything better,
12983
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12986
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12987
# PIC is the default for these OSes.
12990
mingw* | pw32* | os2*)
12991
# This hack is so that the source file can tell whether it is being
12992
# built for inclusion in a dll (and should export symbols for example).
12993
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12996
darwin* | rhapsody*)
12997
# PIC is the default on this platform
12998
# Common symbols not allowed in MH_DYLIB files
12999
lt_prog_compiler_pic_F77='-fno-common'
13003
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
13004
# Instead, we relocate shared libraries at runtime.
13008
# Just because we use GCC doesn't mean we suddenly get shared libraries
13009
# on systems that don't support them.
13010
lt_prog_compiler_can_build_shared_F77=no
13015
if test -d /usr/nec; then
13016
lt_prog_compiler_pic_F77=-Kconform_pic
13021
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13022
# not for PA HP-UX.
13028
lt_prog_compiler_pic_F77='-fPIC'
13034
lt_prog_compiler_pic_F77='-fPIC'
13038
# PORTME Check for flag to pass linker flags through the system compiler.
13041
lt_prog_compiler_wl_F77='-Wl,'
13042
if test "$host_cpu" = ia64; then
13043
# AIX 5 now supports IA64 processor
13044
lt_prog_compiler_static_F77='-Bstatic'
13046
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13050
# PIC is the default on this platform
13051
# Common symbols not allowed in MH_DYLIB files
13052
case $cc_basename in
13054
lt_prog_compiler_pic_F77='-qnocommon'
13055
lt_prog_compiler_wl_F77='-Wl,'
13060
mingw* | pw32* | os2*)
13061
# This hack is so that the source file can tell whether it is being
13062
# built for inclusion in a dll (and should export symbols for example).
13063
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13066
hpux9* | hpux10* | hpux11*)
13067
lt_prog_compiler_wl_F77='-Wl,'
13068
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13069
# not for PA HP-UX.
13075
lt_prog_compiler_pic_F77='+Z'
13078
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13079
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13082
irix5* | irix6* | nonstopux*)
13083
lt_prog_compiler_wl_F77='-Wl,'
13084
# PIC (with -KPIC) is the default.
13085
lt_prog_compiler_static_F77='-non_shared'
13089
lt_prog_compiler_pic_F77='-KPIC'
13090
lt_prog_compiler_static_F77='-Bstatic'
13094
case $cc_basename in
13096
lt_prog_compiler_wl_F77='-Wl,'
13097
lt_prog_compiler_pic_F77='-KPIC'
13098
lt_prog_compiler_static_F77='-static'
13100
pgcc* | pgf77* | pgf90* | pgf95*)
13101
# Portland Group compilers (*not* the Pentium gcc compiler,
13102
# which looks to be a dead project)
13103
lt_prog_compiler_wl_F77='-Wl,'
13104
lt_prog_compiler_pic_F77='-fpic'
13105
lt_prog_compiler_static_F77='-Bstatic'
13108
lt_prog_compiler_wl_F77='-Wl,'
13109
# All Alpha code is PIC.
13110
lt_prog_compiler_static_F77='-non_shared'
13115
osf3* | osf4* | osf5*)
13116
lt_prog_compiler_wl_F77='-Wl,'
13117
# All OSF/1 code is PIC.
13118
lt_prog_compiler_static_F77='-non_shared'
13122
lt_prog_compiler_pic_F77='-KPIC'
13123
lt_prog_compiler_static_F77='-Bstatic'
13124
case $cc_basename in
13125
f77* | f90* | f95*)
13126
lt_prog_compiler_wl_F77='-Qoption ld ';;
13128
lt_prog_compiler_wl_F77='-Wl,';;
13133
lt_prog_compiler_wl_F77='-Qoption ld '
13134
lt_prog_compiler_pic_F77='-PIC'
13135
lt_prog_compiler_static_F77='-Bstatic'
13138
sysv4 | sysv4.2uw2* | sysv4.3*)
13139
lt_prog_compiler_wl_F77='-Wl,'
13140
lt_prog_compiler_pic_F77='-KPIC'
13141
lt_prog_compiler_static_F77='-Bstatic'
13145
if test -d /usr/nec ;then
13146
lt_prog_compiler_pic_F77='-Kconform_pic'
13147
lt_prog_compiler_static_F77='-Bstatic'
13151
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13152
lt_prog_compiler_wl_F77='-Wl,'
13153
lt_prog_compiler_pic_F77='-KPIC'
13154
lt_prog_compiler_static_F77='-Bstatic'
13158
lt_prog_compiler_wl_F77='-Wl,'
13159
lt_prog_compiler_can_build_shared_F77=no
13163
lt_prog_compiler_pic_F77='-pic'
13164
lt_prog_compiler_static_F77='-Bstatic'
13168
lt_prog_compiler_can_build_shared_F77=no
13173
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13174
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13177
# Check to make sure the PIC flag actually works.
13179
if test -n "$lt_prog_compiler_pic_F77"; then
13181
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13182
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13183
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13184
echo $ECHO_N "(cached) $ECHO_C" >&6
13186
lt_prog_compiler_pic_works_F77=no
13187
ac_outfile=conftest.$ac_objext
13188
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13189
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13190
# Insert the option either (1) after the last *FLAGS variable, or
13191
# (2) before a word containing "conftest.", or (3) at the end.
13192
# Note that $ac_compile itself does not contain backslashes and begins
13193
# with a dollar sign (not a hyphen), so the echo should work correctly.
13194
# The option is referenced via a variable to avoid confusing sed.
13195
lt_compile=`echo "$ac_compile" | $SED \
13196
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13197
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13198
-e 's:$: $lt_compiler_flag:'`
13199
(eval echo "\"\$as_me:13199: $lt_compile\"" >&5)
13200
(eval "$lt_compile" 2>conftest.err)
13202
cat conftest.err >&5
13203
echo "$as_me:13203: \$? = $ac_status" >&5
13204
if (exit $ac_status) && test -s "$ac_outfile"; then
13205
# The compiler can only warn and ignore the option if not recognized
13206
# So say no if there are warnings other than the usual output.
13207
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13208
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13209
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13210
lt_prog_compiler_pic_works_F77=yes
13216
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13217
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13219
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13220
case $lt_prog_compiler_pic_F77 in
13222
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13225
lt_prog_compiler_pic_F77=
13226
lt_prog_compiler_can_build_shared_F77=no
13231
# For platforms which do not support PIC, -DPIC is meaningless:
13233
lt_prog_compiler_pic_F77=
13236
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13241
# Check to make sure the static flag actually works.
13243
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13244
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13245
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13246
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13247
echo $ECHO_N "(cached) $ECHO_C" >&6
13249
lt_prog_compiler_static_works_F77=no
13250
save_LDFLAGS="$LDFLAGS"
13251
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13252
printf "$lt_simple_link_test_code" > conftest.$ac_ext
13253
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13254
# The linker can only warn and ignore the option if not recognized
13255
# So say no if there are warnings
13256
if test -s conftest.err; then
13257
# Append any errors to the config.log.
13258
cat conftest.err 1>&5
13259
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13260
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13261
if diff conftest.exp conftest.er2 >/dev/null; then
13262
lt_prog_compiler_static_works_F77=yes
13265
lt_prog_compiler_static_works_F77=yes
13269
LDFLAGS="$save_LDFLAGS"
13272
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13273
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13275
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13278
lt_prog_compiler_static_F77=
13282
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13283
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13284
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13285
echo $ECHO_N "(cached) $ECHO_C" >&6
13287
lt_cv_prog_compiler_c_o_F77=no
13288
$rm -r conftest 2>/dev/null
13292
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13294
lt_compiler_flag="-o out/conftest2.$ac_objext"
13295
# Insert the option either (1) after the last *FLAGS variable, or
13296
# (2) before a word containing "conftest.", or (3) at the end.
13297
# Note that $ac_compile itself does not contain backslashes and begins
13298
# with a dollar sign (not a hyphen), so the echo should work correctly.
13299
lt_compile=`echo "$ac_compile" | $SED \
13300
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13301
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13302
-e 's:$: $lt_compiler_flag:'`
13303
(eval echo "\"\$as_me:13303: $lt_compile\"" >&5)
13304
(eval "$lt_compile" 2>out/conftest.err)
13306
cat out/conftest.err >&5
13307
echo "$as_me:13307: \$? = $ac_status" >&5
13308
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13310
# The compiler can only warn and ignore the option if not recognized
13311
# So say no if there are warnings
13312
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13313
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13314
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13315
lt_cv_prog_compiler_c_o_F77=yes
13320
# SGI C++ compiler will create directory out/ii_files/ for
13321
# template instantiation
13322
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13323
$rm out/* && rmdir out
13329
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13330
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13333
hard_links="nottested"
13334
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13335
# do not overwrite the value of need_locks provided by the user
13336
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13337
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13340
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13342
ln conftest.a conftest.b 2>&5 || hard_links=no
13343
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13344
echo "$as_me:$LINENO: result: $hard_links" >&5
13345
echo "${ECHO_T}$hard_links" >&6
13346
if test "$hard_links" = no; then
13347
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13348
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13355
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13356
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13359
allow_undefined_flag_F77=
13360
enable_shared_with_static_runtimes_F77=no
13362
archive_expsym_cmds_F77=
13363
old_archive_From_new_cmds_F77=
13364
old_archive_from_expsyms_cmds_F77=
13365
export_dynamic_flag_spec_F77=
13366
whole_archive_flag_spec_F77=
13367
thread_safe_flag_spec_F77=
13368
hardcode_libdir_flag_spec_F77=
13369
hardcode_libdir_flag_spec_ld_F77=
13370
hardcode_libdir_separator_F77=
13371
hardcode_direct_F77=no
13372
hardcode_minus_L_F77=no
13373
hardcode_shlibpath_var_F77=unsupported
13374
link_all_deplibs_F77=unknown
13375
hardcode_automatic_F77=no
13377
module_expsym_cmds_F77=
13378
always_export_symbols_F77=no
13379
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13380
# include_expsyms should be a list of space-separated symbols to be *always*
13381
# included in the symbol list
13382
include_expsyms_F77=
13383
# exclude_expsyms can be an extended regexp of symbols to exclude
13384
# it will be wrapped by ` (' and `)$', so one must not match beginning or
13385
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13386
# as well as any symbol that contains `d'.
13387
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13388
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13389
# platforms (ab)use it in PIC code, but their linkers get confused if
13390
# the symbol is explicitly referenced. Since portable code cannot
13391
# rely on this symbol name, it's probably fine to never include it in
13392
# preloaded symbol tables.
13393
extract_expsyms_cmds=
13394
# Just being paranoid about ensuring that cc_basename is set.
13395
for cc_temp in $compiler""; do
13397
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13398
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13403
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13406
cygwin* | mingw* | pw32*)
13407
# FIXME: the MSVC++ port hasn't been tested in a loooong time
13408
# When not using gcc, we currently assume that we are using
13409
# Microsoft Visual C++.
13410
if test "$GCC" != yes; then
13415
# we just hope/assume this is gcc and not c89 (= MSVC++)
13424
if test "$with_gnu_ld" = yes; then
13425
# If archive_cmds runs LD, not CC, wlarc should be empty
13428
# Set some defaults for GNU ld with shared library support. These
13429
# are reset later if shared libraries are not supported. Putting them
13430
# here allows them to be overridden if necessary.
13431
runpath_var=LD_RUN_PATH
13432
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13433
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13434
# ancient GNU ld didn't support --whole-archive et. al.
13435
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13436
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13438
whole_archive_flag_spec_F77=
13440
supports_anon_versioning=no
13441
case `$LD -v 2>/dev/null` in
13442
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13443
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13444
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13445
*\ 2.11.*) ;; # other 2.11 versions
13446
*) supports_anon_versioning=yes ;;
13449
# See if GNU ld supports shared libraries.
13451
aix3* | aix4* | aix5*)
13452
# On AIX/PPC, the GNU linker is very broken
13453
if test "$host_cpu" != ia64; then
13457
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13458
*** to be unable to reliably create shared libraries on AIX.
13459
*** Therefore, libtool is disabling shared libraries support. If you
13460
*** really care for shared libraries, you may want to modify your PATH
13461
*** so that a non-GNU linker is found, and then restart.
13468
archive_cmds_F77='$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)'
13469
hardcode_libdir_flag_spec_F77='-L$libdir'
13470
hardcode_minus_L_F77=yes
13472
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13473
# that the semantics of dynamic libraries on AmigaOS, at least up
13474
# to version 4, is to share data among multiple programs linked
13475
# with the same dynamic library. Since this doesn't match the
13476
# behavior of shared libraries on other platforms, we can't use
13482
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13483
allow_undefined_flag_F77=unsupported
13484
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13485
# support --undefined. This deserves some investigation. FIXME
13486
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13492
cygwin* | mingw* | pw32*)
13493
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13494
# as there is no search path for DLLs.
13495
hardcode_libdir_flag_spec_F77='-L$libdir'
13496
allow_undefined_flag_F77=unsupported
13497
always_export_symbols_F77=no
13498
enable_shared_with_static_runtimes_F77=yes
13499
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13501
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13502
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13503
# If the export-symbols file already is a .def file (1st line
13504
# is EXPORTS), use it as is; otherwise, prepend...
13505
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13506
cp $export_symbols $output_objdir/$soname.def;
13508
echo EXPORTS > $output_objdir/$soname.def;
13509
cat $export_symbols >> $output_objdir/$soname.def;
13511
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13518
hardcode_direct_F77=no
13519
hardcode_shlibpath_var_F77=no
13520
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13521
export_dynamic_flag_spec_F77='${wl}-E'
13522
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13523
# Instead, shared libraries are loaded at an image base (0x10000000 by
13524
# default) and relocated if they conflict, which is a slow very memory
13525
# consuming and fragmenting process. To avoid this, we pick a random,
13526
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13527
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
13528
archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13529
archive_expsym_cmds_F77='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'
13533
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13535
case $cc_basename,$host_cpu in
13536
pgcc*) # Portland Group C compiler
13537
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13538
tmp_addflag=' $pic_flag'
13540
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13541
whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13542
tmp_addflag=' $pic_flag -Mnomain' ;;
13543
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13544
tmp_addflag=' -i_dynamic' ;;
13545
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13546
tmp_addflag=' -i_dynamic -nofor_main' ;;
13547
ifc* | ifort*) # Intel Fortran compiler
13548
tmp_addflag=' -nofor_main' ;;
13550
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13552
if test $supports_anon_versioning = yes; then
13553
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13554
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13555
$echo "local: *; };" >> $output_objdir/$libname.ver~
13556
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13564
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13565
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13568
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13569
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13574
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13578
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13579
*** create shared libraries on Solaris systems. Therefore, libtool
13580
*** is disabling shared libraries support. We urge you to upgrade GNU
13581
*** binutils to release 2.9.1 or newer. Another option is to modify
13582
*** your PATH or compiler configuration so that the native linker is
13583
*** used, and then restart.
13586
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13587
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13588
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13594
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13595
case `$LD -v 2>&1` in
13596
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13600
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13601
*** reliably create shared libraries on SCO systems. Therefore, libtool
13602
*** is disabling shared libraries support. We urge you to upgrade GNU
13603
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13604
*** your PATH or compiler configuration so that the native linker is
13605
*** used, and then restart.
13610
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13611
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13612
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13613
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13622
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13624
hardcode_direct_F77=yes
13625
hardcode_shlibpath_var_F77=no
13629
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13630
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13631
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13638
if test "$ld_shlibs_F77" = no; then
13640
hardcode_libdir_flag_spec_F77=
13641
export_dynamic_flag_spec_F77=
13642
whole_archive_flag_spec_F77=
13645
# PORTME fill in a description of your system's linker (not GNU ld)
13648
allow_undefined_flag_F77=unsupported
13649
always_export_symbols_F77=yes
13650
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13651
# Note: this linker hardcodes the directories in LIBPATH if there
13652
# are no directories specified by -L.
13653
hardcode_minus_L_F77=yes
13654
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13655
# Neither direct hardcoding nor static linking is supported with a
13657
hardcode_direct_F77=unsupported
13662
if test "$host_cpu" = ia64; then
13663
# On IA64, the linker does run time linking by default, so we don't
13664
# have to do anything special.
13665
aix_use_runtimelinking=no
13666
exp_sym_flag='-Bexport'
13669
# If we're using GNU nm, then we don't want the "-C" option.
13670
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13671
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13672
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13674
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13676
aix_use_runtimelinking=no
13678
# Test if we are trying to use run time linking or normal
13679
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13680
# need to do runtime linking.
13681
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13682
for ld_flag in $LDFLAGS; do
13683
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13684
aix_use_runtimelinking=yes
13691
exp_sym_flag='-bexport'
13692
no_entry_flag='-bnoentry'
13695
# When large executables or shared objects are built, AIX ld can
13696
# have problems creating the table of contents. If linking a library
13697
# or program results in "error TOC overflow" add -mminimal-toc to
13698
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13699
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13701
archive_cmds_F77=''
13702
hardcode_direct_F77=yes
13703
hardcode_libdir_separator_F77=':'
13704
link_all_deplibs_F77=yes
13706
if test "$GCC" = yes; then
13707
case $host_os in aix4.[012]|aix4.[012].*)
13708
# We only want to do this on AIX 4.2 and lower, the check
13709
# below for broken collect2 doesn't work under 4.3+
13710
collect2name=`${CC} -print-prog-name=collect2`
13711
if test -f "$collect2name" && \
13712
strings "$collect2name" | grep resolve_lib_name >/dev/null
13714
# We have reworked collect2
13715
hardcode_direct_F77=yes
13717
# We have old collect2
13718
hardcode_direct_F77=unsupported
13719
# It fails to find uninstalled libraries when the uninstalled
13720
# path is not listed in the libpath. Setting hardcode_minus_L
13721
# to unsupported forces relinking
13722
hardcode_minus_L_F77=yes
13723
hardcode_libdir_flag_spec_F77='-L$libdir'
13724
hardcode_libdir_separator_F77=
13728
shared_flag='-shared'
13729
if test "$aix_use_runtimelinking" = yes; then
13730
shared_flag="$shared_flag "'${wl}-G'
13734
if test "$host_cpu" = ia64; then
13735
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13736
# chokes on -Wl,-G. The following line is correct:
13739
if test "$aix_use_runtimelinking" = yes; then
13740
shared_flag='${wl}-G'
13742
shared_flag='${wl}-bM:SRE'
13747
# It seems that -bexpall does not export symbols beginning with
13748
# underscore (_), so it is better to generate a list of symbols to export.
13749
always_export_symbols_F77=yes
13750
if test "$aix_use_runtimelinking" = yes; then
13751
# Warning - without using the other runtime loading flags (-brtl),
13752
# -berok will link without error, but may produce a broken library.
13753
allow_undefined_flag_F77='-berok'
13754
# Determine the default libpath from the value encoded in an empty executable.
13755
cat >conftest.$ac_ext <<_ACEOF
13760
rm -f conftest.$ac_objext conftest$ac_exeext
13761
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13762
(eval $ac_link) 2>conftest.er1
13764
grep -v '^ *+' conftest.er1 >conftest.err
13766
cat conftest.err >&5
13767
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768
(exit $ac_status); } &&
13769
{ ac_try='test -z "$ac_f77_werror_flag"
13770
|| test ! -s conftest.err'
13771
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772
(eval $ac_try) 2>&5
13774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775
(exit $ac_status); }; } &&
13776
{ ac_try='test -s conftest$ac_exeext'
13777
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778
(eval $ac_try) 2>&5
13780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781
(exit $ac_status); }; }; then
13783
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13785
# Check for a 64-bit object if we didn't find anything.
13786
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13789
echo "$as_me: failed program was:" >&5
13790
sed 's/^/| /' conftest.$ac_ext >&5
13793
rm -f conftest.err conftest.$ac_objext \
13794
conftest$ac_exeext conftest.$ac_ext
13795
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13797
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13798
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13800
if test "$host_cpu" = ia64; then
13801
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13802
allow_undefined_flag_F77="-z nodefs"
13803
archive_expsym_cmds_F77="\$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"
13805
# Determine the default libpath from the value encoded in an empty executable.
13806
cat >conftest.$ac_ext <<_ACEOF
13811
rm -f conftest.$ac_objext conftest$ac_exeext
13812
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13813
(eval $ac_link) 2>conftest.er1
13815
grep -v '^ *+' conftest.er1 >conftest.err
13817
cat conftest.err >&5
13818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819
(exit $ac_status); } &&
13820
{ ac_try='test -z "$ac_f77_werror_flag"
13821
|| test ! -s conftest.err'
13822
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823
(eval $ac_try) 2>&5
13825
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826
(exit $ac_status); }; } &&
13827
{ ac_try='test -s conftest$ac_exeext'
13828
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13829
(eval $ac_try) 2>&5
13831
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832
(exit $ac_status); }; }; then
13834
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13836
# Check for a 64-bit object if we didn't find anything.
13837
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13840
echo "$as_me: failed program was:" >&5
13841
sed 's/^/| /' conftest.$ac_ext >&5
13844
rm -f conftest.err conftest.$ac_objext \
13845
conftest$ac_exeext conftest.$ac_ext
13846
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13848
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13849
# Warning - without using the other run time loading flags,
13850
# -berok will link without error, but may produce a broken library.
13851
no_undefined_flag_F77=' ${wl}-bernotok'
13852
allow_undefined_flag_F77=' ${wl}-berok'
13853
# Exported symbols can be pulled into shared objects from archives
13854
whole_archive_flag_spec_F77='$convenience'
13855
archive_cmds_need_lc_F77=yes
13856
# This is similar to how AIX traditionally builds its shared libraries.
13857
archive_expsym_cmds_F77="\$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'
13863
archive_cmds_F77='$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)'
13864
hardcode_libdir_flag_spec_F77='-L$libdir'
13865
hardcode_minus_L_F77=yes
13866
# see comment about different semantics on the GNU ld section
13871
export_dynamic_flag_spec_F77=-rdynamic
13874
cygwin* | mingw* | pw32*)
13875
# When not using gcc, we currently assume that we are using
13876
# Microsoft Visual C++.
13877
# hardcode_libdir_flag_spec is actually meaningless, as there is
13878
# no search path for DLLs.
13879
hardcode_libdir_flag_spec_F77=' '
13880
allow_undefined_flag_F77=unsupported
13881
# Tell ltmain to make .lib files, not .a files.
13883
# Tell ltmain to make .dll files, not .so files.
13885
# FIXME: Setting linknames here is a bad hack.
13886
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13887
# The linker will automatically build a .lib file if we build a DLL.
13888
old_archive_From_new_cmds_F77='true'
13889
# FIXME: Should let the user specify the lib program.
13890
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13891
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13892
enable_shared_with_static_runtimes_F77=yes
13895
darwin* | rhapsody*)
13897
rhapsody* | darwin1.[012])
13898
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13901
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13902
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13904
case ${MACOSX_DEPLOYMENT_TARGET} in
13906
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13909
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13915
archive_cmds_need_lc_F77=no
13916
hardcode_direct_F77=no
13917
hardcode_automatic_F77=yes
13918
hardcode_shlibpath_var_F77=unsupported
13919
whole_archive_flag_spec_F77=''
13920
link_all_deplibs_F77=yes
13921
if test "$GCC" = yes ; then
13922
output_verbose_link_cmd='echo'
13923
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13924
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13925
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13926
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
13927
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
13929
case $cc_basename in
13931
output_verbose_link_cmd='echo'
13932
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13933
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13934
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13935
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
13936
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
13946
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13947
hardcode_libdir_flag_spec_F77='-L$libdir'
13948
hardcode_shlibpath_var_F77=no
13955
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13956
# support. Future versions do this automatically, but an explicit c++rt0.o
13957
# does not break anything, and helps significantly (at the cost of a little
13960
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13961
hardcode_libdir_flag_spec_F77='-R$libdir'
13962
hardcode_direct_F77=yes
13963
hardcode_shlibpath_var_F77=no
13966
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
13968
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13969
hardcode_direct_F77=yes
13970
hardcode_minus_L_F77=yes
13971
hardcode_shlibpath_var_F77=no
13974
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13975
freebsd* | kfreebsd*-gnu | dragonfly*)
13976
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13977
hardcode_libdir_flag_spec_F77='-R$libdir'
13978
hardcode_direct_F77=yes
13979
hardcode_shlibpath_var_F77=no
13983
if test "$GCC" = yes; then
13984
archive_cmds_F77='$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'
13986
archive_cmds_F77='$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'
13988
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13989
hardcode_libdir_separator_F77=:
13990
hardcode_direct_F77=yes
13992
# hardcode_minus_L: Not really in the search PATH,
13993
# but as the default location of the library.
13994
hardcode_minus_L_F77=yes
13995
export_dynamic_flag_spec_F77='${wl}-E'
13999
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14000
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14002
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14004
if test "$with_gnu_ld" = no; then
14005
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14006
hardcode_libdir_separator_F77=:
14008
hardcode_direct_F77=yes
14009
export_dynamic_flag_spec_F77='${wl}-E'
14011
# hardcode_minus_L: Not really in the search PATH,
14012
# but as the default location of the library.
14013
hardcode_minus_L_F77=yes
14018
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14021
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14024
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14027
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14033
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14036
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14039
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14043
if test "$with_gnu_ld" = no; then
14044
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14045
hardcode_libdir_separator_F77=:
14049
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14050
hardcode_direct_F77=no
14051
hardcode_shlibpath_var_F77=no
14054
hardcode_direct_F77=yes
14055
export_dynamic_flag_spec_F77='${wl}-E'
14057
# hardcode_minus_L: Not really in the search PATH,
14058
# but as the default location of the library.
14059
hardcode_minus_L_F77=yes
14065
irix5* | irix6* | nonstopux*)
14066
if test "$GCC" = yes; then
14067
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14069
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14070
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14072
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14073
hardcode_libdir_separator_F77=:
14074
link_all_deplibs_F77=yes
14078
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14079
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14081
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14083
hardcode_libdir_flag_spec_F77='-R$libdir'
14084
hardcode_direct_F77=yes
14085
hardcode_shlibpath_var_F77=no
14089
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14090
hardcode_direct_F77=yes
14091
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14092
hardcode_libdir_separator_F77=:
14093
hardcode_shlibpath_var_F77=no
14097
hardcode_direct_F77=yes
14098
hardcode_shlibpath_var_F77=no
14099
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14100
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14101
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14102
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14103
export_dynamic_flag_spec_F77='${wl}-E'
14106
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14107
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14108
hardcode_libdir_flag_spec_F77='-R$libdir'
14111
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14112
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14119
hardcode_libdir_flag_spec_F77='-L$libdir'
14120
hardcode_minus_L_F77=yes
14121
allow_undefined_flag_F77=unsupported
14122
archive_cmds_F77='$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'
14123
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14127
if test "$GCC" = yes; then
14128
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14129
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14131
allow_undefined_flag_F77=' -expect_unresolved \*'
14132
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14134
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14135
hardcode_libdir_separator_F77=:
14138
osf4* | osf5*) # as osf3* with the addition of -msym flag
14139
if test "$GCC" = yes; then
14140
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14141
archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14142
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14144
allow_undefined_flag_F77=' -expect_unresolved \*'
14145
archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14146
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14147
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14149
# Both c and cxx compiler support -rpath directly
14150
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14152
hardcode_libdir_separator_F77=:
14156
no_undefined_flag_F77=' -z text'
14157
if test "$GCC" = yes; then
14159
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14160
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14161
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14164
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14165
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14166
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14168
hardcode_libdir_flag_spec_F77='-R$libdir'
14169
hardcode_shlibpath_var_F77=no
14171
solaris2.[0-5] | solaris2.[0-5].*) ;;
14173
# The compiler driver will combine linker options so we
14174
# cannot just pass the convience library names through
14175
# without $wl, iff we do not link with $LD.
14176
# Luckily, gcc supports the same syntax we need for Sun Studio.
14177
# Supported since Solaris 2.6 (maybe 2.5.1?)
14180
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14182
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14185
link_all_deplibs_F77=yes
14189
if test "x$host_vendor" = xsequent; then
14190
# Use $CC to link under sequent, because it throws in some extra .o
14191
# files that make .init and .fini sections work.
14192
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14194
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14196
hardcode_libdir_flag_spec_F77='-L$libdir'
14197
hardcode_direct_F77=yes
14198
hardcode_minus_L_F77=yes
14199
hardcode_shlibpath_var_F77=no
14203
case $host_vendor in
14205
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14206
hardcode_direct_F77=yes # is this really true???
14209
## LD is ld it makes a PLAMLIB
14210
## CC just makes a GrossModule.
14211
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14212
reload_cmds_F77='$CC -r -o $output$reload_objs'
14213
hardcode_direct_F77=no
14216
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14217
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14220
runpath_var='LD_RUN_PATH'
14221
hardcode_shlibpath_var_F77=no
14225
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14226
hardcode_shlibpath_var_F77=no
14227
export_dynamic_flag_spec_F77='-Bexport'
14231
if test -d /usr/nec; then
14232
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14233
hardcode_shlibpath_var_F77=no
14234
runpath_var=LD_RUN_PATH
14235
hardcode_runpath_var=yes
14240
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14241
no_undefined_flag_F77='${wl}-z,text'
14242
archive_cmds_need_lc_F77=no
14243
hardcode_shlibpath_var_F77=no
14244
runpath_var='LD_RUN_PATH'
14246
if test "$GCC" = yes; then
14247
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14248
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14250
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14251
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14255
sysv5* | sco3.2v5* | sco5v6*)
14256
# Note: We can NOT use -z defs as we might desire, because we do not
14257
# link with -lc, and that would cause any symbols used from libc to
14258
# always be unresolved, which means just about no library would
14259
# ever link correctly. If we're not using GNU ld we use -z text
14260
# though, which does catch some bad symbols but isn't as heavy-handed
14262
no_undefined_flag_F77='${wl}-z,text'
14263
allow_undefined_flag_F77='${wl}-z,nodefs'
14264
archive_cmds_need_lc_F77=no
14265
hardcode_shlibpath_var_F77=no
14266
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14267
hardcode_libdir_separator_F77=':'
14268
link_all_deplibs_F77=yes
14269
export_dynamic_flag_spec_F77='${wl}-Bexport'
14270
runpath_var='LD_RUN_PATH'
14272
if test "$GCC" = yes; then
14273
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14274
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14276
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14277
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14282
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14283
hardcode_libdir_flag_spec_F77='-L$libdir'
14284
hardcode_shlibpath_var_F77=no
14293
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14294
echo "${ECHO_T}$ld_shlibs_F77" >&6
14295
test "$ld_shlibs_F77" = no && can_build_shared=no
14298
# Do we need to explicitly link libc?
14300
case "x$archive_cmds_need_lc_F77" in
14302
# Assume -lc should be added
14303
archive_cmds_need_lc_F77=yes
14305
if test "$enable_shared" = yes && test "$GCC" = yes; then
14306
case $archive_cmds_F77 in
14308
# FIXME: we may have to deal with multi-command sequences.
14311
# Test whether the compiler implicitly links with -lc since on some
14312
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14313
# to ld, don't add -lc before -lgcc.
14314
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14315
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14317
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14319
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14320
(eval $ac_compile) 2>&5
14322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323
(exit $ac_status); } 2>conftest.err; then
14326
libobjs=conftest.$ac_objext
14328
wl=$lt_prog_compiler_wl_F77
14329
pic_flag=$lt_prog_compiler_pic_F77
14335
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14336
allow_undefined_flag_F77=
14337
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14338
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341
(exit $ac_status); }
14343
archive_cmds_need_lc_F77=no
14345
archive_cmds_need_lc_F77=yes
14347
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14349
cat conftest.err 1>&5
14352
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14353
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14360
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14361
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14362
library_names_spec=
14363
libname_spec='lib$name'
14367
postuninstall_cmds=
14371
shlibpath_overrides_runpath=unknown
14373
dynamic_linker="$host_os ld.so"
14374
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14375
if test "$GCC" = yes; then
14376
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14377
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14378
# if the path contains ";" then we assume it to be the separator
14379
# otherwise default to the standard path separator (i.e. ":") - it is
14380
# assumed that no part of a normal pathname contains ";" but that should
14381
# okay in the real world where ";" in dirpaths is itself problematic.
14382
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14384
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14387
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14389
need_lib_prefix=unknown
14390
hardcode_into_libs=no
14392
# when you set need_version to no, make sure it does not cause -set_version
14393
# flags to be left without arguments
14394
need_version=unknown
14399
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14400
shlibpath_var=LIBPATH
14402
# AIX 3 has no versioning support, so we append a major version to the name.
14403
soname_spec='${libname}${release}${shared_ext}$major'
14410
hardcode_into_libs=yes
14411
if test "$host_cpu" = ia64; then
14412
# AIX 5 supports IA64
14413
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14414
shlibpath_var=LD_LIBRARY_PATH
14416
# With GCC up to 2.95.x, collect2 would create an import file
14417
# for dependence libraries. The import file would start with
14418
# the line `#! .'. This would cause the generated library to
14419
# depend on `.', always an invalid library. This was fixed in
14420
# development snapshots of GCC prior to 3.0.
14422
aix4 | aix4.[01] | aix4.[01].*)
14423
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14425
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14428
can_build_shared=no
14432
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14433
# soname into executable. Probably we can add versioning support to
14434
# collect2, so additional links can be useful in future.
14435
if test "$aix_use_runtimelinking" = yes; then
14436
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14437
# instead of lib<name>.a to let people know that these are not
14438
# typical AIX shared libraries.
14439
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14441
# We preserve .a as extension for shared libraries through AIX4.2
14442
# and later when we are not doing run time linking.
14443
library_names_spec='${libname}${release}.a $libname.a'
14444
soname_spec='${libname}${release}${shared_ext}$major'
14446
shlibpath_var=LIBPATH
14451
library_names_spec='$libname.ixlibrary $libname.a'
14452
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14453
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'
14457
library_names_spec='${libname}${shared_ext}'
14458
dynamic_linker="$host_os ld.so"
14459
shlibpath_var=LIBRARY_PATH
14465
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14466
soname_spec='${libname}${release}${shared_ext}$major'
14467
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14468
shlibpath_var=LD_LIBRARY_PATH
14469
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14470
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14471
# the default ld.so.conf also contains /usr/contrib/lib and
14472
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14473
# libtool to hard-code these into programs
14476
cygwin* | mingw* | pw32*)
14477
version_type=windows
14482
case $GCC,$host_os in
14483
yes,cygwin* | yes,mingw* | yes,pw32*)
14484
library_names_spec='$libname.dll.a'
14485
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14486
postinstall_cmds='base_file=`basename \${file}`~
14487
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14488
dldir=$destdir/`dirname \$dlpath`~
14489
test -d \$dldir || mkdir -p \$dldir~
14490
$install_prog $dir/$dlname \$dldir/$dlname~
14491
chmod a+x \$dldir/$dlname'
14492
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14493
dlpath=$dir/\$dldll~
14495
shlibpath_overrides_runpath=yes
14499
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14500
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14501
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14504
# MinGW DLLs use traditional 'lib' prefix
14505
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14506
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14507
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14508
# It is most probably a Windows format PATH printed by
14509
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14510
# path with ; separators, and with drive letters. We can handle the
14511
# drive letters (cygwin fileutils understands them), so leave them,
14512
# especially as we might pass files found there to a mingw objdump,
14513
# which wouldn't understand a cygwinified path. Ahh.
14514
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14516
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14520
# pw32 DLLs use 'pw' prefix rather than 'lib'
14521
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14527
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14530
dynamic_linker='Win32 ld.exe'
14531
# FIXME: first we should search . and the directory the executable is in
14535
darwin* | rhapsody*)
14536
dynamic_linker="$host_os dyld"
14537
version_type=darwin
14540
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14541
soname_spec='${libname}${release}${major}$shared_ext'
14542
shlibpath_overrides_runpath=yes
14543
shlibpath_var=DYLD_LIBRARY_PATH
14544
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14545
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14546
if test "$GCC" = yes; then
14547
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14549
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14551
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14558
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14559
soname_spec='${libname}${release}${shared_ext}$major'
14560
shlibpath_var=LD_LIBRARY_PATH
14571
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14572
soname_spec='${libname}${release}${shared_ext}$major'
14573
shlibpath_var=LD_LIBRARY_PATH
14574
shlibpath_overrides_runpath=no
14575
hardcode_into_libs=yes
14576
dynamic_linker='GNU ld.so'
14579
freebsd* | dragonfly*)
14580
# DragonFly does not have aout. When/if they implement a new
14581
# versioning mechanism, adjust this.
14582
if test -x /usr/bin/objformat; then
14583
objformat=`/usr/bin/objformat`
14586
freebsd[123]*) objformat=aout ;;
14587
*) objformat=elf ;;
14590
version_type=freebsd-$objformat
14591
case $version_type in
14593
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14598
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14602
shlibpath_var=LD_LIBRARY_PATH
14605
shlibpath_overrides_runpath=yes
14607
freebsd3.[01]* | freebsdelf3.[01]*)
14608
shlibpath_overrides_runpath=yes
14609
hardcode_into_libs=yes
14611
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14612
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14613
shlibpath_overrides_runpath=no
14614
hardcode_into_libs=yes
14616
freebsd*) # from 4.6 on
14617
shlibpath_overrides_runpath=yes
14618
hardcode_into_libs=yes
14627
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14628
soname_spec='${libname}${release}${shared_ext}$major'
14629
shlibpath_var=LD_LIBRARY_PATH
14630
hardcode_into_libs=yes
14633
hpux9* | hpux10* | hpux11*)
14634
# Give a soname corresponding to the major version so that dld.sl refuses to
14635
# link against other versions.
14642
hardcode_into_libs=yes
14643
dynamic_linker="$host_os dld.so"
14644
shlibpath_var=LD_LIBRARY_PATH
14645
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14646
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14647
soname_spec='${libname}${release}${shared_ext}$major'
14648
if test "X$HPUX_IA64_MODE" = X32; then
14649
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14651
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14653
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14657
hardcode_into_libs=yes
14658
dynamic_linker="$host_os dld.sl"
14659
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14660
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14661
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14662
soname_spec='${libname}${release}${shared_ext}$major'
14663
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14664
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14668
dynamic_linker="$host_os dld.sl"
14669
shlibpath_var=SHLIB_PATH
14670
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14671
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14672
soname_spec='${libname}${release}${shared_ext}$major'
14675
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14676
postinstall_cmds='chmod 555 $lib'
14683
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14684
soname_spec='${libname}${release}${shared_ext}$major'
14685
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14686
shlibpath_var=LD_LIBRARY_PATH
14687
shlibpath_overrides_runpath=no
14688
hardcode_into_libs=yes
14691
irix5* | irix6* | nonstopux*)
14693
nonstopux*) version_type=nonstopux ;;
14695
if test "$lt_cv_prog_gnu_ld" = yes; then
14703
soname_spec='${libname}${release}${shared_ext}$major'
14704
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14706
irix5* | nonstopux*)
14707
libsuff= shlibsuff=
14710
case $LD in # libtool.m4 will add one of these switches to LD
14711
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14712
libsuff= shlibsuff= libmagic=32-bit;;
14713
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14714
libsuff=32 shlibsuff=N32 libmagic=N32;;
14715
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14716
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14717
*) libsuff= shlibsuff= libmagic=never-match;;
14721
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14722
shlibpath_overrides_runpath=no
14723
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14724
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14725
hardcode_into_libs=yes
14728
# No shared lib support for Linux oldld, aout, or coff.
14729
linux*oldld* | linux*aout* | linux*coff*)
14733
# This must be Linux ELF.
14738
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14739
soname_spec='${libname}${release}${shared_ext}$major'
14740
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14741
shlibpath_var=LD_LIBRARY_PATH
14742
shlibpath_overrides_runpath=no
14743
# This implies no fast_install, which is unacceptable.
14744
# Some rework will be needed to allow for fast_install
14745
# before this can be enabled.
14746
hardcode_into_libs=yes
14748
# Append ld.so.conf contents to the search path
14749
if test -f /etc/ld.so.conf; then
14750
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14751
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14754
# We used to test for /lib/ld.so.1 and disable shared libraries on
14755
# powerpc, because MkLinux only supported shared libraries with the
14756
# GNU dynamic linker. Since this was broken with cross compilers,
14757
# most powerpc-linux boxes support dynamic linking these days and
14758
# people can always --disable-shared, the test was removed, and we
14759
# assume the GNU/Linux dynamic linker is in use.
14760
dynamic_linker='GNU/Linux ld.so'
14767
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14768
soname_spec='${libname}${release}${shared_ext}$major'
14769
shlibpath_var=LD_LIBRARY_PATH
14770
shlibpath_overrides_runpath=no
14771
hardcode_into_libs=yes
14772
dynamic_linker='GNU ld.so'
14779
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14780
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14781
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14782
dynamic_linker='NetBSD (a.out) ld.so'
14784
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14785
soname_spec='${libname}${release}${shared_ext}$major'
14786
dynamic_linker='NetBSD ld.elf_so'
14788
shlibpath_var=LD_LIBRARY_PATH
14789
shlibpath_overrides_runpath=yes
14790
hardcode_into_libs=yes
14795
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14796
shlibpath_var=LD_LIBRARY_PATH
14797
shlibpath_overrides_runpath=yes
14804
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14805
soname_spec='${libname}${release}${shared_ext}$major'
14806
shlibpath_var=LD_LIBRARY_PATH
14807
shlibpath_overrides_runpath=yes
14812
sys_lib_dlsearch_path_spec="/usr/lib"
14814
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14816
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14817
*) need_version=no ;;
14819
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14820
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14821
shlibpath_var=LD_LIBRARY_PATH
14822
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14824
openbsd2.[89] | openbsd2.[89].*)
14825
shlibpath_overrides_runpath=no
14828
shlibpath_overrides_runpath=yes
14832
shlibpath_overrides_runpath=yes
14837
libname_spec='$name'
14840
library_names_spec='$libname${shared_ext} $libname.a'
14841
dynamic_linker='OS/2 ld.exe'
14842
shlibpath_var=LIBPATH
14845
osf3* | osf4* | osf5*)
14849
soname_spec='${libname}${release}${shared_ext}$major'
14850
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14851
shlibpath_var=LD_LIBRARY_PATH
14852
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14853
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14860
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14861
soname_spec='${libname}${release}${shared_ext}$major'
14862
shlibpath_var=LD_LIBRARY_PATH
14863
shlibpath_overrides_runpath=yes
14864
hardcode_into_libs=yes
14865
# ldd complains unless libraries are executable
14866
postinstall_cmds='chmod +x $lib'
14871
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14872
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14873
shlibpath_var=LD_LIBRARY_PATH
14874
shlibpath_overrides_runpath=yes
14875
if test "$with_gnu_ld" = yes; then
14883
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14884
soname_spec='${libname}${release}${shared_ext}$major'
14885
shlibpath_var=LD_LIBRARY_PATH
14886
case $host_vendor in
14888
shlibpath_overrides_runpath=no
14890
export_dynamic_flag_spec='${wl}-Blargedynsym'
14891
runpath_var=LD_RUN_PATH
14899
shlibpath_overrides_runpath=no
14900
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14906
if test -d /usr/nec ;then
14908
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14909
soname_spec='$libname${shared_ext}.$major'
14910
shlibpath_var=LD_LIBRARY_PATH
14914
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14915
version_type=freebsd-elf
14918
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14919
soname_spec='${libname}${release}${shared_ext}$major'
14920
shlibpath_var=LD_LIBRARY_PATH
14921
hardcode_into_libs=yes
14922
if test "$with_gnu_ld" = yes; then
14923
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14924
shlibpath_overrides_runpath=no
14926
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14927
shlibpath_overrides_runpath=yes
14930
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14934
sys_lib_dlsearch_path_spec='/usr/lib'
14939
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14940
soname_spec='${libname}${release}${shared_ext}$major'
14941
shlibpath_var=LD_LIBRARY_PATH
14948
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14949
echo "${ECHO_T}$dynamic_linker" >&6
14950
test "$dynamic_linker" = no && can_build_shared=no
14952
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14953
if test "$GCC" = yes; then
14954
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14957
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14958
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14959
hardcode_action_F77=
14960
if test -n "$hardcode_libdir_flag_spec_F77" || \
14961
test -n "$runpath_var_F77" || \
14962
test "X$hardcode_automatic_F77" = "Xyes" ; then
14964
# We can hardcode non-existant directories.
14965
if test "$hardcode_direct_F77" != no &&
14966
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14967
# have to relink, otherwise we might link with an installed library
14968
# when we should be linking with a yet-to-be-installed one
14969
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14970
test "$hardcode_minus_L_F77" != no; then
14971
# Linking always hardcodes the temporary library directory.
14972
hardcode_action_F77=relink
14974
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14975
hardcode_action_F77=immediate
14978
# We cannot hardcode anything, or else we can only hardcode existing
14980
hardcode_action_F77=unsupported
14982
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14983
echo "${ECHO_T}$hardcode_action_F77" >&6
14985
if test "$hardcode_action_F77" = relink; then
14986
# Fast installation is not supported
14987
enable_fast_install=no
14988
elif test "$shlibpath_overrides_runpath" = yes ||
14989
test "$enable_shared" = no; then
14990
# Fast installation is not necessary
14991
enable_fast_install=needless
14995
# The else clause should only fire when bootstrapping the
14996
# libtool distribution, otherwise you forgot to ship ltmain.sh
14997
# with your package, and you will get complaints that there are
14998
# no rules to generate ltmain.sh.
14999
if test -f "$ltmain"; then
15000
# See if we are running on zsh, and set the options which allow our commands through
15001
# without removal of \ escapes.
15002
if test -n "${ZSH_VERSION+set}" ; then
15003
setopt NO_GLOB_SUBST
15005
# Now quote all the things that may contain metacharacters while being
15006
# careful not to overquote the AC_SUBSTed values. We take copies of the
15007
# variables and quote the copies for generation of the libtool script.
15008
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15010
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15011
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15012
deplibs_check_method reload_flag reload_cmds need_locks \
15013
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15014
lt_cv_sys_global_symbol_to_c_name_address \
15015
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15016
old_postinstall_cmds old_postuninstall_cmds \
15020
lt_prog_compiler_wl_F77 \
15021
lt_prog_compiler_pic_F77 \
15022
lt_prog_compiler_static_F77 \
15023
lt_prog_compiler_no_builtin_flag_F77 \
15024
export_dynamic_flag_spec_F77 \
15025
thread_safe_flag_spec_F77 \
15026
whole_archive_flag_spec_F77 \
15027
enable_shared_with_static_runtimes_F77 \
15028
old_archive_cmds_F77 \
15029
old_archive_from_new_cmds_F77 \
15030
predep_objects_F77 \
15031
postdep_objects_F77 \
15034
compiler_lib_search_path_F77 \
15036
archive_expsym_cmds_F77 \
15037
postinstall_cmds_F77 \
15038
postuninstall_cmds_F77 \
15039
old_archive_from_expsyms_cmds_F77 \
15040
allow_undefined_flag_F77 \
15041
no_undefined_flag_F77 \
15042
export_symbols_cmds_F77 \
15043
hardcode_libdir_flag_spec_F77 \
15044
hardcode_libdir_flag_spec_ld_F77 \
15045
hardcode_libdir_separator_F77 \
15046
hardcode_automatic_F77 \
15048
module_expsym_cmds_F77 \
15049
lt_cv_prog_compiler_c_o_F77 \
15050
exclude_expsyms_F77 \
15051
include_expsyms_F77; do
15054
old_archive_cmds_F77 | \
15055
old_archive_from_new_cmds_F77 | \
15056
archive_cmds_F77 | \
15057
archive_expsym_cmds_F77 | \
15058
module_cmds_F77 | \
15059
module_expsym_cmds_F77 | \
15060
old_archive_from_expsyms_cmds_F77 | \
15061
export_symbols_cmds_F77 | \
15062
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15063
postinstall_cmds | postuninstall_cmds | \
15064
old_postinstall_cmds | old_postuninstall_cmds | \
15065
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15066
# Double-quote double-evaled strings.
15067
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15070
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15076
*'\$0 --fallback-echo"')
15077
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15083
cat <<__EOF__ >> "$cfgfile"
15084
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15086
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15088
# Shell to use when invoking shell scripts.
15091
# Whether or not to build shared libraries.
15092
build_libtool_libs=$enable_shared
15094
# Whether or not to build static libraries.
15095
build_old_libs=$enable_static
15097
# Whether or not to add -lc for building shared libraries.
15098
build_libtool_need_lc=$archive_cmds_need_lc_F77
15100
# Whether or not to disallow shared libs when runtime libs are static
15101
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15103
# Whether or not to optimize for fast installation.
15104
fast_install=$enable_fast_install
15107
host_alias=$host_alias
15111
# The build system.
15112
build_alias=$build_alias
15116
# An echo program that does not interpret backslashes.
15121
AR_FLAGS=$lt_AR_FLAGS
15126
# LTCC compiler flags.
15127
LTCFLAGS=$lt_LTCFLAGS
15129
# A language-specific compiler.
15130
CC=$lt_compiler_F77
15132
# Is the compiler the GNU C compiler?
15138
# The linker used to build libraries.
15141
# Whether we need hard or soft links.
15144
# A BSD-compatible nm program.
15147
# A symbol stripping program
15150
# Used to examine libraries when file_magic_cmd begins "file"
15151
MAGIC_CMD=$MAGIC_CMD
15153
# Used on cygwin: DLL creation program.
15156
# Used on cygwin: object dumper.
15159
# Used on cygwin: assembler.
15162
# The name of the directory that contains temporary libtool files.
15165
# How to create reloadable object files.
15166
reload_flag=$lt_reload_flag
15167
reload_cmds=$lt_reload_cmds
15169
# How to pass a linker flag through the compiler.
15170
wl=$lt_lt_prog_compiler_wl_F77
15172
# Object file suffix (normally "o").
15173
objext="$ac_objext"
15175
# Old archive suffix (normally "a").
15178
# Shared library suffix (normally ".so").
15179
shrext_cmds='$shrext_cmds'
15181
# Executable file suffix (normally "").
15184
# Additional compiler flags for building library objects.
15185
pic_flag=$lt_lt_prog_compiler_pic_F77
15188
# What is the maximum length of a command?
15189
max_cmd_len=$lt_cv_sys_max_cmd_len
15191
# Does compiler simultaneously support -c and -o options?
15192
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15194
# Must we lock files when doing compilation?
15195
need_locks=$lt_need_locks
15197
# Do we need the lib prefix for modules?
15198
need_lib_prefix=$need_lib_prefix
15200
# Do we need a version for libraries?
15201
need_version=$need_version
15203
# Whether dlopen is supported.
15204
dlopen_support=$enable_dlopen
15206
# Whether dlopen of programs is supported.
15207
dlopen_self=$enable_dlopen_self
15209
# Whether dlopen of statically linked programs is supported.
15210
dlopen_self_static=$enable_dlopen_self_static
15212
# Compiler flag to prevent dynamic linking.
15213
link_static_flag=$lt_lt_prog_compiler_static_F77
15215
# Compiler flag to turn off builtin functions.
15216
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15218
# Compiler flag to allow reflexive dlopens.
15219
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15221
# Compiler flag to generate shared objects directly from archives.
15222
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15224
# Compiler flag to generate thread-safe objects.
15225
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15227
# Library versioning type.
15228
version_type=$version_type
15230
# Format of library name prefix.
15231
libname_spec=$lt_libname_spec
15233
# List of archive names. First name is the real one, the rest are links.
15234
# The last name is the one that the linker finds with -lNAME.
15235
library_names_spec=$lt_library_names_spec
15237
# The coded name of the library, if different from the real name.
15238
soname_spec=$lt_soname_spec
15240
# Commands used to build and install an old-style archive.
15242
old_archive_cmds=$lt_old_archive_cmds_F77
15243
old_postinstall_cmds=$lt_old_postinstall_cmds
15244
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15246
# Create an old-style archive from a shared archive.
15247
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15249
# Create a temporary old-style archive to link instead of a shared archive.
15250
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15252
# Commands used to build and install a shared archive.
15253
archive_cmds=$lt_archive_cmds_F77
15254
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15255
postinstall_cmds=$lt_postinstall_cmds
15256
postuninstall_cmds=$lt_postuninstall_cmds
15258
# Commands used to build a loadable module (assumed same as above if empty)
15259
module_cmds=$lt_module_cmds_F77
15260
module_expsym_cmds=$lt_module_expsym_cmds_F77
15262
# Commands to strip libraries.
15263
old_striplib=$lt_old_striplib
15264
striplib=$lt_striplib
15266
# Dependencies to place before the objects being linked to create a
15268
predep_objects=$lt_predep_objects_F77
15270
# Dependencies to place after the objects being linked to create a
15272
postdep_objects=$lt_postdep_objects_F77
15274
# Dependencies to place before the objects being linked to create a
15276
predeps=$lt_predeps_F77
15278
# Dependencies to place after the objects being linked to create a
15280
postdeps=$lt_postdeps_F77
15282
# The library search path used internally by the compiler when linking
15283
# a shared library.
15284
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15286
# Method to check whether dependent libraries are shared objects.
15287
deplibs_check_method=$lt_deplibs_check_method
15289
# Command to use when deplibs_check_method == file_magic.
15290
file_magic_cmd=$lt_file_magic_cmd
15292
# Flag that allows shared libraries with undefined symbols to be built.
15293
allow_undefined_flag=$lt_allow_undefined_flag_F77
15295
# Flag that forces no undefined symbols.
15296
no_undefined_flag=$lt_no_undefined_flag_F77
15298
# Commands used to finish a libtool library installation in a directory.
15299
finish_cmds=$lt_finish_cmds
15301
# Same as above, but a single script fragment to be evaled but not shown.
15302
finish_eval=$lt_finish_eval
15304
# Take the output of nm and produce a listing of raw symbols and C names.
15305
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15307
# Transform the output of nm in a proper C declaration
15308
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15310
# Transform the output of nm in a C name address pair
15311
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15313
# This is the shared library runtime path variable.
15314
runpath_var=$runpath_var
15316
# This is the shared library path variable.
15317
shlibpath_var=$shlibpath_var
15319
# Is shlibpath searched before the hard-coded library search path?
15320
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15322
# How to hardcode a shared library path into an executable.
15323
hardcode_action=$hardcode_action_F77
15325
# Whether we should hardcode library paths into libraries.
15326
hardcode_into_libs=$hardcode_into_libs
15328
# Flag to hardcode \$libdir into a binary during linking.
15329
# This must work even if \$libdir does not exist.
15330
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15332
# If ld is used when linking, flag to hardcode \$libdir into
15333
# a binary during linking. This must work even if \$libdir does
15335
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15337
# Whether we need a single -rpath flag with a separated argument.
15338
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15340
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15341
# resulting binary.
15342
hardcode_direct=$hardcode_direct_F77
15344
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15345
# resulting binary.
15346
hardcode_minus_L=$hardcode_minus_L_F77
15348
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15349
# the resulting binary.
15350
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15352
# Set to yes if building a shared library automatically hardcodes DIR into the library
15353
# and all subsequent libraries and executables linked against it.
15354
hardcode_automatic=$hardcode_automatic_F77
15356
# Variables whose values should be saved in libtool wrapper scripts and
15357
# restored at relink time.
15358
variables_saved_for_relink="$variables_saved_for_relink"
15360
# Whether libtool must link a program against all its dependency libraries.
15361
link_all_deplibs=$link_all_deplibs_F77
15363
# Compile-time system search path for libraries
15364
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15366
# Run-time system search path for libraries
15367
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15369
# Fix the shell variable \$srcfile for the compiler.
15370
fix_srcfile_path="$fix_srcfile_path_F77"
15372
# Set to yes if exported symbols are required.
15373
always_export_symbols=$always_export_symbols_F77
15375
# The commands to list exported symbols.
15376
export_symbols_cmds=$lt_export_symbols_cmds_F77
15378
# The commands to extract the exported symbol list from a shared archive.
15379
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15381
# Symbols that should not be listed in the preloaded symbols.
15382
exclude_expsyms=$lt_exclude_expsyms_F77
15384
# Symbols that must always be exported.
15385
include_expsyms=$lt_include_expsyms_F77
15387
# ### END LIBTOOL TAG CONFIG: $tagname
15393
# If there is no Makefile yet, we rely on a make rule to execute
15394
# `config.status --recheck' to rerun these tests and create the
15395
# libtool script then.
15396
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15397
if test -f "$ltmain_in"; then
15398
test -f Makefile && make "$ltmain"
15404
ac_cpp='$CPP $CPPFLAGS'
15405
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15406
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15407
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15417
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15421
# Source file extension for Java test sources.
15424
# Object file extension for compiled Java test sources.
15428
# Code to be used in simple compile tests
15429
lt_simple_compile_test_code="class foo {}\n"
15431
# Code to be used in simple link tests
15432
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15434
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15436
# If no C compiler was specified, use CC.
15439
# If no C compiler flags were specified, use CFLAGS.
15440
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15442
# Allow CC to be a program name with arguments.
15446
# save warnings/boilerplate of simple test code
15447
ac_outfile=conftest.$ac_objext
15448
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15449
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15450
_lt_compiler_boilerplate=`cat conftest.err`
15453
ac_outfile=conftest.$ac_objext
15454
printf "$lt_simple_link_test_code" >conftest.$ac_ext
15455
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15456
_lt_linker_boilerplate=`cat conftest.err`
15460
# Allow CC to be a program name with arguments.
15465
for cc_temp in $compiler""; do
15467
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15468
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15473
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15476
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15477
archive_cmds_need_lc_GCJ=no
15479
old_archive_cmds_GCJ=$old_archive_cmds
15482
lt_prog_compiler_no_builtin_flag_GCJ=
15484
if test "$GCC" = yes; then
15485
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15488
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15489
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15490
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15491
echo $ECHO_N "(cached) $ECHO_C" >&6
15493
lt_cv_prog_compiler_rtti_exceptions=no
15494
ac_outfile=conftest.$ac_objext
15495
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15496
lt_compiler_flag="-fno-rtti -fno-exceptions"
15497
# Insert the option either (1) after the last *FLAGS variable, or
15498
# (2) before a word containing "conftest.", or (3) at the end.
15499
# Note that $ac_compile itself does not contain backslashes and begins
15500
# with a dollar sign (not a hyphen), so the echo should work correctly.
15501
# The option is referenced via a variable to avoid confusing sed.
15502
lt_compile=`echo "$ac_compile" | $SED \
15503
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15504
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15505
-e 's:$: $lt_compiler_flag:'`
15506
(eval echo "\"\$as_me:15506: $lt_compile\"" >&5)
15507
(eval "$lt_compile" 2>conftest.err)
15509
cat conftest.err >&5
15510
echo "$as_me:15510: \$? = $ac_status" >&5
15511
if (exit $ac_status) && test -s "$ac_outfile"; then
15512
# The compiler can only warn and ignore the option if not recognized
15513
# So say no if there are warnings other than the usual output.
15514
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15515
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15516
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15517
lt_cv_prog_compiler_rtti_exceptions=yes
15523
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15524
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15526
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15527
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15534
lt_prog_compiler_wl_GCJ=
15535
lt_prog_compiler_pic_GCJ=
15536
lt_prog_compiler_static_GCJ=
15538
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15539
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15541
if test "$GCC" = yes; then
15542
lt_prog_compiler_wl_GCJ='-Wl,'
15543
lt_prog_compiler_static_GCJ='-static'
15547
# All AIX code is PIC.
15548
if test "$host_cpu" = ia64; then
15549
# AIX 5 now supports IA64 processor
15550
lt_prog_compiler_static_GCJ='-Bstatic'
15555
# FIXME: we need at least 68020 code to build shared libraries, but
15556
# adding the `-m68020' flag to GCC prevents building anything better,
15558
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15561
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15562
# PIC is the default for these OSes.
15565
mingw* | pw32* | os2*)
15566
# This hack is so that the source file can tell whether it is being
15567
# built for inclusion in a dll (and should export symbols for example).
15568
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15571
darwin* | rhapsody*)
15572
# PIC is the default on this platform
15573
# Common symbols not allowed in MH_DYLIB files
15574
lt_prog_compiler_pic_GCJ='-fno-common'
15578
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
15579
# Instead, we relocate shared libraries at runtime.
15583
# Just because we use GCC doesn't mean we suddenly get shared libraries
15584
# on systems that don't support them.
15585
lt_prog_compiler_can_build_shared_GCJ=no
15590
if test -d /usr/nec; then
15591
lt_prog_compiler_pic_GCJ=-Kconform_pic
15596
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15597
# not for PA HP-UX.
15603
lt_prog_compiler_pic_GCJ='-fPIC'
15609
lt_prog_compiler_pic_GCJ='-fPIC'
15613
# PORTME Check for flag to pass linker flags through the system compiler.
15616
lt_prog_compiler_wl_GCJ='-Wl,'
15617
if test "$host_cpu" = ia64; then
15618
# AIX 5 now supports IA64 processor
15619
lt_prog_compiler_static_GCJ='-Bstatic'
15621
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15625
# PIC is the default on this platform
15626
# Common symbols not allowed in MH_DYLIB files
15627
case $cc_basename in
15629
lt_prog_compiler_pic_GCJ='-qnocommon'
15630
lt_prog_compiler_wl_GCJ='-Wl,'
15635
mingw* | pw32* | os2*)
15636
# This hack is so that the source file can tell whether it is being
15637
# built for inclusion in a dll (and should export symbols for example).
15638
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15641
hpux9* | hpux10* | hpux11*)
15642
lt_prog_compiler_wl_GCJ='-Wl,'
15643
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15644
# not for PA HP-UX.
15650
lt_prog_compiler_pic_GCJ='+Z'
15653
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15654
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15657
irix5* | irix6* | nonstopux*)
15658
lt_prog_compiler_wl_GCJ='-Wl,'
15659
# PIC (with -KPIC) is the default.
15660
lt_prog_compiler_static_GCJ='-non_shared'
15664
lt_prog_compiler_pic_GCJ='-KPIC'
15665
lt_prog_compiler_static_GCJ='-Bstatic'
15669
case $cc_basename in
15671
lt_prog_compiler_wl_GCJ='-Wl,'
15672
lt_prog_compiler_pic_GCJ='-KPIC'
15673
lt_prog_compiler_static_GCJ='-static'
15675
pgcc* | pgf77* | pgf90* | pgf95*)
15676
# Portland Group compilers (*not* the Pentium gcc compiler,
15677
# which looks to be a dead project)
15678
lt_prog_compiler_wl_GCJ='-Wl,'
15679
lt_prog_compiler_pic_GCJ='-fpic'
15680
lt_prog_compiler_static_GCJ='-Bstatic'
15683
lt_prog_compiler_wl_GCJ='-Wl,'
15684
# All Alpha code is PIC.
15685
lt_prog_compiler_static_GCJ='-non_shared'
15690
osf3* | osf4* | osf5*)
15691
lt_prog_compiler_wl_GCJ='-Wl,'
15692
# All OSF/1 code is PIC.
15693
lt_prog_compiler_static_GCJ='-non_shared'
15697
lt_prog_compiler_pic_GCJ='-KPIC'
15698
lt_prog_compiler_static_GCJ='-Bstatic'
15699
case $cc_basename in
15700
f77* | f90* | f95*)
15701
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15703
lt_prog_compiler_wl_GCJ='-Wl,';;
15708
lt_prog_compiler_wl_GCJ='-Qoption ld '
15709
lt_prog_compiler_pic_GCJ='-PIC'
15710
lt_prog_compiler_static_GCJ='-Bstatic'
15713
sysv4 | sysv4.2uw2* | sysv4.3*)
15714
lt_prog_compiler_wl_GCJ='-Wl,'
15715
lt_prog_compiler_pic_GCJ='-KPIC'
15716
lt_prog_compiler_static_GCJ='-Bstatic'
15720
if test -d /usr/nec ;then
15721
lt_prog_compiler_pic_GCJ='-Kconform_pic'
15722
lt_prog_compiler_static_GCJ='-Bstatic'
15726
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15727
lt_prog_compiler_wl_GCJ='-Wl,'
15728
lt_prog_compiler_pic_GCJ='-KPIC'
15729
lt_prog_compiler_static_GCJ='-Bstatic'
15733
lt_prog_compiler_wl_GCJ='-Wl,'
15734
lt_prog_compiler_can_build_shared_GCJ=no
15738
lt_prog_compiler_pic_GCJ='-pic'
15739
lt_prog_compiler_static_GCJ='-Bstatic'
15743
lt_prog_compiler_can_build_shared_GCJ=no
15748
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15749
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15752
# Check to make sure the PIC flag actually works.
15754
if test -n "$lt_prog_compiler_pic_GCJ"; then
15756
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15757
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15758
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15759
echo $ECHO_N "(cached) $ECHO_C" >&6
15761
lt_prog_compiler_pic_works_GCJ=no
15762
ac_outfile=conftest.$ac_objext
15763
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15764
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15765
# Insert the option either (1) after the last *FLAGS variable, or
15766
# (2) before a word containing "conftest.", or (3) at the end.
15767
# Note that $ac_compile itself does not contain backslashes and begins
15768
# with a dollar sign (not a hyphen), so the echo should work correctly.
15769
# The option is referenced via a variable to avoid confusing sed.
15770
lt_compile=`echo "$ac_compile" | $SED \
15771
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15772
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15773
-e 's:$: $lt_compiler_flag:'`
15774
(eval echo "\"\$as_me:15774: $lt_compile\"" >&5)
15775
(eval "$lt_compile" 2>conftest.err)
15777
cat conftest.err >&5
15778
echo "$as_me:15778: \$? = $ac_status" >&5
15779
if (exit $ac_status) && test -s "$ac_outfile"; then
15780
# The compiler can only warn and ignore the option if not recognized
15781
# So say no if there are warnings other than the usual output.
15782
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15783
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15784
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15785
lt_prog_compiler_pic_works_GCJ=yes
15791
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15792
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15794
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15795
case $lt_prog_compiler_pic_GCJ in
15797
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15800
lt_prog_compiler_pic_GCJ=
15801
lt_prog_compiler_can_build_shared_GCJ=no
15806
# For platforms which do not support PIC, -DPIC is meaningless:
15808
lt_prog_compiler_pic_GCJ=
15811
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15816
# Check to make sure the static flag actually works.
15818
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15819
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15820
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15821
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15822
echo $ECHO_N "(cached) $ECHO_C" >&6
15824
lt_prog_compiler_static_works_GCJ=no
15825
save_LDFLAGS="$LDFLAGS"
15826
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15827
printf "$lt_simple_link_test_code" > conftest.$ac_ext
15828
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15829
# The linker can only warn and ignore the option if not recognized
15830
# So say no if there are warnings
15831
if test -s conftest.err; then
15832
# Append any errors to the config.log.
15833
cat conftest.err 1>&5
15834
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15835
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15836
if diff conftest.exp conftest.er2 >/dev/null; then
15837
lt_prog_compiler_static_works_GCJ=yes
15840
lt_prog_compiler_static_works_GCJ=yes
15844
LDFLAGS="$save_LDFLAGS"
15847
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15848
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15850
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15853
lt_prog_compiler_static_GCJ=
15857
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15858
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15859
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15860
echo $ECHO_N "(cached) $ECHO_C" >&6
15862
lt_cv_prog_compiler_c_o_GCJ=no
15863
$rm -r conftest 2>/dev/null
15867
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15869
lt_compiler_flag="-o out/conftest2.$ac_objext"
15870
# Insert the option either (1) after the last *FLAGS variable, or
15871
# (2) before a word containing "conftest.", or (3) at the end.
15872
# Note that $ac_compile itself does not contain backslashes and begins
15873
# with a dollar sign (not a hyphen), so the echo should work correctly.
15874
lt_compile=`echo "$ac_compile" | $SED \
15875
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15876
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15877
-e 's:$: $lt_compiler_flag:'`
15878
(eval echo "\"\$as_me:15878: $lt_compile\"" >&5)
15879
(eval "$lt_compile" 2>out/conftest.err)
15881
cat out/conftest.err >&5
15882
echo "$as_me:15882: \$? = $ac_status" >&5
15883
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15885
# The compiler can only warn and ignore the option if not recognized
15886
# So say no if there are warnings
15887
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15888
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15889
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15890
lt_cv_prog_compiler_c_o_GCJ=yes
15895
# SGI C++ compiler will create directory out/ii_files/ for
15896
# template instantiation
15897
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15898
$rm out/* && rmdir out
15904
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15905
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15908
hard_links="nottested"
15909
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15910
# do not overwrite the value of need_locks provided by the user
15911
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15912
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15915
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15917
ln conftest.a conftest.b 2>&5 || hard_links=no
15918
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15919
echo "$as_me:$LINENO: result: $hard_links" >&5
15920
echo "${ECHO_T}$hard_links" >&6
15921
if test "$hard_links" = no; then
15922
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15923
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15930
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15931
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15934
allow_undefined_flag_GCJ=
15935
enable_shared_with_static_runtimes_GCJ=no
15937
archive_expsym_cmds_GCJ=
15938
old_archive_From_new_cmds_GCJ=
15939
old_archive_from_expsyms_cmds_GCJ=
15940
export_dynamic_flag_spec_GCJ=
15941
whole_archive_flag_spec_GCJ=
15942
thread_safe_flag_spec_GCJ=
15943
hardcode_libdir_flag_spec_GCJ=
15944
hardcode_libdir_flag_spec_ld_GCJ=
15945
hardcode_libdir_separator_GCJ=
15946
hardcode_direct_GCJ=no
15947
hardcode_minus_L_GCJ=no
15948
hardcode_shlibpath_var_GCJ=unsupported
15949
link_all_deplibs_GCJ=unknown
15950
hardcode_automatic_GCJ=no
15952
module_expsym_cmds_GCJ=
15953
always_export_symbols_GCJ=no
15954
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15955
# include_expsyms should be a list of space-separated symbols to be *always*
15956
# included in the symbol list
15957
include_expsyms_GCJ=
15958
# exclude_expsyms can be an extended regexp of symbols to exclude
15959
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15960
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15961
# as well as any symbol that contains `d'.
15962
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15963
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15964
# platforms (ab)use it in PIC code, but their linkers get confused if
15965
# the symbol is explicitly referenced. Since portable code cannot
15966
# rely on this symbol name, it's probably fine to never include it in
15967
# preloaded symbol tables.
15968
extract_expsyms_cmds=
15969
# Just being paranoid about ensuring that cc_basename is set.
15970
for cc_temp in $compiler""; do
15972
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15973
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15978
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15981
cygwin* | mingw* | pw32*)
15982
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15983
# When not using gcc, we currently assume that we are using
15984
# Microsoft Visual C++.
15985
if test "$GCC" != yes; then
15990
# we just hope/assume this is gcc and not c89 (= MSVC++)
15999
if test "$with_gnu_ld" = yes; then
16000
# If archive_cmds runs LD, not CC, wlarc should be empty
16003
# Set some defaults for GNU ld with shared library support. These
16004
# are reset later if shared libraries are not supported. Putting them
16005
# here allows them to be overridden if necessary.
16006
runpath_var=LD_RUN_PATH
16007
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16008
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16009
# ancient GNU ld didn't support --whole-archive et. al.
16010
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16011
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16013
whole_archive_flag_spec_GCJ=
16015
supports_anon_versioning=no
16016
case `$LD -v 2>/dev/null` in
16017
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16018
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16019
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16020
*\ 2.11.*) ;; # other 2.11 versions
16021
*) supports_anon_versioning=yes ;;
16024
# See if GNU ld supports shared libraries.
16026
aix3* | aix4* | aix5*)
16027
# On AIX/PPC, the GNU linker is very broken
16028
if test "$host_cpu" != ia64; then
16032
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16033
*** to be unable to reliably create shared libraries on AIX.
16034
*** Therefore, libtool is disabling shared libraries support. If you
16035
*** really care for shared libraries, you may want to modify your PATH
16036
*** so that a non-GNU linker is found, and then restart.
16043
archive_cmds_GCJ='$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)'
16044
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16045
hardcode_minus_L_GCJ=yes
16047
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16048
# that the semantics of dynamic libraries on AmigaOS, at least up
16049
# to version 4, is to share data among multiple programs linked
16050
# with the same dynamic library. Since this doesn't match the
16051
# behavior of shared libraries on other platforms, we can't use
16057
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16058
allow_undefined_flag_GCJ=unsupported
16059
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16060
# support --undefined. This deserves some investigation. FIXME
16061
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16067
cygwin* | mingw* | pw32*)
16068
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16069
# as there is no search path for DLLs.
16070
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16071
allow_undefined_flag_GCJ=unsupported
16072
always_export_symbols_GCJ=no
16073
enable_shared_with_static_runtimes_GCJ=yes
16074
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16076
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16077
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16078
# If the export-symbols file already is a .def file (1st line
16079
# is EXPORTS), use it as is; otherwise, prepend...
16080
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16081
cp $export_symbols $output_objdir/$soname.def;
16083
echo EXPORTS > $output_objdir/$soname.def;
16084
cat $export_symbols >> $output_objdir/$soname.def;
16086
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16093
hardcode_direct_GCJ=no
16094
hardcode_shlibpath_var_GCJ=no
16095
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16096
export_dynamic_flag_spec_GCJ='${wl}-E'
16097
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16098
# Instead, shared libraries are loaded at an image base (0x10000000 by
16099
# default) and relocated if they conflict, which is a slow very memory
16100
# consuming and fragmenting process. To avoid this, we pick a random,
16101
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16102
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
16103
archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16104
archive_expsym_cmds_GCJ='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'
16108
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16110
case $cc_basename,$host_cpu in
16111
pgcc*) # Portland Group C compiler
16112
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16113
tmp_addflag=' $pic_flag'
16115
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16116
whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16117
tmp_addflag=' $pic_flag -Mnomain' ;;
16118
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16119
tmp_addflag=' -i_dynamic' ;;
16120
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16121
tmp_addflag=' -i_dynamic -nofor_main' ;;
16122
ifc* | ifort*) # Intel Fortran compiler
16123
tmp_addflag=' -nofor_main' ;;
16125
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16127
if test $supports_anon_versioning = yes; then
16128
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16129
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16130
$echo "local: *; };" >> $output_objdir/$libname.ver~
16131
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16139
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16140
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16143
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16144
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16149
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16153
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16154
*** create shared libraries on Solaris systems. Therefore, libtool
16155
*** is disabling shared libraries support. We urge you to upgrade GNU
16156
*** binutils to release 2.9.1 or newer. Another option is to modify
16157
*** your PATH or compiler configuration so that the native linker is
16158
*** used, and then restart.
16161
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16162
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16163
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16169
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16170
case `$LD -v 2>&1` in
16171
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16175
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16176
*** reliably create shared libraries on SCO systems. Therefore, libtool
16177
*** is disabling shared libraries support. We urge you to upgrade GNU
16178
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16179
*** your PATH or compiler configuration so that the native linker is
16180
*** used, and then restart.
16185
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16186
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16187
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16188
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16197
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16199
hardcode_direct_GCJ=yes
16200
hardcode_shlibpath_var_GCJ=no
16204
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16205
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16206
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16213
if test "$ld_shlibs_GCJ" = no; then
16215
hardcode_libdir_flag_spec_GCJ=
16216
export_dynamic_flag_spec_GCJ=
16217
whole_archive_flag_spec_GCJ=
16220
# PORTME fill in a description of your system's linker (not GNU ld)
16223
allow_undefined_flag_GCJ=unsupported
16224
always_export_symbols_GCJ=yes
16225
archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16226
# Note: this linker hardcodes the directories in LIBPATH if there
16227
# are no directories specified by -L.
16228
hardcode_minus_L_GCJ=yes
16229
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16230
# Neither direct hardcoding nor static linking is supported with a
16232
hardcode_direct_GCJ=unsupported
16237
if test "$host_cpu" = ia64; then
16238
# On IA64, the linker does run time linking by default, so we don't
16239
# have to do anything special.
16240
aix_use_runtimelinking=no
16241
exp_sym_flag='-Bexport'
16244
# If we're using GNU nm, then we don't want the "-C" option.
16245
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16246
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16247
export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16249
export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16251
aix_use_runtimelinking=no
16253
# Test if we are trying to use run time linking or normal
16254
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16255
# need to do runtime linking.
16256
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16257
for ld_flag in $LDFLAGS; do
16258
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16259
aix_use_runtimelinking=yes
16266
exp_sym_flag='-bexport'
16267
no_entry_flag='-bnoentry'
16270
# When large executables or shared objects are built, AIX ld can
16271
# have problems creating the table of contents. If linking a library
16272
# or program results in "error TOC overflow" add -mminimal-toc to
16273
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16274
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16276
archive_cmds_GCJ=''
16277
hardcode_direct_GCJ=yes
16278
hardcode_libdir_separator_GCJ=':'
16279
link_all_deplibs_GCJ=yes
16281
if test "$GCC" = yes; then
16282
case $host_os in aix4.[012]|aix4.[012].*)
16283
# We only want to do this on AIX 4.2 and lower, the check
16284
# below for broken collect2 doesn't work under 4.3+
16285
collect2name=`${CC} -print-prog-name=collect2`
16286
if test -f "$collect2name" && \
16287
strings "$collect2name" | grep resolve_lib_name >/dev/null
16289
# We have reworked collect2
16290
hardcode_direct_GCJ=yes
16292
# We have old collect2
16293
hardcode_direct_GCJ=unsupported
16294
# It fails to find uninstalled libraries when the uninstalled
16295
# path is not listed in the libpath. Setting hardcode_minus_L
16296
# to unsupported forces relinking
16297
hardcode_minus_L_GCJ=yes
16298
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16299
hardcode_libdir_separator_GCJ=
16303
shared_flag='-shared'
16304
if test "$aix_use_runtimelinking" = yes; then
16305
shared_flag="$shared_flag "'${wl}-G'
16309
if test "$host_cpu" = ia64; then
16310
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16311
# chokes on -Wl,-G. The following line is correct:
16314
if test "$aix_use_runtimelinking" = yes; then
16315
shared_flag='${wl}-G'
16317
shared_flag='${wl}-bM:SRE'
16322
# It seems that -bexpall does not export symbols beginning with
16323
# underscore (_), so it is better to generate a list of symbols to export.
16324
always_export_symbols_GCJ=yes
16325
if test "$aix_use_runtimelinking" = yes; then
16326
# Warning - without using the other runtime loading flags (-brtl),
16327
# -berok will link without error, but may produce a broken library.
16328
allow_undefined_flag_GCJ='-berok'
16329
# Determine the default libpath from the value encoded in an empty executable.
16330
cat >conftest.$ac_ext <<_ACEOF
16333
cat confdefs.h >>conftest.$ac_ext
16334
cat >>conftest.$ac_ext <<_ACEOF
16335
/* end confdefs.h. */
16345
rm -f conftest.$ac_objext conftest$ac_exeext
16346
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16347
(eval $ac_link) 2>conftest.er1
16349
grep -v '^ *+' conftest.er1 >conftest.err
16351
cat conftest.err >&5
16352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353
(exit $ac_status); } &&
16354
{ ac_try='test -z "$ac_c_werror_flag"
16355
|| test ! -s conftest.err'
16356
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16357
(eval $ac_try) 2>&5
16359
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360
(exit $ac_status); }; } &&
16361
{ ac_try='test -s conftest$ac_exeext'
16362
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363
(eval $ac_try) 2>&5
16365
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366
(exit $ac_status); }; }; then
16368
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16370
# Check for a 64-bit object if we didn't find anything.
16371
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16374
echo "$as_me: failed program was:" >&5
16375
sed 's/^/| /' conftest.$ac_ext >&5
16378
rm -f conftest.err conftest.$ac_objext \
16379
conftest$ac_exeext conftest.$ac_ext
16380
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16382
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16383
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16385
if test "$host_cpu" = ia64; then
16386
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16387
allow_undefined_flag_GCJ="-z nodefs"
16388
archive_expsym_cmds_GCJ="\$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"
16390
# Determine the default libpath from the value encoded in an empty executable.
16391
cat >conftest.$ac_ext <<_ACEOF
16394
cat confdefs.h >>conftest.$ac_ext
16395
cat >>conftest.$ac_ext <<_ACEOF
16396
/* end confdefs.h. */
16406
rm -f conftest.$ac_objext conftest$ac_exeext
16407
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16408
(eval $ac_link) 2>conftest.er1
16410
grep -v '^ *+' conftest.er1 >conftest.err
16412
cat conftest.err >&5
16413
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414
(exit $ac_status); } &&
16415
{ ac_try='test -z "$ac_c_werror_flag"
16416
|| test ! -s conftest.err'
16417
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418
(eval $ac_try) 2>&5
16420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421
(exit $ac_status); }; } &&
16422
{ ac_try='test -s conftest$ac_exeext'
16423
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16424
(eval $ac_try) 2>&5
16426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427
(exit $ac_status); }; }; then
16429
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16431
# Check for a 64-bit object if we didn't find anything.
16432
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16435
echo "$as_me: failed program was:" >&5
16436
sed 's/^/| /' conftest.$ac_ext >&5
16439
rm -f conftest.err conftest.$ac_objext \
16440
conftest$ac_exeext conftest.$ac_ext
16441
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16443
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16444
# Warning - without using the other run time loading flags,
16445
# -berok will link without error, but may produce a broken library.
16446
no_undefined_flag_GCJ=' ${wl}-bernotok'
16447
allow_undefined_flag_GCJ=' ${wl}-berok'
16448
# Exported symbols can be pulled into shared objects from archives
16449
whole_archive_flag_spec_GCJ='$convenience'
16450
archive_cmds_need_lc_GCJ=yes
16451
# This is similar to how AIX traditionally builds its shared libraries.
16452
archive_expsym_cmds_GCJ="\$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'
16458
archive_cmds_GCJ='$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)'
16459
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16460
hardcode_minus_L_GCJ=yes
16461
# see comment about different semantics on the GNU ld section
16466
export_dynamic_flag_spec_GCJ=-rdynamic
16469
cygwin* | mingw* | pw32*)
16470
# When not using gcc, we currently assume that we are using
16471
# Microsoft Visual C++.
16472
# hardcode_libdir_flag_spec is actually meaningless, as there is
16473
# no search path for DLLs.
16474
hardcode_libdir_flag_spec_GCJ=' '
16475
allow_undefined_flag_GCJ=unsupported
16476
# Tell ltmain to make .lib files, not .a files.
16478
# Tell ltmain to make .dll files, not .so files.
16480
# FIXME: Setting linknames here is a bad hack.
16481
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16482
# The linker will automatically build a .lib file if we build a DLL.
16483
old_archive_From_new_cmds_GCJ='true'
16484
# FIXME: Should let the user specify the lib program.
16485
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16486
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16487
enable_shared_with_static_runtimes_GCJ=yes
16490
darwin* | rhapsody*)
16492
rhapsody* | darwin1.[012])
16493
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16496
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16497
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16499
case ${MACOSX_DEPLOYMENT_TARGET} in
16501
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16504
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16510
archive_cmds_need_lc_GCJ=no
16511
hardcode_direct_GCJ=no
16512
hardcode_automatic_GCJ=yes
16513
hardcode_shlibpath_var_GCJ=unsupported
16514
whole_archive_flag_spec_GCJ=''
16515
link_all_deplibs_GCJ=yes
16516
if test "$GCC" = yes ; then
16517
output_verbose_link_cmd='echo'
16518
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16519
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16520
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16521
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
16522
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
16524
case $cc_basename in
16526
output_verbose_link_cmd='echo'
16527
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16528
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16529
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16530
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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}'
16531
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -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}'
16541
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16542
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16543
hardcode_shlibpath_var_GCJ=no
16550
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16551
# support. Future versions do this automatically, but an explicit c++rt0.o
16552
# does not break anything, and helps significantly (at the cost of a little
16555
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16556
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16557
hardcode_direct_GCJ=yes
16558
hardcode_shlibpath_var_GCJ=no
16561
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16563
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16564
hardcode_direct_GCJ=yes
16565
hardcode_minus_L_GCJ=yes
16566
hardcode_shlibpath_var_GCJ=no
16569
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16570
freebsd* | kfreebsd*-gnu | dragonfly*)
16571
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16572
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16573
hardcode_direct_GCJ=yes
16574
hardcode_shlibpath_var_GCJ=no
16578
if test "$GCC" = yes; then
16579
archive_cmds_GCJ='$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'
16581
archive_cmds_GCJ='$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'
16583
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16584
hardcode_libdir_separator_GCJ=:
16585
hardcode_direct_GCJ=yes
16587
# hardcode_minus_L: Not really in the search PATH,
16588
# but as the default location of the library.
16589
hardcode_minus_L_GCJ=yes
16590
export_dynamic_flag_spec_GCJ='${wl}-E'
16594
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16595
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16597
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16599
if test "$with_gnu_ld" = no; then
16600
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16601
hardcode_libdir_separator_GCJ=:
16603
hardcode_direct_GCJ=yes
16604
export_dynamic_flag_spec_GCJ='${wl}-E'
16606
# hardcode_minus_L: Not really in the search PATH,
16607
# but as the default location of the library.
16608
hardcode_minus_L_GCJ=yes
16613
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16616
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16619
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16622
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16628
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16631
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16634
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16638
if test "$with_gnu_ld" = no; then
16639
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16640
hardcode_libdir_separator_GCJ=:
16644
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16645
hardcode_direct_GCJ=no
16646
hardcode_shlibpath_var_GCJ=no
16649
hardcode_direct_GCJ=yes
16650
export_dynamic_flag_spec_GCJ='${wl}-E'
16652
# hardcode_minus_L: Not really in the search PATH,
16653
# but as the default location of the library.
16654
hardcode_minus_L_GCJ=yes
16660
irix5* | irix6* | nonstopux*)
16661
if test "$GCC" = yes; then
16662
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16664
archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16665
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16667
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16668
hardcode_libdir_separator_GCJ=:
16669
link_all_deplibs_GCJ=yes
16673
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16674
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16676
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16678
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16679
hardcode_direct_GCJ=yes
16680
hardcode_shlibpath_var_GCJ=no
16684
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16685
hardcode_direct_GCJ=yes
16686
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16687
hardcode_libdir_separator_GCJ=:
16688
hardcode_shlibpath_var_GCJ=no
16692
hardcode_direct_GCJ=yes
16693
hardcode_shlibpath_var_GCJ=no
16694
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16695
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16696
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16697
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16698
export_dynamic_flag_spec_GCJ='${wl}-E'
16701
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16702
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16703
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16706
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16707
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16714
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16715
hardcode_minus_L_GCJ=yes
16716
allow_undefined_flag_GCJ=unsupported
16717
archive_cmds_GCJ='$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'
16718
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16722
if test "$GCC" = yes; then
16723
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16724
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16726
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16727
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16729
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16730
hardcode_libdir_separator_GCJ=:
16733
osf4* | osf5*) # as osf3* with the addition of -msym flag
16734
if test "$GCC" = yes; then
16735
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16736
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16737
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16739
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16740
archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16741
archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16742
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16744
# Both c and cxx compiler support -rpath directly
16745
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16747
hardcode_libdir_separator_GCJ=:
16751
no_undefined_flag_GCJ=' -z text'
16752
if test "$GCC" = yes; then
16754
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16755
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16756
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16759
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16760
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16761
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16763
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16764
hardcode_shlibpath_var_GCJ=no
16766
solaris2.[0-5] | solaris2.[0-5].*) ;;
16768
# The compiler driver will combine linker options so we
16769
# cannot just pass the convience library names through
16770
# without $wl, iff we do not link with $LD.
16771
# Luckily, gcc supports the same syntax we need for Sun Studio.
16772
# Supported since Solaris 2.6 (maybe 2.5.1?)
16775
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16777
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16780
link_all_deplibs_GCJ=yes
16784
if test "x$host_vendor" = xsequent; then
16785
# Use $CC to link under sequent, because it throws in some extra .o
16786
# files that make .init and .fini sections work.
16787
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16789
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16791
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16792
hardcode_direct_GCJ=yes
16793
hardcode_minus_L_GCJ=yes
16794
hardcode_shlibpath_var_GCJ=no
16798
case $host_vendor in
16800
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16801
hardcode_direct_GCJ=yes # is this really true???
16804
## LD is ld it makes a PLAMLIB
16805
## CC just makes a GrossModule.
16806
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16807
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16808
hardcode_direct_GCJ=no
16811
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16812
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16815
runpath_var='LD_RUN_PATH'
16816
hardcode_shlibpath_var_GCJ=no
16820
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16821
hardcode_shlibpath_var_GCJ=no
16822
export_dynamic_flag_spec_GCJ='-Bexport'
16826
if test -d /usr/nec; then
16827
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16828
hardcode_shlibpath_var_GCJ=no
16829
runpath_var=LD_RUN_PATH
16830
hardcode_runpath_var=yes
16835
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16836
no_undefined_flag_GCJ='${wl}-z,text'
16837
archive_cmds_need_lc_GCJ=no
16838
hardcode_shlibpath_var_GCJ=no
16839
runpath_var='LD_RUN_PATH'
16841
if test "$GCC" = yes; then
16842
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16843
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16845
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16846
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16850
sysv5* | sco3.2v5* | sco5v6*)
16851
# Note: We can NOT use -z defs as we might desire, because we do not
16852
# link with -lc, and that would cause any symbols used from libc to
16853
# always be unresolved, which means just about no library would
16854
# ever link correctly. If we're not using GNU ld we use -z text
16855
# though, which does catch some bad symbols but isn't as heavy-handed
16857
no_undefined_flag_GCJ='${wl}-z,text'
16858
allow_undefined_flag_GCJ='${wl}-z,nodefs'
16859
archive_cmds_need_lc_GCJ=no
16860
hardcode_shlibpath_var_GCJ=no
16861
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16862
hardcode_libdir_separator_GCJ=':'
16863
link_all_deplibs_GCJ=yes
16864
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16865
runpath_var='LD_RUN_PATH'
16867
if test "$GCC" = yes; then
16868
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16869
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16871
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16872
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16877
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16878
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16879
hardcode_shlibpath_var_GCJ=no
16888
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16889
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16890
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16893
# Do we need to explicitly link libc?
16895
case "x$archive_cmds_need_lc_GCJ" in
16897
# Assume -lc should be added
16898
archive_cmds_need_lc_GCJ=yes
16900
if test "$enable_shared" = yes && test "$GCC" = yes; then
16901
case $archive_cmds_GCJ in
16903
# FIXME: we may have to deal with multi-command sequences.
16906
# Test whether the compiler implicitly links with -lc since on some
16907
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16908
# to ld, don't add -lc before -lgcc.
16909
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16910
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16912
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16914
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16915
(eval $ac_compile) 2>&5
16917
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918
(exit $ac_status); } 2>conftest.err; then
16921
libobjs=conftest.$ac_objext
16923
wl=$lt_prog_compiler_wl_GCJ
16924
pic_flag=$lt_prog_compiler_pic_GCJ
16930
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16931
allow_undefined_flag_GCJ=
16932
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16933
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936
(exit $ac_status); }
16938
archive_cmds_need_lc_GCJ=no
16940
archive_cmds_need_lc_GCJ=yes
16942
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16944
cat conftest.err 1>&5
16947
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16948
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16955
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16956
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16957
library_names_spec=
16958
libname_spec='lib$name'
16962
postuninstall_cmds=
16966
shlibpath_overrides_runpath=unknown
16968
dynamic_linker="$host_os ld.so"
16969
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16970
if test "$GCC" = yes; then
16971
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16972
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16973
# if the path contains ";" then we assume it to be the separator
16974
# otherwise default to the standard path separator (i.e. ":") - it is
16975
# assumed that no part of a normal pathname contains ";" but that should
16976
# okay in the real world where ";" in dirpaths is itself problematic.
16977
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16979
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16982
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16984
need_lib_prefix=unknown
16985
hardcode_into_libs=no
16987
# when you set need_version to no, make sure it does not cause -set_version
16988
# flags to be left without arguments
16989
need_version=unknown
16994
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16995
shlibpath_var=LIBPATH
16997
# AIX 3 has no versioning support, so we append a major version to the name.
16998
soname_spec='${libname}${release}${shared_ext}$major'
17005
hardcode_into_libs=yes
17006
if test "$host_cpu" = ia64; then
17007
# AIX 5 supports IA64
17008
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17009
shlibpath_var=LD_LIBRARY_PATH
17011
# With GCC up to 2.95.x, collect2 would create an import file
17012
# for dependence libraries. The import file would start with
17013
# the line `#! .'. This would cause the generated library to
17014
# depend on `.', always an invalid library. This was fixed in
17015
# development snapshots of GCC prior to 3.0.
17017
aix4 | aix4.[01] | aix4.[01].*)
17018
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17020
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17023
can_build_shared=no
17027
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17028
# soname into executable. Probably we can add versioning support to
17029
# collect2, so additional links can be useful in future.
17030
if test "$aix_use_runtimelinking" = yes; then
17031
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17032
# instead of lib<name>.a to let people know that these are not
17033
# typical AIX shared libraries.
17034
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17036
# We preserve .a as extension for shared libraries through AIX4.2
17037
# and later when we are not doing run time linking.
17038
library_names_spec='${libname}${release}.a $libname.a'
17039
soname_spec='${libname}${release}${shared_ext}$major'
17041
shlibpath_var=LIBPATH
17046
library_names_spec='$libname.ixlibrary $libname.a'
17047
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17048
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'
17052
library_names_spec='${libname}${shared_ext}'
17053
dynamic_linker="$host_os ld.so"
17054
shlibpath_var=LIBRARY_PATH
17060
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17061
soname_spec='${libname}${release}${shared_ext}$major'
17062
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17063
shlibpath_var=LD_LIBRARY_PATH
17064
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17065
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17066
# the default ld.so.conf also contains /usr/contrib/lib and
17067
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17068
# libtool to hard-code these into programs
17071
cygwin* | mingw* | pw32*)
17072
version_type=windows
17077
case $GCC,$host_os in
17078
yes,cygwin* | yes,mingw* | yes,pw32*)
17079
library_names_spec='$libname.dll.a'
17080
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17081
postinstall_cmds='base_file=`basename \${file}`~
17082
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17083
dldir=$destdir/`dirname \$dlpath`~
17084
test -d \$dldir || mkdir -p \$dldir~
17085
$install_prog $dir/$dlname \$dldir/$dlname~
17086
chmod a+x \$dldir/$dlname'
17087
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17088
dlpath=$dir/\$dldll~
17090
shlibpath_overrides_runpath=yes
17094
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17095
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17096
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17099
# MinGW DLLs use traditional 'lib' prefix
17100
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17101
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17102
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17103
# It is most probably a Windows format PATH printed by
17104
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17105
# path with ; separators, and with drive letters. We can handle the
17106
# drive letters (cygwin fileutils understands them), so leave them,
17107
# especially as we might pass files found there to a mingw objdump,
17108
# which wouldn't understand a cygwinified path. Ahh.
17109
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17111
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17115
# pw32 DLLs use 'pw' prefix rather than 'lib'
17116
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17122
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17125
dynamic_linker='Win32 ld.exe'
17126
# FIXME: first we should search . and the directory the executable is in
17130
darwin* | rhapsody*)
17131
dynamic_linker="$host_os dyld"
17132
version_type=darwin
17135
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17136
soname_spec='${libname}${release}${major}$shared_ext'
17137
shlibpath_overrides_runpath=yes
17138
shlibpath_var=DYLD_LIBRARY_PATH
17139
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17140
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17141
if test "$GCC" = yes; then
17142
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17144
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17146
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17153
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17154
soname_spec='${libname}${release}${shared_ext}$major'
17155
shlibpath_var=LD_LIBRARY_PATH
17166
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17167
soname_spec='${libname}${release}${shared_ext}$major'
17168
shlibpath_var=LD_LIBRARY_PATH
17169
shlibpath_overrides_runpath=no
17170
hardcode_into_libs=yes
17171
dynamic_linker='GNU ld.so'
17174
freebsd* | dragonfly*)
17175
# DragonFly does not have aout. When/if they implement a new
17176
# versioning mechanism, adjust this.
17177
if test -x /usr/bin/objformat; then
17178
objformat=`/usr/bin/objformat`
17181
freebsd[123]*) objformat=aout ;;
17182
*) objformat=elf ;;
17185
version_type=freebsd-$objformat
17186
case $version_type in
17188
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17193
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17197
shlibpath_var=LD_LIBRARY_PATH
17200
shlibpath_overrides_runpath=yes
17202
freebsd3.[01]* | freebsdelf3.[01]*)
17203
shlibpath_overrides_runpath=yes
17204
hardcode_into_libs=yes
17206
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17207
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17208
shlibpath_overrides_runpath=no
17209
hardcode_into_libs=yes
17211
freebsd*) # from 4.6 on
17212
shlibpath_overrides_runpath=yes
17213
hardcode_into_libs=yes
17222
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17223
soname_spec='${libname}${release}${shared_ext}$major'
17224
shlibpath_var=LD_LIBRARY_PATH
17225
hardcode_into_libs=yes
17228
hpux9* | hpux10* | hpux11*)
17229
# Give a soname corresponding to the major version so that dld.sl refuses to
17230
# link against other versions.
17237
hardcode_into_libs=yes
17238
dynamic_linker="$host_os dld.so"
17239
shlibpath_var=LD_LIBRARY_PATH
17240
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17241
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17242
soname_spec='${libname}${release}${shared_ext}$major'
17243
if test "X$HPUX_IA64_MODE" = X32; then
17244
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17246
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17248
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17252
hardcode_into_libs=yes
17253
dynamic_linker="$host_os dld.sl"
17254
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17255
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17256
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17257
soname_spec='${libname}${release}${shared_ext}$major'
17258
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17259
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17263
dynamic_linker="$host_os dld.sl"
17264
shlibpath_var=SHLIB_PATH
17265
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17266
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17267
soname_spec='${libname}${release}${shared_ext}$major'
17270
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17271
postinstall_cmds='chmod 555 $lib'
17278
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17279
soname_spec='${libname}${release}${shared_ext}$major'
17280
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17281
shlibpath_var=LD_LIBRARY_PATH
17282
shlibpath_overrides_runpath=no
17283
hardcode_into_libs=yes
17286
irix5* | irix6* | nonstopux*)
17288
nonstopux*) version_type=nonstopux ;;
17290
if test "$lt_cv_prog_gnu_ld" = yes; then
17298
soname_spec='${libname}${release}${shared_ext}$major'
17299
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17301
irix5* | nonstopux*)
17302
libsuff= shlibsuff=
17305
case $LD in # libtool.m4 will add one of these switches to LD
17306
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17307
libsuff= shlibsuff= libmagic=32-bit;;
17308
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17309
libsuff=32 shlibsuff=N32 libmagic=N32;;
17310
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17311
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17312
*) libsuff= shlibsuff= libmagic=never-match;;
17316
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17317
shlibpath_overrides_runpath=no
17318
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17319
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17320
hardcode_into_libs=yes
17323
# No shared lib support for Linux oldld, aout, or coff.
17324
linux*oldld* | linux*aout* | linux*coff*)
17328
# This must be Linux ELF.
17333
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17334
soname_spec='${libname}${release}${shared_ext}$major'
17335
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17336
shlibpath_var=LD_LIBRARY_PATH
17337
shlibpath_overrides_runpath=no
17338
# This implies no fast_install, which is unacceptable.
17339
# Some rework will be needed to allow for fast_install
17340
# before this can be enabled.
17341
hardcode_into_libs=yes
17343
# Append ld.so.conf contents to the search path
17344
if test -f /etc/ld.so.conf; then
17345
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17346
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17349
# We used to test for /lib/ld.so.1 and disable shared libraries on
17350
# powerpc, because MkLinux only supported shared libraries with the
17351
# GNU dynamic linker. Since this was broken with cross compilers,
17352
# most powerpc-linux boxes support dynamic linking these days and
17353
# people can always --disable-shared, the test was removed, and we
17354
# assume the GNU/Linux dynamic linker is in use.
17355
dynamic_linker='GNU/Linux ld.so'
17362
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17363
soname_spec='${libname}${release}${shared_ext}$major'
17364
shlibpath_var=LD_LIBRARY_PATH
17365
shlibpath_overrides_runpath=no
17366
hardcode_into_libs=yes
17367
dynamic_linker='GNU ld.so'
17374
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17375
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17376
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17377
dynamic_linker='NetBSD (a.out) ld.so'
17379
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17380
soname_spec='${libname}${release}${shared_ext}$major'
17381
dynamic_linker='NetBSD ld.elf_so'
17383
shlibpath_var=LD_LIBRARY_PATH
17384
shlibpath_overrides_runpath=yes
17385
hardcode_into_libs=yes
17390
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17391
shlibpath_var=LD_LIBRARY_PATH
17392
shlibpath_overrides_runpath=yes
17399
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17400
soname_spec='${libname}${release}${shared_ext}$major'
17401
shlibpath_var=LD_LIBRARY_PATH
17402
shlibpath_overrides_runpath=yes
17407
sys_lib_dlsearch_path_spec="/usr/lib"
17409
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17411
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17412
*) need_version=no ;;
17414
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17415
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17416
shlibpath_var=LD_LIBRARY_PATH
17417
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17419
openbsd2.[89] | openbsd2.[89].*)
17420
shlibpath_overrides_runpath=no
17423
shlibpath_overrides_runpath=yes
17427
shlibpath_overrides_runpath=yes
17432
libname_spec='$name'
17435
library_names_spec='$libname${shared_ext} $libname.a'
17436
dynamic_linker='OS/2 ld.exe'
17437
shlibpath_var=LIBPATH
17440
osf3* | osf4* | osf5*)
17444
soname_spec='${libname}${release}${shared_ext}$major'
17445
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17446
shlibpath_var=LD_LIBRARY_PATH
17447
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17448
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17455
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17456
soname_spec='${libname}${release}${shared_ext}$major'
17457
shlibpath_var=LD_LIBRARY_PATH
17458
shlibpath_overrides_runpath=yes
17459
hardcode_into_libs=yes
17460
# ldd complains unless libraries are executable
17461
postinstall_cmds='chmod +x $lib'
17466
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17467
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17468
shlibpath_var=LD_LIBRARY_PATH
17469
shlibpath_overrides_runpath=yes
17470
if test "$with_gnu_ld" = yes; then
17478
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17479
soname_spec='${libname}${release}${shared_ext}$major'
17480
shlibpath_var=LD_LIBRARY_PATH
17481
case $host_vendor in
17483
shlibpath_overrides_runpath=no
17485
export_dynamic_flag_spec='${wl}-Blargedynsym'
17486
runpath_var=LD_RUN_PATH
17494
shlibpath_overrides_runpath=no
17495
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17501
if test -d /usr/nec ;then
17503
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17504
soname_spec='$libname${shared_ext}.$major'
17505
shlibpath_var=LD_LIBRARY_PATH
17509
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17510
version_type=freebsd-elf
17513
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17514
soname_spec='${libname}${release}${shared_ext}$major'
17515
shlibpath_var=LD_LIBRARY_PATH
17516
hardcode_into_libs=yes
17517
if test "$with_gnu_ld" = yes; then
17518
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17519
shlibpath_overrides_runpath=no
17521
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17522
shlibpath_overrides_runpath=yes
17525
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17529
sys_lib_dlsearch_path_spec='/usr/lib'
17534
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17535
soname_spec='${libname}${release}${shared_ext}$major'
17536
shlibpath_var=LD_LIBRARY_PATH
17543
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17544
echo "${ECHO_T}$dynamic_linker" >&6
17545
test "$dynamic_linker" = no && can_build_shared=no
17547
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17548
if test "$GCC" = yes; then
17549
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17552
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17553
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17554
hardcode_action_GCJ=
17555
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17556
test -n "$runpath_var_GCJ" || \
17557
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17559
# We can hardcode non-existant directories.
17560
if test "$hardcode_direct_GCJ" != no &&
17561
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17562
# have to relink, otherwise we might link with an installed library
17563
# when we should be linking with a yet-to-be-installed one
17564
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17565
test "$hardcode_minus_L_GCJ" != no; then
17566
# Linking always hardcodes the temporary library directory.
17567
hardcode_action_GCJ=relink
17569
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17570
hardcode_action_GCJ=immediate
17573
# We cannot hardcode anything, or else we can only hardcode existing
17575
hardcode_action_GCJ=unsupported
17577
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17578
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17580
if test "$hardcode_action_GCJ" = relink; then
17581
# Fast installation is not supported
17582
enable_fast_install=no
17583
elif test "$shlibpath_overrides_runpath" = yes ||
17584
test "$enable_shared" = no; then
17585
# Fast installation is not necessary
17586
enable_fast_install=needless
17590
# The else clause should only fire when bootstrapping the
17591
# libtool distribution, otherwise you forgot to ship ltmain.sh
17592
# with your package, and you will get complaints that there are
17593
# no rules to generate ltmain.sh.
17594
if test -f "$ltmain"; then
17595
# See if we are running on zsh, and set the options which allow our commands through
17596
# without removal of \ escapes.
17597
if test -n "${ZSH_VERSION+set}" ; then
17598
setopt NO_GLOB_SUBST
17600
# Now quote all the things that may contain metacharacters while being
17601
# careful not to overquote the AC_SUBSTed values. We take copies of the
17602
# variables and quote the copies for generation of the libtool script.
17603
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17605
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17606
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17607
deplibs_check_method reload_flag reload_cmds need_locks \
17608
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17609
lt_cv_sys_global_symbol_to_c_name_address \
17610
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17611
old_postinstall_cmds old_postuninstall_cmds \
17615
lt_prog_compiler_wl_GCJ \
17616
lt_prog_compiler_pic_GCJ \
17617
lt_prog_compiler_static_GCJ \
17618
lt_prog_compiler_no_builtin_flag_GCJ \
17619
export_dynamic_flag_spec_GCJ \
17620
thread_safe_flag_spec_GCJ \
17621
whole_archive_flag_spec_GCJ \
17622
enable_shared_with_static_runtimes_GCJ \
17623
old_archive_cmds_GCJ \
17624
old_archive_from_new_cmds_GCJ \
17625
predep_objects_GCJ \
17626
postdep_objects_GCJ \
17629
compiler_lib_search_path_GCJ \
17631
archive_expsym_cmds_GCJ \
17632
postinstall_cmds_GCJ \
17633
postuninstall_cmds_GCJ \
17634
old_archive_from_expsyms_cmds_GCJ \
17635
allow_undefined_flag_GCJ \
17636
no_undefined_flag_GCJ \
17637
export_symbols_cmds_GCJ \
17638
hardcode_libdir_flag_spec_GCJ \
17639
hardcode_libdir_flag_spec_ld_GCJ \
17640
hardcode_libdir_separator_GCJ \
17641
hardcode_automatic_GCJ \
17643
module_expsym_cmds_GCJ \
17644
lt_cv_prog_compiler_c_o_GCJ \
17645
exclude_expsyms_GCJ \
17646
include_expsyms_GCJ; do
17649
old_archive_cmds_GCJ | \
17650
old_archive_from_new_cmds_GCJ | \
17651
archive_cmds_GCJ | \
17652
archive_expsym_cmds_GCJ | \
17653
module_cmds_GCJ | \
17654
module_expsym_cmds_GCJ | \
17655
old_archive_from_expsyms_cmds_GCJ | \
17656
export_symbols_cmds_GCJ | \
17657
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17658
postinstall_cmds | postuninstall_cmds | \
17659
old_postinstall_cmds | old_postuninstall_cmds | \
17660
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17661
# Double-quote double-evaled strings.
17662
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17665
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17671
*'\$0 --fallback-echo"')
17672
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17678
cat <<__EOF__ >> "$cfgfile"
17679
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17681
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17683
# Shell to use when invoking shell scripts.
17686
# Whether or not to build shared libraries.
17687
build_libtool_libs=$enable_shared
17689
# Whether or not to build static libraries.
17690
build_old_libs=$enable_static
17692
# Whether or not to add -lc for building shared libraries.
17693
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17695
# Whether or not to disallow shared libs when runtime libs are static
17696
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17698
# Whether or not to optimize for fast installation.
17699
fast_install=$enable_fast_install
17702
host_alias=$host_alias
17706
# The build system.
17707
build_alias=$build_alias
17711
# An echo program that does not interpret backslashes.
17716
AR_FLAGS=$lt_AR_FLAGS
17721
# LTCC compiler flags.
17722
LTCFLAGS=$lt_LTCFLAGS
17724
# A language-specific compiler.
17725
CC=$lt_compiler_GCJ
17727
# Is the compiler the GNU C compiler?
17733
# The linker used to build libraries.
17736
# Whether we need hard or soft links.
17739
# A BSD-compatible nm program.
17742
# A symbol stripping program
17745
# Used to examine libraries when file_magic_cmd begins "file"
17746
MAGIC_CMD=$MAGIC_CMD
17748
# Used on cygwin: DLL creation program.
17751
# Used on cygwin: object dumper.
17754
# Used on cygwin: assembler.
17757
# The name of the directory that contains temporary libtool files.
17760
# How to create reloadable object files.
17761
reload_flag=$lt_reload_flag
17762
reload_cmds=$lt_reload_cmds
17764
# How to pass a linker flag through the compiler.
17765
wl=$lt_lt_prog_compiler_wl_GCJ
17767
# Object file suffix (normally "o").
17768
objext="$ac_objext"
17770
# Old archive suffix (normally "a").
17773
# Shared library suffix (normally ".so").
17774
shrext_cmds='$shrext_cmds'
17776
# Executable file suffix (normally "").
17779
# Additional compiler flags for building library objects.
17780
pic_flag=$lt_lt_prog_compiler_pic_GCJ
17783
# What is the maximum length of a command?
17784
max_cmd_len=$lt_cv_sys_max_cmd_len
17786
# Does compiler simultaneously support -c and -o options?
17787
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17789
# Must we lock files when doing compilation?
17790
need_locks=$lt_need_locks
17792
# Do we need the lib prefix for modules?
17793
need_lib_prefix=$need_lib_prefix
17795
# Do we need a version for libraries?
17796
need_version=$need_version
17798
# Whether dlopen is supported.
17799
dlopen_support=$enable_dlopen
17801
# Whether dlopen of programs is supported.
17802
dlopen_self=$enable_dlopen_self
17804
# Whether dlopen of statically linked programs is supported.
17805
dlopen_self_static=$enable_dlopen_self_static
17807
# Compiler flag to prevent dynamic linking.
17808
link_static_flag=$lt_lt_prog_compiler_static_GCJ
17810
# Compiler flag to turn off builtin functions.
17811
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17813
# Compiler flag to allow reflexive dlopens.
17814
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17816
# Compiler flag to generate shared objects directly from archives.
17817
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17819
# Compiler flag to generate thread-safe objects.
17820
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17822
# Library versioning type.
17823
version_type=$version_type
17825
# Format of library name prefix.
17826
libname_spec=$lt_libname_spec
17828
# List of archive names. First name is the real one, the rest are links.
17829
# The last name is the one that the linker finds with -lNAME.
17830
library_names_spec=$lt_library_names_spec
17832
# The coded name of the library, if different from the real name.
17833
soname_spec=$lt_soname_spec
17835
# Commands used to build and install an old-style archive.
17837
old_archive_cmds=$lt_old_archive_cmds_GCJ
17838
old_postinstall_cmds=$lt_old_postinstall_cmds
17839
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17841
# Create an old-style archive from a shared archive.
17842
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17844
# Create a temporary old-style archive to link instead of a shared archive.
17845
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17847
# Commands used to build and install a shared archive.
17848
archive_cmds=$lt_archive_cmds_GCJ
17849
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17850
postinstall_cmds=$lt_postinstall_cmds
17851
postuninstall_cmds=$lt_postuninstall_cmds
17853
# Commands used to build a loadable module (assumed same as above if empty)
17854
module_cmds=$lt_module_cmds_GCJ
17855
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17857
# Commands to strip libraries.
17858
old_striplib=$lt_old_striplib
17859
striplib=$lt_striplib
17861
# Dependencies to place before the objects being linked to create a
17863
predep_objects=$lt_predep_objects_GCJ
17865
# Dependencies to place after the objects being linked to create a
17867
postdep_objects=$lt_postdep_objects_GCJ
17869
# Dependencies to place before the objects being linked to create a
17871
predeps=$lt_predeps_GCJ
17873
# Dependencies to place after the objects being linked to create a
17875
postdeps=$lt_postdeps_GCJ
17877
# The library search path used internally by the compiler when linking
17878
# a shared library.
17879
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17881
# Method to check whether dependent libraries are shared objects.
17882
deplibs_check_method=$lt_deplibs_check_method
17884
# Command to use when deplibs_check_method == file_magic.
17885
file_magic_cmd=$lt_file_magic_cmd
17887
# Flag that allows shared libraries with undefined symbols to be built.
17888
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17890
# Flag that forces no undefined symbols.
17891
no_undefined_flag=$lt_no_undefined_flag_GCJ
17893
# Commands used to finish a libtool library installation in a directory.
17894
finish_cmds=$lt_finish_cmds
17896
# Same as above, but a single script fragment to be evaled but not shown.
17897
finish_eval=$lt_finish_eval
17899
# Take the output of nm and produce a listing of raw symbols and C names.
17900
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17902
# Transform the output of nm in a proper C declaration
17903
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17905
# Transform the output of nm in a C name address pair
17906
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17908
# This is the shared library runtime path variable.
17909
runpath_var=$runpath_var
17911
# This is the shared library path variable.
17912
shlibpath_var=$shlibpath_var
17914
# Is shlibpath searched before the hard-coded library search path?
17915
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17917
# How to hardcode a shared library path into an executable.
17918
hardcode_action=$hardcode_action_GCJ
17920
# Whether we should hardcode library paths into libraries.
17921
hardcode_into_libs=$hardcode_into_libs
17923
# Flag to hardcode \$libdir into a binary during linking.
17924
# This must work even if \$libdir does not exist.
17925
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17927
# If ld is used when linking, flag to hardcode \$libdir into
17928
# a binary during linking. This must work even if \$libdir does
17930
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17932
# Whether we need a single -rpath flag with a separated argument.
17933
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17935
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17936
# resulting binary.
17937
hardcode_direct=$hardcode_direct_GCJ
17939
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17940
# resulting binary.
17941
hardcode_minus_L=$hardcode_minus_L_GCJ
17943
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17944
# the resulting binary.
17945
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17947
# Set to yes if building a shared library automatically hardcodes DIR into the library
17948
# and all subsequent libraries and executables linked against it.
17949
hardcode_automatic=$hardcode_automatic_GCJ
17951
# Variables whose values should be saved in libtool wrapper scripts and
17952
# restored at relink time.
17953
variables_saved_for_relink="$variables_saved_for_relink"
17955
# Whether libtool must link a program against all its dependency libraries.
17956
link_all_deplibs=$link_all_deplibs_GCJ
17958
# Compile-time system search path for libraries
17959
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17961
# Run-time system search path for libraries
17962
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17964
# Fix the shell variable \$srcfile for the compiler.
17965
fix_srcfile_path="$fix_srcfile_path_GCJ"
17967
# Set to yes if exported symbols are required.
17968
always_export_symbols=$always_export_symbols_GCJ
17970
# The commands to list exported symbols.
17971
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17973
# The commands to extract the exported symbol list from a shared archive.
17974
extract_expsyms_cmds=$lt_extract_expsyms_cmds
17976
# Symbols that should not be listed in the preloaded symbols.
17977
exclude_expsyms=$lt_exclude_expsyms_GCJ
17979
# Symbols that must always be exported.
17980
include_expsyms=$lt_include_expsyms_GCJ
17982
# ### END LIBTOOL TAG CONFIG: $tagname
17988
# If there is no Makefile yet, we rely on a make rule to execute
17989
# `config.status --recheck' to rerun these tests and create the
17990
# libtool script then.
17991
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17992
if test -f "$ltmain_in"; then
17993
test -f Makefile && make "$ltmain"
17999
ac_cpp='$CPP $CPPFLAGS'
18000
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18001
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18002
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18015
# Source file extension for RC test sources.
18018
# Object file extension for compiled RC test sources.
18022
# Code to be used in simple compile tests
18023
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18025
# Code to be used in simple link tests
18026
lt_simple_link_test_code="$lt_simple_compile_test_code"
18028
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18030
# If no C compiler was specified, use CC.
18033
# If no C compiler flags were specified, use CFLAGS.
18034
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18036
# Allow CC to be a program name with arguments.
18040
# save warnings/boilerplate of simple test code
18041
ac_outfile=conftest.$ac_objext
18042
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18043
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18044
_lt_compiler_boilerplate=`cat conftest.err`
18047
ac_outfile=conftest.$ac_objext
18048
printf "$lt_simple_link_test_code" >conftest.$ac_ext
18049
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18050
_lt_linker_boilerplate=`cat conftest.err`
18054
# Allow CC to be a program name with arguments.
18059
for cc_temp in $compiler""; do
18061
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18062
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18067
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18069
lt_cv_prog_compiler_c_o_RC=yes
18071
# The else clause should only fire when bootstrapping the
18072
# libtool distribution, otherwise you forgot to ship ltmain.sh
18073
# with your package, and you will get complaints that there are
18074
# no rules to generate ltmain.sh.
18075
if test -f "$ltmain"; then
18076
# See if we are running on zsh, and set the options which allow our commands through
18077
# without removal of \ escapes.
18078
if test -n "${ZSH_VERSION+set}" ; then
18079
setopt NO_GLOB_SUBST
18081
# Now quote all the things that may contain metacharacters while being
18082
# careful not to overquote the AC_SUBSTed values. We take copies of the
18083
# variables and quote the copies for generation of the libtool script.
18084
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18086
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18087
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18088
deplibs_check_method reload_flag reload_cmds need_locks \
18089
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18090
lt_cv_sys_global_symbol_to_c_name_address \
18091
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18092
old_postinstall_cmds old_postuninstall_cmds \
18096
lt_prog_compiler_wl_RC \
18097
lt_prog_compiler_pic_RC \
18098
lt_prog_compiler_static_RC \
18099
lt_prog_compiler_no_builtin_flag_RC \
18100
export_dynamic_flag_spec_RC \
18101
thread_safe_flag_spec_RC \
18102
whole_archive_flag_spec_RC \
18103
enable_shared_with_static_runtimes_RC \
18104
old_archive_cmds_RC \
18105
old_archive_from_new_cmds_RC \
18106
predep_objects_RC \
18107
postdep_objects_RC \
18110
compiler_lib_search_path_RC \
18112
archive_expsym_cmds_RC \
18113
postinstall_cmds_RC \
18114
postuninstall_cmds_RC \
18115
old_archive_from_expsyms_cmds_RC \
18116
allow_undefined_flag_RC \
18117
no_undefined_flag_RC \
18118
export_symbols_cmds_RC \
18119
hardcode_libdir_flag_spec_RC \
18120
hardcode_libdir_flag_spec_ld_RC \
18121
hardcode_libdir_separator_RC \
18122
hardcode_automatic_RC \
18124
module_expsym_cmds_RC \
18125
lt_cv_prog_compiler_c_o_RC \
18126
exclude_expsyms_RC \
18127
include_expsyms_RC; do
18130
old_archive_cmds_RC | \
18131
old_archive_from_new_cmds_RC | \
18132
archive_cmds_RC | \
18133
archive_expsym_cmds_RC | \
18135
module_expsym_cmds_RC | \
18136
old_archive_from_expsyms_cmds_RC | \
18137
export_symbols_cmds_RC | \
18138
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18139
postinstall_cmds | postuninstall_cmds | \
18140
old_postinstall_cmds | old_postuninstall_cmds | \
18141
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18142
# Double-quote double-evaled strings.
18143
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18146
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18152
*'\$0 --fallback-echo"')
18153
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18159
cat <<__EOF__ >> "$cfgfile"
18160
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18162
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18164
# Shell to use when invoking shell scripts.
18167
# Whether or not to build shared libraries.
18168
build_libtool_libs=$enable_shared
18170
# Whether or not to build static libraries.
18171
build_old_libs=$enable_static
18173
# Whether or not to add -lc for building shared libraries.
18174
build_libtool_need_lc=$archive_cmds_need_lc_RC
18176
# Whether or not to disallow shared libs when runtime libs are static
18177
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18179
# Whether or not to optimize for fast installation.
18180
fast_install=$enable_fast_install
18183
host_alias=$host_alias
18187
# The build system.
18188
build_alias=$build_alias
18192
# An echo program that does not interpret backslashes.
18197
AR_FLAGS=$lt_AR_FLAGS
18202
# LTCC compiler flags.
18203
LTCFLAGS=$lt_LTCFLAGS
18205
# A language-specific compiler.
18208
# Is the compiler the GNU C compiler?
18214
# The linker used to build libraries.
18217
# Whether we need hard or soft links.
18220
# A BSD-compatible nm program.
18223
# A symbol stripping program
18226
# Used to examine libraries when file_magic_cmd begins "file"
18227
MAGIC_CMD=$MAGIC_CMD
18229
# Used on cygwin: DLL creation program.
18232
# Used on cygwin: object dumper.
18235
# Used on cygwin: assembler.
18238
# The name of the directory that contains temporary libtool files.
18241
# How to create reloadable object files.
18242
reload_flag=$lt_reload_flag
18243
reload_cmds=$lt_reload_cmds
18245
# How to pass a linker flag through the compiler.
18246
wl=$lt_lt_prog_compiler_wl_RC
18248
# Object file suffix (normally "o").
18249
objext="$ac_objext"
18251
# Old archive suffix (normally "a").
18254
# Shared library suffix (normally ".so").
18255
shrext_cmds='$shrext_cmds'
18257
# Executable file suffix (normally "").
18260
# Additional compiler flags for building library objects.
18261
pic_flag=$lt_lt_prog_compiler_pic_RC
18264
# What is the maximum length of a command?
18265
max_cmd_len=$lt_cv_sys_max_cmd_len
18267
# Does compiler simultaneously support -c and -o options?
18268
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18270
# Must we lock files when doing compilation?
18271
need_locks=$lt_need_locks
18273
# Do we need the lib prefix for modules?
18274
need_lib_prefix=$need_lib_prefix
18276
# Do we need a version for libraries?
18277
need_version=$need_version
18279
# Whether dlopen is supported.
18280
dlopen_support=$enable_dlopen
18282
# Whether dlopen of programs is supported.
18283
dlopen_self=$enable_dlopen_self
18285
# Whether dlopen of statically linked programs is supported.
18286
dlopen_self_static=$enable_dlopen_self_static
18288
# Compiler flag to prevent dynamic linking.
18289
link_static_flag=$lt_lt_prog_compiler_static_RC
18291
# Compiler flag to turn off builtin functions.
18292
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18294
# Compiler flag to allow reflexive dlopens.
18295
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18297
# Compiler flag to generate shared objects directly from archives.
18298
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18300
# Compiler flag to generate thread-safe objects.
18301
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18303
# Library versioning type.
18304
version_type=$version_type
18306
# Format of library name prefix.
18307
libname_spec=$lt_libname_spec
18309
# List of archive names. First name is the real one, the rest are links.
18310
# The last name is the one that the linker finds with -lNAME.
18311
library_names_spec=$lt_library_names_spec
18313
# The coded name of the library, if different from the real name.
18314
soname_spec=$lt_soname_spec
18316
# Commands used to build and install an old-style archive.
18318
old_archive_cmds=$lt_old_archive_cmds_RC
18319
old_postinstall_cmds=$lt_old_postinstall_cmds
18320
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18322
# Create an old-style archive from a shared archive.
18323
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18325
# Create a temporary old-style archive to link instead of a shared archive.
18326
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18328
# Commands used to build and install a shared archive.
18329
archive_cmds=$lt_archive_cmds_RC
18330
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18331
postinstall_cmds=$lt_postinstall_cmds
18332
postuninstall_cmds=$lt_postuninstall_cmds
18334
# Commands used to build a loadable module (assumed same as above if empty)
18335
module_cmds=$lt_module_cmds_RC
18336
module_expsym_cmds=$lt_module_expsym_cmds_RC
18338
# Commands to strip libraries.
18339
old_striplib=$lt_old_striplib
18340
striplib=$lt_striplib
18342
# Dependencies to place before the objects being linked to create a
18344
predep_objects=$lt_predep_objects_RC
18346
# Dependencies to place after the objects being linked to create a
18348
postdep_objects=$lt_postdep_objects_RC
18350
# Dependencies to place before the objects being linked to create a
18352
predeps=$lt_predeps_RC
18354
# Dependencies to place after the objects being linked to create a
18356
postdeps=$lt_postdeps_RC
18358
# The library search path used internally by the compiler when linking
18359
# a shared library.
18360
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18362
# Method to check whether dependent libraries are shared objects.
18363
deplibs_check_method=$lt_deplibs_check_method
18365
# Command to use when deplibs_check_method == file_magic.
18366
file_magic_cmd=$lt_file_magic_cmd
18368
# Flag that allows shared libraries with undefined symbols to be built.
18369
allow_undefined_flag=$lt_allow_undefined_flag_RC
18371
# Flag that forces no undefined symbols.
18372
no_undefined_flag=$lt_no_undefined_flag_RC
18374
# Commands used to finish a libtool library installation in a directory.
18375
finish_cmds=$lt_finish_cmds
18377
# Same as above, but a single script fragment to be evaled but not shown.
18378
finish_eval=$lt_finish_eval
18380
# Take the output of nm and produce a listing of raw symbols and C names.
18381
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18383
# Transform the output of nm in a proper C declaration
18384
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18386
# Transform the output of nm in a C name address pair
18387
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18389
# This is the shared library runtime path variable.
18390
runpath_var=$runpath_var
18392
# This is the shared library path variable.
18393
shlibpath_var=$shlibpath_var
18395
# Is shlibpath searched before the hard-coded library search path?
18396
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18398
# How to hardcode a shared library path into an executable.
18399
hardcode_action=$hardcode_action_RC
18401
# Whether we should hardcode library paths into libraries.
18402
hardcode_into_libs=$hardcode_into_libs
18404
# Flag to hardcode \$libdir into a binary during linking.
18405
# This must work even if \$libdir does not exist.
18406
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18408
# If ld is used when linking, flag to hardcode \$libdir into
18409
# a binary during linking. This must work even if \$libdir does
18411
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18413
# Whether we need a single -rpath flag with a separated argument.
18414
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18416
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18417
# resulting binary.
18418
hardcode_direct=$hardcode_direct_RC
18420
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18421
# resulting binary.
18422
hardcode_minus_L=$hardcode_minus_L_RC
18424
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18425
# the resulting binary.
18426
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18428
# Set to yes if building a shared library automatically hardcodes DIR into the library
18429
# and all subsequent libraries and executables linked against it.
18430
hardcode_automatic=$hardcode_automatic_RC
18432
# Variables whose values should be saved in libtool wrapper scripts and
18433
# restored at relink time.
18434
variables_saved_for_relink="$variables_saved_for_relink"
18436
# Whether libtool must link a program against all its dependency libraries.
18437
link_all_deplibs=$link_all_deplibs_RC
18439
# Compile-time system search path for libraries
18440
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18442
# Run-time system search path for libraries
18443
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18445
# Fix the shell variable \$srcfile for the compiler.
18446
fix_srcfile_path="$fix_srcfile_path_RC"
18448
# Set to yes if exported symbols are required.
18449
always_export_symbols=$always_export_symbols_RC
18451
# The commands to list exported symbols.
18452
export_symbols_cmds=$lt_export_symbols_cmds_RC
18454
# The commands to extract the exported symbol list from a shared archive.
18455
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18457
# Symbols that should not be listed in the preloaded symbols.
18458
exclude_expsyms=$lt_exclude_expsyms_RC
18460
# Symbols that must always be exported.
18461
include_expsyms=$lt_include_expsyms_RC
18463
# ### END LIBTOOL TAG CONFIG: $tagname
18469
# If there is no Makefile yet, we rely on a make rule to execute
18470
# `config.status --recheck' to rerun these tests and create the
18471
# libtool script then.
18472
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18473
if test -f "$ltmain_in"; then
18474
test -f Makefile && make "$ltmain"
18480
ac_cpp='$CPP $CPPFLAGS'
18481
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18482
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18483
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18490
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18491
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18492
{ (exit 1); exit 1; }; }
18496
# Append the new tag name to the list of available tags.
18497
if test -n "$tagname" ; then
18498
available_tags="$available_tags $tagname"
18504
# Now substitute the updated list of available tags.
18505
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18506
mv "${ofile}T" "$ofile"
18510
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18511
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18512
{ (exit 1); exit 1; }; }
1514
18518
# This can be used to rebuild libtool when needed
1515
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
18519
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1517
18521
# Always use our own libtool.
1518
18522
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1520
# Redirect the config.log output again, so that the ltconfig log is not
1521
# clobbered by the next message.
1522
exec 5>>./config.log
18524
# Prevent multiple expansion
1524
18545
# Find a good install program. We prefer a C program (faster),
1525
18546
# so one script is as good as another. But avoid the broken or