4880
# Check whether --enable-libtool-lock was given.
4881
if test "${enable_libtool_lock+set}" = set; then
4882
enableval=$enable_libtool_lock;
4885
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4887
# Some flags need to be propagated to the compiler or linker for good
4891
# Find out which ABI we are using.
4892
echo 'int i;' > conftest.$ac_ext
4893
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4894
(eval $ac_compile) 2>&5
4896
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897
(exit $ac_status); }; then
4898
case `/usr/bin/file conftest.$ac_objext` in
4910
# Find out which ABI we are using.
4911
echo '#line 4911 "configure"' > conftest.$ac_ext
4912
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4913
(eval $ac_compile) 2>&5
4915
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916
(exit $ac_status); }; then
4917
if test "$lt_cv_prog_gnu_ld" = yes; then
4918
case `/usr/bin/file conftest.$ac_objext` in
4920
LD="${LD-ld} -melf32bsmip"
4923
LD="${LD-ld} -melf32bmipn32"
4926
LD="${LD-ld} -melf64bmip"
4930
case `/usr/bin/file conftest.$ac_objext` in
4946
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4947
s390*-*linux*|sparc*-*linux*)
4948
# Find out which ABI we are using.
4949
echo 'int i;' > conftest.$ac_ext
4950
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4951
(eval $ac_compile) 2>&5
4953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954
(exit $ac_status); }; then
4955
case `/usr/bin/file conftest.o` in
4958
x86_64-*kfreebsd*-gnu)
4959
LD="${LD-ld} -m elf_i386_fbsd"
4962
LD="${LD-ld} -m elf_i386"
4964
ppc64-*linux*|powerpc64-*linux*)
4965
LD="${LD-ld} -m elf32ppclinux"
4968
LD="${LD-ld} -m elf_s390"
4971
LD="${LD-ld} -m elf32_sparc"
4977
x86_64-*kfreebsd*-gnu)
4978
LD="${LD-ld} -m elf_x86_64_fbsd"
4981
LD="${LD-ld} -m elf_x86_64"
4983
ppc*-*linux*|powerpc*-*linux*)
4984
LD="${LD-ld} -m elf64ppc"
4987
LD="${LD-ld} -m elf64_s390"
4990
LD="${LD-ld} -m elf64_sparc"
5000
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
5001
SAVE_CFLAGS="$CFLAGS"
5002
CFLAGS="$CFLAGS -belf"
5003
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5004
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5005
if test "${lt_cv_cc_needs_belf+set}" = set; then
5006
echo $ECHO_N "(cached) $ECHO_C" >&6
5009
ac_cpp='$CPP $CPPFLAGS'
5010
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5014
cat >conftest.$ac_ext <<_ACEOF
5017
cat confdefs.h >>conftest.$ac_ext
5018
cat >>conftest.$ac_ext <<_ACEOF
5019
/* end confdefs.h. */
5029
rm -f conftest.$ac_objext conftest$ac_exeext
5030
if { (ac_try="$ac_link"
5032
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5033
*) ac_try_echo=$ac_try;;
5035
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5036
(eval "$ac_link") 2>conftest.er1
5038
grep -v '^ *+' conftest.er1 >conftest.err
5040
cat conftest.err >&5
5041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042
(exit $ac_status); } && {
5043
test -z "$ac_c_werror_flag" ||
5044
test ! -s conftest.err
5045
} && test -s conftest$ac_exeext &&
5046
$as_test_x conftest$ac_exeext; then
5047
lt_cv_cc_needs_belf=yes
5049
echo "$as_me: failed program was:" >&5
5050
sed 's/^/| /' conftest.$ac_ext >&5
5052
lt_cv_cc_needs_belf=no
5055
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5056
conftest$ac_exeext conftest.$ac_ext
5058
ac_cpp='$CPP $CPPFLAGS'
5059
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5060
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5064
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5065
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5066
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5067
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5068
CFLAGS="$SAVE_CFLAGS"
5072
# Find out which ABI we are using.
5073
echo 'int i;' > conftest.$ac_ext
5074
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5075
(eval $ac_compile) 2>&5
5077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078
(exit $ac_status); }; then
5079
case `/usr/bin/file conftest.o` in
5081
case $lt_cv_prog_gnu_ld in
5082
yes*) LD="${LD-ld} -m elf64_sparc" ;;
5084
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5098
need_locks="$enable_libtool_lock"
5102
ac_cpp='$CPP $CPPFLAGS'
5103
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5106
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5107
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5108
# On Suns, sometimes $CPP names a directory.
5109
if test -n "$CPP" && test -d "$CPP"; then
5112
if test -z "$CPP"; then
5113
if test "${ac_cv_prog_CPP+set}" = set; then
5114
echo $ECHO_N "(cached) $ECHO_C" >&6
5116
# Double quotes because CPP needs to be expanded
5117
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5120
for ac_c_preproc_warn_flag in '' yes
5122
# Use a header file that comes with gcc, so configuring glibc
5123
# with a fresh cross-compiler works.
5124
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5125
# <limits.h> exists even on freestanding compilers.
5126
# On the NeXT, cc -E runs the code through the compiler's parser,
5127
# not just through cpp. "Syntax error" is here to catch this case.
5128
cat >conftest.$ac_ext <<_ACEOF
5131
cat confdefs.h >>conftest.$ac_ext
5132
cat >>conftest.$ac_ext <<_ACEOF
5133
/* end confdefs.h. */
5135
# include <limits.h>
5137
# include <assert.h>
5141
if { (ac_try="$ac_cpp conftest.$ac_ext"
5143
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5144
*) ac_try_echo=$ac_try;;
5146
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5147
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5149
grep -v '^ *+' conftest.er1 >conftest.err
5151
cat conftest.err >&5
5152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153
(exit $ac_status); } >/dev/null && {
5154
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5155
test ! -s conftest.err
5159
echo "$as_me: failed program was:" >&5
5160
sed 's/^/| /' conftest.$ac_ext >&5
5162
# Broken: fails on valid input.
5166
rm -f conftest.err conftest.$ac_ext
5168
# OK, works on sane cases. Now check whether nonexistent headers
5169
# can be detected and how.
5170
cat >conftest.$ac_ext <<_ACEOF
5173
cat confdefs.h >>conftest.$ac_ext
5174
cat >>conftest.$ac_ext <<_ACEOF
5175
/* end confdefs.h. */
5176
#include <ac_nonexistent.h>
5178
if { (ac_try="$ac_cpp conftest.$ac_ext"
5180
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181
*) ac_try_echo=$ac_try;;
5183
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5184
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5186
grep -v '^ *+' conftest.er1 >conftest.err
5188
cat conftest.err >&5
5189
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190
(exit $ac_status); } >/dev/null && {
5191
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5192
test ! -s conftest.err
5194
# Broken: success on invalid input.
5197
echo "$as_me: failed program was:" >&5
5198
sed 's/^/| /' conftest.$ac_ext >&5
5200
# Passes both tests.
5205
rm -f conftest.err conftest.$ac_ext
5208
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5209
rm -f conftest.err conftest.$ac_ext
5210
if $ac_preproc_ok; then
5222
{ echo "$as_me:$LINENO: result: $CPP" >&5
5223
echo "${ECHO_T}$CPP" >&6; }
5225
for ac_c_preproc_warn_flag in '' yes
5227
# Use a header file that comes with gcc, so configuring glibc
5228
# with a fresh cross-compiler works.
5229
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5230
# <limits.h> exists even on freestanding compilers.
5231
# On the NeXT, cc -E runs the code through the compiler's parser,
5232
# not just through cpp. "Syntax error" is here to catch this case.
5233
cat >conftest.$ac_ext <<_ACEOF
5236
cat confdefs.h >>conftest.$ac_ext
5237
cat >>conftest.$ac_ext <<_ACEOF
5238
/* end confdefs.h. */
5240
# include <limits.h>
5242
# include <assert.h>
5246
if { (ac_try="$ac_cpp conftest.$ac_ext"
5248
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249
*) ac_try_echo=$ac_try;;
5251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5252
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5254
grep -v '^ *+' conftest.er1 >conftest.err
5256
cat conftest.err >&5
5257
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258
(exit $ac_status); } >/dev/null && {
5259
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5260
test ! -s conftest.err
5264
echo "$as_me: failed program was:" >&5
5265
sed 's/^/| /' conftest.$ac_ext >&5
5267
# Broken: fails on valid input.
5271
rm -f conftest.err conftest.$ac_ext
5273
# OK, works on sane cases. Now check whether nonexistent headers
5274
# can be detected and how.
5275
cat >conftest.$ac_ext <<_ACEOF
5278
cat confdefs.h >>conftest.$ac_ext
5279
cat >>conftest.$ac_ext <<_ACEOF
5280
/* end confdefs.h. */
5281
#include <ac_nonexistent.h>
5283
if { (ac_try="$ac_cpp conftest.$ac_ext"
5285
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286
*) ac_try_echo=$ac_try;;
5288
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5291
grep -v '^ *+' conftest.er1 >conftest.err
5293
cat conftest.err >&5
5294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295
(exit $ac_status); } >/dev/null && {
5296
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5297
test ! -s conftest.err
5299
# Broken: success on invalid input.
5302
echo "$as_me: failed program was:" >&5
5303
sed 's/^/| /' conftest.$ac_ext >&5
5305
# Passes both tests.
5310
rm -f conftest.err conftest.$ac_ext
5313
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5314
rm -f conftest.err conftest.$ac_ext
5315
if $ac_preproc_ok; then
5318
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5319
See \`config.log' for more details." >&5
5320
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5321
See \`config.log' for more details." >&2;}
5322
{ (exit 1); exit 1; }; }
5326
ac_cpp='$CPP $CPPFLAGS'
5327
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5328
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5329
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5332
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5333
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5334
if test "${ac_cv_header_stdc+set}" = set; then
5335
echo $ECHO_N "(cached) $ECHO_C" >&6
5337
cat >conftest.$ac_ext <<_ACEOF
5340
cat confdefs.h >>conftest.$ac_ext
5341
cat >>conftest.$ac_ext <<_ACEOF
5342
/* end confdefs.h. */
5356
rm -f conftest.$ac_objext
5357
if { (ac_try="$ac_compile"
5359
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360
*) ac_try_echo=$ac_try;;
5362
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363
(eval "$ac_compile") 2>conftest.er1
5365
grep -v '^ *+' conftest.er1 >conftest.err
5367
cat conftest.err >&5
5368
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369
(exit $ac_status); } && {
5370
test -z "$ac_c_werror_flag" ||
5371
test ! -s conftest.err
5372
} && test -s conftest.$ac_objext; then
5373
ac_cv_header_stdc=yes
5375
echo "$as_me: failed program was:" >&5
5376
sed 's/^/| /' conftest.$ac_ext >&5
5378
ac_cv_header_stdc=no
5381
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383
if test $ac_cv_header_stdc = yes; then
5384
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5385
cat >conftest.$ac_ext <<_ACEOF
5388
cat confdefs.h >>conftest.$ac_ext
5389
cat >>conftest.$ac_ext <<_ACEOF
5390
/* end confdefs.h. */
5394
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5395
$EGREP "memchr" >/dev/null 2>&1; then
5398
ac_cv_header_stdc=no
5404
if test $ac_cv_header_stdc = yes; then
5405
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5406
cat >conftest.$ac_ext <<_ACEOF
5409
cat confdefs.h >>conftest.$ac_ext
5410
cat >>conftest.$ac_ext <<_ACEOF
5411
/* end confdefs.h. */
5415
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5416
$EGREP "free" >/dev/null 2>&1; then
5419
ac_cv_header_stdc=no
5425
if test $ac_cv_header_stdc = yes; then
5426
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5427
if test "$cross_compiling" = yes; then
5430
cat >conftest.$ac_ext <<_ACEOF
5433
cat confdefs.h >>conftest.$ac_ext
5434
cat >>conftest.$ac_ext <<_ACEOF
5435
/* end confdefs.h. */
5438
#if ((' ' & 0x0FF) == 0x020)
5439
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5440
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5442
# define ISLOWER(c) \
5443
(('a' <= (c) && (c) <= 'i') \
5444
|| ('j' <= (c) && (c) <= 'r') \
5445
|| ('s' <= (c) && (c) <= 'z'))
5446
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5449
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5454
for (i = 0; i < 256; i++)
5455
if (XOR (islower (i), ISLOWER (i))
5456
|| toupper (i) != TOUPPER (i))
5461
rm -f conftest$ac_exeext
5462
if { (ac_try="$ac_link"
5464
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465
*) ac_try_echo=$ac_try;;
5467
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468
(eval "$ac_link") 2>&5
5470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5472
{ (case "(($ac_try" in
5473
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474
*) ac_try_echo=$ac_try;;
5476
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477
(eval "$ac_try") 2>&5
5479
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480
(exit $ac_status); }; }; then
5483
echo "$as_me: program exited with status $ac_status" >&5
5484
echo "$as_me: failed program was:" >&5
5485
sed 's/^/| /' conftest.$ac_ext >&5
5488
ac_cv_header_stdc=no
5490
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5496
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5497
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5498
if test $ac_cv_header_stdc = yes; then
5500
cat >>confdefs.h <<\_ACEOF
5501
#define STDC_HEADERS 1
5506
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5516
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5517
inttypes.h stdint.h unistd.h
5519
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5520
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5521
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5522
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5523
echo $ECHO_N "(cached) $ECHO_C" >&6
5525
cat >conftest.$ac_ext <<_ACEOF
5528
cat confdefs.h >>conftest.$ac_ext
5529
cat >>conftest.$ac_ext <<_ACEOF
5530
/* end confdefs.h. */
5531
$ac_includes_default
5533
#include <$ac_header>
5535
rm -f conftest.$ac_objext
5536
if { (ac_try="$ac_compile"
5538
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539
*) ac_try_echo=$ac_try;;
5541
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542
(eval "$ac_compile") 2>conftest.er1
5544
grep -v '^ *+' conftest.er1 >conftest.err
5546
cat conftest.err >&5
5547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548
(exit $ac_status); } && {
5549
test -z "$ac_c_werror_flag" ||
5550
test ! -s conftest.err
5551
} && test -s conftest.$ac_objext; then
5552
eval "$as_ac_Header=yes"
5554
echo "$as_me: failed program was:" >&5
5555
sed 's/^/| /' conftest.$ac_ext >&5
5557
eval "$as_ac_Header=no"
5560
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562
ac_res=`eval echo '${'$as_ac_Header'}'`
5563
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5564
echo "${ECHO_T}$ac_res" >&6; }
5565
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5566
cat >>confdefs.h <<_ACEOF
5567
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5576
for ac_header in dlfcn.h
5578
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5579
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5580
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5581
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5582
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5583
echo $ECHO_N "(cached) $ECHO_C" >&6
5585
ac_res=`eval echo '${'$as_ac_Header'}'`
5586
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5587
echo "${ECHO_T}$ac_res" >&6; }
5589
# Is the header compilable?
5590
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5591
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5592
cat >conftest.$ac_ext <<_ACEOF
5595
cat confdefs.h >>conftest.$ac_ext
5596
cat >>conftest.$ac_ext <<_ACEOF
5597
/* end confdefs.h. */
5598
$ac_includes_default
5599
#include <$ac_header>
5601
rm -f conftest.$ac_objext
5602
if { (ac_try="$ac_compile"
5604
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605
*) ac_try_echo=$ac_try;;
5607
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608
(eval "$ac_compile") 2>conftest.er1
5610
grep -v '^ *+' conftest.er1 >conftest.err
5612
cat conftest.err >&5
5613
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614
(exit $ac_status); } && {
5615
test -z "$ac_c_werror_flag" ||
5616
test ! -s conftest.err
5617
} && test -s conftest.$ac_objext; then
5618
ac_header_compiler=yes
5620
echo "$as_me: failed program was:" >&5
5621
sed 's/^/| /' conftest.$ac_ext >&5
5623
ac_header_compiler=no
5626
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5627
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5628
echo "${ECHO_T}$ac_header_compiler" >&6; }
5630
# Is the header present?
5631
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5632
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5633
cat >conftest.$ac_ext <<_ACEOF
5636
cat confdefs.h >>conftest.$ac_ext
5637
cat >>conftest.$ac_ext <<_ACEOF
5638
/* end confdefs.h. */
5639
#include <$ac_header>
5641
if { (ac_try="$ac_cpp conftest.$ac_ext"
5643
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644
*) ac_try_echo=$ac_try;;
5646
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5647
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5649
grep -v '^ *+' conftest.er1 >conftest.err
5651
cat conftest.err >&5
5652
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653
(exit $ac_status); } >/dev/null && {
5654
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5655
test ! -s conftest.err
5657
ac_header_preproc=yes
5659
echo "$as_me: failed program was:" >&5
5660
sed 's/^/| /' conftest.$ac_ext >&5
5662
ac_header_preproc=no
5665
rm -f conftest.err conftest.$ac_ext
5666
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5667
echo "${ECHO_T}$ac_header_preproc" >&6; }
5669
# So? What about this header?
5670
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5672
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5673
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5674
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5675
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5676
ac_header_preproc=yes
5679
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5680
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5681
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5682
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5683
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5684
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5685
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5686
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5687
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5688
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5689
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5690
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5692
## -------------------------------------------------- ##
5693
## Report this to Jeroen T. Vermeulen <jtv@xs4all.nl> ##
5694
## -------------------------------------------------- ##
5696
) | sed "s/^/$as_me: WARNING: /" >&2
5699
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5700
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5701
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5702
echo $ECHO_N "(cached) $ECHO_C" >&6
5704
eval "$as_ac_Header=\$ac_header_preproc"
5706
ac_res=`eval echo '${'$as_ac_Header'}'`
5707
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5708
echo "${ECHO_T}$ac_res" >&6; }
5711
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5712
cat >>confdefs.h <<_ACEOF
5713
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5722
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5723
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5724
(test "X$CXX" != "Xg++"))) ; then
5726
ac_cpp='$CXXCPP $CPPFLAGS'
5727
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5728
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5729
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5730
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5731
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5732
if test -z "$CXXCPP"; then
5733
if test "${ac_cv_prog_CXXCPP+set}" = set; then
5734
echo $ECHO_N "(cached) $ECHO_C" >&6
5736
# Double quotes because CXXCPP needs to be expanded
5737
for CXXCPP in "$CXX -E" "/lib/cpp"
5740
for ac_cxx_preproc_warn_flag in '' yes
5742
# Use a header file that comes with gcc, so configuring glibc
5743
# with a fresh cross-compiler works.
5744
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5745
# <limits.h> exists even on freestanding compilers.
5746
# On the NeXT, cc -E runs the code through the compiler's parser,
5747
# not just through cpp. "Syntax error" is here to catch this case.
5748
cat >conftest.$ac_ext <<_ACEOF
5751
cat confdefs.h >>conftest.$ac_ext
5752
cat >>conftest.$ac_ext <<_ACEOF
5753
/* end confdefs.h. */
5755
# include <limits.h>
5757
# include <assert.h>
5761
if { (ac_try="$ac_cpp conftest.$ac_ext"
5763
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5764
*) ac_try_echo=$ac_try;;
5766
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5767
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5769
grep -v '^ *+' conftest.er1 >conftest.err
5771
cat conftest.err >&5
5772
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773
(exit $ac_status); } >/dev/null && {
5774
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5775
test ! -s conftest.err
5779
echo "$as_me: failed program was:" >&5
5780
sed 's/^/| /' conftest.$ac_ext >&5
5782
# Broken: fails on valid input.
5786
rm -f conftest.err conftest.$ac_ext
5788
# OK, works on sane cases. Now check whether nonexistent headers
5789
# can be detected and how.
5790
cat >conftest.$ac_ext <<_ACEOF
5793
cat confdefs.h >>conftest.$ac_ext
5794
cat >>conftest.$ac_ext <<_ACEOF
5795
/* end confdefs.h. */
5796
#include <ac_nonexistent.h>
5798
if { (ac_try="$ac_cpp conftest.$ac_ext"
5800
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801
*) ac_try_echo=$ac_try;;
5803
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5806
grep -v '^ *+' conftest.er1 >conftest.err
5808
cat conftest.err >&5
5809
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810
(exit $ac_status); } >/dev/null && {
5811
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5812
test ! -s conftest.err
5814
# Broken: success on invalid input.
5817
echo "$as_me: failed program was:" >&5
5818
sed 's/^/| /' conftest.$ac_ext >&5
5820
# Passes both tests.
5825
rm -f conftest.err conftest.$ac_ext
5828
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5829
rm -f conftest.err conftest.$ac_ext
5830
if $ac_preproc_ok; then
5835
ac_cv_prog_CXXCPP=$CXXCPP
5838
CXXCPP=$ac_cv_prog_CXXCPP
5840
ac_cv_prog_CXXCPP=$CXXCPP
5842
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5843
echo "${ECHO_T}$CXXCPP" >&6; }
5845
for ac_cxx_preproc_warn_flag in '' yes
5847
# Use a header file that comes with gcc, so configuring glibc
5848
# with a fresh cross-compiler works.
5849
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5850
# <limits.h> exists even on freestanding compilers.
5851
# On the NeXT, cc -E runs the code through the compiler's parser,
5852
# not just through cpp. "Syntax error" is here to catch this case.
5853
cat >conftest.$ac_ext <<_ACEOF
5856
cat confdefs.h >>conftest.$ac_ext
5857
cat >>conftest.$ac_ext <<_ACEOF
5858
/* end confdefs.h. */
5860
# include <limits.h>
5862
# include <assert.h>
5866
if { (ac_try="$ac_cpp conftest.$ac_ext"
5868
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869
*) ac_try_echo=$ac_try;;
5871
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5874
grep -v '^ *+' conftest.er1 >conftest.err
5876
cat conftest.err >&5
5877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878
(exit $ac_status); } >/dev/null && {
5879
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5880
test ! -s conftest.err
5884
echo "$as_me: failed program was:" >&5
5885
sed 's/^/| /' conftest.$ac_ext >&5
5887
# Broken: fails on valid input.
5891
rm -f conftest.err conftest.$ac_ext
5893
# OK, works on sane cases. Now check whether nonexistent headers
5894
# can be detected and how.
5895
cat >conftest.$ac_ext <<_ACEOF
5898
cat confdefs.h >>conftest.$ac_ext
5899
cat >>conftest.$ac_ext <<_ACEOF
5900
/* end confdefs.h. */
5901
#include <ac_nonexistent.h>
5903
if { (ac_try="$ac_cpp conftest.$ac_ext"
5905
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906
*) ac_try_echo=$ac_try;;
5908
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5911
grep -v '^ *+' conftest.er1 >conftest.err
5913
cat conftest.err >&5
5914
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915
(exit $ac_status); } >/dev/null && {
5916
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5917
test ! -s conftest.err
5919
# Broken: success on invalid input.
5922
echo "$as_me: failed program was:" >&5
5923
sed 's/^/| /' conftest.$ac_ext >&5
5925
# Passes both tests.
5930
rm -f conftest.err conftest.$ac_ext
5933
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5934
rm -f conftest.err conftest.$ac_ext
5935
if $ac_preproc_ok; then
5938
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5939
See \`config.log' for more details." >&5
5940
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5941
See \`config.log' for more details." >&2;}
5942
{ (exit 1); exit 1; }; }
5946
ac_cpp='$CXXCPP $CPPFLAGS'
5947
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5948
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5949
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5954
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5955
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5956
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5957
if test -n "$ac_tool_prefix"; then
5958
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5960
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5961
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5962
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5963
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5964
if test "${ac_cv_prog_F77+set}" = set; then
5965
echo $ECHO_N "(cached) $ECHO_C" >&6
5967
if test -n "$F77"; then
5968
ac_cv_prog_F77="$F77" # Let the user override the test.
5970
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5974
test -z "$as_dir" && as_dir=.
5975
for ac_exec_ext in '' $ac_executable_extensions; do
5976
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5977
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5978
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5988
if test -n "$F77"; then
5989
{ echo "$as_me:$LINENO: result: $F77" >&5
5990
echo "${ECHO_T}$F77" >&6; }
5992
{ echo "$as_me:$LINENO: result: no" >&5
5993
echo "${ECHO_T}no" >&6; }
5997
test -n "$F77" && break
6000
if test -z "$F77"; then
6002
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6004
# Extract the first word of "$ac_prog", so it can be a program name with args.
6005
set dummy $ac_prog; ac_word=$2
6006
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6007
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6008
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6009
echo $ECHO_N "(cached) $ECHO_C" >&6
6011
if test -n "$ac_ct_F77"; then
6012
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6014
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018
test -z "$as_dir" && as_dir=.
6019
for ac_exec_ext in '' $ac_executable_extensions; do
6020
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6021
ac_cv_prog_ac_ct_F77="$ac_prog"
6022
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6031
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6032
if test -n "$ac_ct_F77"; then
6033
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6034
echo "${ECHO_T}$ac_ct_F77" >&6; }
6036
{ echo "$as_me:$LINENO: result: no" >&5
6037
echo "${ECHO_T}no" >&6; }
6041
test -n "$ac_ct_F77" && break
6044
if test "x$ac_ct_F77" = x; then
6047
case $cross_compiling:$ac_tool_warned in
6049
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6050
whose name does not start with the host triplet. If you think this
6051
configuration is useful to you, please write to autoconf@gnu.org." >&5
6052
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6053
whose name does not start with the host triplet. If you think this
6054
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6055
ac_tool_warned=yes ;;
6062
# Provide some information about the compiler.
6063
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6064
ac_compiler=`set X $ac_compile; echo $2`
6065
{ (ac_try="$ac_compiler --version >&5"
6067
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6068
*) ac_try_echo=$ac_try;;
6070
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6071
(eval "$ac_compiler --version >&5") 2>&5
6073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074
(exit $ac_status); }
6075
{ (ac_try="$ac_compiler -v >&5"
6077
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078
*) ac_try_echo=$ac_try;;
6080
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081
(eval "$ac_compiler -v >&5") 2>&5
6083
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084
(exit $ac_status); }
6085
{ (ac_try="$ac_compiler -V >&5"
6087
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088
*) ac_try_echo=$ac_try;;
6090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6091
(eval "$ac_compiler -V >&5") 2>&5
6093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094
(exit $ac_status); }
6097
# If we don't use `.F' as extension, the preprocessor is not run on the
6098
# input file. (Note that this only needs to work for GNU compilers.)
6101
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6102
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6103
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6104
echo $ECHO_N "(cached) $ECHO_C" >&6
6106
cat >conftest.$ac_ext <<_ACEOF
6114
rm -f conftest.$ac_objext
6115
if { (ac_try="$ac_compile"
6117
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118
*) ac_try_echo=$ac_try;;
6120
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121
(eval "$ac_compile") 2>conftest.er1
6123
grep -v '^ *+' conftest.er1 >conftest.err
6125
cat conftest.err >&5
6126
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127
(exit $ac_status); } && {
6128
test -z "$ac_f77_werror_flag" ||
6129
test ! -s conftest.err
6130
} && test -s conftest.$ac_objext; then
6133
echo "$as_me: failed program was:" >&5
6134
sed 's/^/| /' conftest.$ac_ext >&5
6139
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6140
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6143
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6144
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6146
ac_test_FFLAGS=${FFLAGS+set}
6147
ac_save_FFLAGS=$FFLAGS
6149
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6150
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6151
if test "${ac_cv_prog_f77_g+set}" = set; then
6152
echo $ECHO_N "(cached) $ECHO_C" >&6
6155
cat >conftest.$ac_ext <<_ACEOF
6160
rm -f conftest.$ac_objext
6161
if { (ac_try="$ac_compile"
6163
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164
*) ac_try_echo=$ac_try;;
6166
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167
(eval "$ac_compile") 2>conftest.er1
6169
grep -v '^ *+' conftest.er1 >conftest.err
6171
cat conftest.err >&5
6172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173
(exit $ac_status); } && {
6174
test -z "$ac_f77_werror_flag" ||
6175
test ! -s conftest.err
6176
} && test -s conftest.$ac_objext; then
6177
ac_cv_prog_f77_g=yes
6179
echo "$as_me: failed program was:" >&5
6180
sed 's/^/| /' conftest.$ac_ext >&5
6185
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6188
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6189
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6190
if test "$ac_test_FFLAGS" = set; then
6191
FFLAGS=$ac_save_FFLAGS
6192
elif test $ac_cv_prog_f77_g = yes; then
6193
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6199
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6206
G77=`test $ac_compiler_gnu = yes && echo yes`
6208
ac_cpp='$CXXCPP $CPPFLAGS'
6209
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6210
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6211
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6215
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6216
# find the maximum length of command line arguments
6217
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6218
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6219
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6220
echo $ECHO_N "(cached) $ECHO_C" >&6
6227
# On DJGPP, this test can blow up pretty badly due to problems in libc
6228
# (any single argument exceeding 2000 bytes causes a buffer overrun
6229
# during glob expansion). Even if it were fixed, the result of this
6230
# check would be larger than it should be.
6231
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6235
# Under GNU Hurd, this test is not required because there is
6236
# no limit to the length of command line arguments.
6237
# Libtool will interpret -1 as no limit whatsoever
6238
lt_cv_sys_max_cmd_len=-1;
6242
# On Win9x/ME, this test blows up -- it succeeds, but takes
6243
# about 5 minutes as the teststring grows exponentially.
6244
# Worse, since 9x/ME are not pre-emptively multitasking,
6245
# you end up with a "frozen" computer, even though with patience
6246
# the test eventually succeeds (with a max line length of 256k).
6247
# Instead, let's just punt: use the minimum linelength reported by
6248
# all of the supported platforms: 8192 (on NT/2K/XP).
6249
lt_cv_sys_max_cmd_len=8192;
6253
# On AmigaOS with pdksh, this test takes hours, literally.
6254
# So we just punt and use a minimum line length of 8192.
6255
lt_cv_sys_max_cmd_len=8192;
6258
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6259
# This has been around since 386BSD, at least. Likely further.
6260
if test -x /sbin/sysctl; then
6261
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6262
elif test -x /usr/sbin/sysctl; then
6263
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6265
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6267
# And add a safety zone
6268
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6269
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6273
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6274
lt_cv_sys_max_cmd_len=196608
6278
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6279
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6280
# nice to cause kernel panics so lets avoid the loop below.
6281
# First set a reasonable default.
6282
lt_cv_sys_max_cmd_len=16384
6284
if test -x /sbin/sysconfig; then
6285
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6286
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6291
lt_cv_sys_max_cmd_len=102400
6293
sysv5* | sco5v6* | sysv4.2uw2*)
6294
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6295
if test -n "$kargmax"; then
6296
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6298
lt_cv_sys_max_cmd_len=32768
6302
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6303
if test -n "$lt_cv_sys_max_cmd_len"; then
6304
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6305
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6307
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6308
while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6309
= "XX$teststring") >/dev/null 2>&1 &&
6310
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6311
lt_cv_sys_max_cmd_len=$new_result &&
6312
test $i != 17 # 1/2 MB should be enough
6315
teststring=$teststring$teststring
6318
# Add a significant safety factor because C++ compilers can tack on massive
6319
# amounts of additional arguments before passing them to the linker.
6320
# It appears as though 1/2 is a usable value.
6321
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6328
if test -n $lt_cv_sys_max_cmd_len ; then
6329
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6330
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6332
{ echo "$as_me:$LINENO: result: none" >&5
6333
echo "${ECHO_T}none" >&6; }
6340
5915
# Check for command to grab the raw symbol name followed by C symbol from nm.
6341
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6342
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5916
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5917
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6343
5918
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6344
echo $ECHO_N "(cached) $ECHO_C" >&6
5919
$as_echo_n "(cached) " >&6
6347
5922
# These are sane defaults that work on at least a few old systems.
11284
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11285
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
12583
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12584
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
11286
12585
with_gnu_ld=$lt_cv_prog_gnu_ld
11290
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11291
# archiving commands below assume that GNU ld is being used.
11292
if test "$with_gnu_ld" = yes; then
11293
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11294
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'
11296
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11297
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11299
# If archive_cmds runs LD, not CC, wlarc should be empty
11300
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11301
# investigate it a little bit more. (MM)
11304
# ancient GNU ld didn't support --whole-archive et. al.
11305
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11306
grep 'no-whole-archive' > /dev/null; then
11307
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11309
whole_archive_flag_spec_CXX=
11315
# A generic and very simple default shared library creation
11316
# command for GNU C++ for the case where it uses the native
11317
# linker, instead of GNU ld. If possible, this setting should
11318
# overridden to take advantage of the native linker features on
11319
# the platform it is being used on.
11320
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11323
# Commands to make compiler produce verbose output that lists
11324
# what "hidden" libraries, object files and flags are used when
11325
# linking a shared library.
11326
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11334
# PORTME: fill in a description of your system's C++ link characteristics
11335
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11336
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11340
# FIXME: insert proper C++ library support
11344
if test "$host_cpu" = ia64; then
11345
# On IA64, the linker does run time linking by default, so we don't
11346
# have to do anything special.
11347
aix_use_runtimelinking=no
11348
exp_sym_flag='-Bexport'
11351
aix_use_runtimelinking=no
11353
# Test if we are trying to use run time linking or normal
11354
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11355
# need to do runtime linking.
11356
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11357
for ld_flag in $LDFLAGS; do
11360
aix_use_runtimelinking=yes
11368
exp_sym_flag='-bexport'
11369
no_entry_flag='-bnoentry'
11372
# When large executables or shared objects are built, AIX ld can
11373
# have problems creating the table of contents. If linking a library
11374
# or program results in "error TOC overflow" add -mminimal-toc to
11375
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11376
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11378
archive_cmds_CXX=''
11379
hardcode_direct_CXX=yes
11380
hardcode_libdir_separator_CXX=':'
11381
link_all_deplibs_CXX=yes
11383
if test "$GXX" = yes; then
11384
case $host_os in aix4.[012]|aix4.[012].*)
11385
# We only want to do this on AIX 4.2 and lower, the check
11386
# below for broken collect2 doesn't work under 4.3+
11387
collect2name=`${CC} -print-prog-name=collect2`
11388
if test -f "$collect2name" && \
11389
strings "$collect2name" | grep resolve_lib_name >/dev/null
11391
# We have reworked collect2
11394
# We have old collect2
11395
hardcode_direct_CXX=unsupported
11396
# It fails to find uninstalled libraries when the uninstalled
11397
# path is not listed in the libpath. Setting hardcode_minus_L
11398
# to unsupported forces relinking
11399
hardcode_minus_L_CXX=yes
11400
hardcode_libdir_flag_spec_CXX='-L$libdir'
11401
hardcode_libdir_separator_CXX=
11405
shared_flag='-shared'
11406
if test "$aix_use_runtimelinking" = yes; then
11407
shared_flag="$shared_flag "'${wl}-G'
11411
if test "$host_cpu" = ia64; then
11412
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11413
# chokes on -Wl,-G. The following line is correct:
11416
if test "$aix_use_runtimelinking" = yes; then
11417
shared_flag='${wl}-G'
11419
shared_flag='${wl}-bM:SRE'
11424
# It seems that -bexpall does not export symbols beginning with
11425
# underscore (_), so it is better to generate a list of symbols to export.
11426
always_export_symbols_CXX=yes
11427
if test "$aix_use_runtimelinking" = yes; then
11428
# Warning - without using the other runtime loading flags (-brtl),
11429
# -berok will link without error, but may produce a broken library.
11430
allow_undefined_flag_CXX='-berok'
11431
# Determine the default libpath from the value encoded in an empty executable.
11432
cat >conftest.$ac_ext <<_ACEOF
11435
cat confdefs.h >>conftest.$ac_ext
11436
cat >>conftest.$ac_ext <<_ACEOF
11437
/* end confdefs.h. */
11447
rm -f conftest.$ac_objext conftest$ac_exeext
11448
if { (ac_try="$ac_link"
11449
case "(($ac_try" in
11450
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451
*) ac_try_echo=$ac_try;;
11453
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454
(eval "$ac_link") 2>conftest.er1
11456
grep -v '^ *+' conftest.er1 >conftest.err
11458
cat conftest.err >&5
11459
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460
(exit $ac_status); } && {
11461
test -z "$ac_cxx_werror_flag" ||
11462
test ! -s conftest.err
11463
} && test -s conftest$ac_exeext &&
11464
$as_test_x conftest$ac_exeext; then
11466
lt_aix_libpath_sed='
11467
/Import File Strings/,/^$/ {
11473
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11474
# Check for a 64-bit object if we didn't find anything.
11475
if test -z "$aix_libpath"; then
11476
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11479
echo "$as_me: failed program was:" >&5
11480
sed 's/^/| /' conftest.$ac_ext >&5
11485
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11486
conftest$ac_exeext conftest.$ac_ext
11487
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11489
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11491
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"
11493
if test "$host_cpu" = ia64; then
11494
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11495
allow_undefined_flag_CXX="-z nodefs"
11496
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"
11498
# Determine the default libpath from the value encoded in an empty executable.
11499
cat >conftest.$ac_ext <<_ACEOF
11502
cat confdefs.h >>conftest.$ac_ext
11503
cat >>conftest.$ac_ext <<_ACEOF
11504
/* end confdefs.h. */
11514
rm -f conftest.$ac_objext conftest$ac_exeext
11515
if { (ac_try="$ac_link"
11516
case "(($ac_try" in
11517
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518
*) ac_try_echo=$ac_try;;
11520
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521
(eval "$ac_link") 2>conftest.er1
11523
grep -v '^ *+' conftest.er1 >conftest.err
11525
cat conftest.err >&5
11526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527
(exit $ac_status); } && {
11528
test -z "$ac_cxx_werror_flag" ||
11529
test ! -s conftest.err
11530
} && test -s conftest$ac_exeext &&
11531
$as_test_x conftest$ac_exeext; then
11533
lt_aix_libpath_sed='
11534
/Import File Strings/,/^$/ {
11540
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11541
# Check for a 64-bit object if we didn't find anything.
11542
if test -z "$aix_libpath"; then
11543
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11546
echo "$as_me: failed program was:" >&5
11547
sed 's/^/| /' conftest.$ac_ext >&5
11552
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11553
conftest$ac_exeext conftest.$ac_ext
11554
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11556
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11557
# Warning - without using the other run time loading flags,
11558
# -berok will link without error, but may produce a broken library.
11559
no_undefined_flag_CXX=' ${wl}-bernotok'
11560
allow_undefined_flag_CXX=' ${wl}-berok'
11561
# Exported symbols can be pulled into shared objects from archives
11562
whole_archive_flag_spec_CXX='$convenience'
11563
archive_cmds_need_lc_CXX=yes
11564
# This is similar to how AIX traditionally builds its shared libraries.
11565
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'
11571
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11572
allow_undefined_flag_CXX=unsupported
11573
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11574
# support --undefined. This deserves some investigation. FIXME
11575
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11582
case $cc_basename in
11584
# FIXME: insert proper C++ library support
11590
cygwin* | mingw* | pw32*)
11591
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11592
# as there is no search path for DLLs.
11593
hardcode_libdir_flag_spec_CXX='-L$libdir'
11594
allow_undefined_flag_CXX=unsupported
11595
always_export_symbols_CXX=no
11596
enable_shared_with_static_runtimes_CXX=yes
11598
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11599
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'
11600
# If the export-symbols file already is a .def file (1st line
11601
# is EXPORTS), use it as is; otherwise, prepend...
11602
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11603
cp $export_symbols $output_objdir/$soname.def;
11605
echo EXPORTS > $output_objdir/$soname.def;
11606
cat $export_symbols >> $output_objdir/$soname.def;
11608
$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'
11613
darwin* | rhapsody*)
11614
archive_cmds_need_lc_CXX=no
11615
hardcode_direct_CXX=no
11616
hardcode_automatic_CXX=yes
11617
hardcode_shlibpath_var_CXX=unsupported
11618
whole_archive_flag_spec_CXX=''
11619
link_all_deplibs_CXX=yes
11620
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11621
if test "$GXX" = yes ; then
11622
output_verbose_link_cmd='echo'
11623
archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11624
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11625
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11626
module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11627
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11628
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${_lt_dsymutil}"
11629
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11632
case $cc_basename in
11634
output_verbose_link_cmd='echo'
11635
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11636
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11637
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11638
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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11639
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}'
11649
case $cc_basename in
11651
# FIXME: insert proper C++ library support
11655
# Green Hills C++ Compiler
11656
# FIXME: insert proper C++ library support
11660
# FIXME: insert proper C++ library support
11666
# C++ shared libraries reported to be fairly broken before switch to ELF
11670
archive_cmds_need_lc_CXX=no
11672
freebsd* | dragonfly*)
11673
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11680
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11681
hardcode_libdir_separator_CXX=:
11682
export_dynamic_flag_spec_CXX='${wl}-E'
11683
hardcode_direct_CXX=yes
11684
hardcode_minus_L_CXX=yes # Not in the search PATH,
11685
# but as the default
11686
# location of the library.
11688
case $cc_basename in
11690
# FIXME: insert proper C++ library support
11694
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'
12593
# Check if GNU C++ uses GNU ld as the underlying linker, since the
12594
# archiving commands below assume that GNU ld is being used.
12595
if test "$with_gnu_ld" = yes; then
12596
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12597
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'
12599
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12600
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12602
# If archive_cmds runs LD, not CC, wlarc should be empty
12603
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12604
# investigate it a little bit more. (MM)
12607
# ancient GNU ld didn't support --whole-archive et. al.
12608
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12609
$GREP 'no-whole-archive' > /dev/null; then
12610
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12612
whole_archive_flag_spec_CXX=
12618
# A generic and very simple default shared library creation
12619
# command for GNU C++ for the case where it uses the native
12620
# linker, instead of GNU ld. If possible, this setting should
12621
# overridden to take advantage of the native linker features on
12622
# the platform it is being used on.
12623
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11695
12626
# Commands to make compiler produce verbose output that lists
11696
12627
# what "hidden" libraries, object files and flags are used when
11697
12628
# linking a shared library.
11699
# There doesn't appear to be a way to prevent this compiler from
11700
# explicitly linking system object files so we need to strip them
11701
# from the output so that they don't get included in the library
11703
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'
11706
if test "$GXX" = yes; then
11707
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'
12629
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12637
# PORTME: fill in a description of your system's C++ link characteristics
12638
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12639
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11709
12643
# FIXME: insert proper C++ library support
11710
12644
ld_shlibs_CXX=no
11716
if test $with_gnu_ld = no; then
11717
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11718
hardcode_libdir_separator_CXX=:
12647
if test "$host_cpu" = ia64; then
12648
# On IA64, the linker does run time linking by default, so we don't
12649
# have to do anything special.
12650
aix_use_runtimelinking=no
12651
exp_sym_flag='-Bexport'
12654
aix_use_runtimelinking=no
12656
# Test if we are trying to use run time linking or normal
12657
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12658
# need to do runtime linking.
12659
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12660
for ld_flag in $LDFLAGS; do
12663
aix_use_runtimelinking=yes
12671
exp_sym_flag='-bexport'
12672
no_entry_flag='-bnoentry'
12675
# When large executables or shared objects are built, AIX ld can
12676
# have problems creating the table of contents. If linking a library
12677
# or program results in "error TOC overflow" add -mminimal-toc to
12678
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12679
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12681
archive_cmds_CXX=''
12682
hardcode_direct_CXX=yes
12683
hardcode_direct_absolute_CXX=yes
12684
hardcode_libdir_separator_CXX=':'
12685
link_all_deplibs_CXX=yes
12686
file_list_spec_CXX='${wl}-f,'
12688
if test "$GXX" = yes; then
12689
case $host_os in aix4.[012]|aix4.[012].*)
12690
# We only want to do this on AIX 4.2 and lower, the check
12691
# below for broken collect2 doesn't work under 4.3+
12692
collect2name=`${CC} -print-prog-name=collect2`
12693
if test -f "$collect2name" &&
12694
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12696
# We have reworked collect2
12699
# We have old collect2
12700
hardcode_direct_CXX=unsupported
12701
# It fails to find uninstalled libraries when the uninstalled
12702
# path is not listed in the libpath. Setting hardcode_minus_L
12703
# to unsupported forces relinking
12704
hardcode_minus_L_CXX=yes
12705
hardcode_libdir_flag_spec_CXX='-L$libdir'
12706
hardcode_libdir_separator_CXX=
12709
shared_flag='-shared'
12710
if test "$aix_use_runtimelinking" = yes; then
12711
shared_flag="$shared_flag "'${wl}-G'
12715
if test "$host_cpu" = ia64; then
12716
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12717
# chokes on -Wl,-G. The following line is correct:
12720
if test "$aix_use_runtimelinking" = yes; then
12721
shared_flag='${wl}-G'
12723
shared_flag='${wl}-bM:SRE'
12728
export_dynamic_flag_spec_CXX='${wl}-bexpall'
12729
# It seems that -bexpall does not export symbols beginning with
12730
# underscore (_), so it is better to generate a list of symbols to
12732
always_export_symbols_CXX=yes
12733
if test "$aix_use_runtimelinking" = yes; then
12734
# Warning - without using the other runtime loading flags (-brtl),
12735
# -berok will link without error, but may produce a broken library.
12736
allow_undefined_flag_CXX='-berok'
12737
# Determine the default libpath from the value encoded in an empty
12739
cat >conftest.$ac_ext <<_ACEOF
12742
cat confdefs.h >>conftest.$ac_ext
12743
cat >>conftest.$ac_ext <<_ACEOF
12744
/* end confdefs.h. */
12754
rm -f conftest.$ac_objext conftest$ac_exeext
12755
if { (ac_try="$ac_link"
12756
case "(($ac_try" in
12757
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758
*) ac_try_echo=$ac_try;;
12760
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12761
$as_echo "$ac_try_echo") >&5
12762
(eval "$ac_link") 2>conftest.er1
12764
grep -v '^ *+' conftest.er1 >conftest.err
12766
cat conftest.err >&5
12767
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768
(exit $ac_status); } && {
12769
test -z "$ac_cxx_werror_flag" ||
12770
test ! -s conftest.err
12771
} && test -s conftest$ac_exeext && {
12772
test "$cross_compiling" = yes ||
12773
$as_test_x conftest$ac_exeext
12776
lt_aix_libpath_sed='
12777
/Import File Strings/,/^$/ {
12783
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12784
# Check for a 64-bit object if we didn't find anything.
12785
if test -z "$aix_libpath"; then
12786
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12789
$as_echo "$as_me: failed program was:" >&5
12790
sed 's/^/| /' conftest.$ac_ext >&5
12795
rm -rf conftest.dSYM
12796
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12797
conftest$ac_exeext conftest.$ac_ext
12798
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12800
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12802
archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12804
if test "$host_cpu" = ia64; then
12805
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12806
allow_undefined_flag_CXX="-z nodefs"
12807
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"
12809
# Determine the default libpath from the value encoded in an
12810
# empty executable.
12811
cat >conftest.$ac_ext <<_ACEOF
12814
cat confdefs.h >>conftest.$ac_ext
12815
cat >>conftest.$ac_ext <<_ACEOF
12816
/* end confdefs.h. */
12826
rm -f conftest.$ac_objext conftest$ac_exeext
12827
if { (ac_try="$ac_link"
12828
case "(($ac_try" in
12829
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830
*) ac_try_echo=$ac_try;;
12832
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12833
$as_echo "$ac_try_echo") >&5
12834
(eval "$ac_link") 2>conftest.er1
12836
grep -v '^ *+' conftest.er1 >conftest.err
12838
cat conftest.err >&5
12839
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840
(exit $ac_status); } && {
12841
test -z "$ac_cxx_werror_flag" ||
12842
test ! -s conftest.err
12843
} && test -s conftest$ac_exeext && {
12844
test "$cross_compiling" = yes ||
12845
$as_test_x conftest$ac_exeext
12848
lt_aix_libpath_sed='
12849
/Import File Strings/,/^$/ {
12855
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12856
# Check for a 64-bit object if we didn't find anything.
12857
if test -z "$aix_libpath"; then
12858
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12861
$as_echo "$as_me: failed program was:" >&5
12862
sed 's/^/| /' conftest.$ac_ext >&5
12867
rm -rf conftest.dSYM
12868
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12869
conftest$ac_exeext conftest.$ac_ext
12870
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12872
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12873
# Warning - without using the other run time loading flags,
12874
# -berok will link without error, but may produce a broken library.
12875
no_undefined_flag_CXX=' ${wl}-bernotok'
12876
allow_undefined_flag_CXX=' ${wl}-berok'
12877
# Exported symbols can be pulled into shared objects from archives
12878
whole_archive_flag_spec_CXX='$convenience'
12879
archive_cmds_need_lc_CXX=yes
12880
# This is similar to how AIX traditionally builds its shared
12882
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'
12888
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12889
allow_undefined_flag_CXX=unsupported
12890
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12891
# support --undefined. This deserves some investigation. FIXME
12892
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12899
case $cc_basename in
12901
# FIXME: insert proper C++ library support
12907
cygwin* | mingw* | pw32* | cegcc*)
12908
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12909
# as there is no search path for DLLs.
12910
hardcode_libdir_flag_spec_CXX='-L$libdir'
12911
allow_undefined_flag_CXX=unsupported
12912
always_export_symbols_CXX=no
12913
enable_shared_with_static_runtimes_CXX=yes
12915
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12916
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'
12917
# If the export-symbols file already is a .def file (1st line
12918
# is EXPORTS), use it as is; otherwise, prepend...
12919
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12920
cp $export_symbols $output_objdir/$soname.def;
12922
echo EXPORTS > $output_objdir/$soname.def;
12923
cat $export_symbols >> $output_objdir/$soname.def;
12925
$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'
12930
darwin* | rhapsody*)
12933
archive_cmds_need_lc_CXX=no
12934
hardcode_direct_CXX=no
12935
hardcode_automatic_CXX=yes
12936
hardcode_shlibpath_var_CXX=unsupported
12937
whole_archive_flag_spec_CXX=''
12938
link_all_deplibs_CXX=yes
12939
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12940
case $cc_basename in
12941
ifort*) _lt_dar_can_shared=yes ;;
12942
*) _lt_dar_can_shared=$GCC ;;
12944
if test "$_lt_dar_can_shared" = "yes"; then
12945
output_verbose_link_cmd=echo
12946
archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12947
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12948
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12949
module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12950
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12951
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${_lt_dsymutil}"
12952
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12962
case $cc_basename in
12964
# FIXME: insert proper C++ library support
12968
# Green Hills C++ Compiler
12969
# FIXME: insert proper C++ library support
12973
# FIXME: insert proper C++ library support
12980
# C++ shared libraries reported to be fairly broken before
12986
archive_cmds_need_lc_CXX=no
12989
freebsd* | dragonfly*)
12990
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12999
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13000
hardcode_libdir_separator_CXX=:
13001
export_dynamic_flag_spec_CXX='${wl}-E'
13002
hardcode_direct_CXX=yes
13003
hardcode_minus_L_CXX=yes # Not in the search PATH,
13004
# but as the default
13005
# location of the library.
13007
case $cc_basename in
13009
# FIXME: insert proper C++ library support
13013
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'
13014
# Commands to make compiler produce verbose output that lists
13015
# what "hidden" libraries, object files and flags are used when
13016
# linking a shared library.
13018
# There doesn't appear to be a way to prevent this compiler from
13019
# explicitly linking system object files so we need to strip them
13020
# from the output so that they don't get included in the library
13022
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13025
if test "$GXX" = yes; then
13026
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'
13028
# FIXME: insert proper C++ library support
13036
if test $with_gnu_ld = no; then
13037
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13038
hardcode_libdir_separator_CXX=:
13044
export_dynamic_flag_spec_CXX='${wl}-E'
13050
hardcode_direct_CXX=no
13051
hardcode_shlibpath_var_CXX=no
13054
hardcode_direct_CXX=yes
13055
hardcode_direct_absolute_CXX=yes
13056
hardcode_minus_L_CXX=yes # Not in the search PATH,
13057
# but as the default
13058
# location of the library.
13062
case $cc_basename in
13064
# FIXME: insert proper C++ library support
13070
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13073
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13076
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13079
# Commands to make compiler produce verbose output that lists
13080
# what "hidden" libraries, object files and flags are used when
13081
# linking a shared library.
13083
# There doesn't appear to be a way to prevent this compiler from
13084
# explicitly linking system object files so we need to strip them
13085
# from the output so that they don't get included in the library
13087
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13090
if test "$GXX" = yes; then
13091
if test $with_gnu_ld = no; then
13094
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13097
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13100
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'
13105
# FIXME: insert proper C++ library support
13113
hardcode_direct_CXX=no
13114
hardcode_shlibpath_var_CXX=no
13115
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11723
13116
export_dynamic_flag_spec_CXX='${wl}-E'
11729
hardcode_direct_CXX=no
13117
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13118
# Instead, shared libraries are loaded at an image base (0x10000000 by
13119
# default) and relocated if they conflict, which is a slow very memory
13120
# consuming and fragmenting process. To avoid this, we pick a random,
13121
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13122
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
13123
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'
13124
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'
13127
case $cc_basename in
13130
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13132
# Archives containing C++ object files must be created using
13133
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
13134
# necessary to make sure instantiated templates are included
13136
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13139
if test "$GXX" = yes; then
13140
if test "$with_gnu_ld" = no; then
13141
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13143
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13146
link_all_deplibs_CXX=yes
13149
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13150
hardcode_libdir_separator_CXX=:
13151
inherit_rpath_CXX=yes
13154
linux* | k*bsd*-gnu)
13155
case $cc_basename in
13157
# Kuck and Associates, Inc. (KAI) C++ Compiler
13159
# KCC will only create a shared library if the output file
13160
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13161
# to its proper name (with version) after linking.
13162
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'
13163
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'
13164
# Commands to make compiler produce verbose output that lists
13165
# what "hidden" libraries, object files and flags are used when
13166
# linking a shared library.
13168
# There doesn't appear to be a way to prevent this compiler from
13169
# explicitly linking system object files so we need to strip them
13170
# from the output so that they don't get included in the library
13172
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13174
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13175
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13177
# Archives containing C++ object files must be created using
13178
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13179
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13184
# version 8.0 and above of icpc choke on multiply defined symbols
13185
# if we add $predep_objects and $postdep_objects, however 7.1 and
13186
# earlier do not add the objects themselves.
13187
case `$CC -V 2>&1` in
13189
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13190
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'
13192
*) # Version 8.0 or newer
13195
ia64*) tmp_idyn=' -i_dynamic';;
13197
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13198
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'
13201
archive_cmds_need_lc_CXX=no
13202
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13203
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13204
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13207
# Portland Group C++ compiler
13209
*pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13210
prelink_cmds_CXX='tpldir=Template.dir~
13212
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13213
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13214
old_archive_cmds_CXX='tpldir=Template.dir~
13216
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13217
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13219
archive_cmds_CXX='tpldir=Template.dir~
13221
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13222
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13223
archive_expsym_cmds_CXX='tpldir=Template.dir~
13225
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13226
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13228
*) # Version 6 will use weak symbols
13229
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13230
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'
13234
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13235
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13236
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'
13240
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13241
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'
13243
runpath_var=LD_RUN_PATH
13244
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13245
hardcode_libdir_separator_CXX=:
13247
# Commands to make compiler produce verbose output that lists
13248
# what "hidden" libraries, object files and flags are used when
13249
# linking a shared library.
13251
# There doesn't appear to be a way to prevent this compiler from
13252
# explicitly linking system object files so we need to strip them
13253
# from the output so that they don't get included in the library
13255
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13258
# IBM XL 8.0 on PPC, with GNU ld
13259
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13260
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13261
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13262
if test "x$supports_anon_versioning" = xyes; then
13263
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13264
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13265
echo "local: *; };" >> $output_objdir/$libname.ver~
13266
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13270
case `$CC -V 2>&1 | sed 5q` in
13273
no_undefined_flag_CXX=' -zdefs'
13274
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13275
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13276
hardcode_libdir_flag_spec_CXX='-R$libdir'
13277
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13278
compiler_needs_object_CXX=yes
13280
# Not sure whether something based on
13281
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13283
output_verbose_link_cmd='echo'
13285
# Archives containing C++ object files must be created using
13286
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13287
# necessary to make sure instantiated templates are included
13289
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13297
# FIXME: insert proper C++ library support
13302
# FIXME: insert proper C++ library support
13307
case $cc_basename in
13309
# FIXME: insert proper C++ library support
13313
# FIXME: insert proper C++ library support
13320
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13321
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13323
hardcode_libdir_flag_spec_CXX='-R$libdir'
13324
hardcode_direct_CXX=yes
13325
hardcode_shlibpath_var_CXX=no
13327
# Workaround some broken pre-1.5 toolchains
13328
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13336
# C++ shared libraries are fairly broken
13341
if test -f /usr/libexec/ld.so; then
13342
hardcode_direct_CXX=yes
13343
hardcode_shlibpath_var_CXX=no
13344
hardcode_direct_absolute_CXX=yes
13345
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13346
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13347
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13348
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13349
export_dynamic_flag_spec_CXX='${wl}-E'
13350
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13352
output_verbose_link_cmd=echo
13358
osf3* | osf4* | osf5*)
13359
case $cc_basename in
13361
# Kuck and Associates, Inc. (KAI) C++ Compiler
13363
# KCC will only create a shared library if the output file
13364
# ends with ".so" (or ".sl" for HP-UX), so rename the library
13365
# to its proper name (with version) after linking.
13366
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'
13368
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13369
hardcode_libdir_separator_CXX=:
13371
# Archives containing C++ object files must be created using
13372
# the KAI C++ compiler.
13374
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13375
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13379
# Rational C++ 2.4.1
13380
# FIXME: insert proper C++ library support
13386
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13387
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13388
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13391
allow_undefined_flag_CXX=' -expect_unresolved \*'
13392
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13393
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13394
echo "-hidden">> $lib.exp~
13395
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13397
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13401
hardcode_libdir_separator_CXX=:
13403
# Commands to make compiler produce verbose output that lists
13404
# what "hidden" libraries, object files and flags are used when
13405
# linking a shared library.
13407
# There doesn't appear to be a way to prevent this compiler from
13408
# explicitly linking system object files so we need to strip them
13409
# from the output so that they don't get included in the library
13411
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13414
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13415
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13418
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13421
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13425
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13426
hardcode_libdir_separator_CXX=:
13428
# Commands to make compiler produce verbose output that lists
13429
# what "hidden" libraries, object files and flags are used when
13430
# linking a shared library.
13431
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13434
# FIXME: insert proper C++ library support
13442
# FIXME: insert proper C++ library support
13447
case $cc_basename in
13450
# FIXME: insert proper C++ library support
13455
# FIXME: insert proper C++ library support
13459
# FIXME: insert proper C++ library support
13466
case $cc_basename in
13468
# Sun C++ 4.2, 5.x and Centerline C++
13469
archive_cmds_need_lc_CXX=yes
13470
no_undefined_flag_CXX=' -zdefs'
13471
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13472
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13473
$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'
13475
hardcode_libdir_flag_spec_CXX='-R$libdir'
13476
hardcode_shlibpath_var_CXX=no
13478
solaris2.[0-5] | solaris2.[0-5].*) ;;
13480
# The compiler driver will combine and reorder linker options,
13481
# but understands `-z linker_flag'.
13482
# Supported since Solaris 2.6 (maybe 2.5.1?)
13483
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13486
link_all_deplibs_CXX=yes
13488
output_verbose_link_cmd='echo'
13490
# Archives containing C++ object files must be created using
13491
# "CC -xar", where "CC" is the Sun C++ compiler. This is
13492
# necessary to make sure instantiated templates are included
13494
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13497
# Green Hills C++ Compiler
13498
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13500
# The C++ compiler must be used to create the archive.
13501
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13504
# GNU C++ compiler with Solaris linker
13505
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13506
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13507
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13508
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13509
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13510
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13512
# Commands to make compiler produce verbose output that lists
13513
# what "hidden" libraries, object files and flags are used when
13514
# linking a shared library.
13515
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13517
# g++ 2.7 appears to require `-G' NOT `-shared' on this
13519
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13520
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13521
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13523
# Commands to make compiler produce verbose output that lists
13524
# what "hidden" libraries, object files and flags are used when
13525
# linking a shared library.
13526
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13529
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13531
solaris2.[0-5] | solaris2.[0-5].*) ;;
13533
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13541
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13542
no_undefined_flag_CXX='${wl}-z,text'
13543
archive_cmds_need_lc_CXX=no
11730
13544
hardcode_shlibpath_var_CXX=no
11733
hardcode_direct_CXX=yes
11734
hardcode_minus_L_CXX=yes # Not in the search PATH,
11735
# but as the default
11736
# location of the library.
13545
runpath_var='LD_RUN_PATH'
11740
case $cc_basename in
11742
# FIXME: insert proper C++ library support
11748
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11751
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13547
case $cc_basename in
13549
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13550
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11754
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11757
# Commands to make compiler produce verbose output that lists
11758
# what "hidden" libraries, object files and flags are used when
11759
# linking a shared library.
11761
# There doesn't appear to be a way to prevent this compiler from
11762
# explicitly linking system object files so we need to strip them
11763
# from the output so that they don't get included in the library
11765
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'
11768
if test "$GXX" = yes; then
11769
if test $with_gnu_ld = no; then
11772
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11775
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11778
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'
11783
# FIXME: insert proper C++ library support
11790
hardcode_direct_CXX=no
11791
hardcode_shlibpath_var_CXX=no
11792
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11793
export_dynamic_flag_spec_CXX='${wl}-E'
11794
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11795
# Instead, shared libraries are loaded at an image base (0x10000000 by
11796
# default) and relocated if they conflict, which is a slow very memory
11797
# consuming and fragmenting process. To avoid this, we pick a random,
11798
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11799
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11800
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'
11801
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'
11804
case $cc_basename in
11807
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'
11809
# Archives containing C++ object files must be created using
11810
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11811
# necessary to make sure instantiated templates are included
11813
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11816
if test "$GXX" = yes; then
11817
if test "$with_gnu_ld" = no; then
11818
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'
11820
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'
11823
link_all_deplibs_CXX=yes
11826
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11827
hardcode_libdir_separator_CXX=:
11829
linux* | k*bsd*-gnu)
11830
case $cc_basename in
11832
# Kuck and Associates, Inc. (KAI) C++ Compiler
11834
# KCC will only create a shared library if the output file
11835
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11836
# to its proper name (with version) after linking.
11837
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'
11838
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'
11839
# Commands to make compiler produce verbose output that lists
11840
# what "hidden" libraries, object files and flags are used when
11841
# linking a shared library.
11843
# There doesn't appear to be a way to prevent this compiler from
11844
# explicitly linking system object files so we need to strip them
11845
# from the output so that they don't get included in the library
11847
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'
11849
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11850
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11852
# Archives containing C++ object files must be created using
11853
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11854
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11859
# version 8.0 and above of icpc choke on multiply defined symbols
11860
# if we add $predep_objects and $postdep_objects, however 7.1 and
11861
# earlier do not add the objects themselves.
11862
case `$CC -V 2>&1` in
11864
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11865
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'
11867
*) # Version 8.0 or newer
11870
ia64*) tmp_idyn=' -i_dynamic';;
11872
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11873
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'
13553
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13554
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13559
sysv5* | sco3.2v5* | sco5v6*)
13560
# Note: We can NOT use -z defs as we might desire, because we do not
13561
# link with -lc, and that would cause any symbols used from libc to
13562
# always be unresolved, which means just about no library would
13563
# ever link correctly. If we're not using GNU ld we use -z text
13564
# though, which does catch some bad symbols but isn't as heavy-handed
13566
no_undefined_flag_CXX='${wl}-z,text'
13567
allow_undefined_flag_CXX='${wl}-z,nodefs'
11876
13568
archive_cmds_need_lc_CXX=no
11877
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11878
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11879
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11882
# Portland Group C++ compiler
11883
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11884
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'
11886
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11887
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11888
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'
11892
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11893
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'
11895
runpath_var=LD_RUN_PATH
11896
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11897
hardcode_libdir_separator_CXX=:
11899
# Commands to make compiler produce verbose output that lists
11900
# what "hidden" libraries, object files and flags are used when
11901
# linking a shared library.
11903
# There doesn't appear to be a way to prevent this compiler from
11904
# explicitly linking system object files so we need to strip them
11905
# from the output so that they don't get included in the library
11907
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'
11910
case `$CC -V 2>&1 | sed 5q` in
11913
no_undefined_flag_CXX=' -zdefs'
11914
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11915
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11916
hardcode_libdir_flag_spec_CXX='-R$libdir'
11917
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11919
# Not sure whether something based on
11920
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11922
output_verbose_link_cmd='echo'
11924
# Archives containing C++ object files must be created using
11925
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11926
# necessary to make sure instantiated templates are included
11928
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11935
# FIXME: insert proper C++ library support
11939
# FIXME: insert proper C++ library support
11943
case $cc_basename in
11945
# FIXME: insert proper C++ library support
11949
# FIXME: insert proper C++ library support
11954
netbsd* | netbsdelf*-gnu)
11955
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11956
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11958
hardcode_libdir_flag_spec_CXX='-R$libdir'
11959
hardcode_direct_CXX=yes
11960
hardcode_shlibpath_var_CXX=no
11962
# Workaround some broken pre-1.5 toolchains
11963
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11966
# C++ shared libraries are fairly broken
11970
if test -f /usr/libexec/ld.so; then
11971
hardcode_direct_CXX=yes
11972
hardcode_shlibpath_var_CXX=no
11973
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11974
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11975
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11976
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11977
export_dynamic_flag_spec_CXX='${wl}-E'
11978
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11980
output_verbose_link_cmd='echo'
11986
case $cc_basename in
11988
# Kuck and Associates, Inc. (KAI) C++ Compiler
11990
# KCC will only create a shared library if the output file
11991
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11992
# to its proper name (with version) after linking.
11993
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'
11995
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11996
hardcode_libdir_separator_CXX=:
11998
# Archives containing C++ object files must be created using
11999
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12000
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12004
# Rational C++ 2.4.1
12005
# FIXME: insert proper C++ library support
12009
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12010
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'
12012
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12013
hardcode_libdir_separator_CXX=:
12015
# Commands to make compiler produce verbose output that lists
12016
# what "hidden" libraries, object files and flags are used when
12017
# linking a shared library.
12019
# There doesn't appear to be a way to prevent this compiler from
12020
# explicitly linking system object files so we need to strip them
12021
# from the output so that they don't get included in the library
12023
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'
12026
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12027
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12028
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'
12030
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12031
hardcode_libdir_separator_CXX=:
12033
# Commands to make compiler produce verbose output that lists
12034
# what "hidden" libraries, object files and flags are used when
12035
# linking a shared library.
12036
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12039
# FIXME: insert proper C++ library support
12046
case $cc_basename in
12048
# Kuck and Associates, Inc. (KAI) C++ Compiler
12050
# KCC will only create a shared library if the output file
12051
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12052
# to its proper name (with version) after linking.
12053
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'
12055
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12056
hardcode_libdir_separator_CXX=:
12058
# Archives containing C++ object files must be created using
12059
# the KAI C++ compiler.
12060
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12063
# Rational C++ 2.4.1
12064
# FIXME: insert proper C++ library support
12068
allow_undefined_flag_CXX=' -expect_unresolved \*'
12069
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'
12070
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12071
echo "-hidden">> $lib.exp~
12072
$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~
12075
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12076
hardcode_libdir_separator_CXX=:
12078
# Commands to make compiler produce verbose output that lists
12079
# what "hidden" libraries, object files and flags are used when
12080
# linking a shared library.
12082
# There doesn't appear to be a way to prevent this compiler from
12083
# explicitly linking system object files so we need to strip them
12084
# from the output so that they don't get included in the library
12086
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'
12089
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12090
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12091
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'
12093
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12094
hardcode_libdir_separator_CXX=:
12096
# Commands to make compiler produce verbose output that lists
12097
# what "hidden" libraries, object files and flags are used when
12098
# linking a shared library.
12099
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12102
# FIXME: insert proper C++ library support
12109
# FIXME: insert proper C++ library support
12113
case $cc_basename in
12116
# FIXME: insert proper C++ library support
12121
# FIXME: insert proper C++ library support
12125
# FIXME: insert proper C++ library support
12131
case $cc_basename in
12133
# Sun C++ 4.2, 5.x and Centerline C++
12134
archive_cmds_need_lc_CXX=yes
12135
no_undefined_flag_CXX=' -zdefs'
12136
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12137
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12138
$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'
12140
hardcode_libdir_flag_spec_CXX='-R$libdir'
12141
13569
hardcode_shlibpath_var_CXX=no
12143
solaris2.[0-5] | solaris2.[0-5].*) ;;
12145
# The compiler driver will combine and reorder linker options,
12146
# but understands `-z linker_flag'.
12147
# Supported since Solaris 2.6 (maybe 2.5.1?)
12148
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13570
hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13571
hardcode_libdir_separator_CXX=':'
12151
13572
link_all_deplibs_CXX=yes
12153
output_verbose_link_cmd='echo'
12155
# Archives containing C++ object files must be created using
12156
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12157
# necessary to make sure instantiated templates are included
12159
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12162
# Green Hills C++ Compiler
12163
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12165
# The C++ compiler must be used to create the archive.
12166
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12169
# GNU C++ compiler with Solaris linker
12170
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12171
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12172
if $CC --version | grep -v '^2\.7' > /dev/null; then
12173
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12174
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12175
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12177
# Commands to make compiler produce verbose output that lists
12178
# what "hidden" libraries, object files and flags are used when
12179
# linking a shared library.
12180
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12182
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12184
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12185
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12186
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12188
# Commands to make compiler produce verbose output that lists
12189
# what "hidden" libraries, object files and flags are used when
12190
# linking a shared library.
12191
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12194
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12196
solaris2.[0-5] | solaris2.[0-5].*) ;;
13573
export_dynamic_flag_spec_CXX='${wl}-Bexport'
13574
runpath_var='LD_RUN_PATH'
13576
case $cc_basename in
13578
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13579
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12198
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12205
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12206
no_undefined_flag_CXX='${wl}-z,text'
12207
archive_cmds_need_lc_CXX=no
12208
hardcode_shlibpath_var_CXX=no
12209
runpath_var='LD_RUN_PATH'
12211
case $cc_basename in
12213
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12214
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12217
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12218
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12222
sysv5* | sco3.2v5* | sco5v6*)
12223
# Note: We can NOT use -z defs as we might desire, because we do not
12224
# link with -lc, and that would cause any symbols used from libc to
12225
# always be unresolved, which means just about no library would
12226
# ever link correctly. If we're not using GNU ld we use -z text
12227
# though, which does catch some bad symbols but isn't as heavy-handed
12229
# For security reasons, it is highly recommended that you always
12230
# use absolute paths for naming shared libraries, and exclude the
12231
# DT_RUNPATH tag from executables and libraries. But doing so
12232
# requires that you compile everything twice, which is a pain.
12233
# So that behaviour is only enabled if SCOABSPATH is set to a
12234
# non-empty value in the environment. Most likely only useful for
12235
# creating official distributions of packages.
12236
# This is a hack until libtool officially supports absolute path
12237
# names for shared libraries.
12238
no_undefined_flag_CXX='${wl}-z,text'
12239
allow_undefined_flag_CXX='${wl}-z,nodefs'
12240
archive_cmds_need_lc_CXX=no
12241
hardcode_shlibpath_var_CXX=no
12242
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12243
hardcode_libdir_separator_CXX=':'
12244
link_all_deplibs_CXX=yes
12245
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12246
runpath_var='LD_RUN_PATH'
12248
case $cc_basename in
12250
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12251
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12254
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12255
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12260
case $cc_basename in
12262
# NonStop-UX NCC 3.20
12263
# FIXME: insert proper C++ library support
12267
# FIXME: insert proper C++ library support
12273
# FIXME: insert proper C++ library support
12277
# FIXME: insert proper C++ library support
12281
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12282
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12283
test "$ld_shlibs_CXX" = no && can_build_shared=no
12288
cat > conftest.$ac_ext <<EOF
13582
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13583
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13589
case $cc_basename in
13591
# NonStop-UX NCC 3.20
13592
# FIXME: insert proper C++ library support
13596
# FIXME: insert proper C++ library support
13603
# FIXME: insert proper C++ library support
13608
# FIXME: insert proper C++ library support
13613
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13614
$as_echo "$ld_shlibs_CXX" >&6; }
13615
test "$ld_shlibs_CXX" = no && can_build_shared=no
13621
## There is no encapsulation within the following macros, do not change
13622
## the running order or otherwise move them around unless you know exactly
13623
## what you are doing...
13624
# Dependencies to place before and after the object being linked:
13625
predep_objects_CXX=
13626
postdep_objects_CXX=
13629
compiler_lib_search_path_CXX=
13631
cat > conftest.$ac_ext <<_LT_EOF
13627
15259
# directories.
13628
15260
hardcode_action_CXX=unsupported
13630
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13631
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13633
if test "$hardcode_action_CXX" = relink; then
13634
# Fast installation is not supported
13635
enable_fast_install=no
13636
elif test "$shlibpath_overrides_runpath" = yes ||
13637
test "$enable_shared" = no; then
13638
# Fast installation is not necessary
13639
enable_fast_install=needless
13643
# The else clause should only fire when bootstrapping the
13644
# libtool distribution, otherwise you forgot to ship ltmain.sh
13645
# with your package, and you will get complaints that there are
13646
# no rules to generate ltmain.sh.
13647
if test -f "$ltmain"; then
13648
# See if we are running on zsh, and set the options which allow our commands through
13649
# without removal of \ escapes.
13650
if test -n "${ZSH_VERSION+set}" ; then
13651
setopt NO_GLOB_SUBST
13653
# Now quote all the things that may contain metacharacters while being
13654
# careful not to overquote the AC_SUBSTed values. We take copies of the
13655
# variables and quote the copies for generation of the libtool script.
13656
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13658
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13659
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13660
deplibs_check_method reload_flag reload_cmds need_locks \
13661
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13662
lt_cv_sys_global_symbol_to_c_name_address \
13663
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13664
old_postinstall_cmds old_postuninstall_cmds \
13668
lt_prog_compiler_wl_CXX \
13669
lt_prog_compiler_pic_CXX \
13670
lt_prog_compiler_static_CXX \
13671
lt_prog_compiler_no_builtin_flag_CXX \
13672
export_dynamic_flag_spec_CXX \
13673
thread_safe_flag_spec_CXX \
13674
whole_archive_flag_spec_CXX \
13675
enable_shared_with_static_runtimes_CXX \
13676
old_archive_cmds_CXX \
13677
old_archive_from_new_cmds_CXX \
13678
predep_objects_CXX \
13679
postdep_objects_CXX \
13682
compiler_lib_search_path_CXX \
13683
compiler_lib_search_dirs_CXX \
13685
archive_expsym_cmds_CXX \
13686
postinstall_cmds_CXX \
13687
postuninstall_cmds_CXX \
13688
old_archive_from_expsyms_cmds_CXX \
13689
allow_undefined_flag_CXX \
13690
no_undefined_flag_CXX \
13691
export_symbols_cmds_CXX \
13692
hardcode_libdir_flag_spec_CXX \
13693
hardcode_libdir_flag_spec_ld_CXX \
13694
hardcode_libdir_separator_CXX \
13695
hardcode_automatic_CXX \
13697
module_expsym_cmds_CXX \
13698
lt_cv_prog_compiler_c_o_CXX \
13699
fix_srcfile_path_CXX \
13700
exclude_expsyms_CXX \
13701
include_expsyms_CXX; do
13704
old_archive_cmds_CXX | \
13705
old_archive_from_new_cmds_CXX | \
13706
archive_cmds_CXX | \
13707
archive_expsym_cmds_CXX | \
13708
module_cmds_CXX | \
13709
module_expsym_cmds_CXX | \
13710
old_archive_from_expsyms_cmds_CXX | \
13711
export_symbols_cmds_CXX | \
13712
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13713
postinstall_cmds | postuninstall_cmds | \
13714
old_postinstall_cmds | old_postuninstall_cmds | \
13715
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13716
# Double-quote double-evaled strings.
13717
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13720
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13726
*'\$0 --fallback-echo"')
13727
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13733
cat <<__EOF__ >> "$cfgfile"
13734
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13736
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13738
# Shell to use when invoking shell scripts.
13741
# Whether or not to build shared libraries.
13742
build_libtool_libs=$enable_shared
13744
# Whether or not to build static libraries.
13745
build_old_libs=$enable_static
13747
# Whether or not to add -lc for building shared libraries.
13748
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13750
# Whether or not to disallow shared libs when runtime libs are static
13751
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13753
# Whether or not to optimize for fast installation.
13754
fast_install=$enable_fast_install
13757
host_alias=$host_alias
13761
# The build system.
13762
build_alias=$build_alias
13766
# An echo program that does not interpret backslashes.
13771
AR_FLAGS=$lt_AR_FLAGS
13776
# LTCC compiler flags.
13777
LTCFLAGS=$lt_LTCFLAGS
13779
# A language-specific compiler.
13780
CC=$lt_compiler_CXX
13782
# Is the compiler the GNU C compiler?
13788
# The linker used to build libraries.
13791
# Whether we need hard or soft links.
13794
# A BSD-compatible nm program.
13797
# A symbol stripping program
13800
# Used to examine libraries when file_magic_cmd begins "file"
13801
MAGIC_CMD=$MAGIC_CMD
13803
# Used on cygwin: DLL creation program.
13806
# Used on cygwin: object dumper.
13809
# Used on cygwin: assembler.
13812
# The name of the directory that contains temporary libtool files.
13815
# How to create reloadable object files.
13816
reload_flag=$lt_reload_flag
13817
reload_cmds=$lt_reload_cmds
13819
# How to pass a linker flag through the compiler.
13820
wl=$lt_lt_prog_compiler_wl_CXX
13822
# Object file suffix (normally "o").
13823
objext="$ac_objext"
13825
# Old archive suffix (normally "a").
13828
# Shared library suffix (normally ".so").
13829
shrext_cmds='$shrext_cmds'
13831
# Executable file suffix (normally "").
13834
# Additional compiler flags for building library objects.
13835
pic_flag=$lt_lt_prog_compiler_pic_CXX
13838
# What is the maximum length of a command?
13839
max_cmd_len=$lt_cv_sys_max_cmd_len
13841
# Does compiler simultaneously support -c and -o options?
13842
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13844
# Must we lock files when doing compilation?
13845
need_locks=$lt_need_locks
13847
# Do we need the lib prefix for modules?
13848
need_lib_prefix=$need_lib_prefix
13850
# Do we need a version for libraries?
13851
need_version=$need_version
13853
# Whether dlopen is supported.
13854
dlopen_support=$enable_dlopen
13856
# Whether dlopen of programs is supported.
13857
dlopen_self=$enable_dlopen_self
13859
# Whether dlopen of statically linked programs is supported.
13860
dlopen_self_static=$enable_dlopen_self_static
13862
# Compiler flag to prevent dynamic linking.
13863
link_static_flag=$lt_lt_prog_compiler_static_CXX
13865
# Compiler flag to turn off builtin functions.
13866
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13868
# Compiler flag to allow reflexive dlopens.
13869
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13871
# Compiler flag to generate shared objects directly from archives.
13872
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13874
# Compiler flag to generate thread-safe objects.
13875
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13877
# Library versioning type.
13878
version_type=$version_type
13880
# Format of library name prefix.
13881
libname_spec=$lt_libname_spec
13883
# List of archive names. First name is the real one, the rest are links.
13884
# The last name is the one that the linker finds with -lNAME.
13885
library_names_spec=$lt_library_names_spec
13887
# The coded name of the library, if different from the real name.
13888
soname_spec=$lt_soname_spec
13890
# Commands used to build and install an old-style archive.
13892
old_archive_cmds=$lt_old_archive_cmds_CXX
13893
old_postinstall_cmds=$lt_old_postinstall_cmds
13894
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13896
# Create an old-style archive from a shared archive.
13897
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13899
# Create a temporary old-style archive to link instead of a shared archive.
13900
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13902
# Commands used to build and install a shared archive.
13903
archive_cmds=$lt_archive_cmds_CXX
13904
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13905
postinstall_cmds=$lt_postinstall_cmds
13906
postuninstall_cmds=$lt_postuninstall_cmds
13908
# Commands used to build a loadable module (assumed same as above if empty)
13909
module_cmds=$lt_module_cmds_CXX
13910
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13912
# Commands to strip libraries.
13913
old_striplib=$lt_old_striplib
13914
striplib=$lt_striplib
13916
# Dependencies to place before the objects being linked to create a
13918
predep_objects=$lt_predep_objects_CXX
13920
# Dependencies to place after the objects being linked to create a
13922
postdep_objects=$lt_postdep_objects_CXX
13924
# Dependencies to place before the objects being linked to create a
13926
predeps=$lt_predeps_CXX
13928
# Dependencies to place after the objects being linked to create a
13930
postdeps=$lt_postdeps_CXX
13932
# The directories searched by this compiler when creating a shared
13934
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13936
# The library search path used internally by the compiler when linking
13937
# a shared library.
13938
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13940
# Method to check whether dependent libraries are shared objects.
13941
deplibs_check_method=$lt_deplibs_check_method
13943
# Command to use when deplibs_check_method == file_magic.
13944
file_magic_cmd=$lt_file_magic_cmd
13946
# Flag that allows shared libraries with undefined symbols to be built.
13947
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13949
# Flag that forces no undefined symbols.
13950
no_undefined_flag=$lt_no_undefined_flag_CXX
13952
# Commands used to finish a libtool library installation in a directory.
13953
finish_cmds=$lt_finish_cmds
13955
# Same as above, but a single script fragment to be evaled but not shown.
13956
finish_eval=$lt_finish_eval
13958
# Take the output of nm and produce a listing of raw symbols and C names.
13959
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13961
# Transform the output of nm in a proper C declaration
13962
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13964
# Transform the output of nm in a C name address pair
13965
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13967
# This is the shared library runtime path variable.
13968
runpath_var=$runpath_var
13970
# This is the shared library path variable.
13971
shlibpath_var=$shlibpath_var
13973
# Is shlibpath searched before the hard-coded library search path?
13974
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13976
# How to hardcode a shared library path into an executable.
13977
hardcode_action=$hardcode_action_CXX
13979
# Whether we should hardcode library paths into libraries.
13980
hardcode_into_libs=$hardcode_into_libs
13982
# Flag to hardcode \$libdir into a binary during linking.
13983
# This must work even if \$libdir does not exist.
13984
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13986
# If ld is used when linking, flag to hardcode \$libdir into
13987
# a binary during linking. This must work even if \$libdir does
13989
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13991
# Whether we need a single -rpath flag with a separated argument.
13992
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13994
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13995
# resulting binary.
13996
hardcode_direct=$hardcode_direct_CXX
13998
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13999
# resulting binary.
14000
hardcode_minus_L=$hardcode_minus_L_CXX
14002
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14003
# the resulting binary.
14004
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14006
# Set to yes if building a shared library automatically hardcodes DIR into the library
14007
# and all subsequent libraries and executables linked against it.
14008
hardcode_automatic=$hardcode_automatic_CXX
14010
# Variables whose values should be saved in libtool wrapper scripts and
14011
# restored at relink time.
14012
variables_saved_for_relink="$variables_saved_for_relink"
14014
# Whether libtool must link a program against all its dependency libraries.
14015
link_all_deplibs=$link_all_deplibs_CXX
14017
# Compile-time system search path for libraries
14018
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14020
# Run-time system search path for libraries
14021
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14023
# Fix the shell variable \$srcfile for the compiler.
14024
fix_srcfile_path=$lt_fix_srcfile_path
14026
# Set to yes if exported symbols are required.
14027
always_export_symbols=$always_export_symbols_CXX
14029
# The commands to list exported symbols.
14030
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14032
# The commands to extract the exported symbol list from a shared archive.
14033
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14035
# Symbols that should not be listed in the preloaded symbols.
14036
exclude_expsyms=$lt_exclude_expsyms_CXX
14038
# Symbols that must always be exported.
14039
include_expsyms=$lt_include_expsyms_CXX
14041
# ### END LIBTOOL TAG CONFIG: $tagname
14047
# If there is no Makefile yet, we rely on a make rule to execute
14048
# `config.status --recheck' to rerun these tests and create the
14049
# libtool script then.
14050
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14051
if test -f "$ltmain_in"; then
14052
test -f Makefile && make "$ltmain"
14058
ac_cpp='$CXXCPP $CPPFLAGS'
14059
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14060
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14061
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14067
with_gnu_ldcxx=$with_gnu_ld
14068
with_gnu_ld=$lt_save_with_gnu_ld
14069
lt_cv_path_LDCXX=$lt_cv_path_LD
14070
lt_cv_path_LD=$lt_save_path_LD
14071
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14072
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14080
if test -n "$F77" && test "X$F77" != "Xno"; then
14083
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14084
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14085
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14088
archive_cmds_need_lc_F77=no
14089
allow_undefined_flag_F77=
14090
always_export_symbols_F77=no
14091
archive_expsym_cmds_F77=
14092
export_dynamic_flag_spec_F77=
14093
hardcode_direct_F77=no
14094
hardcode_libdir_flag_spec_F77=
14095
hardcode_libdir_flag_spec_ld_F77=
14096
hardcode_libdir_separator_F77=
14097
hardcode_minus_L_F77=no
14098
hardcode_automatic_F77=no
14100
module_expsym_cmds_F77=
14101
link_all_deplibs_F77=unknown
14102
old_archive_cmds_F77=$old_archive_cmds
14103
no_undefined_flag_F77=
14104
whole_archive_flag_spec_F77=
14105
enable_shared_with_static_runtimes_F77=no
14107
# Source file extension for f77 test sources.
14110
# Object file extension for compiled f77 test sources.
14114
# Code to be used in simple compile tests
14115
lt_simple_compile_test_code="\
14121
# Code to be used in simple link tests
14122
lt_simple_link_test_code="\
14127
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14129
# If no C compiler was specified, use CC.
14132
# If no C compiler flags were specified, use CFLAGS.
14133
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14135
# Allow CC to be a program name with arguments.
14139
# save warnings/boilerplate of simple test code
14140
ac_outfile=conftest.$ac_objext
14141
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14142
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14143
_lt_compiler_boilerplate=`cat conftest.err`
14146
ac_outfile=conftest.$ac_objext
14147
echo "$lt_simple_link_test_code" >conftest.$ac_ext
14148
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14149
_lt_linker_boilerplate=`cat conftest.err`
14153
# Allow CC to be a program name with arguments.
14158
for cc_temp in $compiler""; do
14160
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14161
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14166
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14169
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14170
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14171
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14172
echo "${ECHO_T}$can_build_shared" >&6; }
14174
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14175
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14176
test "$can_build_shared" = "no" && enable_shared=no
14178
# On AIX, shared libraries and static libraries use the same namespace, and
14179
# are all built from PIC.
14182
test "$enable_shared" = yes && enable_static=no
14183
if test -n "$RANLIB"; then
14184
archive_cmds="$archive_cmds~\$RANLIB \$lib"
14185
postinstall_cmds='$RANLIB $lib'
14189
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14190
test "$enable_shared" = yes && enable_static=no
14194
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14195
echo "${ECHO_T}$enable_shared" >&6; }
14197
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14198
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14199
# Make sure either enable_shared or enable_static is yes.
14200
test "$enable_shared" = yes || enable_static=yes
14201
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14202
echo "${ECHO_T}$enable_static" >&6; }
14207
lt_prog_compiler_wl_F77=
14208
lt_prog_compiler_pic_F77=
14209
lt_prog_compiler_static_F77=
14211
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14212
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14214
if test "$GCC" = yes; then
14215
lt_prog_compiler_wl_F77='-Wl,'
14216
lt_prog_compiler_static_F77='-static'
14220
# All AIX code is PIC.
14221
if test "$host_cpu" = ia64; then
14222
# AIX 5 now supports IA64 processor
14223
lt_prog_compiler_static_F77='-Bstatic'
14228
# FIXME: we need at least 68020 code to build shared libraries, but
14229
# adding the `-m68020' flag to GCC prevents building anything better,
14231
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14234
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14235
# PIC is the default for these OSes.
14238
mingw* | cygwin* | pw32* | os2*)
14239
# This hack is so that the source file can tell whether it is being
14240
# built for inclusion in a dll (and should export symbols for example).
14241
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14242
# (--disable-auto-import) libraries
14243
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14246
darwin* | rhapsody*)
14247
# PIC is the default on this platform
14248
# Common symbols not allowed in MH_DYLIB files
14249
lt_prog_compiler_pic_F77='-fno-common'
14253
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14254
# Instead, we relocate shared libraries at runtime.
14258
# Just because we use GCC doesn't mean we suddenly get shared libraries
14259
# on systems that don't support them.
14260
lt_prog_compiler_can_build_shared_F77=no
14265
if test -d /usr/nec; then
14266
lt_prog_compiler_pic_F77=-Kconform_pic
14271
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14272
# not for PA HP-UX.
14278
lt_prog_compiler_pic_F77='-fPIC'
14284
lt_prog_compiler_pic_F77='-fPIC'
14288
# PORTME Check for flag to pass linker flags through the system compiler.
14291
lt_prog_compiler_wl_F77='-Wl,'
14292
if test "$host_cpu" = ia64; then
14293
# AIX 5 now supports IA64 processor
14294
lt_prog_compiler_static_F77='-Bstatic'
14296
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14300
# PIC is the default on this platform
14301
# Common symbols not allowed in MH_DYLIB files
14302
case $cc_basename in
14304
lt_prog_compiler_pic_F77='-qnocommon'
14305
lt_prog_compiler_wl_F77='-Wl,'
14310
mingw* | cygwin* | pw32* | os2*)
14311
# This hack is so that the source file can tell whether it is being
14312
# built for inclusion in a dll (and should export symbols for example).
14313
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14316
hpux9* | hpux10* | hpux11*)
14317
lt_prog_compiler_wl_F77='-Wl,'
14318
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14319
# not for PA HP-UX.
14325
lt_prog_compiler_pic_F77='+Z'
14328
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14329
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14332
irix5* | irix6* | nonstopux*)
14333
lt_prog_compiler_wl_F77='-Wl,'
14334
# PIC (with -KPIC) is the default.
14335
lt_prog_compiler_static_F77='-non_shared'
14339
lt_prog_compiler_pic_F77='-KPIC'
14340
lt_prog_compiler_static_F77='-Bstatic'
14343
linux* | k*bsd*-gnu)
14344
case $cc_basename in
14346
lt_prog_compiler_wl_F77='-Wl,'
14347
lt_prog_compiler_pic_F77='-KPIC'
14348
lt_prog_compiler_static_F77='-static'
14350
pgcc* | pgf77* | pgf90* | pgf95*)
14351
# Portland Group compilers (*not* the Pentium gcc compiler,
14352
# which looks to be a dead project)
14353
lt_prog_compiler_wl_F77='-Wl,'
14354
lt_prog_compiler_pic_F77='-fpic'
14355
lt_prog_compiler_static_F77='-Bstatic'
14358
lt_prog_compiler_wl_F77='-Wl,'
14359
# All Alpha code is PIC.
14360
lt_prog_compiler_static_F77='-non_shared'
14363
case `$CC -V 2>&1 | sed 5q` in
14366
lt_prog_compiler_pic_F77='-KPIC'
14367
lt_prog_compiler_static_F77='-Bstatic'
14368
lt_prog_compiler_wl_F77='-Wl,'
14371
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14372
lt_prog_compiler_pic_F77='-KPIC'
14373
lt_prog_compiler_static_F77='-Bstatic'
14374
lt_prog_compiler_wl_F77=''
14381
osf3* | osf4* | osf5*)
14382
lt_prog_compiler_wl_F77='-Wl,'
14383
# All OSF/1 code is PIC.
14384
lt_prog_compiler_static_F77='-non_shared'
14388
lt_prog_compiler_static_F77='-non_shared'
14392
lt_prog_compiler_pic_F77='-KPIC'
14393
lt_prog_compiler_static_F77='-Bstatic'
14394
case $cc_basename in
14395
f77* | f90* | f95*)
14396
lt_prog_compiler_wl_F77='-Qoption ld ';;
14398
lt_prog_compiler_wl_F77='-Wl,';;
14403
lt_prog_compiler_wl_F77='-Qoption ld '
14404
lt_prog_compiler_pic_F77='-PIC'
14405
lt_prog_compiler_static_F77='-Bstatic'
14408
sysv4 | sysv4.2uw2* | sysv4.3*)
14409
lt_prog_compiler_wl_F77='-Wl,'
14410
lt_prog_compiler_pic_F77='-KPIC'
14411
lt_prog_compiler_static_F77='-Bstatic'
14415
if test -d /usr/nec ;then
14416
lt_prog_compiler_pic_F77='-Kconform_pic'
14417
lt_prog_compiler_static_F77='-Bstatic'
14421
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14422
lt_prog_compiler_wl_F77='-Wl,'
14423
lt_prog_compiler_pic_F77='-KPIC'
14424
lt_prog_compiler_static_F77='-Bstatic'
14428
lt_prog_compiler_wl_F77='-Wl,'
14429
lt_prog_compiler_can_build_shared_F77=no
14433
lt_prog_compiler_pic_F77='-pic'
14434
lt_prog_compiler_static_F77='-Bstatic'
14438
lt_prog_compiler_can_build_shared_F77=no
14443
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14444
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14447
# Check to make sure the PIC flag actually works.
14449
if test -n "$lt_prog_compiler_pic_F77"; then
14451
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14452
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14453
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14454
echo $ECHO_N "(cached) $ECHO_C" >&6
14456
lt_cv_prog_compiler_pic_works_F77=no
14457
ac_outfile=conftest.$ac_objext
14458
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14459
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14460
# Insert the option either (1) after the last *FLAGS variable, or
14461
# (2) before a word containing "conftest.", or (3) at the end.
14462
# Note that $ac_compile itself does not contain backslashes and begins
14463
# with a dollar sign (not a hyphen), so the echo should work correctly.
14464
# The option is referenced via a variable to avoid confusing sed.
14465
lt_compile=`echo "$ac_compile" | $SED \
14466
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14467
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14468
-e 's:$: $lt_compiler_flag:'`
14469
(eval echo "\"\$as_me:14469: $lt_compile\"" >&5)
14470
(eval "$lt_compile" 2>conftest.err)
14472
cat conftest.err >&5
14473
echo "$as_me:14473: \$? = $ac_status" >&5
14474
if (exit $ac_status) && test -s "$ac_outfile"; then
14475
# The compiler can only warn and ignore the option if not recognized
14476
# So say no if there are warnings other than the usual output.
14477
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14478
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14479
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14480
lt_cv_prog_compiler_pic_works_F77=yes
14486
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14487
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14489
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14490
case $lt_prog_compiler_pic_F77 in
14492
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14495
lt_prog_compiler_pic_F77=
14496
lt_prog_compiler_can_build_shared_F77=no
14501
# For platforms which do not support PIC, -DPIC is meaningless:
14503
lt_prog_compiler_pic_F77=
14506
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14511
# Check to make sure the static flag actually works.
14513
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14514
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14515
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14516
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14517
echo $ECHO_N "(cached) $ECHO_C" >&6
14519
lt_cv_prog_compiler_static_works_F77=no
14520
save_LDFLAGS="$LDFLAGS"
14521
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14522
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14523
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14524
# The linker can only warn and ignore the option if not recognized
14525
# So say no if there are warnings
14526
if test -s conftest.err; then
14527
# Append any errors to the config.log.
14528
cat conftest.err 1>&5
14529
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14530
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14531
if diff conftest.exp conftest.er2 >/dev/null; then
14532
lt_cv_prog_compiler_static_works_F77=yes
14535
lt_cv_prog_compiler_static_works_F77=yes
14539
LDFLAGS="$save_LDFLAGS"
14542
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14543
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14545
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14548
lt_prog_compiler_static_F77=
14552
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14553
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14554
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14555
echo $ECHO_N "(cached) $ECHO_C" >&6
14557
lt_cv_prog_compiler_c_o_F77=no
14558
$rm -r conftest 2>/dev/null
14562
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14564
lt_compiler_flag="-o out/conftest2.$ac_objext"
14565
# Insert the option either (1) after the last *FLAGS variable, or
14566
# (2) before a word containing "conftest.", or (3) at the end.
14567
# Note that $ac_compile itself does not contain backslashes and begins
14568
# with a dollar sign (not a hyphen), so the echo should work correctly.
14569
lt_compile=`echo "$ac_compile" | $SED \
14570
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14571
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14572
-e 's:$: $lt_compiler_flag:'`
14573
(eval echo "\"\$as_me:14573: $lt_compile\"" >&5)
14574
(eval "$lt_compile" 2>out/conftest.err)
14576
cat out/conftest.err >&5
14577
echo "$as_me:14577: \$? = $ac_status" >&5
14578
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14580
# The compiler can only warn and ignore the option if not recognized
14581
# So say no if there are warnings
14582
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14583
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14584
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14585
lt_cv_prog_compiler_c_o_F77=yes
14590
# SGI C++ compiler will create directory out/ii_files/ for
14591
# template instantiation
14592
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14593
$rm out/* && rmdir out
14599
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14600
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14603
hard_links="nottested"
14604
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14605
# do not overwrite the value of need_locks provided by the user
14606
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14607
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14610
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14612
ln conftest.a conftest.b 2>&5 || hard_links=no
14613
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14614
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14615
echo "${ECHO_T}$hard_links" >&6; }
14616
if test "$hard_links" = no; then
14617
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14618
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14625
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14626
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14629
allow_undefined_flag_F77=
14630
enable_shared_with_static_runtimes_F77=no
14632
archive_expsym_cmds_F77=
14633
old_archive_From_new_cmds_F77=
14634
old_archive_from_expsyms_cmds_F77=
14635
export_dynamic_flag_spec_F77=
14636
whole_archive_flag_spec_F77=
14637
thread_safe_flag_spec_F77=
14638
hardcode_libdir_flag_spec_F77=
14639
hardcode_libdir_flag_spec_ld_F77=
14640
hardcode_libdir_separator_F77=
14641
hardcode_direct_F77=no
14642
hardcode_minus_L_F77=no
14643
hardcode_shlibpath_var_F77=unsupported
14644
link_all_deplibs_F77=unknown
14645
hardcode_automatic_F77=no
14647
module_expsym_cmds_F77=
14648
always_export_symbols_F77=no
14649
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14650
# include_expsyms should be a list of space-separated symbols to be *always*
14651
# included in the symbol list
14652
include_expsyms_F77=
14653
# exclude_expsyms can be an extended regexp of symbols to exclude
14654
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14655
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14656
# as well as any symbol that contains `d'.
14657
exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14658
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14659
# platforms (ab)use it in PIC code, but their linkers get confused if
14660
# the symbol is explicitly referenced. Since portable code cannot
14661
# rely on this symbol name, it's probably fine to never include it in
14662
# preloaded symbol tables.
14663
# Exclude shared library initialization/finalization symbols.
14664
extract_expsyms_cmds=
14665
# Just being paranoid about ensuring that cc_basename is set.
14666
for cc_temp in $compiler""; do
14668
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14669
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14674
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14677
cygwin* | mingw* | pw32*)
14678
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14679
# When not using gcc, we currently assume that we are using
14680
# Microsoft Visual C++.
14681
if test "$GCC" != yes; then
14686
# we just hope/assume this is gcc and not c89 (= MSVC++)
14695
if test "$with_gnu_ld" = yes; then
14696
# If archive_cmds runs LD, not CC, wlarc should be empty
14699
# Set some defaults for GNU ld with shared library support. These
14700
# are reset later if shared libraries are not supported. Putting them
14701
# here allows them to be overridden if necessary.
14702
runpath_var=LD_RUN_PATH
14703
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14704
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14705
# ancient GNU ld didn't support --whole-archive et. al.
14706
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14707
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14709
whole_archive_flag_spec_F77=
14711
supports_anon_versioning=no
14712
case `$LD -v 2>/dev/null` in
14713
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14714
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14715
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14716
*\ 2.11.*) ;; # other 2.11 versions
14717
*) supports_anon_versioning=yes ;;
14720
# See if GNU ld supports shared libraries.
14723
# On AIX/PPC, the GNU linker is very broken
14724
if test "$host_cpu" != ia64; then
14728
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14729
*** to be unable to reliably create shared libraries on AIX.
14730
*** Therefore, libtool is disabling shared libraries support. If you
14731
*** really care for shared libraries, you may want to modify your PATH
14732
*** so that a non-GNU linker is found, and then restart.
14739
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)'
14740
hardcode_libdir_flag_spec_F77='-L$libdir'
14741
hardcode_minus_L_F77=yes
14743
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14744
# that the semantics of dynamic libraries on AmigaOS, at least up
14745
# to version 4, is to share data among multiple programs linked
14746
# with the same dynamic library. Since this doesn't match the
14747
# behavior of shared libraries on other platforms, we can't use
14753
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14754
allow_undefined_flag_F77=unsupported
14755
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14756
# support --undefined. This deserves some investigation. FIXME
14757
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14763
cygwin* | mingw* | pw32*)
14764
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14765
# as there is no search path for DLLs.
14766
hardcode_libdir_flag_spec_F77='-L$libdir'
14767
allow_undefined_flag_F77=unsupported
14768
always_export_symbols_F77=no
14769
enable_shared_with_static_runtimes_F77=yes
14770
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14772
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14773
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14774
# If the export-symbols file already is a .def file (1st line
14775
# is EXPORTS), use it as is; otherwise, prepend...
14776
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14777
cp $export_symbols $output_objdir/$soname.def;
14779
echo EXPORTS > $output_objdir/$soname.def;
14780
cat $export_symbols >> $output_objdir/$soname.def;
14782
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14789
hardcode_direct_F77=no
14790
hardcode_shlibpath_var_F77=no
14791
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14792
export_dynamic_flag_spec_F77='${wl}-E'
14793
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14794
# Instead, shared libraries are loaded at an image base (0x10000000 by
14795
# default) and relocated if they conflict, which is a slow very memory
14796
# consuming and fragmenting process. To avoid this, we pick a random,
14797
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14798
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14799
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'
14800
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'
14803
gnu* | linux* | k*bsd*-gnu)
14804
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14806
case $cc_basename,$host_cpu in
14807
pgcc*) # Portland Group C compiler
14808
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'
14809
tmp_addflag=' $pic_flag'
14811
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14812
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'
14813
tmp_addflag=' $pic_flag -Mnomain' ;;
14814
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14815
tmp_addflag=' -i_dynamic' ;;
14816
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14817
tmp_addflag=' -i_dynamic -nofor_main' ;;
14818
ifc* | ifort*) # Intel Fortran compiler
14819
tmp_addflag=' -nofor_main' ;;
14821
case `$CC -V 2>&1 | sed 5q` in
14822
*Sun\ C*) # Sun C 5.9
14823
whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14824
tmp_sharedflag='-G' ;;
14825
*Sun\ F*) # Sun Fortran 8.3
14826
tmp_sharedflag='-G' ;;
14828
tmp_sharedflag='-shared' ;;
14830
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14832
if test $supports_anon_versioning = yes; then
14833
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14834
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14835
$echo "local: *; };" >> $output_objdir/$libname.ver~
14836
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14838
link_all_deplibs_F77=no
14844
netbsd* | netbsdelf*-gnu)
14845
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14846
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14849
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14850
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14855
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14859
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14860
*** create shared libraries on Solaris systems. Therefore, libtool
14861
*** is disabling shared libraries support. We urge you to upgrade GNU
14862
*** binutils to release 2.9.1 or newer. Another option is to modify
14863
*** your PATH or compiler configuration so that the native linker is
14864
*** used, and then restart.
14867
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14868
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14869
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14875
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14876
case `$LD -v 2>&1` in
14877
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14881
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14882
*** reliably create shared libraries on SCO systems. Therefore, libtool
14883
*** is disabling shared libraries support. We urge you to upgrade GNU
14884
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14885
*** your PATH or compiler configuration so that the native linker is
14886
*** used, and then restart.
14891
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14892
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14893
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14894
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14903
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14905
hardcode_direct_F77=yes
14906
hardcode_shlibpath_var_F77=no
14910
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14911
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14912
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14919
if test "$ld_shlibs_F77" = no; then
14921
hardcode_libdir_flag_spec_F77=
14922
export_dynamic_flag_spec_F77=
14923
whole_archive_flag_spec_F77=
14926
# PORTME fill in a description of your system's linker (not GNU ld)
14929
allow_undefined_flag_F77=unsupported
14930
always_export_symbols_F77=yes
14931
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'
14932
# Note: this linker hardcodes the directories in LIBPATH if there
14933
# are no directories specified by -L.
14934
hardcode_minus_L_F77=yes
14935
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14936
# Neither direct hardcoding nor static linking is supported with a
14938
hardcode_direct_F77=unsupported
14943
if test "$host_cpu" = ia64; then
14944
# On IA64, the linker does run time linking by default, so we don't
14945
# have to do anything special.
14946
aix_use_runtimelinking=no
14947
exp_sym_flag='-Bexport'
14950
# If we're using GNU nm, then we don't want the "-C" option.
14951
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14952
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14953
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'
14955
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'
14957
aix_use_runtimelinking=no
14959
# Test if we are trying to use run time linking or normal
14960
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14961
# need to do runtime linking.
14962
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14963
for ld_flag in $LDFLAGS; do
14964
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14965
aix_use_runtimelinking=yes
14972
exp_sym_flag='-bexport'
14973
no_entry_flag='-bnoentry'
14976
# When large executables or shared objects are built, AIX ld can
14977
# have problems creating the table of contents. If linking a library
14978
# or program results in "error TOC overflow" add -mminimal-toc to
14979
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14980
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14982
archive_cmds_F77=''
14983
hardcode_direct_F77=yes
14984
hardcode_libdir_separator_F77=':'
14985
link_all_deplibs_F77=yes
14987
if test "$GCC" = yes; then
14988
case $host_os in aix4.[012]|aix4.[012].*)
14989
# We only want to do this on AIX 4.2 and lower, the check
14990
# below for broken collect2 doesn't work under 4.3+
14991
collect2name=`${CC} -print-prog-name=collect2`
14992
if test -f "$collect2name" && \
14993
strings "$collect2name" | grep resolve_lib_name >/dev/null
14995
# We have reworked collect2
14998
# We have old collect2
14999
hardcode_direct_F77=unsupported
15000
# It fails to find uninstalled libraries when the uninstalled
15001
# path is not listed in the libpath. Setting hardcode_minus_L
15002
# to unsupported forces relinking
15003
hardcode_minus_L_F77=yes
15004
hardcode_libdir_flag_spec_F77='-L$libdir'
15005
hardcode_libdir_separator_F77=
15009
shared_flag='-shared'
15010
if test "$aix_use_runtimelinking" = yes; then
15011
shared_flag="$shared_flag "'${wl}-G'
15015
if test "$host_cpu" = ia64; then
15016
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15017
# chokes on -Wl,-G. The following line is correct:
15020
if test "$aix_use_runtimelinking" = yes; then
15021
shared_flag='${wl}-G'
15023
shared_flag='${wl}-bM:SRE'
15028
# It seems that -bexpall does not export symbols beginning with
15029
# underscore (_), so it is better to generate a list of symbols to export.
15030
always_export_symbols_F77=yes
15031
if test "$aix_use_runtimelinking" = yes; then
15032
# Warning - without using the other runtime loading flags (-brtl),
15033
# -berok will link without error, but may produce a broken library.
15034
allow_undefined_flag_F77='-berok'
15035
# Determine the default libpath from the value encoded in an empty executable.
15036
cat >conftest.$ac_ext <<_ACEOF
15041
rm -f conftest.$ac_objext conftest$ac_exeext
15042
if { (ac_try="$ac_link"
15043
case "(($ac_try" in
15044
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15045
*) ac_try_echo=$ac_try;;
15047
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15048
(eval "$ac_link") 2>conftest.er1
15050
grep -v '^ *+' conftest.er1 >conftest.err
15052
cat conftest.err >&5
15053
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054
(exit $ac_status); } && {
15055
test -z "$ac_f77_werror_flag" ||
15056
test ! -s conftest.err
15057
} && test -s conftest$ac_exeext &&
15058
$as_test_x conftest$ac_exeext; then
15060
lt_aix_libpath_sed='
15061
/Import File Strings/,/^$/ {
15067
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15068
# Check for a 64-bit object if we didn't find anything.
15069
if test -z "$aix_libpath"; then
15070
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15073
echo "$as_me: failed program was:" >&5
15074
sed 's/^/| /' conftest.$ac_ext >&5
15079
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15080
conftest$ac_exeext conftest.$ac_ext
15081
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15083
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15084
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"
15086
if test "$host_cpu" = ia64; then
15087
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15088
allow_undefined_flag_F77="-z nodefs"
15089
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"
15091
# Determine the default libpath from the value encoded in an empty executable.
15092
cat >conftest.$ac_ext <<_ACEOF
15097
rm -f conftest.$ac_objext conftest$ac_exeext
15098
if { (ac_try="$ac_link"
15099
case "(($ac_try" in
15100
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15101
*) ac_try_echo=$ac_try;;
15103
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15104
(eval "$ac_link") 2>conftest.er1
15106
grep -v '^ *+' conftest.er1 >conftest.err
15108
cat conftest.err >&5
15109
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110
(exit $ac_status); } && {
15111
test -z "$ac_f77_werror_flag" ||
15112
test ! -s conftest.err
15113
} && test -s conftest$ac_exeext &&
15114
$as_test_x conftest$ac_exeext; then
15116
lt_aix_libpath_sed='
15117
/Import File Strings/,/^$/ {
15123
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15124
# Check for a 64-bit object if we didn't find anything.
15125
if test -z "$aix_libpath"; then
15126
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15129
echo "$as_me: failed program was:" >&5
15130
sed 's/^/| /' conftest.$ac_ext >&5
15135
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15136
conftest$ac_exeext conftest.$ac_ext
15137
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15139
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15140
# Warning - without using the other run time loading flags,
15141
# -berok will link without error, but may produce a broken library.
15142
no_undefined_flag_F77=' ${wl}-bernotok'
15143
allow_undefined_flag_F77=' ${wl}-berok'
15144
# Exported symbols can be pulled into shared objects from archives
15145
whole_archive_flag_spec_F77='$convenience'
15146
archive_cmds_need_lc_F77=yes
15147
# This is similar to how AIX traditionally builds its shared libraries.
15148
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'
15154
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)'
15155
hardcode_libdir_flag_spec_F77='-L$libdir'
15156
hardcode_minus_L_F77=yes
15157
# see comment about different semantics on the GNU ld section
15162
export_dynamic_flag_spec_F77=-rdynamic
15165
cygwin* | mingw* | pw32*)
15166
# When not using gcc, we currently assume that we are using
15167
# Microsoft Visual C++.
15168
# hardcode_libdir_flag_spec is actually meaningless, as there is
15169
# no search path for DLLs.
15170
hardcode_libdir_flag_spec_F77=' '
15171
allow_undefined_flag_F77=unsupported
15172
# Tell ltmain to make .lib files, not .a files.
15174
# Tell ltmain to make .dll files, not .so files.
15176
# FIXME: Setting linknames here is a bad hack.
15177
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15178
# The linker will automatically build a .lib file if we build a DLL.
15179
old_archive_From_new_cmds_F77='true'
15180
# FIXME: Should let the user specify the lib program.
15181
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15182
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15183
enable_shared_with_static_runtimes_F77=yes
15186
darwin* | rhapsody*)
15188
rhapsody* | darwin1.[012])
15189
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15192
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15193
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15195
case ${MACOSX_DEPLOYMENT_TARGET} in
15197
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15200
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15206
archive_cmds_need_lc_F77=no
15207
hardcode_direct_F77=no
15208
hardcode_automatic_F77=yes
15209
hardcode_shlibpath_var_F77=unsupported
15210
whole_archive_flag_spec_F77=''
15211
link_all_deplibs_F77=yes
15212
if test "$GCC" = yes ; then
15213
output_verbose_link_cmd='echo'
15214
archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15215
module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15216
archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15217
module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15219
case $cc_basename in
15221
output_verbose_link_cmd='echo'
15222
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15223
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15224
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15225
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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15226
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}'
15236
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15237
hardcode_libdir_flag_spec_F77='-L$libdir'
15238
hardcode_shlibpath_var_F77=no
15245
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15246
# support. Future versions do this automatically, but an explicit c++rt0.o
15247
# does not break anything, and helps significantly (at the cost of a little
15250
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15251
hardcode_libdir_flag_spec_F77='-R$libdir'
15252
hardcode_direct_F77=yes
15253
hardcode_shlibpath_var_F77=no
15256
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15258
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15259
hardcode_direct_F77=yes
15260
hardcode_minus_L_F77=yes
15261
hardcode_shlibpath_var_F77=no
15264
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15265
freebsd* | dragonfly*)
15266
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15267
hardcode_libdir_flag_spec_F77='-R$libdir'
15268
hardcode_direct_F77=yes
15269
hardcode_shlibpath_var_F77=no
15273
if test "$GCC" = yes; then
15274
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'
15276
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'
15278
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15279
hardcode_libdir_separator_F77=:
15280
hardcode_direct_F77=yes
15282
# hardcode_minus_L: Not really in the search PATH,
15283
# but as the default location of the library.
15284
hardcode_minus_L_F77=yes
15285
export_dynamic_flag_spec_F77='${wl}-E'
15289
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15290
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15292
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15294
if test "$with_gnu_ld" = no; then
15295
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15296
hardcode_libdir_separator_F77=:
15298
hardcode_direct_F77=yes
15299
export_dynamic_flag_spec_F77='${wl}-E'
15301
# hardcode_minus_L: Not really in the search PATH,
15302
# but as the default location of the library.
15303
hardcode_minus_L_F77=yes
15308
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15311
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15314
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15317
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15323
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15326
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15329
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15333
if test "$with_gnu_ld" = no; then
15334
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15335
hardcode_libdir_separator_F77=:
15339
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15340
hardcode_direct_F77=no
15341
hardcode_shlibpath_var_F77=no
15344
hardcode_direct_F77=yes
15345
export_dynamic_flag_spec_F77='${wl}-E'
15347
# hardcode_minus_L: Not really in the search PATH,
15348
# but as the default location of the library.
15349
hardcode_minus_L_F77=yes
15355
irix5* | irix6* | nonstopux*)
15356
if test "$GCC" = yes; then
15357
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'
15359
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'
15360
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15362
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15363
hardcode_libdir_separator_F77=:
15364
link_all_deplibs_F77=yes
15367
netbsd* | netbsdelf*-gnu)
15368
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15369
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15371
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15373
hardcode_libdir_flag_spec_F77='-R$libdir'
15374
hardcode_direct_F77=yes
15375
hardcode_shlibpath_var_F77=no
15379
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15380
hardcode_direct_F77=yes
15381
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15382
hardcode_libdir_separator_F77=:
15383
hardcode_shlibpath_var_F77=no
15387
if test -f /usr/libexec/ld.so; then
15388
hardcode_direct_F77=yes
15389
hardcode_shlibpath_var_F77=no
15390
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15391
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15392
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15393
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15394
export_dynamic_flag_spec_F77='${wl}-E'
15397
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15398
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15399
hardcode_libdir_flag_spec_F77='-R$libdir'
15402
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15403
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15413
hardcode_libdir_flag_spec_F77='-L$libdir'
15414
hardcode_minus_L_F77=yes
15415
allow_undefined_flag_F77=unsupported
15416
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'
15417
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15421
if test "$GCC" = yes; then
15422
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15423
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'
15425
allow_undefined_flag_F77=' -expect_unresolved \*'
15426
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'
15428
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15429
hardcode_libdir_separator_F77=:
15432
osf4* | osf5*) # as osf3* with the addition of -msym flag
15433
if test "$GCC" = yes; then
15434
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15435
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'
15436
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15438
allow_undefined_flag_F77=' -expect_unresolved \*'
15439
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'
15440
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~
15441
$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'
15443
# Both c and cxx compiler support -rpath directly
15444
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15446
hardcode_libdir_separator_F77=:
15450
no_undefined_flag_F77=' -z text'
15451
if test "$GCC" = yes; then
15453
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15454
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15455
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15458
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15459
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15460
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15462
hardcode_libdir_flag_spec_F77='-R$libdir'
15463
hardcode_shlibpath_var_F77=no
15465
solaris2.[0-5] | solaris2.[0-5].*) ;;
15467
# The compiler driver will combine and reorder linker options,
15468
# but understands `-z linker_flag'. GCC discards it without `$wl',
15469
# but is careful enough not to reorder.
15470
# Supported since Solaris 2.6 (maybe 2.5.1?)
15471
if test "$GCC" = yes; then
15472
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15474
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15478
link_all_deplibs_F77=yes
15482
if test "x$host_vendor" = xsequent; then
15483
# Use $CC to link under sequent, because it throws in some extra .o
15484
# files that make .init and .fini sections work.
15485
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15487
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15489
hardcode_libdir_flag_spec_F77='-L$libdir'
15490
hardcode_direct_F77=yes
15491
hardcode_minus_L_F77=yes
15492
hardcode_shlibpath_var_F77=no
15496
case $host_vendor in
15498
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15499
hardcode_direct_F77=yes # is this really true???
15502
## LD is ld it makes a PLAMLIB
15503
## CC just makes a GrossModule.
15504
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15505
reload_cmds_F77='$CC -r -o $output$reload_objs'
15506
hardcode_direct_F77=no
15509
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15510
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15513
runpath_var='LD_RUN_PATH'
15514
hardcode_shlibpath_var_F77=no
15518
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15519
hardcode_shlibpath_var_F77=no
15520
export_dynamic_flag_spec_F77='-Bexport'
15524
if test -d /usr/nec; then
15525
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15526
hardcode_shlibpath_var_F77=no
15527
runpath_var=LD_RUN_PATH
15528
hardcode_runpath_var=yes
15533
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15534
no_undefined_flag_F77='${wl}-z,text'
15535
archive_cmds_need_lc_F77=no
15536
hardcode_shlibpath_var_F77=no
15537
runpath_var='LD_RUN_PATH'
15539
if test "$GCC" = yes; then
15540
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15541
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15543
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15544
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15548
sysv5* | sco3.2v5* | sco5v6*)
15549
# Note: We can NOT use -z defs as we might desire, because we do not
15550
# link with -lc, and that would cause any symbols used from libc to
15551
# always be unresolved, which means just about no library would
15552
# ever link correctly. If we're not using GNU ld we use -z text
15553
# though, which does catch some bad symbols but isn't as heavy-handed
15555
no_undefined_flag_F77='${wl}-z,text'
15556
allow_undefined_flag_F77='${wl}-z,nodefs'
15557
archive_cmds_need_lc_F77=no
15558
hardcode_shlibpath_var_F77=no
15559
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15560
hardcode_libdir_separator_F77=':'
15561
link_all_deplibs_F77=yes
15562
export_dynamic_flag_spec_F77='${wl}-Bexport'
15563
runpath_var='LD_RUN_PATH'
15565
if test "$GCC" = yes; then
15566
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15567
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15569
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15570
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15575
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15576
hardcode_libdir_flag_spec_F77='-L$libdir'
15577
hardcode_shlibpath_var_F77=no
15586
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15587
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15588
test "$ld_shlibs_F77" = no && can_build_shared=no
15591
# Do we need to explicitly link libc?
15593
case "x$archive_cmds_need_lc_F77" in
15595
# Assume -lc should be added
15596
archive_cmds_need_lc_F77=yes
15598
if test "$enable_shared" = yes && test "$GCC" = yes; then
15599
case $archive_cmds_F77 in
15601
# FIXME: we may have to deal with multi-command sequences.
15604
# Test whether the compiler implicitly links with -lc since on some
15605
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15606
# to ld, don't add -lc before -lgcc.
15607
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15608
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15610
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15612
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15613
(eval $ac_compile) 2>&5
15615
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616
(exit $ac_status); } 2>conftest.err; then
15619
libobjs=conftest.$ac_objext
15621
wl=$lt_prog_compiler_wl_F77
15622
pic_flag=$lt_prog_compiler_pic_F77
15628
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15629
allow_undefined_flag_F77=
15630
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15631
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634
(exit $ac_status); }
15636
archive_cmds_need_lc_F77=no
15638
archive_cmds_need_lc_F77=yes
15640
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15642
cat conftest.err 1>&5
15645
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15646
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15653
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15654
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15655
library_names_spec=
15656
libname_spec='lib$name'
15660
postuninstall_cmds=
15664
shlibpath_overrides_runpath=unknown
15666
dynamic_linker="$host_os ld.so"
15667
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15669
need_lib_prefix=unknown
15670
hardcode_into_libs=no
15672
# when you set need_version to no, make sure it does not cause -set_version
15673
# flags to be left without arguments
15674
need_version=unknown
15679
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15680
shlibpath_var=LIBPATH
15682
# AIX 3 has no versioning support, so we append a major version to the name.
15683
soname_spec='${libname}${release}${shared_ext}$major'
15690
hardcode_into_libs=yes
15691
if test "$host_cpu" = ia64; then
15692
# AIX 5 supports IA64
15693
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15694
shlibpath_var=LD_LIBRARY_PATH
15696
# With GCC up to 2.95.x, collect2 would create an import file
15697
# for dependence libraries. The import file would start with
15698
# the line `#! .'. This would cause the generated library to
15699
# depend on `.', always an invalid library. This was fixed in
15700
# development snapshots of GCC prior to 3.0.
15702
aix4 | aix4.[01] | aix4.[01].*)
15703
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15705
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15708
can_build_shared=no
15712
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15713
# soname into executable. Probably we can add versioning support to
15714
# collect2, so additional links can be useful in future.
15715
if test "$aix_use_runtimelinking" = yes; then
15716
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15717
# instead of lib<name>.a to let people know that these are not
15718
# typical AIX shared libraries.
15719
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15721
# We preserve .a as extension for shared libraries through AIX4.2
15722
# and later when we are not doing run time linking.
15723
library_names_spec='${libname}${release}.a $libname.a'
15724
soname_spec='${libname}${release}${shared_ext}$major'
15726
shlibpath_var=LIBPATH
15731
library_names_spec='$libname.ixlibrary $libname.a'
15732
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15733
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'
15737
library_names_spec='${libname}${shared_ext}'
15738
dynamic_linker="$host_os ld.so"
15739
shlibpath_var=LIBRARY_PATH
15745
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15746
soname_spec='${libname}${release}${shared_ext}$major'
15747
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15748
shlibpath_var=LD_LIBRARY_PATH
15749
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15750
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15751
# the default ld.so.conf also contains /usr/contrib/lib and
15752
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15753
# libtool to hard-code these into programs
15756
cygwin* | mingw* | pw32*)
15757
version_type=windows
15762
case $GCC,$host_os in
15763
yes,cygwin* | yes,mingw* | yes,pw32*)
15764
library_names_spec='$libname.dll.a'
15765
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15766
postinstall_cmds='base_file=`basename \${file}`~
15767
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15768
dldir=$destdir/`dirname \$dlpath`~
15769
test -d \$dldir || mkdir -p \$dldir~
15770
$install_prog $dir/$dlname \$dldir/$dlname~
15771
chmod a+x \$dldir/$dlname'
15772
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15773
dlpath=$dir/\$dldll~
15775
shlibpath_overrides_runpath=yes
15779
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15780
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15781
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15784
# MinGW DLLs use traditional 'lib' prefix
15785
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15786
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15787
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15788
# It is most probably a Windows format PATH printed by
15789
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15790
# path with ; separators, and with drive letters. We can handle the
15791
# drive letters (cygwin fileutils understands them), so leave them,
15792
# especially as we might pass files found there to a mingw objdump,
15793
# which wouldn't understand a cygwinified path. Ahh.
15794
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15796
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15800
# pw32 DLLs use 'pw' prefix rather than 'lib'
15801
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15807
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15810
dynamic_linker='Win32 ld.exe'
15811
# FIXME: first we should search . and the directory the executable is in
15815
darwin* | rhapsody*)
15816
dynamic_linker="$host_os dyld"
15817
version_type=darwin
15820
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15821
soname_spec='${libname}${release}${major}$shared_ext'
15822
shlibpath_overrides_runpath=yes
15823
shlibpath_var=DYLD_LIBRARY_PATH
15824
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15826
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15833
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15834
soname_spec='${libname}${release}${shared_ext}$major'
15835
shlibpath_var=LD_LIBRARY_PATH
15842
freebsd* | dragonfly*)
15843
# DragonFly does not have aout. When/if they implement a new
15844
# versioning mechanism, adjust this.
15845
if test -x /usr/bin/objformat; then
15846
objformat=`/usr/bin/objformat`
15849
freebsd[123]*) objformat=aout ;;
15850
*) objformat=elf ;;
15853
version_type=freebsd-$objformat
15854
case $version_type in
15856
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15861
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15865
shlibpath_var=LD_LIBRARY_PATH
15868
shlibpath_overrides_runpath=yes
15870
freebsd3.[01]* | freebsdelf3.[01]*)
15871
shlibpath_overrides_runpath=yes
15872
hardcode_into_libs=yes
15874
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15875
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15876
shlibpath_overrides_runpath=no
15877
hardcode_into_libs=yes
15879
*) # from 4.6 on, and DragonFly
15880
shlibpath_overrides_runpath=yes
15881
hardcode_into_libs=yes
15890
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15891
soname_spec='${libname}${release}${shared_ext}$major'
15892
shlibpath_var=LD_LIBRARY_PATH
15893
hardcode_into_libs=yes
15896
hpux9* | hpux10* | hpux11*)
15897
# Give a soname corresponding to the major version so that dld.sl refuses to
15898
# link against other versions.
15905
hardcode_into_libs=yes
15906
dynamic_linker="$host_os dld.so"
15907
shlibpath_var=LD_LIBRARY_PATH
15908
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15909
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15910
soname_spec='${libname}${release}${shared_ext}$major'
15911
if test "X$HPUX_IA64_MODE" = X32; then
15912
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15914
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15916
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15920
hardcode_into_libs=yes
15921
dynamic_linker="$host_os dld.sl"
15922
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15923
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15924
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15925
soname_spec='${libname}${release}${shared_ext}$major'
15926
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15927
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15931
dynamic_linker="$host_os dld.sl"
15932
shlibpath_var=SHLIB_PATH
15933
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15934
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15935
soname_spec='${libname}${release}${shared_ext}$major'
15938
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15939
postinstall_cmds='chmod 555 $lib'
15946
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15947
soname_spec='${libname}${release}${shared_ext}$major'
15948
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15949
shlibpath_var=LD_LIBRARY_PATH
15950
shlibpath_overrides_runpath=no
15951
hardcode_into_libs=yes
15954
irix5* | irix6* | nonstopux*)
15956
nonstopux*) version_type=nonstopux ;;
15958
if test "$lt_cv_prog_gnu_ld" = yes; then
15966
soname_spec='${libname}${release}${shared_ext}$major'
15967
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15969
irix5* | nonstopux*)
15970
libsuff= shlibsuff=
15973
case $LD in # libtool.m4 will add one of these switches to LD
15974
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15975
libsuff= shlibsuff= libmagic=32-bit;;
15976
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15977
libsuff=32 shlibsuff=N32 libmagic=N32;;
15978
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15979
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15980
*) libsuff= shlibsuff= libmagic=never-match;;
15984
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15985
shlibpath_overrides_runpath=no
15986
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15987
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15988
hardcode_into_libs=yes
15991
# No shared lib support for Linux oldld, aout, or coff.
15992
linux*oldld* | linux*aout* | linux*coff*)
15996
# This must be Linux ELF.
15997
linux* | k*bsd*-gnu)
16001
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16002
soname_spec='${libname}${release}${shared_ext}$major'
16003
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16004
shlibpath_var=LD_LIBRARY_PATH
16005
shlibpath_overrides_runpath=no
16006
# This implies no fast_install, which is unacceptable.
16007
# Some rework will be needed to allow for fast_install
16008
# before this can be enabled.
16009
hardcode_into_libs=yes
16011
# Append ld.so.conf contents to the search path
16012
if test -f /etc/ld.so.conf; then
16013
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16014
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16017
# We used to test for /lib/ld.so.1 and disable shared libraries on
16018
# powerpc, because MkLinux only supported shared libraries with the
16019
# GNU dynamic linker. Since this was broken with cross compilers,
16020
# most powerpc-linux boxes support dynamic linking these days and
16021
# people can always --disable-shared, the test was removed, and we
16022
# assume the GNU/Linux dynamic linker is in use.
16023
dynamic_linker='GNU/Linux ld.so'
16030
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16031
soname_spec='${libname}${release}${shared_ext}$major'
16032
shlibpath_var=LD_LIBRARY_PATH
16033
shlibpath_overrides_runpath=no
16034
hardcode_into_libs=yes
16035
dynamic_linker='NetBSD ld.elf_so'
16042
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16043
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16044
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16045
dynamic_linker='NetBSD (a.out) ld.so'
16047
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16048
soname_spec='${libname}${release}${shared_ext}$major'
16049
dynamic_linker='NetBSD ld.elf_so'
16051
shlibpath_var=LD_LIBRARY_PATH
16052
shlibpath_overrides_runpath=yes
16053
hardcode_into_libs=yes
16058
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16059
shlibpath_var=LD_LIBRARY_PATH
16060
shlibpath_overrides_runpath=yes
16067
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16068
soname_spec='${libname}${release}${shared_ext}$major'
16069
shlibpath_var=LD_LIBRARY_PATH
16070
shlibpath_overrides_runpath=yes
16075
sys_lib_dlsearch_path_spec="/usr/lib"
16077
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16079
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16080
*) need_version=no ;;
16082
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16083
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16084
shlibpath_var=LD_LIBRARY_PATH
16085
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16087
openbsd2.[89] | openbsd2.[89].*)
16088
shlibpath_overrides_runpath=no
16091
shlibpath_overrides_runpath=yes
16095
shlibpath_overrides_runpath=yes
16100
libname_spec='$name'
16103
library_names_spec='$libname${shared_ext} $libname.a'
16104
dynamic_linker='OS/2 ld.exe'
16105
shlibpath_var=LIBPATH
16108
osf3* | osf4* | osf5*)
16112
soname_spec='${libname}${release}${shared_ext}$major'
16113
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16114
shlibpath_var=LD_LIBRARY_PATH
16115
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16116
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16127
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16128
soname_spec='${libname}${release}${shared_ext}$major'
16129
shlibpath_var=LD_LIBRARY_PATH
16130
shlibpath_overrides_runpath=yes
16131
hardcode_into_libs=yes
16132
# ldd complains unless libraries are executable
16133
postinstall_cmds='chmod +x $lib'
16138
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16139
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16140
shlibpath_var=LD_LIBRARY_PATH
16141
shlibpath_overrides_runpath=yes
16142
if test "$with_gnu_ld" = yes; then
16150
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16151
soname_spec='${libname}${release}${shared_ext}$major'
16152
shlibpath_var=LD_LIBRARY_PATH
16153
case $host_vendor in
16155
shlibpath_overrides_runpath=no
16157
export_dynamic_flag_spec='${wl}-Blargedynsym'
16158
runpath_var=LD_RUN_PATH
16166
shlibpath_overrides_runpath=no
16167
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16173
if test -d /usr/nec ;then
16175
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16176
soname_spec='$libname${shared_ext}.$major'
16177
shlibpath_var=LD_LIBRARY_PATH
16181
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16182
version_type=freebsd-elf
16185
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16186
soname_spec='${libname}${release}${shared_ext}$major'
16187
shlibpath_var=LD_LIBRARY_PATH
16188
hardcode_into_libs=yes
16189
if test "$with_gnu_ld" = yes; then
16190
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16191
shlibpath_overrides_runpath=no
16193
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16194
shlibpath_overrides_runpath=yes
16197
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16201
sys_lib_dlsearch_path_spec='/usr/lib'
16206
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16207
soname_spec='${libname}${release}${shared_ext}$major'
16208
shlibpath_var=LD_LIBRARY_PATH
16215
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16216
echo "${ECHO_T}$dynamic_linker" >&6; }
16217
test "$dynamic_linker" = no && can_build_shared=no
16219
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16220
echo $ECHO_N "(cached) $ECHO_C" >&6
16222
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16225
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16226
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16227
echo $ECHO_N "(cached) $ECHO_C" >&6
16229
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16232
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16234
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16235
if test "$GCC" = yes; then
16236
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16239
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16240
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16241
hardcode_action_F77=
16242
if test -n "$hardcode_libdir_flag_spec_F77" || \
16243
test -n "$runpath_var_F77" || \
16244
test "X$hardcode_automatic_F77" = "Xyes" ; then
16246
# We can hardcode non-existant directories.
16247
if test "$hardcode_direct_F77" != no &&
16248
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16249
# have to relink, otherwise we might link with an installed library
16250
# when we should be linking with a yet-to-be-installed one
16251
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16252
test "$hardcode_minus_L_F77" != no; then
16253
# Linking always hardcodes the temporary library directory.
16254
hardcode_action_F77=relink
16256
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16257
hardcode_action_F77=immediate
16260
# We cannot hardcode anything, or else we can only hardcode existing
16262
hardcode_action_F77=unsupported
16264
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16265
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16267
if test "$hardcode_action_F77" = relink; then
16268
# Fast installation is not supported
16269
enable_fast_install=no
16270
elif test "$shlibpath_overrides_runpath" = yes ||
16271
test "$enable_shared" = no; then
16272
# Fast installation is not necessary
16273
enable_fast_install=needless
16277
# The else clause should only fire when bootstrapping the
16278
# libtool distribution, otherwise you forgot to ship ltmain.sh
16279
# with your package, and you will get complaints that there are
16280
# no rules to generate ltmain.sh.
16281
if test -f "$ltmain"; then
16282
# See if we are running on zsh, and set the options which allow our commands through
16283
# without removal of \ escapes.
16284
if test -n "${ZSH_VERSION+set}" ; then
16285
setopt NO_GLOB_SUBST
16287
# Now quote all the things that may contain metacharacters while being
16288
# careful not to overquote the AC_SUBSTed values. We take copies of the
16289
# variables and quote the copies for generation of the libtool script.
16290
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16292
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16293
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16294
deplibs_check_method reload_flag reload_cmds need_locks \
16295
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16296
lt_cv_sys_global_symbol_to_c_name_address \
16297
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16298
old_postinstall_cmds old_postuninstall_cmds \
16302
lt_prog_compiler_wl_F77 \
16303
lt_prog_compiler_pic_F77 \
16304
lt_prog_compiler_static_F77 \
16305
lt_prog_compiler_no_builtin_flag_F77 \
16306
export_dynamic_flag_spec_F77 \
16307
thread_safe_flag_spec_F77 \
16308
whole_archive_flag_spec_F77 \
16309
enable_shared_with_static_runtimes_F77 \
16310
old_archive_cmds_F77 \
16311
old_archive_from_new_cmds_F77 \
16312
predep_objects_F77 \
16313
postdep_objects_F77 \
16316
compiler_lib_search_path_F77 \
16317
compiler_lib_search_dirs_F77 \
16319
archive_expsym_cmds_F77 \
16320
postinstall_cmds_F77 \
16321
postuninstall_cmds_F77 \
16322
old_archive_from_expsyms_cmds_F77 \
16323
allow_undefined_flag_F77 \
16324
no_undefined_flag_F77 \
16325
export_symbols_cmds_F77 \
16326
hardcode_libdir_flag_spec_F77 \
16327
hardcode_libdir_flag_spec_ld_F77 \
16328
hardcode_libdir_separator_F77 \
16329
hardcode_automatic_F77 \
16331
module_expsym_cmds_F77 \
16332
lt_cv_prog_compiler_c_o_F77 \
16333
fix_srcfile_path_F77 \
16334
exclude_expsyms_F77 \
16335
include_expsyms_F77; do
16338
old_archive_cmds_F77 | \
16339
old_archive_from_new_cmds_F77 | \
16340
archive_cmds_F77 | \
16341
archive_expsym_cmds_F77 | \
16342
module_cmds_F77 | \
16343
module_expsym_cmds_F77 | \
16344
old_archive_from_expsyms_cmds_F77 | \
16345
export_symbols_cmds_F77 | \
16346
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16347
postinstall_cmds | postuninstall_cmds | \
16348
old_postinstall_cmds | old_postuninstall_cmds | \
16349
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16350
# Double-quote double-evaled strings.
16351
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16354
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16360
*'\$0 --fallback-echo"')
16361
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16367
cat <<__EOF__ >> "$cfgfile"
16368
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16370
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16372
# Shell to use when invoking shell scripts.
16375
# Whether or not to build shared libraries.
16376
build_libtool_libs=$enable_shared
16378
# Whether or not to build static libraries.
16379
build_old_libs=$enable_static
16381
# Whether or not to add -lc for building shared libraries.
16382
build_libtool_need_lc=$archive_cmds_need_lc_F77
16384
# Whether or not to disallow shared libs when runtime libs are static
16385
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16387
# Whether or not to optimize for fast installation.
16388
fast_install=$enable_fast_install
16391
host_alias=$host_alias
16395
# The build system.
16396
build_alias=$build_alias
16400
# An echo program that does not interpret backslashes.
16405
AR_FLAGS=$lt_AR_FLAGS
16410
# LTCC compiler flags.
16411
LTCFLAGS=$lt_LTCFLAGS
16413
# A language-specific compiler.
16414
CC=$lt_compiler_F77
16416
# Is the compiler the GNU C compiler?
16422
# The linker used to build libraries.
16425
# Whether we need hard or soft links.
16428
# A BSD-compatible nm program.
16431
# A symbol stripping program
16434
# Used to examine libraries when file_magic_cmd begins "file"
16435
MAGIC_CMD=$MAGIC_CMD
16437
# Used on cygwin: DLL creation program.
16440
# Used on cygwin: object dumper.
16443
# Used on cygwin: assembler.
16446
# The name of the directory that contains temporary libtool files.
16449
# How to create reloadable object files.
16450
reload_flag=$lt_reload_flag
16451
reload_cmds=$lt_reload_cmds
16453
# How to pass a linker flag through the compiler.
16454
wl=$lt_lt_prog_compiler_wl_F77
16456
# Object file suffix (normally "o").
16457
objext="$ac_objext"
16459
# Old archive suffix (normally "a").
16462
# Shared library suffix (normally ".so").
16463
shrext_cmds='$shrext_cmds'
16465
# Executable file suffix (normally "").
16468
# Additional compiler flags for building library objects.
16469
pic_flag=$lt_lt_prog_compiler_pic_F77
16472
# What is the maximum length of a command?
16473
max_cmd_len=$lt_cv_sys_max_cmd_len
16475
# Does compiler simultaneously support -c and -o options?
16476
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16478
# Must we lock files when doing compilation?
16479
need_locks=$lt_need_locks
16481
# Do we need the lib prefix for modules?
16482
need_lib_prefix=$need_lib_prefix
16484
# Do we need a version for libraries?
16485
need_version=$need_version
16487
# Whether dlopen is supported.
16488
dlopen_support=$enable_dlopen
16490
# Whether dlopen of programs is supported.
16491
dlopen_self=$enable_dlopen_self
16493
# Whether dlopen of statically linked programs is supported.
16494
dlopen_self_static=$enable_dlopen_self_static
16496
# Compiler flag to prevent dynamic linking.
16497
link_static_flag=$lt_lt_prog_compiler_static_F77
16499
# Compiler flag to turn off builtin functions.
16500
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16502
# Compiler flag to allow reflexive dlopens.
16503
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16505
# Compiler flag to generate shared objects directly from archives.
16506
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16508
# Compiler flag to generate thread-safe objects.
16509
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16511
# Library versioning type.
16512
version_type=$version_type
16514
# Format of library name prefix.
16515
libname_spec=$lt_libname_spec
16517
# List of archive names. First name is the real one, the rest are links.
16518
# The last name is the one that the linker finds with -lNAME.
16519
library_names_spec=$lt_library_names_spec
16521
# The coded name of the library, if different from the real name.
16522
soname_spec=$lt_soname_spec
16524
# Commands used to build and install an old-style archive.
16526
old_archive_cmds=$lt_old_archive_cmds_F77
16527
old_postinstall_cmds=$lt_old_postinstall_cmds
16528
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16530
# Create an old-style archive from a shared archive.
16531
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16533
# Create a temporary old-style archive to link instead of a shared archive.
16534
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16536
# Commands used to build and install a shared archive.
16537
archive_cmds=$lt_archive_cmds_F77
16538
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16539
postinstall_cmds=$lt_postinstall_cmds
16540
postuninstall_cmds=$lt_postuninstall_cmds
16542
# Commands used to build a loadable module (assumed same as above if empty)
16543
module_cmds=$lt_module_cmds_F77
16544
module_expsym_cmds=$lt_module_expsym_cmds_F77
16546
# Commands to strip libraries.
16547
old_striplib=$lt_old_striplib
16548
striplib=$lt_striplib
16550
# Dependencies to place before the objects being linked to create a
16552
predep_objects=$lt_predep_objects_F77
16554
# Dependencies to place after the objects being linked to create a
16556
postdep_objects=$lt_postdep_objects_F77
16558
# Dependencies to place before the objects being linked to create a
16560
predeps=$lt_predeps_F77
16562
# Dependencies to place after the objects being linked to create a
16564
postdeps=$lt_postdeps_F77
16566
# The directories searched by this compiler when creating a shared
16568
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16570
# The library search path used internally by the compiler when linking
16571
# a shared library.
16572
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16574
# Method to check whether dependent libraries are shared objects.
16575
deplibs_check_method=$lt_deplibs_check_method
16577
# Command to use when deplibs_check_method == file_magic.
16578
file_magic_cmd=$lt_file_magic_cmd
16580
# Flag that allows shared libraries with undefined symbols to be built.
16581
allow_undefined_flag=$lt_allow_undefined_flag_F77
16583
# Flag that forces no undefined symbols.
16584
no_undefined_flag=$lt_no_undefined_flag_F77
16586
# Commands used to finish a libtool library installation in a directory.
16587
finish_cmds=$lt_finish_cmds
16589
# Same as above, but a single script fragment to be evaled but not shown.
16590
finish_eval=$lt_finish_eval
16592
# Take the output of nm and produce a listing of raw symbols and C names.
16593
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16595
# Transform the output of nm in a proper C declaration
16596
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16598
# Transform the output of nm in a C name address pair
16599
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16601
# This is the shared library runtime path variable.
16602
runpath_var=$runpath_var
16604
# This is the shared library path variable.
16605
shlibpath_var=$shlibpath_var
16607
# Is shlibpath searched before the hard-coded library search path?
16608
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16610
# How to hardcode a shared library path into an executable.
16611
hardcode_action=$hardcode_action_F77
16613
# Whether we should hardcode library paths into libraries.
16614
hardcode_into_libs=$hardcode_into_libs
16616
# Flag to hardcode \$libdir into a binary during linking.
16617
# This must work even if \$libdir does not exist.
16618
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16620
# If ld is used when linking, flag to hardcode \$libdir into
16621
# a binary during linking. This must work even if \$libdir does
16623
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16625
# Whether we need a single -rpath flag with a separated argument.
16626
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16628
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16629
# resulting binary.
16630
hardcode_direct=$hardcode_direct_F77
16632
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16633
# resulting binary.
16634
hardcode_minus_L=$hardcode_minus_L_F77
16636
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16637
# the resulting binary.
16638
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16640
# Set to yes if building a shared library automatically hardcodes DIR into the library
16641
# and all subsequent libraries and executables linked against it.
16642
hardcode_automatic=$hardcode_automatic_F77
16644
# Variables whose values should be saved in libtool wrapper scripts and
16645
# restored at relink time.
16646
variables_saved_for_relink="$variables_saved_for_relink"
16648
# Whether libtool must link a program against all its dependency libraries.
16649
link_all_deplibs=$link_all_deplibs_F77
16651
# Compile-time system search path for libraries
16652
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16654
# Run-time system search path for libraries
16655
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16657
# Fix the shell variable \$srcfile for the compiler.
16658
fix_srcfile_path=$lt_fix_srcfile_path
16660
# Set to yes if exported symbols are required.
16661
always_export_symbols=$always_export_symbols_F77
16663
# The commands to list exported symbols.
16664
export_symbols_cmds=$lt_export_symbols_cmds_F77
16666
# The commands to extract the exported symbol list from a shared archive.
16667
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16669
# Symbols that should not be listed in the preloaded symbols.
16670
exclude_expsyms=$lt_exclude_expsyms_F77
16672
# Symbols that must always be exported.
16673
include_expsyms=$lt_include_expsyms_F77
16675
# ### END LIBTOOL TAG CONFIG: $tagname
16681
# If there is no Makefile yet, we rely on a make rule to execute
16682
# `config.status --recheck' to rerun these tests and create the
16683
# libtool script then.
16684
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16685
if test -f "$ltmain_in"; then
16686
test -f Makefile && make "$ltmain"
16692
ac_cpp='$CXXCPP $CPPFLAGS'
16693
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16694
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16695
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16705
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16708
# Source file extension for Java test sources.
16711
# Object file extension for compiled Java test sources.
16715
# Code to be used in simple compile tests
16716
lt_simple_compile_test_code="class foo {}"
16718
# Code to be used in simple link tests
16719
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16721
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16723
# If no C compiler was specified, use CC.
16726
# If no C compiler flags were specified, use CFLAGS.
16727
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16729
# Allow CC to be a program name with arguments.
16733
# save warnings/boilerplate of simple test code
16734
ac_outfile=conftest.$ac_objext
16735
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16736
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16737
_lt_compiler_boilerplate=`cat conftest.err`
16740
ac_outfile=conftest.$ac_objext
16741
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16742
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16743
_lt_linker_boilerplate=`cat conftest.err`
16747
# Allow CC to be a program name with arguments.
16752
for cc_temp in $compiler""; do
16754
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16755
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16760
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16763
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16764
archive_cmds_need_lc_GCJ=no
16766
old_archive_cmds_GCJ=$old_archive_cmds
16769
lt_prog_compiler_no_builtin_flag_GCJ=
16771
if test "$GCC" = yes; then
16772
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16775
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16776
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16777
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16778
echo $ECHO_N "(cached) $ECHO_C" >&6
16780
lt_cv_prog_compiler_rtti_exceptions=no
16781
ac_outfile=conftest.$ac_objext
16782
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16783
lt_compiler_flag="-fno-rtti -fno-exceptions"
16784
# Insert the option either (1) after the last *FLAGS variable, or
16785
# (2) before a word containing "conftest.", or (3) at the end.
16786
# Note that $ac_compile itself does not contain backslashes and begins
16787
# with a dollar sign (not a hyphen), so the echo should work correctly.
16788
# The option is referenced via a variable to avoid confusing sed.
16789
lt_compile=`echo "$ac_compile" | $SED \
16790
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16791
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16792
-e 's:$: $lt_compiler_flag:'`
16793
(eval echo "\"\$as_me:16793: $lt_compile\"" >&5)
16794
(eval "$lt_compile" 2>conftest.err)
16796
cat conftest.err >&5
16797
echo "$as_me:16797: \$? = $ac_status" >&5
16798
if (exit $ac_status) && test -s "$ac_outfile"; then
16799
# The compiler can only warn and ignore the option if not recognized
16800
# So say no if there are warnings other than the usual output.
16801
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16802
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16803
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16804
lt_cv_prog_compiler_rtti_exceptions=yes
16810
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16811
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16813
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16814
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16821
lt_prog_compiler_wl_GCJ=
16822
lt_prog_compiler_pic_GCJ=
16823
lt_prog_compiler_static_GCJ=
16825
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16826
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16828
if test "$GCC" = yes; then
16829
lt_prog_compiler_wl_GCJ='-Wl,'
16830
lt_prog_compiler_static_GCJ='-static'
16834
# All AIX code is PIC.
16835
if test "$host_cpu" = ia64; then
16836
# AIX 5 now supports IA64 processor
16837
lt_prog_compiler_static_GCJ='-Bstatic'
16842
# FIXME: we need at least 68020 code to build shared libraries, but
16843
# adding the `-m68020' flag to GCC prevents building anything better,
16845
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16848
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16849
# PIC is the default for these OSes.
16852
mingw* | cygwin* | pw32* | os2*)
16853
# This hack is so that the source file can tell whether it is being
16854
# built for inclusion in a dll (and should export symbols for example).
16855
# Although the cygwin gcc ignores -fPIC, still need this for old-style
16856
# (--disable-auto-import) libraries
16860
darwin* | rhapsody*)
16861
# PIC is the default on this platform
16862
# Common symbols not allowed in MH_DYLIB files
16863
lt_prog_compiler_pic_GCJ='-fno-common'
16867
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16868
# Instead, we relocate shared libraries at runtime.
16872
# Just because we use GCC doesn't mean we suddenly get shared libraries
16873
# on systems that don't support them.
16874
lt_prog_compiler_can_build_shared_GCJ=no
16879
if test -d /usr/nec; then
16880
lt_prog_compiler_pic_GCJ=-Kconform_pic
16885
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16886
# not for PA HP-UX.
16892
lt_prog_compiler_pic_GCJ='-fPIC'
16898
lt_prog_compiler_pic_GCJ='-fPIC'
16902
# PORTME Check for flag to pass linker flags through the system compiler.
16905
lt_prog_compiler_wl_GCJ='-Wl,'
16906
if test "$host_cpu" = ia64; then
16907
# AIX 5 now supports IA64 processor
16908
lt_prog_compiler_static_GCJ='-Bstatic'
16910
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16914
# PIC is the default on this platform
16915
# Common symbols not allowed in MH_DYLIB files
16916
case $cc_basename in
16918
lt_prog_compiler_pic_GCJ='-qnocommon'
16919
lt_prog_compiler_wl_GCJ='-Wl,'
16924
mingw* | cygwin* | pw32* | os2*)
16925
# This hack is so that the source file can tell whether it is being
16926
# built for inclusion in a dll (and should export symbols for example).
16930
hpux9* | hpux10* | hpux11*)
16931
lt_prog_compiler_wl_GCJ='-Wl,'
16932
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16933
# not for PA HP-UX.
16939
lt_prog_compiler_pic_GCJ='+Z'
16942
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16943
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16946
irix5* | irix6* | nonstopux*)
16947
lt_prog_compiler_wl_GCJ='-Wl,'
16948
# PIC (with -KPIC) is the default.
16949
lt_prog_compiler_static_GCJ='-non_shared'
16953
lt_prog_compiler_pic_GCJ='-KPIC'
16954
lt_prog_compiler_static_GCJ='-Bstatic'
16957
linux* | k*bsd*-gnu)
16958
case $cc_basename in
16960
lt_prog_compiler_wl_GCJ='-Wl,'
16961
lt_prog_compiler_pic_GCJ='-KPIC'
16962
lt_prog_compiler_static_GCJ='-static'
16964
pgcc* | pgf77* | pgf90* | pgf95*)
16965
# Portland Group compilers (*not* the Pentium gcc compiler,
16966
# which looks to be a dead project)
16967
lt_prog_compiler_wl_GCJ='-Wl,'
16968
lt_prog_compiler_pic_GCJ='-fpic'
16969
lt_prog_compiler_static_GCJ='-Bstatic'
16972
lt_prog_compiler_wl_GCJ='-Wl,'
16973
# All Alpha code is PIC.
16974
lt_prog_compiler_static_GCJ='-non_shared'
16977
case `$CC -V 2>&1 | sed 5q` in
16980
lt_prog_compiler_pic_GCJ='-KPIC'
16981
lt_prog_compiler_static_GCJ='-Bstatic'
16982
lt_prog_compiler_wl_GCJ='-Wl,'
16985
# Sun Fortran 8.3 passes all unrecognized flags to the linker
16986
lt_prog_compiler_pic_GCJ='-KPIC'
16987
lt_prog_compiler_static_GCJ='-Bstatic'
16988
lt_prog_compiler_wl_GCJ=''
16995
osf3* | osf4* | osf5*)
16996
lt_prog_compiler_wl_GCJ='-Wl,'
16997
# All OSF/1 code is PIC.
16998
lt_prog_compiler_static_GCJ='-non_shared'
17002
lt_prog_compiler_static_GCJ='-non_shared'
17006
lt_prog_compiler_pic_GCJ='-KPIC'
17007
lt_prog_compiler_static_GCJ='-Bstatic'
17008
case $cc_basename in
17009
f77* | f90* | f95*)
17010
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17012
lt_prog_compiler_wl_GCJ='-Wl,';;
17017
lt_prog_compiler_wl_GCJ='-Qoption ld '
17018
lt_prog_compiler_pic_GCJ='-PIC'
17019
lt_prog_compiler_static_GCJ='-Bstatic'
17022
sysv4 | sysv4.2uw2* | sysv4.3*)
17023
lt_prog_compiler_wl_GCJ='-Wl,'
17024
lt_prog_compiler_pic_GCJ='-KPIC'
17025
lt_prog_compiler_static_GCJ='-Bstatic'
17029
if test -d /usr/nec ;then
17030
lt_prog_compiler_pic_GCJ='-Kconform_pic'
17031
lt_prog_compiler_static_GCJ='-Bstatic'
17035
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17036
lt_prog_compiler_wl_GCJ='-Wl,'
17037
lt_prog_compiler_pic_GCJ='-KPIC'
17038
lt_prog_compiler_static_GCJ='-Bstatic'
17042
lt_prog_compiler_wl_GCJ='-Wl,'
17043
lt_prog_compiler_can_build_shared_GCJ=no
17047
lt_prog_compiler_pic_GCJ='-pic'
17048
lt_prog_compiler_static_GCJ='-Bstatic'
17052
lt_prog_compiler_can_build_shared_GCJ=no
17057
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17058
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17061
# Check to make sure the PIC flag actually works.
17063
if test -n "$lt_prog_compiler_pic_GCJ"; then
17065
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17066
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17067
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17068
echo $ECHO_N "(cached) $ECHO_C" >&6
17070
lt_cv_prog_compiler_pic_works_GCJ=no
17071
ac_outfile=conftest.$ac_objext
17072
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17073
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17074
# Insert the option either (1) after the last *FLAGS variable, or
17075
# (2) before a word containing "conftest.", or (3) at the end.
17076
# Note that $ac_compile itself does not contain backslashes and begins
17077
# with a dollar sign (not a hyphen), so the echo should work correctly.
17078
# The option is referenced via a variable to avoid confusing sed.
17079
lt_compile=`echo "$ac_compile" | $SED \
17080
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17081
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17082
-e 's:$: $lt_compiler_flag:'`
17083
(eval echo "\"\$as_me:17083: $lt_compile\"" >&5)
17084
(eval "$lt_compile" 2>conftest.err)
17086
cat conftest.err >&5
17087
echo "$as_me:17087: \$? = $ac_status" >&5
17088
if (exit $ac_status) && test -s "$ac_outfile"; then
17089
# The compiler can only warn and ignore the option if not recognized
17090
# So say no if there are warnings other than the usual output.
17091
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17092
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17093
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17094
lt_cv_prog_compiler_pic_works_GCJ=yes
17100
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17101
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17103
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17104
case $lt_prog_compiler_pic_GCJ in
17106
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17109
lt_prog_compiler_pic_GCJ=
17110
lt_prog_compiler_can_build_shared_GCJ=no
17115
# For platforms which do not support PIC, -DPIC is meaningless:
17117
lt_prog_compiler_pic_GCJ=
17120
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17125
# Check to make sure the static flag actually works.
17127
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17128
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17129
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17130
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17131
echo $ECHO_N "(cached) $ECHO_C" >&6
17133
lt_cv_prog_compiler_static_works_GCJ=no
17134
save_LDFLAGS="$LDFLAGS"
17135
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17136
echo "$lt_simple_link_test_code" > conftest.$ac_ext
17137
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17138
# The linker can only warn and ignore the option if not recognized
17139
# So say no if there are warnings
17140
if test -s conftest.err; then
17141
# Append any errors to the config.log.
17142
cat conftest.err 1>&5
17143
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17144
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17145
if diff conftest.exp conftest.er2 >/dev/null; then
17146
lt_cv_prog_compiler_static_works_GCJ=yes
17149
lt_cv_prog_compiler_static_works_GCJ=yes
17153
LDFLAGS="$save_LDFLAGS"
17156
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17157
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17159
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17162
lt_prog_compiler_static_GCJ=
17166
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17167
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17168
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17169
echo $ECHO_N "(cached) $ECHO_C" >&6
17171
lt_cv_prog_compiler_c_o_GCJ=no
17172
$rm -r conftest 2>/dev/null
17176
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17178
lt_compiler_flag="-o out/conftest2.$ac_objext"
17179
# Insert the option either (1) after the last *FLAGS variable, or
17180
# (2) before a word containing "conftest.", or (3) at the end.
17181
# Note that $ac_compile itself does not contain backslashes and begins
17182
# with a dollar sign (not a hyphen), so the echo should work correctly.
17183
lt_compile=`echo "$ac_compile" | $SED \
17184
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17185
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17186
-e 's:$: $lt_compiler_flag:'`
17187
(eval echo "\"\$as_me:17187: $lt_compile\"" >&5)
17188
(eval "$lt_compile" 2>out/conftest.err)
17190
cat out/conftest.err >&5
17191
echo "$as_me:17191: \$? = $ac_status" >&5
17192
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17194
# The compiler can only warn and ignore the option if not recognized
17195
# So say no if there are warnings
17196
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17197
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17198
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17199
lt_cv_prog_compiler_c_o_GCJ=yes
17204
# SGI C++ compiler will create directory out/ii_files/ for
17205
# template instantiation
17206
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17207
$rm out/* && rmdir out
17213
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17214
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17217
hard_links="nottested"
17218
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17219
# do not overwrite the value of need_locks provided by the user
17220
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17221
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17224
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17226
ln conftest.a conftest.b 2>&5 || hard_links=no
17227
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17228
{ echo "$as_me:$LINENO: result: $hard_links" >&5
17229
echo "${ECHO_T}$hard_links" >&6; }
17230
if test "$hard_links" = no; then
17231
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17232
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17239
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17240
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17243
allow_undefined_flag_GCJ=
17244
enable_shared_with_static_runtimes_GCJ=no
17246
archive_expsym_cmds_GCJ=
17247
old_archive_From_new_cmds_GCJ=
17248
old_archive_from_expsyms_cmds_GCJ=
17249
export_dynamic_flag_spec_GCJ=
17250
whole_archive_flag_spec_GCJ=
17251
thread_safe_flag_spec_GCJ=
17252
hardcode_libdir_flag_spec_GCJ=
17253
hardcode_libdir_flag_spec_ld_GCJ=
17254
hardcode_libdir_separator_GCJ=
17255
hardcode_direct_GCJ=no
17256
hardcode_minus_L_GCJ=no
17257
hardcode_shlibpath_var_GCJ=unsupported
17258
link_all_deplibs_GCJ=unknown
17259
hardcode_automatic_GCJ=no
17261
module_expsym_cmds_GCJ=
17262
always_export_symbols_GCJ=no
17263
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17264
# include_expsyms should be a list of space-separated symbols to be *always*
17265
# included in the symbol list
17266
include_expsyms_GCJ=
17267
# exclude_expsyms can be an extended regexp of symbols to exclude
17268
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17269
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17270
# as well as any symbol that contains `d'.
17271
exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17272
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17273
# platforms (ab)use it in PIC code, but their linkers get confused if
17274
# the symbol is explicitly referenced. Since portable code cannot
17275
# rely on this symbol name, it's probably fine to never include it in
17276
# preloaded symbol tables.
17277
# Exclude shared library initialization/finalization symbols.
17278
extract_expsyms_cmds=
17279
# Just being paranoid about ensuring that cc_basename is set.
17280
for cc_temp in $compiler""; do
17282
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17283
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17288
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17291
cygwin* | mingw* | pw32*)
17292
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17293
# When not using gcc, we currently assume that we are using
17294
# Microsoft Visual C++.
17295
if test "$GCC" != yes; then
17300
# we just hope/assume this is gcc and not c89 (= MSVC++)
17309
if test "$with_gnu_ld" = yes; then
17310
# If archive_cmds runs LD, not CC, wlarc should be empty
17313
# Set some defaults for GNU ld with shared library support. These
17314
# are reset later if shared libraries are not supported. Putting them
17315
# here allows them to be overridden if necessary.
17316
runpath_var=LD_RUN_PATH
17317
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17318
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17319
# ancient GNU ld didn't support --whole-archive et. al.
17320
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17321
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17323
whole_archive_flag_spec_GCJ=
17325
supports_anon_versioning=no
17326
case `$LD -v 2>/dev/null` in
17327
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17328
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17329
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17330
*\ 2.11.*) ;; # other 2.11 versions
17331
*) supports_anon_versioning=yes ;;
17334
# See if GNU ld supports shared libraries.
17337
# On AIX/PPC, the GNU linker is very broken
17338
if test "$host_cpu" != ia64; then
17342
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17343
*** to be unable to reliably create shared libraries on AIX.
17344
*** Therefore, libtool is disabling shared libraries support. If you
17345
*** really care for shared libraries, you may want to modify your PATH
17346
*** so that a non-GNU linker is found, and then restart.
17353
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)'
17354
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17355
hardcode_minus_L_GCJ=yes
17357
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17358
# that the semantics of dynamic libraries on AmigaOS, at least up
17359
# to version 4, is to share data among multiple programs linked
17360
# with the same dynamic library. Since this doesn't match the
17361
# behavior of shared libraries on other platforms, we can't use
17367
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17368
allow_undefined_flag_GCJ=unsupported
17369
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17370
# support --undefined. This deserves some investigation. FIXME
17371
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17377
cygwin* | mingw* | pw32*)
17378
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17379
# as there is no search path for DLLs.
17380
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17381
allow_undefined_flag_GCJ=unsupported
17382
always_export_symbols_GCJ=no
17383
enable_shared_with_static_runtimes_GCJ=yes
17384
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17386
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17387
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17388
# If the export-symbols file already is a .def file (1st line
17389
# is EXPORTS), use it as is; otherwise, prepend...
17390
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17391
cp $export_symbols $output_objdir/$soname.def;
17393
echo EXPORTS > $output_objdir/$soname.def;
17394
cat $export_symbols >> $output_objdir/$soname.def;
17396
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17403
hardcode_direct_GCJ=no
17404
hardcode_shlibpath_var_GCJ=no
17405
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17406
export_dynamic_flag_spec_GCJ='${wl}-E'
17407
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17408
# Instead, shared libraries are loaded at an image base (0x10000000 by
17409
# default) and relocated if they conflict, which is a slow very memory
17410
# consuming and fragmenting process. To avoid this, we pick a random,
17411
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17412
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17413
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'
17414
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'
17417
gnu* | linux* | k*bsd*-gnu)
17418
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17420
case $cc_basename,$host_cpu in
17421
pgcc*) # Portland Group C compiler
17422
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'
17423
tmp_addflag=' $pic_flag'
17425
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17426
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'
17427
tmp_addflag=' $pic_flag -Mnomain' ;;
17428
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17429
tmp_addflag=' -i_dynamic' ;;
17430
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17431
tmp_addflag=' -i_dynamic -nofor_main' ;;
17432
ifc* | ifort*) # Intel Fortran compiler
17433
tmp_addflag=' -nofor_main' ;;
17435
case `$CC -V 2>&1 | sed 5q` in
17436
*Sun\ C*) # Sun C 5.9
17437
whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17438
tmp_sharedflag='-G' ;;
17439
*Sun\ F*) # Sun Fortran 8.3
17440
tmp_sharedflag='-G' ;;
17442
tmp_sharedflag='-shared' ;;
17444
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17446
if test $supports_anon_versioning = yes; then
17447
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17448
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17449
$echo "local: *; };" >> $output_objdir/$libname.ver~
17450
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17452
link_all_deplibs_GCJ=no
17458
netbsd* | netbsdelf*-gnu)
17459
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17460
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17463
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17464
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17469
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17473
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17474
*** create shared libraries on Solaris systems. Therefore, libtool
17475
*** is disabling shared libraries support. We urge you to upgrade GNU
17476
*** binutils to release 2.9.1 or newer. Another option is to modify
17477
*** your PATH or compiler configuration so that the native linker is
17478
*** used, and then restart.
17481
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17482
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17483
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17489
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17490
case `$LD -v 2>&1` in
17491
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17495
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17496
*** reliably create shared libraries on SCO systems. Therefore, libtool
17497
*** is disabling shared libraries support. We urge you to upgrade GNU
17498
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17499
*** your PATH or compiler configuration so that the native linker is
17500
*** used, and then restart.
17505
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17506
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17507
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17508
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17517
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17519
hardcode_direct_GCJ=yes
17520
hardcode_shlibpath_var_GCJ=no
17524
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17525
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17526
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17533
if test "$ld_shlibs_GCJ" = no; then
17535
hardcode_libdir_flag_spec_GCJ=
17536
export_dynamic_flag_spec_GCJ=
17537
whole_archive_flag_spec_GCJ=
17540
# PORTME fill in a description of your system's linker (not GNU ld)
17543
allow_undefined_flag_GCJ=unsupported
17544
always_export_symbols_GCJ=yes
17545
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'
17546
# Note: this linker hardcodes the directories in LIBPATH if there
17547
# are no directories specified by -L.
17548
hardcode_minus_L_GCJ=yes
17549
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17550
# Neither direct hardcoding nor static linking is supported with a
17552
hardcode_direct_GCJ=unsupported
17557
if test "$host_cpu" = ia64; then
17558
# On IA64, the linker does run time linking by default, so we don't
17559
# have to do anything special.
17560
aix_use_runtimelinking=no
17561
exp_sym_flag='-Bexport'
17564
# If we're using GNU nm, then we don't want the "-C" option.
17565
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17566
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17567
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'
17569
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'
17571
aix_use_runtimelinking=no
17573
# Test if we are trying to use run time linking or normal
17574
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17575
# need to do runtime linking.
17576
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17577
for ld_flag in $LDFLAGS; do
17578
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17579
aix_use_runtimelinking=yes
17586
exp_sym_flag='-bexport'
17587
no_entry_flag='-bnoentry'
17590
# When large executables or shared objects are built, AIX ld can
17591
# have problems creating the table of contents. If linking a library
17592
# or program results in "error TOC overflow" add -mminimal-toc to
17593
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17594
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17596
archive_cmds_GCJ=''
17597
hardcode_direct_GCJ=yes
17598
hardcode_libdir_separator_GCJ=':'
17599
link_all_deplibs_GCJ=yes
17601
if test "$GCC" = yes; then
17602
case $host_os in aix4.[012]|aix4.[012].*)
17603
# We only want to do this on AIX 4.2 and lower, the check
17604
# below for broken collect2 doesn't work under 4.3+
17605
collect2name=`${CC} -print-prog-name=collect2`
17606
if test -f "$collect2name" && \
17607
strings "$collect2name" | grep resolve_lib_name >/dev/null
17609
# We have reworked collect2
17612
# We have old collect2
17613
hardcode_direct_GCJ=unsupported
17614
# It fails to find uninstalled libraries when the uninstalled
17615
# path is not listed in the libpath. Setting hardcode_minus_L
17616
# to unsupported forces relinking
17617
hardcode_minus_L_GCJ=yes
17618
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17619
hardcode_libdir_separator_GCJ=
17623
shared_flag='-shared'
17624
if test "$aix_use_runtimelinking" = yes; then
17625
shared_flag="$shared_flag "'${wl}-G'
17629
if test "$host_cpu" = ia64; then
17630
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17631
# chokes on -Wl,-G. The following line is correct:
17634
if test "$aix_use_runtimelinking" = yes; then
17635
shared_flag='${wl}-G'
17637
shared_flag='${wl}-bM:SRE'
17642
# It seems that -bexpall does not export symbols beginning with
17643
# underscore (_), so it is better to generate a list of symbols to export.
17644
always_export_symbols_GCJ=yes
17645
if test "$aix_use_runtimelinking" = yes; then
17646
# Warning - without using the other runtime loading flags (-brtl),
17647
# -berok will link without error, but may produce a broken library.
17648
allow_undefined_flag_GCJ='-berok'
17649
# Determine the default libpath from the value encoded in an empty executable.
17650
cat >conftest.$ac_ext <<_ACEOF
17653
cat confdefs.h >>conftest.$ac_ext
17654
cat >>conftest.$ac_ext <<_ACEOF
17655
/* end confdefs.h. */
17665
rm -f conftest.$ac_objext conftest$ac_exeext
17666
if { (ac_try="$ac_link"
17667
case "(($ac_try" in
17668
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17669
*) ac_try_echo=$ac_try;;
17671
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17672
(eval "$ac_link") 2>conftest.er1
17674
grep -v '^ *+' conftest.er1 >conftest.err
17676
cat conftest.err >&5
17677
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678
(exit $ac_status); } && {
17679
test -z "$ac_cxx_werror_flag" ||
17680
test ! -s conftest.err
17681
} && test -s conftest$ac_exeext &&
17682
$as_test_x conftest$ac_exeext; then
17684
lt_aix_libpath_sed='
17685
/Import File Strings/,/^$/ {
17691
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17692
# Check for a 64-bit object if we didn't find anything.
17693
if test -z "$aix_libpath"; then
17694
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17697
echo "$as_me: failed program was:" >&5
17698
sed 's/^/| /' conftest.$ac_ext >&5
17703
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17704
conftest$ac_exeext conftest.$ac_ext
17705
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17707
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17708
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"
17710
if test "$host_cpu" = ia64; then
17711
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17712
allow_undefined_flag_GCJ="-z nodefs"
17713
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"
17715
# Determine the default libpath from the value encoded in an empty executable.
17716
cat >conftest.$ac_ext <<_ACEOF
17719
cat confdefs.h >>conftest.$ac_ext
17720
cat >>conftest.$ac_ext <<_ACEOF
17721
/* end confdefs.h. */
17731
rm -f conftest.$ac_objext conftest$ac_exeext
17732
if { (ac_try="$ac_link"
17733
case "(($ac_try" in
17734
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735
*) ac_try_echo=$ac_try;;
17737
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738
(eval "$ac_link") 2>conftest.er1
17740
grep -v '^ *+' conftest.er1 >conftest.err
17742
cat conftest.err >&5
17743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744
(exit $ac_status); } && {
17745
test -z "$ac_cxx_werror_flag" ||
17746
test ! -s conftest.err
17747
} && test -s conftest$ac_exeext &&
17748
$as_test_x conftest$ac_exeext; then
17750
lt_aix_libpath_sed='
17751
/Import File Strings/,/^$/ {
17757
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17758
# Check for a 64-bit object if we didn't find anything.
17759
if test -z "$aix_libpath"; then
17760
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17763
echo "$as_me: failed program was:" >&5
17764
sed 's/^/| /' conftest.$ac_ext >&5
17769
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17770
conftest$ac_exeext conftest.$ac_ext
17771
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17773
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17774
# Warning - without using the other run time loading flags,
17775
# -berok will link without error, but may produce a broken library.
17776
no_undefined_flag_GCJ=' ${wl}-bernotok'
17777
allow_undefined_flag_GCJ=' ${wl}-berok'
17778
# Exported symbols can be pulled into shared objects from archives
17779
whole_archive_flag_spec_GCJ='$convenience'
17780
archive_cmds_need_lc_GCJ=yes
17781
# This is similar to how AIX traditionally builds its shared libraries.
17782
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'
17788
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)'
17789
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17790
hardcode_minus_L_GCJ=yes
17791
# see comment about different semantics on the GNU ld section
17796
export_dynamic_flag_spec_GCJ=-rdynamic
17799
cygwin* | mingw* | pw32*)
17800
# When not using gcc, we currently assume that we are using
17801
# Microsoft Visual C++.
17802
# hardcode_libdir_flag_spec is actually meaningless, as there is
17803
# no search path for DLLs.
17804
hardcode_libdir_flag_spec_GCJ=' '
17805
allow_undefined_flag_GCJ=unsupported
17806
# Tell ltmain to make .lib files, not .a files.
17808
# Tell ltmain to make .dll files, not .so files.
17810
# FIXME: Setting linknames here is a bad hack.
17811
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17812
# The linker will automatically build a .lib file if we build a DLL.
17813
old_archive_From_new_cmds_GCJ='true'
17814
# FIXME: Should let the user specify the lib program.
17815
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17816
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17817
enable_shared_with_static_runtimes_GCJ=yes
17820
darwin* | rhapsody*)
17822
rhapsody* | darwin1.[012])
17823
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17826
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17827
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17829
case ${MACOSX_DEPLOYMENT_TARGET} in
17831
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17834
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17840
archive_cmds_need_lc_GCJ=no
17841
hardcode_direct_GCJ=no
17842
hardcode_automatic_GCJ=yes
17843
hardcode_shlibpath_var_GCJ=unsupported
17844
whole_archive_flag_spec_GCJ=''
17845
link_all_deplibs_GCJ=yes
17846
if test "$GCC" = yes ; then
17847
output_verbose_link_cmd='echo'
17848
archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17849
module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17850
archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17851
module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17853
case $cc_basename in
17855
output_verbose_link_cmd='echo'
17856
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17857
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17858
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17859
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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17860
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}'
17870
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17871
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17872
hardcode_shlibpath_var_GCJ=no
17879
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17880
# support. Future versions do this automatically, but an explicit c++rt0.o
17881
# does not break anything, and helps significantly (at the cost of a little
17884
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17885
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17886
hardcode_direct_GCJ=yes
17887
hardcode_shlibpath_var_GCJ=no
17890
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17892
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17893
hardcode_direct_GCJ=yes
17894
hardcode_minus_L_GCJ=yes
17895
hardcode_shlibpath_var_GCJ=no
17898
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17899
freebsd* | dragonfly*)
17900
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17901
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17902
hardcode_direct_GCJ=yes
17903
hardcode_shlibpath_var_GCJ=no
17907
if test "$GCC" = yes; then
17908
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'
17910
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'
17912
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17913
hardcode_libdir_separator_GCJ=:
17914
hardcode_direct_GCJ=yes
17916
# hardcode_minus_L: Not really in the search PATH,
17917
# but as the default location of the library.
17918
hardcode_minus_L_GCJ=yes
17919
export_dynamic_flag_spec_GCJ='${wl}-E'
17923
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17924
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17926
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17928
if test "$with_gnu_ld" = no; then
17929
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17930
hardcode_libdir_separator_GCJ=:
17932
hardcode_direct_GCJ=yes
17933
export_dynamic_flag_spec_GCJ='${wl}-E'
17935
# hardcode_minus_L: Not really in the search PATH,
17936
# but as the default location of the library.
17937
hardcode_minus_L_GCJ=yes
17942
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17945
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17948
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17951
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17957
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17960
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17963
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17967
if test "$with_gnu_ld" = no; then
17968
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17969
hardcode_libdir_separator_GCJ=:
17973
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17974
hardcode_direct_GCJ=no
17975
hardcode_shlibpath_var_GCJ=no
17978
hardcode_direct_GCJ=yes
17979
export_dynamic_flag_spec_GCJ='${wl}-E'
17981
# hardcode_minus_L: Not really in the search PATH,
17982
# but as the default location of the library.
17983
hardcode_minus_L_GCJ=yes
17989
irix5* | irix6* | nonstopux*)
17990
if test "$GCC" = yes; then
17991
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'
17993
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'
17994
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17996
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17997
hardcode_libdir_separator_GCJ=:
17998
link_all_deplibs_GCJ=yes
18001
netbsd* | netbsdelf*-gnu)
18002
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18003
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18005
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18007
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18008
hardcode_direct_GCJ=yes
18009
hardcode_shlibpath_var_GCJ=no
18013
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18014
hardcode_direct_GCJ=yes
18015
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18016
hardcode_libdir_separator_GCJ=:
18017
hardcode_shlibpath_var_GCJ=no
18021
if test -f /usr/libexec/ld.so; then
18022
hardcode_direct_GCJ=yes
18023
hardcode_shlibpath_var_GCJ=no
18024
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18025
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18026
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18027
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18028
export_dynamic_flag_spec_GCJ='${wl}-E'
18031
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18032
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18033
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18036
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18037
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18047
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18048
hardcode_minus_L_GCJ=yes
18049
allow_undefined_flag_GCJ=unsupported
18050
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'
18051
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18055
if test "$GCC" = yes; then
18056
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18057
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'
18059
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18060
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'
18062
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18063
hardcode_libdir_separator_GCJ=:
18066
osf4* | osf5*) # as osf3* with the addition of -msym flag
18067
if test "$GCC" = yes; then
18068
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18069
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'
18070
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18072
allow_undefined_flag_GCJ=' -expect_unresolved \*'
18073
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'
18074
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~
18075
$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'
18077
# Both c and cxx compiler support -rpath directly
18078
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18080
hardcode_libdir_separator_GCJ=:
18084
no_undefined_flag_GCJ=' -z text'
18085
if test "$GCC" = yes; then
18087
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18088
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18089
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18092
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18093
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18094
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18096
hardcode_libdir_flag_spec_GCJ='-R$libdir'
18097
hardcode_shlibpath_var_GCJ=no
18099
solaris2.[0-5] | solaris2.[0-5].*) ;;
18101
# The compiler driver will combine and reorder linker options,
18102
# but understands `-z linker_flag'. GCC discards it without `$wl',
18103
# but is careful enough not to reorder.
18104
# Supported since Solaris 2.6 (maybe 2.5.1?)
18105
if test "$GCC" = yes; then
18106
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18108
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18112
link_all_deplibs_GCJ=yes
18116
if test "x$host_vendor" = xsequent; then
18117
# Use $CC to link under sequent, because it throws in some extra .o
18118
# files that make .init and .fini sections work.
18119
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18121
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18123
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18124
hardcode_direct_GCJ=yes
18125
hardcode_minus_L_GCJ=yes
18126
hardcode_shlibpath_var_GCJ=no
18130
case $host_vendor in
18132
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18133
hardcode_direct_GCJ=yes # is this really true???
18136
## LD is ld it makes a PLAMLIB
18137
## CC just makes a GrossModule.
18138
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18139
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18140
hardcode_direct_GCJ=no
18143
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18144
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18147
runpath_var='LD_RUN_PATH'
18148
hardcode_shlibpath_var_GCJ=no
18152
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18153
hardcode_shlibpath_var_GCJ=no
18154
export_dynamic_flag_spec_GCJ='-Bexport'
18158
if test -d /usr/nec; then
18159
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18160
hardcode_shlibpath_var_GCJ=no
18161
runpath_var=LD_RUN_PATH
18162
hardcode_runpath_var=yes
18167
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18168
no_undefined_flag_GCJ='${wl}-z,text'
18169
archive_cmds_need_lc_GCJ=no
18170
hardcode_shlibpath_var_GCJ=no
18171
runpath_var='LD_RUN_PATH'
18173
if test "$GCC" = yes; then
18174
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18175
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18177
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18178
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18182
sysv5* | sco3.2v5* | sco5v6*)
18183
# Note: We can NOT use -z defs as we might desire, because we do not
18184
# link with -lc, and that would cause any symbols used from libc to
18185
# always be unresolved, which means just about no library would
18186
# ever link correctly. If we're not using GNU ld we use -z text
18187
# though, which does catch some bad symbols but isn't as heavy-handed
18189
no_undefined_flag_GCJ='${wl}-z,text'
18190
allow_undefined_flag_GCJ='${wl}-z,nodefs'
18191
archive_cmds_need_lc_GCJ=no
18192
hardcode_shlibpath_var_GCJ=no
18193
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18194
hardcode_libdir_separator_GCJ=':'
18195
link_all_deplibs_GCJ=yes
18196
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18197
runpath_var='LD_RUN_PATH'
18199
if test "$GCC" = yes; then
18200
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18201
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18203
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18204
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18209
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18210
hardcode_libdir_flag_spec_GCJ='-L$libdir'
18211
hardcode_shlibpath_var_GCJ=no
18220
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18221
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18222
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18225
# Do we need to explicitly link libc?
18227
case "x$archive_cmds_need_lc_GCJ" in
18229
# Assume -lc should be added
18230
archive_cmds_need_lc_GCJ=yes
18232
if test "$enable_shared" = yes && test "$GCC" = yes; then
18233
case $archive_cmds_GCJ in
18235
# FIXME: we may have to deal with multi-command sequences.
18238
# Test whether the compiler implicitly links with -lc since on some
18239
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18240
# to ld, don't add -lc before -lgcc.
18241
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18242
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18244
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18246
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18247
(eval $ac_compile) 2>&5
18249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250
(exit $ac_status); } 2>conftest.err; then
18253
libobjs=conftest.$ac_objext
18255
wl=$lt_prog_compiler_wl_GCJ
18256
pic_flag=$lt_prog_compiler_pic_GCJ
18262
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18263
allow_undefined_flag_GCJ=
18264
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18265
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18267
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18268
(exit $ac_status); }
18270
archive_cmds_need_lc_GCJ=no
18272
archive_cmds_need_lc_GCJ=yes
18274
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18276
cat conftest.err 1>&5
18279
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18280
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18287
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18288
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18289
library_names_spec=
18290
libname_spec='lib$name'
18294
postuninstall_cmds=
18298
shlibpath_overrides_runpath=unknown
18300
dynamic_linker="$host_os ld.so"
18301
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18303
need_lib_prefix=unknown
18304
hardcode_into_libs=no
18306
# when you set need_version to no, make sure it does not cause -set_version
18307
# flags to be left without arguments
18308
need_version=unknown
18313
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18314
shlibpath_var=LIBPATH
18316
# AIX 3 has no versioning support, so we append a major version to the name.
18317
soname_spec='${libname}${release}${shared_ext}$major'
18324
hardcode_into_libs=yes
18325
if test "$host_cpu" = ia64; then
18326
# AIX 5 supports IA64
18327
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18328
shlibpath_var=LD_LIBRARY_PATH
18330
# With GCC up to 2.95.x, collect2 would create an import file
18331
# for dependence libraries. The import file would start with
18332
# the line `#! .'. This would cause the generated library to
18333
# depend on `.', always an invalid library. This was fixed in
18334
# development snapshots of GCC prior to 3.0.
18336
aix4 | aix4.[01] | aix4.[01].*)
18337
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18339
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18342
can_build_shared=no
18346
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18347
# soname into executable. Probably we can add versioning support to
18348
# collect2, so additional links can be useful in future.
18349
if test "$aix_use_runtimelinking" = yes; then
18350
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18351
# instead of lib<name>.a to let people know that these are not
18352
# typical AIX shared libraries.
18353
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18355
# We preserve .a as extension for shared libraries through AIX4.2
18356
# and later when we are not doing run time linking.
18357
library_names_spec='${libname}${release}.a $libname.a'
18358
soname_spec='${libname}${release}${shared_ext}$major'
18360
shlibpath_var=LIBPATH
18365
library_names_spec='$libname.ixlibrary $libname.a'
18366
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18367
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'
18371
library_names_spec='${libname}${shared_ext}'
18372
dynamic_linker="$host_os ld.so"
18373
shlibpath_var=LIBRARY_PATH
18379
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18380
soname_spec='${libname}${release}${shared_ext}$major'
18381
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18382
shlibpath_var=LD_LIBRARY_PATH
18383
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18384
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18385
# the default ld.so.conf also contains /usr/contrib/lib and
18386
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18387
# libtool to hard-code these into programs
18390
cygwin* | mingw* | pw32*)
18391
version_type=windows
18396
case $GCC,$host_os in
18397
yes,cygwin* | yes,mingw* | yes,pw32*)
18398
library_names_spec='$libname.dll.a'
18399
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18400
postinstall_cmds='base_file=`basename \${file}`~
18401
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18402
dldir=$destdir/`dirname \$dlpath`~
18403
test -d \$dldir || mkdir -p \$dldir~
18404
$install_prog $dir/$dlname \$dldir/$dlname~
18405
chmod a+x \$dldir/$dlname'
18406
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18407
dlpath=$dir/\$dldll~
18409
shlibpath_overrides_runpath=yes
18413
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18414
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18415
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18418
# MinGW DLLs use traditional 'lib' prefix
18419
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18420
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18421
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18422
# It is most probably a Windows format PATH printed by
18423
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18424
# path with ; separators, and with drive letters. We can handle the
18425
# drive letters (cygwin fileutils understands them), so leave them,
18426
# especially as we might pass files found there to a mingw objdump,
18427
# which wouldn't understand a cygwinified path. Ahh.
18428
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18430
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18434
# pw32 DLLs use 'pw' prefix rather than 'lib'
18435
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18441
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18444
dynamic_linker='Win32 ld.exe'
18445
# FIXME: first we should search . and the directory the executable is in
18449
darwin* | rhapsody*)
18450
dynamic_linker="$host_os dyld"
18451
version_type=darwin
18454
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18455
soname_spec='${libname}${release}${major}$shared_ext'
18456
shlibpath_overrides_runpath=yes
18457
shlibpath_var=DYLD_LIBRARY_PATH
18458
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18460
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18467
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18468
soname_spec='${libname}${release}${shared_ext}$major'
18469
shlibpath_var=LD_LIBRARY_PATH
18476
freebsd* | dragonfly*)
18477
# DragonFly does not have aout. When/if they implement a new
18478
# versioning mechanism, adjust this.
18479
if test -x /usr/bin/objformat; then
18480
objformat=`/usr/bin/objformat`
18483
freebsd[123]*) objformat=aout ;;
18484
*) objformat=elf ;;
18487
version_type=freebsd-$objformat
18488
case $version_type in
18490
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18495
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18499
shlibpath_var=LD_LIBRARY_PATH
18502
shlibpath_overrides_runpath=yes
18504
freebsd3.[01]* | freebsdelf3.[01]*)
18505
shlibpath_overrides_runpath=yes
18506
hardcode_into_libs=yes
18508
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18509
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18510
shlibpath_overrides_runpath=no
18511
hardcode_into_libs=yes
18513
*) # from 4.6 on, and DragonFly
18514
shlibpath_overrides_runpath=yes
18515
hardcode_into_libs=yes
18524
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18525
soname_spec='${libname}${release}${shared_ext}$major'
18526
shlibpath_var=LD_LIBRARY_PATH
18527
hardcode_into_libs=yes
18530
hpux9* | hpux10* | hpux11*)
18531
# Give a soname corresponding to the major version so that dld.sl refuses to
18532
# link against other versions.
18539
hardcode_into_libs=yes
18540
dynamic_linker="$host_os dld.so"
18541
shlibpath_var=LD_LIBRARY_PATH
18542
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18543
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18544
soname_spec='${libname}${release}${shared_ext}$major'
18545
if test "X$HPUX_IA64_MODE" = X32; then
18546
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18548
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18550
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18554
hardcode_into_libs=yes
18555
dynamic_linker="$host_os dld.sl"
18556
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18557
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18558
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18559
soname_spec='${libname}${release}${shared_ext}$major'
18560
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18561
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18565
dynamic_linker="$host_os dld.sl"
18566
shlibpath_var=SHLIB_PATH
18567
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18568
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18569
soname_spec='${libname}${release}${shared_ext}$major'
18572
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18573
postinstall_cmds='chmod 555 $lib'
18580
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18581
soname_spec='${libname}${release}${shared_ext}$major'
18582
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18583
shlibpath_var=LD_LIBRARY_PATH
18584
shlibpath_overrides_runpath=no
18585
hardcode_into_libs=yes
18588
irix5* | irix6* | nonstopux*)
18590
nonstopux*) version_type=nonstopux ;;
18592
if test "$lt_cv_prog_gnu_ld" = yes; then
18600
soname_spec='${libname}${release}${shared_ext}$major'
18601
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18603
irix5* | nonstopux*)
18604
libsuff= shlibsuff=
18607
case $LD in # libtool.m4 will add one of these switches to LD
18608
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18609
libsuff= shlibsuff= libmagic=32-bit;;
18610
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18611
libsuff=32 shlibsuff=N32 libmagic=N32;;
18612
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18613
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18614
*) libsuff= shlibsuff= libmagic=never-match;;
18618
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18619
shlibpath_overrides_runpath=no
18620
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18621
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18622
hardcode_into_libs=yes
18625
# No shared lib support for Linux oldld, aout, or coff.
18626
linux*oldld* | linux*aout* | linux*coff*)
18630
# This must be Linux ELF.
18631
linux* | k*bsd*-gnu)
18635
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18636
soname_spec='${libname}${release}${shared_ext}$major'
18637
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18638
shlibpath_var=LD_LIBRARY_PATH
18639
shlibpath_overrides_runpath=no
18640
# This implies no fast_install, which is unacceptable.
18641
# Some rework will be needed to allow for fast_install
18642
# before this can be enabled.
18643
hardcode_into_libs=yes
18645
# Append ld.so.conf contents to the search path
18646
if test -f /etc/ld.so.conf; then
18647
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18648
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18651
# We used to test for /lib/ld.so.1 and disable shared libraries on
18652
# powerpc, because MkLinux only supported shared libraries with the
18653
# GNU dynamic linker. Since this was broken with cross compilers,
18654
# most powerpc-linux boxes support dynamic linking these days and
18655
# people can always --disable-shared, the test was removed, and we
18656
# assume the GNU/Linux dynamic linker is in use.
18657
dynamic_linker='GNU/Linux ld.so'
18664
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18665
soname_spec='${libname}${release}${shared_ext}$major'
18666
shlibpath_var=LD_LIBRARY_PATH
18667
shlibpath_overrides_runpath=no
18668
hardcode_into_libs=yes
18669
dynamic_linker='NetBSD ld.elf_so'
18676
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18677
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18678
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18679
dynamic_linker='NetBSD (a.out) ld.so'
18681
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18682
soname_spec='${libname}${release}${shared_ext}$major'
18683
dynamic_linker='NetBSD ld.elf_so'
18685
shlibpath_var=LD_LIBRARY_PATH
18686
shlibpath_overrides_runpath=yes
18687
hardcode_into_libs=yes
18692
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18693
shlibpath_var=LD_LIBRARY_PATH
18694
shlibpath_overrides_runpath=yes
18701
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18702
soname_spec='${libname}${release}${shared_ext}$major'
18703
shlibpath_var=LD_LIBRARY_PATH
18704
shlibpath_overrides_runpath=yes
18709
sys_lib_dlsearch_path_spec="/usr/lib"
18711
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18713
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18714
*) need_version=no ;;
18716
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18717
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18718
shlibpath_var=LD_LIBRARY_PATH
18719
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18721
openbsd2.[89] | openbsd2.[89].*)
18722
shlibpath_overrides_runpath=no
18725
shlibpath_overrides_runpath=yes
18729
shlibpath_overrides_runpath=yes
18734
libname_spec='$name'
18737
library_names_spec='$libname${shared_ext} $libname.a'
18738
dynamic_linker='OS/2 ld.exe'
18739
shlibpath_var=LIBPATH
18742
osf3* | osf4* | osf5*)
18746
soname_spec='${libname}${release}${shared_ext}$major'
18747
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18748
shlibpath_var=LD_LIBRARY_PATH
18749
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18750
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18761
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18762
soname_spec='${libname}${release}${shared_ext}$major'
18763
shlibpath_var=LD_LIBRARY_PATH
18764
shlibpath_overrides_runpath=yes
18765
hardcode_into_libs=yes
18766
# ldd complains unless libraries are executable
18767
postinstall_cmds='chmod +x $lib'
18772
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18773
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18774
shlibpath_var=LD_LIBRARY_PATH
18775
shlibpath_overrides_runpath=yes
18776
if test "$with_gnu_ld" = yes; then
18784
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18785
soname_spec='${libname}${release}${shared_ext}$major'
18786
shlibpath_var=LD_LIBRARY_PATH
18787
case $host_vendor in
18789
shlibpath_overrides_runpath=no
18791
export_dynamic_flag_spec='${wl}-Blargedynsym'
18792
runpath_var=LD_RUN_PATH
18800
shlibpath_overrides_runpath=no
18801
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18807
if test -d /usr/nec ;then
18809
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18810
soname_spec='$libname${shared_ext}.$major'
18811
shlibpath_var=LD_LIBRARY_PATH
18815
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18816
version_type=freebsd-elf
18819
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18820
soname_spec='${libname}${release}${shared_ext}$major'
18821
shlibpath_var=LD_LIBRARY_PATH
18822
hardcode_into_libs=yes
18823
if test "$with_gnu_ld" = yes; then
18824
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18825
shlibpath_overrides_runpath=no
18827
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18828
shlibpath_overrides_runpath=yes
18831
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18835
sys_lib_dlsearch_path_spec='/usr/lib'
18840
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18841
soname_spec='${libname}${release}${shared_ext}$major'
18842
shlibpath_var=LD_LIBRARY_PATH
18849
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18850
echo "${ECHO_T}$dynamic_linker" >&6; }
18851
test "$dynamic_linker" = no && can_build_shared=no
18853
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18854
echo $ECHO_N "(cached) $ECHO_C" >&6
18856
lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18859
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18860
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18861
echo $ECHO_N "(cached) $ECHO_C" >&6
18863
lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18866
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18868
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18869
if test "$GCC" = yes; then
18870
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18873
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18874
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18875
hardcode_action_GCJ=
18876
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18877
test -n "$runpath_var_GCJ" || \
18878
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18880
# We can hardcode non-existant directories.
18881
if test "$hardcode_direct_GCJ" != no &&
18882
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18883
# have to relink, otherwise we might link with an installed library
18884
# when we should be linking with a yet-to-be-installed one
18885
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18886
test "$hardcode_minus_L_GCJ" != no; then
18887
# Linking always hardcodes the temporary library directory.
18888
hardcode_action_GCJ=relink
18890
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18891
hardcode_action_GCJ=immediate
18894
# We cannot hardcode anything, or else we can only hardcode existing
18896
hardcode_action_GCJ=unsupported
18898
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18899
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18901
if test "$hardcode_action_GCJ" = relink; then
18902
# Fast installation is not supported
18903
enable_fast_install=no
18904
elif test "$shlibpath_overrides_runpath" = yes ||
18905
test "$enable_shared" = no; then
18906
# Fast installation is not necessary
18907
enable_fast_install=needless
18911
# The else clause should only fire when bootstrapping the
18912
# libtool distribution, otherwise you forgot to ship ltmain.sh
18913
# with your package, and you will get complaints that there are
18914
# no rules to generate ltmain.sh.
18915
if test -f "$ltmain"; then
18916
# See if we are running on zsh, and set the options which allow our commands through
18917
# without removal of \ escapes.
18918
if test -n "${ZSH_VERSION+set}" ; then
18919
setopt NO_GLOB_SUBST
18921
# Now quote all the things that may contain metacharacters while being
18922
# careful not to overquote the AC_SUBSTed values. We take copies of the
18923
# variables and quote the copies for generation of the libtool script.
18924
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18926
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18927
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18928
deplibs_check_method reload_flag reload_cmds need_locks \
18929
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18930
lt_cv_sys_global_symbol_to_c_name_address \
18931
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18932
old_postinstall_cmds old_postuninstall_cmds \
18936
lt_prog_compiler_wl_GCJ \
18937
lt_prog_compiler_pic_GCJ \
18938
lt_prog_compiler_static_GCJ \
18939
lt_prog_compiler_no_builtin_flag_GCJ \
18940
export_dynamic_flag_spec_GCJ \
18941
thread_safe_flag_spec_GCJ \
18942
whole_archive_flag_spec_GCJ \
18943
enable_shared_with_static_runtimes_GCJ \
18944
old_archive_cmds_GCJ \
18945
old_archive_from_new_cmds_GCJ \
18946
predep_objects_GCJ \
18947
postdep_objects_GCJ \
18950
compiler_lib_search_path_GCJ \
18951
compiler_lib_search_dirs_GCJ \
18953
archive_expsym_cmds_GCJ \
18954
postinstall_cmds_GCJ \
18955
postuninstall_cmds_GCJ \
18956
old_archive_from_expsyms_cmds_GCJ \
18957
allow_undefined_flag_GCJ \
18958
no_undefined_flag_GCJ \
18959
export_symbols_cmds_GCJ \
18960
hardcode_libdir_flag_spec_GCJ \
18961
hardcode_libdir_flag_spec_ld_GCJ \
18962
hardcode_libdir_separator_GCJ \
18963
hardcode_automatic_GCJ \
18965
module_expsym_cmds_GCJ \
18966
lt_cv_prog_compiler_c_o_GCJ \
18967
fix_srcfile_path_GCJ \
18968
exclude_expsyms_GCJ \
18969
include_expsyms_GCJ; do
18972
old_archive_cmds_GCJ | \
18973
old_archive_from_new_cmds_GCJ | \
18974
archive_cmds_GCJ | \
18975
archive_expsym_cmds_GCJ | \
18976
module_cmds_GCJ | \
18977
module_expsym_cmds_GCJ | \
18978
old_archive_from_expsyms_cmds_GCJ | \
18979
export_symbols_cmds_GCJ | \
18980
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18981
postinstall_cmds | postuninstall_cmds | \
18982
old_postinstall_cmds | old_postuninstall_cmds | \
18983
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18984
# Double-quote double-evaled strings.
18985
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18988
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18994
*'\$0 --fallback-echo"')
18995
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19001
cat <<__EOF__ >> "$cfgfile"
19002
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19004
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19006
# Shell to use when invoking shell scripts.
19009
# Whether or not to build shared libraries.
19010
build_libtool_libs=$enable_shared
19012
# Whether or not to build static libraries.
19013
build_old_libs=$enable_static
19015
# Whether or not to add -lc for building shared libraries.
19016
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19018
# Whether or not to disallow shared libs when runtime libs are static
19019
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19021
# Whether or not to optimize for fast installation.
19022
fast_install=$enable_fast_install
19025
host_alias=$host_alias
19029
# The build system.
19030
build_alias=$build_alias
19034
# An echo program that does not interpret backslashes.
19039
AR_FLAGS=$lt_AR_FLAGS
19044
# LTCC compiler flags.
19045
LTCFLAGS=$lt_LTCFLAGS
19047
# A language-specific compiler.
19048
CC=$lt_compiler_GCJ
19050
# Is the compiler the GNU C compiler?
19056
# The linker used to build libraries.
19059
# Whether we need hard or soft links.
19062
# A BSD-compatible nm program.
19065
# A symbol stripping program
19068
# Used to examine libraries when file_magic_cmd begins "file"
19069
MAGIC_CMD=$MAGIC_CMD
19071
# Used on cygwin: DLL creation program.
19074
# Used on cygwin: object dumper.
19077
# Used on cygwin: assembler.
19080
# The name of the directory that contains temporary libtool files.
19083
# How to create reloadable object files.
19084
reload_flag=$lt_reload_flag
19085
reload_cmds=$lt_reload_cmds
19087
# How to pass a linker flag through the compiler.
19088
wl=$lt_lt_prog_compiler_wl_GCJ
19090
# Object file suffix (normally "o").
19091
objext="$ac_objext"
19093
# Old archive suffix (normally "a").
19096
# Shared library suffix (normally ".so").
19097
shrext_cmds='$shrext_cmds'
19099
# Executable file suffix (normally "").
19102
# Additional compiler flags for building library objects.
19103
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19106
# What is the maximum length of a command?
19107
max_cmd_len=$lt_cv_sys_max_cmd_len
19109
# Does compiler simultaneously support -c and -o options?
19110
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19112
# Must we lock files when doing compilation?
19113
need_locks=$lt_need_locks
19115
# Do we need the lib prefix for modules?
19116
need_lib_prefix=$need_lib_prefix
19118
# Do we need a version for libraries?
19119
need_version=$need_version
19121
# Whether dlopen is supported.
19122
dlopen_support=$enable_dlopen
19124
# Whether dlopen of programs is supported.
19125
dlopen_self=$enable_dlopen_self
19127
# Whether dlopen of statically linked programs is supported.
19128
dlopen_self_static=$enable_dlopen_self_static
19130
# Compiler flag to prevent dynamic linking.
19131
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19133
# Compiler flag to turn off builtin functions.
19134
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19136
# Compiler flag to allow reflexive dlopens.
19137
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19139
# Compiler flag to generate shared objects directly from archives.
19140
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19142
# Compiler flag to generate thread-safe objects.
19143
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19145
# Library versioning type.
19146
version_type=$version_type
19148
# Format of library name prefix.
19149
libname_spec=$lt_libname_spec
19151
# List of archive names. First name is the real one, the rest are links.
19152
# The last name is the one that the linker finds with -lNAME.
19153
library_names_spec=$lt_library_names_spec
19155
# The coded name of the library, if different from the real name.
19156
soname_spec=$lt_soname_spec
19158
# Commands used to build and install an old-style archive.
19160
old_archive_cmds=$lt_old_archive_cmds_GCJ
19161
old_postinstall_cmds=$lt_old_postinstall_cmds
19162
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19164
# Create an old-style archive from a shared archive.
19165
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19167
# Create a temporary old-style archive to link instead of a shared archive.
19168
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19170
# Commands used to build and install a shared archive.
19171
archive_cmds=$lt_archive_cmds_GCJ
19172
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19173
postinstall_cmds=$lt_postinstall_cmds
19174
postuninstall_cmds=$lt_postuninstall_cmds
19176
# Commands used to build a loadable module (assumed same as above if empty)
19177
module_cmds=$lt_module_cmds_GCJ
19178
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19180
# Commands to strip libraries.
19181
old_striplib=$lt_old_striplib
19182
striplib=$lt_striplib
19184
# Dependencies to place before the objects being linked to create a
19186
predep_objects=$lt_predep_objects_GCJ
19188
# Dependencies to place after the objects being linked to create a
19190
postdep_objects=$lt_postdep_objects_GCJ
19192
# Dependencies to place before the objects being linked to create a
19194
predeps=$lt_predeps_GCJ
19196
# Dependencies to place after the objects being linked to create a
19198
postdeps=$lt_postdeps_GCJ
19200
# The directories searched by this compiler when creating a shared
19202
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19204
# The library search path used internally by the compiler when linking
19205
# a shared library.
19206
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19208
# Method to check whether dependent libraries are shared objects.
19209
deplibs_check_method=$lt_deplibs_check_method
19211
# Command to use when deplibs_check_method == file_magic.
19212
file_magic_cmd=$lt_file_magic_cmd
19214
# Flag that allows shared libraries with undefined symbols to be built.
19215
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19217
# Flag that forces no undefined symbols.
19218
no_undefined_flag=$lt_no_undefined_flag_GCJ
19220
# Commands used to finish a libtool library installation in a directory.
19221
finish_cmds=$lt_finish_cmds
19223
# Same as above, but a single script fragment to be evaled but not shown.
19224
finish_eval=$lt_finish_eval
19226
# Take the output of nm and produce a listing of raw symbols and C names.
19227
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19229
# Transform the output of nm in a proper C declaration
19230
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19232
# Transform the output of nm in a C name address pair
19233
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19235
# This is the shared library runtime path variable.
19236
runpath_var=$runpath_var
19238
# This is the shared library path variable.
19239
shlibpath_var=$shlibpath_var
19241
# Is shlibpath searched before the hard-coded library search path?
19242
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19244
# How to hardcode a shared library path into an executable.
19245
hardcode_action=$hardcode_action_GCJ
19247
# Whether we should hardcode library paths into libraries.
19248
hardcode_into_libs=$hardcode_into_libs
19250
# Flag to hardcode \$libdir into a binary during linking.
19251
# This must work even if \$libdir does not exist.
19252
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19254
# If ld is used when linking, flag to hardcode \$libdir into
19255
# a binary during linking. This must work even if \$libdir does
19257
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19259
# Whether we need a single -rpath flag with a separated argument.
19260
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19262
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19263
# resulting binary.
19264
hardcode_direct=$hardcode_direct_GCJ
19266
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19267
# resulting binary.
19268
hardcode_minus_L=$hardcode_minus_L_GCJ
19270
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19271
# the resulting binary.
19272
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19274
# Set to yes if building a shared library automatically hardcodes DIR into the library
19275
# and all subsequent libraries and executables linked against it.
19276
hardcode_automatic=$hardcode_automatic_GCJ
19278
# Variables whose values should be saved in libtool wrapper scripts and
19279
# restored at relink time.
19280
variables_saved_for_relink="$variables_saved_for_relink"
19282
# Whether libtool must link a program against all its dependency libraries.
19283
link_all_deplibs=$link_all_deplibs_GCJ
19285
# Compile-time system search path for libraries
19286
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19288
# Run-time system search path for libraries
19289
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19291
# Fix the shell variable \$srcfile for the compiler.
19292
fix_srcfile_path=$lt_fix_srcfile_path
19294
# Set to yes if exported symbols are required.
19295
always_export_symbols=$always_export_symbols_GCJ
19297
# The commands to list exported symbols.
19298
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19300
# The commands to extract the exported symbol list from a shared archive.
19301
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19303
# Symbols that should not be listed in the preloaded symbols.
19304
exclude_expsyms=$lt_exclude_expsyms_GCJ
19306
# Symbols that must always be exported.
19307
include_expsyms=$lt_include_expsyms_GCJ
19309
# ### END LIBTOOL TAG CONFIG: $tagname
19315
# If there is no Makefile yet, we rely on a make rule to execute
19316
# `config.status --recheck' to rerun these tests and create the
19317
# libtool script then.
19318
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19319
if test -f "$ltmain_in"; then
19320
test -f Makefile && make "$ltmain"
19326
ac_cpp='$CXXCPP $CPPFLAGS'
19327
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19328
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19329
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19341
# Source file extension for RC test sources.
19344
# Object file extension for compiled RC test sources.
19348
# Code to be used in simple compile tests
19349
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19351
# Code to be used in simple link tests
19352
lt_simple_link_test_code="$lt_simple_compile_test_code"
19354
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19356
# If no C compiler was specified, use CC.
19359
# If no C compiler flags were specified, use CFLAGS.
19360
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19362
# Allow CC to be a program name with arguments.
19366
# save warnings/boilerplate of simple test code
19367
ac_outfile=conftest.$ac_objext
19368
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19369
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19370
_lt_compiler_boilerplate=`cat conftest.err`
19373
ac_outfile=conftest.$ac_objext
19374
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19375
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19376
_lt_linker_boilerplate=`cat conftest.err`
19380
# Allow CC to be a program name with arguments.
19385
for cc_temp in $compiler""; do
19387
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19388
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19393
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19395
lt_cv_prog_compiler_c_o_RC=yes
19397
# The else clause should only fire when bootstrapping the
19398
# libtool distribution, otherwise you forgot to ship ltmain.sh
19399
# with your package, and you will get complaints that there are
19400
# no rules to generate ltmain.sh.
19401
if test -f "$ltmain"; then
19402
# See if we are running on zsh, and set the options which allow our commands through
19403
# without removal of \ escapes.
19404
if test -n "${ZSH_VERSION+set}" ; then
19405
setopt NO_GLOB_SUBST
19407
# Now quote all the things that may contain metacharacters while being
19408
# careful not to overquote the AC_SUBSTed values. We take copies of the
19409
# variables and quote the copies for generation of the libtool script.
19410
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19412
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19413
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19414
deplibs_check_method reload_flag reload_cmds need_locks \
19415
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19416
lt_cv_sys_global_symbol_to_c_name_address \
19417
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19418
old_postinstall_cmds old_postuninstall_cmds \
19422
lt_prog_compiler_wl_RC \
19423
lt_prog_compiler_pic_RC \
19424
lt_prog_compiler_static_RC \
19425
lt_prog_compiler_no_builtin_flag_RC \
19426
export_dynamic_flag_spec_RC \
19427
thread_safe_flag_spec_RC \
19428
whole_archive_flag_spec_RC \
19429
enable_shared_with_static_runtimes_RC \
19430
old_archive_cmds_RC \
19431
old_archive_from_new_cmds_RC \
19432
predep_objects_RC \
19433
postdep_objects_RC \
19436
compiler_lib_search_path_RC \
19437
compiler_lib_search_dirs_RC \
19439
archive_expsym_cmds_RC \
19440
postinstall_cmds_RC \
19441
postuninstall_cmds_RC \
19442
old_archive_from_expsyms_cmds_RC \
19443
allow_undefined_flag_RC \
19444
no_undefined_flag_RC \
19445
export_symbols_cmds_RC \
19446
hardcode_libdir_flag_spec_RC \
19447
hardcode_libdir_flag_spec_ld_RC \
19448
hardcode_libdir_separator_RC \
19449
hardcode_automatic_RC \
19451
module_expsym_cmds_RC \
19452
lt_cv_prog_compiler_c_o_RC \
19453
fix_srcfile_path_RC \
19454
exclude_expsyms_RC \
19455
include_expsyms_RC; do
19458
old_archive_cmds_RC | \
19459
old_archive_from_new_cmds_RC | \
19460
archive_cmds_RC | \
19461
archive_expsym_cmds_RC | \
19463
module_expsym_cmds_RC | \
19464
old_archive_from_expsyms_cmds_RC | \
19465
export_symbols_cmds_RC | \
19466
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19467
postinstall_cmds | postuninstall_cmds | \
19468
old_postinstall_cmds | old_postuninstall_cmds | \
19469
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19470
# Double-quote double-evaled strings.
19471
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19474
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19480
*'\$0 --fallback-echo"')
19481
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19487
cat <<__EOF__ >> "$cfgfile"
19488
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19490
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19492
# Shell to use when invoking shell scripts.
19495
# Whether or not to build shared libraries.
19496
build_libtool_libs=$enable_shared
19498
# Whether or not to build static libraries.
19499
build_old_libs=$enable_static
19501
# Whether or not to add -lc for building shared libraries.
19502
build_libtool_need_lc=$archive_cmds_need_lc_RC
19504
# Whether or not to disallow shared libs when runtime libs are static
19505
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19507
# Whether or not to optimize for fast installation.
19508
fast_install=$enable_fast_install
19511
host_alias=$host_alias
19515
# The build system.
19516
build_alias=$build_alias
19520
# An echo program that does not interpret backslashes.
19525
AR_FLAGS=$lt_AR_FLAGS
19530
# LTCC compiler flags.
19531
LTCFLAGS=$lt_LTCFLAGS
19533
# A language-specific compiler.
19536
# Is the compiler the GNU C compiler?
19542
# The linker used to build libraries.
19545
# Whether we need hard or soft links.
19548
# A BSD-compatible nm program.
19551
# A symbol stripping program
19554
# Used to examine libraries when file_magic_cmd begins "file"
19555
MAGIC_CMD=$MAGIC_CMD
19557
# Used on cygwin: DLL creation program.
19560
# Used on cygwin: object dumper.
19563
# Used on cygwin: assembler.
19566
# The name of the directory that contains temporary libtool files.
19569
# How to create reloadable object files.
19570
reload_flag=$lt_reload_flag
19571
reload_cmds=$lt_reload_cmds
19573
# How to pass a linker flag through the compiler.
19574
wl=$lt_lt_prog_compiler_wl_RC
19576
# Object file suffix (normally "o").
19577
objext="$ac_objext"
19579
# Old archive suffix (normally "a").
19582
# Shared library suffix (normally ".so").
19583
shrext_cmds='$shrext_cmds'
19585
# Executable file suffix (normally "").
19588
# Additional compiler flags for building library objects.
19589
pic_flag=$lt_lt_prog_compiler_pic_RC
19592
# What is the maximum length of a command?
19593
max_cmd_len=$lt_cv_sys_max_cmd_len
19595
# Does compiler simultaneously support -c and -o options?
19596
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19598
# Must we lock files when doing compilation?
19599
need_locks=$lt_need_locks
19601
# Do we need the lib prefix for modules?
19602
need_lib_prefix=$need_lib_prefix
19604
# Do we need a version for libraries?
19605
need_version=$need_version
19607
# Whether dlopen is supported.
19608
dlopen_support=$enable_dlopen
19610
# Whether dlopen of programs is supported.
19611
dlopen_self=$enable_dlopen_self
19613
# Whether dlopen of statically linked programs is supported.
19614
dlopen_self_static=$enable_dlopen_self_static
19616
# Compiler flag to prevent dynamic linking.
19617
link_static_flag=$lt_lt_prog_compiler_static_RC
19619
# Compiler flag to turn off builtin functions.
19620
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19622
# Compiler flag to allow reflexive dlopens.
19623
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19625
# Compiler flag to generate shared objects directly from archives.
19626
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19628
# Compiler flag to generate thread-safe objects.
19629
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19631
# Library versioning type.
19632
version_type=$version_type
19634
# Format of library name prefix.
19635
libname_spec=$lt_libname_spec
19637
# List of archive names. First name is the real one, the rest are links.
19638
# The last name is the one that the linker finds with -lNAME.
19639
library_names_spec=$lt_library_names_spec
19641
# The coded name of the library, if different from the real name.
19642
soname_spec=$lt_soname_spec
19644
# Commands used to build and install an old-style archive.
19646
old_archive_cmds=$lt_old_archive_cmds_RC
19647
old_postinstall_cmds=$lt_old_postinstall_cmds
19648
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19650
# Create an old-style archive from a shared archive.
19651
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19653
# Create a temporary old-style archive to link instead of a shared archive.
19654
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19656
# Commands used to build and install a shared archive.
19657
archive_cmds=$lt_archive_cmds_RC
19658
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19659
postinstall_cmds=$lt_postinstall_cmds
19660
postuninstall_cmds=$lt_postuninstall_cmds
19662
# Commands used to build a loadable module (assumed same as above if empty)
19663
module_cmds=$lt_module_cmds_RC
19664
module_expsym_cmds=$lt_module_expsym_cmds_RC
19666
# Commands to strip libraries.
19667
old_striplib=$lt_old_striplib
19668
striplib=$lt_striplib
19670
# Dependencies to place before the objects being linked to create a
19672
predep_objects=$lt_predep_objects_RC
19674
# Dependencies to place after the objects being linked to create a
19676
postdep_objects=$lt_postdep_objects_RC
19678
# Dependencies to place before the objects being linked to create a
19680
predeps=$lt_predeps_RC
19682
# Dependencies to place after the objects being linked to create a
19684
postdeps=$lt_postdeps_RC
19686
# The directories searched by this compiler when creating a shared
19688
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19690
# The library search path used internally by the compiler when linking
19691
# a shared library.
19692
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19694
# Method to check whether dependent libraries are shared objects.
19695
deplibs_check_method=$lt_deplibs_check_method
19697
# Command to use when deplibs_check_method == file_magic.
19698
file_magic_cmd=$lt_file_magic_cmd
19700
# Flag that allows shared libraries with undefined symbols to be built.
19701
allow_undefined_flag=$lt_allow_undefined_flag_RC
19703
# Flag that forces no undefined symbols.
19704
no_undefined_flag=$lt_no_undefined_flag_RC
19706
# Commands used to finish a libtool library installation in a directory.
19707
finish_cmds=$lt_finish_cmds
19709
# Same as above, but a single script fragment to be evaled but not shown.
19710
finish_eval=$lt_finish_eval
19712
# Take the output of nm and produce a listing of raw symbols and C names.
19713
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19715
# Transform the output of nm in a proper C declaration
19716
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19718
# Transform the output of nm in a C name address pair
19719
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19721
# This is the shared library runtime path variable.
19722
runpath_var=$runpath_var
19724
# This is the shared library path variable.
19725
shlibpath_var=$shlibpath_var
19727
# Is shlibpath searched before the hard-coded library search path?
19728
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19730
# How to hardcode a shared library path into an executable.
19731
hardcode_action=$hardcode_action_RC
19733
# Whether we should hardcode library paths into libraries.
19734
hardcode_into_libs=$hardcode_into_libs
19736
# Flag to hardcode \$libdir into a binary during linking.
19737
# This must work even if \$libdir does not exist.
19738
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19740
# If ld is used when linking, flag to hardcode \$libdir into
19741
# a binary during linking. This must work even if \$libdir does
19743
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19745
# Whether we need a single -rpath flag with a separated argument.
19746
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19748
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19749
# resulting binary.
19750
hardcode_direct=$hardcode_direct_RC
19752
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19753
# resulting binary.
19754
hardcode_minus_L=$hardcode_minus_L_RC
19756
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19757
# the resulting binary.
19758
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19760
# Set to yes if building a shared library automatically hardcodes DIR into the library
19761
# and all subsequent libraries and executables linked against it.
19762
hardcode_automatic=$hardcode_automatic_RC
19764
# Variables whose values should be saved in libtool wrapper scripts and
19765
# restored at relink time.
19766
variables_saved_for_relink="$variables_saved_for_relink"
19768
# Whether libtool must link a program against all its dependency libraries.
19769
link_all_deplibs=$link_all_deplibs_RC
19771
# Compile-time system search path for libraries
19772
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19774
# Run-time system search path for libraries
19775
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19777
# Fix the shell variable \$srcfile for the compiler.
19778
fix_srcfile_path=$lt_fix_srcfile_path
19780
# Set to yes if exported symbols are required.
19781
always_export_symbols=$always_export_symbols_RC
19783
# The commands to list exported symbols.
19784
export_symbols_cmds=$lt_export_symbols_cmds_RC
19786
# The commands to extract the exported symbol list from a shared archive.
19787
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19789
# Symbols that should not be listed in the preloaded symbols.
19790
exclude_expsyms=$lt_exclude_expsyms_RC
19792
# Symbols that must always be exported.
19793
include_expsyms=$lt_include_expsyms_RC
19795
# ### END LIBTOOL TAG CONFIG: $tagname
19801
# If there is no Makefile yet, we rely on a make rule to execute
19802
# `config.status --recheck' to rerun these tests and create the
19803
# libtool script then.
19804
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19805
if test -f "$ltmain_in"; then
19806
test -f Makefile && make "$ltmain"
19812
ac_cpp='$CXXCPP $CPPFLAGS'
19813
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19814
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19815
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19822
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19823
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19824
{ (exit 1); exit 1; }; }
19828
# Append the new tag name to the list of available tags.
19829
if test -n "$tagname" ; then
19830
available_tags="$available_tags $tagname"
19836
# Now substitute the updated list of available tags.
19837
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19838
mv "${ofile}T" "$ofile"
19842
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19843
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19844
{ (exit 1); exit 1; }; }
19850
# This can be used to rebuild libtool when needed
19851
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19853
# Always use our own libtool.
19854
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19856
# Prevent multiple expansion
19877
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19878
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
19879
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15262
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15263
$as_echo "$hardcode_action_CXX" >&6; }
15265
if test "$hardcode_action_CXX" = relink ||
15266
test "$inherit_rpath_CXX" = yes; then
15267
# Fast installation is not supported
15268
enable_fast_install=no
15269
elif test "$shlibpath_overrides_runpath" = yes ||
15270
test "$enable_shared" = no; then
15271
# Fast installation is not necessary
15272
enable_fast_install=needless
15281
fi # test -n "$compiler"
15287
with_gnu_ld=$lt_save_with_gnu_ld
15288
lt_cv_path_LDCXX=$lt_cv_path_LD
15289
lt_cv_path_LD=$lt_save_path_LD
15290
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15291
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15292
fi # test "$_lt_caught_CXX_error" != yes
15295
ac_cpp='$CXXCPP $CPPFLAGS'
15296
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15297
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15298
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15312
ac_config_commands="$ac_config_commands libtool"
15317
# Only expand once:
15320
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15321
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15323
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19880
15324
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
19881
echo $ECHO_N "(cached) $ECHO_C" >&6
15325
$as_echo_n "(cached) " >&6
19883
15327
cat >conftest.make <<\_ACEOF
19884
15328
SHELL = /bin/sh