5740
5743
echo "${ECHO_T}ok" >&6
5767
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5768
if test "${enable_libtool_lock+set}" = set; then
5769
enableval="$enable_libtool_lock"
5772
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5774
# Some flags need to be propagated to the compiler or linker for good
5778
# Find out which ABI we are using.
5779
echo 'int i;' > conftest.$ac_ext
5780
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5781
(eval $ac_compile) 2>&5
5783
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784
(exit $ac_status); }; then
5785
case `/usr/bin/file conftest.$ac_objext` in
5797
# Find out which ABI we are using.
5798
echo '#line 5798 "configure"' > conftest.$ac_ext
5799
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5800
(eval $ac_compile) 2>&5
5802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803
(exit $ac_status); }; then
5804
if test "$lt_cv_prog_gnu_ld" = yes; then
5805
case `/usr/bin/file conftest.$ac_objext` in
5807
LD="${LD-ld} -melf32bsmip"
5810
LD="${LD-ld} -melf32bmipn32"
5813
LD="${LD-ld} -melf64bmip"
5817
case `/usr/bin/file conftest.$ac_objext` in
5833
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5834
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5835
# Find out which ABI we are using.
5836
echo 'int i;' > conftest.$ac_ext
5837
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5838
(eval $ac_compile) 2>&5
5840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841
(exit $ac_status); }; then
5842
case `/usr/bin/file conftest.o` in
5845
x86_64-*kfreebsd*-gnu)
5846
LD="${LD-ld} -m elf_i386_fbsd"
5849
LD="${LD-ld} -m elf_i386"
5851
ppc64-*linux*|powerpc64-*linux*)
5852
LD="${LD-ld} -m elf32ppclinux"
5855
LD="${LD-ld} -m elf_s390"
5858
LD="${LD-ld} -m elf32_sparc"
5864
x86_64-*kfreebsd*-gnu)
5865
LD="${LD-ld} -m elf_x86_64_fbsd"
5868
LD="${LD-ld} -m elf_x86_64"
5870
ppc*-*linux*|powerpc*-*linux*)
5871
LD="${LD-ld} -m elf64ppc"
5873
s390*-*linux*|s390*-*tpf*)
5874
LD="${LD-ld} -m elf64_s390"
5877
LD="${LD-ld} -m elf64_sparc"
5887
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
5888
SAVE_CFLAGS="$CFLAGS"
5889
CFLAGS="$CFLAGS -belf"
5890
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5891
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5892
if test "${lt_cv_cc_needs_belf+set}" = set; then
5893
echo $ECHO_N "(cached) $ECHO_C" >&6
5896
ac_cpp='$CPP $CPPFLAGS'
5897
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5898
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5899
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5901
cat >conftest.$ac_ext <<_ACEOF
5904
cat confdefs.h >>conftest.$ac_ext
5905
cat >>conftest.$ac_ext <<_ACEOF
5906
/* end confdefs.h. */
5916
rm -f conftest.$ac_objext conftest$ac_exeext
5917
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5918
(eval $ac_link) 2>conftest.er1
5920
grep -v '^ *+' conftest.er1 >conftest.err
5922
cat conftest.err >&5
5923
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924
(exit $ac_status); } &&
5925
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5926
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5929
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930
(exit $ac_status); }; } &&
5931
{ ac_try='test -s conftest$ac_exeext'
5932
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936
(exit $ac_status); }; }; then
5937
lt_cv_cc_needs_belf=yes
5939
echo "$as_me: failed program was:" >&5
5940
sed 's/^/| /' conftest.$ac_ext >&5
5942
lt_cv_cc_needs_belf=no
5944
rm -f conftest.err conftest.$ac_objext \
5945
conftest$ac_exeext conftest.$ac_ext
5947
ac_cpp='$CPP $CPPFLAGS'
5948
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5949
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5950
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5953
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5954
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5955
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5956
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5957
CFLAGS="$SAVE_CFLAGS"
5961
# Find out which ABI we are using.
5962
echo 'int i;' > conftest.$ac_ext
5963
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5964
(eval $ac_compile) 2>&5
5966
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967
(exit $ac_status); }; then
5968
case `/usr/bin/file conftest.o` in
5970
case $lt_cv_prog_gnu_ld in
5971
yes*) LD="${LD-ld} -m elf64_sparc" ;;
5973
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5985
need_locks="$enable_libtool_lock"
5989
rhapsody* | darwin*)
5990
if test -n "$ac_tool_prefix"; then
5991
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5992
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5993
echo "$as_me:$LINENO: checking for $ac_word" >&5
5994
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5995
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5996
echo $ECHO_N "(cached) $ECHO_C" >&6
5998
if test -n "$DSYMUTIL"; then
5999
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6001
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005
test -z "$as_dir" && as_dir=.
6006
for ac_exec_ext in '' $ac_executable_extensions; do
6007
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6008
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6009
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6017
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6018
if test -n "$DSYMUTIL"; then
6019
echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6020
echo "${ECHO_T}$DSYMUTIL" >&6
6022
echo "$as_me:$LINENO: result: no" >&5
6023
echo "${ECHO_T}no" >&6
6027
if test -z "$ac_cv_prog_DSYMUTIL"; then
6028
ac_ct_DSYMUTIL=$DSYMUTIL
6029
# Extract the first word of "dsymutil", so it can be a program name with args.
6030
set dummy dsymutil; ac_word=$2
6031
echo "$as_me:$LINENO: checking for $ac_word" >&5
6032
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6033
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6034
echo $ECHO_N "(cached) $ECHO_C" >&6
6036
if test -n "$ac_ct_DSYMUTIL"; then
6037
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6039
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043
test -z "$as_dir" && as_dir=.
6044
for ac_exec_ext in '' $ac_executable_extensions; do
6045
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6046
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6047
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6053
test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6056
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6057
if test -n "$ac_ct_DSYMUTIL"; then
6058
echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6059
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6061
echo "$as_me:$LINENO: result: no" >&5
6062
echo "${ECHO_T}no" >&6
6065
DSYMUTIL=$ac_ct_DSYMUTIL
6067
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6070
if test -n "$ac_tool_prefix"; then
6071
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6072
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6073
echo "$as_me:$LINENO: checking for $ac_word" >&5
6074
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6075
if test "${ac_cv_prog_NMEDIT+set}" = set; then
6076
echo $ECHO_N "(cached) $ECHO_C" >&6
6078
if test -n "$NMEDIT"; then
6079
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6081
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085
test -z "$as_dir" && as_dir=.
6086
for ac_exec_ext in '' $ac_executable_extensions; do
6087
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6088
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6089
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6097
NMEDIT=$ac_cv_prog_NMEDIT
6098
if test -n "$NMEDIT"; then
6099
echo "$as_me:$LINENO: result: $NMEDIT" >&5
6100
echo "${ECHO_T}$NMEDIT" >&6
6102
echo "$as_me:$LINENO: result: no" >&5
6103
echo "${ECHO_T}no" >&6
6107
if test -z "$ac_cv_prog_NMEDIT"; then
6108
ac_ct_NMEDIT=$NMEDIT
6109
# Extract the first word of "nmedit", so it can be a program name with args.
6110
set dummy nmedit; ac_word=$2
6111
echo "$as_me:$LINENO: checking for $ac_word" >&5
6112
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6113
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6114
echo $ECHO_N "(cached) $ECHO_C" >&6
6116
if test -n "$ac_ct_NMEDIT"; then
6117
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6119
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123
test -z "$as_dir" && as_dir=.
6124
for ac_exec_ext in '' $ac_executable_extensions; do
6125
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6126
ac_cv_prog_ac_ct_NMEDIT="nmedit"
6127
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6133
test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6136
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6137
if test -n "$ac_ct_NMEDIT"; then
6138
echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6139
echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6141
echo "$as_me:$LINENO: result: no" >&5
6142
echo "${ECHO_T}no" >&6
6145
NMEDIT=$ac_ct_NMEDIT
6147
NMEDIT="$ac_cv_prog_NMEDIT"
6150
if test -n "$ac_tool_prefix"; then
6151
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6152
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6153
echo "$as_me:$LINENO: checking for $ac_word" >&5
6154
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6155
if test "${ac_cv_prog_LIPO+set}" = set; then
6156
echo $ECHO_N "(cached) $ECHO_C" >&6
6158
if test -n "$LIPO"; then
6159
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6161
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6165
test -z "$as_dir" && as_dir=.
6166
for ac_exec_ext in '' $ac_executable_extensions; do
6167
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6168
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6169
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6177
LIPO=$ac_cv_prog_LIPO
6178
if test -n "$LIPO"; then
6179
echo "$as_me:$LINENO: result: $LIPO" >&5
6180
echo "${ECHO_T}$LIPO" >&6
6182
echo "$as_me:$LINENO: result: no" >&5
6183
echo "${ECHO_T}no" >&6
6187
if test -z "$ac_cv_prog_LIPO"; then
6189
# Extract the first word of "lipo", so it can be a program name with args.
6190
set dummy lipo; ac_word=$2
6191
echo "$as_me:$LINENO: checking for $ac_word" >&5
6192
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6193
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6194
echo $ECHO_N "(cached) $ECHO_C" >&6
6196
if test -n "$ac_ct_LIPO"; then
6197
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6199
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203
test -z "$as_dir" && as_dir=.
6204
for ac_exec_ext in '' $ac_executable_extensions; do
6205
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6206
ac_cv_prog_ac_ct_LIPO="lipo"
6207
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6213
test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
6216
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6217
if test -n "$ac_ct_LIPO"; then
6218
echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6219
echo "${ECHO_T}$ac_ct_LIPO" >&6
6221
echo "$as_me:$LINENO: result: no" >&5
6222
echo "${ECHO_T}no" >&6
6227
LIPO="$ac_cv_prog_LIPO"
6230
if test -n "$ac_tool_prefix"; then
6231
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6232
set dummy ${ac_tool_prefix}otool; ac_word=$2
6233
echo "$as_me:$LINENO: checking for $ac_word" >&5
6234
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6235
if test "${ac_cv_prog_OTOOL+set}" = set; then
6236
echo $ECHO_N "(cached) $ECHO_C" >&6
6238
if test -n "$OTOOL"; then
6239
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6241
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245
test -z "$as_dir" && as_dir=.
6246
for ac_exec_ext in '' $ac_executable_extensions; do
6247
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6248
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6249
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257
OTOOL=$ac_cv_prog_OTOOL
6258
if test -n "$OTOOL"; then
6259
echo "$as_me:$LINENO: result: $OTOOL" >&5
6260
echo "${ECHO_T}$OTOOL" >&6
6262
echo "$as_me:$LINENO: result: no" >&5
6263
echo "${ECHO_T}no" >&6
6267
if test -z "$ac_cv_prog_OTOOL"; then
6269
# Extract the first word of "otool", so it can be a program name with args.
6270
set dummy otool; ac_word=$2
6271
echo "$as_me:$LINENO: checking for $ac_word" >&5
6272
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6273
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6274
echo $ECHO_N "(cached) $ECHO_C" >&6
6276
if test -n "$ac_ct_OTOOL"; then
6277
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6279
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283
test -z "$as_dir" && as_dir=.
6284
for ac_exec_ext in '' $ac_executable_extensions; do
6285
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6286
ac_cv_prog_ac_ct_OTOOL="otool"
6287
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6293
test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
6296
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6297
if test -n "$ac_ct_OTOOL"; then
6298
echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6299
echo "${ECHO_T}$ac_ct_OTOOL" >&6
6301
echo "$as_me:$LINENO: result: no" >&5
6302
echo "${ECHO_T}no" >&6
6307
OTOOL="$ac_cv_prog_OTOOL"
6310
if test -n "$ac_tool_prefix"; then
6311
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6312
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6313
echo "$as_me:$LINENO: checking for $ac_word" >&5
6314
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6315
if test "${ac_cv_prog_OTOOL64+set}" = set; then
6316
echo $ECHO_N "(cached) $ECHO_C" >&6
6318
if test -n "$OTOOL64"; then
6319
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6321
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325
test -z "$as_dir" && as_dir=.
6326
for ac_exec_ext in '' $ac_executable_extensions; do
6327
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6328
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6329
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6337
OTOOL64=$ac_cv_prog_OTOOL64
6338
if test -n "$OTOOL64"; then
6339
echo "$as_me:$LINENO: result: $OTOOL64" >&5
6340
echo "${ECHO_T}$OTOOL64" >&6
6342
echo "$as_me:$LINENO: result: no" >&5
6343
echo "${ECHO_T}no" >&6
6347
if test -z "$ac_cv_prog_OTOOL64"; then
6348
ac_ct_OTOOL64=$OTOOL64
6349
# Extract the first word of "otool64", so it can be a program name with args.
6350
set dummy otool64; ac_word=$2
6351
echo "$as_me:$LINENO: checking for $ac_word" >&5
6352
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6353
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6354
echo $ECHO_N "(cached) $ECHO_C" >&6
6356
if test -n "$ac_ct_OTOOL64"; then
6357
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6359
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363
test -z "$as_dir" && as_dir=.
6364
for ac_exec_ext in '' $ac_executable_extensions; do
6365
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6366
ac_cv_prog_ac_ct_OTOOL64="otool64"
6367
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6373
test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
6376
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6377
if test -n "$ac_ct_OTOOL64"; then
6378
echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6379
echo "${ECHO_T}$ac_ct_OTOOL64" >&6
6381
echo "$as_me:$LINENO: result: no" >&5
6382
echo "${ECHO_T}no" >&6
6385
OTOOL64=$ac_ct_OTOOL64
6387
OTOOL64="$ac_cv_prog_OTOOL64"
6416
echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6417
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6418
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6419
echo $ECHO_N "(cached) $ECHO_C" >&6
6421
lt_cv_apple_cc_single_mod=no
6422
if test -z "${LT_MULTI_MODULE}"; then
6423
# By default we will add the -single_module flag. You can override
6424
# by either setting the environment variable LT_MULTI_MODULE
6425
# non-empty at configure time, or by adding -multi_module to the
6427
rm -rf libconftest.dylib*
6428
echo "int foo(void){return 1;}" > conftest.c
6429
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6430
-dynamiclib -Wl,-single_module conftest.c" >&5
6431
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6432
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6434
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6435
lt_cv_apple_cc_single_mod=yes
6437
cat conftest.err >&5
6439
rm -rf libconftest.dylib*
6443
echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6444
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
6445
echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6446
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6447
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6448
echo $ECHO_N "(cached) $ECHO_C" >&6
6450
lt_cv_ld_exported_symbols_list=no
6451
save_LDFLAGS=$LDFLAGS
6452
echo "_main" > conftest.sym
6453
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6454
cat >conftest.$ac_ext <<_ACEOF
6457
cat confdefs.h >>conftest.$ac_ext
6458
cat >>conftest.$ac_ext <<_ACEOF
6459
/* end confdefs.h. */
6469
rm -f conftest.$ac_objext conftest$ac_exeext
6470
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6471
(eval $ac_link) 2>conftest.er1
6473
grep -v '^ *+' conftest.er1 >conftest.err
6475
cat conftest.err >&5
6476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477
(exit $ac_status); } &&
6478
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6479
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483
(exit $ac_status); }; } &&
6484
{ ac_try='test -s conftest$ac_exeext'
6485
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489
(exit $ac_status); }; }; then
6490
lt_cv_ld_exported_symbols_list=yes
6492
echo "$as_me: failed program was:" >&5
6493
sed 's/^/| /' conftest.$ac_ext >&5
6495
lt_cv_ld_exported_symbols_list=no
6497
rm -f conftest.err conftest.$ac_objext \
6498
conftest$ac_exeext conftest.$ac_ext
6499
LDFLAGS="$save_LDFLAGS"
6502
echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6503
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
6505
rhapsody* | darwin1.[012])
6506
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6508
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6509
darwin*) # darwin 5.x on
6510
# if running on 10.5 or later, the deployment target defaults
6511
# to the OS version, if on x86, and 10.4, the deployment
6512
# target defaults to 10.4. Don't you love it?
6513
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6514
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6515
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6517
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6519
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6523
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6524
_lt_dar_single_mod='$single_module'
6526
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6527
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6529
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6531
if test "$DSYMUTIL" != ":"; then
6532
_lt_dsymutil='~$DSYMUTIL $lib || :'
6540
for ac_header in dlfcn.h
6542
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6543
echo "$as_me:$LINENO: checking for $ac_header" >&5
6544
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6545
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6546
echo $ECHO_N "(cached) $ECHO_C" >&6
6548
cat >conftest.$ac_ext <<_ACEOF
6551
cat confdefs.h >>conftest.$ac_ext
6552
cat >>conftest.$ac_ext <<_ACEOF
6553
/* end confdefs.h. */
6554
$ac_includes_default
6556
#include <$ac_header>
6558
rm -f conftest.$ac_objext
6559
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6560
(eval $ac_compile) 2>conftest.er1
6562
grep -v '^ *+' conftest.er1 >conftest.err
6564
cat conftest.err >&5
6565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566
(exit $ac_status); } &&
6567
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6568
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572
(exit $ac_status); }; } &&
6573
{ ac_try='test -s conftest.$ac_objext'
6574
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578
(exit $ac_status); }; }; then
6579
eval "$as_ac_Header=yes"
6581
echo "$as_me: failed program was:" >&5
6582
sed 's/^/| /' conftest.$ac_ext >&5
6584
eval "$as_ac_Header=no"
6586
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6588
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6589
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6590
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6591
cat >>confdefs.h <<_ACEOF
6592
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6602
ac_cpp='$CXXCPP $CPPFLAGS'
6603
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6604
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6605
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6606
if test -n "$ac_tool_prefix"; then
6607
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6609
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6610
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6611
echo "$as_me:$LINENO: checking for $ac_word" >&5
6612
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6613
if test "${ac_cv_prog_CXX+set}" = set; then
6614
echo $ECHO_N "(cached) $ECHO_C" >&6
6616
if test -n "$CXX"; then
6617
ac_cv_prog_CXX="$CXX" # Let the user override the test.
6619
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623
test -z "$as_dir" && as_dir=.
6624
for ac_exec_ext in '' $ac_executable_extensions; do
6625
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6627
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6636
if test -n "$CXX"; then
6637
echo "$as_me:$LINENO: result: $CXX" >&5
6638
echo "${ECHO_T}$CXX" >&6
6640
echo "$as_me:$LINENO: result: no" >&5
6641
echo "${ECHO_T}no" >&6
6644
test -n "$CXX" && break
6647
if test -z "$CXX"; then
6649
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6651
# Extract the first word of "$ac_prog", so it can be a program name with args.
6652
set dummy $ac_prog; ac_word=$2
6653
echo "$as_me:$LINENO: checking for $ac_word" >&5
6654
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6655
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6656
echo $ECHO_N "(cached) $ECHO_C" >&6
6658
if test -n "$ac_ct_CXX"; then
6659
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6661
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6665
test -z "$as_dir" && as_dir=.
6666
for ac_exec_ext in '' $ac_executable_extensions; do
6667
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6668
ac_cv_prog_ac_ct_CXX="$ac_prog"
6669
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6677
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6678
if test -n "$ac_ct_CXX"; then
6679
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6680
echo "${ECHO_T}$ac_ct_CXX" >&6
6682
echo "$as_me:$LINENO: result: no" >&5
6683
echo "${ECHO_T}no" >&6
6686
test -n "$ac_ct_CXX" && break
6688
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6694
# Provide some information about the compiler.
6695
echo "$as_me:$LINENO:" \
6696
"checking for C++ compiler version" >&5
6697
ac_compiler=`set X $ac_compile; echo $2`
6698
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6699
(eval $ac_compiler --version </dev/null >&5) 2>&5
6701
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702
(exit $ac_status); }
6703
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6704
(eval $ac_compiler -v </dev/null >&5) 2>&5
6706
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707
(exit $ac_status); }
6708
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6709
(eval $ac_compiler -V </dev/null >&5) 2>&5
6711
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712
(exit $ac_status); }
6714
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6715
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6716
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6717
echo $ECHO_N "(cached) $ECHO_C" >&6
6719
cat >conftest.$ac_ext <<_ACEOF
6722
cat confdefs.h >>conftest.$ac_ext
6723
cat >>conftest.$ac_ext <<_ACEOF
6724
/* end confdefs.h. */
6737
rm -f conftest.$ac_objext
6738
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6739
(eval $ac_compile) 2>conftest.er1
6741
grep -v '^ *+' conftest.er1 >conftest.err
6743
cat conftest.err >&5
6744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745
(exit $ac_status); } &&
6746
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6747
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6750
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751
(exit $ac_status); }; } &&
6752
{ ac_try='test -s conftest.$ac_objext'
6753
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757
(exit $ac_status); }; }; then
6760
echo "$as_me: failed program was:" >&5
6761
sed 's/^/| /' conftest.$ac_ext >&5
6765
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6766
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6769
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6770
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6771
GXX=`test $ac_compiler_gnu = yes && echo yes`
6772
ac_test_CXXFLAGS=${CXXFLAGS+set}
6773
ac_save_CXXFLAGS=$CXXFLAGS
6775
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6776
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6777
if test "${ac_cv_prog_cxx_g+set}" = set; then
6778
echo $ECHO_N "(cached) $ECHO_C" >&6
6780
cat >conftest.$ac_ext <<_ACEOF
6783
cat confdefs.h >>conftest.$ac_ext
6784
cat >>conftest.$ac_ext <<_ACEOF
6785
/* end confdefs.h. */
6795
rm -f conftest.$ac_objext
6796
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6797
(eval $ac_compile) 2>conftest.er1
6799
grep -v '^ *+' conftest.er1 >conftest.err
6801
cat conftest.err >&5
6802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803
(exit $ac_status); } &&
6804
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6805
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809
(exit $ac_status); }; } &&
6810
{ ac_try='test -s conftest.$ac_objext'
6811
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815
(exit $ac_status); }; }; then
6816
ac_cv_prog_cxx_g=yes
6818
echo "$as_me: failed program was:" >&5
6819
sed 's/^/| /' conftest.$ac_ext >&5
6823
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6825
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6826
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6827
if test "$ac_test_CXXFLAGS" = set; then
6828
CXXFLAGS=$ac_save_CXXFLAGS
6829
elif test $ac_cv_prog_cxx_g = yes; then
6830
if test "$GXX" = yes; then
6836
if test "$GXX" = yes; then
6842
for ac_declaration in \
6844
'extern "C" void std::exit (int) throw (); using std::exit;' \
6845
'extern "C" void std::exit (int); using std::exit;' \
6846
'extern "C" void exit (int) throw ();' \
6847
'extern "C" void exit (int);' \
6850
cat >conftest.$ac_ext <<_ACEOF
6853
cat confdefs.h >>conftest.$ac_ext
6854
cat >>conftest.$ac_ext <<_ACEOF
6855
/* end confdefs.h. */
6866
rm -f conftest.$ac_objext
6867
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6868
(eval $ac_compile) 2>conftest.er1
6870
grep -v '^ *+' conftest.er1 >conftest.err
6872
cat conftest.err >&5
6873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874
(exit $ac_status); } &&
6875
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6876
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6879
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880
(exit $ac_status); }; } &&
6881
{ ac_try='test -s conftest.$ac_objext'
6882
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886
(exit $ac_status); }; }; then
6889
echo "$as_me: failed program was:" >&5
6890
sed 's/^/| /' conftest.$ac_ext >&5
6894
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6895
cat >conftest.$ac_ext <<_ACEOF
6898
cat confdefs.h >>conftest.$ac_ext
6899
cat >>conftest.$ac_ext <<_ACEOF
6900
/* end confdefs.h. */
6910
rm -f conftest.$ac_objext
6911
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6912
(eval $ac_compile) 2>conftest.er1
6914
grep -v '^ *+' conftest.er1 >conftest.err
6916
cat conftest.err >&5
6917
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918
(exit $ac_status); } &&
6919
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6920
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924
(exit $ac_status); }; } &&
6925
{ ac_try='test -s conftest.$ac_objext'
6926
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6929
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930
(exit $ac_status); }; }; then
6933
echo "$as_me: failed program was:" >&5
6934
sed 's/^/| /' conftest.$ac_ext >&5
6937
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6940
if test -n "$ac_declaration"; then
6941
echo '#ifdef __cplusplus' >>confdefs.h
6942
echo $ac_declaration >>confdefs.h
6943
echo '#endif' >>confdefs.h
6947
ac_cpp='$CPP $CPPFLAGS'
6948
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6949
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6950
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6952
depcc="$CXX" am_compiler_list=
6954
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6955
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6956
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6957
echo $ECHO_N "(cached) $ECHO_C" >&6
6959
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6960
# We make a subdir and do the tests there. Otherwise we can end up
6961
# making bogus files that we don't know about and never remove. For
6962
# instance it was reported that on HP-UX the gcc test will end up
6963
# making a dummy file named `D' -- because `-MD' means `put the output
6966
# Copy depcomp to subdir because otherwise we won't find it if we're
6967
# using a relative directory.
6968
cp "$am_depcomp" conftest.dir
6970
# We will build objects and dependencies in a subdirectory because
6971
# it helps to detect inapplicable dependency modes. For instance
6972
# both Tru64's cc and ICC support -MD to output dependencies as a
6973
# side effect of compilation, but ICC will put the dependencies in
6974
# the current directory while Tru64 will put them in the object
6978
am_cv_CXX_dependencies_compiler_type=none
6979
if test "$am_compiler_list" = ""; then
6980
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6982
for depmode in $am_compiler_list; do
6983
# Setup a source with many dependencies, because some compilers
6984
# like to wrap large dependency lists on column 80 (with \), and
6985
# we should not choose a depcomp mode which is confused by this.
6987
# We need to recreate these files for each test, as the compiler may
6988
# overwrite some of them when testing with obscure command lines.
6989
# This happens at least with the AIX C compiler.
6991
for i in 1 2 3 4 5 6; do
6992
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6993
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6994
# Solaris 8's {/usr,}/bin/sh.
6995
touch sub/conftst$i.h
6997
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7001
# after this tag, mechanisms are not by side-effect, so they'll
7002
# only be used when explicitly requested
7003
if test "x$enable_dependency_tracking" = xyes; then
7011
# We check with `-c' and `-o' for the sake of the "dashmstdout"
7012
# mode. It turns out that the SunPro C++ compiler does not properly
7013
# handle `-M -o', and we need to detect this.
7014
if depmode=$depmode \
7015
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7016
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7017
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7018
>/dev/null 2>conftest.err &&
7019
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7020
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7021
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7022
# icc doesn't choke on unknown options, it will just issue warnings
7023
# or remarks (even with -Werror). So we grep stderr for any message
7024
# that says an option was ignored or not supported.
7025
# When given -MP, icc 7.0 and 7.1 complain thusly:
7026
# icc: Command line warning: ignoring option '-M'; no argument required
7027
# The diagnosis changed in icc 8.0:
7028
# icc: Command line remark: option '-MP' not supported
7029
if (grep 'ignoring option' conftest.err ||
7030
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7031
am_cv_CXX_dependencies_compiler_type=$depmode
7040
am_cv_CXX_dependencies_compiler_type=none
7044
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7045
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7046
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7051
test "x$enable_dependency_tracking" != xno \
7052
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7053
am__fastdepCXX_TRUE=
7054
am__fastdepCXX_FALSE='#'
7056
am__fastdepCXX_TRUE='#'
7057
am__fastdepCXX_FALSE=
7061
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7062
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7063
(test "X$CXX" != "Xg++"))) ; then
7065
ac_cpp='$CXXCPP $CPPFLAGS'
7066
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7067
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7068
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7069
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7070
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7071
if test -z "$CXXCPP"; then
7072
if test "${ac_cv_prog_CXXCPP+set}" = set; then
7073
echo $ECHO_N "(cached) $ECHO_C" >&6
7075
# Double quotes because CXXCPP needs to be expanded
7076
for CXXCPP in "$CXX -E" "/lib/cpp"
7079
for ac_cxx_preproc_warn_flag in '' yes
7081
# Use a header file that comes with gcc, so configuring glibc
7082
# with a fresh cross-compiler works.
7083
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7084
# <limits.h> exists even on freestanding compilers.
7085
# On the NeXT, cc -E runs the code through the compiler's parser,
7086
# not just through cpp. "Syntax error" is here to catch this case.
7087
cat >conftest.$ac_ext <<_ACEOF
7090
cat confdefs.h >>conftest.$ac_ext
7091
cat >>conftest.$ac_ext <<_ACEOF
7092
/* end confdefs.h. */
7094
# include <limits.h>
7096
# include <assert.h>
7100
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7101
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7103
grep -v '^ *+' conftest.er1 >conftest.err
7105
cat conftest.err >&5
7106
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107
(exit $ac_status); } >/dev/null; then
7108
if test -s conftest.err; then
7109
ac_cpp_err=$ac_cxx_preproc_warn_flag
7110
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7117
if test -z "$ac_cpp_err"; then
7120
echo "$as_me: failed program was:" >&5
7121
sed 's/^/| /' conftest.$ac_ext >&5
7123
# Broken: fails on valid input.
7126
rm -f conftest.err conftest.$ac_ext
7128
# OK, works on sane cases. Now check whether non-existent headers
7129
# can be detected and how.
7130
cat >conftest.$ac_ext <<_ACEOF
7133
cat confdefs.h >>conftest.$ac_ext
7134
cat >>conftest.$ac_ext <<_ACEOF
7135
/* end confdefs.h. */
7136
#include <ac_nonexistent.h>
7138
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7139
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7141
grep -v '^ *+' conftest.er1 >conftest.err
7143
cat conftest.err >&5
7144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145
(exit $ac_status); } >/dev/null; then
7146
if test -s conftest.err; then
7147
ac_cpp_err=$ac_cxx_preproc_warn_flag
7148
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7155
if test -z "$ac_cpp_err"; then
7156
# Broken: success on invalid input.
7159
echo "$as_me: failed program was:" >&5
7160
sed 's/^/| /' conftest.$ac_ext >&5
7162
# Passes both tests.
7166
rm -f conftest.err conftest.$ac_ext
7169
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7170
rm -f conftest.err conftest.$ac_ext
7171
if $ac_preproc_ok; then
7176
ac_cv_prog_CXXCPP=$CXXCPP
7179
CXXCPP=$ac_cv_prog_CXXCPP
7181
ac_cv_prog_CXXCPP=$CXXCPP
7183
echo "$as_me:$LINENO: result: $CXXCPP" >&5
7184
echo "${ECHO_T}$CXXCPP" >&6
7186
for ac_cxx_preproc_warn_flag in '' yes
7188
# Use a header file that comes with gcc, so configuring glibc
7189
# with a fresh cross-compiler works.
7190
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7191
# <limits.h> exists even on freestanding compilers.
7192
# On the NeXT, cc -E runs the code through the compiler's parser,
7193
# not just through cpp. "Syntax error" is here to catch this case.
7194
cat >conftest.$ac_ext <<_ACEOF
7197
cat confdefs.h >>conftest.$ac_ext
7198
cat >>conftest.$ac_ext <<_ACEOF
7199
/* end confdefs.h. */
7201
# include <limits.h>
7203
# include <assert.h>
7207
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7208
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7210
grep -v '^ *+' conftest.er1 >conftest.err
7212
cat conftest.err >&5
7213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214
(exit $ac_status); } >/dev/null; then
7215
if test -s conftest.err; then
7216
ac_cpp_err=$ac_cxx_preproc_warn_flag
7217
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7224
if test -z "$ac_cpp_err"; then
7227
echo "$as_me: failed program was:" >&5
7228
sed 's/^/| /' conftest.$ac_ext >&5
7230
# Broken: fails on valid input.
7233
rm -f conftest.err conftest.$ac_ext
7235
# OK, works on sane cases. Now check whether non-existent headers
7236
# can be detected and how.
7237
cat >conftest.$ac_ext <<_ACEOF
7240
cat confdefs.h >>conftest.$ac_ext
7241
cat >>conftest.$ac_ext <<_ACEOF
7242
/* end confdefs.h. */
7243
#include <ac_nonexistent.h>
7245
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7246
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7248
grep -v '^ *+' conftest.er1 >conftest.err
7250
cat conftest.err >&5
7251
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252
(exit $ac_status); } >/dev/null; then
7253
if test -s conftest.err; then
7254
ac_cpp_err=$ac_cxx_preproc_warn_flag
7255
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7262
if test -z "$ac_cpp_err"; then
7263
# Broken: success on invalid input.
7266
echo "$as_me: failed program was:" >&5
7267
sed 's/^/| /' conftest.$ac_ext >&5
7269
# Passes both tests.
7273
rm -f conftest.err conftest.$ac_ext
7276
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7277
rm -f conftest.err conftest.$ac_ext
7278
if $ac_preproc_ok; then
7281
_lt_caught_CXX_error=yes
7285
ac_cpp='$CPP $CPPFLAGS'
7286
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7287
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7288
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7291
_lt_caught_CXX_error=yes
7308
# Check whether --enable-shared or --disable-shared was given.
7309
if test "${enable_shared+set}" = set; then
7310
enableval="$enable_shared"
7311
p=${PACKAGE-default}
7313
yes) enable_shared=yes ;;
7314
no) enable_shared=no ;;
7317
# Look at the argument we got. We use all the common list separators.
7318
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7319
for pkg in $enableval; do
7321
if test "X$pkg" = "X$p"; then
7339
# Check whether --enable-static or --disable-static was given.
7340
if test "${enable_static+set}" = set; then
7341
enableval="$enable_static"
7342
p=${PACKAGE-default}
7344
yes) enable_static=yes ;;
7345
no) enable_static=no ;;
7348
# Look at the argument we got. We use all the common list separators.
7349
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7350
for pkg in $enableval; do
7352
if test "X$pkg" = "X$p"; then
7371
# Check whether --with-pic or --without-pic was given.
7372
if test "${with_pic+set}" = set; then
7379
test -z "$pic_mode" && pic_mode=default
7387
# Check whether --enable-fast-install or --disable-fast-install was given.
7388
if test "${enable_fast_install+set}" = set; then
7389
enableval="$enable_fast_install"
7390
p=${PACKAGE-default}
7392
yes) enable_fast_install=yes ;;
7393
no) enable_fast_install=no ;;
7395
enable_fast_install=no
7396
# Look at the argument we got. We use all the common list separators.
7397
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7398
for pkg in $enableval; do
7400
if test "X$pkg" = "X$p"; then
7401
enable_fast_install=yes
7408
enable_fast_install=yes
7420
# This can be used to rebuild libtool when needed
7421
LIBTOOL_DEPS="$ltmain"
7423
# Always use our own libtool.
7424
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7450
test -z "$LN_S" && LN_S="ln -s"
7465
if test -n "${ZSH_VERSION+set}" ; then
7466
setopt NO_GLOB_SUBST
5743
7469
echo "$as_me:$LINENO: checking for objdir" >&5
5744
7470
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5745
7471
if test "${lt_cv_objdir+set}" = set; then
10072
# Check if GNU C++ uses GNU ld as the underlying linker, since the
10073
# archiving commands below assume that GNU ld is being used.
10074
if test "$with_gnu_ld" = yes; then
10075
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10076
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'
10078
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10079
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10081
# If archive_cmds runs LD, not CC, wlarc should be empty
10082
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10083
# investigate it a little bit more. (MM)
10086
# ancient GNU ld didn't support --whole-archive et. al.
10087
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10088
grep 'no-whole-archive' > /dev/null; then
10089
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10091
whole_archive_flag_spec_CXX=
10097
# A generic and very simple default shared library creation
10098
# command for GNU C++ for the case where it uses the native
10099
# linker, instead of GNU ld. If possible, this setting should
10100
# overridden to take advantage of the native linker features on
10101
# the platform it is being used on.
10102
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10105
# Commands to make compiler produce verbose output that lists
10106
# what "hidden" libraries, object files and flags are used when
10107
# linking a shared library.
10108
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10116
# PORTME: fill in a description of your system's C++ link characteristics
10117
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10118
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10122
# FIXME: insert proper C++ library support
10126
if test "$host_cpu" = ia64; then
10127
# On IA64, the linker does run time linking by default, so we don't
10128
# have to do anything special.
10129
aix_use_runtimelinking=no
10130
exp_sym_flag='-Bexport'
10133
aix_use_runtimelinking=no
10135
# Test if we are trying to use run time linking or normal
10136
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10137
# need to do runtime linking.
10138
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10139
for ld_flag in $LDFLAGS; do
10142
aix_use_runtimelinking=yes
10150
exp_sym_flag='-bexport'
10151
no_entry_flag='-bnoentry'
10154
# When large executables or shared objects are built, AIX ld can
10155
# have problems creating the table of contents. If linking a library
10156
# or program results in "error TOC overflow" add -mminimal-toc to
10157
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10158
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10160
archive_cmds_CXX=''
10161
hardcode_direct_CXX=yes
10162
hardcode_libdir_separator_CXX=':'
10163
link_all_deplibs_CXX=yes
10165
if test "$GXX" = yes; then
10166
case $host_os in aix4.[012]|aix4.[012].*)
10167
# We only want to do this on AIX 4.2 and lower, the check
10168
# below for broken collect2 doesn't work under 4.3+
10169
collect2name=`${CC} -print-prog-name=collect2`
10170
if test -f "$collect2name" && \
10171
strings "$collect2name" | grep resolve_lib_name >/dev/null
10173
# We have reworked collect2
10174
hardcode_direct_CXX=yes
10176
# We have old collect2
10177
hardcode_direct_CXX=unsupported
10178
# It fails to find uninstalled libraries when the uninstalled
10179
# path is not listed in the libpath. Setting hardcode_minus_L
10180
# to unsupported forces relinking
10181
hardcode_minus_L_CXX=yes
10182
hardcode_libdir_flag_spec_CXX='-L$libdir'
10183
hardcode_libdir_separator_CXX=
10187
shared_flag='-shared'
10188
if test "$aix_use_runtimelinking" = yes; then
10189
shared_flag="$shared_flag "'${wl}-G'
10193
if test "$host_cpu" = ia64; then
10194
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10195
# chokes on -Wl,-G. The following line is correct:
10198
if test "$aix_use_runtimelinking" = yes; then
10199
shared_flag='${wl}-G'
10201
shared_flag='${wl}-bM:SRE'
10206
# It seems that -bexpall does not export symbols beginning with
10207
# underscore (_), so it is better to generate a list of symbols to export.
10208
always_export_symbols_CXX=yes
10209
if test "$aix_use_runtimelinking" = yes; then
10210
# Warning - without using the other runtime loading flags (-brtl),
10211
# -berok will link without error, but may produce a broken library.
10212
allow_undefined_flag_CXX='-berok'
10213
# Determine the default libpath from the value encoded in an empty executable.
10214
cat >conftest.$ac_ext <<_ACEOF
10217
cat confdefs.h >>conftest.$ac_ext
10218
cat >>conftest.$ac_ext <<_ACEOF
10219
/* end confdefs.h. */
10229
rm -f conftest.$ac_objext conftest$ac_exeext
10230
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231
(eval $ac_link) 2>conftest.er1
10233
grep -v '^ *+' conftest.er1 >conftest.err
10235
cat conftest.err >&5
10236
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237
(exit $ac_status); } &&
10238
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10239
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240
(eval $ac_try) 2>&5
10242
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243
(exit $ac_status); }; } &&
10244
{ ac_try='test -s conftest$ac_exeext'
10245
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10246
(eval $ac_try) 2>&5
10248
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249
(exit $ac_status); }; }; then
10251
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10253
# Check for a 64-bit object if we didn't find anything.
10254
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10257
echo "$as_me: failed program was:" >&5
10258
sed 's/^/| /' conftest.$ac_ext >&5
10261
rm -f conftest.err conftest.$ac_objext \
10262
conftest$ac_exeext conftest.$ac_ext
10263
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10265
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10267
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"
10269
if test "$host_cpu" = ia64; then
10270
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10271
allow_undefined_flag_CXX="-z nodefs"
10272
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"
10274
# Determine the default libpath from the value encoded in an empty executable.
10275
cat >conftest.$ac_ext <<_ACEOF
10278
cat confdefs.h >>conftest.$ac_ext
10279
cat >>conftest.$ac_ext <<_ACEOF
10280
/* end confdefs.h. */
10290
rm -f conftest.$ac_objext conftest$ac_exeext
10291
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10292
(eval $ac_link) 2>conftest.er1
10294
grep -v '^ *+' conftest.er1 >conftest.err
10296
cat conftest.err >&5
10297
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298
(exit $ac_status); } &&
10299
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10300
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301
(eval $ac_try) 2>&5
10303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304
(exit $ac_status); }; } &&
10305
{ ac_try='test -s conftest$ac_exeext'
10306
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307
(eval $ac_try) 2>&5
10309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310
(exit $ac_status); }; }; then
10312
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10314
# Check for a 64-bit object if we didn't find anything.
10315
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10318
echo "$as_me: failed program was:" >&5
10319
sed 's/^/| /' conftest.$ac_ext >&5
10322
rm -f conftest.err conftest.$ac_objext \
10323
conftest$ac_exeext conftest.$ac_ext
10324
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10326
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10327
# Warning - without using the other run time loading flags,
10328
# -berok will link without error, but may produce a broken library.
10329
no_undefined_flag_CXX=' ${wl}-bernotok'
10330
allow_undefined_flag_CXX=' ${wl}-berok'
10331
# Exported symbols can be pulled into shared objects from archives
10332
whole_archive_flag_spec_CXX='$convenience'
10333
archive_cmds_need_lc_CXX=yes
10334
# This is similar to how AIX traditionally builds its shared libraries.
10335
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'
10341
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10342
allow_undefined_flag_CXX=unsupported
10343
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10344
# support --undefined. This deserves some investigation. FIXME
10345
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10352
case $cc_basename in
10354
# FIXME: insert proper C++ library support
10360
cygwin* | mingw* | pw32*)
10361
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10362
# as there is no search path for DLLs.
10363
hardcode_libdir_flag_spec_CXX='-L$libdir'
10364
allow_undefined_flag_CXX=unsupported
10365
always_export_symbols_CXX=no
10366
enable_shared_with_static_runtimes_CXX=yes
10368
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10369
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'
10370
# If the export-symbols file already is a .def file (1st line
10371
# is EXPORTS), use it as is; otherwise, prepend...
10372
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10373
cp $export_symbols $output_objdir/$soname.def;
10375
echo EXPORTS > $output_objdir/$soname.def;
10376
cat $export_symbols >> $output_objdir/$soname.def;
10378
$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'
10383
darwin* | rhapsody*)
10385
rhapsody* | darwin1.[012])
10386
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10389
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10390
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10392
case ${MACOSX_DEPLOYMENT_TARGET} in
10394
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10397
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10403
archive_cmds_need_lc_CXX=no
10404
hardcode_direct_CXX=no
10405
hardcode_automatic_CXX=yes
10406
hardcode_shlibpath_var_CXX=unsupported
10407
whole_archive_flag_spec_CXX=''
10408
link_all_deplibs_CXX=yes
10410
if test "$GXX" = yes ; then
10411
lt_int_apple_cc_single_mod=no
10412
output_verbose_link_cmd='echo'
10413
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10414
lt_int_apple_cc_single_mod=yes
10416
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10417
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10419
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'
11607
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11608
# archiving commands below assume that GNU ld is being used.
11609
if test "$with_gnu_ld" = yes; then
11610
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11611
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'
11613
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11614
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11616
# If archive_cmds runs LD, not CC, wlarc should be empty
11617
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11618
# investigate it a little bit more. (MM)
11621
# ancient GNU ld didn't support --whole-archive et. al.
11622
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11623
$GREP 'no-whole-archive' > /dev/null; then
11624
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11626
whole_archive_flag_spec_CXX=
10421
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10422
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10423
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10424
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10426
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10428
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}'
10430
case $cc_basename in
10432
output_verbose_link_cmd='echo'
10433
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10434
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10435
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10436
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10437
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}'
11632
# A generic and very simple default shared library creation
11633
# command for GNU C++ for the case where it uses the native
11634
# linker, instead of GNU ld. If possible, this setting should
11635
# overridden to take advantage of the native linker features on
11636
# the platform it is being used on.
11637
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10447
case $cc_basename in
10449
# FIXME: insert proper C++ library support
10453
# Green Hills C++ Compiler
10454
# FIXME: insert proper C++ library support
10458
# FIXME: insert proper C++ library support
10464
# C++ shared libraries reported to be fairly broken before switch to ELF
10468
archive_cmds_need_lc_CXX=no
10470
freebsd* | kfreebsd*-gnu | dragonfly*)
10471
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10478
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10479
hardcode_libdir_separator_CXX=:
10480
export_dynamic_flag_spec_CXX='${wl}-E'
10481
hardcode_direct_CXX=yes
10482
hardcode_minus_L_CXX=yes # Not in the search PATH,
10483
# but as the default
10484
# location of the library.
10486
case $cc_basename in
10488
# FIXME: insert proper C++ library support
10492
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'
10493
11640
# Commands to make compiler produce verbose output that lists
10494
11641
# what "hidden" libraries, object files and flags are used when
10495
11642
# linking a shared library.
10497
# There doesn't appear to be a way to prevent this compiler from
10498
# explicitly linking system object files so we need to strip them
10499
# from the output so that they don't get included in the library
10501
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'
10504
if test "$GXX" = yes; then
10505
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'
11643
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
11651
# PORTME: fill in a description of your system's C++ link characteristics
11652
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11653
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10507
11657
# FIXME: insert proper C++ library support
10508
11658
ld_shlibs_CXX=no
10514
if test $with_gnu_ld = no; then
10515
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10516
hardcode_libdir_separator_CXX=:
10520
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11661
if test "$host_cpu" = ia64; then
11662
# On IA64, the linker does run time linking by default, so we don't
11663
# have to do anything special.
11664
aix_use_runtimelinking=no
11665
exp_sym_flag='-Bexport'
11668
aix_use_runtimelinking=no
11670
# Test if we are trying to use run time linking or normal
11671
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11672
# need to do runtime linking.
11673
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11674
for ld_flag in $LDFLAGS; do
11677
aix_use_runtimelinking=yes
11685
exp_sym_flag='-bexport'
11686
no_entry_flag='-bnoentry'
11689
# When large executables or shared objects are built, AIX ld can
11690
# have problems creating the table of contents. If linking a library
11691
# or program results in "error TOC overflow" add -mminimal-toc to
11692
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11693
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11695
archive_cmds_CXX=''
11696
hardcode_direct_CXX=yes
11697
hardcode_direct_absolute_CXX=yes
11698
hardcode_libdir_separator_CXX=':'
11699
link_all_deplibs_CXX=yes
11700
file_list_spec_CXX='${wl}-f,'
11702
if test "$GXX" = yes; then
11703
case $host_os in aix4.[012]|aix4.[012].*)
11704
# We only want to do this on AIX 4.2 and lower, the check
11705
# below for broken collect2 doesn't work under 4.3+
11706
collect2name=`${CC} -print-prog-name=collect2`
11707
if test -f "$collect2name" &&
11708
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11710
# We have reworked collect2
11713
# We have old collect2
11714
hardcode_direct_CXX=unsupported
11715
# It fails to find uninstalled libraries when the uninstalled
11716
# path is not listed in the libpath. Setting hardcode_minus_L
11717
# to unsupported forces relinking
11718
hardcode_minus_L_CXX=yes
11719
hardcode_libdir_flag_spec_CXX='-L$libdir'
11720
hardcode_libdir_separator_CXX=
11723
shared_flag='-shared'
11724
if test "$aix_use_runtimelinking" = yes; then
11725
shared_flag="$shared_flag "'${wl}-G'
11729
if test "$host_cpu" = ia64; then
11730
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11731
# chokes on -Wl,-G. The following line is correct:
11734
if test "$aix_use_runtimelinking" = yes; then
11735
shared_flag='${wl}-G'
11737
shared_flag='${wl}-bM:SRE'
11742
# It seems that -bexpall does not export symbols beginning with
11743
# underscore (_), so it is better to generate a list of symbols to
11745
always_export_symbols_CXX=yes
11746
if test "$aix_use_runtimelinking" = yes; then
11747
# Warning - without using the other runtime loading flags (-brtl),
11748
# -berok will link without error, but may produce a broken library.
11749
allow_undefined_flag_CXX='-berok'
11750
# Determine the default libpath from the value encoded in an empty
11752
cat >conftest.$ac_ext <<_ACEOF
11755
cat confdefs.h >>conftest.$ac_ext
11756
cat >>conftest.$ac_ext <<_ACEOF
11757
/* end confdefs.h. */
11767
rm -f conftest.$ac_objext conftest$ac_exeext
11768
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11769
(eval $ac_link) 2>conftest.er1
11771
grep -v '^ *+' conftest.er1 >conftest.err
11773
cat conftest.err >&5
11774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775
(exit $ac_status); } &&
11776
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11777
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778
(eval $ac_try) 2>&5
11780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781
(exit $ac_status); }; } &&
11782
{ ac_try='test -s conftest$ac_exeext'
11783
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11784
(eval $ac_try) 2>&5
11786
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11787
(exit $ac_status); }; }; then
11789
lt_aix_libpath_sed='
11790
/Import File Strings/,/^$/ {
11796
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11797
# Check for a 64-bit object if we didn't find anything.
11798
if test -z "$aix_libpath"; then
11799
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11802
echo "$as_me: failed program was:" >&5
11803
sed 's/^/| /' conftest.$ac_ext >&5
11806
rm -f conftest.err conftest.$ac_objext \
11807
conftest$ac_exeext conftest.$ac_ext
11808
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11810
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11812
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"
11814
if test "$host_cpu" = ia64; then
11815
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11816
allow_undefined_flag_CXX="-z nodefs"
11817
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"
11819
# Determine the default libpath from the value encoded in an
11820
# empty executable.
11821
cat >conftest.$ac_ext <<_ACEOF
11824
cat confdefs.h >>conftest.$ac_ext
11825
cat >>conftest.$ac_ext <<_ACEOF
11826
/* end confdefs.h. */
11836
rm -f conftest.$ac_objext conftest$ac_exeext
11837
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11838
(eval $ac_link) 2>conftest.er1
11840
grep -v '^ *+' conftest.er1 >conftest.err
11842
cat conftest.err >&5
11843
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844
(exit $ac_status); } &&
11845
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11846
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11847
(eval $ac_try) 2>&5
11849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850
(exit $ac_status); }; } &&
11851
{ ac_try='test -s conftest$ac_exeext'
11852
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11853
(eval $ac_try) 2>&5
11855
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856
(exit $ac_status); }; }; then
11858
lt_aix_libpath_sed='
11859
/Import File Strings/,/^$/ {
11865
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11866
# Check for a 64-bit object if we didn't find anything.
11867
if test -z "$aix_libpath"; then
11868
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11871
echo "$as_me: failed program was:" >&5
11872
sed 's/^/| /' conftest.$ac_ext >&5
11875
rm -f conftest.err conftest.$ac_objext \
11876
conftest$ac_exeext conftest.$ac_ext
11877
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11879
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11880
# Warning - without using the other run time loading flags,
11881
# -berok will link without error, but may produce a broken library.
11882
no_undefined_flag_CXX=' ${wl}-bernotok'
11883
allow_undefined_flag_CXX=' ${wl}-berok'
11884
# Exported symbols can be pulled into shared objects from archives
11885
whole_archive_flag_spec_CXX='$convenience'
11886
archive_cmds_need_lc_CXX=yes
11887
# This is similar to how AIX traditionally builds its shared
11889
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'
11895
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11896
allow_undefined_flag_CXX=unsupported
11897
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11898
# support --undefined. This deserves some investigation. FIXME
11899
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11906
case $cc_basename in
11908
# FIXME: insert proper C++ library support
11914
cygwin* | mingw* | pw32*)
11915
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11916
# as there is no search path for DLLs.
11917
hardcode_libdir_flag_spec_CXX='-L$libdir'
11918
allow_undefined_flag_CXX=unsupported
11919
always_export_symbols_CXX=no
11920
enable_shared_with_static_runtimes_CXX=yes
11922
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11923
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'
11924
# If the export-symbols file already is a .def file (1st line
11925
# is EXPORTS), use it as is; otherwise, prepend...
11926
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11927
cp $export_symbols $output_objdir/$soname.def;
11929
echo EXPORTS > $output_objdir/$soname.def;
11930
cat $export_symbols >> $output_objdir/$soname.def;
11932
$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'
11937
darwin* | rhapsody*)
11940
archive_cmds_need_lc_CXX=no
11941
hardcode_direct_CXX=no
11942
hardcode_automatic_CXX=yes
11943
hardcode_shlibpath_var_CXX=unsupported
11944
whole_archive_flag_spec_CXX=''
11945
link_all_deplibs_CXX=yes
11946
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11947
if test "$GCC" = "yes"; then
11948
output_verbose_link_cmd=echo
11949
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}"
11950
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11951
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}"
11952
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}"
11953
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11954
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}"
11955
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}"
11965
case $cc_basename in
11967
# FIXME: insert proper C++ library support
11971
# Green Hills C++ Compiler
11972
# FIXME: insert proper C++ library support
11976
# FIXME: insert proper C++ library support
11983
# C++ shared libraries reported to be fairly broken before
11989
archive_cmds_need_lc_CXX=no
11992
freebsd* | dragonfly*)
11993
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12002
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12003
hardcode_libdir_separator_CXX=:
12004
export_dynamic_flag_spec_CXX='${wl}-E'
12005
hardcode_direct_CXX=yes
12006
hardcode_minus_L_CXX=yes # Not in the search PATH,
12007
# but as the default
12008
# location of the library.
12010
case $cc_basename in
12012
# FIXME: insert proper C++ library support
12016
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'
12017
# Commands to make compiler produce verbose output that lists
12018
# what "hidden" libraries, object files and flags are used when
12019
# linking a shared library.
12021
# There doesn't appear to be a way to prevent this compiler from
12022
# explicitly linking system object files so we need to strip them
12023
# from the output so that they don't get included in the library
12025
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'
12028
if test "$GXX" = yes; then
12029
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'
12031
# FIXME: insert proper C++ library support
12039
if test $with_gnu_ld = no; then
12040
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12041
hardcode_libdir_separator_CXX=:
12047
export_dynamic_flag_spec_CXX='${wl}-E'
12053
hardcode_direct_CXX=no
12054
hardcode_shlibpath_var_CXX=no
12057
hardcode_direct_CXX=yes
12058
hardcode_direct_absolute_CXX=yes
12059
hardcode_minus_L_CXX=yes # Not in the search PATH,
12060
# but as the default
12061
# location of the library.
12065
case $cc_basename in
12067
# FIXME: insert proper C++ library support
12073
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12076
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12079
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12082
# Commands to make compiler produce verbose output that lists
12083
# what "hidden" libraries, object files and flags are used when
12084
# linking a shared library.
12086
# There doesn't appear to be a way to prevent this compiler from
12087
# explicitly linking system object files so we need to strip them
12088
# from the output so that they don't get included in the library
12090
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'
12093
if test "$GXX" = yes; then
12094
if test $with_gnu_ld = no; then
12097
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12100
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12103
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'
12108
# FIXME: insert proper C++ library support
12116
hardcode_direct_CXX=no
12117
hardcode_shlibpath_var_CXX=no
12118
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10523
12119
export_dynamic_flag_spec_CXX='${wl}-E'
10529
hardcode_direct_CXX=no
12120
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12121
# Instead, shared libraries are loaded at an image base (0x10000000 by
12122
# default) and relocated if they conflict, which is a slow very memory
12123
# consuming and fragmenting process. To avoid this, we pick a random,
12124
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12125
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
12126
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'
12127
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'
12130
case $cc_basename in
12133
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'
12135
# Archives containing C++ object files must be created using
12136
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
12137
# necessary to make sure instantiated templates are included
12139
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12142
if test "$GXX" = yes; then
12143
if test "$with_gnu_ld" = no; then
12144
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'
12146
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'
12149
link_all_deplibs_CXX=yes
12152
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12153
hardcode_libdir_separator_CXX=:
12154
inherit_rpath_CXX=yes
12157
linux* | k*bsd*-gnu)
12158
case $cc_basename in
12160
# Kuck and Associates, Inc. (KAI) C++ Compiler
12162
# KCC will only create a shared library if the output file
12163
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12164
# to its proper name (with version) after linking.
12165
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'
12166
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'
12167
# Commands to make compiler produce verbose output that lists
12168
# what "hidden" libraries, object files and flags are used when
12169
# linking a shared library.
12171
# There doesn't appear to be a way to prevent this compiler from
12172
# explicitly linking system object files so we need to strip them
12173
# from the output so that they don't get included in the library
12175
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'
12177
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12178
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12180
# Archives containing C++ object files must be created using
12181
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12182
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12187
# version 8.0 and above of icpc choke on multiply defined symbols
12188
# if we add $predep_objects and $postdep_objects, however 7.1 and
12189
# earlier do not add the objects themselves.
12190
case `$CC -V 2>&1` in
12192
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12193
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'
12195
*) # Version 8.0 or newer
12198
ia64*) tmp_idyn=' -i_dynamic';;
12200
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12201
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'
12204
archive_cmds_need_lc_CXX=no
12205
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12206
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12207
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12210
# Portland Group C++ compiler
12212
*pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12213
prelink_cmds_CXX='tpldir=Template.dir~
12215
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12216
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12217
old_archive_cmds_CXX='tpldir=Template.dir~
12219
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12220
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12222
archive_cmds_CXX='tpldir=Template.dir~
12224
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12225
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12226
archive_expsym_cmds_CXX='tpldir=Template.dir~
12228
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12229
$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'
12231
*) # Version 6 will use weak symbols
12232
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12233
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'
12237
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12238
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12239
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'
12243
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12244
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'
12246
runpath_var=LD_RUN_PATH
12247
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12248
hardcode_libdir_separator_CXX=:
12250
# Commands to make compiler produce verbose output that lists
12251
# what "hidden" libraries, object files and flags are used when
12252
# linking a shared library.
12254
# There doesn't appear to be a way to prevent this compiler from
12255
# explicitly linking system object files so we need to strip them
12256
# from the output so that they don't get included in the library
12258
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'
12261
# IBM XL 8.0 on PPC, with GNU ld
12262
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12263
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12264
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12265
if test "x$supports_anon_versioning" = xyes; then
12266
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12267
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12268
echo "local: *; };" >> $output_objdir/$libname.ver~
12269
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12273
case `$CC -V 2>&1 | sed 5q` in
12276
no_undefined_flag_CXX=' -zdefs'
12277
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12278
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'
12279
hardcode_libdir_flag_spec_CXX='-R$libdir'
12280
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'
12281
compiler_needs_object_CXX=yes
12283
# Not sure whether something based on
12284
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12286
output_verbose_link_cmd='echo'
12288
# Archives containing C++ object files must be created using
12289
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12290
# necessary to make sure instantiated templates are included
12292
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12300
# FIXME: insert proper C++ library support
12305
# FIXME: insert proper C++ library support
12310
case $cc_basename in
12312
# FIXME: insert proper C++ library support
12316
# FIXME: insert proper C++ library support
12323
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12324
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12326
hardcode_libdir_flag_spec_CXX='-R$libdir'
12327
hardcode_direct_CXX=yes
12328
hardcode_shlibpath_var_CXX=no
12330
# Workaround some broken pre-1.5 toolchains
12331
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12339
# C++ shared libraries are fairly broken
12344
if test -f /usr/libexec/ld.so; then
12345
hardcode_direct_CXX=yes
12346
hardcode_shlibpath_var_CXX=no
12347
hardcode_direct_absolute_CXX=yes
12348
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12349
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12350
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12351
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12352
export_dynamic_flag_spec_CXX='${wl}-E'
12353
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12355
output_verbose_link_cmd=echo
12361
osf3* | osf4* | osf5*)
12362
case $cc_basename in
12364
# Kuck and Associates, Inc. (KAI) C++ Compiler
12366
# KCC will only create a shared library if the output file
12367
# ends with ".so" (or ".sl" for HP-UX), so rename the library
12368
# to its proper name (with version) after linking.
12369
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'
12371
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12372
hardcode_libdir_separator_CXX=:
12374
# Archives containing C++ object files must be created using
12375
# the KAI C++ compiler.
12377
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12378
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12382
# Rational C++ 2.4.1
12383
# FIXME: insert proper C++ library support
12389
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12390
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'
12391
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12394
allow_undefined_flag_CXX=' -expect_unresolved \*'
12395
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'
12396
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12397
echo "-hidden">> $lib.exp~
12398
$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~
12400
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12404
hardcode_libdir_separator_CXX=:
12406
# Commands to make compiler produce verbose output that lists
12407
# what "hidden" libraries, object files and flags are used when
12408
# linking a shared library.
12410
# There doesn't appear to be a way to prevent this compiler from
12411
# explicitly linking system object files so we need to strip them
12412
# from the output so that they don't get included in the library
12414
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'
12417
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12418
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12421
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'
12424
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'
12428
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12429
hardcode_libdir_separator_CXX=:
12431
# Commands to make compiler produce verbose output that lists
12432
# what "hidden" libraries, object files and flags are used when
12433
# linking a shared library.
12434
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12437
# FIXME: insert proper C++ library support
12445
# FIXME: insert proper C++ library support
12450
case $cc_basename in
12453
# FIXME: insert proper C++ library support
12458
# FIXME: insert proper C++ library support
12462
# FIXME: insert proper C++ library support
12469
case $cc_basename in
12471
# Sun C++ 4.2, 5.x and Centerline C++
12472
archive_cmds_need_lc_CXX=yes
12473
no_undefined_flag_CXX=' -zdefs'
12474
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12475
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12476
$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'
12478
hardcode_libdir_flag_spec_CXX='-R$libdir'
12479
hardcode_shlibpath_var_CXX=no
12481
solaris2.[0-5] | solaris2.[0-5].*) ;;
12483
# The compiler driver will combine and reorder linker options,
12484
# but understands `-z linker_flag'.
12485
# Supported since Solaris 2.6 (maybe 2.5.1?)
12486
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12489
link_all_deplibs_CXX=yes
12491
output_verbose_link_cmd='echo'
12493
# Archives containing C++ object files must be created using
12494
# "CC -xar", where "CC" is the Sun C++ compiler. This is
12495
# necessary to make sure instantiated templates are included
12497
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12500
# Green Hills C++ Compiler
12501
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12503
# The C++ compiler must be used to create the archive.
12504
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12507
# GNU C++ compiler with Solaris linker
12508
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12509
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12510
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12511
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12512
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12513
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12515
# Commands to make compiler produce verbose output that lists
12516
# what "hidden" libraries, object files and flags are used when
12517
# linking a shared library.
12518
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12520
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12522
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12523
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12524
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12526
# Commands to make compiler produce verbose output that lists
12527
# what "hidden" libraries, object files and flags are used when
12528
# linking a shared library.
12529
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12532
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12534
solaris2.[0-5] | solaris2.[0-5].*) ;;
12536
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12544
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12545
no_undefined_flag_CXX='${wl}-z,text'
12546
archive_cmds_need_lc_CXX=no
10530
12547
hardcode_shlibpath_var_CXX=no
10533
hardcode_direct_CXX=yes
10534
hardcode_minus_L_CXX=yes # Not in the search PATH,
10535
# but as the default
10536
# location of the library.
12548
runpath_var='LD_RUN_PATH'
10540
case $cc_basename in
10542
# FIXME: insert proper C++ library support
10548
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10551
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12550
case $cc_basename in
12552
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12553
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10554
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10557
# Commands to make compiler produce verbose output that lists
10558
# what "hidden" libraries, object files and flags are used when
10559
# linking a shared library.
10561
# There doesn't appear to be a way to prevent this compiler from
10562
# explicitly linking system object files so we need to strip them
10563
# from the output so that they don't get included in the library
10565
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'
10568
if test "$GXX" = yes; then
10569
if test $with_gnu_ld = no; then
10572
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10575
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10578
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'
10583
# FIXME: insert proper C++ library support
10590
hardcode_direct_CXX=no
10591
hardcode_shlibpath_var_CXX=no
10592
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10593
export_dynamic_flag_spec_CXX='${wl}-E'
10594
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10595
# Instead, shared libraries are loaded at an image base (0x10000000 by
10596
# default) and relocated if they conflict, which is a slow very memory
10597
# consuming and fragmenting process. To avoid this, we pick a random,
10598
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10599
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
10600
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'
10601
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'
10604
case $cc_basename in
10607
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'
10609
# Archives containing C++ object files must be created using
10610
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
10611
# necessary to make sure instantiated templates are included
10613
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10616
if test "$GXX" = yes; then
10617
if test "$with_gnu_ld" = no; then
10618
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'
10620
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'
10623
link_all_deplibs_CXX=yes
10626
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10627
hardcode_libdir_separator_CXX=:
10630
case $cc_basename in
10632
# Kuck and Associates, Inc. (KAI) C++ Compiler
10634
# KCC will only create a shared library if the output file
10635
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10636
# to its proper name (with version) after linking.
10637
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'
10638
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'
10639
# Commands to make compiler produce verbose output that lists
10640
# what "hidden" libraries, object files and flags are used when
10641
# linking a shared library.
10643
# There doesn't appear to be a way to prevent this compiler from
10644
# explicitly linking system object files so we need to strip them
10645
# from the output so that they don't get included in the library
10647
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'
10649
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10650
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10652
# Archives containing C++ object files must be created using
10653
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10654
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10659
# version 8.0 and above of icpc choke on multiply defined symbols
10660
# if we add $predep_objects and $postdep_objects, however 7.1 and
10661
# earlier do not add the objects themselves.
10662
case `$CC -V 2>&1` in
10664
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10665
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'
10667
*) # Version 8.0 or newer
10670
ia64*) tmp_idyn=' -i_dynamic';;
10672
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10673
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'
12556
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12557
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12562
sysv5* | sco3.2v5* | sco5v6*)
12563
# Note: We can NOT use -z defs as we might desire, because we do not
12564
# link with -lc, and that would cause any symbols used from libc to
12565
# always be unresolved, which means just about no library would
12566
# ever link correctly. If we're not using GNU ld we use -z text
12567
# though, which does catch some bad symbols but isn't as heavy-handed
12569
no_undefined_flag_CXX='${wl}-z,text'
12570
allow_undefined_flag_CXX='${wl}-z,nodefs'
10676
12571
archive_cmds_need_lc_CXX=no
10677
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10678
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10679
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10682
# Portland Group C++ compiler
10683
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10684
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'
10686
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10687
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10688
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'
10692
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10693
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'
10695
runpath_var=LD_RUN_PATH
10696
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10697
hardcode_libdir_separator_CXX=:
10699
# Commands to make compiler produce verbose output that lists
10700
# what "hidden" libraries, object files and flags are used when
10701
# linking a shared library.
10703
# There doesn't appear to be a way to prevent this compiler from
10704
# explicitly linking system object files so we need to strip them
10705
# from the output so that they don't get included in the library
10707
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'
10712
# FIXME: insert proper C++ library support
10716
# FIXME: insert proper C++ library support
10720
case $cc_basename in
10722
# FIXME: insert proper C++ library support
10726
# FIXME: insert proper C++ library support
10731
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10732
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10733
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10735
hardcode_libdir_flag_spec_CXX='-R$libdir'
10736
hardcode_direct_CXX=yes
10737
hardcode_shlibpath_var_CXX=no
10739
# Workaround some broken pre-1.5 toolchains
10740
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10743
# C++ shared libraries are fairly broken
10747
hardcode_direct_CXX=yes
10748
hardcode_shlibpath_var_CXX=no
10749
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10750
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10751
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10752
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10753
export_dynamic_flag_spec_CXX='${wl}-E'
10754
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10756
output_verbose_link_cmd='echo'
10759
case $cc_basename in
10761
# Kuck and Associates, Inc. (KAI) C++ Compiler
10763
# KCC will only create a shared library if the output file
10764
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10765
# to its proper name (with version) after linking.
10766
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'
10768
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10769
hardcode_libdir_separator_CXX=:
10771
# Archives containing C++ object files must be created using
10772
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10773
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10777
# Rational C++ 2.4.1
10778
# FIXME: insert proper C++ library support
10782
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10783
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'
10785
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10786
hardcode_libdir_separator_CXX=:
10788
# Commands to make compiler produce verbose output that lists
10789
# what "hidden" libraries, object files and flags are used when
10790
# linking a shared library.
10792
# There doesn't appear to be a way to prevent this compiler from
10793
# explicitly linking system object files so we need to strip them
10794
# from the output so that they don't get included in the library
10796
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'
10799
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10800
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10801
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'
10803
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10804
hardcode_libdir_separator_CXX=:
10806
# Commands to make compiler produce verbose output that lists
10807
# what "hidden" libraries, object files and flags are used when
10808
# linking a shared library.
10809
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10812
# FIXME: insert proper C++ library support
10819
case $cc_basename in
10821
# Kuck and Associates, Inc. (KAI) C++ Compiler
10823
# KCC will only create a shared library if the output file
10824
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10825
# to its proper name (with version) after linking.
10826
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'
10828
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10829
hardcode_libdir_separator_CXX=:
10831
# Archives containing C++ object files must be created using
10832
# the KAI C++ compiler.
10833
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10836
# Rational C++ 2.4.1
10837
# FIXME: insert proper C++ library support
10841
allow_undefined_flag_CXX=' -expect_unresolved \*'
10842
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'
10843
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10844
echo "-hidden">> $lib.exp~
10845
$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~
10848
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10849
hardcode_libdir_separator_CXX=:
10851
# Commands to make compiler produce verbose output that lists
10852
# what "hidden" libraries, object files and flags are used when
10853
# linking a shared library.
10855
# There doesn't appear to be a way to prevent this compiler from
10856
# explicitly linking system object files so we need to strip them
10857
# from the output so that they don't get included in the library
10859
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'
10862
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10863
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10864
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'
10866
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10867
hardcode_libdir_separator_CXX=:
10869
# Commands to make compiler produce verbose output that lists
10870
# what "hidden" libraries, object files and flags are used when
10871
# linking a shared library.
10872
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10875
# FIXME: insert proper C++ library support
10882
# FIXME: insert proper C++ library support
10886
case $cc_basename in
10889
# FIXME: insert proper C++ library support
10894
# FIXME: insert proper C++ library support
10898
# FIXME: insert proper C++ library support
10904
case $cc_basename in
10906
# Sun C++ 4.2, 5.x and Centerline C++
10907
archive_cmds_need_lc_CXX=yes
10908
no_undefined_flag_CXX=' -zdefs'
10909
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10910
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10911
$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'
10913
hardcode_libdir_flag_spec_CXX='-R$libdir'
10914
12572
hardcode_shlibpath_var_CXX=no
10916
solaris2.[0-5] | solaris2.[0-5].*) ;;
12573
hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12574
hardcode_libdir_separator_CXX=':'
12575
link_all_deplibs_CXX=yes
12576
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12577
runpath_var='LD_RUN_PATH'
12579
case $cc_basename in
12581
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12582
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10918
# The C++ compiler is used as linker so we must use $wl
10919
# flag to pass the commands to the underlying system
10920
# linker. We must also pass each convience library through
10921
# to the system linker between allextract/defaultextract.
10922
# The C++ compiler will combine linker options so we
10923
# cannot just pass the convience library names through
10925
# Supported since Solaris 2.6 (maybe 2.5.1?)
10926
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12585
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12586
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10929
link_all_deplibs_CXX=yes
10931
output_verbose_link_cmd='echo'
10933
# Archives containing C++ object files must be created using
10934
# "CC -xar", where "CC" is the Sun C++ compiler. This is
10935
# necessary to make sure instantiated templates are included
10937
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10940
# Green Hills C++ Compiler
10941
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10943
# The C++ compiler must be used to create the archive.
10944
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10947
# GNU C++ compiler with Solaris linker
10948
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10949
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10950
if $CC --version | grep -v '^2\.7' > /dev/null; then
10951
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10952
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10953
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10955
# Commands to make compiler produce verbose output that lists
10956
# what "hidden" libraries, object files and flags are used when
10957
# linking a shared library.
10958
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10960
# g++ 2.7 appears to require `-G' NOT `-shared' on this
10962
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10963
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10964
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10966
# Commands to make compiler produce verbose output that lists
10967
# what "hidden" libraries, object files and flags are used when
10968
# linking a shared library.
10969
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10972
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10977
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10978
no_undefined_flag_CXX='${wl}-z,text'
10979
archive_cmds_need_lc_CXX=no
10980
hardcode_shlibpath_var_CXX=no
10981
runpath_var='LD_RUN_PATH'
10983
case $cc_basename in
10985
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10986
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10989
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10990
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10994
sysv5* | sco3.2v5* | sco5v6*)
10995
# Note: We can NOT use -z defs as we might desire, because we do not
10996
# link with -lc, and that would cause any symbols used from libc to
10997
# always be unresolved, which means just about no library would
10998
# ever link correctly. If we're not using GNU ld we use -z text
10999
# though, which does catch some bad symbols but isn't as heavy-handed
11001
# For security reasons, it is highly recommended that you always
11002
# use absolute paths for naming shared libraries, and exclude the
11003
# DT_RUNPATH tag from executables and libraries. But doing so
11004
# requires that you compile everything twice, which is a pain.
11005
# So that behaviour is only enabled if SCOABSPATH is set to a
11006
# non-empty value in the environment. Most likely only useful for
11007
# creating official distributions of packages.
11008
# This is a hack until libtool officially supports absolute path
11009
# names for shared libraries.
11010
no_undefined_flag_CXX='${wl}-z,text'
11011
allow_undefined_flag_CXX='${wl}-z,nodefs'
11012
archive_cmds_need_lc_CXX=no
11013
hardcode_shlibpath_var_CXX=no
11014
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11015
hardcode_libdir_separator_CXX=':'
11016
link_all_deplibs_CXX=yes
11017
export_dynamic_flag_spec_CXX='${wl}-Bexport'
11018
runpath_var='LD_RUN_PATH'
11020
case $cc_basename in
11022
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11023
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11026
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11027
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11032
case $cc_basename in
11034
# NonStop-UX NCC 3.20
11035
# FIXME: insert proper C++ library support
11039
# FIXME: insert proper C++ library support
11045
# FIXME: insert proper C++ library support
11049
# FIXME: insert proper C++ library support
11053
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12592
case $cc_basename in
12594
# NonStop-UX NCC 3.20
12595
# FIXME: insert proper C++ library support
12599
# FIXME: insert proper C++ library support
12606
# FIXME: insert proper C++ library support
12611
# FIXME: insert proper C++ library support
12616
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11054
12617
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11055
test "$ld_shlibs_CXX" = no && can_build_shared=no
11061
cat > conftest.$ac_ext <<EOF
12618
test "$ld_shlibs_CXX" = no && can_build_shared=no
12624
## There is no encapsulation within the following macros, do not change
12625
## the running order or otherwise move them around unless you know exactly
12626
## what you are doing...
12627
# Dependencies to place before and after the object being linked:
12628
predep_objects_CXX=
12629
postdep_objects_CXX=
12632
compiler_lib_search_path_CXX=
12634
cat > conftest.$ac_ext <<_LT_EOF
12381
14239
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12382
14240
echo "${ECHO_T}$hardcode_action_CXX" >&6
12384
if test "$hardcode_action_CXX" = relink; then
12385
# Fast installation is not supported
12386
enable_fast_install=no
12387
elif test "$shlibpath_overrides_runpath" = yes ||
12388
test "$enable_shared" = no; then
12389
# Fast installation is not necessary
12390
enable_fast_install=needless
12394
# The else clause should only fire when bootstrapping the
12395
# libtool distribution, otherwise you forgot to ship ltmain.sh
12396
# with your package, and you will get complaints that there are
12397
# no rules to generate ltmain.sh.
12398
if test -f "$ltmain"; then
12399
# See if we are running on zsh, and set the options which allow our commands through
12400
# without removal of \ escapes.
12401
if test -n "${ZSH_VERSION+set}" ; then
12402
setopt NO_GLOB_SUBST
12404
# Now quote all the things that may contain metacharacters while being
12405
# careful not to overquote the AC_SUBSTed values. We take copies of the
12406
# variables and quote the copies for generation of the libtool script.
12407
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12409
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12410
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12411
deplibs_check_method reload_flag reload_cmds need_locks \
12412
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12413
lt_cv_sys_global_symbol_to_c_name_address \
12414
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12415
old_postinstall_cmds old_postuninstall_cmds \
12419
lt_prog_compiler_wl_CXX \
12420
lt_prog_compiler_pic_CXX \
12421
lt_prog_compiler_static_CXX \
12422
lt_prog_compiler_no_builtin_flag_CXX \
12423
export_dynamic_flag_spec_CXX \
12424
thread_safe_flag_spec_CXX \
12425
whole_archive_flag_spec_CXX \
12426
enable_shared_with_static_runtimes_CXX \
12427
old_archive_cmds_CXX \
12428
old_archive_from_new_cmds_CXX \
12429
predep_objects_CXX \
12430
postdep_objects_CXX \
12433
compiler_lib_search_path_CXX \
12435
archive_expsym_cmds_CXX \
12436
postinstall_cmds_CXX \
12437
postuninstall_cmds_CXX \
12438
old_archive_from_expsyms_cmds_CXX \
12439
allow_undefined_flag_CXX \
12440
no_undefined_flag_CXX \
12441
export_symbols_cmds_CXX \
12442
hardcode_libdir_flag_spec_CXX \
12443
hardcode_libdir_flag_spec_ld_CXX \
12444
hardcode_libdir_separator_CXX \
12445
hardcode_automatic_CXX \
12447
module_expsym_cmds_CXX \
12448
lt_cv_prog_compiler_c_o_CXX \
12449
exclude_expsyms_CXX \
12450
include_expsyms_CXX; do
12453
old_archive_cmds_CXX | \
12454
old_archive_from_new_cmds_CXX | \
12455
archive_cmds_CXX | \
12456
archive_expsym_cmds_CXX | \
12457
module_cmds_CXX | \
12458
module_expsym_cmds_CXX | \
12459
old_archive_from_expsyms_cmds_CXX | \
12460
export_symbols_cmds_CXX | \
12461
extract_expsyms_cmds | reload_cmds | finish_cmds | \
12462
postinstall_cmds | postuninstall_cmds | \
12463
old_postinstall_cmds | old_postuninstall_cmds | \
12464
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12465
# Double-quote double-evaled strings.
12466
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12469
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12475
*'\$0 --fallback-echo"')
12476
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12482
cat <<__EOF__ >> "$cfgfile"
12483
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12485
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12487
# Shell to use when invoking shell scripts.
12490
# Whether or not to build shared libraries.
12491
build_libtool_libs=$enable_shared
12493
# Whether or not to build static libraries.
12494
build_old_libs=$enable_static
12496
# Whether or not to add -lc for building shared libraries.
12497
build_libtool_need_lc=$archive_cmds_need_lc_CXX
12499
# Whether or not to disallow shared libs when runtime libs are static
12500
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12502
# Whether or not to optimize for fast installation.
12503
fast_install=$enable_fast_install
12506
host_alias=$host_alias
12510
# The build system.
12511
build_alias=$build_alias
12515
# An echo program that does not interpret backslashes.
12520
AR_FLAGS=$lt_AR_FLAGS
12525
# LTCC compiler flags.
12526
LTCFLAGS=$lt_LTCFLAGS
12528
# A language-specific compiler.
12529
CC=$lt_compiler_CXX
12531
# Is the compiler the GNU C compiler?
12537
# The linker used to build libraries.
12540
# Whether we need hard or soft links.
12543
# A BSD-compatible nm program.
12546
# A symbol stripping program
12549
# Used to examine libraries when file_magic_cmd begins "file"
12550
MAGIC_CMD=$MAGIC_CMD
12552
# Used on cygwin: DLL creation program.
12555
# Used on cygwin: object dumper.
12558
# Used on cygwin: assembler.
12561
# The name of the directory that contains temporary libtool files.
12564
# How to create reloadable object files.
12565
reload_flag=$lt_reload_flag
12566
reload_cmds=$lt_reload_cmds
12568
# How to pass a linker flag through the compiler.
12569
wl=$lt_lt_prog_compiler_wl_CXX
12571
# Object file suffix (normally "o").
12572
objext="$ac_objext"
12574
# Old archive suffix (normally "a").
12577
# Shared library suffix (normally ".so").
12578
shrext_cmds='$shrext_cmds'
12580
# Executable file suffix (normally "").
12583
# Additional compiler flags for building library objects.
12584
pic_flag=$lt_lt_prog_compiler_pic_CXX
12587
# What is the maximum length of a command?
12588
max_cmd_len=$lt_cv_sys_max_cmd_len
12590
# Does compiler simultaneously support -c and -o options?
12591
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12593
# Must we lock files when doing compilation?
12594
need_locks=$lt_need_locks
12596
# Do we need the lib prefix for modules?
12597
need_lib_prefix=$need_lib_prefix
12599
# Do we need a version for libraries?
12600
need_version=$need_version
12602
# Whether dlopen is supported.
12603
dlopen_support=$enable_dlopen
12605
# Whether dlopen of programs is supported.
12606
dlopen_self=$enable_dlopen_self
12608
# Whether dlopen of statically linked programs is supported.
12609
dlopen_self_static=$enable_dlopen_self_static
12611
# Compiler flag to prevent dynamic linking.
12612
link_static_flag=$lt_lt_prog_compiler_static_CXX
12614
# Compiler flag to turn off builtin functions.
12615
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12617
# Compiler flag to allow reflexive dlopens.
12618
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12620
# Compiler flag to generate shared objects directly from archives.
12621
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12623
# Compiler flag to generate thread-safe objects.
12624
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12626
# Library versioning type.
12627
version_type=$version_type
12629
# Format of library name prefix.
12630
libname_spec=$lt_libname_spec
12632
# List of archive names. First name is the real one, the rest are links.
12633
# The last name is the one that the linker finds with -lNAME.
12634
library_names_spec=$lt_library_names_spec
12636
# The coded name of the library, if different from the real name.
12637
soname_spec=$lt_soname_spec
12639
# Commands used to build and install an old-style archive.
12641
old_archive_cmds=$lt_old_archive_cmds_CXX
12642
old_postinstall_cmds=$lt_old_postinstall_cmds
12643
old_postuninstall_cmds=$lt_old_postuninstall_cmds
12645
# Create an old-style archive from a shared archive.
12646
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12648
# Create a temporary old-style archive to link instead of a shared archive.
12649
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12651
# Commands used to build and install a shared archive.
12652
archive_cmds=$lt_archive_cmds_CXX
12653
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12654
postinstall_cmds=$lt_postinstall_cmds
12655
postuninstall_cmds=$lt_postuninstall_cmds
12657
# Commands used to build a loadable module (assumed same as above if empty)
12658
module_cmds=$lt_module_cmds_CXX
12659
module_expsym_cmds=$lt_module_expsym_cmds_CXX
12661
# Commands to strip libraries.
12662
old_striplib=$lt_old_striplib
12663
striplib=$lt_striplib
12665
# Dependencies to place before the objects being linked to create a
12667
predep_objects=$lt_predep_objects_CXX
12669
# Dependencies to place after the objects being linked to create a
12671
postdep_objects=$lt_postdep_objects_CXX
12673
# Dependencies to place before the objects being linked to create a
12675
predeps=$lt_predeps_CXX
12677
# Dependencies to place after the objects being linked to create a
12679
postdeps=$lt_postdeps_CXX
12681
# The library search path used internally by the compiler when linking
12682
# a shared library.
12683
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12685
# Method to check whether dependent libraries are shared objects.
12686
deplibs_check_method=$lt_deplibs_check_method
12688
# Command to use when deplibs_check_method == file_magic.
12689
file_magic_cmd=$lt_file_magic_cmd
12691
# Flag that allows shared libraries with undefined symbols to be built.
12692
allow_undefined_flag=$lt_allow_undefined_flag_CXX
12694
# Flag that forces no undefined symbols.
12695
no_undefined_flag=$lt_no_undefined_flag_CXX
12697
# Commands used to finish a libtool library installation in a directory.
12698
finish_cmds=$lt_finish_cmds
12700
# Same as above, but a single script fragment to be evaled but not shown.
12701
finish_eval=$lt_finish_eval
12703
# Take the output of nm and produce a listing of raw symbols and C names.
12704
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12706
# Transform the output of nm in a proper C declaration
12707
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12709
# Transform the output of nm in a C name address pair
12710
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12712
# This is the shared library runtime path variable.
12713
runpath_var=$runpath_var
12715
# This is the shared library path variable.
12716
shlibpath_var=$shlibpath_var
12718
# Is shlibpath searched before the hard-coded library search path?
12719
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12721
# How to hardcode a shared library path into an executable.
12722
hardcode_action=$hardcode_action_CXX
12724
# Whether we should hardcode library paths into libraries.
12725
hardcode_into_libs=$hardcode_into_libs
12727
# Flag to hardcode \$libdir into a binary during linking.
12728
# This must work even if \$libdir does not exist.
12729
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12731
# If ld is used when linking, flag to hardcode \$libdir into
12732
# a binary during linking. This must work even if \$libdir does
12734
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12736
# Whether we need a single -rpath flag with a separated argument.
12737
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12739
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12740
# resulting binary.
12741
hardcode_direct=$hardcode_direct_CXX
12743
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12744
# resulting binary.
12745
hardcode_minus_L=$hardcode_minus_L_CXX
12747
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12748
# the resulting binary.
12749
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12751
# Set to yes if building a shared library automatically hardcodes DIR into the library
12752
# and all subsequent libraries and executables linked against it.
12753
hardcode_automatic=$hardcode_automatic_CXX
12755
# Variables whose values should be saved in libtool wrapper scripts and
12756
# restored at relink time.
12757
variables_saved_for_relink="$variables_saved_for_relink"
12759
# Whether libtool must link a program against all its dependency libraries.
12760
link_all_deplibs=$link_all_deplibs_CXX
12762
# Compile-time system search path for libraries
12763
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12765
# Run-time system search path for libraries
12766
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12768
# Fix the shell variable \$srcfile for the compiler.
12769
fix_srcfile_path="$fix_srcfile_path_CXX"
12771
# Set to yes if exported symbols are required.
12772
always_export_symbols=$always_export_symbols_CXX
12774
# The commands to list exported symbols.
12775
export_symbols_cmds=$lt_export_symbols_cmds_CXX
12777
# The commands to extract the exported symbol list from a shared archive.
12778
extract_expsyms_cmds=$lt_extract_expsyms_cmds
12780
# Symbols that should not be listed in the preloaded symbols.
12781
exclude_expsyms=$lt_exclude_expsyms_CXX
12783
# Symbols that must always be exported.
12784
include_expsyms=$lt_include_expsyms_CXX
12786
# ### END LIBTOOL TAG CONFIG: $tagname
12792
# If there is no Makefile yet, we rely on a make rule to execute
12793
# `config.status --recheck' to rerun these tests and create the
12794
# libtool script then.
12795
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12796
if test -f "$ltmain_in"; then
12797
test -f Makefile && make "$ltmain"
12803
ac_cpp='$CPP $CPPFLAGS'
12804
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12805
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12806
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12812
with_gnu_ldcxx=$with_gnu_ld
12813
with_gnu_ld=$lt_save_with_gnu_ld
12814
lt_cv_path_LDCXX=$lt_cv_path_LD
12815
lt_cv_path_LD=$lt_save_path_LD
12816
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12817
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12825
if test -n "$F77" && test "X$F77" != "Xno"; then
12828
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12829
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12830
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12833
archive_cmds_need_lc_F77=no
12834
allow_undefined_flag_F77=
12835
always_export_symbols_F77=no
12836
archive_expsym_cmds_F77=
12837
export_dynamic_flag_spec_F77=
12838
hardcode_direct_F77=no
12839
hardcode_libdir_flag_spec_F77=
12840
hardcode_libdir_flag_spec_ld_F77=
12841
hardcode_libdir_separator_F77=
12842
hardcode_minus_L_F77=no
12843
hardcode_automatic_F77=no
12845
module_expsym_cmds_F77=
12846
link_all_deplibs_F77=unknown
12847
old_archive_cmds_F77=$old_archive_cmds
12848
no_undefined_flag_F77=
12849
whole_archive_flag_spec_F77=
12850
enable_shared_with_static_runtimes_F77=no
12852
# Source file extension for f77 test sources.
12855
# Object file extension for compiled f77 test sources.
12859
# Code to be used in simple compile tests
12860
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12862
# Code to be used in simple link tests
12863
lt_simple_link_test_code=" program t\n end\n"
12865
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12867
# If no C compiler was specified, use CC.
12870
# If no C compiler flags were specified, use CFLAGS.
12871
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12873
# Allow CC to be a program name with arguments.
12877
# save warnings/boilerplate of simple test code
12878
ac_outfile=conftest.$ac_objext
12879
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12880
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12881
_lt_compiler_boilerplate=`cat conftest.err`
12884
ac_outfile=conftest.$ac_objext
12885
printf "$lt_simple_link_test_code" >conftest.$ac_ext
12886
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12887
_lt_linker_boilerplate=`cat conftest.err`
12891
# Allow CC to be a program name with arguments.
12896
for cc_temp in $compiler""; do
12898
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12899
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12904
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12907
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12908
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12909
echo "$as_me:$LINENO: result: $can_build_shared" >&5
12910
echo "${ECHO_T}$can_build_shared" >&6
12912
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12913
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12914
test "$can_build_shared" = "no" && enable_shared=no
12916
# On AIX, shared libraries and static libraries use the same namespace, and
12917
# are all built from PIC.
12920
test "$enable_shared" = yes && enable_static=no
12921
if test -n "$RANLIB"; then
12922
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12923
postinstall_cmds='$RANLIB $lib'
12927
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12928
test "$enable_shared" = yes && enable_static=no
12932
echo "$as_me:$LINENO: result: $enable_shared" >&5
12933
echo "${ECHO_T}$enable_shared" >&6
12935
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12936
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12937
# Make sure either enable_shared or enable_static is yes.
12938
test "$enable_shared" = yes || enable_static=yes
12939
echo "$as_me:$LINENO: result: $enable_static" >&5
12940
echo "${ECHO_T}$enable_static" >&6
12945
lt_prog_compiler_wl_F77=
12946
lt_prog_compiler_pic_F77=
12947
lt_prog_compiler_static_F77=
12949
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12950
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12952
if test "$GCC" = yes; then
12953
lt_prog_compiler_wl_F77='-Wl,'
12954
lt_prog_compiler_static_F77='-static'
12958
# All AIX code is PIC.
12959
if test "$host_cpu" = ia64; then
12960
# AIX 5 now supports IA64 processor
12961
lt_prog_compiler_static_F77='-Bstatic'
12966
# FIXME: we need at least 68020 code to build shared libraries, but
12967
# adding the `-m68020' flag to GCC prevents building anything better,
12969
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12972
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12973
# PIC is the default for these OSes.
12976
mingw* | pw32* | os2*)
12977
# This hack is so that the source file can tell whether it is being
12978
# built for inclusion in a dll (and should export symbols for example).
12979
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12982
darwin* | rhapsody*)
12983
# PIC is the default on this platform
12984
# Common symbols not allowed in MH_DYLIB files
12985
lt_prog_compiler_pic_F77='-fno-common'
12989
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12990
# Instead, we relocate shared libraries at runtime.
12994
# Just because we use GCC doesn't mean we suddenly get shared libraries
12995
# on systems that don't support them.
12996
lt_prog_compiler_can_build_shared_F77=no
13001
if test -d /usr/nec; then
13002
lt_prog_compiler_pic_F77=-Kconform_pic
13007
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13008
# not for PA HP-UX.
13014
lt_prog_compiler_pic_F77='-fPIC'
13020
lt_prog_compiler_pic_F77='-fPIC'
13024
# PORTME Check for flag to pass linker flags through the system compiler.
13027
lt_prog_compiler_wl_F77='-Wl,'
13028
if test "$host_cpu" = ia64; then
13029
# AIX 5 now supports IA64 processor
13030
lt_prog_compiler_static_F77='-Bstatic'
13032
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13036
# PIC is the default on this platform
13037
# Common symbols not allowed in MH_DYLIB files
13038
case $cc_basename in
13040
lt_prog_compiler_pic_F77='-qnocommon'
13041
lt_prog_compiler_wl_F77='-Wl,'
13046
mingw* | pw32* | os2*)
13047
# This hack is so that the source file can tell whether it is being
13048
# built for inclusion in a dll (and should export symbols for example).
13049
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13052
hpux9* | hpux10* | hpux11*)
13053
lt_prog_compiler_wl_F77='-Wl,'
13054
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13055
# not for PA HP-UX.
13061
lt_prog_compiler_pic_F77='+Z'
13064
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13065
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13068
irix5* | irix6* | nonstopux*)
13069
lt_prog_compiler_wl_F77='-Wl,'
13070
# PIC (with -KPIC) is the default.
13071
lt_prog_compiler_static_F77='-non_shared'
13075
lt_prog_compiler_pic_F77='-KPIC'
13076
lt_prog_compiler_static_F77='-Bstatic'
13080
case $cc_basename in
13082
lt_prog_compiler_wl_F77='-Wl,'
13083
lt_prog_compiler_pic_F77='-KPIC'
13084
lt_prog_compiler_static_F77='-static'
13086
pgcc* | pgf77* | pgf90* | pgf95*)
13087
# Portland Group compilers (*not* the Pentium gcc compiler,
13088
# which looks to be a dead project)
13089
lt_prog_compiler_wl_F77='-Wl,'
13090
lt_prog_compiler_pic_F77='-fpic'
13091
lt_prog_compiler_static_F77='-Bstatic'
13094
lt_prog_compiler_wl_F77='-Wl,'
13095
# All Alpha code is PIC.
13096
lt_prog_compiler_static_F77='-non_shared'
13101
osf3* | osf4* | osf5*)
13102
lt_prog_compiler_wl_F77='-Wl,'
13103
# All OSF/1 code is PIC.
13104
lt_prog_compiler_static_F77='-non_shared'
13108
lt_prog_compiler_pic_F77='-KPIC'
13109
lt_prog_compiler_static_F77='-Bstatic'
13110
case $cc_basename in
13111
f77* | f90* | f95*)
13112
lt_prog_compiler_wl_F77='-Qoption ld ';;
13114
lt_prog_compiler_wl_F77='-Wl,';;
13119
lt_prog_compiler_wl_F77='-Qoption ld '
13120
lt_prog_compiler_pic_F77='-PIC'
13121
lt_prog_compiler_static_F77='-Bstatic'
13124
sysv4 | sysv4.2uw2* | sysv4.3*)
13125
lt_prog_compiler_wl_F77='-Wl,'
13126
lt_prog_compiler_pic_F77='-KPIC'
13127
lt_prog_compiler_static_F77='-Bstatic'
13131
if test -d /usr/nec ;then
13132
lt_prog_compiler_pic_F77='-Kconform_pic'
13133
lt_prog_compiler_static_F77='-Bstatic'
13137
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13138
lt_prog_compiler_wl_F77='-Wl,'
13139
lt_prog_compiler_pic_F77='-KPIC'
13140
lt_prog_compiler_static_F77='-Bstatic'
13144
lt_prog_compiler_wl_F77='-Wl,'
13145
lt_prog_compiler_can_build_shared_F77=no
13149
lt_prog_compiler_pic_F77='-pic'
13150
lt_prog_compiler_static_F77='-Bstatic'
13154
lt_prog_compiler_can_build_shared_F77=no
13159
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13160
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13163
# Check to make sure the PIC flag actually works.
13165
if test -n "$lt_prog_compiler_pic_F77"; then
13167
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13168
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13169
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13170
echo $ECHO_N "(cached) $ECHO_C" >&6
13172
lt_prog_compiler_pic_works_F77=no
13173
ac_outfile=conftest.$ac_objext
13174
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13175
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13176
# Insert the option either (1) after the last *FLAGS variable, or
13177
# (2) before a word containing "conftest.", or (3) at the end.
13178
# Note that $ac_compile itself does not contain backslashes and begins
13179
# with a dollar sign (not a hyphen), so the echo should work correctly.
13180
# The option is referenced via a variable to avoid confusing sed.
13181
lt_compile=`echo "$ac_compile" | $SED \
13182
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13183
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13184
-e 's:$: $lt_compiler_flag:'`
13185
(eval echo "\"\$as_me:13185: $lt_compile\"" >&5)
13186
(eval "$lt_compile" 2>conftest.err)
13188
cat conftest.err >&5
13189
echo "$as_me:13189: \$? = $ac_status" >&5
13190
if (exit $ac_status) && test -s "$ac_outfile"; then
13191
# The compiler can only warn and ignore the option if not recognized
13192
# So say no if there are warnings other than the usual output.
13193
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13194
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13195
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13196
lt_prog_compiler_pic_works_F77=yes
13202
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13203
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13205
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13206
case $lt_prog_compiler_pic_F77 in
13208
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13211
lt_prog_compiler_pic_F77=
13212
lt_prog_compiler_can_build_shared_F77=no
13217
# For platforms which do not support PIC, -DPIC is meaningless:
13219
lt_prog_compiler_pic_F77=
13222
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13227
# Check to make sure the static flag actually works.
13229
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13230
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13231
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13232
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13233
echo $ECHO_N "(cached) $ECHO_C" >&6
13235
lt_prog_compiler_static_works_F77=no
13236
save_LDFLAGS="$LDFLAGS"
13237
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13238
printf "$lt_simple_link_test_code" > conftest.$ac_ext
13239
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13240
# The linker can only warn and ignore the option if not recognized
13241
# So say no if there are warnings
13242
if test -s conftest.err; then
13243
# Append any errors to the config.log.
13244
cat conftest.err 1>&5
13245
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13246
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13247
if diff conftest.exp conftest.er2 >/dev/null; then
13248
lt_prog_compiler_static_works_F77=yes
13251
lt_prog_compiler_static_works_F77=yes
13255
LDFLAGS="$save_LDFLAGS"
13258
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13259
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13261
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13264
lt_prog_compiler_static_F77=
13268
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13269
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13270
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13271
echo $ECHO_N "(cached) $ECHO_C" >&6
13273
lt_cv_prog_compiler_c_o_F77=no
13274
$rm -r conftest 2>/dev/null
13278
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13280
lt_compiler_flag="-o out/conftest2.$ac_objext"
13281
# Insert the option either (1) after the last *FLAGS variable, or
13282
# (2) before a word containing "conftest.", or (3) at the end.
13283
# Note that $ac_compile itself does not contain backslashes and begins
13284
# with a dollar sign (not a hyphen), so the echo should work correctly.
13285
lt_compile=`echo "$ac_compile" | $SED \
13286
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13287
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13288
-e 's:$: $lt_compiler_flag:'`
13289
(eval echo "\"\$as_me:13289: $lt_compile\"" >&5)
13290
(eval "$lt_compile" 2>out/conftest.err)
13292
cat out/conftest.err >&5
13293
echo "$as_me:13293: \$? = $ac_status" >&5
13294
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13296
# The compiler can only warn and ignore the option if not recognized
13297
# So say no if there are warnings
13298
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13299
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13300
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13301
lt_cv_prog_compiler_c_o_F77=yes
13306
# SGI C++ compiler will create directory out/ii_files/ for
13307
# template instantiation
13308
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13309
$rm out/* && rmdir out
13315
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13316
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13319
hard_links="nottested"
13320
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13321
# do not overwrite the value of need_locks provided by the user
13322
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13323
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13326
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13328
ln conftest.a conftest.b 2>&5 || hard_links=no
13329
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13330
echo "$as_me:$LINENO: result: $hard_links" >&5
13331
echo "${ECHO_T}$hard_links" >&6
13332
if test "$hard_links" = no; then
13333
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13334
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13341
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13342
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13345
allow_undefined_flag_F77=
13346
enable_shared_with_static_runtimes_F77=no
13348
archive_expsym_cmds_F77=
13349
old_archive_From_new_cmds_F77=
13350
old_archive_from_expsyms_cmds_F77=
13351
export_dynamic_flag_spec_F77=
13352
whole_archive_flag_spec_F77=
13353
thread_safe_flag_spec_F77=
13354
hardcode_libdir_flag_spec_F77=
13355
hardcode_libdir_flag_spec_ld_F77=
13356
hardcode_libdir_separator_F77=
13357
hardcode_direct_F77=no
13358
hardcode_minus_L_F77=no
13359
hardcode_shlibpath_var_F77=unsupported
13360
link_all_deplibs_F77=unknown
13361
hardcode_automatic_F77=no
13363
module_expsym_cmds_F77=
13364
always_export_symbols_F77=no
13365
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13366
# include_expsyms should be a list of space-separated symbols to be *always*
13367
# included in the symbol list
13368
include_expsyms_F77=
13369
# exclude_expsyms can be an extended regexp of symbols to exclude
13370
# it will be wrapped by ` (' and `)$', so one must not match beginning or
13371
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13372
# as well as any symbol that contains `d'.
13373
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13374
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13375
# platforms (ab)use it in PIC code, but their linkers get confused if
13376
# the symbol is explicitly referenced. Since portable code cannot
13377
# rely on this symbol name, it's probably fine to never include it in
13378
# preloaded symbol tables.
13379
extract_expsyms_cmds=
13380
# Just being paranoid about ensuring that cc_basename is set.
13381
for cc_temp in $compiler""; do
13383
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13384
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13389
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13392
cygwin* | mingw* | pw32*)
13393
# FIXME: the MSVC++ port hasn't been tested in a loooong time
13394
# When not using gcc, we currently assume that we are using
13395
# Microsoft Visual C++.
13396
if test "$GCC" != yes; then
13401
# we just hope/assume this is gcc and not c89 (= MSVC++)
13410
if test "$with_gnu_ld" = yes; then
13411
# If archive_cmds runs LD, not CC, wlarc should be empty
13414
# Set some defaults for GNU ld with shared library support. These
13415
# are reset later if shared libraries are not supported. Putting them
13416
# here allows them to be overridden if necessary.
13417
runpath_var=LD_RUN_PATH
13418
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13419
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13420
# ancient GNU ld didn't support --whole-archive et. al.
13421
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13422
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13424
whole_archive_flag_spec_F77=
13426
supports_anon_versioning=no
13427
case `$LD -v 2>/dev/null` in
13428
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13429
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13430
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13431
*\ 2.11.*) ;; # other 2.11 versions
13432
*) supports_anon_versioning=yes ;;
13435
# See if GNU ld supports shared libraries.
13437
aix3* | aix4* | aix5*)
13438
# On AIX/PPC, the GNU linker is very broken
13439
if test "$host_cpu" != ia64; then
13443
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13444
*** to be unable to reliably create shared libraries on AIX.
13445
*** Therefore, libtool is disabling shared libraries support. If you
13446
*** really care for shared libraries, you may want to modify your PATH
13447
*** so that a non-GNU linker is found, and then restart.
13454
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)'
13455
hardcode_libdir_flag_spec_F77='-L$libdir'
13456
hardcode_minus_L_F77=yes
13458
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13459
# that the semantics of dynamic libraries on AmigaOS, at least up
13460
# to version 4, is to share data among multiple programs linked
13461
# with the same dynamic library. Since this doesn't match the
13462
# behavior of shared libraries on other platforms, we can't use
13468
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13469
allow_undefined_flag_F77=unsupported
13470
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13471
# support --undefined. This deserves some investigation. FIXME
13472
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13478
cygwin* | mingw* | pw32*)
13479
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13480
# as there is no search path for DLLs.
13481
hardcode_libdir_flag_spec_F77='-L$libdir'
13482
allow_undefined_flag_F77=unsupported
13483
always_export_symbols_F77=no
13484
enable_shared_with_static_runtimes_F77=yes
13485
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13487
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13488
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13489
# If the export-symbols file already is a .def file (1st line
13490
# is EXPORTS), use it as is; otherwise, prepend...
13491
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13492
cp $export_symbols $output_objdir/$soname.def;
13494
echo EXPORTS > $output_objdir/$soname.def;
13495
cat $export_symbols >> $output_objdir/$soname.def;
13497
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13504
hardcode_direct_F77=no
13505
hardcode_shlibpath_var_F77=no
13506
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13507
export_dynamic_flag_spec_F77='${wl}-E'
13508
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13509
# Instead, shared libraries are loaded at an image base (0x10000000 by
13510
# default) and relocated if they conflict, which is a slow very memory
13511
# consuming and fragmenting process. To avoid this, we pick a random,
13512
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13513
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
13514
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'
13515
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'
13519
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13521
case $cc_basename,$host_cpu in
13522
pgcc*) # Portland Group C compiler
13523
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'
13524
tmp_addflag=' $pic_flag'
13526
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13527
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'
13528
tmp_addflag=' $pic_flag -Mnomain' ;;
13529
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13530
tmp_addflag=' -i_dynamic' ;;
13531
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13532
tmp_addflag=' -i_dynamic -nofor_main' ;;
13533
ifc* | ifort*) # Intel Fortran compiler
13534
tmp_addflag=' -nofor_main' ;;
13536
archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13538
if test $supports_anon_versioning = yes; then
13539
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13540
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13541
$echo "local: *; };" >> $output_objdir/$libname.ver~
13542
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13544
link_all_deplibs_F77=no
13550
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13551
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13552
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13555
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13556
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13561
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13565
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13566
*** create shared libraries on Solaris systems. Therefore, libtool
13567
*** is disabling shared libraries support. We urge you to upgrade GNU
13568
*** binutils to release 2.9.1 or newer. Another option is to modify
13569
*** your PATH or compiler configuration so that the native linker is
13570
*** used, and then restart.
13573
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13574
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13575
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13581
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13582
case `$LD -v 2>&1` in
13583
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13587
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13588
*** reliably create shared libraries on SCO systems. Therefore, libtool
13589
*** is disabling shared libraries support. We urge you to upgrade GNU
13590
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13591
*** your PATH or compiler configuration so that the native linker is
13592
*** used, and then restart.
13597
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13598
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13599
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13600
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13609
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13611
hardcode_direct_F77=yes
13612
hardcode_shlibpath_var_F77=no
13616
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13617
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13618
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13625
if test "$ld_shlibs_F77" = no; then
13627
hardcode_libdir_flag_spec_F77=
13628
export_dynamic_flag_spec_F77=
13629
whole_archive_flag_spec_F77=
13632
# PORTME fill in a description of your system's linker (not GNU ld)
13635
allow_undefined_flag_F77=unsupported
13636
always_export_symbols_F77=yes
13637
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'
13638
# Note: this linker hardcodes the directories in LIBPATH if there
13639
# are no directories specified by -L.
13640
hardcode_minus_L_F77=yes
13641
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13642
# Neither direct hardcoding nor static linking is supported with a
13644
hardcode_direct_F77=unsupported
13649
if test "$host_cpu" = ia64; then
13650
# On IA64, the linker does run time linking by default, so we don't
13651
# have to do anything special.
13652
aix_use_runtimelinking=no
13653
exp_sym_flag='-Bexport'
13656
# If we're using GNU nm, then we don't want the "-C" option.
13657
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13658
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13659
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'
13661
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'
13663
aix_use_runtimelinking=no
13665
# Test if we are trying to use run time linking or normal
13666
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13667
# need to do runtime linking.
13668
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13669
for ld_flag in $LDFLAGS; do
13670
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13671
aix_use_runtimelinking=yes
13678
exp_sym_flag='-bexport'
13679
no_entry_flag='-bnoentry'
13682
# When large executables or shared objects are built, AIX ld can
13683
# have problems creating the table of contents. If linking a library
13684
# or program results in "error TOC overflow" add -mminimal-toc to
13685
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13686
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13688
archive_cmds_F77=''
13689
hardcode_direct_F77=yes
13690
hardcode_libdir_separator_F77=':'
13691
link_all_deplibs_F77=yes
13693
if test "$GCC" = yes; then
13694
case $host_os in aix4.[012]|aix4.[012].*)
13695
# We only want to do this on AIX 4.2 and lower, the check
13696
# below for broken collect2 doesn't work under 4.3+
13697
collect2name=`${CC} -print-prog-name=collect2`
13698
if test -f "$collect2name" && \
13699
strings "$collect2name" | grep resolve_lib_name >/dev/null
13701
# We have reworked collect2
13702
hardcode_direct_F77=yes
13704
# We have old collect2
13705
hardcode_direct_F77=unsupported
13706
# It fails to find uninstalled libraries when the uninstalled
13707
# path is not listed in the libpath. Setting hardcode_minus_L
13708
# to unsupported forces relinking
13709
hardcode_minus_L_F77=yes
13710
hardcode_libdir_flag_spec_F77='-L$libdir'
13711
hardcode_libdir_separator_F77=
13715
shared_flag='-shared'
13716
if test "$aix_use_runtimelinking" = yes; then
13717
shared_flag="$shared_flag "'${wl}-G'
13721
if test "$host_cpu" = ia64; then
13722
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13723
# chokes on -Wl,-G. The following line is correct:
13726
if test "$aix_use_runtimelinking" = yes; then
13727
shared_flag='${wl}-G'
13729
shared_flag='${wl}-bM:SRE'
13734
# It seems that -bexpall does not export symbols beginning with
13735
# underscore (_), so it is better to generate a list of symbols to export.
13736
always_export_symbols_F77=yes
13737
if test "$aix_use_runtimelinking" = yes; then
13738
# Warning - without using the other runtime loading flags (-brtl),
13739
# -berok will link without error, but may produce a broken library.
13740
allow_undefined_flag_F77='-berok'
13741
# Determine the default libpath from the value encoded in an empty executable.
13742
cat >conftest.$ac_ext <<_ACEOF
13747
rm -f conftest.$ac_objext conftest$ac_exeext
13748
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13749
(eval $ac_link) 2>conftest.er1
13751
grep -v '^ *+' conftest.er1 >conftest.err
13753
cat conftest.err >&5
13754
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755
(exit $ac_status); } &&
13756
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13757
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758
(eval $ac_try) 2>&5
13760
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761
(exit $ac_status); }; } &&
13762
{ ac_try='test -s conftest$ac_exeext'
13763
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13764
(eval $ac_try) 2>&5
13766
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767
(exit $ac_status); }; }; then
13769
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13771
# Check for a 64-bit object if we didn't find anything.
13772
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13775
echo "$as_me: failed program was:" >&5
13776
sed 's/^/| /' conftest.$ac_ext >&5
13779
rm -f conftest.err conftest.$ac_objext \
13780
conftest$ac_exeext conftest.$ac_ext
13781
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13783
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13784
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"
13786
if test "$host_cpu" = ia64; then
13787
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13788
allow_undefined_flag_F77="-z nodefs"
13789
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"
13791
# Determine the default libpath from the value encoded in an empty executable.
13792
cat >conftest.$ac_ext <<_ACEOF
13797
rm -f conftest.$ac_objext conftest$ac_exeext
13798
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13799
(eval $ac_link) 2>conftest.er1
13801
grep -v '^ *+' conftest.er1 >conftest.err
13803
cat conftest.err >&5
13804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805
(exit $ac_status); } &&
13806
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13807
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13808
(eval $ac_try) 2>&5
13810
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811
(exit $ac_status); }; } &&
13812
{ ac_try='test -s conftest$ac_exeext'
13813
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13814
(eval $ac_try) 2>&5
13816
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817
(exit $ac_status); }; }; then
13819
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13821
# Check for a 64-bit object if we didn't find anything.
13822
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13825
echo "$as_me: failed program was:" >&5
13826
sed 's/^/| /' conftest.$ac_ext >&5
13829
rm -f conftest.err conftest.$ac_objext \
13830
conftest$ac_exeext conftest.$ac_ext
13831
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13833
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13834
# Warning - without using the other run time loading flags,
13835
# -berok will link without error, but may produce a broken library.
13836
no_undefined_flag_F77=' ${wl}-bernotok'
13837
allow_undefined_flag_F77=' ${wl}-berok'
13838
# Exported symbols can be pulled into shared objects from archives
13839
whole_archive_flag_spec_F77='$convenience'
13840
archive_cmds_need_lc_F77=yes
13841
# This is similar to how AIX traditionally builds its shared libraries.
13842
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'
13848
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)'
13849
hardcode_libdir_flag_spec_F77='-L$libdir'
13850
hardcode_minus_L_F77=yes
13851
# see comment about different semantics on the GNU ld section
13856
export_dynamic_flag_spec_F77=-rdynamic
13859
cygwin* | mingw* | pw32*)
13860
# When not using gcc, we currently assume that we are using
13861
# Microsoft Visual C++.
13862
# hardcode_libdir_flag_spec is actually meaningless, as there is
13863
# no search path for DLLs.
13864
hardcode_libdir_flag_spec_F77=' '
13865
allow_undefined_flag_F77=unsupported
13866
# Tell ltmain to make .lib files, not .a files.
13868
# Tell ltmain to make .dll files, not .so files.
13870
# FIXME: Setting linknames here is a bad hack.
13871
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13872
# The linker will automatically build a .lib file if we build a DLL.
13873
old_archive_From_new_cmds_F77='true'
13874
# FIXME: Should let the user specify the lib program.
13875
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13876
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13877
enable_shared_with_static_runtimes_F77=yes
13880
darwin* | rhapsody*)
13882
rhapsody* | darwin1.[012])
13883
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13886
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13887
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13889
case ${MACOSX_DEPLOYMENT_TARGET} in
13891
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13894
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13900
archive_cmds_need_lc_F77=no
13901
hardcode_direct_F77=no
13902
hardcode_automatic_F77=yes
13903
hardcode_shlibpath_var_F77=unsupported
13904
whole_archive_flag_spec_F77=''
13905
link_all_deplibs_F77=yes
13906
if test "$GCC" = yes ; then
13907
output_verbose_link_cmd='echo'
13908
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13909
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13910
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13911
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13912
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}'
13914
case $cc_basename in
13916
output_verbose_link_cmd='echo'
13917
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13918
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13919
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13920
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13921
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}'
13931
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13932
hardcode_libdir_flag_spec_F77='-L$libdir'
13933
hardcode_shlibpath_var_F77=no
13940
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13941
# support. Future versions do this automatically, but an explicit c++rt0.o
13942
# does not break anything, and helps significantly (at the cost of a little
13945
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13946
hardcode_libdir_flag_spec_F77='-R$libdir'
13947
hardcode_direct_F77=yes
13948
hardcode_shlibpath_var_F77=no
13951
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
13953
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13954
hardcode_direct_F77=yes
13955
hardcode_minus_L_F77=yes
13956
hardcode_shlibpath_var_F77=no
13959
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13960
freebsd* | dragonfly*)
13961
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13962
hardcode_libdir_flag_spec_F77='-R$libdir'
13963
hardcode_direct_F77=yes
13964
hardcode_shlibpath_var_F77=no
13967
# GNU/kFreeBSD uses gcc -shared to do shared libraries.
13969
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13970
hardcode_libdir_flag_spec_F77='-R$libdir'
13971
hardcode_direct_F77=yes
13972
hardcode_shlibpath_var_F77=no
13973
link_all_deplibs_F77=no
13977
if test "$GCC" = yes; then
13978
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'
13980
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'
13982
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13983
hardcode_libdir_separator_F77=:
13984
hardcode_direct_F77=yes
13986
# hardcode_minus_L: Not really in the search PATH,
13987
# but as the default location of the library.
13988
hardcode_minus_L_F77=yes
13989
export_dynamic_flag_spec_F77='${wl}-E'
13993
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13994
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13996
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13998
if test "$with_gnu_ld" = no; then
13999
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14000
hardcode_libdir_separator_F77=:
14002
hardcode_direct_F77=yes
14003
export_dynamic_flag_spec_F77='${wl}-E'
14005
# hardcode_minus_L: Not really in the search PATH,
14006
# but as the default location of the library.
14007
hardcode_minus_L_F77=yes
14012
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14015
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14018
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14021
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14027
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14030
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14033
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14037
if test "$with_gnu_ld" = no; then
14038
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14039
hardcode_libdir_separator_F77=:
14043
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14044
hardcode_direct_F77=no
14045
hardcode_shlibpath_var_F77=no
14048
hardcode_direct_F77=yes
14049
export_dynamic_flag_spec_F77='${wl}-E'
14051
# hardcode_minus_L: Not really in the search PATH,
14052
# but as the default location of the library.
14053
hardcode_minus_L_F77=yes
14059
irix5* | irix6* | nonstopux*)
14060
if test "$GCC" = yes; then
14061
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'
14063
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'
14064
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14066
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14067
hardcode_libdir_separator_F77=:
14068
link_all_deplibs_F77=yes
14071
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14072
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14073
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14075
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14077
hardcode_libdir_flag_spec_F77='-R$libdir'
14078
hardcode_direct_F77=yes
14079
hardcode_shlibpath_var_F77=no
14083
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14084
hardcode_direct_F77=yes
14085
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14086
hardcode_libdir_separator_F77=:
14087
hardcode_shlibpath_var_F77=no
14091
hardcode_direct_F77=yes
14092
hardcode_shlibpath_var_F77=no
14093
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14094
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14095
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14096
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14097
export_dynamic_flag_spec_F77='${wl}-E'
14100
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14101
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14102
hardcode_libdir_flag_spec_F77='-R$libdir'
14105
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14106
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14113
hardcode_libdir_flag_spec_F77='-L$libdir'
14114
hardcode_minus_L_F77=yes
14115
allow_undefined_flag_F77=unsupported
14116
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'
14117
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14121
if test "$GCC" = yes; then
14122
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14123
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'
14125
allow_undefined_flag_F77=' -expect_unresolved \*'
14126
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'
14128
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14129
hardcode_libdir_separator_F77=:
14132
osf4* | osf5*) # as osf3* with the addition of -msym flag
14133
if test "$GCC" = yes; then
14134
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14135
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'
14136
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14138
allow_undefined_flag_F77=' -expect_unresolved \*'
14139
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'
14140
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~
14141
$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'
14143
# Both c and cxx compiler support -rpath directly
14144
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14146
hardcode_libdir_separator_F77=:
14150
no_undefined_flag_F77=' -z text'
14151
if test "$GCC" = yes; then
14153
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14154
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14155
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14158
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14159
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14160
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14162
hardcode_libdir_flag_spec_F77='-R$libdir'
14163
hardcode_shlibpath_var_F77=no
14165
solaris2.[0-5] | solaris2.[0-5].*) ;;
14167
# The compiler driver will combine linker options so we
14168
# cannot just pass the convience library names through
14169
# without $wl, iff we do not link with $LD.
14170
# Luckily, gcc supports the same syntax we need for Sun Studio.
14171
# Supported since Solaris 2.6 (maybe 2.5.1?)
14174
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14176
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14179
link_all_deplibs_F77=yes
14183
if test "x$host_vendor" = xsequent; then
14184
# Use $CC to link under sequent, because it throws in some extra .o
14185
# files that make .init and .fini sections work.
14186
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14188
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14190
hardcode_libdir_flag_spec_F77='-L$libdir'
14191
hardcode_direct_F77=yes
14192
hardcode_minus_L_F77=yes
14193
hardcode_shlibpath_var_F77=no
14197
case $host_vendor in
14199
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14200
hardcode_direct_F77=yes # is this really true???
14203
## LD is ld it makes a PLAMLIB
14204
## CC just makes a GrossModule.
14205
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14206
reload_cmds_F77='$CC -r -o $output$reload_objs'
14207
hardcode_direct_F77=no
14210
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14211
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14214
runpath_var='LD_RUN_PATH'
14215
hardcode_shlibpath_var_F77=no
14219
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14220
hardcode_shlibpath_var_F77=no
14221
export_dynamic_flag_spec_F77='-Bexport'
14225
if test -d /usr/nec; then
14226
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14227
hardcode_shlibpath_var_F77=no
14228
runpath_var=LD_RUN_PATH
14229
hardcode_runpath_var=yes
14234
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14235
no_undefined_flag_F77='${wl}-z,text'
14236
archive_cmds_need_lc_F77=no
14237
hardcode_shlibpath_var_F77=no
14238
runpath_var='LD_RUN_PATH'
14240
if test "$GCC" = yes; then
14241
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14242
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14244
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14245
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14249
sysv5* | sco3.2v5* | sco5v6*)
14250
# Note: We can NOT use -z defs as we might desire, because we do not
14251
# link with -lc, and that would cause any symbols used from libc to
14252
# always be unresolved, which means just about no library would
14253
# ever link correctly. If we're not using GNU ld we use -z text
14254
# though, which does catch some bad symbols but isn't as heavy-handed
14256
no_undefined_flag_F77='${wl}-z,text'
14257
allow_undefined_flag_F77='${wl}-z,nodefs'
14258
archive_cmds_need_lc_F77=no
14259
hardcode_shlibpath_var_F77=no
14260
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14261
hardcode_libdir_separator_F77=':'
14262
link_all_deplibs_F77=yes
14263
export_dynamic_flag_spec_F77='${wl}-Bexport'
14264
runpath_var='LD_RUN_PATH'
14266
if test "$GCC" = yes; then
14267
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14268
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14270
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14271
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14276
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14277
hardcode_libdir_flag_spec_F77='-L$libdir'
14278
hardcode_shlibpath_var_F77=no
14287
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14288
echo "${ECHO_T}$ld_shlibs_F77" >&6
14289
test "$ld_shlibs_F77" = no && can_build_shared=no
14292
# Do we need to explicitly link libc?
14294
case "x$archive_cmds_need_lc_F77" in
14296
# Assume -lc should be added
14297
archive_cmds_need_lc_F77=yes
14299
if test "$enable_shared" = yes && test "$GCC" = yes; then
14300
case $archive_cmds_F77 in
14302
# FIXME: we may have to deal with multi-command sequences.
14305
# Test whether the compiler implicitly links with -lc since on some
14306
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14307
# to ld, don't add -lc before -lgcc.
14308
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14309
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14311
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14313
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14314
(eval $ac_compile) 2>&5
14316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317
(exit $ac_status); } 2>conftest.err; then
14320
libobjs=conftest.$ac_objext
14322
wl=$lt_prog_compiler_wl_F77
14323
pic_flag=$lt_prog_compiler_pic_F77
14329
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14330
allow_undefined_flag_F77=
14331
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14332
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335
(exit $ac_status); }
14337
archive_cmds_need_lc_F77=no
14339
archive_cmds_need_lc_F77=yes
14341
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14343
cat conftest.err 1>&5
14346
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14347
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14354
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14355
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14356
library_names_spec=
14357
libname_spec='lib$name'
14361
postuninstall_cmds=
14365
shlibpath_overrides_runpath=unknown
14367
dynamic_linker="$host_os ld.so"
14368
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14369
if test "$GCC" = yes; then
14370
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14371
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14372
# if the path contains ";" then we assume it to be the separator
14373
# otherwise default to the standard path separator (i.e. ":") - it is
14374
# assumed that no part of a normal pathname contains ";" but that should
14375
# okay in the real world where ";" in dirpaths is itself problematic.
14376
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14378
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14381
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14383
need_lib_prefix=unknown
14384
hardcode_into_libs=no
14386
# when you set need_version to no, make sure it does not cause -set_version
14387
# flags to be left without arguments
14388
need_version=unknown
14393
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14394
shlibpath_var=LIBPATH
14396
# AIX 3 has no versioning support, so we append a major version to the name.
14397
soname_spec='${libname}${release}${shared_ext}$major'
14404
hardcode_into_libs=yes
14405
if test "$host_cpu" = ia64; then
14406
# AIX 5 supports IA64
14407
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14408
shlibpath_var=LD_LIBRARY_PATH
14410
# With GCC up to 2.95.x, collect2 would create an import file
14411
# for dependence libraries. The import file would start with
14412
# the line `#! .'. This would cause the generated library to
14413
# depend on `.', always an invalid library. This was fixed in
14414
# development snapshots of GCC prior to 3.0.
14416
aix4 | aix4.[01] | aix4.[01].*)
14417
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14419
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14422
can_build_shared=no
14426
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14427
# soname into executable. Probably we can add versioning support to
14428
# collect2, so additional links can be useful in future.
14429
if test "$aix_use_runtimelinking" = yes; then
14430
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14431
# instead of lib<name>.a to let people know that these are not
14432
# typical AIX shared libraries.
14433
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14435
# We preserve .a as extension for shared libraries through AIX4.2
14436
# and later when we are not doing run time linking.
14437
library_names_spec='${libname}${release}.a $libname.a'
14438
soname_spec='${libname}${release}${shared_ext}$major'
14440
shlibpath_var=LIBPATH
14445
library_names_spec='$libname.ixlibrary $libname.a'
14446
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14447
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'
14451
library_names_spec='${libname}${shared_ext}'
14452
dynamic_linker="$host_os ld.so"
14453
shlibpath_var=LIBRARY_PATH
14459
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14460
soname_spec='${libname}${release}${shared_ext}$major'
14461
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14462
shlibpath_var=LD_LIBRARY_PATH
14463
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14464
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14465
# the default ld.so.conf also contains /usr/contrib/lib and
14466
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14467
# libtool to hard-code these into programs
14470
cygwin* | mingw* | pw32*)
14471
version_type=windows
14476
case $GCC,$host_os in
14477
yes,cygwin* | yes,mingw* | yes,pw32*)
14478
library_names_spec='$libname.dll.a'
14479
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14480
postinstall_cmds='base_file=`basename \${file}`~
14481
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14482
dldir=$destdir/`dirname \$dlpath`~
14483
test -d \$dldir || mkdir -p \$dldir~
14484
$install_prog $dir/$dlname \$dldir/$dlname~
14485
chmod a+x \$dldir/$dlname'
14486
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14487
dlpath=$dir/\$dldll~
14489
shlibpath_overrides_runpath=yes
14493
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14494
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14495
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14498
# MinGW DLLs use traditional 'lib' prefix
14499
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14500
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14501
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14502
# It is most probably a Windows format PATH printed by
14503
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14504
# path with ; separators, and with drive letters. We can handle the
14505
# drive letters (cygwin fileutils understands them), so leave them,
14506
# especially as we might pass files found there to a mingw objdump,
14507
# which wouldn't understand a cygwinified path. Ahh.
14508
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14510
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14514
# pw32 DLLs use 'pw' prefix rather than 'lib'
14515
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14521
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14524
dynamic_linker='Win32 ld.exe'
14525
# FIXME: first we should search . and the directory the executable is in
14529
darwin* | rhapsody*)
14530
dynamic_linker="$host_os dyld"
14531
version_type=darwin
14534
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14535
soname_spec='${libname}${release}${major}$shared_ext'
14536
shlibpath_overrides_runpath=yes
14537
shlibpath_var=DYLD_LIBRARY_PATH
14538
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14539
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14540
if test "$GCC" = yes; then
14541
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14543
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14545
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14552
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14553
soname_spec='${libname}${release}${shared_ext}$major'
14554
shlibpath_var=LD_LIBRARY_PATH
14565
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14566
soname_spec='${libname}${release}${shared_ext}$major'
14567
shlibpath_var=LD_LIBRARY_PATH
14568
shlibpath_overrides_runpath=no
14569
hardcode_into_libs=yes
14570
dynamic_linker='GNU ld.so'
14573
freebsd* | dragonfly*)
14574
# DragonFly does not have aout. When/if they implement a new
14575
# versioning mechanism, adjust this.
14576
if test -x /usr/bin/objformat; then
14577
objformat=`/usr/bin/objformat`
14580
freebsd[123]*) objformat=aout ;;
14581
*) objformat=elf ;;
14584
version_type=freebsd-$objformat
14585
case $version_type in
14587
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14592
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14596
shlibpath_var=LD_LIBRARY_PATH
14599
shlibpath_overrides_runpath=yes
14601
freebsd3.[01]* | freebsdelf3.[01]*)
14602
shlibpath_overrides_runpath=yes
14603
hardcode_into_libs=yes
14605
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14606
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14607
shlibpath_overrides_runpath=no
14608
hardcode_into_libs=yes
14610
freebsd*) # from 4.6 on
14611
shlibpath_overrides_runpath=yes
14612
hardcode_into_libs=yes
14621
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14622
soname_spec='${libname}${release}${shared_ext}$major'
14623
shlibpath_var=LD_LIBRARY_PATH
14624
hardcode_into_libs=yes
14627
hpux9* | hpux10* | hpux11*)
14628
# Give a soname corresponding to the major version so that dld.sl refuses to
14629
# link against other versions.
14636
hardcode_into_libs=yes
14637
dynamic_linker="$host_os dld.so"
14638
shlibpath_var=LD_LIBRARY_PATH
14639
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14640
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14641
soname_spec='${libname}${release}${shared_ext}$major'
14642
if test "X$HPUX_IA64_MODE" = X32; then
14643
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14645
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14647
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14651
hardcode_into_libs=yes
14652
dynamic_linker="$host_os dld.sl"
14653
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14654
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14655
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14656
soname_spec='${libname}${release}${shared_ext}$major'
14657
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14658
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14662
dynamic_linker="$host_os dld.sl"
14663
shlibpath_var=SHLIB_PATH
14664
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14665
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14666
soname_spec='${libname}${release}${shared_ext}$major'
14669
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14670
postinstall_cmds='chmod 555 $lib'
14677
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14678
soname_spec='${libname}${release}${shared_ext}$major'
14679
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14680
shlibpath_var=LD_LIBRARY_PATH
14681
shlibpath_overrides_runpath=no
14682
hardcode_into_libs=yes
14685
irix5* | irix6* | nonstopux*)
14687
nonstopux*) version_type=nonstopux ;;
14689
if test "$lt_cv_prog_gnu_ld" = yes; then
14697
soname_spec='${libname}${release}${shared_ext}$major'
14698
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14700
irix5* | nonstopux*)
14701
libsuff= shlibsuff=
14704
case $LD in # libtool.m4 will add one of these switches to LD
14705
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14706
libsuff= shlibsuff= libmagic=32-bit;;
14707
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14708
libsuff=32 shlibsuff=N32 libmagic=N32;;
14709
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14710
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14711
*) libsuff= shlibsuff= libmagic=never-match;;
14715
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14716
shlibpath_overrides_runpath=no
14717
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14718
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14719
hardcode_into_libs=yes
14722
# No shared lib support for Linux oldld, aout, or coff.
14723
linux*oldld* | linux*aout* | linux*coff*)
14727
# This must be Linux ELF.
14732
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14733
soname_spec='${libname}${release}${shared_ext}$major'
14734
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14735
shlibpath_var=LD_LIBRARY_PATH
14736
shlibpath_overrides_runpath=no
14737
# This implies no fast_install, which is unacceptable.
14738
# Some rework will be needed to allow for fast_install
14739
# before this can be enabled.
14740
hardcode_into_libs=yes
14742
# Append ld.so.conf contents to the search path
14743
if test -f /etc/ld.so.conf; then
14744
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14745
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14748
# We used to test for /lib/ld.so.1 and disable shared libraries on
14749
# powerpc, because MkLinux only supported shared libraries with the
14750
# GNU dynamic linker. Since this was broken with cross compilers,
14751
# most powerpc-linux boxes support dynamic linking these days and
14752
# people can always --disable-shared, the test was removed, and we
14753
# assume the GNU/Linux dynamic linker is in use.
14754
dynamic_linker='GNU/Linux ld.so'
14761
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14762
soname_spec='${libname}${release}${shared_ext}$major'
14763
shlibpath_var=LD_LIBRARY_PATH
14764
shlibpath_overrides_runpath=no
14765
hardcode_into_libs=yes
14766
dynamic_linker='NetBSD ld.elf_so'
14773
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14774
soname_spec='${libname}${release}${shared_ext}$major'
14775
shlibpath_var=LD_LIBRARY_PATH
14776
shlibpath_overrides_runpath=no
14777
hardcode_into_libs=yes
14778
dynamic_linker='GNU ld.so'
14785
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14786
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14787
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14788
dynamic_linker='NetBSD (a.out) ld.so'
14790
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14791
soname_spec='${libname}${release}${shared_ext}$major'
14792
dynamic_linker='NetBSD ld.elf_so'
14794
shlibpath_var=LD_LIBRARY_PATH
14795
shlibpath_overrides_runpath=yes
14796
hardcode_into_libs=yes
14801
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14802
shlibpath_var=LD_LIBRARY_PATH
14803
shlibpath_overrides_runpath=yes
14810
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14811
soname_spec='${libname}${release}${shared_ext}$major'
14812
shlibpath_var=LD_LIBRARY_PATH
14813
shlibpath_overrides_runpath=yes
14818
sys_lib_dlsearch_path_spec="/usr/lib"
14820
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14822
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14823
*) need_version=no ;;
14825
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14826
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14827
shlibpath_var=LD_LIBRARY_PATH
14828
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14830
openbsd2.[89] | openbsd2.[89].*)
14831
shlibpath_overrides_runpath=no
14834
shlibpath_overrides_runpath=yes
14838
shlibpath_overrides_runpath=yes
14843
libname_spec='$name'
14846
library_names_spec='$libname${shared_ext} $libname.a'
14847
dynamic_linker='OS/2 ld.exe'
14848
shlibpath_var=LIBPATH
14851
osf3* | osf4* | osf5*)
14855
soname_spec='${libname}${release}${shared_ext}$major'
14856
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14857
shlibpath_var=LD_LIBRARY_PATH
14858
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14859
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14866
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14867
soname_spec='${libname}${release}${shared_ext}$major'
14868
shlibpath_var=LD_LIBRARY_PATH
14869
shlibpath_overrides_runpath=yes
14870
hardcode_into_libs=yes
14871
# ldd complains unless libraries are executable
14872
postinstall_cmds='chmod +x $lib'
14877
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14878
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14879
shlibpath_var=LD_LIBRARY_PATH
14880
shlibpath_overrides_runpath=yes
14881
if test "$with_gnu_ld" = yes; then
14889
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14890
soname_spec='${libname}${release}${shared_ext}$major'
14891
shlibpath_var=LD_LIBRARY_PATH
14892
case $host_vendor in
14894
shlibpath_overrides_runpath=no
14896
export_dynamic_flag_spec='${wl}-Blargedynsym'
14897
runpath_var=LD_RUN_PATH
14905
shlibpath_overrides_runpath=no
14906
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14912
if test -d /usr/nec ;then
14914
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14915
soname_spec='$libname${shared_ext}.$major'
14916
shlibpath_var=LD_LIBRARY_PATH
14920
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14921
version_type=freebsd-elf
14924
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14925
soname_spec='${libname}${release}${shared_ext}$major'
14926
shlibpath_var=LD_LIBRARY_PATH
14927
hardcode_into_libs=yes
14928
if test "$with_gnu_ld" = yes; then
14929
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14930
shlibpath_overrides_runpath=no
14932
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14933
shlibpath_overrides_runpath=yes
14936
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14940
sys_lib_dlsearch_path_spec='/usr/lib'
14945
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14946
soname_spec='${libname}${release}${shared_ext}$major'
14947
shlibpath_var=LD_LIBRARY_PATH
14954
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14955
echo "${ECHO_T}$dynamic_linker" >&6
14956
test "$dynamic_linker" = no && can_build_shared=no
14958
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14959
if test "$GCC" = yes; then
14960
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14963
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14964
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14965
hardcode_action_F77=
14966
if test -n "$hardcode_libdir_flag_spec_F77" || \
14967
test -n "$runpath_var_F77" || \
14968
test "X$hardcode_automatic_F77" = "Xyes" ; then
14970
# We can hardcode non-existant directories.
14971
if test "$hardcode_direct_F77" != no &&
14972
# If the only mechanism to avoid hardcoding is shlibpath_var, we
14973
# have to relink, otherwise we might link with an installed library
14974
# when we should be linking with a yet-to-be-installed one
14975
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14976
test "$hardcode_minus_L_F77" != no; then
14977
# Linking always hardcodes the temporary library directory.
14978
hardcode_action_F77=relink
14980
# We can link without hardcoding, and we can hardcode nonexisting dirs.
14981
hardcode_action_F77=immediate
14984
# We cannot hardcode anything, or else we can only hardcode existing
14986
hardcode_action_F77=unsupported
14988
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14989
echo "${ECHO_T}$hardcode_action_F77" >&6
14991
if test "$hardcode_action_F77" = relink; then
14992
# Fast installation is not supported
14993
enable_fast_install=no
14994
elif test "$shlibpath_overrides_runpath" = yes ||
14995
test "$enable_shared" = no; then
14996
# Fast installation is not necessary
14997
enable_fast_install=needless
15001
# The else clause should only fire when bootstrapping the
15002
# libtool distribution, otherwise you forgot to ship ltmain.sh
15003
# with your package, and you will get complaints that there are
15004
# no rules to generate ltmain.sh.
15005
if test -f "$ltmain"; then
15006
# See if we are running on zsh, and set the options which allow our commands through
15007
# without removal of \ escapes.
15008
if test -n "${ZSH_VERSION+set}" ; then
15009
setopt NO_GLOB_SUBST
15011
# Now quote all the things that may contain metacharacters while being
15012
# careful not to overquote the AC_SUBSTed values. We take copies of the
15013
# variables and quote the copies for generation of the libtool script.
15014
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15016
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15017
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15018
deplibs_check_method reload_flag reload_cmds need_locks \
15019
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15020
lt_cv_sys_global_symbol_to_c_name_address \
15021
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15022
old_postinstall_cmds old_postuninstall_cmds \
15026
lt_prog_compiler_wl_F77 \
15027
lt_prog_compiler_pic_F77 \
15028
lt_prog_compiler_static_F77 \
15029
lt_prog_compiler_no_builtin_flag_F77 \
15030
export_dynamic_flag_spec_F77 \
15031
thread_safe_flag_spec_F77 \
15032
whole_archive_flag_spec_F77 \
15033
enable_shared_with_static_runtimes_F77 \
15034
old_archive_cmds_F77 \
15035
old_archive_from_new_cmds_F77 \
15036
predep_objects_F77 \
15037
postdep_objects_F77 \
15040
compiler_lib_search_path_F77 \
15042
archive_expsym_cmds_F77 \
15043
postinstall_cmds_F77 \
15044
postuninstall_cmds_F77 \
15045
old_archive_from_expsyms_cmds_F77 \
15046
allow_undefined_flag_F77 \
15047
no_undefined_flag_F77 \
15048
export_symbols_cmds_F77 \
15049
hardcode_libdir_flag_spec_F77 \
15050
hardcode_libdir_flag_spec_ld_F77 \
15051
hardcode_libdir_separator_F77 \
15052
hardcode_automatic_F77 \
15054
module_expsym_cmds_F77 \
15055
lt_cv_prog_compiler_c_o_F77 \
15056
exclude_expsyms_F77 \
15057
include_expsyms_F77; do
15060
old_archive_cmds_F77 | \
15061
old_archive_from_new_cmds_F77 | \
15062
archive_cmds_F77 | \
15063
archive_expsym_cmds_F77 | \
15064
module_cmds_F77 | \
15065
module_expsym_cmds_F77 | \
15066
old_archive_from_expsyms_cmds_F77 | \
15067
export_symbols_cmds_F77 | \
15068
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15069
postinstall_cmds | postuninstall_cmds | \
15070
old_postinstall_cmds | old_postuninstall_cmds | \
15071
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15072
# Double-quote double-evaled strings.
15073
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15076
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15082
*'\$0 --fallback-echo"')
15083
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15089
cat <<__EOF__ >> "$cfgfile"
15090
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15092
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15094
# Shell to use when invoking shell scripts.
15097
# Whether or not to build shared libraries.
15098
build_libtool_libs=$enable_shared
15100
# Whether or not to build static libraries.
15101
build_old_libs=$enable_static
15103
# Whether or not to add -lc for building shared libraries.
15104
build_libtool_need_lc=$archive_cmds_need_lc_F77
15106
# Whether or not to disallow shared libs when runtime libs are static
15107
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15109
# Whether or not to optimize for fast installation.
15110
fast_install=$enable_fast_install
15113
host_alias=$host_alias
15117
# The build system.
15118
build_alias=$build_alias
15122
# An echo program that does not interpret backslashes.
15127
AR_FLAGS=$lt_AR_FLAGS
15132
# LTCC compiler flags.
15133
LTCFLAGS=$lt_LTCFLAGS
15135
# A language-specific compiler.
15136
CC=$lt_compiler_F77
15138
# Is the compiler the GNU C compiler?
15144
# The linker used to build libraries.
15147
# Whether we need hard or soft links.
15150
# A BSD-compatible nm program.
15153
# A symbol stripping program
15156
# Used to examine libraries when file_magic_cmd begins "file"
15157
MAGIC_CMD=$MAGIC_CMD
15159
# Used on cygwin: DLL creation program.
15162
# Used on cygwin: object dumper.
15165
# Used on cygwin: assembler.
15168
# The name of the directory that contains temporary libtool files.
15171
# How to create reloadable object files.
15172
reload_flag=$lt_reload_flag
15173
reload_cmds=$lt_reload_cmds
15175
# How to pass a linker flag through the compiler.
15176
wl=$lt_lt_prog_compiler_wl_F77
15178
# Object file suffix (normally "o").
15179
objext="$ac_objext"
15181
# Old archive suffix (normally "a").
15184
# Shared library suffix (normally ".so").
15185
shrext_cmds='$shrext_cmds'
15187
# Executable file suffix (normally "").
15190
# Additional compiler flags for building library objects.
15191
pic_flag=$lt_lt_prog_compiler_pic_F77
15194
# What is the maximum length of a command?
15195
max_cmd_len=$lt_cv_sys_max_cmd_len
15197
# Does compiler simultaneously support -c and -o options?
15198
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15200
# Must we lock files when doing compilation?
15201
need_locks=$lt_need_locks
15203
# Do we need the lib prefix for modules?
15204
need_lib_prefix=$need_lib_prefix
15206
# Do we need a version for libraries?
15207
need_version=$need_version
15209
# Whether dlopen is supported.
15210
dlopen_support=$enable_dlopen
15212
# Whether dlopen of programs is supported.
15213
dlopen_self=$enable_dlopen_self
15215
# Whether dlopen of statically linked programs is supported.
15216
dlopen_self_static=$enable_dlopen_self_static
15218
# Compiler flag to prevent dynamic linking.
15219
link_static_flag=$lt_lt_prog_compiler_static_F77
15221
# Compiler flag to turn off builtin functions.
15222
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15224
# Compiler flag to allow reflexive dlopens.
15225
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15227
# Compiler flag to generate shared objects directly from archives.
15228
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15230
# Compiler flag to generate thread-safe objects.
15231
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15233
# Library versioning type.
15234
version_type=$version_type
15236
# Format of library name prefix.
15237
libname_spec=$lt_libname_spec
15239
# List of archive names. First name is the real one, the rest are links.
15240
# The last name is the one that the linker finds with -lNAME.
15241
library_names_spec=$lt_library_names_spec
15243
# The coded name of the library, if different from the real name.
15244
soname_spec=$lt_soname_spec
15246
# Commands used to build and install an old-style archive.
15248
old_archive_cmds=$lt_old_archive_cmds_F77
15249
old_postinstall_cmds=$lt_old_postinstall_cmds
15250
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15252
# Create an old-style archive from a shared archive.
15253
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15255
# Create a temporary old-style archive to link instead of a shared archive.
15256
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15258
# Commands used to build and install a shared archive.
15259
archive_cmds=$lt_archive_cmds_F77
15260
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15261
postinstall_cmds=$lt_postinstall_cmds
15262
postuninstall_cmds=$lt_postuninstall_cmds
15264
# Commands used to build a loadable module (assumed same as above if empty)
15265
module_cmds=$lt_module_cmds_F77
15266
module_expsym_cmds=$lt_module_expsym_cmds_F77
15268
# Commands to strip libraries.
15269
old_striplib=$lt_old_striplib
15270
striplib=$lt_striplib
15272
# Dependencies to place before the objects being linked to create a
15274
predep_objects=$lt_predep_objects_F77
15276
# Dependencies to place after the objects being linked to create a
15278
postdep_objects=$lt_postdep_objects_F77
15280
# Dependencies to place before the objects being linked to create a
15282
predeps=$lt_predeps_F77
15284
# Dependencies to place after the objects being linked to create a
15286
postdeps=$lt_postdeps_F77
15288
# The library search path used internally by the compiler when linking
15289
# a shared library.
15290
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15292
# Method to check whether dependent libraries are shared objects.
15293
deplibs_check_method=$lt_deplibs_check_method
15295
# Command to use when deplibs_check_method == file_magic.
15296
file_magic_cmd=$lt_file_magic_cmd
15298
# Flag that allows shared libraries with undefined symbols to be built.
15299
allow_undefined_flag=$lt_allow_undefined_flag_F77
15301
# Flag that forces no undefined symbols.
15302
no_undefined_flag=$lt_no_undefined_flag_F77
15304
# Commands used to finish a libtool library installation in a directory.
15305
finish_cmds=$lt_finish_cmds
15307
# Same as above, but a single script fragment to be evaled but not shown.
15308
finish_eval=$lt_finish_eval
15310
# Take the output of nm and produce a listing of raw symbols and C names.
15311
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15313
# Transform the output of nm in a proper C declaration
15314
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15316
# Transform the output of nm in a C name address pair
15317
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15319
# This is the shared library runtime path variable.
15320
runpath_var=$runpath_var
15322
# This is the shared library path variable.
15323
shlibpath_var=$shlibpath_var
15325
# Is shlibpath searched before the hard-coded library search path?
15326
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15328
# How to hardcode a shared library path into an executable.
15329
hardcode_action=$hardcode_action_F77
15331
# Whether we should hardcode library paths into libraries.
15332
hardcode_into_libs=$hardcode_into_libs
15334
# Flag to hardcode \$libdir into a binary during linking.
15335
# This must work even if \$libdir does not exist.
15336
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15338
# If ld is used when linking, flag to hardcode \$libdir into
15339
# a binary during linking. This must work even if \$libdir does
15341
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15343
# Whether we need a single -rpath flag with a separated argument.
15344
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15346
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15347
# resulting binary.
15348
hardcode_direct=$hardcode_direct_F77
15350
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15351
# resulting binary.
15352
hardcode_minus_L=$hardcode_minus_L_F77
15354
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15355
# the resulting binary.
15356
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15358
# Set to yes if building a shared library automatically hardcodes DIR into the library
15359
# and all subsequent libraries and executables linked against it.
15360
hardcode_automatic=$hardcode_automatic_F77
15362
# Variables whose values should be saved in libtool wrapper scripts and
15363
# restored at relink time.
15364
variables_saved_for_relink="$variables_saved_for_relink"
15366
# Whether libtool must link a program against all its dependency libraries.
15367
link_all_deplibs=$link_all_deplibs_F77
15369
# Compile-time system search path for libraries
15370
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15372
# Run-time system search path for libraries
15373
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15375
# Fix the shell variable \$srcfile for the compiler.
15376
fix_srcfile_path="$fix_srcfile_path_F77"
15378
# Set to yes if exported symbols are required.
15379
always_export_symbols=$always_export_symbols_F77
15381
# The commands to list exported symbols.
15382
export_symbols_cmds=$lt_export_symbols_cmds_F77
15384
# The commands to extract the exported symbol list from a shared archive.
15385
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15387
# Symbols that should not be listed in the preloaded symbols.
15388
exclude_expsyms=$lt_exclude_expsyms_F77
15390
# Symbols that must always be exported.
15391
include_expsyms=$lt_include_expsyms_F77
15393
# ### END LIBTOOL TAG CONFIG: $tagname
15399
# If there is no Makefile yet, we rely on a make rule to execute
15400
# `config.status --recheck' to rerun these tests and create the
15401
# libtool script then.
15402
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15403
if test -f "$ltmain_in"; then
15404
test -f Makefile && make "$ltmain"
15410
ac_cpp='$CPP $CPPFLAGS'
15411
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15412
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15413
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15423
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15427
# Source file extension for Java test sources.
15430
# Object file extension for compiled Java test sources.
15434
# Code to be used in simple compile tests
15435
lt_simple_compile_test_code="class foo {}\n"
15437
# Code to be used in simple link tests
15438
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15440
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15442
# If no C compiler was specified, use CC.
15445
# If no C compiler flags were specified, use CFLAGS.
15446
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15448
# Allow CC to be a program name with arguments.
15452
# save warnings/boilerplate of simple test code
15453
ac_outfile=conftest.$ac_objext
15454
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15455
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15456
_lt_compiler_boilerplate=`cat conftest.err`
15459
ac_outfile=conftest.$ac_objext
15460
printf "$lt_simple_link_test_code" >conftest.$ac_ext
15461
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15462
_lt_linker_boilerplate=`cat conftest.err`
15466
# Allow CC to be a program name with arguments.
15471
for cc_temp in $compiler""; do
15473
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15474
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15479
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15482
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15483
archive_cmds_need_lc_GCJ=no
15485
old_archive_cmds_GCJ=$old_archive_cmds
15488
lt_prog_compiler_no_builtin_flag_GCJ=
15490
if test "$GCC" = yes; then
15491
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15494
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15495
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15496
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15497
echo $ECHO_N "(cached) $ECHO_C" >&6
15499
lt_cv_prog_compiler_rtti_exceptions=no
15500
ac_outfile=conftest.$ac_objext
15501
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15502
lt_compiler_flag="-fno-rtti -fno-exceptions"
15503
# Insert the option either (1) after the last *FLAGS variable, or
15504
# (2) before a word containing "conftest.", or (3) at the end.
15505
# Note that $ac_compile itself does not contain backslashes and begins
15506
# with a dollar sign (not a hyphen), so the echo should work correctly.
15507
# The option is referenced via a variable to avoid confusing sed.
15508
lt_compile=`echo "$ac_compile" | $SED \
15509
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15510
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15511
-e 's:$: $lt_compiler_flag:'`
15512
(eval echo "\"\$as_me:15512: $lt_compile\"" >&5)
15513
(eval "$lt_compile" 2>conftest.err)
15515
cat conftest.err >&5
15516
echo "$as_me:15516: \$? = $ac_status" >&5
15517
if (exit $ac_status) && test -s "$ac_outfile"; then
15518
# The compiler can only warn and ignore the option if not recognized
15519
# So say no if there are warnings other than the usual output.
15520
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15521
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15522
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15523
lt_cv_prog_compiler_rtti_exceptions=yes
15529
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15530
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15532
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15533
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15540
lt_prog_compiler_wl_GCJ=
15541
lt_prog_compiler_pic_GCJ=
15542
lt_prog_compiler_static_GCJ=
15544
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15545
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15547
if test "$GCC" = yes; then
15548
lt_prog_compiler_wl_GCJ='-Wl,'
15549
lt_prog_compiler_static_GCJ='-static'
15553
# All AIX code is PIC.
15554
if test "$host_cpu" = ia64; then
15555
# AIX 5 now supports IA64 processor
15556
lt_prog_compiler_static_GCJ='-Bstatic'
15561
# FIXME: we need at least 68020 code to build shared libraries, but
15562
# adding the `-m68020' flag to GCC prevents building anything better,
15564
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15567
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15568
# PIC is the default for these OSes.
15571
mingw* | pw32* | os2*)
15572
# This hack is so that the source file can tell whether it is being
15573
# built for inclusion in a dll (and should export symbols for example).
15574
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15577
darwin* | rhapsody*)
15578
# PIC is the default on this platform
15579
# Common symbols not allowed in MH_DYLIB files
15580
lt_prog_compiler_pic_GCJ='-fno-common'
15584
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
15585
# Instead, we relocate shared libraries at runtime.
15589
# Just because we use GCC doesn't mean we suddenly get shared libraries
15590
# on systems that don't support them.
15591
lt_prog_compiler_can_build_shared_GCJ=no
15596
if test -d /usr/nec; then
15597
lt_prog_compiler_pic_GCJ=-Kconform_pic
15602
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15603
# not for PA HP-UX.
15609
lt_prog_compiler_pic_GCJ='-fPIC'
15615
lt_prog_compiler_pic_GCJ='-fPIC'
15619
# PORTME Check for flag to pass linker flags through the system compiler.
15622
lt_prog_compiler_wl_GCJ='-Wl,'
15623
if test "$host_cpu" = ia64; then
15624
# AIX 5 now supports IA64 processor
15625
lt_prog_compiler_static_GCJ='-Bstatic'
15627
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15631
# PIC is the default on this platform
15632
# Common symbols not allowed in MH_DYLIB files
15633
case $cc_basename in
15635
lt_prog_compiler_pic_GCJ='-qnocommon'
15636
lt_prog_compiler_wl_GCJ='-Wl,'
15641
mingw* | pw32* | os2*)
15642
# This hack is so that the source file can tell whether it is being
15643
# built for inclusion in a dll (and should export symbols for example).
15644
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15647
hpux9* | hpux10* | hpux11*)
15648
lt_prog_compiler_wl_GCJ='-Wl,'
15649
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15650
# not for PA HP-UX.
15656
lt_prog_compiler_pic_GCJ='+Z'
15659
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15660
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15663
irix5* | irix6* | nonstopux*)
15664
lt_prog_compiler_wl_GCJ='-Wl,'
15665
# PIC (with -KPIC) is the default.
15666
lt_prog_compiler_static_GCJ='-non_shared'
15670
lt_prog_compiler_pic_GCJ='-KPIC'
15671
lt_prog_compiler_static_GCJ='-Bstatic'
15675
case $cc_basename in
15677
lt_prog_compiler_wl_GCJ='-Wl,'
15678
lt_prog_compiler_pic_GCJ='-KPIC'
15679
lt_prog_compiler_static_GCJ='-static'
15681
pgcc* | pgf77* | pgf90* | pgf95*)
15682
# Portland Group compilers (*not* the Pentium gcc compiler,
15683
# which looks to be a dead project)
15684
lt_prog_compiler_wl_GCJ='-Wl,'
15685
lt_prog_compiler_pic_GCJ='-fpic'
15686
lt_prog_compiler_static_GCJ='-Bstatic'
15689
lt_prog_compiler_wl_GCJ='-Wl,'
15690
# All Alpha code is PIC.
15691
lt_prog_compiler_static_GCJ='-non_shared'
15696
osf3* | osf4* | osf5*)
15697
lt_prog_compiler_wl_GCJ='-Wl,'
15698
# All OSF/1 code is PIC.
15699
lt_prog_compiler_static_GCJ='-non_shared'
15703
lt_prog_compiler_pic_GCJ='-KPIC'
15704
lt_prog_compiler_static_GCJ='-Bstatic'
15705
case $cc_basename in
15706
f77* | f90* | f95*)
15707
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15709
lt_prog_compiler_wl_GCJ='-Wl,';;
15714
lt_prog_compiler_wl_GCJ='-Qoption ld '
15715
lt_prog_compiler_pic_GCJ='-PIC'
15716
lt_prog_compiler_static_GCJ='-Bstatic'
15719
sysv4 | sysv4.2uw2* | sysv4.3*)
15720
lt_prog_compiler_wl_GCJ='-Wl,'
15721
lt_prog_compiler_pic_GCJ='-KPIC'
15722
lt_prog_compiler_static_GCJ='-Bstatic'
15726
if test -d /usr/nec ;then
15727
lt_prog_compiler_pic_GCJ='-Kconform_pic'
15728
lt_prog_compiler_static_GCJ='-Bstatic'
15732
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15733
lt_prog_compiler_wl_GCJ='-Wl,'
15734
lt_prog_compiler_pic_GCJ='-KPIC'
15735
lt_prog_compiler_static_GCJ='-Bstatic'
15739
lt_prog_compiler_wl_GCJ='-Wl,'
15740
lt_prog_compiler_can_build_shared_GCJ=no
15744
lt_prog_compiler_pic_GCJ='-pic'
15745
lt_prog_compiler_static_GCJ='-Bstatic'
15749
lt_prog_compiler_can_build_shared_GCJ=no
15754
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15755
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15758
# Check to make sure the PIC flag actually works.
15760
if test -n "$lt_prog_compiler_pic_GCJ"; then
15762
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15763
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15764
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15765
echo $ECHO_N "(cached) $ECHO_C" >&6
15767
lt_prog_compiler_pic_works_GCJ=no
15768
ac_outfile=conftest.$ac_objext
15769
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15770
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15771
# Insert the option either (1) after the last *FLAGS variable, or
15772
# (2) before a word containing "conftest.", or (3) at the end.
15773
# Note that $ac_compile itself does not contain backslashes and begins
15774
# with a dollar sign (not a hyphen), so the echo should work correctly.
15775
# The option is referenced via a variable to avoid confusing sed.
15776
lt_compile=`echo "$ac_compile" | $SED \
15777
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15778
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15779
-e 's:$: $lt_compiler_flag:'`
15780
(eval echo "\"\$as_me:15780: $lt_compile\"" >&5)
15781
(eval "$lt_compile" 2>conftest.err)
15783
cat conftest.err >&5
15784
echo "$as_me:15784: \$? = $ac_status" >&5
15785
if (exit $ac_status) && test -s "$ac_outfile"; then
15786
# The compiler can only warn and ignore the option if not recognized
15787
# So say no if there are warnings other than the usual output.
15788
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15789
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15790
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15791
lt_prog_compiler_pic_works_GCJ=yes
15797
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15798
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15800
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15801
case $lt_prog_compiler_pic_GCJ in
15803
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15806
lt_prog_compiler_pic_GCJ=
15807
lt_prog_compiler_can_build_shared_GCJ=no
15812
# For platforms which do not support PIC, -DPIC is meaningless:
15814
lt_prog_compiler_pic_GCJ=
15817
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15822
# Check to make sure the static flag actually works.
15824
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15825
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15826
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15827
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15828
echo $ECHO_N "(cached) $ECHO_C" >&6
15830
lt_prog_compiler_static_works_GCJ=no
15831
save_LDFLAGS="$LDFLAGS"
15832
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15833
printf "$lt_simple_link_test_code" > conftest.$ac_ext
15834
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15835
# The linker can only warn and ignore the option if not recognized
15836
# So say no if there are warnings
15837
if test -s conftest.err; then
15838
# Append any errors to the config.log.
15839
cat conftest.err 1>&5
15840
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15841
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15842
if diff conftest.exp conftest.er2 >/dev/null; then
15843
lt_prog_compiler_static_works_GCJ=yes
15846
lt_prog_compiler_static_works_GCJ=yes
15850
LDFLAGS="$save_LDFLAGS"
15853
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15854
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15856
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15859
lt_prog_compiler_static_GCJ=
15863
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15864
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15865
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15866
echo $ECHO_N "(cached) $ECHO_C" >&6
15868
lt_cv_prog_compiler_c_o_GCJ=no
15869
$rm -r conftest 2>/dev/null
15873
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15875
lt_compiler_flag="-o out/conftest2.$ac_objext"
15876
# Insert the option either (1) after the last *FLAGS variable, or
15877
# (2) before a word containing "conftest.", or (3) at the end.
15878
# Note that $ac_compile itself does not contain backslashes and begins
15879
# with a dollar sign (not a hyphen), so the echo should work correctly.
15880
lt_compile=`echo "$ac_compile" | $SED \
15881
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15882
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15883
-e 's:$: $lt_compiler_flag:'`
15884
(eval echo "\"\$as_me:15884: $lt_compile\"" >&5)
15885
(eval "$lt_compile" 2>out/conftest.err)
15887
cat out/conftest.err >&5
15888
echo "$as_me:15888: \$? = $ac_status" >&5
15889
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15891
# The compiler can only warn and ignore the option if not recognized
15892
# So say no if there are warnings
15893
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15894
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15895
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15896
lt_cv_prog_compiler_c_o_GCJ=yes
15901
# SGI C++ compiler will create directory out/ii_files/ for
15902
# template instantiation
15903
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15904
$rm out/* && rmdir out
15910
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15911
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15914
hard_links="nottested"
15915
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15916
# do not overwrite the value of need_locks provided by the user
15917
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15918
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15921
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15923
ln conftest.a conftest.b 2>&5 || hard_links=no
15924
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15925
echo "$as_me:$LINENO: result: $hard_links" >&5
15926
echo "${ECHO_T}$hard_links" >&6
15927
if test "$hard_links" = no; then
15928
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15929
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15936
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15937
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15940
allow_undefined_flag_GCJ=
15941
enable_shared_with_static_runtimes_GCJ=no
15943
archive_expsym_cmds_GCJ=
15944
old_archive_From_new_cmds_GCJ=
15945
old_archive_from_expsyms_cmds_GCJ=
15946
export_dynamic_flag_spec_GCJ=
15947
whole_archive_flag_spec_GCJ=
15948
thread_safe_flag_spec_GCJ=
15949
hardcode_libdir_flag_spec_GCJ=
15950
hardcode_libdir_flag_spec_ld_GCJ=
15951
hardcode_libdir_separator_GCJ=
15952
hardcode_direct_GCJ=no
15953
hardcode_minus_L_GCJ=no
15954
hardcode_shlibpath_var_GCJ=unsupported
15955
link_all_deplibs_GCJ=unknown
15956
hardcode_automatic_GCJ=no
15958
module_expsym_cmds_GCJ=
15959
always_export_symbols_GCJ=no
15960
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15961
# include_expsyms should be a list of space-separated symbols to be *always*
15962
# included in the symbol list
15963
include_expsyms_GCJ=
15964
# exclude_expsyms can be an extended regexp of symbols to exclude
15965
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15966
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15967
# as well as any symbol that contains `d'.
15968
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15969
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15970
# platforms (ab)use it in PIC code, but their linkers get confused if
15971
# the symbol is explicitly referenced. Since portable code cannot
15972
# rely on this symbol name, it's probably fine to never include it in
15973
# preloaded symbol tables.
15974
extract_expsyms_cmds=
15975
# Just being paranoid about ensuring that cc_basename is set.
15976
for cc_temp in $compiler""; do
15978
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15979
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15984
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15987
cygwin* | mingw* | pw32*)
15988
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15989
# When not using gcc, we currently assume that we are using
15990
# Microsoft Visual C++.
15991
if test "$GCC" != yes; then
15996
# we just hope/assume this is gcc and not c89 (= MSVC++)
16005
if test "$with_gnu_ld" = yes; then
16006
# If archive_cmds runs LD, not CC, wlarc should be empty
16009
# Set some defaults for GNU ld with shared library support. These
16010
# are reset later if shared libraries are not supported. Putting them
16011
# here allows them to be overridden if necessary.
16012
runpath_var=LD_RUN_PATH
16013
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16014
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16015
# ancient GNU ld didn't support --whole-archive et. al.
16016
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16017
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16019
whole_archive_flag_spec_GCJ=
16021
supports_anon_versioning=no
16022
case `$LD -v 2>/dev/null` in
16023
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16024
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16025
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16026
*\ 2.11.*) ;; # other 2.11 versions
16027
*) supports_anon_versioning=yes ;;
16030
# See if GNU ld supports shared libraries.
16032
aix3* | aix4* | aix5*)
16033
# On AIX/PPC, the GNU linker is very broken
16034
if test "$host_cpu" != ia64; then
16038
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16039
*** to be unable to reliably create shared libraries on AIX.
16040
*** Therefore, libtool is disabling shared libraries support. If you
16041
*** really care for shared libraries, you may want to modify your PATH
16042
*** so that a non-GNU linker is found, and then restart.
16049
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)'
16050
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16051
hardcode_minus_L_GCJ=yes
16053
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16054
# that the semantics of dynamic libraries on AmigaOS, at least up
16055
# to version 4, is to share data among multiple programs linked
16056
# with the same dynamic library. Since this doesn't match the
16057
# behavior of shared libraries on other platforms, we can't use
16063
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16064
allow_undefined_flag_GCJ=unsupported
16065
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16066
# support --undefined. This deserves some investigation. FIXME
16067
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16073
cygwin* | mingw* | pw32*)
16074
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16075
# as there is no search path for DLLs.
16076
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16077
allow_undefined_flag_GCJ=unsupported
16078
always_export_symbols_GCJ=no
16079
enable_shared_with_static_runtimes_GCJ=yes
16080
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16082
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16083
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16084
# If the export-symbols file already is a .def file (1st line
16085
# is EXPORTS), use it as is; otherwise, prepend...
16086
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16087
cp $export_symbols $output_objdir/$soname.def;
16089
echo EXPORTS > $output_objdir/$soname.def;
16090
cat $export_symbols >> $output_objdir/$soname.def;
16092
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16099
hardcode_direct_GCJ=no
16100
hardcode_shlibpath_var_GCJ=no
16101
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16102
export_dynamic_flag_spec_GCJ='${wl}-E'
16103
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16104
# Instead, shared libraries are loaded at an image base (0x10000000 by
16105
# default) and relocated if they conflict, which is a slow very memory
16106
# consuming and fragmenting process. To avoid this, we pick a random,
16107
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16108
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
16109
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'
16110
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'
16114
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16116
case $cc_basename,$host_cpu in
16117
pgcc*) # Portland Group C compiler
16118
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'
16119
tmp_addflag=' $pic_flag'
16121
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16122
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'
16123
tmp_addflag=' $pic_flag -Mnomain' ;;
16124
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16125
tmp_addflag=' -i_dynamic' ;;
16126
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16127
tmp_addflag=' -i_dynamic -nofor_main' ;;
16128
ifc* | ifort*) # Intel Fortran compiler
16129
tmp_addflag=' -nofor_main' ;;
16131
archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16133
if test $supports_anon_versioning = yes; then
16134
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16135
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16136
$echo "local: *; };" >> $output_objdir/$libname.ver~
16137
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16139
link_all_deplibs_GCJ=no
16145
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16146
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16147
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16150
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16151
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16156
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16160
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16161
*** create shared libraries on Solaris systems. Therefore, libtool
16162
*** is disabling shared libraries support. We urge you to upgrade GNU
16163
*** binutils to release 2.9.1 or newer. Another option is to modify
16164
*** your PATH or compiler configuration so that the native linker is
16165
*** used, and then restart.
16168
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16169
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16170
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16176
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16177
case `$LD -v 2>&1` in
16178
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16182
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16183
*** reliably create shared libraries on SCO systems. Therefore, libtool
16184
*** is disabling shared libraries support. We urge you to upgrade GNU
16185
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16186
*** your PATH or compiler configuration so that the native linker is
16187
*** used, and then restart.
16192
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16193
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16194
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16195
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16204
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16206
hardcode_direct_GCJ=yes
16207
hardcode_shlibpath_var_GCJ=no
16211
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16212
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16213
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16220
if test "$ld_shlibs_GCJ" = no; then
16222
hardcode_libdir_flag_spec_GCJ=
16223
export_dynamic_flag_spec_GCJ=
16224
whole_archive_flag_spec_GCJ=
16227
# PORTME fill in a description of your system's linker (not GNU ld)
16230
allow_undefined_flag_GCJ=unsupported
16231
always_export_symbols_GCJ=yes
16232
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'
16233
# Note: this linker hardcodes the directories in LIBPATH if there
16234
# are no directories specified by -L.
16235
hardcode_minus_L_GCJ=yes
16236
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16237
# Neither direct hardcoding nor static linking is supported with a
16239
hardcode_direct_GCJ=unsupported
16244
if test "$host_cpu" = ia64; then
16245
# On IA64, the linker does run time linking by default, so we don't
16246
# have to do anything special.
16247
aix_use_runtimelinking=no
16248
exp_sym_flag='-Bexport'
16251
# If we're using GNU nm, then we don't want the "-C" option.
16252
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16253
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16254
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'
16256
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'
16258
aix_use_runtimelinking=no
16260
# Test if we are trying to use run time linking or normal
16261
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16262
# need to do runtime linking.
16263
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16264
for ld_flag in $LDFLAGS; do
16265
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16266
aix_use_runtimelinking=yes
16273
exp_sym_flag='-bexport'
16274
no_entry_flag='-bnoentry'
16277
# When large executables or shared objects are built, AIX ld can
16278
# have problems creating the table of contents. If linking a library
16279
# or program results in "error TOC overflow" add -mminimal-toc to
16280
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16281
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16283
archive_cmds_GCJ=''
16284
hardcode_direct_GCJ=yes
16285
hardcode_libdir_separator_GCJ=':'
16286
link_all_deplibs_GCJ=yes
16288
if test "$GCC" = yes; then
16289
case $host_os in aix4.[012]|aix4.[012].*)
16290
# We only want to do this on AIX 4.2 and lower, the check
16291
# below for broken collect2 doesn't work under 4.3+
16292
collect2name=`${CC} -print-prog-name=collect2`
16293
if test -f "$collect2name" && \
16294
strings "$collect2name" | grep resolve_lib_name >/dev/null
16296
# We have reworked collect2
16297
hardcode_direct_GCJ=yes
16299
# We have old collect2
16300
hardcode_direct_GCJ=unsupported
16301
# It fails to find uninstalled libraries when the uninstalled
16302
# path is not listed in the libpath. Setting hardcode_minus_L
16303
# to unsupported forces relinking
16304
hardcode_minus_L_GCJ=yes
16305
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16306
hardcode_libdir_separator_GCJ=
16310
shared_flag='-shared'
16311
if test "$aix_use_runtimelinking" = yes; then
16312
shared_flag="$shared_flag "'${wl}-G'
16316
if test "$host_cpu" = ia64; then
16317
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16318
# chokes on -Wl,-G. The following line is correct:
16321
if test "$aix_use_runtimelinking" = yes; then
16322
shared_flag='${wl}-G'
16324
shared_flag='${wl}-bM:SRE'
16329
# It seems that -bexpall does not export symbols beginning with
16330
# underscore (_), so it is better to generate a list of symbols to export.
16331
always_export_symbols_GCJ=yes
16332
if test "$aix_use_runtimelinking" = yes; then
16333
# Warning - without using the other runtime loading flags (-brtl),
16334
# -berok will link without error, but may produce a broken library.
16335
allow_undefined_flag_GCJ='-berok'
16336
# Determine the default libpath from the value encoded in an empty executable.
16337
cat >conftest.$ac_ext <<_ACEOF
16340
cat confdefs.h >>conftest.$ac_ext
16341
cat >>conftest.$ac_ext <<_ACEOF
16342
/* end confdefs.h. */
16352
rm -f conftest.$ac_objext conftest$ac_exeext
16353
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16354
(eval $ac_link) 2>conftest.er1
16356
grep -v '^ *+' conftest.er1 >conftest.err
16358
cat conftest.err >&5
16359
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360
(exit $ac_status); } &&
16361
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16362
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363
(eval $ac_try) 2>&5
16365
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366
(exit $ac_status); }; } &&
16367
{ ac_try='test -s conftest$ac_exeext'
16368
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16369
(eval $ac_try) 2>&5
16371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372
(exit $ac_status); }; }; then
16374
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16376
# Check for a 64-bit object if we didn't find anything.
16377
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16380
echo "$as_me: failed program was:" >&5
16381
sed 's/^/| /' conftest.$ac_ext >&5
16384
rm -f conftest.err conftest.$ac_objext \
16385
conftest$ac_exeext conftest.$ac_ext
16386
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16388
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16389
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"
16391
if test "$host_cpu" = ia64; then
16392
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16393
allow_undefined_flag_GCJ="-z nodefs"
16394
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"
16396
# Determine the default libpath from the value encoded in an empty executable.
16397
cat >conftest.$ac_ext <<_ACEOF
16400
cat confdefs.h >>conftest.$ac_ext
16401
cat >>conftest.$ac_ext <<_ACEOF
16402
/* end confdefs.h. */
16412
rm -f conftest.$ac_objext conftest$ac_exeext
16413
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16414
(eval $ac_link) 2>conftest.er1
16416
grep -v '^ *+' conftest.er1 >conftest.err
16418
cat conftest.err >&5
16419
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420
(exit $ac_status); } &&
16421
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16422
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423
(eval $ac_try) 2>&5
16425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426
(exit $ac_status); }; } &&
16427
{ ac_try='test -s conftest$ac_exeext'
16428
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16429
(eval $ac_try) 2>&5
16431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432
(exit $ac_status); }; }; then
16434
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16436
# Check for a 64-bit object if we didn't find anything.
16437
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16440
echo "$as_me: failed program was:" >&5
16441
sed 's/^/| /' conftest.$ac_ext >&5
16444
rm -f conftest.err conftest.$ac_objext \
16445
conftest$ac_exeext conftest.$ac_ext
16446
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16448
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16449
# Warning - without using the other run time loading flags,
16450
# -berok will link without error, but may produce a broken library.
16451
no_undefined_flag_GCJ=' ${wl}-bernotok'
16452
allow_undefined_flag_GCJ=' ${wl}-berok'
16453
# Exported symbols can be pulled into shared objects from archives
16454
whole_archive_flag_spec_GCJ='$convenience'
16455
archive_cmds_need_lc_GCJ=yes
16456
# This is similar to how AIX traditionally builds its shared libraries.
16457
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'
16463
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)'
16464
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16465
hardcode_minus_L_GCJ=yes
16466
# see comment about different semantics on the GNU ld section
16471
export_dynamic_flag_spec_GCJ=-rdynamic
16474
cygwin* | mingw* | pw32*)
16475
# When not using gcc, we currently assume that we are using
16476
# Microsoft Visual C++.
16477
# hardcode_libdir_flag_spec is actually meaningless, as there is
16478
# no search path for DLLs.
16479
hardcode_libdir_flag_spec_GCJ=' '
16480
allow_undefined_flag_GCJ=unsupported
16481
# Tell ltmain to make .lib files, not .a files.
16483
# Tell ltmain to make .dll files, not .so files.
16485
# FIXME: Setting linknames here is a bad hack.
16486
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16487
# The linker will automatically build a .lib file if we build a DLL.
16488
old_archive_From_new_cmds_GCJ='true'
16489
# FIXME: Should let the user specify the lib program.
16490
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16491
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16492
enable_shared_with_static_runtimes_GCJ=yes
16495
darwin* | rhapsody*)
16497
rhapsody* | darwin1.[012])
16498
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16501
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16502
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16504
case ${MACOSX_DEPLOYMENT_TARGET} in
16506
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16509
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16515
archive_cmds_need_lc_GCJ=no
16516
hardcode_direct_GCJ=no
16517
hardcode_automatic_GCJ=yes
16518
hardcode_shlibpath_var_GCJ=unsupported
16519
whole_archive_flag_spec_GCJ=''
16520
link_all_deplibs_GCJ=yes
16521
if test "$GCC" = yes ; then
16522
output_verbose_link_cmd='echo'
16523
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16524
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16525
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16526
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16527
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}'
16529
case $cc_basename in
16531
output_verbose_link_cmd='echo'
16532
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16533
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16534
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16535
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16536
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}'
16546
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16547
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16548
hardcode_shlibpath_var_GCJ=no
16555
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16556
# support. Future versions do this automatically, but an explicit c++rt0.o
16557
# does not break anything, and helps significantly (at the cost of a little
16560
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16561
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16562
hardcode_direct_GCJ=yes
16563
hardcode_shlibpath_var_GCJ=no
16566
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16568
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16569
hardcode_direct_GCJ=yes
16570
hardcode_minus_L_GCJ=yes
16571
hardcode_shlibpath_var_GCJ=no
16574
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16575
freebsd* | dragonfly*)
16576
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16577
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16578
hardcode_direct_GCJ=yes
16579
hardcode_shlibpath_var_GCJ=no
16582
# GNU/kFreeBSD uses gcc -shared to do shared libraries.
16584
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16585
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16586
hardcode_direct_GCJ=yes
16587
hardcode_shlibpath_var_GCJ=no
16588
link_all_deplibs_GCJ=no
16592
if test "$GCC" = yes; then
16593
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'
16595
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'
16597
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16598
hardcode_libdir_separator_GCJ=:
16599
hardcode_direct_GCJ=yes
16601
# hardcode_minus_L: Not really in the search PATH,
16602
# but as the default location of the library.
16603
hardcode_minus_L_GCJ=yes
16604
export_dynamic_flag_spec_GCJ='${wl}-E'
16608
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16609
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16611
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16613
if test "$with_gnu_ld" = no; then
16614
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16615
hardcode_libdir_separator_GCJ=:
16617
hardcode_direct_GCJ=yes
16618
export_dynamic_flag_spec_GCJ='${wl}-E'
16620
# hardcode_minus_L: Not really in the search PATH,
16621
# but as the default location of the library.
16622
hardcode_minus_L_GCJ=yes
16627
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16630
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16633
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16636
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16642
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16645
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16648
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16652
if test "$with_gnu_ld" = no; then
16653
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16654
hardcode_libdir_separator_GCJ=:
16658
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16659
hardcode_direct_GCJ=no
16660
hardcode_shlibpath_var_GCJ=no
16663
hardcode_direct_GCJ=yes
16664
export_dynamic_flag_spec_GCJ='${wl}-E'
16666
# hardcode_minus_L: Not really in the search PATH,
16667
# but as the default location of the library.
16668
hardcode_minus_L_GCJ=yes
16674
irix5* | irix6* | nonstopux*)
16675
if test "$GCC" = yes; then
16676
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'
16678
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'
16679
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16681
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16682
hardcode_libdir_separator_GCJ=:
16683
link_all_deplibs_GCJ=yes
16686
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16687
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16688
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16690
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16692
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16693
hardcode_direct_GCJ=yes
16694
hardcode_shlibpath_var_GCJ=no
16698
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16699
hardcode_direct_GCJ=yes
16700
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16701
hardcode_libdir_separator_GCJ=:
16702
hardcode_shlibpath_var_GCJ=no
16706
hardcode_direct_GCJ=yes
16707
hardcode_shlibpath_var_GCJ=no
16708
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16709
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16710
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16711
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16712
export_dynamic_flag_spec_GCJ='${wl}-E'
16715
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16716
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16717
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16720
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16721
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16728
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16729
hardcode_minus_L_GCJ=yes
16730
allow_undefined_flag_GCJ=unsupported
16731
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'
16732
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16736
if test "$GCC" = yes; then
16737
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16738
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'
16740
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16741
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'
16743
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16744
hardcode_libdir_separator_GCJ=:
16747
osf4* | osf5*) # as osf3* with the addition of -msym flag
16748
if test "$GCC" = yes; then
16749
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16750
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'
16751
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16753
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16754
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'
16755
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~
16756
$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'
16758
# Both c and cxx compiler support -rpath directly
16759
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16761
hardcode_libdir_separator_GCJ=:
16765
no_undefined_flag_GCJ=' -z text'
16766
if test "$GCC" = yes; then
16768
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16769
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16770
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16773
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16774
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16775
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16777
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16778
hardcode_shlibpath_var_GCJ=no
16780
solaris2.[0-5] | solaris2.[0-5].*) ;;
16782
# The compiler driver will combine linker options so we
16783
# cannot just pass the convience library names through
16784
# without $wl, iff we do not link with $LD.
16785
# Luckily, gcc supports the same syntax we need for Sun Studio.
16786
# Supported since Solaris 2.6 (maybe 2.5.1?)
16789
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16791
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16794
link_all_deplibs_GCJ=yes
16798
if test "x$host_vendor" = xsequent; then
16799
# Use $CC to link under sequent, because it throws in some extra .o
16800
# files that make .init and .fini sections work.
16801
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16803
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16805
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16806
hardcode_direct_GCJ=yes
16807
hardcode_minus_L_GCJ=yes
16808
hardcode_shlibpath_var_GCJ=no
16812
case $host_vendor in
16814
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16815
hardcode_direct_GCJ=yes # is this really true???
16818
## LD is ld it makes a PLAMLIB
16819
## CC just makes a GrossModule.
16820
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16821
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16822
hardcode_direct_GCJ=no
16825
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16826
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16829
runpath_var='LD_RUN_PATH'
16830
hardcode_shlibpath_var_GCJ=no
16834
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16835
hardcode_shlibpath_var_GCJ=no
16836
export_dynamic_flag_spec_GCJ='-Bexport'
16840
if test -d /usr/nec; then
16841
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16842
hardcode_shlibpath_var_GCJ=no
16843
runpath_var=LD_RUN_PATH
16844
hardcode_runpath_var=yes
16849
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16850
no_undefined_flag_GCJ='${wl}-z,text'
16851
archive_cmds_need_lc_GCJ=no
16852
hardcode_shlibpath_var_GCJ=no
16853
runpath_var='LD_RUN_PATH'
16855
if test "$GCC" = yes; then
16856
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16857
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16859
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16860
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16864
sysv5* | sco3.2v5* | sco5v6*)
16865
# Note: We can NOT use -z defs as we might desire, because we do not
16866
# link with -lc, and that would cause any symbols used from libc to
16867
# always be unresolved, which means just about no library would
16868
# ever link correctly. If we're not using GNU ld we use -z text
16869
# though, which does catch some bad symbols but isn't as heavy-handed
16871
no_undefined_flag_GCJ='${wl}-z,text'
16872
allow_undefined_flag_GCJ='${wl}-z,nodefs'
16873
archive_cmds_need_lc_GCJ=no
16874
hardcode_shlibpath_var_GCJ=no
16875
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16876
hardcode_libdir_separator_GCJ=':'
16877
link_all_deplibs_GCJ=yes
16878
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16879
runpath_var='LD_RUN_PATH'
16881
if test "$GCC" = yes; then
16882
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16883
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16885
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16886
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16891
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16892
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16893
hardcode_shlibpath_var_GCJ=no
16902
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16903
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16904
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16907
# Do we need to explicitly link libc?
16909
case "x$archive_cmds_need_lc_GCJ" in
16911
# Assume -lc should be added
16912
archive_cmds_need_lc_GCJ=yes
16914
if test "$enable_shared" = yes && test "$GCC" = yes; then
16915
case $archive_cmds_GCJ in
16917
# FIXME: we may have to deal with multi-command sequences.
16920
# Test whether the compiler implicitly links with -lc since on some
16921
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16922
# to ld, don't add -lc before -lgcc.
16923
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16924
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16926
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16928
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16929
(eval $ac_compile) 2>&5
16931
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932
(exit $ac_status); } 2>conftest.err; then
16935
libobjs=conftest.$ac_objext
16937
wl=$lt_prog_compiler_wl_GCJ
16938
pic_flag=$lt_prog_compiler_pic_GCJ
16944
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16945
allow_undefined_flag_GCJ=
16946
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16947
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950
(exit $ac_status); }
16952
archive_cmds_need_lc_GCJ=no
16954
archive_cmds_need_lc_GCJ=yes
16956
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16958
cat conftest.err 1>&5
16961
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16962
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16969
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16970
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16971
library_names_spec=
16972
libname_spec='lib$name'
16976
postuninstall_cmds=
16980
shlibpath_overrides_runpath=unknown
16982
dynamic_linker="$host_os ld.so"
16983
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16984
if test "$GCC" = yes; then
16985
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16986
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16987
# if the path contains ";" then we assume it to be the separator
16988
# otherwise default to the standard path separator (i.e. ":") - it is
16989
# assumed that no part of a normal pathname contains ";" but that should
16990
# okay in the real world where ";" in dirpaths is itself problematic.
16991
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16993
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16996
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16998
need_lib_prefix=unknown
16999
hardcode_into_libs=no
17001
# when you set need_version to no, make sure it does not cause -set_version
17002
# flags to be left without arguments
17003
need_version=unknown
17008
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17009
shlibpath_var=LIBPATH
17011
# AIX 3 has no versioning support, so we append a major version to the name.
17012
soname_spec='${libname}${release}${shared_ext}$major'
17019
hardcode_into_libs=yes
17020
if test "$host_cpu" = ia64; then
17021
# AIX 5 supports IA64
17022
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17023
shlibpath_var=LD_LIBRARY_PATH
17025
# With GCC up to 2.95.x, collect2 would create an import file
17026
# for dependence libraries. The import file would start with
17027
# the line `#! .'. This would cause the generated library to
17028
# depend on `.', always an invalid library. This was fixed in
17029
# development snapshots of GCC prior to 3.0.
17031
aix4 | aix4.[01] | aix4.[01].*)
17032
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17034
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17037
can_build_shared=no
17041
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17042
# soname into executable. Probably we can add versioning support to
17043
# collect2, so additional links can be useful in future.
17044
if test "$aix_use_runtimelinking" = yes; then
17045
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
17046
# instead of lib<name>.a to let people know that these are not
17047
# typical AIX shared libraries.
17048
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17050
# We preserve .a as extension for shared libraries through AIX4.2
17051
# and later when we are not doing run time linking.
17052
library_names_spec='${libname}${release}.a $libname.a'
17053
soname_spec='${libname}${release}${shared_ext}$major'
17055
shlibpath_var=LIBPATH
17060
library_names_spec='$libname.ixlibrary $libname.a'
17061
# Create ${libname}_ixlibrary.a entries in /sys/libs.
17062
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'
17066
library_names_spec='${libname}${shared_ext}'
17067
dynamic_linker="$host_os ld.so"
17068
shlibpath_var=LIBRARY_PATH
17074
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17075
soname_spec='${libname}${release}${shared_ext}$major'
17076
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17077
shlibpath_var=LD_LIBRARY_PATH
17078
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17079
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17080
# the default ld.so.conf also contains /usr/contrib/lib and
17081
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17082
# libtool to hard-code these into programs
17085
cygwin* | mingw* | pw32*)
17086
version_type=windows
17091
case $GCC,$host_os in
17092
yes,cygwin* | yes,mingw* | yes,pw32*)
17093
library_names_spec='$libname.dll.a'
17094
# DLL is installed to $(libdir)/../bin by postinstall_cmds
17095
postinstall_cmds='base_file=`basename \${file}`~
17096
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17097
dldir=$destdir/`dirname \$dlpath`~
17098
test -d \$dldir || mkdir -p \$dldir~
17099
$install_prog $dir/$dlname \$dldir/$dlname~
17100
chmod a+x \$dldir/$dlname'
17101
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17102
dlpath=$dir/\$dldll~
17104
shlibpath_overrides_runpath=yes
17108
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
17109
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17110
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17113
# MinGW DLLs use traditional 'lib' prefix
17114
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17115
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17116
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17117
# It is most probably a Windows format PATH printed by
17118
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17119
# path with ; separators, and with drive letters. We can handle the
17120
# drive letters (cygwin fileutils understands them), so leave them,
17121
# especially as we might pass files found there to a mingw objdump,
17122
# which wouldn't understand a cygwinified path. Ahh.
17123
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17125
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17129
# pw32 DLLs use 'pw' prefix rather than 'lib'
17130
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17136
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17139
dynamic_linker='Win32 ld.exe'
17140
# FIXME: first we should search . and the directory the executable is in
17144
darwin* | rhapsody*)
17145
dynamic_linker="$host_os dyld"
17146
version_type=darwin
17149
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17150
soname_spec='${libname}${release}${major}$shared_ext'
17151
shlibpath_overrides_runpath=yes
17152
shlibpath_var=DYLD_LIBRARY_PATH
17153
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17154
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17155
if test "$GCC" = yes; then
17156
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17158
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17160
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17167
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17168
soname_spec='${libname}${release}${shared_ext}$major'
17169
shlibpath_var=LD_LIBRARY_PATH
17180
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17181
soname_spec='${libname}${release}${shared_ext}$major'
17182
shlibpath_var=LD_LIBRARY_PATH
17183
shlibpath_overrides_runpath=no
17184
hardcode_into_libs=yes
17185
dynamic_linker='GNU ld.so'
17188
freebsd* | dragonfly*)
17189
# DragonFly does not have aout. When/if they implement a new
17190
# versioning mechanism, adjust this.
17191
if test -x /usr/bin/objformat; then
17192
objformat=`/usr/bin/objformat`
17195
freebsd[123]*) objformat=aout ;;
17196
*) objformat=elf ;;
17199
version_type=freebsd-$objformat
17200
case $version_type in
17202
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17207
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17211
shlibpath_var=LD_LIBRARY_PATH
17214
shlibpath_overrides_runpath=yes
17216
freebsd3.[01]* | freebsdelf3.[01]*)
17217
shlibpath_overrides_runpath=yes
17218
hardcode_into_libs=yes
17220
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17221
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17222
shlibpath_overrides_runpath=no
17223
hardcode_into_libs=yes
17225
freebsd*) # from 4.6 on
17226
shlibpath_overrides_runpath=yes
17227
hardcode_into_libs=yes
17236
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17237
soname_spec='${libname}${release}${shared_ext}$major'
17238
shlibpath_var=LD_LIBRARY_PATH
17239
hardcode_into_libs=yes
17242
hpux9* | hpux10* | hpux11*)
17243
# Give a soname corresponding to the major version so that dld.sl refuses to
17244
# link against other versions.
17251
hardcode_into_libs=yes
17252
dynamic_linker="$host_os dld.so"
17253
shlibpath_var=LD_LIBRARY_PATH
17254
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17255
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17256
soname_spec='${libname}${release}${shared_ext}$major'
17257
if test "X$HPUX_IA64_MODE" = X32; then
17258
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17260
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17262
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17266
hardcode_into_libs=yes
17267
dynamic_linker="$host_os dld.sl"
17268
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17269
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17270
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17271
soname_spec='${libname}${release}${shared_ext}$major'
17272
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17273
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17277
dynamic_linker="$host_os dld.sl"
17278
shlibpath_var=SHLIB_PATH
17279
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17280
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17281
soname_spec='${libname}${release}${shared_ext}$major'
17284
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17285
postinstall_cmds='chmod 555 $lib'
17292
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17293
soname_spec='${libname}${release}${shared_ext}$major'
17294
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17295
shlibpath_var=LD_LIBRARY_PATH
17296
shlibpath_overrides_runpath=no
17297
hardcode_into_libs=yes
17300
irix5* | irix6* | nonstopux*)
17302
nonstopux*) version_type=nonstopux ;;
17304
if test "$lt_cv_prog_gnu_ld" = yes; then
17312
soname_spec='${libname}${release}${shared_ext}$major'
17313
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17315
irix5* | nonstopux*)
17316
libsuff= shlibsuff=
17319
case $LD in # libtool.m4 will add one of these switches to LD
17320
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17321
libsuff= shlibsuff= libmagic=32-bit;;
17322
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17323
libsuff=32 shlibsuff=N32 libmagic=N32;;
17324
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17325
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17326
*) libsuff= shlibsuff= libmagic=never-match;;
17330
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17331
shlibpath_overrides_runpath=no
17332
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17333
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17334
hardcode_into_libs=yes
17337
# No shared lib support for Linux oldld, aout, or coff.
17338
linux*oldld* | linux*aout* | linux*coff*)
17342
# This must be Linux ELF.
17347
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17348
soname_spec='${libname}${release}${shared_ext}$major'
17349
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17350
shlibpath_var=LD_LIBRARY_PATH
17351
shlibpath_overrides_runpath=no
17352
# This implies no fast_install, which is unacceptable.
17353
# Some rework will be needed to allow for fast_install
17354
# before this can be enabled.
17355
hardcode_into_libs=yes
17357
# Append ld.so.conf contents to the search path
17358
if test -f /etc/ld.so.conf; then
17359
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17360
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17363
# We used to test for /lib/ld.so.1 and disable shared libraries on
17364
# powerpc, because MkLinux only supported shared libraries with the
17365
# GNU dynamic linker. Since this was broken with cross compilers,
17366
# most powerpc-linux boxes support dynamic linking these days and
17367
# people can always --disable-shared, the test was removed, and we
17368
# assume the GNU/Linux dynamic linker is in use.
17369
dynamic_linker='GNU/Linux ld.so'
17376
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17377
soname_spec='${libname}${release}${shared_ext}$major'
17378
shlibpath_var=LD_LIBRARY_PATH
17379
shlibpath_overrides_runpath=no
17380
hardcode_into_libs=yes
17381
dynamic_linker='NetBSD ld.elf_so'
17388
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17389
soname_spec='${libname}${release}${shared_ext}$major'
17390
shlibpath_var=LD_LIBRARY_PATH
17391
shlibpath_overrides_runpath=no
17392
hardcode_into_libs=yes
17393
dynamic_linker='GNU ld.so'
17400
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17401
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17402
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17403
dynamic_linker='NetBSD (a.out) ld.so'
17405
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17406
soname_spec='${libname}${release}${shared_ext}$major'
17407
dynamic_linker='NetBSD ld.elf_so'
17409
shlibpath_var=LD_LIBRARY_PATH
17410
shlibpath_overrides_runpath=yes
17411
hardcode_into_libs=yes
17416
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17417
shlibpath_var=LD_LIBRARY_PATH
17418
shlibpath_overrides_runpath=yes
17425
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17426
soname_spec='${libname}${release}${shared_ext}$major'
17427
shlibpath_var=LD_LIBRARY_PATH
17428
shlibpath_overrides_runpath=yes
17433
sys_lib_dlsearch_path_spec="/usr/lib"
17435
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17437
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17438
*) need_version=no ;;
17440
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17441
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17442
shlibpath_var=LD_LIBRARY_PATH
17443
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17445
openbsd2.[89] | openbsd2.[89].*)
17446
shlibpath_overrides_runpath=no
17449
shlibpath_overrides_runpath=yes
17453
shlibpath_overrides_runpath=yes
17458
libname_spec='$name'
17461
library_names_spec='$libname${shared_ext} $libname.a'
17462
dynamic_linker='OS/2 ld.exe'
17463
shlibpath_var=LIBPATH
17466
osf3* | osf4* | osf5*)
17470
soname_spec='${libname}${release}${shared_ext}$major'
17471
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17472
shlibpath_var=LD_LIBRARY_PATH
17473
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17474
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17481
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17482
soname_spec='${libname}${release}${shared_ext}$major'
17483
shlibpath_var=LD_LIBRARY_PATH
17484
shlibpath_overrides_runpath=yes
17485
hardcode_into_libs=yes
17486
# ldd complains unless libraries are executable
17487
postinstall_cmds='chmod +x $lib'
17492
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17493
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17494
shlibpath_var=LD_LIBRARY_PATH
17495
shlibpath_overrides_runpath=yes
17496
if test "$with_gnu_ld" = yes; then
17504
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17505
soname_spec='${libname}${release}${shared_ext}$major'
17506
shlibpath_var=LD_LIBRARY_PATH
17507
case $host_vendor in
17509
shlibpath_overrides_runpath=no
17511
export_dynamic_flag_spec='${wl}-Blargedynsym'
17512
runpath_var=LD_RUN_PATH
17520
shlibpath_overrides_runpath=no
17521
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17527
if test -d /usr/nec ;then
17529
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17530
soname_spec='$libname${shared_ext}.$major'
17531
shlibpath_var=LD_LIBRARY_PATH
17535
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17536
version_type=freebsd-elf
17539
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17540
soname_spec='${libname}${release}${shared_ext}$major'
17541
shlibpath_var=LD_LIBRARY_PATH
17542
hardcode_into_libs=yes
17543
if test "$with_gnu_ld" = yes; then
17544
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17545
shlibpath_overrides_runpath=no
17547
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17548
shlibpath_overrides_runpath=yes
17551
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17555
sys_lib_dlsearch_path_spec='/usr/lib'
17560
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17561
soname_spec='${libname}${release}${shared_ext}$major'
17562
shlibpath_var=LD_LIBRARY_PATH
17569
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17570
echo "${ECHO_T}$dynamic_linker" >&6
17571
test "$dynamic_linker" = no && can_build_shared=no
17573
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17574
if test "$GCC" = yes; then
17575
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17578
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17579
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17580
hardcode_action_GCJ=
17581
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17582
test -n "$runpath_var_GCJ" || \
17583
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17585
# We can hardcode non-existant directories.
17586
if test "$hardcode_direct_GCJ" != no &&
17587
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17588
# have to relink, otherwise we might link with an installed library
17589
# when we should be linking with a yet-to-be-installed one
17590
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17591
test "$hardcode_minus_L_GCJ" != no; then
17592
# Linking always hardcodes the temporary library directory.
17593
hardcode_action_GCJ=relink
17595
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17596
hardcode_action_GCJ=immediate
17599
# We cannot hardcode anything, or else we can only hardcode existing
17601
hardcode_action_GCJ=unsupported
17603
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17604
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17606
if test "$hardcode_action_GCJ" = relink; then
17607
# Fast installation is not supported
17608
enable_fast_install=no
17609
elif test "$shlibpath_overrides_runpath" = yes ||
17610
test "$enable_shared" = no; then
17611
# Fast installation is not necessary
17612
enable_fast_install=needless
17616
# The else clause should only fire when bootstrapping the
17617
# libtool distribution, otherwise you forgot to ship ltmain.sh
17618
# with your package, and you will get complaints that there are
17619
# no rules to generate ltmain.sh.
17620
if test -f "$ltmain"; then
17621
# See if we are running on zsh, and set the options which allow our commands through
17622
# without removal of \ escapes.
17623
if test -n "${ZSH_VERSION+set}" ; then
17624
setopt NO_GLOB_SUBST
17626
# Now quote all the things that may contain metacharacters while being
17627
# careful not to overquote the AC_SUBSTed values. We take copies of the
17628
# variables and quote the copies for generation of the libtool script.
17629
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17631
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17632
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17633
deplibs_check_method reload_flag reload_cmds need_locks \
17634
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17635
lt_cv_sys_global_symbol_to_c_name_address \
17636
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17637
old_postinstall_cmds old_postuninstall_cmds \
17641
lt_prog_compiler_wl_GCJ \
17642
lt_prog_compiler_pic_GCJ \
17643
lt_prog_compiler_static_GCJ \
17644
lt_prog_compiler_no_builtin_flag_GCJ \
17645
export_dynamic_flag_spec_GCJ \
17646
thread_safe_flag_spec_GCJ \
17647
whole_archive_flag_spec_GCJ \
17648
enable_shared_with_static_runtimes_GCJ \
17649
old_archive_cmds_GCJ \
17650
old_archive_from_new_cmds_GCJ \
17651
predep_objects_GCJ \
17652
postdep_objects_GCJ \
17655
compiler_lib_search_path_GCJ \
17657
archive_expsym_cmds_GCJ \
17658
postinstall_cmds_GCJ \
17659
postuninstall_cmds_GCJ \
17660
old_archive_from_expsyms_cmds_GCJ \
17661
allow_undefined_flag_GCJ \
17662
no_undefined_flag_GCJ \
17663
export_symbols_cmds_GCJ \
17664
hardcode_libdir_flag_spec_GCJ \
17665
hardcode_libdir_flag_spec_ld_GCJ \
17666
hardcode_libdir_separator_GCJ \
17667
hardcode_automatic_GCJ \
17669
module_expsym_cmds_GCJ \
17670
lt_cv_prog_compiler_c_o_GCJ \
17671
exclude_expsyms_GCJ \
17672
include_expsyms_GCJ; do
17675
old_archive_cmds_GCJ | \
17676
old_archive_from_new_cmds_GCJ | \
17677
archive_cmds_GCJ | \
17678
archive_expsym_cmds_GCJ | \
17679
module_cmds_GCJ | \
17680
module_expsym_cmds_GCJ | \
17681
old_archive_from_expsyms_cmds_GCJ | \
17682
export_symbols_cmds_GCJ | \
17683
extract_expsyms_cmds | reload_cmds | finish_cmds | \
17684
postinstall_cmds | postuninstall_cmds | \
17685
old_postinstall_cmds | old_postuninstall_cmds | \
17686
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17687
# Double-quote double-evaled strings.
17688
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17691
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17697
*'\$0 --fallback-echo"')
17698
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17704
cat <<__EOF__ >> "$cfgfile"
17705
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17707
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17709
# Shell to use when invoking shell scripts.
17712
# Whether or not to build shared libraries.
17713
build_libtool_libs=$enable_shared
17715
# Whether or not to build static libraries.
17716
build_old_libs=$enable_static
17718
# Whether or not to add -lc for building shared libraries.
17719
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17721
# Whether or not to disallow shared libs when runtime libs are static
17722
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17724
# Whether or not to optimize for fast installation.
17725
fast_install=$enable_fast_install
17728
host_alias=$host_alias
17732
# The build system.
17733
build_alias=$build_alias
17737
# An echo program that does not interpret backslashes.
17742
AR_FLAGS=$lt_AR_FLAGS
17747
# LTCC compiler flags.
17748
LTCFLAGS=$lt_LTCFLAGS
17750
# A language-specific compiler.
17751
CC=$lt_compiler_GCJ
17753
# Is the compiler the GNU C compiler?
17759
# The linker used to build libraries.
17762
# Whether we need hard or soft links.
17765
# A BSD-compatible nm program.
17768
# A symbol stripping program
17771
# Used to examine libraries when file_magic_cmd begins "file"
17772
MAGIC_CMD=$MAGIC_CMD
17774
# Used on cygwin: DLL creation program.
17777
# Used on cygwin: object dumper.
17780
# Used on cygwin: assembler.
17783
# The name of the directory that contains temporary libtool files.
17786
# How to create reloadable object files.
17787
reload_flag=$lt_reload_flag
17788
reload_cmds=$lt_reload_cmds
17790
# How to pass a linker flag through the compiler.
17791
wl=$lt_lt_prog_compiler_wl_GCJ
17793
# Object file suffix (normally "o").
17794
objext="$ac_objext"
17796
# Old archive suffix (normally "a").
17799
# Shared library suffix (normally ".so").
17800
shrext_cmds='$shrext_cmds'
17802
# Executable file suffix (normally "").
17805
# Additional compiler flags for building library objects.
17806
pic_flag=$lt_lt_prog_compiler_pic_GCJ
17809
# What is the maximum length of a command?
17810
max_cmd_len=$lt_cv_sys_max_cmd_len
17812
# Does compiler simultaneously support -c and -o options?
17813
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17815
# Must we lock files when doing compilation?
17816
need_locks=$lt_need_locks
17818
# Do we need the lib prefix for modules?
17819
need_lib_prefix=$need_lib_prefix
17821
# Do we need a version for libraries?
17822
need_version=$need_version
17824
# Whether dlopen is supported.
17825
dlopen_support=$enable_dlopen
17827
# Whether dlopen of programs is supported.
17828
dlopen_self=$enable_dlopen_self
17830
# Whether dlopen of statically linked programs is supported.
17831
dlopen_self_static=$enable_dlopen_self_static
17833
# Compiler flag to prevent dynamic linking.
17834
link_static_flag=$lt_lt_prog_compiler_static_GCJ
17836
# Compiler flag to turn off builtin functions.
17837
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17839
# Compiler flag to allow reflexive dlopens.
17840
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17842
# Compiler flag to generate shared objects directly from archives.
17843
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17845
# Compiler flag to generate thread-safe objects.
17846
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17848
# Library versioning type.
17849
version_type=$version_type
17851
# Format of library name prefix.
17852
libname_spec=$lt_libname_spec
17854
# List of archive names. First name is the real one, the rest are links.
17855
# The last name is the one that the linker finds with -lNAME.
17856
library_names_spec=$lt_library_names_spec
17858
# The coded name of the library, if different from the real name.
17859
soname_spec=$lt_soname_spec
17861
# Commands used to build and install an old-style archive.
17863
old_archive_cmds=$lt_old_archive_cmds_GCJ
17864
old_postinstall_cmds=$lt_old_postinstall_cmds
17865
old_postuninstall_cmds=$lt_old_postuninstall_cmds
17867
# Create an old-style archive from a shared archive.
17868
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17870
# Create a temporary old-style archive to link instead of a shared archive.
17871
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17873
# Commands used to build and install a shared archive.
17874
archive_cmds=$lt_archive_cmds_GCJ
17875
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17876
postinstall_cmds=$lt_postinstall_cmds
17877
postuninstall_cmds=$lt_postuninstall_cmds
17879
# Commands used to build a loadable module (assumed same as above if empty)
17880
module_cmds=$lt_module_cmds_GCJ
17881
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17883
# Commands to strip libraries.
17884
old_striplib=$lt_old_striplib
17885
striplib=$lt_striplib
17887
# Dependencies to place before the objects being linked to create a
17889
predep_objects=$lt_predep_objects_GCJ
17891
# Dependencies to place after the objects being linked to create a
17893
postdep_objects=$lt_postdep_objects_GCJ
17895
# Dependencies to place before the objects being linked to create a
17897
predeps=$lt_predeps_GCJ
17899
# Dependencies to place after the objects being linked to create a
17901
postdeps=$lt_postdeps_GCJ
17903
# The library search path used internally by the compiler when linking
17904
# a shared library.
17905
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17907
# Method to check whether dependent libraries are shared objects.
17908
deplibs_check_method=$lt_deplibs_check_method
17910
# Command to use when deplibs_check_method == file_magic.
17911
file_magic_cmd=$lt_file_magic_cmd
17913
# Flag that allows shared libraries with undefined symbols to be built.
17914
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17916
# Flag that forces no undefined symbols.
17917
no_undefined_flag=$lt_no_undefined_flag_GCJ
17919
# Commands used to finish a libtool library installation in a directory.
17920
finish_cmds=$lt_finish_cmds
17922
# Same as above, but a single script fragment to be evaled but not shown.
17923
finish_eval=$lt_finish_eval
17925
# Take the output of nm and produce a listing of raw symbols and C names.
17926
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17928
# Transform the output of nm in a proper C declaration
17929
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17931
# Transform the output of nm in a C name address pair
17932
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17934
# This is the shared library runtime path variable.
17935
runpath_var=$runpath_var
17937
# This is the shared library path variable.
17938
shlibpath_var=$shlibpath_var
17940
# Is shlibpath searched before the hard-coded library search path?
17941
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17943
# How to hardcode a shared library path into an executable.
17944
hardcode_action=$hardcode_action_GCJ
17946
# Whether we should hardcode library paths into libraries.
17947
hardcode_into_libs=$hardcode_into_libs
17949
# Flag to hardcode \$libdir into a binary during linking.
17950
# This must work even if \$libdir does not exist.
17951
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17953
# If ld is used when linking, flag to hardcode \$libdir into
17954
# a binary during linking. This must work even if \$libdir does
17956
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17958
# Whether we need a single -rpath flag with a separated argument.
17959
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17961
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17962
# resulting binary.
17963
hardcode_direct=$hardcode_direct_GCJ
17965
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17966
# resulting binary.
17967
hardcode_minus_L=$hardcode_minus_L_GCJ
17969
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17970
# the resulting binary.
17971
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17973
# Set to yes if building a shared library automatically hardcodes DIR into the library
17974
# and all subsequent libraries and executables linked against it.
17975
hardcode_automatic=$hardcode_automatic_GCJ
17977
# Variables whose values should be saved in libtool wrapper scripts and
17978
# restored at relink time.
17979
variables_saved_for_relink="$variables_saved_for_relink"
17981
# Whether libtool must link a program against all its dependency libraries.
17982
link_all_deplibs=$link_all_deplibs_GCJ
17984
# Compile-time system search path for libraries
17985
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17987
# Run-time system search path for libraries
17988
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17990
# Fix the shell variable \$srcfile for the compiler.
17991
fix_srcfile_path="$fix_srcfile_path_GCJ"
17993
# Set to yes if exported symbols are required.
17994
always_export_symbols=$always_export_symbols_GCJ
17996
# The commands to list exported symbols.
17997
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17999
# The commands to extract the exported symbol list from a shared archive.
18000
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18002
# Symbols that should not be listed in the preloaded symbols.
18003
exclude_expsyms=$lt_exclude_expsyms_GCJ
18005
# Symbols that must always be exported.
18006
include_expsyms=$lt_include_expsyms_GCJ
18008
# ### END LIBTOOL TAG CONFIG: $tagname
18014
# If there is no Makefile yet, we rely on a make rule to execute
18015
# `config.status --recheck' to rerun these tests and create the
18016
# libtool script then.
18017
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18018
if test -f "$ltmain_in"; then
18019
test -f Makefile && make "$ltmain"
18025
ac_cpp='$CPP $CPPFLAGS'
18026
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18027
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18028
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18041
# Source file extension for RC test sources.
18044
# Object file extension for compiled RC test sources.
18048
# Code to be used in simple compile tests
18049
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18051
# Code to be used in simple link tests
18052
lt_simple_link_test_code="$lt_simple_compile_test_code"
18054
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18056
# If no C compiler was specified, use CC.
18059
# If no C compiler flags were specified, use CFLAGS.
18060
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18062
# Allow CC to be a program name with arguments.
18066
# save warnings/boilerplate of simple test code
18067
ac_outfile=conftest.$ac_objext
18068
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18069
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18070
_lt_compiler_boilerplate=`cat conftest.err`
18073
ac_outfile=conftest.$ac_objext
18074
printf "$lt_simple_link_test_code" >conftest.$ac_ext
18075
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18076
_lt_linker_boilerplate=`cat conftest.err`
18080
# Allow CC to be a program name with arguments.
18085
for cc_temp in $compiler""; do
18087
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18088
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18093
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18095
lt_cv_prog_compiler_c_o_RC=yes
18097
# The else clause should only fire when bootstrapping the
18098
# libtool distribution, otherwise you forgot to ship ltmain.sh
18099
# with your package, and you will get complaints that there are
18100
# no rules to generate ltmain.sh.
18101
if test -f "$ltmain"; then
18102
# See if we are running on zsh, and set the options which allow our commands through
18103
# without removal of \ escapes.
18104
if test -n "${ZSH_VERSION+set}" ; then
18105
setopt NO_GLOB_SUBST
18107
# Now quote all the things that may contain metacharacters while being
18108
# careful not to overquote the AC_SUBSTed values. We take copies of the
18109
# variables and quote the copies for generation of the libtool script.
18110
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18112
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18113
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18114
deplibs_check_method reload_flag reload_cmds need_locks \
18115
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18116
lt_cv_sys_global_symbol_to_c_name_address \
18117
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18118
old_postinstall_cmds old_postuninstall_cmds \
18122
lt_prog_compiler_wl_RC \
18123
lt_prog_compiler_pic_RC \
18124
lt_prog_compiler_static_RC \
18125
lt_prog_compiler_no_builtin_flag_RC \
18126
export_dynamic_flag_spec_RC \
18127
thread_safe_flag_spec_RC \
18128
whole_archive_flag_spec_RC \
18129
enable_shared_with_static_runtimes_RC \
18130
old_archive_cmds_RC \
18131
old_archive_from_new_cmds_RC \
18132
predep_objects_RC \
18133
postdep_objects_RC \
18136
compiler_lib_search_path_RC \
18138
archive_expsym_cmds_RC \
18139
postinstall_cmds_RC \
18140
postuninstall_cmds_RC \
18141
old_archive_from_expsyms_cmds_RC \
18142
allow_undefined_flag_RC \
18143
no_undefined_flag_RC \
18144
export_symbols_cmds_RC \
18145
hardcode_libdir_flag_spec_RC \
18146
hardcode_libdir_flag_spec_ld_RC \
18147
hardcode_libdir_separator_RC \
18148
hardcode_automatic_RC \
18150
module_expsym_cmds_RC \
18151
lt_cv_prog_compiler_c_o_RC \
18152
exclude_expsyms_RC \
18153
include_expsyms_RC; do
18156
old_archive_cmds_RC | \
18157
old_archive_from_new_cmds_RC | \
18158
archive_cmds_RC | \
18159
archive_expsym_cmds_RC | \
18161
module_expsym_cmds_RC | \
18162
old_archive_from_expsyms_cmds_RC | \
18163
export_symbols_cmds_RC | \
18164
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18165
postinstall_cmds | postuninstall_cmds | \
18166
old_postinstall_cmds | old_postuninstall_cmds | \
18167
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18168
# Double-quote double-evaled strings.
18169
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18172
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18178
*'\$0 --fallback-echo"')
18179
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18185
cat <<__EOF__ >> "$cfgfile"
18186
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18188
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18190
# Shell to use when invoking shell scripts.
18193
# Whether or not to build shared libraries.
18194
build_libtool_libs=$enable_shared
18196
# Whether or not to build static libraries.
18197
build_old_libs=$enable_static
18199
# Whether or not to add -lc for building shared libraries.
18200
build_libtool_need_lc=$archive_cmds_need_lc_RC
18202
# Whether or not to disallow shared libs when runtime libs are static
18203
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18205
# Whether or not to optimize for fast installation.
18206
fast_install=$enable_fast_install
18209
host_alias=$host_alias
18213
# The build system.
18214
build_alias=$build_alias
18218
# An echo program that does not interpret backslashes.
18223
AR_FLAGS=$lt_AR_FLAGS
18228
# LTCC compiler flags.
18229
LTCFLAGS=$lt_LTCFLAGS
18231
# A language-specific compiler.
18234
# Is the compiler the GNU C compiler?
18240
# The linker used to build libraries.
18243
# Whether we need hard or soft links.
18246
# A BSD-compatible nm program.
18249
# A symbol stripping program
18252
# Used to examine libraries when file_magic_cmd begins "file"
18253
MAGIC_CMD=$MAGIC_CMD
18255
# Used on cygwin: DLL creation program.
18258
# Used on cygwin: object dumper.
18261
# Used on cygwin: assembler.
18264
# The name of the directory that contains temporary libtool files.
18267
# How to create reloadable object files.
18268
reload_flag=$lt_reload_flag
18269
reload_cmds=$lt_reload_cmds
18271
# How to pass a linker flag through the compiler.
18272
wl=$lt_lt_prog_compiler_wl_RC
18274
# Object file suffix (normally "o").
18275
objext="$ac_objext"
18277
# Old archive suffix (normally "a").
18280
# Shared library suffix (normally ".so").
18281
shrext_cmds='$shrext_cmds'
18283
# Executable file suffix (normally "").
18286
# Additional compiler flags for building library objects.
18287
pic_flag=$lt_lt_prog_compiler_pic_RC
18290
# What is the maximum length of a command?
18291
max_cmd_len=$lt_cv_sys_max_cmd_len
18293
# Does compiler simultaneously support -c and -o options?
18294
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18296
# Must we lock files when doing compilation?
18297
need_locks=$lt_need_locks
18299
# Do we need the lib prefix for modules?
18300
need_lib_prefix=$need_lib_prefix
18302
# Do we need a version for libraries?
18303
need_version=$need_version
18305
# Whether dlopen is supported.
18306
dlopen_support=$enable_dlopen
18308
# Whether dlopen of programs is supported.
18309
dlopen_self=$enable_dlopen_self
18311
# Whether dlopen of statically linked programs is supported.
18312
dlopen_self_static=$enable_dlopen_self_static
18314
# Compiler flag to prevent dynamic linking.
18315
link_static_flag=$lt_lt_prog_compiler_static_RC
18317
# Compiler flag to turn off builtin functions.
18318
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18320
# Compiler flag to allow reflexive dlopens.
18321
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18323
# Compiler flag to generate shared objects directly from archives.
18324
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18326
# Compiler flag to generate thread-safe objects.
18327
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18329
# Library versioning type.
18330
version_type=$version_type
18332
# Format of library name prefix.
18333
libname_spec=$lt_libname_spec
18335
# List of archive names. First name is the real one, the rest are links.
18336
# The last name is the one that the linker finds with -lNAME.
18337
library_names_spec=$lt_library_names_spec
18339
# The coded name of the library, if different from the real name.
18340
soname_spec=$lt_soname_spec
18342
# Commands used to build and install an old-style archive.
18344
old_archive_cmds=$lt_old_archive_cmds_RC
18345
old_postinstall_cmds=$lt_old_postinstall_cmds
18346
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18348
# Create an old-style archive from a shared archive.
18349
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18351
# Create a temporary old-style archive to link instead of a shared archive.
18352
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18354
# Commands used to build and install a shared archive.
18355
archive_cmds=$lt_archive_cmds_RC
18356
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18357
postinstall_cmds=$lt_postinstall_cmds
18358
postuninstall_cmds=$lt_postuninstall_cmds
18360
# Commands used to build a loadable module (assumed same as above if empty)
18361
module_cmds=$lt_module_cmds_RC
18362
module_expsym_cmds=$lt_module_expsym_cmds_RC
18364
# Commands to strip libraries.
18365
old_striplib=$lt_old_striplib
18366
striplib=$lt_striplib
18368
# Dependencies to place before the objects being linked to create a
18370
predep_objects=$lt_predep_objects_RC
18372
# Dependencies to place after the objects being linked to create a
18374
postdep_objects=$lt_postdep_objects_RC
18376
# Dependencies to place before the objects being linked to create a
18378
predeps=$lt_predeps_RC
18380
# Dependencies to place after the objects being linked to create a
18382
postdeps=$lt_postdeps_RC
18384
# The library search path used internally by the compiler when linking
18385
# a shared library.
18386
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18388
# Method to check whether dependent libraries are shared objects.
18389
deplibs_check_method=$lt_deplibs_check_method
18391
# Command to use when deplibs_check_method == file_magic.
18392
file_magic_cmd=$lt_file_magic_cmd
18394
# Flag that allows shared libraries with undefined symbols to be built.
18395
allow_undefined_flag=$lt_allow_undefined_flag_RC
18397
# Flag that forces no undefined symbols.
18398
no_undefined_flag=$lt_no_undefined_flag_RC
18400
# Commands used to finish a libtool library installation in a directory.
18401
finish_cmds=$lt_finish_cmds
18403
# Same as above, but a single script fragment to be evaled but not shown.
18404
finish_eval=$lt_finish_eval
18406
# Take the output of nm and produce a listing of raw symbols and C names.
18407
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18409
# Transform the output of nm in a proper C declaration
18410
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18412
# Transform the output of nm in a C name address pair
18413
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18415
# This is the shared library runtime path variable.
18416
runpath_var=$runpath_var
18418
# This is the shared library path variable.
18419
shlibpath_var=$shlibpath_var
18421
# Is shlibpath searched before the hard-coded library search path?
18422
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18424
# How to hardcode a shared library path into an executable.
18425
hardcode_action=$hardcode_action_RC
18427
# Whether we should hardcode library paths into libraries.
18428
hardcode_into_libs=$hardcode_into_libs
18430
# Flag to hardcode \$libdir into a binary during linking.
18431
# This must work even if \$libdir does not exist.
18432
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18434
# If ld is used when linking, flag to hardcode \$libdir into
18435
# a binary during linking. This must work even if \$libdir does
18437
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18439
# Whether we need a single -rpath flag with a separated argument.
18440
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18442
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18443
# resulting binary.
18444
hardcode_direct=$hardcode_direct_RC
18446
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18447
# resulting binary.
18448
hardcode_minus_L=$hardcode_minus_L_RC
18450
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18451
# the resulting binary.
18452
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18454
# Set to yes if building a shared library automatically hardcodes DIR into the library
18455
# and all subsequent libraries and executables linked against it.
18456
hardcode_automatic=$hardcode_automatic_RC
18458
# Variables whose values should be saved in libtool wrapper scripts and
18459
# restored at relink time.
18460
variables_saved_for_relink="$variables_saved_for_relink"
18462
# Whether libtool must link a program against all its dependency libraries.
18463
link_all_deplibs=$link_all_deplibs_RC
18465
# Compile-time system search path for libraries
18466
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18468
# Run-time system search path for libraries
18469
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18471
# Fix the shell variable \$srcfile for the compiler.
18472
fix_srcfile_path="$fix_srcfile_path_RC"
18474
# Set to yes if exported symbols are required.
18475
always_export_symbols=$always_export_symbols_RC
18477
# The commands to list exported symbols.
18478
export_symbols_cmds=$lt_export_symbols_cmds_RC
18480
# The commands to extract the exported symbol list from a shared archive.
18481
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18483
# Symbols that should not be listed in the preloaded symbols.
18484
exclude_expsyms=$lt_exclude_expsyms_RC
18486
# Symbols that must always be exported.
18487
include_expsyms=$lt_include_expsyms_RC
18489
# ### END LIBTOOL TAG CONFIG: $tagname
18495
# If there is no Makefile yet, we rely on a make rule to execute
18496
# `config.status --recheck' to rerun these tests and create the
18497
# libtool script then.
18498
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18499
if test -f "$ltmain_in"; then
18500
test -f Makefile && make "$ltmain"
18506
ac_cpp='$CPP $CPPFLAGS'
18507
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18508
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18509
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18516
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18517
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18518
{ (exit 1); exit 1; }; }
18522
# Append the new tag name to the list of available tags.
18523
if test -n "$tagname" ; then
18524
available_tags="$available_tags $tagname"
18530
# Now substitute the updated list of available tags.
18531
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18532
mv "${ofile}T" "$ofile"
18536
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18537
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18538
{ (exit 1); exit 1; }; }
18544
# This can be used to rebuild libtool when needed
18545
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18547
# Always use our own libtool.
18548
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18550
# Prevent multiple expansion
14242
if test "$hardcode_action_CXX" = relink ||
14243
test "$inherit_rpath_CXX" = yes; then
14244
# Fast installation is not supported
14245
enable_fast_install=no
14246
elif test "$shlibpath_overrides_runpath" = yes ||
14247
test "$enable_shared" = no; then
14248
# Fast installation is not necessary
14249
enable_fast_install=needless
14258
fi # test -n "$compiler"
14264
with_gnu_ld=$lt_save_with_gnu_ld
14265
lt_cv_path_LDCXX=$lt_cv_path_LD
14266
lt_cv_path_LD=$lt_save_path_LD
14267
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14268
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14269
fi # test "$_lt_caught_CXX_error" != yes
14272
ac_cpp='$CPP $CPPFLAGS'
14273
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14274
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14275
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14289
ac_config_commands="$ac_config_commands libtool"
14294
# Only expand once: