3976
6878
RANLIB="$ac_cv_prog_RANLIB"
3979
# Find a good install program. We prefer a C program (faster),
3980
# so one script is as good as another. But avoid the broken or
3981
# incompatible versions:
3982
# SysV /etc/install, /usr/sbin/install
3983
# SunOS /usr/etc/install
3984
# IRIX /sbin/install
3986
# AmigaOS /C/install, which installs bootblocks on floppy discs
3987
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3988
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3989
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3990
# OS/2's system install, which has a completely different semantic
3991
# ./install, which can be erroneously created by make from ./install.sh.
3992
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3993
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3994
if test -z "$INSTALL"; then
3995
if test "${ac_cv_path_install+set}" = set; then
3996
echo $ECHO_N "(cached) $ECHO_C" >&6
3998
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002
test -z "$as_dir" && as_dir=.
4003
# Account for people who put trailing slashes in PATH elements.
4005
./ | .// | /cC/* | \
4006
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4007
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4010
# OSF1 and SCO ODT 3.0 have their own names for install.
4011
# Don't use installbsd from OSF since it installs stuff as root
4013
for ac_prog in ginstall scoinst install; do
4014
for ac_exec_ext in '' $ac_executable_extensions; do
4015
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4016
if test $ac_prog = install &&
4017
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4018
# AIX install. It has an incompatible calling convention.
4020
elif test $ac_prog = install &&
4021
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4022
# program-specific install script used by HP pwplus--don't use.
4025
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6881
if test -n "$ac_tool_prefix"; then
6882
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6883
set dummy ${ac_tool_prefix}strip; ac_word=$2
6884
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6885
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6886
if test "${ac_cv_prog_STRIP+set}" = set; then
6887
echo $ECHO_N "(cached) $ECHO_C" >&6
6889
if test -n "$STRIP"; then
6890
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6892
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896
test -z "$as_dir" && as_dir=.
6897
for ac_exec_ext in '' $ac_executable_extensions; do
6898
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6899
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6900
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6909
STRIP=$ac_cv_prog_STRIP
6910
if test -n "$STRIP"; then
6911
{ echo "$as_me:$LINENO: result: $STRIP" >&5
6912
echo "${ECHO_T}$STRIP" >&6; }
6914
{ echo "$as_me:$LINENO: result: no" >&5
6915
echo "${ECHO_T}no" >&6; }
6920
if test -z "$ac_cv_prog_STRIP"; then
6922
# Extract the first word of "strip", so it can be a program name with args.
6923
set dummy strip; ac_word=$2
6924
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6925
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6926
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6927
echo $ECHO_N "(cached) $ECHO_C" >&6
6929
if test -n "$ac_ct_STRIP"; then
6930
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6932
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936
test -z "$as_dir" && as_dir=.
6937
for ac_exec_ext in '' $ac_executable_extensions; do
6938
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6939
ac_cv_prog_ac_ct_STRIP="strip"
6940
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6949
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6950
if test -n "$ac_ct_STRIP"; then
6951
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6952
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6954
{ echo "$as_me:$LINENO: result: no" >&5
6955
echo "${ECHO_T}no" >&6; }
6958
if test "x$ac_ct_STRIP" = x; then
6961
case $cross_compiling:$ac_tool_warned in
6963
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6964
whose name does not start with the host triplet. If you think this
6965
configuration is useful to you, please write to autoconf@gnu.org." >&5
6966
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6967
whose name does not start with the host triplet. If you think this
6968
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6969
ac_tool_warned=yes ;;
6974
STRIP="$ac_cv_prog_STRIP"
6979
old_CFLAGS="$CFLAGS"
6981
# Set sane defaults for various variables
6982
test -z "$AR" && AR=ar
6983
test -z "$AR_FLAGS" && AR_FLAGS=cru
6984
test -z "$AS" && AS=as
6985
test -z "$CC" && CC=cc
6986
test -z "$LTCC" && LTCC=$CC
6987
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6988
test -z "$DLLTOOL" && DLLTOOL=dlltool
6989
test -z "$LD" && LD=ld
6990
test -z "$LN_S" && LN_S="ln -s"
6991
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6992
test -z "$NM" && NM=nm
6993
test -z "$SED" && SED=sed
6994
test -z "$OBJDUMP" && OBJDUMP=objdump
6995
test -z "$RANLIB" && RANLIB=:
6996
test -z "$STRIP" && STRIP=:
6997
test -z "$ac_objext" && ac_objext=o
6999
# Determine commands to create old-style static archives.
7000
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7001
old_postinstall_cmds='chmod 644 $oldlib'
7002
old_postuninstall_cmds=
7004
if test -n "$RANLIB"; then
7007
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7010
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7013
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7016
for cc_temp in $compiler""; do
7018
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7019
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7024
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7027
# Only perform the check for file, if the check method requires it
7028
case $deplibs_check_method in
7030
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7031
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7032
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7033
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7034
echo $ECHO_N "(cached) $ECHO_C" >&6
7038
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7041
lt_save_MAGIC_CMD="$MAGIC_CMD"
7042
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7043
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7044
for ac_dir in $ac_dummy; do
7046
test -z "$ac_dir" && ac_dir=.
7047
if test -f $ac_dir/${ac_tool_prefix}file; then
7048
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7049
if test -n "$file_magic_test_file"; then
7050
case $deplibs_check_method in
7052
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7053
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7054
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7055
$EGREP "$file_magic_regex" > /dev/null; then
7060
*** Warning: the command libtool uses to detect shared libraries,
7061
*** $file_magic_cmd, produces output that libtool cannot recognize.
7062
*** The result is that libtool may fail to recognize shared libraries
7063
*** as such. This will affect the creation of libtool libraries that
7064
*** depend on shared libraries, but programs linked with such libtool
7065
*** libraries will work regardless of this problem. Nevertheless, you
7066
*** may want to report the problem to your system manager and/or to
7067
*** bug-libtool@gnu.org
7077
MAGIC_CMD="$lt_save_MAGIC_CMD"
7082
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7083
if test -n "$MAGIC_CMD"; then
7084
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7085
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7087
{ echo "$as_me:$LINENO: result: no" >&5
7088
echo "${ECHO_T}no" >&6; }
7091
if test -z "$lt_cv_path_MAGIC_CMD"; then
7092
if test -n "$ac_tool_prefix"; then
7093
{ echo "$as_me:$LINENO: checking for file" >&5
7094
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7095
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7096
echo $ECHO_N "(cached) $ECHO_C" >&6
7100
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7103
lt_save_MAGIC_CMD="$MAGIC_CMD"
7104
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7105
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7106
for ac_dir in $ac_dummy; do
7108
test -z "$ac_dir" && ac_dir=.
7109
if test -f $ac_dir/file; then
7110
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7111
if test -n "$file_magic_test_file"; then
7112
case $deplibs_check_method in
7114
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7115
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7116
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7117
$EGREP "$file_magic_regex" > /dev/null; then
7122
*** Warning: the command libtool uses to detect shared libraries,
7123
*** $file_magic_cmd, produces output that libtool cannot recognize.
7124
*** The result is that libtool may fail to recognize shared libraries
7125
*** as such. This will affect the creation of libtool libraries that
7126
*** depend on shared libraries, but programs linked with such libtool
7127
*** libraries will work regardless of this problem. Nevertheless, you
7128
*** may want to report the problem to your system manager and/or to
7129
*** bug-libtool@gnu.org
7139
MAGIC_CMD="$lt_save_MAGIC_CMD"
7144
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7145
if test -n "$MAGIC_CMD"; then
7146
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7147
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7149
{ echo "$as_me:$LINENO: result: no" >&5
7150
echo "${ECHO_T}no" >&6; }
7165
# Check whether --enable-libtool-lock was given.
7166
if test "${enable_libtool_lock+set}" = set; then
7167
enableval=$enable_libtool_lock;
7170
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7173
# Check whether --with-pic was given.
7174
if test "${with_pic+set}" = set; then
7175
withval=$with_pic; pic_mode="$withval"
7180
test -z "$pic_mode" && pic_mode=default
7182
# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
7184
# Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
7185
# We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
7186
# calls AC_LIBTOOL_CONFIG and creates libtool.
7188
{ echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
7189
echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
7190
if test "x$ltmain" = "x" ; then
7191
{ echo "$as_me:$LINENO: result: no" >&5
7192
echo "${ECHO_T}no" >&6; }
7193
{ { echo "$as_me:$LINENO: error:
7195
*** [Gentoo] sanity check failed! ***
7196
*** \$ltmain is not defined, please check the patch for consistency! ***
7198
echo "$as_me: error:
7200
*** [Gentoo] sanity check failed! ***
7201
*** \$ltmain is not defined, please check the patch for consistency! ***
7203
{ (exit 1); exit 1; }; }
7205
gentoo_lt_version="1.5.24"
7206
gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
7207
if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
7208
{ echo "$as_me:$LINENO: result: no" >&5
7209
echo "${ECHO_T}no" >&6; }
7210
{ { echo "$as_me:$LINENO: error:
7212
*** [Gentoo] sanity check failed! ***
7213
*** libtool.m4 and ltmain.sh have a version mismatch! ***
7214
*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
7218
libtoolize --copy --force
7220
if appropriate, please contact the maintainer of this
7221
package (or your distribution) for help.
7223
echo "$as_me: error:
7225
*** [Gentoo] sanity check failed! ***
7226
*** libtool.m4 and ltmain.sh have a version mismatch! ***
7227
*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
7231
libtoolize --copy --force
7233
if appropriate, please contact the maintainer of this
7234
package (or your distribution) for help.
7236
{ (exit 1); exit 1; }; }
7238
{ echo "$as_me:$LINENO: result: yes" >&5
7239
echo "${ECHO_T}yes" >&6; }
7243
# Use C for the default configuration in the libtool script
7247
ac_cpp='$CPP $CPPFLAGS'
7248
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7249
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7250
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7253
# Source file extension for C test sources.
7256
# Object file extension for compiled C test sources.
7260
# Code to be used in simple compile tests
7261
lt_simple_compile_test_code="int some_variable = 0;"
7263
# Code to be used in simple link tests
7264
lt_simple_link_test_code='int main(){return(0);}'
7267
# If no C compiler was specified, use CC.
7270
# If no C compiler flags were specified, use CFLAGS.
7271
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7273
# Allow CC to be a program name with arguments.
7277
# save warnings/boilerplate of simple test code
7278
ac_outfile=conftest.$ac_objext
7279
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7280
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7281
_lt_compiler_boilerplate=`cat conftest.err`
7284
ac_outfile=conftest.$ac_objext
7285
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7286
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7287
_lt_linker_boilerplate=`cat conftest.err`
7292
lt_prog_compiler_no_builtin_flag=
7294
if test "$GCC" = yes; then
7295
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7298
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7299
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7300
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7301
echo $ECHO_N "(cached) $ECHO_C" >&6
7303
lt_cv_prog_compiler_rtti_exceptions=no
7304
ac_outfile=conftest.$ac_objext
7305
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7306
lt_compiler_flag="-fno-rtti -fno-exceptions"
7307
# Insert the option either (1) after the last *FLAGS variable, or
7308
# (2) before a word containing "conftest.", or (3) at the end.
7309
# Note that $ac_compile itself does not contain backslashes and begins
7310
# with a dollar sign (not a hyphen), so the echo should work correctly.
7311
# The option is referenced via a variable to avoid confusing sed.
7312
lt_compile=`echo "$ac_compile" | $SED \
7313
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7314
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7315
-e 's:$: $lt_compiler_flag:'`
7316
(eval echo "\"\$as_me:7316: $lt_compile\"" >&5)
7317
(eval "$lt_compile" 2>conftest.err)
7319
cat conftest.err >&5
7320
echo "$as_me:7320: \$? = $ac_status" >&5
7321
if (exit $ac_status) && test -s "$ac_outfile"; then
7322
# The compiler can only warn and ignore the option if not recognized
7323
# So say no if there are warnings other than the usual output.
7324
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7325
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7326
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7327
lt_cv_prog_compiler_rtti_exceptions=yes
7333
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7334
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7336
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7337
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7344
lt_prog_compiler_wl=
7345
lt_prog_compiler_pic=
7346
lt_prog_compiler_static=
7348
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7349
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7351
if test "$GCC" = yes; then
7352
lt_prog_compiler_wl='-Wl,'
7353
lt_prog_compiler_static='-static'
7357
# All AIX code is PIC.
7358
if test "$host_cpu" = ia64; then
7359
# AIX 5 now supports IA64 processor
7360
lt_prog_compiler_static='-Bstatic'
7365
# FIXME: we need at least 68020 code to build shared libraries, but
7366
# adding the `-m68020' flag to GCC prevents building anything better,
7368
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7371
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7372
# PIC is the default for these OSes.
7375
mingw* | cygwin* | pw32* | os2*)
7376
# This hack is so that the source file can tell whether it is being
7377
# built for inclusion in a dll (and should export symbols for example).
7378
# Although the cygwin gcc ignores -fPIC, still need this for old-style
7379
# (--disable-auto-import) libraries
7380
lt_prog_compiler_pic='-DDLL_EXPORT'
7383
darwin* | rhapsody*)
7384
# PIC is the default on this platform
7385
# Common symbols not allowed in MH_DYLIB files
7386
lt_prog_compiler_pic='-fno-common'
7390
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7391
# Instead, we relocate shared libraries at runtime.
7395
# Just because we use GCC doesn't mean we suddenly get shared libraries
7396
# on systems that don't support them.
7397
lt_prog_compiler_can_build_shared=no
7402
if test -d /usr/nec; then
7403
lt_prog_compiler_pic=-Kconform_pic
7408
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7415
lt_prog_compiler_pic='-fPIC'
7421
lt_prog_compiler_pic='-fPIC'
7425
# PORTME Check for flag to pass linker flags through the system compiler.
7428
lt_prog_compiler_wl='-Wl,'
7429
if test "$host_cpu" = ia64; then
7430
# AIX 5 now supports IA64 processor
7431
lt_prog_compiler_static='-Bstatic'
7433
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7437
# PIC is the default on this platform
7438
# Common symbols not allowed in MH_DYLIB files
7439
case $cc_basename in
7441
lt_prog_compiler_pic='-qnocommon'
7442
lt_prog_compiler_wl='-Wl,'
7447
mingw* | cygwin* | pw32* | os2*)
7448
# This hack is so that the source file can tell whether it is being
7449
# built for inclusion in a dll (and should export symbols for example).
7450
lt_prog_compiler_pic='-DDLL_EXPORT'
7453
hpux9* | hpux10* | hpux11*)
7454
lt_prog_compiler_wl='-Wl,'
7455
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7462
lt_prog_compiler_pic='+Z'
7465
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7466
lt_prog_compiler_static='${wl}-a ${wl}archive'
7469
irix5* | irix6* | nonstopux*)
7470
lt_prog_compiler_wl='-Wl,'
7471
# PIC (with -KPIC) is the default.
7472
lt_prog_compiler_static='-non_shared'
7476
lt_prog_compiler_pic='-KPIC'
7477
lt_prog_compiler_static='-Bstatic'
7480
linux* | k*bsd*-gnu)
7481
case $cc_basename in
7483
lt_prog_compiler_wl='-Wl,'
7484
lt_prog_compiler_pic='-KPIC'
7485
lt_prog_compiler_static='-static'
7487
pgcc* | pgf77* | pgf90* | pgf95*)
7488
# Portland Group compilers (*not* the Pentium gcc compiler,
7489
# which looks to be a dead project)
7490
lt_prog_compiler_wl='-Wl,'
7491
lt_prog_compiler_pic='-fpic'
7492
lt_prog_compiler_static='-Bstatic'
7495
lt_prog_compiler_wl='-Wl,'
7496
# All Alpha code is PIC.
7497
lt_prog_compiler_static='-non_shared'
7500
case `$CC -V 2>&1 | sed 5q` in
7503
lt_prog_compiler_pic='-KPIC'
7504
lt_prog_compiler_static='-Bstatic'
7505
lt_prog_compiler_wl='-Wl,'
7508
# Sun Fortran 8.3 passes all unrecognized flags to the linker
7509
lt_prog_compiler_pic='-KPIC'
7510
lt_prog_compiler_static='-Bstatic'
7511
lt_prog_compiler_wl=''
7518
osf3* | osf4* | osf5*)
7519
lt_prog_compiler_wl='-Wl,'
7520
# All OSF/1 code is PIC.
7521
lt_prog_compiler_static='-non_shared'
7525
lt_prog_compiler_static='-non_shared'
7529
lt_prog_compiler_pic='-KPIC'
7530
lt_prog_compiler_static='-Bstatic'
7531
case $cc_basename in
7533
lt_prog_compiler_wl='-Qoption ld ';;
7535
lt_prog_compiler_wl='-Wl,';;
7540
lt_prog_compiler_wl='-Qoption ld '
7541
lt_prog_compiler_pic='-PIC'
7542
lt_prog_compiler_static='-Bstatic'
7545
sysv4 | sysv4.2uw2* | sysv4.3*)
7546
lt_prog_compiler_wl='-Wl,'
7547
lt_prog_compiler_pic='-KPIC'
7548
lt_prog_compiler_static='-Bstatic'
7552
if test -d /usr/nec ;then
7553
lt_prog_compiler_pic='-Kconform_pic'
7554
lt_prog_compiler_static='-Bstatic'
7558
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7559
lt_prog_compiler_wl='-Wl,'
7560
lt_prog_compiler_pic='-KPIC'
7561
lt_prog_compiler_static='-Bstatic'
7565
lt_prog_compiler_wl='-Wl,'
7566
lt_prog_compiler_can_build_shared=no
7570
lt_prog_compiler_pic='-pic'
7571
lt_prog_compiler_static='-Bstatic'
7575
lt_prog_compiler_can_build_shared=no
7580
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7581
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7584
# Check to make sure the PIC flag actually works.
7586
if test -n "$lt_prog_compiler_pic"; then
7588
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7589
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7590
if test "${lt_prog_compiler_pic_works+set}" = set; then
7591
echo $ECHO_N "(cached) $ECHO_C" >&6
7593
lt_prog_compiler_pic_works=no
7594
ac_outfile=conftest.$ac_objext
7595
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7596
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7597
# Insert the option either (1) after the last *FLAGS variable, or
7598
# (2) before a word containing "conftest.", or (3) at the end.
7599
# Note that $ac_compile itself does not contain backslashes and begins
7600
# with a dollar sign (not a hyphen), so the echo should work correctly.
7601
# The option is referenced via a variable to avoid confusing sed.
7602
lt_compile=`echo "$ac_compile" | $SED \
7603
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7604
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7605
-e 's:$: $lt_compiler_flag:'`
7606
(eval echo "\"\$as_me:7606: $lt_compile\"" >&5)
7607
(eval "$lt_compile" 2>conftest.err)
7609
cat conftest.err >&5
7610
echo "$as_me:7610: \$? = $ac_status" >&5
7611
if (exit $ac_status) && test -s "$ac_outfile"; then
7612
# The compiler can only warn and ignore the option if not recognized
7613
# So say no if there are warnings other than the usual output.
7614
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7615
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7616
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7617
lt_prog_compiler_pic_works=yes
7623
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7624
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7626
if test x"$lt_prog_compiler_pic_works" = xyes; then
7627
case $lt_prog_compiler_pic in
7629
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7632
lt_prog_compiler_pic=
7633
lt_prog_compiler_can_build_shared=no
7638
# For platforms which do not support PIC, -DPIC is meaningless:
7640
lt_prog_compiler_pic=
7643
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7648
# Check to make sure the static flag actually works.
7650
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7651
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7652
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7653
if test "${lt_prog_compiler_static_works+set}" = set; then
7654
echo $ECHO_N "(cached) $ECHO_C" >&6
7656
lt_prog_compiler_static_works=no
7657
save_LDFLAGS="$LDFLAGS"
7658
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7659
echo "$lt_simple_link_test_code" > conftest.$ac_ext
7660
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7661
# The linker can only warn and ignore the option if not recognized
7662
# So say no if there are warnings
7663
if test -s conftest.err; then
7664
# Append any errors to the config.log.
7665
cat conftest.err 1>&5
7666
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7667
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7668
if diff conftest.exp conftest.er2 >/dev/null; then
7669
lt_prog_compiler_static_works=yes
7672
lt_prog_compiler_static_works=yes
7676
LDFLAGS="$save_LDFLAGS"
7679
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7680
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7682
if test x"$lt_prog_compiler_static_works" = xyes; then
7685
lt_prog_compiler_static=
7689
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7690
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7691
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7692
echo $ECHO_N "(cached) $ECHO_C" >&6
7694
lt_cv_prog_compiler_c_o=no
7695
$rm -r conftest 2>/dev/null
7699
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7701
lt_compiler_flag="-o out/conftest2.$ac_objext"
7702
# Insert the option either (1) after the last *FLAGS variable, or
7703
# (2) before a word containing "conftest.", or (3) at the end.
7704
# Note that $ac_compile itself does not contain backslashes and begins
7705
# with a dollar sign (not a hyphen), so the echo should work correctly.
7706
lt_compile=`echo "$ac_compile" | $SED \
7707
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7708
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7709
-e 's:$: $lt_compiler_flag:'`
7710
(eval echo "\"\$as_me:7710: $lt_compile\"" >&5)
7711
(eval "$lt_compile" 2>out/conftest.err)
7713
cat out/conftest.err >&5
7714
echo "$as_me:7714: \$? = $ac_status" >&5
7715
if (exit $ac_status) && test -s out/conftest2.$ac_objext
7717
# The compiler can only warn and ignore the option if not recognized
7718
# So say no if there are warnings
7719
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7720
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7721
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7722
lt_cv_prog_compiler_c_o=yes
7727
# SGI C++ compiler will create directory out/ii_files/ for
7728
# template instantiation
7729
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7730
$rm out/* && rmdir out
7736
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7737
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7740
hard_links="nottested"
7741
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7742
# do not overwrite the value of need_locks provided by the user
7743
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7744
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7747
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7749
ln conftest.a conftest.b 2>&5 || hard_links=no
7750
ln conftest.a conftest.b 2>/dev/null && hard_links=no
7751
{ echo "$as_me:$LINENO: result: $hard_links" >&5
7752
echo "${ECHO_T}$hard_links" >&6; }
7753
if test "$hard_links" = no; then
7754
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7755
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7762
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7763
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7766
allow_undefined_flag=
7767
enable_shared_with_static_runtimes=no
7769
archive_expsym_cmds=
7770
old_archive_From_new_cmds=
7771
old_archive_from_expsyms_cmds=
7772
export_dynamic_flag_spec=
7773
whole_archive_flag_spec=
7774
thread_safe_flag_spec=
7775
hardcode_libdir_flag_spec=
7776
hardcode_libdir_flag_spec_ld=
7777
hardcode_libdir_separator=
7780
hardcode_shlibpath_var=unsupported
7781
link_all_deplibs=unknown
7782
hardcode_automatic=no
7785
always_export_symbols=no
7786
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7787
# include_expsyms should be a list of space-separated symbols to be *always*
7788
# included in the symbol list
7790
# exclude_expsyms can be an extended regexp of symbols to exclude
7791
# it will be wrapped by ` (' and `)$', so one must not match beginning or
7792
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7793
# as well as any symbol that contains `d'.
7794
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7795
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7796
# platforms (ab)use it in PIC code, but their linkers get confused if
7797
# the symbol is explicitly referenced. Since portable code cannot
7798
# rely on this symbol name, it's probably fine to never include it in
7799
# preloaded symbol tables.
7800
extract_expsyms_cmds=
7801
# Just being paranoid about ensuring that cc_basename is set.
7802
for cc_temp in $compiler""; do
7804
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7805
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7810
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7813
cygwin* | mingw* | pw32*)
7814
# FIXME: the MSVC++ port hasn't been tested in a loooong time
7815
# When not using gcc, we currently assume that we are using
7816
# Microsoft Visual C++.
7817
if test "$GCC" != yes; then
7822
# we just hope/assume this is gcc and not c89 (= MSVC++)
7831
if test "$with_gnu_ld" = yes; then
7832
# If archive_cmds runs LD, not CC, wlarc should be empty
7835
# Set some defaults for GNU ld with shared library support. These
7836
# are reset later if shared libraries are not supported. Putting them
7837
# here allows them to be overridden if necessary.
7838
runpath_var=LD_RUN_PATH
7839
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7840
export_dynamic_flag_spec='${wl}--export-dynamic'
7841
# ancient GNU ld didn't support --whole-archive et. al.
7842
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7843
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7845
whole_archive_flag_spec=
7847
supports_anon_versioning=no
7848
case `$LD -v 2>/dev/null` in
7849
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7850
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7851
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7852
*\ 2.11.*) ;; # other 2.11 versions
7853
*) supports_anon_versioning=yes ;;
7856
# See if GNU ld supports shared libraries.
7858
aix3* | aix4* | aix5*)
7859
# On AIX/PPC, the GNU linker is very broken
7860
if test "$host_cpu" != ia64; then
7864
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7865
*** to be unable to reliably create shared libraries on AIX.
7866
*** Therefore, libtool is disabling shared libraries support. If you
7867
*** really care for shared libraries, you may want to modify your PATH
7868
*** so that a non-GNU linker is found, and then restart.
7875
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7876
hardcode_libdir_flag_spec='-L$libdir'
7877
hardcode_minus_L=yes
7879
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7880
# that the semantics of dynamic libraries on AmigaOS, at least up
7881
# to version 4, is to share data among multiple programs linked
7882
# with the same dynamic library. Since this doesn't match the
7883
# behavior of shared libraries on other platforms, we can't use
7889
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7890
allow_undefined_flag=unsupported
7891
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7892
# support --undefined. This deserves some investigation. FIXME
7893
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7899
cygwin* | mingw* | pw32*)
7900
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7901
# as there is no search path for DLLs.
7902
hardcode_libdir_flag_spec='-L$libdir'
7903
allow_undefined_flag=unsupported
7904
always_export_symbols=no
7905
enable_shared_with_static_runtimes=yes
7906
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7908
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7909
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7910
# If the export-symbols file already is a .def file (1st line
7911
# is EXPORTS), use it as is; otherwise, prepend...
7912
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7913
cp $export_symbols $output_objdir/$soname.def;
7915
echo EXPORTS > $output_objdir/$soname.def;
7916
cat $export_symbols >> $output_objdir/$soname.def;
7918
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7926
hardcode_shlibpath_var=no
7927
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7928
export_dynamic_flag_spec='${wl}-E'
7929
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7930
# Instead, shared libraries are loaded at an image base (0x10000000 by
7931
# default) and relocated if they conflict, which is a slow very memory
7932
# consuming and fragmenting process. To avoid this, we pick a random,
7933
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7934
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
7935
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7936
archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7939
gnu* | linux* | k*bsd*-gnu)
7940
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7942
case $cc_basename,$host_cpu in
7943
pgcc*) # Portland Group C compiler
7944
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7945
tmp_addflag=' $pic_flag'
7947
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7948
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7949
tmp_addflag=' $pic_flag -Mnomain' ;;
7950
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7951
tmp_addflag=' -i_dynamic' ;;
7952
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7953
tmp_addflag=' -i_dynamic -nofor_main' ;;
7954
ifc* | ifort*) # Intel Fortran compiler
7955
tmp_addflag=' -nofor_main' ;;
7957
case `$CC -V 2>&1 | sed 5q` in
7958
*Sun\ C*) # Sun C 5.9
7959
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7960
tmp_sharedflag='-G' ;;
7961
*Sun\ F*) # Sun Fortran 8.3
7962
tmp_sharedflag='-G' ;;
7964
tmp_sharedflag='-shared' ;;
7966
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7968
if test $supports_anon_versioning = yes; then
7969
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7970
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7971
$echo "local: *; };" >> $output_objdir/$libname.ver~
7972
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7980
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7981
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7984
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7985
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7990
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7994
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7995
*** create shared libraries on Solaris systems. Therefore, libtool
7996
*** is disabling shared libraries support. We urge you to upgrade GNU
7997
*** binutils to release 2.9.1 or newer. Another option is to modify
7998
*** your PATH or compiler configuration so that the native linker is
7999
*** used, and then restart.
8002
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8003
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8004
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8010
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8011
case `$LD -v 2>&1` in
8012
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8016
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8017
*** reliably create shared libraries on SCO systems. Therefore, libtool
8018
*** is disabling shared libraries support. We urge you to upgrade GNU
8019
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8020
*** your PATH or compiler configuration so that the native linker is
8021
*** used, and then restart.
8026
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8027
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8028
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8029
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8038
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8041
hardcode_shlibpath_var=no
8045
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8046
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8047
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8054
if test "$ld_shlibs" = no; then
8056
hardcode_libdir_flag_spec=
8057
export_dynamic_flag_spec=
8058
whole_archive_flag_spec=
8061
# PORTME fill in a description of your system's linker (not GNU ld)
8064
allow_undefined_flag=unsupported
8065
always_export_symbols=yes
8066
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8067
# Note: this linker hardcodes the directories in LIBPATH if there
8068
# are no directories specified by -L.
8069
hardcode_minus_L=yes
8070
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8071
# Neither direct hardcoding nor static linking is supported with a
8073
hardcode_direct=unsupported
8078
if test "$host_cpu" = ia64; then
8079
# On IA64, the linker does run time linking by default, so we don't
8080
# have to do anything special.
8081
aix_use_runtimelinking=no
8082
exp_sym_flag='-Bexport'
8085
# If we're using GNU nm, then we don't want the "-C" option.
8086
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8087
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8088
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8090
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8092
aix_use_runtimelinking=no
8094
# Test if we are trying to use run time linking or normal
8095
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8096
# need to do runtime linking.
8097
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8098
for ld_flag in $LDFLAGS; do
8099
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8100
aix_use_runtimelinking=yes
8107
exp_sym_flag='-bexport'
8108
no_entry_flag='-bnoentry'
8111
# When large executables or shared objects are built, AIX ld can
8112
# have problems creating the table of contents. If linking a library
8113
# or program results in "error TOC overflow" add -mminimal-toc to
8114
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8115
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8119
hardcode_libdir_separator=':'
8120
link_all_deplibs=yes
8122
if test "$GCC" = yes; then
8123
case $host_os in aix4.[012]|aix4.[012].*)
8124
# We only want to do this on AIX 4.2 and lower, the check
8125
# below for broken collect2 doesn't work under 4.3+
8126
collect2name=`${CC} -print-prog-name=collect2`
8127
if test -f "$collect2name" && \
8128
strings "$collect2name" | grep resolve_lib_name >/dev/null
8130
# We have reworked collect2
8133
# We have old collect2
8134
hardcode_direct=unsupported
8135
# It fails to find uninstalled libraries when the uninstalled
8136
# path is not listed in the libpath. Setting hardcode_minus_L
8137
# to unsupported forces relinking
8138
hardcode_minus_L=yes
8139
hardcode_libdir_flag_spec='-L$libdir'
8140
hardcode_libdir_separator=
8144
shared_flag='-shared'
8145
if test "$aix_use_runtimelinking" = yes; then
8146
shared_flag="$shared_flag "'${wl}-G'
8150
if test "$host_cpu" = ia64; then
8151
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8152
# chokes on -Wl,-G. The following line is correct:
8155
if test "$aix_use_runtimelinking" = yes; then
8156
shared_flag='${wl}-G'
8158
shared_flag='${wl}-bM:SRE'
8163
# It seems that -bexpall does not export symbols beginning with
8164
# underscore (_), so it is better to generate a list of symbols to export.
8165
always_export_symbols=yes
8166
if test "$aix_use_runtimelinking" = yes; then
8167
# Warning - without using the other runtime loading flags (-brtl),
8168
# -berok will link without error, but may produce a broken library.
8169
allow_undefined_flag='-berok'
8170
# Determine the default libpath from the value encoded in an empty executable.
8171
cat >conftest.$ac_ext <<_ACEOF
8174
cat confdefs.h >>conftest.$ac_ext
8175
cat >>conftest.$ac_ext <<_ACEOF
8176
/* end confdefs.h. */
8186
rm -f conftest.$ac_objext conftest$ac_exeext
8187
if { (ac_try="$ac_link"
8189
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8190
*) ac_try_echo=$ac_try;;
8192
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193
(eval "$ac_link") 2>conftest.er1
8195
grep -v '^ *+' conftest.er1 >conftest.err
8197
cat conftest.err >&5
8198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199
(exit $ac_status); } && {
8200
test -z "$ac_c_werror_flag" ||
8201
test ! -s conftest.err
8202
} && test -s conftest$ac_exeext &&
8203
$as_test_x conftest$ac_exeext; then
8205
lt_aix_libpath_sed='
8206
/Import File Strings/,/^$/ {
8212
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8213
# Check for a 64-bit object if we didn't find anything.
8214
if test -z "$aix_libpath"; then
8215
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8218
echo "$as_me: failed program was:" >&5
8219
sed 's/^/| /' conftest.$ac_ext >&5
8224
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8225
conftest$ac_exeext conftest.$ac_ext
8226
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8228
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8229
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8231
if test "$host_cpu" = ia64; then
8232
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8233
allow_undefined_flag="-z nodefs"
8234
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8236
# Determine the default libpath from the value encoded in an empty executable.
8237
cat >conftest.$ac_ext <<_ACEOF
8240
cat confdefs.h >>conftest.$ac_ext
8241
cat >>conftest.$ac_ext <<_ACEOF
8242
/* end confdefs.h. */
8252
rm -f conftest.$ac_objext conftest$ac_exeext
8253
if { (ac_try="$ac_link"
8255
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256
*) ac_try_echo=$ac_try;;
8258
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259
(eval "$ac_link") 2>conftest.er1
8261
grep -v '^ *+' conftest.er1 >conftest.err
8263
cat conftest.err >&5
8264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265
(exit $ac_status); } && {
8266
test -z "$ac_c_werror_flag" ||
8267
test ! -s conftest.err
8268
} && test -s conftest$ac_exeext &&
8269
$as_test_x conftest$ac_exeext; then
8271
lt_aix_libpath_sed='
8272
/Import File Strings/,/^$/ {
8278
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8279
# Check for a 64-bit object if we didn't find anything.
8280
if test -z "$aix_libpath"; then
8281
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8284
echo "$as_me: failed program was:" >&5
8285
sed 's/^/| /' conftest.$ac_ext >&5
8290
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8291
conftest$ac_exeext conftest.$ac_ext
8292
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8294
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8295
# Warning - without using the other run time loading flags,
8296
# -berok will link without error, but may produce a broken library.
8297
no_undefined_flag=' ${wl}-bernotok'
8298
allow_undefined_flag=' ${wl}-berok'
8299
# Exported symbols can be pulled into shared objects from archives
8300
whole_archive_flag_spec='$convenience'
8301
archive_cmds_need_lc=yes
8302
# This is similar to how AIX traditionally builds its shared libraries.
8303
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8309
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8310
hardcode_libdir_flag_spec='-L$libdir'
8311
hardcode_minus_L=yes
8312
# see comment about different semantics on the GNU ld section
8317
export_dynamic_flag_spec=-rdynamic
8320
cygwin* | mingw* | pw32*)
8321
# When not using gcc, we currently assume that we are using
8322
# Microsoft Visual C++.
8323
# hardcode_libdir_flag_spec is actually meaningless, as there is
8324
# no search path for DLLs.
8325
hardcode_libdir_flag_spec=' '
8326
allow_undefined_flag=unsupported
8327
# Tell ltmain to make .lib files, not .a files.
8329
# Tell ltmain to make .dll files, not .so files.
8331
# FIXME: Setting linknames here is a bad hack.
8332
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8333
# The linker will automatically build a .lib file if we build a DLL.
8334
old_archive_From_new_cmds='true'
8335
# FIXME: Should let the user specify the lib program.
8336
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8337
fix_srcfile_path='`cygpath -w "$srcfile"`'
8338
enable_shared_with_static_runtimes=yes
8341
darwin* | rhapsody*)
8343
rhapsody* | darwin1.[012])
8344
allow_undefined_flag='${wl}-undefined ${wl}suppress'
8347
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8348
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8350
case ${MACOSX_DEPLOYMENT_TARGET} in
8352
allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8355
allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8361
archive_cmds_need_lc=no
8363
hardcode_automatic=yes
8364
hardcode_shlibpath_var=unsupported
8365
whole_archive_flag_spec=''
8366
link_all_deplibs=yes
8367
if test "$GCC" = yes ; then
8368
output_verbose_link_cmd='echo'
8369
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8370
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8371
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8372
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8373
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8375
case $cc_basename in
8377
output_verbose_link_cmd='echo'
8378
archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8379
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8380
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8381
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8382
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8392
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8393
hardcode_libdir_flag_spec='-L$libdir'
8394
hardcode_shlibpath_var=no
8401
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8402
# support. Future versions do this automatically, but an explicit c++rt0.o
8403
# does not break anything, and helps significantly (at the cost of a little
8406
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8407
hardcode_libdir_flag_spec='-R$libdir'
8409
hardcode_shlibpath_var=no
8412
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
8414
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8416
hardcode_minus_L=yes
8417
hardcode_shlibpath_var=no
8420
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8421
freebsd* | dragonfly*)
8422
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8423
hardcode_libdir_flag_spec='-R$libdir'
8425
hardcode_shlibpath_var=no
8429
if test "$GCC" = yes; then
8430
archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8432
archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8434
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8435
hardcode_libdir_separator=:
8438
# hardcode_minus_L: Not really in the search PATH,
8439
# but as the default location of the library.
8440
hardcode_minus_L=yes
8441
export_dynamic_flag_spec='${wl}-E'
8445
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8446
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8448
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8450
if test "$with_gnu_ld" = no; then
8451
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8452
hardcode_libdir_separator=:
8455
export_dynamic_flag_spec='${wl}-E'
8457
# hardcode_minus_L: Not really in the search PATH,
8458
# but as the default location of the library.
8459
hardcode_minus_L=yes
8464
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8467
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8470
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8473
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8479
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8482
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8485
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8489
if test "$with_gnu_ld" = no; then
8490
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8491
hardcode_libdir_separator=:
8495
hardcode_libdir_flag_spec_ld='+b $libdir'
8497
hardcode_shlibpath_var=no
8501
export_dynamic_flag_spec='${wl}-E'
8503
# hardcode_minus_L: Not really in the search PATH,
8504
# but as the default location of the library.
8505
hardcode_minus_L=yes
8511
irix5* | irix6* | nonstopux*)
8512
if test "$GCC" = yes; then
8513
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8515
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8516
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8518
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8519
hardcode_libdir_separator=:
8520
link_all_deplibs=yes
8524
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8525
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8527
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8529
hardcode_libdir_flag_spec='-R$libdir'
8531
hardcode_shlibpath_var=no
8535
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8537
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8538
hardcode_libdir_separator=:
8539
hardcode_shlibpath_var=no
8543
if test -f /usr/libexec/ld.so; then
8545
hardcode_shlibpath_var=no
8546
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8547
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8548
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8549
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8550
export_dynamic_flag_spec='${wl}-E'
8553
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8554
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8555
hardcode_libdir_flag_spec='-R$libdir'
8558
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8559
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8569
hardcode_libdir_flag_spec='-L$libdir'
8570
hardcode_minus_L=yes
8571
allow_undefined_flag=unsupported
8572
archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8573
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8577
if test "$GCC" = yes; then
8578
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8579
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8581
allow_undefined_flag=' -expect_unresolved \*'
8582
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8584
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8585
hardcode_libdir_separator=:
8588
osf4* | osf5*) # as osf3* with the addition of -msym flag
8589
if test "$GCC" = yes; then
8590
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8591
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8592
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8594
allow_undefined_flag=' -expect_unresolved \*'
8595
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8596
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8597
$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'
8599
# Both c and cxx compiler support -rpath directly
8600
hardcode_libdir_flag_spec='-rpath $libdir'
8602
hardcode_libdir_separator=:
8606
no_undefined_flag=' -z text'
8607
if test "$GCC" = yes; then
8609
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8610
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8611
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8614
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8615
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8616
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8618
hardcode_libdir_flag_spec='-R$libdir'
8619
hardcode_shlibpath_var=no
8621
solaris2.[0-5] | solaris2.[0-5].*) ;;
8623
# The compiler driver will combine and reorder linker options,
8624
# but understands `-z linker_flag'. GCC discards it without `$wl',
8625
# but is careful enough not to reorder.
8626
# Supported since Solaris 2.6 (maybe 2.5.1?)
8627
if test "$GCC" = yes; then
8628
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8630
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8634
link_all_deplibs=yes
8638
if test "x$host_vendor" = xsequent; then
8639
# Use $CC to link under sequent, because it throws in some extra .o
8640
# files that make .init and .fini sections work.
8641
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8643
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8645
hardcode_libdir_flag_spec='-L$libdir'
8647
hardcode_minus_L=yes
8648
hardcode_shlibpath_var=no
8652
case $host_vendor in
8654
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8655
hardcode_direct=yes # is this really true???
8658
## LD is ld it makes a PLAMLIB
8659
## CC just makes a GrossModule.
8660
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8661
reload_cmds='$CC -r -o $output$reload_objs'
8665
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8666
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8669
runpath_var='LD_RUN_PATH'
8670
hardcode_shlibpath_var=no
8674
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8675
hardcode_shlibpath_var=no
8676
export_dynamic_flag_spec='-Bexport'
8680
if test -d /usr/nec; then
8681
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8682
hardcode_shlibpath_var=no
8683
runpath_var=LD_RUN_PATH
8684
hardcode_runpath_var=yes
8689
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8690
no_undefined_flag='${wl}-z,text'
8691
archive_cmds_need_lc=no
8692
hardcode_shlibpath_var=no
8693
runpath_var='LD_RUN_PATH'
8695
if test "$GCC" = yes; then
8696
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8697
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8699
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8700
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8704
sysv5* | sco3.2v5* | sco5v6*)
8705
# Note: We can NOT use -z defs as we might desire, because we do not
8706
# link with -lc, and that would cause any symbols used from libc to
8707
# always be unresolved, which means just about no library would
8708
# ever link correctly. If we're not using GNU ld we use -z text
8709
# though, which does catch some bad symbols but isn't as heavy-handed
8711
no_undefined_flag='${wl}-z,text'
8712
allow_undefined_flag='${wl}-z,nodefs'
8713
archive_cmds_need_lc=no
8714
hardcode_shlibpath_var=no
8715
hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8716
hardcode_libdir_separator=':'
8717
link_all_deplibs=yes
8718
export_dynamic_flag_spec='${wl}-Bexport'
8719
runpath_var='LD_RUN_PATH'
8721
if test "$GCC" = yes; then
8722
archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8723
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8725
archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8726
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8731
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8732
hardcode_libdir_flag_spec='-L$libdir'
8733
hardcode_shlibpath_var=no
8742
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8743
echo "${ECHO_T}$ld_shlibs" >&6; }
8744
test "$ld_shlibs" = no && can_build_shared=no
8747
# Do we need to explicitly link libc?
8749
case "x$archive_cmds_need_lc" in
8751
# Assume -lc should be added
8752
archive_cmds_need_lc=yes
8754
if test "$enable_shared" = yes && test "$GCC" = yes; then
8755
case $archive_cmds in
8757
# FIXME: we may have to deal with multi-command sequences.
8760
# Test whether the compiler implicitly links with -lc since on some
8761
# systems, -lgcc has to come before -lc. If gcc already passes -lc
8762
# to ld, don't add -lc before -lgcc.
8763
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8764
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8766
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8768
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8769
(eval $ac_compile) 2>&5
8771
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772
(exit $ac_status); } 2>conftest.err; then
8775
libobjs=conftest.$ac_objext
8777
wl=$lt_prog_compiler_wl
8778
pic_flag=$lt_prog_compiler_pic
8784
lt_save_allow_undefined_flag=$allow_undefined_flag
8785
allow_undefined_flag=
8786
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8787
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790
(exit $ac_status); }
8792
archive_cmds_need_lc=no
8794
archive_cmds_need_lc=yes
8796
allow_undefined_flag=$lt_save_allow_undefined_flag
8798
cat conftest.err 1>&5
8801
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8802
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8809
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8810
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8812
libname_spec='lib$name'
8820
shlibpath_overrides_runpath=unknown
8822
dynamic_linker="$host_os ld.so"
8823
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8825
if test "$GCC" = yes; then
8827
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8828
*) lt_awk_arg="/^libraries:/" ;;
8830
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8831
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8832
# if the path contains ";" then we assume it to be the separator
8833
# otherwise default to the standard path separator (i.e. ":") - it is
8834
# assumed that no part of a normal pathname contains ";" but that should
8835
# okay in the real world where ";" in dirpaths is itself problematic.
8836
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8838
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8840
# Ok, now we have the path, separated by spaces, we can step through it
8841
# and add multilib dir if necessary.
8842
lt_tmp_lt_search_path_spec=
8843
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8844
for lt_sys_path in $lt_search_path_spec; do
8845
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8846
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8848
test -d "$lt_sys_path" && \
8849
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8852
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8853
BEGIN {RS=" "; FS="/|\n";} {
8856
for (lt_i = NF; lt_i > 0; lt_i--) {
8857
if ($lt_i != "" && $lt_i != ".") {
8858
if ($lt_i == "..") {
8861
if (lt_count == 0) {
8862
lt_foo="/" $lt_i lt_foo;
8869
if (lt_foo != "") { lt_freq[lt_foo]++; }
8870
if (lt_freq[lt_foo] == 1) { print lt_foo; }
8872
sys_lib_search_path_spec=`echo $lt_search_path_spec`
8874
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8876
need_lib_prefix=unknown
8877
hardcode_into_libs=no
8879
# when you set need_version to no, make sure it does not cause -set_version
8880
# flags to be left without arguments
8881
need_version=unknown
8886
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8887
shlibpath_var=LIBPATH
8889
# AIX 3 has no versioning support, so we append a major version to the name.
8890
soname_spec='${libname}${release}${shared_ext}$major'
8897
hardcode_into_libs=yes
8898
if test "$host_cpu" = ia64; then
8899
# AIX 5 supports IA64
8900
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8901
shlibpath_var=LD_LIBRARY_PATH
8903
# With GCC up to 2.95.x, collect2 would create an import file
8904
# for dependence libraries. The import file would start with
8905
# the line `#! .'. This would cause the generated library to
8906
# depend on `.', always an invalid library. This was fixed in
8907
# development snapshots of GCC prior to 3.0.
8909
aix4 | aix4.[01] | aix4.[01].*)
8910
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8912
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8919
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8920
# soname into executable. Probably we can add versioning support to
8921
# collect2, so additional links can be useful in future.
8922
if test "$aix_use_runtimelinking" = yes; then
8923
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
8924
# instead of lib<name>.a to let people know that these are not
8925
# typical AIX shared libraries.
8926
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8928
# We preserve .a as extension for shared libraries through AIX4.2
8929
# and later when we are not doing run time linking.
8930
library_names_spec='${libname}${release}.a $libname.a'
8931
soname_spec='${libname}${release}${shared_ext}$major'
8933
shlibpath_var=LIBPATH
8938
library_names_spec='$libname.ixlibrary $libname.a'
8939
# Create ${libname}_ixlibrary.a entries in /sys/libs.
8940
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'
8944
library_names_spec='${libname}${shared_ext}'
8945
dynamic_linker="$host_os ld.so"
8946
shlibpath_var=LIBRARY_PATH
8952
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8953
soname_spec='${libname}${release}${shared_ext}$major'
8954
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8955
shlibpath_var=LD_LIBRARY_PATH
8956
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8957
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8958
# the default ld.so.conf also contains /usr/contrib/lib and
8959
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8960
# libtool to hard-code these into programs
8963
cygwin* | mingw* | pw32*)
8964
version_type=windows
8969
case $GCC,$host_os in
8970
yes,cygwin* | yes,mingw* | yes,pw32*)
8971
library_names_spec='$libname.dll.a'
8972
# DLL is installed to $(libdir)/../bin by postinstall_cmds
8973
postinstall_cmds='base_file=`basename \${file}`~
8974
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8975
dldir=$destdir/`dirname \$dlpath`~
8976
test -d \$dldir || mkdir -p \$dldir~
8977
$install_prog $dir/$dlname \$dldir/$dlname~
8978
chmod a+x \$dldir/$dlname'
8979
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8980
dlpath=$dir/\$dldll~
8982
shlibpath_overrides_runpath=yes
8986
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
8987
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8988
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8991
# MinGW DLLs use traditional 'lib' prefix
8992
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8993
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8994
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8995
# It is most probably a Windows format PATH printed by
8996
# mingw gcc, but we are running on Cygwin. Gcc prints its search
8997
# path with ; separators, and with drive letters. We can handle the
8998
# drive letters (cygwin fileutils understands them), so leave them,
8999
# especially as we might pass files found there to a mingw objdump,
9000
# which wouldn't understand a cygwinified path. Ahh.
9001
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9003
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9007
# pw32 DLLs use 'pw' prefix rather than 'lib'
9008
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9014
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9017
dynamic_linker='Win32 ld.exe'
9018
# FIXME: first we should search . and the directory the executable is in
9022
darwin* | rhapsody*)
9023
dynamic_linker="$host_os dyld"
9027
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9028
soname_spec='${libname}${release}${major}$shared_ext'
9029
shlibpath_overrides_runpath=yes
9030
shlibpath_var=DYLD_LIBRARY_PATH
9031
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9033
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9034
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9041
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9042
soname_spec='${libname}${release}${shared_ext}$major'
9043
shlibpath_var=LD_LIBRARY_PATH
9050
freebsd* | dragonfly*)
9051
# DragonFly does not have aout. When/if they implement a new
9052
# versioning mechanism, adjust this.
9053
if test -x /usr/bin/objformat; then
9054
objformat=`/usr/bin/objformat`
9057
freebsd[123]*) objformat=aout ;;
9061
# Handle Gentoo/FreeBSD as it was Linux
9062
case $host_vendor in
9064
version_type=linux ;;
9066
version_type=freebsd-$objformat ;;
9069
case $version_type in
9071
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9076
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9080
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9081
soname_spec='${libname}${release}${shared_ext}$major'
9086
shlibpath_var=LD_LIBRARY_PATH
9089
shlibpath_overrides_runpath=yes
9091
freebsd3.[01]* | freebsdelf3.[01]*)
9092
shlibpath_overrides_runpath=yes
9093
hardcode_into_libs=yes
9095
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9096
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9097
shlibpath_overrides_runpath=no
9098
hardcode_into_libs=yes
9100
*) # from 4.6 on, and DragonFly
9101
shlibpath_overrides_runpath=yes
9102
hardcode_into_libs=yes
9111
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9112
soname_spec='${libname}${release}${shared_ext}$major'
9113
shlibpath_var=LD_LIBRARY_PATH
9114
hardcode_into_libs=yes
9117
hpux9* | hpux10* | hpux11*)
9118
# Give a soname corresponding to the major version so that dld.sl refuses to
9119
# link against other versions.
9126
hardcode_into_libs=yes
9127
dynamic_linker="$host_os dld.so"
9128
shlibpath_var=LD_LIBRARY_PATH
9129
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9130
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9131
soname_spec='${libname}${release}${shared_ext}$major'
9132
if test "X$HPUX_IA64_MODE" = X32; then
9133
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9135
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9137
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9141
hardcode_into_libs=yes
9142
dynamic_linker="$host_os dld.sl"
9143
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9144
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9145
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9146
soname_spec='${libname}${release}${shared_ext}$major'
9147
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9148
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9152
dynamic_linker="$host_os dld.sl"
9153
shlibpath_var=SHLIB_PATH
9154
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9155
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9156
soname_spec='${libname}${release}${shared_ext}$major'
9159
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9160
postinstall_cmds='chmod 555 $lib'
9167
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9168
soname_spec='${libname}${release}${shared_ext}$major'
9169
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9170
shlibpath_var=LD_LIBRARY_PATH
9171
shlibpath_overrides_runpath=no
9172
hardcode_into_libs=yes
9175
irix5* | irix6* | nonstopux*)
9177
nonstopux*) version_type=nonstopux ;;
9179
if test "$lt_cv_prog_gnu_ld" = yes; then
9187
soname_spec='${libname}${release}${shared_ext}$major'
9188
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9190
irix5* | nonstopux*)
9194
case $LD in # libtool.m4 will add one of these switches to LD
9195
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9196
libsuff= shlibsuff= libmagic=32-bit;;
9197
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9198
libsuff=32 shlibsuff=N32 libmagic=N32;;
9199
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9200
libsuff=64 shlibsuff=64 libmagic=64-bit;;
9201
*) libsuff= shlibsuff= libmagic=never-match;;
9205
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9206
shlibpath_overrides_runpath=no
9207
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9208
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9209
hardcode_into_libs=yes
9212
# No shared lib support for Linux oldld, aout, or coff.
9213
linux*oldld* | linux*aout* | linux*coff*)
9217
# This must be Linux ELF.
9218
linux* | k*bsd*-gnu)
9222
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9223
soname_spec='${libname}${release}${shared_ext}$major'
9224
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9225
shlibpath_var=LD_LIBRARY_PATH
9226
shlibpath_overrides_runpath=no
9227
# This implies no fast_install, which is unacceptable.
9228
# Some rework will be needed to allow for fast_install
9229
# before this can be enabled.
9230
hardcode_into_libs=yes
9232
# Append ld.so.conf contents to the search path
9233
if test -f /etc/ld.so.conf; then
9234
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9235
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9238
# We used to test for /lib/ld.so.1 and disable shared libraries on
9239
# powerpc, because MkLinux only supported shared libraries with the
9240
# GNU dynamic linker. Since this was broken with cross compilers,
9241
# most powerpc-linux boxes support dynamic linking these days and
9242
# people can always --disable-shared, the test was removed, and we
9243
# assume the GNU/Linux dynamic linker is in use.
9244
dynamic_linker='GNU/Linux ld.so'
9251
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9252
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9253
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9254
dynamic_linker='NetBSD (a.out) ld.so'
9256
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9257
soname_spec='${libname}${release}${shared_ext}$major'
9258
dynamic_linker='NetBSD ld.elf_so'
9260
shlibpath_var=LD_LIBRARY_PATH
9261
shlibpath_overrides_runpath=yes
9262
hardcode_into_libs=yes
9267
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9268
shlibpath_var=LD_LIBRARY_PATH
9269
shlibpath_overrides_runpath=yes
9276
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9277
soname_spec='${libname}${release}${shared_ext}$major'
9278
shlibpath_var=LD_LIBRARY_PATH
9279
shlibpath_overrides_runpath=yes
9284
sys_lib_dlsearch_path_spec="/usr/lib"
9286
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9288
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9289
*) need_version=no ;;
9291
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9292
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9293
shlibpath_var=LD_LIBRARY_PATH
9294
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9296
openbsd2.[89] | openbsd2.[89].*)
9297
shlibpath_overrides_runpath=no
9300
shlibpath_overrides_runpath=yes
9304
shlibpath_overrides_runpath=yes
9309
libname_spec='$name'
9312
library_names_spec='$libname${shared_ext} $libname.a'
9313
dynamic_linker='OS/2 ld.exe'
9314
shlibpath_var=LIBPATH
9317
osf3* | osf4* | osf5*)
9321
soname_spec='${libname}${release}${shared_ext}$major'
9322
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9323
shlibpath_var=LD_LIBRARY_PATH
9324
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9325
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9336
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9337
soname_spec='${libname}${release}${shared_ext}$major'
9338
shlibpath_var=LD_LIBRARY_PATH
9339
shlibpath_overrides_runpath=yes
9340
hardcode_into_libs=yes
9341
# ldd complains unless libraries are executable
9342
postinstall_cmds='chmod +x $lib'
9347
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9348
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9349
shlibpath_var=LD_LIBRARY_PATH
9350
shlibpath_overrides_runpath=yes
9351
if test "$with_gnu_ld" = yes; then
9359
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9360
soname_spec='${libname}${release}${shared_ext}$major'
9361
shlibpath_var=LD_LIBRARY_PATH
9362
case $host_vendor in
9364
shlibpath_overrides_runpath=no
9366
export_dynamic_flag_spec='${wl}-Blargedynsym'
9367
runpath_var=LD_RUN_PATH
9375
shlibpath_overrides_runpath=no
9376
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9382
if test -d /usr/nec ;then
9384
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9385
soname_spec='$libname${shared_ext}.$major'
9386
shlibpath_var=LD_LIBRARY_PATH
9390
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9391
version_type=freebsd-elf
9394
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9395
soname_spec='${libname}${release}${shared_ext}$major'
9396
shlibpath_var=LD_LIBRARY_PATH
9397
hardcode_into_libs=yes
9398
if test "$with_gnu_ld" = yes; then
9399
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9400
shlibpath_overrides_runpath=no
9402
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9403
shlibpath_overrides_runpath=yes
9406
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9410
sys_lib_dlsearch_path_spec='/usr/lib'
9415
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9416
soname_spec='${libname}${release}${shared_ext}$major'
9417
shlibpath_var=LD_LIBRARY_PATH
9424
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9425
echo "${ECHO_T}$dynamic_linker" >&6; }
9426
test "$dynamic_linker" = no && can_build_shared=no
9428
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9429
if test "$GCC" = yes; then
9430
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9433
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9434
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9436
if test -n "$hardcode_libdir_flag_spec" || \
9437
test -n "$runpath_var" || \
9438
test "X$hardcode_automatic" = "Xyes" ; then
9440
# We can hardcode non-existant directories.
9441
if test "$hardcode_direct" != no &&
9442
# If the only mechanism to avoid hardcoding is shlibpath_var, we
9443
# have to relink, otherwise we might link with an installed library
9444
# when we should be linking with a yet-to-be-installed one
9445
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9446
test "$hardcode_minus_L" != no; then
9447
# Linking always hardcodes the temporary library directory.
9448
hardcode_action=relink
9450
# We can link without hardcoding, and we can hardcode nonexisting dirs.
9451
hardcode_action=immediate
9454
# We cannot hardcode anything, or else we can only hardcode existing
9456
hardcode_action=unsupported
9458
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9459
echo "${ECHO_T}$hardcode_action" >&6; }
9461
if test "$hardcode_action" = relink; then
9462
# Fast installation is not supported
9463
enable_fast_install=no
9464
elif test "$shlibpath_overrides_runpath" = yes ||
9465
test "$enable_shared" = no; then
9466
# Fast installation is not necessary
9467
enable_fast_install=needless
9472
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9473
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9474
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9475
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9476
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9477
{ echo "$as_me:$LINENO: result: yes" >&5
9478
echo "${ECHO_T}yes" >&6; }
9480
# FIXME - insert some real tests, host_os isn't really good enough
9483
if test -n "$STRIP" ; then
9484
striplib="$STRIP -x"
9485
old_striplib="$STRIP -S"
9486
{ echo "$as_me:$LINENO: result: yes" >&5
9487
echo "${ECHO_T}yes" >&6; }
9489
{ echo "$as_me:$LINENO: result: no" >&5
9490
echo "${ECHO_T}no" >&6; }
9494
{ echo "$as_me:$LINENO: result: no" >&5
9495
echo "${ECHO_T}no" >&6; }
9500
if test "x$enable_dlopen" != xyes; then
9501
enable_dlopen=unknown
9502
enable_dlopen_self=unknown
9503
enable_dlopen_self_static=unknown
9510
lt_cv_dlopen="load_add_on"
9512
lt_cv_dlopen_self=yes
9516
lt_cv_dlopen="LoadLibrary"
9521
lt_cv_dlopen="dlopen"
9526
# if libdl is installed we need to link against it
9527
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9528
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9529
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9530
echo $ECHO_N "(cached) $ECHO_C" >&6
9532
ac_check_lib_save_LIBS=$LIBS
9534
cat >conftest.$ac_ext <<_ACEOF
9537
cat confdefs.h >>conftest.$ac_ext
9538
cat >>conftest.$ac_ext <<_ACEOF
9539
/* end confdefs.h. */
9541
/* Override any GCC internal prototype to avoid an error.
9542
Use char because int might match the return type of a GCC
9543
builtin and then its argument prototype would still apply. */
9556
rm -f conftest.$ac_objext conftest$ac_exeext
9557
if { (ac_try="$ac_link"
9559
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560
*) ac_try_echo=$ac_try;;
9562
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9563
(eval "$ac_link") 2>conftest.er1
9565
grep -v '^ *+' conftest.er1 >conftest.err
9567
cat conftest.err >&5
9568
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569
(exit $ac_status); } && {
9570
test -z "$ac_c_werror_flag" ||
9571
test ! -s conftest.err
9572
} && test -s conftest$ac_exeext &&
9573
$as_test_x conftest$ac_exeext; then
9574
ac_cv_lib_dl_dlopen=yes
9576
echo "$as_me: failed program was:" >&5
9577
sed 's/^/| /' conftest.$ac_ext >&5
9579
ac_cv_lib_dl_dlopen=no
9582
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9583
conftest$ac_exeext conftest.$ac_ext
9584
LIBS=$ac_check_lib_save_LIBS
9586
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9587
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9588
if test $ac_cv_lib_dl_dlopen = yes; then
9589
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9594
lt_cv_dlopen_self=yes
9601
{ echo "$as_me:$LINENO: checking for shl_load" >&5
9602
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9603
if test "${ac_cv_func_shl_load+set}" = set; then
9604
echo $ECHO_N "(cached) $ECHO_C" >&6
9606
cat >conftest.$ac_ext <<_ACEOF
9609
cat confdefs.h >>conftest.$ac_ext
9610
cat >>conftest.$ac_ext <<_ACEOF
9611
/* end confdefs.h. */
9612
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9613
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9614
#define shl_load innocuous_shl_load
9616
/* System header to define __stub macros and hopefully few prototypes,
9617
which can conflict with char shl_load (); below.
9618
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9619
<limits.h> exists even on freestanding compilers. */
9622
# include <limits.h>
9624
# include <assert.h>
9629
/* Override any GCC internal prototype to avoid an error.
9630
Use char because int might match the return type of a GCC
9631
builtin and then its argument prototype would still apply. */
9636
/* The GNU C library defines this for functions which it implements
9637
to always fail with ENOSYS. Some functions are actually named
9638
something starting with __ and the normal name is an alias. */
9639
#if defined __stub_shl_load || defined __stub___shl_load
9651
rm -f conftest.$ac_objext conftest$ac_exeext
9652
if { (ac_try="$ac_link"
9654
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9655
*) ac_try_echo=$ac_try;;
9657
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9658
(eval "$ac_link") 2>conftest.er1
9660
grep -v '^ *+' conftest.er1 >conftest.err
9662
cat conftest.err >&5
9663
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664
(exit $ac_status); } && {
9665
test -z "$ac_c_werror_flag" ||
9666
test ! -s conftest.err
9667
} && test -s conftest$ac_exeext &&
9668
$as_test_x conftest$ac_exeext; then
9669
ac_cv_func_shl_load=yes
9671
echo "$as_me: failed program was:" >&5
9672
sed 's/^/| /' conftest.$ac_ext >&5
9674
ac_cv_func_shl_load=no
9677
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9678
conftest$ac_exeext conftest.$ac_ext
9680
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9681
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9682
if test $ac_cv_func_shl_load = yes; then
9683
lt_cv_dlopen="shl_load"
9685
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9686
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9687
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9688
echo $ECHO_N "(cached) $ECHO_C" >&6
9690
ac_check_lib_save_LIBS=$LIBS
9692
cat >conftest.$ac_ext <<_ACEOF
9695
cat confdefs.h >>conftest.$ac_ext
9696
cat >>conftest.$ac_ext <<_ACEOF
9697
/* end confdefs.h. */
9699
/* Override any GCC internal prototype to avoid an error.
9700
Use char because int might match the return type of a GCC
9701
builtin and then its argument prototype would still apply. */
9714
rm -f conftest.$ac_objext conftest$ac_exeext
9715
if { (ac_try="$ac_link"
9717
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9718
*) ac_try_echo=$ac_try;;
9720
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9721
(eval "$ac_link") 2>conftest.er1
9723
grep -v '^ *+' conftest.er1 >conftest.err
9725
cat conftest.err >&5
9726
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727
(exit $ac_status); } && {
9728
test -z "$ac_c_werror_flag" ||
9729
test ! -s conftest.err
9730
} && test -s conftest$ac_exeext &&
9731
$as_test_x conftest$ac_exeext; then
9732
ac_cv_lib_dld_shl_load=yes
9734
echo "$as_me: failed program was:" >&5
9735
sed 's/^/| /' conftest.$ac_ext >&5
9737
ac_cv_lib_dld_shl_load=no
9740
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9741
conftest$ac_exeext conftest.$ac_ext
9742
LIBS=$ac_check_lib_save_LIBS
9744
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9745
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9746
if test $ac_cv_lib_dld_shl_load = yes; then
9747
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9749
{ echo "$as_me:$LINENO: checking for dlopen" >&5
9750
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9751
if test "${ac_cv_func_dlopen+set}" = set; then
9752
echo $ECHO_N "(cached) $ECHO_C" >&6
9754
cat >conftest.$ac_ext <<_ACEOF
9757
cat confdefs.h >>conftest.$ac_ext
9758
cat >>conftest.$ac_ext <<_ACEOF
9759
/* end confdefs.h. */
9760
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9761
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9762
#define dlopen innocuous_dlopen
9764
/* System header to define __stub macros and hopefully few prototypes,
9765
which can conflict with char dlopen (); below.
9766
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9767
<limits.h> exists even on freestanding compilers. */
9770
# include <limits.h>
9772
# include <assert.h>
9777
/* Override any GCC internal prototype to avoid an error.
9778
Use char because int might match the return type of a GCC
9779
builtin and then its argument prototype would still apply. */
9784
/* The GNU C library defines this for functions which it implements
9785
to always fail with ENOSYS. Some functions are actually named
9786
something starting with __ and the normal name is an alias. */
9787
#if defined __stub_dlopen || defined __stub___dlopen
9799
rm -f conftest.$ac_objext conftest$ac_exeext
9800
if { (ac_try="$ac_link"
9802
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9803
*) ac_try_echo=$ac_try;;
9805
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806
(eval "$ac_link") 2>conftest.er1
9808
grep -v '^ *+' conftest.er1 >conftest.err
9810
cat conftest.err >&5
9811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812
(exit $ac_status); } && {
9813
test -z "$ac_c_werror_flag" ||
9814
test ! -s conftest.err
9815
} && test -s conftest$ac_exeext &&
9816
$as_test_x conftest$ac_exeext; then
9817
ac_cv_func_dlopen=yes
9819
echo "$as_me: failed program was:" >&5
9820
sed 's/^/| /' conftest.$ac_ext >&5
9822
ac_cv_func_dlopen=no
9825
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9826
conftest$ac_exeext conftest.$ac_ext
9828
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9829
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9830
if test $ac_cv_func_dlopen = yes; then
9831
lt_cv_dlopen="dlopen"
9833
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9834
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9835
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9836
echo $ECHO_N "(cached) $ECHO_C" >&6
9838
ac_check_lib_save_LIBS=$LIBS
9840
cat >conftest.$ac_ext <<_ACEOF
9843
cat confdefs.h >>conftest.$ac_ext
9844
cat >>conftest.$ac_ext <<_ACEOF
9845
/* end confdefs.h. */
9847
/* Override any GCC internal prototype to avoid an error.
9848
Use char because int might match the return type of a GCC
9849
builtin and then its argument prototype would still apply. */
9862
rm -f conftest.$ac_objext conftest$ac_exeext
9863
if { (ac_try="$ac_link"
9865
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866
*) ac_try_echo=$ac_try;;
9868
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869
(eval "$ac_link") 2>conftest.er1
9871
grep -v '^ *+' conftest.er1 >conftest.err
9873
cat conftest.err >&5
9874
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875
(exit $ac_status); } && {
9876
test -z "$ac_c_werror_flag" ||
9877
test ! -s conftest.err
9878
} && test -s conftest$ac_exeext &&
9879
$as_test_x conftest$ac_exeext; then
9880
ac_cv_lib_dl_dlopen=yes
9882
echo "$as_me: failed program was:" >&5
9883
sed 's/^/| /' conftest.$ac_ext >&5
9885
ac_cv_lib_dl_dlopen=no
9888
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9889
conftest$ac_exeext conftest.$ac_ext
9890
LIBS=$ac_check_lib_save_LIBS
9892
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9893
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9894
if test $ac_cv_lib_dl_dlopen = yes; then
9895
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9897
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9898
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9899
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9900
echo $ECHO_N "(cached) $ECHO_C" >&6
9902
ac_check_lib_save_LIBS=$LIBS
9904
cat >conftest.$ac_ext <<_ACEOF
9907
cat confdefs.h >>conftest.$ac_ext
9908
cat >>conftest.$ac_ext <<_ACEOF
9909
/* end confdefs.h. */
9911
/* Override any GCC internal prototype to avoid an error.
9912
Use char because int might match the return type of a GCC
9913
builtin and then its argument prototype would still apply. */
9926
rm -f conftest.$ac_objext conftest$ac_exeext
9927
if { (ac_try="$ac_link"
9929
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9930
*) ac_try_echo=$ac_try;;
9932
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9933
(eval "$ac_link") 2>conftest.er1
9935
grep -v '^ *+' conftest.er1 >conftest.err
9937
cat conftest.err >&5
9938
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939
(exit $ac_status); } && {
9940
test -z "$ac_c_werror_flag" ||
9941
test ! -s conftest.err
9942
} && test -s conftest$ac_exeext &&
9943
$as_test_x conftest$ac_exeext; then
9944
ac_cv_lib_svld_dlopen=yes
9946
echo "$as_me: failed program was:" >&5
9947
sed 's/^/| /' conftest.$ac_ext >&5
9949
ac_cv_lib_svld_dlopen=no
9952
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9953
conftest$ac_exeext conftest.$ac_ext
9954
LIBS=$ac_check_lib_save_LIBS
9956
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9957
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9958
if test $ac_cv_lib_svld_dlopen = yes; then
9959
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9961
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9962
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9963
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9964
echo $ECHO_N "(cached) $ECHO_C" >&6
9966
ac_check_lib_save_LIBS=$LIBS
9968
cat >conftest.$ac_ext <<_ACEOF
9971
cat confdefs.h >>conftest.$ac_ext
9972
cat >>conftest.$ac_ext <<_ACEOF
9973
/* end confdefs.h. */
9975
/* Override any GCC internal prototype to avoid an error.
9976
Use char because int might match the return type of a GCC
9977
builtin and then its argument prototype would still apply. */
9990
rm -f conftest.$ac_objext conftest$ac_exeext
9991
if { (ac_try="$ac_link"
9993
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994
*) ac_try_echo=$ac_try;;
9996
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997
(eval "$ac_link") 2>conftest.er1
9999
grep -v '^ *+' conftest.er1 >conftest.err
10001
cat conftest.err >&5
10002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003
(exit $ac_status); } && {
10004
test -z "$ac_c_werror_flag" ||
10005
test ! -s conftest.err
10006
} && test -s conftest$ac_exeext &&
10007
$as_test_x conftest$ac_exeext; then
10008
ac_cv_lib_dld_dld_link=yes
10010
echo "$as_me: failed program was:" >&5
10011
sed 's/^/| /' conftest.$ac_ext >&5
10013
ac_cv_lib_dld_dld_link=no
10016
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10017
conftest$ac_exeext conftest.$ac_ext
10018
LIBS=$ac_check_lib_save_LIBS
10020
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10021
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10022
if test $ac_cv_lib_dld_dld_link = yes; then
10023
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10044
if test "x$lt_cv_dlopen" != xno; then
10050
case $lt_cv_dlopen in
10052
save_CPPFLAGS="$CPPFLAGS"
10053
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10055
save_LDFLAGS="$LDFLAGS"
10056
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10059
LIBS="$lt_cv_dlopen_libs $LIBS"
10061
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10062
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10063
if test "${lt_cv_dlopen_self+set}" = set; then
10064
echo $ECHO_N "(cached) $ECHO_C" >&6
10066
if test "$cross_compiling" = yes; then :
10067
lt_cv_dlopen_self=cross
10069
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10070
lt_status=$lt_dlunknown
10071
cat > conftest.$ac_ext <<EOF
10072
#line 10072 "configure"
10073
#include "confdefs.h"
10082
# define LT_DLGLOBAL RTLD_GLOBAL
10085
# define LT_DLGLOBAL DL_GLOBAL
10087
# define LT_DLGLOBAL 0
10091
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10092
find out it does not work in some platform. */
10093
#ifndef LT_DLLAZY_OR_NOW
10095
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10098
# define LT_DLLAZY_OR_NOW DL_LAZY
10101
# define LT_DLLAZY_OR_NOW RTLD_NOW
10104
# define LT_DLLAZY_OR_NOW DL_NOW
10106
# define LT_DLLAZY_OR_NOW 0
10114
extern "C" void exit (int);
10117
void fnord() { int i=42;}
10120
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10121
int status = $lt_dlunknown;
10125
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10126
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10127
/* dlclose (self); */
10135
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10136
(eval $ac_link) 2>&5
10138
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10140
(./conftest; exit; ) >&5 2>/dev/null
10142
case x$lt_status in
10143
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10144
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10145
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10148
# compilation failed
10149
lt_cv_dlopen_self=no
10156
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10157
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10159
if test "x$lt_cv_dlopen_self" = xyes; then
10160
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10161
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10162
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10163
if test "${lt_cv_dlopen_self_static+set}" = set; then
10164
echo $ECHO_N "(cached) $ECHO_C" >&6
10166
if test "$cross_compiling" = yes; then :
10167
lt_cv_dlopen_self_static=cross
10169
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10170
lt_status=$lt_dlunknown
10171
cat > conftest.$ac_ext <<EOF
10172
#line 10172 "configure"
10173
#include "confdefs.h"
10182
# define LT_DLGLOBAL RTLD_GLOBAL
10185
# define LT_DLGLOBAL DL_GLOBAL
10187
# define LT_DLGLOBAL 0
10191
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10192
find out it does not work in some platform. */
10193
#ifndef LT_DLLAZY_OR_NOW
10195
# define LT_DLLAZY_OR_NOW RTLD_LAZY
10198
# define LT_DLLAZY_OR_NOW DL_LAZY
10201
# define LT_DLLAZY_OR_NOW RTLD_NOW
10204
# define LT_DLLAZY_OR_NOW DL_NOW
10206
# define LT_DLLAZY_OR_NOW 0
10214
extern "C" void exit (int);
10217
void fnord() { int i=42;}
10220
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10221
int status = $lt_dlunknown;
10225
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10226
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10227
/* dlclose (self); */
10235
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10236
(eval $ac_link) 2>&5
10238
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10240
(./conftest; exit; ) >&5 2>/dev/null
10242
case x$lt_status in
10243
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10244
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10245
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10248
# compilation failed
10249
lt_cv_dlopen_self_static=no
10256
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10257
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10260
CPPFLAGS="$save_CPPFLAGS"
10261
LDFLAGS="$save_LDFLAGS"
10266
case $lt_cv_dlopen_self in
10267
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10268
*) enable_dlopen_self=unknown ;;
10271
case $lt_cv_dlopen_self_static in
10272
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10273
*) enable_dlopen_self_static=unknown ;;
10278
# Report which library types will actually be built
10279
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10280
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10281
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10282
echo "${ECHO_T}$can_build_shared" >&6; }
10284
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10285
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10286
test "$can_build_shared" = "no" && enable_shared=no
10288
# On AIX, shared libraries and static libraries use the same namespace, and
10289
# are all built from PIC.
10292
test "$enable_shared" = yes && enable_static=no
10293
if test -n "$RANLIB"; then
10294
archive_cmds="$archive_cmds~\$RANLIB \$lib"
10295
postinstall_cmds='$RANLIB $lib'
10300
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10301
test "$enable_shared" = yes && enable_static=no
10305
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10306
echo "${ECHO_T}$enable_shared" >&6; }
10308
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10309
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10310
# Make sure either enable_shared or enable_static is yes.
10311
test "$enable_shared" = yes || enable_static=yes
10312
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10313
echo "${ECHO_T}$enable_static" >&6; }
10315
# The else clause should only fire when bootstrapping the
10316
# libtool distribution, otherwise you forgot to ship ltmain.sh
10317
# with your package, and you will get complaints that there are
10318
# no rules to generate ltmain.sh.
10319
if test -f "$ltmain"; then
10320
# See if we are running on zsh, and set the options which allow our commands through
10321
# without removal of \ escapes.
10322
if test -n "${ZSH_VERSION+set}" ; then
10323
setopt NO_GLOB_SUBST
10325
# Now quote all the things that may contain metacharacters while being
10326
# careful not to overquote the AC_SUBSTed values. We take copies of the
10327
# variables and quote the copies for generation of the libtool script.
10328
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10330
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10331
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10332
deplibs_check_method reload_flag reload_cmds need_locks \
10333
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10334
lt_cv_sys_global_symbol_to_c_name_address \
10335
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10336
old_postinstall_cmds old_postuninstall_cmds \
10340
lt_prog_compiler_wl \
10341
lt_prog_compiler_pic \
10342
lt_prog_compiler_static \
10343
lt_prog_compiler_no_builtin_flag \
10344
export_dynamic_flag_spec \
10345
thread_safe_flag_spec \
10346
whole_archive_flag_spec \
10347
enable_shared_with_static_runtimes \
10349
old_archive_from_new_cmds \
10354
compiler_lib_search_path \
10356
archive_expsym_cmds \
10358
postuninstall_cmds \
10359
old_archive_from_expsyms_cmds \
10360
allow_undefined_flag \
10361
no_undefined_flag \
10362
export_symbols_cmds \
10363
hardcode_libdir_flag_spec \
10364
hardcode_libdir_flag_spec_ld \
10365
hardcode_libdir_separator \
10366
hardcode_automatic \
10368
module_expsym_cmds \
10369
lt_cv_prog_compiler_c_o \
10372
include_expsyms; do
10375
old_archive_cmds | \
10376
old_archive_from_new_cmds | \
10378
archive_expsym_cmds | \
10380
module_expsym_cmds | \
10381
old_archive_from_expsyms_cmds | \
10382
export_symbols_cmds | \
10383
extract_expsyms_cmds | reload_cmds | finish_cmds | \
10384
postinstall_cmds | postuninstall_cmds | \
10385
old_postinstall_cmds | old_postuninstall_cmds | \
10386
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10387
# Double-quote double-evaled strings.
10388
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10391
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10397
*'\$0 --fallback-echo"')
10398
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10402
cfgfile="${ofile}T"
10403
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10405
{ echo "$as_me:$LINENO: creating $ofile" >&5
10406
echo "$as_me: creating $ofile" >&6;}
10408
cat <<__EOF__ >> "$cfgfile"
10411
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10412
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10413
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10415
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10416
# Free Software Foundation, Inc.
10418
# This file is part of GNU Libtool:
10419
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10421
# This program is free software; you can redistribute it and/or modify
10422
# it under the terms of the GNU General Public License as published by
10423
# the Free Software Foundation; either version 2 of the License, or
10424
# (at your option) any later version.
10426
# This program is distributed in the hope that it will be useful, but
10427
# WITHOUT ANY WARRANTY; without even the implied warranty of
10428
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10429
# General Public License for more details.
10431
# You should have received a copy of the GNU General Public License
10432
# along with this program; if not, write to the Free Software
10433
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10435
# As a special exception to the GNU General Public License, if you
10436
# distribute this file as part of a program that contains a
10437
# configuration script generated by Autoconf, you may include it under
10438
# the same distribution terms that you use for the rest of that program.
10440
# A sed program that does not truncate output.
10443
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10444
Xsed="$SED -e 1s/^X//"
10446
# The HP-UX ksh and POSIX shell print the target directory to stdout
10447
# if CDPATH is set.
10448
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10450
# The names of the tagged configurations supported by this script.
10453
# ### BEGIN LIBTOOL CONFIG
10455
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10457
# Shell to use when invoking shell scripts.
10460
# Whether or not to build shared libraries.
10461
build_libtool_libs=$enable_shared
10463
# Whether or not to build static libraries.
10464
build_old_libs=$enable_static
10466
# Whether or not to add -lc for building shared libraries.
10467
build_libtool_need_lc=$archive_cmds_need_lc
10469
# Whether or not to disallow shared libs when runtime libs are static
10470
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10472
# Whether or not to optimize for fast installation.
10473
fast_install=$enable_fast_install
10476
host_alias=$host_alias
10480
# The build system.
10481
build_alias=$build_alias
10485
# An echo program that does not interpret backslashes.
10490
AR_FLAGS=$lt_AR_FLAGS
10495
# LTCC compiler flags.
10496
LTCFLAGS=$lt_LTCFLAGS
10498
# A language-specific compiler.
10501
# Is the compiler the GNU C compiler?
10507
# The linker used to build libraries.
10510
# Whether we need hard or soft links.
10513
# A BSD-compatible nm program.
10516
# A symbol stripping program
10519
# Used to examine libraries when file_magic_cmd begins "file"
10520
MAGIC_CMD=$MAGIC_CMD
10522
# Used on cygwin: DLL creation program.
10525
# Used on cygwin: object dumper.
10528
# Used on cygwin: assembler.
10531
# The name of the directory that contains temporary libtool files.
10534
# How to create reloadable object files.
10535
reload_flag=$lt_reload_flag
10536
reload_cmds=$lt_reload_cmds
10538
# How to pass a linker flag through the compiler.
10539
wl=$lt_lt_prog_compiler_wl
10541
# Object file suffix (normally "o").
10542
objext="$ac_objext"
10544
# Old archive suffix (normally "a").
10547
# Shared library suffix (normally ".so").
10548
shrext_cmds='$shrext_cmds'
10550
# Executable file suffix (normally "").
10553
# Additional compiler flags for building library objects.
10554
pic_flag=$lt_lt_prog_compiler_pic
10557
# What is the maximum length of a command?
10558
max_cmd_len=$lt_cv_sys_max_cmd_len
10560
# Does compiler simultaneously support -c and -o options?
10561
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10563
# Must we lock files when doing compilation?
10564
need_locks=$lt_need_locks
10566
# Do we need the lib prefix for modules?
10567
need_lib_prefix=$need_lib_prefix
10569
# Do we need a version for libraries?
10570
need_version=$need_version
10572
# Whether dlopen is supported.
10573
dlopen_support=$enable_dlopen
10575
# Whether dlopen of programs is supported.
10576
dlopen_self=$enable_dlopen_self
10578
# Whether dlopen of statically linked programs is supported.
10579
dlopen_self_static=$enable_dlopen_self_static
10581
# Compiler flag to prevent dynamic linking.
10582
link_static_flag=$lt_lt_prog_compiler_static
10584
# Compiler flag to turn off builtin functions.
10585
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10587
# Compiler flag to allow reflexive dlopens.
10588
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10590
# Compiler flag to generate shared objects directly from archives.
10591
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10593
# Compiler flag to generate thread-safe objects.
10594
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10596
# Library versioning type.
10597
version_type=$version_type
10599
# Format of library name prefix.
10600
libname_spec=$lt_libname_spec
10602
# List of archive names. First name is the real one, the rest are links.
10603
# The last name is the one that the linker finds with -lNAME.
10604
library_names_spec=$lt_library_names_spec
10606
# The coded name of the library, if different from the real name.
10607
soname_spec=$lt_soname_spec
10609
# Commands used to build and install an old-style archive.
10611
old_archive_cmds=$lt_old_archive_cmds
10612
old_postinstall_cmds=$lt_old_postinstall_cmds
10613
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10615
# Create an old-style archive from a shared archive.
10616
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10618
# Create a temporary old-style archive to link instead of a shared archive.
10619
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10621
# Commands used to build and install a shared archive.
10622
archive_cmds=$lt_archive_cmds
10623
archive_expsym_cmds=$lt_archive_expsym_cmds
10624
postinstall_cmds=$lt_postinstall_cmds
10625
postuninstall_cmds=$lt_postuninstall_cmds
10627
# Commands used to build a loadable module (assumed same as above if empty)
10628
module_cmds=$lt_module_cmds
10629
module_expsym_cmds=$lt_module_expsym_cmds
10631
# Commands to strip libraries.
10632
old_striplib=$lt_old_striplib
10633
striplib=$lt_striplib
10635
# Dependencies to place before the objects being linked to create a
10637
predep_objects=$lt_predep_objects
10639
# Dependencies to place after the objects being linked to create a
10641
postdep_objects=$lt_postdep_objects
10643
# Dependencies to place before the objects being linked to create a
10645
predeps=$lt_predeps
10647
# Dependencies to place after the objects being linked to create a
10649
postdeps=$lt_postdeps
10651
# The library search path used internally by the compiler when linking
10652
# a shared library.
10653
compiler_lib_search_path=$lt_compiler_lib_search_path
10655
# Method to check whether dependent libraries are shared objects.
10656
deplibs_check_method=$lt_deplibs_check_method
10658
# Command to use when deplibs_check_method == file_magic.
10659
file_magic_cmd=$lt_file_magic_cmd
10661
# Flag that allows shared libraries with undefined symbols to be built.
10662
allow_undefined_flag=$lt_allow_undefined_flag
10664
# Flag that forces no undefined symbols.
10665
no_undefined_flag=$lt_no_undefined_flag
10667
# Commands used to finish a libtool library installation in a directory.
10668
finish_cmds=$lt_finish_cmds
10670
# Same as above, but a single script fragment to be evaled but not shown.
10671
finish_eval=$lt_finish_eval
10673
# Take the output of nm and produce a listing of raw symbols and C names.
10674
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10676
# Transform the output of nm in a proper C declaration
10677
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10679
# Transform the output of nm in a C name address pair
10680
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10682
# This is the shared library runtime path variable.
10683
runpath_var=$runpath_var
10685
# This is the shared library path variable.
10686
shlibpath_var=$shlibpath_var
10688
# Is shlibpath searched before the hard-coded library search path?
10689
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10691
# How to hardcode a shared library path into an executable.
10692
hardcode_action=$hardcode_action
10694
# Whether we should hardcode library paths into libraries.
10695
hardcode_into_libs=$hardcode_into_libs
10697
# Flag to hardcode \$libdir into a binary during linking.
10698
# This must work even if \$libdir does not exist.
10699
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10701
# If ld is used when linking, flag to hardcode \$libdir into
10702
# a binary during linking. This must work even if \$libdir does
10704
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10706
# Whether we need a single -rpath flag with a separated argument.
10707
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10709
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10710
# resulting binary.
10711
hardcode_direct=$hardcode_direct
10713
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10714
# resulting binary.
10715
hardcode_minus_L=$hardcode_minus_L
10717
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10718
# the resulting binary.
10719
hardcode_shlibpath_var=$hardcode_shlibpath_var
10721
# Set to yes if building a shared library automatically hardcodes DIR into the library
10722
# and all subsequent libraries and executables linked against it.
10723
hardcode_automatic=$hardcode_automatic
10725
# Variables whose values should be saved in libtool wrapper scripts and
10726
# restored at relink time.
10727
variables_saved_for_relink="$variables_saved_for_relink"
10729
# Whether libtool must link a program against all its dependency libraries.
10730
link_all_deplibs=$link_all_deplibs
10732
# Compile-time system search path for libraries
10733
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10735
# Run-time system search path for libraries
10736
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10738
# Fix the shell variable \$srcfile for the compiler.
10739
fix_srcfile_path=$lt_fix_srcfile_path
10741
# Set to yes if exported symbols are required.
10742
always_export_symbols=$always_export_symbols
10744
# The commands to list exported symbols.
10745
export_symbols_cmds=$lt_export_symbols_cmds
10747
# The commands to extract the exported symbol list from a shared archive.
10748
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10750
# Symbols that should not be listed in the preloaded symbols.
10751
exclude_expsyms=$lt_exclude_expsyms
10753
# Symbols that must always be exported.
10754
include_expsyms=$lt_include_expsyms
10756
# ### END LIBTOOL CONFIG
10763
cat <<\EOF >> "$cfgfile"
10765
# AIX sometimes has problems with the GCC collect2 program. For some
10766
# reason, if we set the COLLECT_NAMES environment variable, the problems
10767
# vanish in a puff of smoke.
10768
if test "X${COLLECT_NAMES+set}" != Xset; then
10770
export COLLECT_NAMES
10776
# We use sed instead of cat because bash on DJGPP gets confused if
10777
# if finds mixed CR/LF and LF-only lines. Since sed operates in
10778
# text mode, it properly converts lines to CR/LF. This bash problem
10779
# is reportedly fixed, but why not run on old versions too?
10780
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10782
mv -f "$cfgfile" "$ofile" || \
10783
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10787
# If there is no Makefile yet, we rely on a make rule to execute
10788
# `config.status --recheck' to rerun these tests and create the
10789
# libtool script then.
10790
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10791
if test -f "$ltmain_in"; then
10792
test -f Makefile && make "$ltmain"
10798
ac_cpp='$CPP $CPPFLAGS'
10799
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10800
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10801
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10806
# Check whether --with-tags was given.
10807
if test "${with_tags+set}" = set; then
10808
withval=$with_tags; tagnames="$withval"
10812
if test -f "$ltmain" && test -n "$tagnames"; then
10813
if test ! -f "${ofile}"; then
10814
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10815
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10818
if test -z "$LTCC"; then
10819
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10820
if test -z "$LTCC"; then
10821
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10822
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10824
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10825
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10828
if test -z "$LTCFLAGS"; then
10829
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10832
# Extract list of available tagged configurations in $ofile.
10833
# Note that this assumes the entire list is on one line.
10834
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10836
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10837
for tagname in $tagnames; do
10839
# Check whether tagname contains only valid characters
10840
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10842
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10843
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10844
{ (exit 1); exit 1; }; }
10848
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10850
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10851
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10852
{ (exit 1); exit 1; }; }
10855
# Update the list of available tags.
10856
if test -n "$tagname"; then
10857
echo appending configuration tag \"$tagname\" to $ofile
10861
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10862
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10863
(test "X$CXX" != "Xg++"))) ; then
10865
ac_cpp='$CXXCPP $CPPFLAGS'
10866
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10867
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10868
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10873
archive_cmds_need_lc_CXX=no
10874
allow_undefined_flag_CXX=
10875
always_export_symbols_CXX=no
10876
archive_expsym_cmds_CXX=
10877
export_dynamic_flag_spec_CXX=
10878
hardcode_direct_CXX=no
10879
hardcode_libdir_flag_spec_CXX=
10880
hardcode_libdir_flag_spec_ld_CXX=
10881
hardcode_libdir_separator_CXX=
10882
hardcode_minus_L_CXX=no
10883
hardcode_shlibpath_var_CXX=unsupported
10884
hardcode_automatic_CXX=no
10886
module_expsym_cmds_CXX=
10887
link_all_deplibs_CXX=unknown
10888
old_archive_cmds_CXX=$old_archive_cmds
10889
no_undefined_flag_CXX=
10890
whole_archive_flag_spec_CXX=
10891
enable_shared_with_static_runtimes_CXX=no
10893
# Dependencies to place before and after the object being linked:
10894
predep_objects_CXX=
10895
postdep_objects_CXX=
10898
compiler_lib_search_path_CXX=
10900
# Source file extension for C++ test sources.
10903
# Object file extension for compiled C++ test sources.
10907
# Code to be used in simple compile tests
10908
lt_simple_compile_test_code="int some_variable = 0;"
10910
# Code to be used in simple link tests
10911
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10913
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10915
# If no C compiler was specified, use CC.
10918
# If no C compiler flags were specified, use CFLAGS.
10919
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10921
# Allow CC to be a program name with arguments.
10925
# save warnings/boilerplate of simple test code
10926
ac_outfile=conftest.$ac_objext
10927
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10928
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10929
_lt_compiler_boilerplate=`cat conftest.err`
10932
ac_outfile=conftest.$ac_objext
10933
echo "$lt_simple_link_test_code" >conftest.$ac_ext
10934
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10935
_lt_linker_boilerplate=`cat conftest.err`
10939
# Allow CC to be a program name with arguments.
10944
lt_save_with_gnu_ld=$with_gnu_ld
10945
lt_save_path_LD=$lt_cv_path_LD
10946
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10947
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10949
$as_unset lt_cv_prog_gnu_ld
10951
if test -n "${lt_cv_path_LDCXX+set}"; then
10952
lt_cv_path_LD=$lt_cv_path_LDCXX
10954
$as_unset lt_cv_path_LD
10956
test -z "${LDCXX+set}" || LD=$LDCXX
10960
for cc_temp in $compiler""; do
10962
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10963
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10968
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10971
# We don't want -fno-exception wen compiling C++ code, so set the
10972
# no_builtin_flag separately
10973
if test "$GXX" = yes; then
10974
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10976
lt_prog_compiler_no_builtin_flag_CXX=
10979
if test "$GXX" = yes; then
10980
# Set up default GNU C++ configuration
10983
# Check whether --with-gnu-ld was given.
10984
if test "${with_gnu_ld+set}" = set; then
10985
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10991
if test "$GCC" = yes; then
10992
# Check if gcc -print-prog-name=ld gives a path.
10993
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10994
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10997
# gcc leaves a trailing carriage return which upsets mingw
10998
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11000
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11003
# Accept absolute paths.
11005
re_direlt='/[^/][^/]*/\.\./'
11006
# Canonicalize the pathname of ld
11007
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11008
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11009
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4038
if test "${ac_cv_path_install+set}" = set; then
4039
INSTALL=$ac_cv_path_install
4041
# As a last resort, use the slow shell script. Don't cache a
4042
# value for INSTALL within a source directory, because that will
4043
# break other packages using the cache if that directory is
4044
# removed, or if the value is a relative name.
4045
INSTALL=$ac_install_sh
4048
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4049
echo "${ECHO_T}$INSTALL" >&6; }
4051
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4052
# It thinks the first close brace ends the variable substitution.
4053
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4055
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4057
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4059
# Extract the first word of "help2man", so it can be a program name with args.
4060
set dummy help2man; ac_word=$2
4061
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4062
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4063
if test "${ac_cv_path_HELP2MAN+set}" = set; then
11011
test -z "$LD" && LD="$ac_prog"
11014
# If it fails, then pretend we aren't using GCC.
11018
# If it is relative, then search for the first ld in PATH.
11019
with_gnu_ld=unknown
11022
elif test "$with_gnu_ld" = yes; then
11023
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
11024
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11026
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11027
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11029
if test "${lt_cv_path_LD+set}" = set; then
4064
11030
echo $ECHO_N "(cached) $ECHO_C" >&6
4068
ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path.
4071
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075
test -z "$as_dir" && as_dir=.
4076
for ac_exec_ext in '' $ac_executable_extensions; do
4077
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4078
ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext"
4079
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11032
if test -z "$LD"; then
11033
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11034
for ac_dir in $PATH; do
11036
test -z "$ac_dir" && ac_dir=.
11037
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11038
lt_cv_path_LD="$ac_dir/$ac_prog"
11039
# Check to see if the program is GNU ld. I'd rather use --version,
11040
# but apparently some variants of GNU ld only accept -v.
11041
# Break only if it was the GNU/non-GNU ld that we prefer.
11042
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11043
*GNU* | *'with BFD'*)
11044
test "$with_gnu_ld" != no && break
11047
test "$with_gnu_ld" != yes && break
11054
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4086
test -z "$ac_cv_path_HELP2MAN" && ac_cv_path_HELP2MAN="{ { echo "$as_me:$LINENO: error: Cannot find help2man" >&5
4087
echo "$as_me: error: Cannot find help2man" >&2;}
4088
{ (exit 1); exit 1; }; }"
4092
HELP2MAN=$ac_cv_path_HELP2MAN
4093
if test -n "$HELP2MAN"; then
4094
{ echo "$as_me:$LINENO: result: $HELP2MAN" >&5
4095
echo "${ECHO_T}$HELP2MAN" >&6; }
11058
LD="$lt_cv_path_LD"
11059
if test -n "$LD"; then
11060
{ echo "$as_me:$LINENO: result: $LD" >&5
11061
echo "${ECHO_T}$LD" >&6; }
4097
11063
{ echo "$as_me:$LINENO: result: no" >&5
4098
11064
echo "${ECHO_T}no" >&6; }
11066
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11067
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11068
{ (exit 1); exit 1; }; }
11069
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11070
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11071
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11072
echo $ECHO_N "(cached) $ECHO_C" >&6
11074
# I'd rather use --version here, but apparently some GNU lds only accept -v.
11075
case `$LD -v 2>&1 </dev/null` in
11076
*GNU* | *'with BFD'*)
11077
lt_cv_prog_gnu_ld=yes
11080
lt_cv_prog_gnu_ld=no
11084
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11085
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11086
with_gnu_ld=$lt_cv_prog_gnu_ld
11090
# Check if GNU C++ uses GNU ld as the underlying linker, since the
11091
# archiving commands below assume that GNU ld is being used.
11092
if test "$with_gnu_ld" = yes; then
11093
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11094
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'
11096
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11097
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11099
# If archive_cmds runs LD, not CC, wlarc should be empty
11100
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11101
# investigate it a little bit more. (MM)
11104
# ancient GNU ld didn't support --whole-archive et. al.
11105
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11106
grep 'no-whole-archive' > /dev/null; then
11107
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11109
whole_archive_flag_spec_CXX=
11115
# A generic and very simple default shared library creation
11116
# command for GNU C++ for the case where it uses the native
11117
# linker, instead of GNU ld. If possible, this setting should
11118
# overridden to take advantage of the native linker features on
11119
# the platform it is being used on.
11120
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11123
# Commands to make compiler produce verbose output that lists
11124
# what "hidden" libraries, object files and flags are used when
11125
# linking a shared library.
11126
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11134
# PORTME: fill in a description of your system's C++ link characteristics
11135
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11136
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11140
# FIXME: insert proper C++ library support
11144
if test "$host_cpu" = ia64; then
11145
# On IA64, the linker does run time linking by default, so we don't
11146
# have to do anything special.
11147
aix_use_runtimelinking=no
11148
exp_sym_flag='-Bexport'
11151
aix_use_runtimelinking=no
11153
# Test if we are trying to use run time linking or normal
11154
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11155
# need to do runtime linking.
11156
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11157
for ld_flag in $LDFLAGS; do
11160
aix_use_runtimelinking=yes
11168
exp_sym_flag='-bexport'
11169
no_entry_flag='-bnoentry'
11172
# When large executables or shared objects are built, AIX ld can
11173
# have problems creating the table of contents. If linking a library
11174
# or program results in "error TOC overflow" add -mminimal-toc to
11175
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11176
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11178
archive_cmds_CXX=''
11179
hardcode_direct_CXX=yes
11180
hardcode_libdir_separator_CXX=':'
11181
link_all_deplibs_CXX=yes
11183
if test "$GXX" = yes; then
11184
case $host_os in aix4.[012]|aix4.[012].*)
11185
# We only want to do this on AIX 4.2 and lower, the check
11186
# below for broken collect2 doesn't work under 4.3+
11187
collect2name=`${CC} -print-prog-name=collect2`
11188
if test -f "$collect2name" && \
11189
strings "$collect2name" | grep resolve_lib_name >/dev/null
11191
# We have reworked collect2
11194
# We have old collect2
11195
hardcode_direct_CXX=unsupported
11196
# It fails to find uninstalled libraries when the uninstalled
11197
# path is not listed in the libpath. Setting hardcode_minus_L
11198
# to unsupported forces relinking
11199
hardcode_minus_L_CXX=yes
11200
hardcode_libdir_flag_spec_CXX='-L$libdir'
11201
hardcode_libdir_separator_CXX=
11205
shared_flag='-shared'
11206
if test "$aix_use_runtimelinking" = yes; then
11207
shared_flag="$shared_flag "'${wl}-G'
11211
if test "$host_cpu" = ia64; then
11212
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11213
# chokes on -Wl,-G. The following line is correct:
11216
if test "$aix_use_runtimelinking" = yes; then
11217
shared_flag='${wl}-G'
11219
shared_flag='${wl}-bM:SRE'
11224
# It seems that -bexpall does not export symbols beginning with
11225
# underscore (_), so it is better to generate a list of symbols to export.
11226
always_export_symbols_CXX=yes
11227
if test "$aix_use_runtimelinking" = yes; then
11228
# Warning - without using the other runtime loading flags (-brtl),
11229
# -berok will link without error, but may produce a broken library.
11230
allow_undefined_flag_CXX='-berok'
11231
# Determine the default libpath from the value encoded in an empty executable.
11232
cat >conftest.$ac_ext <<_ACEOF
11235
cat confdefs.h >>conftest.$ac_ext
11236
cat >>conftest.$ac_ext <<_ACEOF
11237
/* end confdefs.h. */
11247
rm -f conftest.$ac_objext conftest$ac_exeext
11248
if { (ac_try="$ac_link"
11249
case "(($ac_try" in
11250
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11251
*) ac_try_echo=$ac_try;;
11253
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11254
(eval "$ac_link") 2>conftest.er1
11256
grep -v '^ *+' conftest.er1 >conftest.err
11258
cat conftest.err >&5
11259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260
(exit $ac_status); } && {
11261
test -z "$ac_cxx_werror_flag" ||
11262
test ! -s conftest.err
11263
} && test -s conftest$ac_exeext &&
11264
$as_test_x conftest$ac_exeext; then
11266
lt_aix_libpath_sed='
11267
/Import File Strings/,/^$/ {
11273
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11274
# Check for a 64-bit object if we didn't find anything.
11275
if test -z "$aix_libpath"; then
11276
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11279
echo "$as_me: failed program was:" >&5
11280
sed 's/^/| /' conftest.$ac_ext >&5
11285
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11286
conftest$ac_exeext conftest.$ac_ext
11287
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11289
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11291
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"
11293
if test "$host_cpu" = ia64; then
11294
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11295
allow_undefined_flag_CXX="-z nodefs"
11296
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"
11298
# Determine the default libpath from the value encoded in an empty executable.
11299
cat >conftest.$ac_ext <<_ACEOF
11302
cat confdefs.h >>conftest.$ac_ext
11303
cat >>conftest.$ac_ext <<_ACEOF
11304
/* end confdefs.h. */
11314
rm -f conftest.$ac_objext conftest$ac_exeext
11315
if { (ac_try="$ac_link"
11316
case "(($ac_try" in
11317
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318
*) ac_try_echo=$ac_try;;
11320
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321
(eval "$ac_link") 2>conftest.er1
11323
grep -v '^ *+' conftest.er1 >conftest.err
11325
cat conftest.err >&5
11326
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327
(exit $ac_status); } && {
11328
test -z "$ac_cxx_werror_flag" ||
11329
test ! -s conftest.err
11330
} && test -s conftest$ac_exeext &&
11331
$as_test_x conftest$ac_exeext; then
11333
lt_aix_libpath_sed='
11334
/Import File Strings/,/^$/ {
11340
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11341
# Check for a 64-bit object if we didn't find anything.
11342
if test -z "$aix_libpath"; then
11343
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11346
echo "$as_me: failed program was:" >&5
11347
sed 's/^/| /' conftest.$ac_ext >&5
11352
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11353
conftest$ac_exeext conftest.$ac_ext
11354
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11356
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11357
# Warning - without using the other run time loading flags,
11358
# -berok will link without error, but may produce a broken library.
11359
no_undefined_flag_CXX=' ${wl}-bernotok'
11360
allow_undefined_flag_CXX=' ${wl}-berok'
11361
# Exported symbols can be pulled into shared objects from archives
11362
whole_archive_flag_spec_CXX='$convenience'
11363
archive_cmds_need_lc_CXX=yes
11364
# This is similar to how AIX traditionally builds its shared libraries.
11365
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'
11371
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11372
allow_undefined_flag_CXX=unsupported
11373
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11374
# support --undefined. This deserves some investigation. FIXME
11375
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11382
case $cc_basename in
11384
# FIXME: insert proper C++ library support
11390
cygwin* | mingw* | pw32*)
11391
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11392
# as there is no search path for DLLs.
11393
hardcode_libdir_flag_spec_CXX='-L$libdir'
11394
allow_undefined_flag_CXX=unsupported
11395
always_export_symbols_CXX=no
11396
enable_shared_with_static_runtimes_CXX=yes
11398
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11399
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'
11400
# If the export-symbols file already is a .def file (1st line
11401
# is EXPORTS), use it as is; otherwise, prepend...
11402
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11403
cp $export_symbols $output_objdir/$soname.def;
11405
echo EXPORTS > $output_objdir/$soname.def;
11406
cat $export_symbols >> $output_objdir/$soname.def;
11408
$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'
11413
darwin* | rhapsody*)
11415
rhapsody* | darwin1.[012])
11416
allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11419
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11420
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11422
case ${MACOSX_DEPLOYMENT_TARGET} in
11424
allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11427
allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11433
archive_cmds_need_lc_CXX=no
11434
hardcode_direct_CXX=no
11435
hardcode_automatic_CXX=yes
11436
hardcode_shlibpath_var_CXX=unsupported
11437
whole_archive_flag_spec_CXX=''
11438
link_all_deplibs_CXX=yes
11440
if test "$GXX" = yes ; then
11441
lt_int_apple_cc_single_mod=no
11442
output_verbose_link_cmd='echo'
11443
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11444
lt_int_apple_cc_single_mod=yes
11446
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11447
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11449
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'
11451
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11452
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11453
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11454
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}'
11456
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}'
11458
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}'
11460
case $cc_basename in
11462
output_verbose_link_cmd='echo'
11463
archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11464
module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11465
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11466
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11467
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}'
11477
case $cc_basename in
11479
# FIXME: insert proper C++ library support
11483
# Green Hills C++ Compiler
11484
# FIXME: insert proper C++ library support
11488
# FIXME: insert proper C++ library support
11494
# C++ shared libraries reported to be fairly broken before switch to ELF
11498
archive_cmds_need_lc_CXX=no
11500
freebsd* | dragonfly*)
11501
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11508
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11509
hardcode_libdir_separator_CXX=:
11510
export_dynamic_flag_spec_CXX='${wl}-E'
11511
hardcode_direct_CXX=yes
11512
hardcode_minus_L_CXX=yes # Not in the search PATH,
11513
# but as the default
11514
# location of the library.
11516
case $cc_basename in
11518
# FIXME: insert proper C++ library support
11522
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'
11523
# Commands to make compiler produce verbose output that lists
11524
# what "hidden" libraries, object files and flags are used when
11525
# linking a shared library.
11527
# There doesn't appear to be a way to prevent this compiler from
11528
# explicitly linking system object files so we need to strip them
11529
# from the output so that they don't get included in the library
11531
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'
11534
if test "$GXX" = yes; then
11535
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'
11537
# FIXME: insert proper C++ library support
11544
if test $with_gnu_ld = no; then
11545
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11546
hardcode_libdir_separator_CXX=:
11551
export_dynamic_flag_spec_CXX='${wl}-E'
11557
hardcode_direct_CXX=no
11558
hardcode_shlibpath_var_CXX=no
11561
hardcode_direct_CXX=yes
11562
hardcode_minus_L_CXX=yes # Not in the search PATH,
11563
# but as the default
11564
# location of the library.
11568
case $cc_basename in
11570
# FIXME: insert proper C++ library support
11576
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11579
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11582
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11585
# Commands to make compiler produce verbose output that lists
11586
# what "hidden" libraries, object files and flags are used when
11587
# linking a shared library.
11589
# There doesn't appear to be a way to prevent this compiler from
11590
# explicitly linking system object files so we need to strip them
11591
# from the output so that they don't get included in the library
11593
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'
11596
if test "$GXX" = yes; then
11597
if test $with_gnu_ld = no; then
11600
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11603
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11606
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'
11611
# FIXME: insert proper C++ library support
11618
hardcode_direct_CXX=no
11619
hardcode_shlibpath_var_CXX=no
11620
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11621
export_dynamic_flag_spec_CXX='${wl}-E'
11622
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11623
# Instead, shared libraries are loaded at an image base (0x10000000 by
11624
# default) and relocated if they conflict, which is a slow very memory
11625
# consuming and fragmenting process. To avoid this, we pick a random,
11626
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11627
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
11628
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'
11629
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'
11632
case $cc_basename in
11635
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'
11637
# Archives containing C++ object files must be created using
11638
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
11639
# necessary to make sure instantiated templates are included
11641
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11644
if test "$GXX" = yes; then
11645
if test "$with_gnu_ld" = no; then
11646
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'
11648
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'
11651
link_all_deplibs_CXX=yes
11654
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11655
hardcode_libdir_separator_CXX=:
11657
linux* | k*bsd*-gnu)
11658
case $cc_basename in
11660
# Kuck and Associates, Inc. (KAI) C++ Compiler
11662
# KCC will only create a shared library if the output file
11663
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11664
# to its proper name (with version) after linking.
11665
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'
11666
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'
11667
# Commands to make compiler produce verbose output that lists
11668
# what "hidden" libraries, object files and flags are used when
11669
# linking a shared library.
11671
# There doesn't appear to be a way to prevent this compiler from
11672
# explicitly linking system object files so we need to strip them
11673
# from the output so that they don't get included in the library
11675
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'
11677
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11678
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11680
# Archives containing C++ object files must be created using
11681
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11682
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11687
# version 8.0 and above of icpc choke on multiply defined symbols
11688
# if we add $predep_objects and $postdep_objects, however 7.1 and
11689
# earlier do not add the objects themselves.
11690
case `$CC -V 2>&1` in
11692
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11693
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'
11695
*) # Version 8.0 or newer
11698
ia64*) tmp_idyn=' -i_dynamic';;
11700
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11701
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'
11704
archive_cmds_need_lc_CXX=no
11705
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11706
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11707
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11710
# Portland Group C++ compiler
11711
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11712
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'
11714
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11715
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11716
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'
11720
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11721
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'
11723
runpath_var=LD_RUN_PATH
11724
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11725
hardcode_libdir_separator_CXX=:
11727
# Commands to make compiler produce verbose output that lists
11728
# what "hidden" libraries, object files and flags are used when
11729
# linking a shared library.
11731
# There doesn't appear to be a way to prevent this compiler from
11732
# explicitly linking system object files so we need to strip them
11733
# from the output so that they don't get included in the library
11735
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'
11738
case `$CC -V 2>&1 | sed 5q` in
11741
no_undefined_flag_CXX=' -zdefs'
11742
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11743
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'
11744
hardcode_libdir_flag_spec_CXX='-R$libdir'
11745
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'
11747
# Not sure whether something based on
11748
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11750
output_verbose_link_cmd='echo'
11752
# Archives containing C++ object files must be created using
11753
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11754
# necessary to make sure instantiated templates are included
11756
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11763
# FIXME: insert proper C++ library support
11767
# FIXME: insert proper C++ library support
11771
case $cc_basename in
11773
# FIXME: insert proper C++ library support
11777
# FIXME: insert proper C++ library support
11783
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11784
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11786
hardcode_libdir_flag_spec_CXX='-R$libdir'
11787
hardcode_direct_CXX=yes
11788
hardcode_shlibpath_var_CXX=no
11790
# Workaround some broken pre-1.5 toolchains
11791
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11794
# C++ shared libraries are fairly broken
11798
if test -f /usr/libexec/ld.so; then
11799
hardcode_direct_CXX=yes
11800
hardcode_shlibpath_var_CXX=no
11801
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11802
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11803
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11804
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11805
export_dynamic_flag_spec_CXX='${wl}-E'
11806
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11808
output_verbose_link_cmd='echo'
11814
case $cc_basename in
11816
# Kuck and Associates, Inc. (KAI) C++ Compiler
11818
# KCC will only create a shared library if the output file
11819
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11820
# to its proper name (with version) after linking.
11821
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'
11823
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11824
hardcode_libdir_separator_CXX=:
11826
# Archives containing C++ object files must be created using
11827
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11828
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11832
# Rational C++ 2.4.1
11833
# FIXME: insert proper C++ library support
11837
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11838
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'
11840
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11841
hardcode_libdir_separator_CXX=:
11843
# Commands to make compiler produce verbose output that lists
11844
# what "hidden" libraries, object files and flags are used when
11845
# linking a shared library.
11847
# There doesn't appear to be a way to prevent this compiler from
11848
# explicitly linking system object files so we need to strip them
11849
# from the output so that they don't get included in the library
11851
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'
11854
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11855
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11856
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'
11858
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11859
hardcode_libdir_separator_CXX=:
11861
# Commands to make compiler produce verbose output that lists
11862
# what "hidden" libraries, object files and flags are used when
11863
# linking a shared library.
11864
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11867
# FIXME: insert proper C++ library support
11874
case $cc_basename in
11876
# Kuck and Associates, Inc. (KAI) C++ Compiler
11878
# KCC will only create a shared library if the output file
11879
# ends with ".so" (or ".sl" for HP-UX), so rename the library
11880
# to its proper name (with version) after linking.
11881
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'
11883
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11884
hardcode_libdir_separator_CXX=:
11886
# Archives containing C++ object files must be created using
11887
# the KAI C++ compiler.
11888
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11891
# Rational C++ 2.4.1
11892
# FIXME: insert proper C++ library support
11896
allow_undefined_flag_CXX=' -expect_unresolved \*'
11897
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'
11898
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11899
echo "-hidden">> $lib.exp~
11900
$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~
11903
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11904
hardcode_libdir_separator_CXX=:
11906
# Commands to make compiler produce verbose output that lists
11907
# what "hidden" libraries, object files and flags are used when
11908
# linking a shared library.
11910
# There doesn't appear to be a way to prevent this compiler from
11911
# explicitly linking system object files so we need to strip them
11912
# from the output so that they don't get included in the library
11914
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'
11917
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11918
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11919
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'
11921
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11922
hardcode_libdir_separator_CXX=:
11924
# Commands to make compiler produce verbose output that lists
11925
# what "hidden" libraries, object files and flags are used when
11926
# linking a shared library.
11927
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11930
# FIXME: insert proper C++ library support
11937
# FIXME: insert proper C++ library support
11941
case $cc_basename in
11944
# FIXME: insert proper C++ library support
11949
# FIXME: insert proper C++ library support
11953
# FIXME: insert proper C++ library support
11959
case $cc_basename in
11961
# Sun C++ 4.2, 5.x and Centerline C++
11962
archive_cmds_need_lc_CXX=yes
11963
no_undefined_flag_CXX=' -zdefs'
11964
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11965
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11966
$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'
11968
hardcode_libdir_flag_spec_CXX='-R$libdir'
11969
hardcode_shlibpath_var_CXX=no
11971
solaris2.[0-5] | solaris2.[0-5].*) ;;
11973
# The compiler driver will combine and reorder linker options,
11974
# but understands `-z linker_flag'.
11975
# Supported since Solaris 2.6 (maybe 2.5.1?)
11976
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11979
link_all_deplibs_CXX=yes
11981
output_verbose_link_cmd='echo'
11983
# Archives containing C++ object files must be created using
11984
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11985
# necessary to make sure instantiated templates are included
11987
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11990
# Green Hills C++ Compiler
11991
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11993
# The C++ compiler must be used to create the archive.
11994
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11997
# GNU C++ compiler with Solaris linker
11998
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11999
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12000
if $CC --version | grep -v '^2\.7' > /dev/null; then
12001
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12002
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12003
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12005
# Commands to make compiler produce verbose output that lists
12006
# what "hidden" libraries, object files and flags are used when
12007
# linking a shared library.
12008
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12010
# g++ 2.7 appears to require `-G' NOT `-shared' on this
12012
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12013
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12014
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12016
# Commands to make compiler produce verbose output that lists
12017
# what "hidden" libraries, object files and flags are used when
12018
# linking a shared library.
12019
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12022
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12024
solaris2.[0-5] | solaris2.[0-5].*) ;;
12026
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12033
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12034
no_undefined_flag_CXX='${wl}-z,text'
12035
archive_cmds_need_lc_CXX=no
12036
hardcode_shlibpath_var_CXX=no
12037
runpath_var='LD_RUN_PATH'
12039
case $cc_basename in
12041
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12042
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12045
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12046
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12050
sysv5* | sco3.2v5* | sco5v6*)
12051
# Note: We can NOT use -z defs as we might desire, because we do not
12052
# link with -lc, and that would cause any symbols used from libc to
12053
# always be unresolved, which means just about no library would
12054
# ever link correctly. If we're not using GNU ld we use -z text
12055
# though, which does catch some bad symbols but isn't as heavy-handed
12057
# For security reasons, it is highly recommended that you always
12058
# use absolute paths for naming shared libraries, and exclude the
12059
# DT_RUNPATH tag from executables and libraries. But doing so
12060
# requires that you compile everything twice, which is a pain.
12061
# So that behaviour is only enabled if SCOABSPATH is set to a
12062
# non-empty value in the environment. Most likely only useful for
12063
# creating official distributions of packages.
12064
# This is a hack until libtool officially supports absolute path
12065
# names for shared libraries.
12066
no_undefined_flag_CXX='${wl}-z,text'
12067
allow_undefined_flag_CXX='${wl}-z,nodefs'
12068
archive_cmds_need_lc_CXX=no
12069
hardcode_shlibpath_var_CXX=no
12070
hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12071
hardcode_libdir_separator_CXX=':'
12072
link_all_deplibs_CXX=yes
12073
export_dynamic_flag_spec_CXX='${wl}-Bexport'
12074
runpath_var='LD_RUN_PATH'
12076
case $cc_basename in
12078
archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12079
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12082
archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12083
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12088
case $cc_basename in
12090
# NonStop-UX NCC 3.20
12091
# FIXME: insert proper C++ library support
12095
# FIXME: insert proper C++ library support
12101
# FIXME: insert proper C++ library support
12105
# FIXME: insert proper C++ library support
12109
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12110
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12111
test "$ld_shlibs_CXX" = no && can_build_shared=no
12117
cat > conftest.$ac_ext <<EOF
12121
Foo (void) { a = 0; }
12127
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12128
(eval $ac_compile) 2>&5
12130
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131
(exit $ac_status); }; then
12132
# Parse the compiler output and extract the necessary
12133
# objects, libraries and library flags.
12135
# Sentinel used to keep track of whether or not we are before
12136
# the conftest object file.
12137
pre_test_object_deps_done=no
12139
# The `*' in the case matches for architectures that use `case' in
12140
# $output_verbose_cmd can trigger glob expansion during the loop
12141
# eval without this substitution.
12142
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12144
for p in `eval $output_verbose_link_cmd`; do
12148
# Some compilers place space between "-{L,R}" and the path.
12149
# Remove the space.
12150
if test $p = "-L" \
12151
|| test $p = "-R"; then
12158
if test "$pre_test_object_deps_done" = no; then
12161
# Internal compiler library paths should come after those
12162
# provided the user. The postdeps already come after the
12163
# user supplied libs so there is no need to process them.
12164
if test -z "$compiler_lib_search_path_CXX"; then
12165
compiler_lib_search_path_CXX="${prev}${p}"
12167
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12170
# The "-l" case would never come before the object being
12171
# linked, so don't bother handling this case.
12174
if test -z "$postdeps_CXX"; then
12175
postdeps_CXX="${prev}${p}"
12177
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12183
# This assumes that the test object file only shows up
12184
# once in the compiler output.
12185
if test "$p" = "conftest.$objext"; then
12186
pre_test_object_deps_done=yes
12190
if test "$pre_test_object_deps_done" = no; then
12191
if test -z "$predep_objects_CXX"; then
12192
predep_objects_CXX="$p"
12194
predep_objects_CXX="$predep_objects_CXX $p"
12197
if test -z "$postdep_objects_CXX"; then
12198
postdep_objects_CXX="$p"
12200
postdep_objects_CXX="$postdep_objects_CXX $p"
12205
*) ;; # Ignore the rest.
12213
echo "libtool.m4: error: problem compiling CXX test program"
12216
$rm -f confest.$objext
12218
# PORTME: override above test on systems where it is broken
12221
# Interix 3.5 installs completely hosed .la files for C++, so rather than
12222
# hack all around it, let's just trust "g++" to DTRT.
12223
predep_objects_CXX=
12224
postdep_objects_CXX=
12229
case `$CC -V 2>&1 | sed 5q` in
12233
# The more standards-conforming stlport4 library is
12234
# incompatible with the Cstd library. Avoid specifying
12235
# it if it's in CXXFLAGS. Ignore libCrun as
12236
# -library=stlport4 depends on it.
12237
case " $CXX $CXXFLAGS " in
12238
*" -library=stlport4 "*)
12239
solaris_use_stlport4=yes
12242
if test "$solaris_use_stlport4" != yes; then
12243
postdeps_CXX='-library=Cstd -library=Crun'
12250
case $cc_basename in
12252
# The more standards-conforming stlport4 library is
12253
# incompatible with the Cstd library. Avoid specifying
12254
# it if it's in CXXFLAGS. Ignore libCrun as
12255
# -library=stlport4 depends on it.
12256
case " $CXX $CXXFLAGS " in
12257
*" -library=stlport4 "*)
12258
solaris_use_stlport4=yes
12262
# Adding this requires a known-good setup of shared libraries for
12263
# Sun compiler versions before 5.6, else PIC objects from an old
12264
# archive will be linked into the output, leading to subtle bugs.
12265
if test "$solaris_use_stlport4" != yes; then
12266
postdeps_CXX='-library=Cstd -library=Crun'
12274
case " $postdeps_CXX " in
12275
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12278
lt_prog_compiler_wl_CXX=
12279
lt_prog_compiler_pic_CXX=
12280
lt_prog_compiler_static_CXX=
12282
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12283
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12285
# C++ specific cases for pic, static, wl, etc.
12286
if test "$GXX" = yes; then
12287
lt_prog_compiler_wl_CXX='-Wl,'
12288
lt_prog_compiler_static_CXX='-static'
12292
# All AIX code is PIC.
12293
if test "$host_cpu" = ia64; then
12294
# AIX 5 now supports IA64 processor
12295
lt_prog_compiler_static_CXX='-Bstatic'
12299
# FIXME: we need at least 68020 code to build shared libraries, but
12300
# adding the `-m68020' flag to GCC prevents building anything better,
12302
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12304
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12305
# PIC is the default for these OSes.
12307
mingw* | cygwin* | os2* | pw32*)
12308
# This hack is so that the source file can tell whether it is being
12309
# built for inclusion in a dll (and should export symbols for example).
12310
# Although the cygwin gcc ignores -fPIC, still need this for old-style
12311
# (--disable-auto-import) libraries
12312
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12314
darwin* | rhapsody*)
12315
# PIC is the default on this platform
12316
# Common symbols not allowed in MH_DYLIB files
12317
lt_prog_compiler_pic_CXX='-fno-common'
12320
# DJGPP does not support shared libraries at all
12321
lt_prog_compiler_pic_CXX=
12324
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
12325
# Instead, we relocate shared libraries at runtime.
12328
if test -d /usr/nec; then
12329
lt_prog_compiler_pic_CXX=-Kconform_pic
12333
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12334
# not for PA HP-UX.
12339
lt_prog_compiler_pic_CXX='-fPIC'
12344
lt_prog_compiler_pic_CXX='-fPIC'
12350
# All AIX code is PIC.
12351
if test "$host_cpu" = ia64; then
12352
# AIX 5 now supports IA64 processor
12353
lt_prog_compiler_static_CXX='-Bstatic'
12355
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12359
case $cc_basename in
12361
# Green Hills C++ Compiler
12362
# _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12367
# PIC is the default on this platform
12368
# Common symbols not allowed in MH_DYLIB files
12369
case $cc_basename in
12371
lt_prog_compiler_pic_CXX='-qnocommon'
12372
lt_prog_compiler_wl_CXX='-Wl,'
12377
case $cc_basename in
12379
lt_prog_compiler_pic_CXX='-KPIC'
12382
# Green Hills C++ Compiler
12383
lt_prog_compiler_pic_CXX='-pic'
12389
freebsd* | dragonfly*)
12390
# FreeBSD uses GNU C++
12392
hpux9* | hpux10* | hpux11*)
12393
case $cc_basename in
12395
lt_prog_compiler_wl_CXX='-Wl,'
12396
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12397
if test "$host_cpu" != ia64; then
12398
lt_prog_compiler_pic_CXX='+Z'
12402
lt_prog_compiler_wl_CXX='-Wl,'
12403
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12409
lt_prog_compiler_pic_CXX='+Z'
12418
# This is c89, which is MS Visual C++ (no shared libs)
12419
# Anyone wants to do a port?
12421
irix5* | irix6* | nonstopux*)
12422
case $cc_basename in
12424
lt_prog_compiler_wl_CXX='-Wl,'
12425
lt_prog_compiler_static_CXX='-non_shared'
12426
# CC pic flag -KPIC is the default.
12432
linux* | k*bsd*-gnu)
12433
case $cc_basename in
12436
lt_prog_compiler_wl_CXX='--backend -Wl,'
12437
lt_prog_compiler_pic_CXX='-fPIC'
12441
lt_prog_compiler_wl_CXX='-Wl,'
12442
lt_prog_compiler_pic_CXX='-KPIC'
12443
lt_prog_compiler_static_CXX='-static'
12446
# Portland Group C++ compiler.
12447
lt_prog_compiler_wl_CXX='-Wl,'
12448
lt_prog_compiler_pic_CXX='-fpic'
12449
lt_prog_compiler_static_CXX='-Bstatic'
12453
# Make sure the PIC flag is empty. It appears that all Alpha
12454
# Linux and Compaq Tru64 Unix objects are PIC.
12455
lt_prog_compiler_pic_CXX=
12456
lt_prog_compiler_static_CXX='-non_shared'
12459
case `$CC -V 2>&1 | sed 5q` in
12462
lt_prog_compiler_pic_CXX='-KPIC'
12463
lt_prog_compiler_static_CXX='-Bstatic'
12464
lt_prog_compiler_wl_CXX='-Qoption ld '
12475
case $cc_basename in
12477
lt_prog_compiler_pic_CXX='-W c,exportall'
12485
osf3* | osf4* | osf5*)
12486
case $cc_basename in
12488
lt_prog_compiler_wl_CXX='--backend -Wl,'
12491
# Rational C++ 2.4.1
12492
lt_prog_compiler_pic_CXX='-pic'
12495
# Digital/Compaq C++
12496
lt_prog_compiler_wl_CXX='-Wl,'
12497
# Make sure the PIC flag is empty. It appears that all Alpha
12498
# Linux and Compaq Tru64 Unix objects are PIC.
12499
lt_prog_compiler_pic_CXX=
12500
lt_prog_compiler_static_CXX='-non_shared'
12509
case $cc_basename in
12511
# Sun C++ 4.2, 5.x and Centerline C++
12512
lt_prog_compiler_pic_CXX='-KPIC'
12513
lt_prog_compiler_static_CXX='-Bstatic'
12514
lt_prog_compiler_wl_CXX='-Qoption ld '
12517
# Green Hills C++ Compiler
12518
lt_prog_compiler_pic_CXX='-PIC'
12525
case $cc_basename in
12528
lt_prog_compiler_pic_CXX='-pic'
12529
lt_prog_compiler_static_CXX='-Bstatic'
12533
lt_prog_compiler_pic_CXX='-pic'
12540
case $cc_basename in
12542
# NonStop-UX NCC 3.20
12543
lt_prog_compiler_pic_CXX='-KPIC'
12549
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12550
case $cc_basename in
12552
lt_prog_compiler_wl_CXX='-Wl,'
12553
lt_prog_compiler_pic_CXX='-KPIC'
12554
lt_prog_compiler_static_CXX='-Bstatic'
12561
lt_prog_compiler_can_build_shared_CXX=no
12566
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12567
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12570
# Check to make sure the PIC flag actually works.
12572
if test -n "$lt_prog_compiler_pic_CXX"; then
12574
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12575
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12576
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12577
echo $ECHO_N "(cached) $ECHO_C" >&6
12579
lt_prog_compiler_pic_works_CXX=no
12580
ac_outfile=conftest.$ac_objext
12581
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12582
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12583
# Insert the option either (1) after the last *FLAGS variable, or
12584
# (2) before a word containing "conftest.", or (3) at the end.
12585
# Note that $ac_compile itself does not contain backslashes and begins
12586
# with a dollar sign (not a hyphen), so the echo should work correctly.
12587
# The option is referenced via a variable to avoid confusing sed.
12588
lt_compile=`echo "$ac_compile" | $SED \
12589
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12590
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12591
-e 's:$: $lt_compiler_flag:'`
12592
(eval echo "\"\$as_me:12592: $lt_compile\"" >&5)
12593
(eval "$lt_compile" 2>conftest.err)
12595
cat conftest.err >&5
12596
echo "$as_me:12596: \$? = $ac_status" >&5
12597
if (exit $ac_status) && test -s "$ac_outfile"; then
12598
# The compiler can only warn and ignore the option if not recognized
12599
# So say no if there are warnings other than the usual output.
12600
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12601
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12602
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12603
lt_prog_compiler_pic_works_CXX=yes
12609
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12610
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12612
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12613
case $lt_prog_compiler_pic_CXX in
12615
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12618
lt_prog_compiler_pic_CXX=
12619
lt_prog_compiler_can_build_shared_CXX=no
12624
# For platforms which do not support PIC, -DPIC is meaningless:
12626
lt_prog_compiler_pic_CXX=
12629
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12634
# Check to make sure the static flag actually works.
12636
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12637
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12638
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12639
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12640
echo $ECHO_N "(cached) $ECHO_C" >&6
12642
lt_prog_compiler_static_works_CXX=no
12643
save_LDFLAGS="$LDFLAGS"
12644
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12645
echo "$lt_simple_link_test_code" > conftest.$ac_ext
12646
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12647
# The linker can only warn and ignore the option if not recognized
12648
# So say no if there are warnings
12649
if test -s conftest.err; then
12650
# Append any errors to the config.log.
12651
cat conftest.err 1>&5
12652
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12653
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12654
if diff conftest.exp conftest.er2 >/dev/null; then
12655
lt_prog_compiler_static_works_CXX=yes
12658
lt_prog_compiler_static_works_CXX=yes
12662
LDFLAGS="$save_LDFLAGS"
12665
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12666
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12668
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12671
lt_prog_compiler_static_CXX=
12675
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12676
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12677
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12678
echo $ECHO_N "(cached) $ECHO_C" >&6
12680
lt_cv_prog_compiler_c_o_CXX=no
12681
$rm -r conftest 2>/dev/null
12685
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12687
lt_compiler_flag="-o out/conftest2.$ac_objext"
12688
# Insert the option either (1) after the last *FLAGS variable, or
12689
# (2) before a word containing "conftest.", or (3) at the end.
12690
# Note that $ac_compile itself does not contain backslashes and begins
12691
# with a dollar sign (not a hyphen), so the echo should work correctly.
12692
lt_compile=`echo "$ac_compile" | $SED \
12693
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12694
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12695
-e 's:$: $lt_compiler_flag:'`
12696
(eval echo "\"\$as_me:12696: $lt_compile\"" >&5)
12697
(eval "$lt_compile" 2>out/conftest.err)
12699
cat out/conftest.err >&5
12700
echo "$as_me:12700: \$? = $ac_status" >&5
12701
if (exit $ac_status) && test -s out/conftest2.$ac_objext
12703
# The compiler can only warn and ignore the option if not recognized
12704
# So say no if there are warnings
12705
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12706
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12707
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12708
lt_cv_prog_compiler_c_o_CXX=yes
12713
# SGI C++ compiler will create directory out/ii_files/ for
12714
# template instantiation
12715
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12716
$rm out/* && rmdir out
12722
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12723
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12726
hard_links="nottested"
12727
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12728
# do not overwrite the value of need_locks provided by the user
12729
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12730
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12733
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12735
ln conftest.a conftest.b 2>&5 || hard_links=no
12736
ln conftest.a conftest.b 2>/dev/null && hard_links=no
12737
{ echo "$as_me:$LINENO: result: $hard_links" >&5
12738
echo "${ECHO_T}$hard_links" >&6; }
12739
if test "$hard_links" = no; then
12740
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12741
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12748
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12749
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12751
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12754
# If we're using GNU nm, then we don't want the "-C" option.
12755
# -C means demangle to AIX nm, but means don't demangle with GNU nm
12756
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12757
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12759
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12763
export_symbols_cmds_CXX="$ltdll_cmds"
12766
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12769
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12773
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12774
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12775
test "$ld_shlibs_CXX" = no && can_build_shared=no
12778
# Do we need to explicitly link libc?
12780
case "x$archive_cmds_need_lc_CXX" in
12782
# Assume -lc should be added
12783
archive_cmds_need_lc_CXX=yes
12785
if test "$enable_shared" = yes && test "$GCC" = yes; then
12786
case $archive_cmds_CXX in
12788
# FIXME: we may have to deal with multi-command sequences.
12791
# Test whether the compiler implicitly links with -lc since on some
12792
# systems, -lgcc has to come before -lc. If gcc already passes -lc
12793
# to ld, don't add -lc before -lgcc.
12794
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12795
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12797
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12799
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12800
(eval $ac_compile) 2>&5
12802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803
(exit $ac_status); } 2>conftest.err; then
12806
libobjs=conftest.$ac_objext
12808
wl=$lt_prog_compiler_wl_CXX
12809
pic_flag=$lt_prog_compiler_pic_CXX
12815
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12816
allow_undefined_flag_CXX=
12817
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12818
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12820
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821
(exit $ac_status); }
12823
archive_cmds_need_lc_CXX=no
12825
archive_cmds_need_lc_CXX=yes
12827
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12829
cat conftest.err 1>&5
12832
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12833
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12840
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12841
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12842
library_names_spec=
12843
libname_spec='lib$name'
12847
postuninstall_cmds=
12851
shlibpath_overrides_runpath=unknown
12853
dynamic_linker="$host_os ld.so"
12854
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12856
need_lib_prefix=unknown
12857
hardcode_into_libs=no
12859
# when you set need_version to no, make sure it does not cause -set_version
12860
# flags to be left without arguments
12861
need_version=unknown
12866
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12867
shlibpath_var=LIBPATH
12869
# AIX 3 has no versioning support, so we append a major version to the name.
12870
soname_spec='${libname}${release}${shared_ext}$major'
12877
hardcode_into_libs=yes
12878
if test "$host_cpu" = ia64; then
12879
# AIX 5 supports IA64
12880
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12881
shlibpath_var=LD_LIBRARY_PATH
12883
# With GCC up to 2.95.x, collect2 would create an import file
12884
# for dependence libraries. The import file would start with
12885
# the line `#! .'. This would cause the generated library to
12886
# depend on `.', always an invalid library. This was fixed in
12887
# development snapshots of GCC prior to 3.0.
12889
aix4 | aix4.[01] | aix4.[01].*)
12890
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12892
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12895
can_build_shared=no
12899
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12900
# soname into executable. Probably we can add versioning support to
12901
# collect2, so additional links can be useful in future.
12902
if test "$aix_use_runtimelinking" = yes; then
12903
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
12904
# instead of lib<name>.a to let people know that these are not
12905
# typical AIX shared libraries.
12906
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12908
# We preserve .a as extension for shared libraries through AIX4.2
12909
# and later when we are not doing run time linking.
12910
library_names_spec='${libname}${release}.a $libname.a'
12911
soname_spec='${libname}${release}${shared_ext}$major'
12913
shlibpath_var=LIBPATH
12918
library_names_spec='$libname.ixlibrary $libname.a'
12919
# Create ${libname}_ixlibrary.a entries in /sys/libs.
12920
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'
12924
library_names_spec='${libname}${shared_ext}'
12925
dynamic_linker="$host_os ld.so"
12926
shlibpath_var=LIBRARY_PATH
12932
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12933
soname_spec='${libname}${release}${shared_ext}$major'
12934
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12935
shlibpath_var=LD_LIBRARY_PATH
12936
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12937
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12938
# the default ld.so.conf also contains /usr/contrib/lib and
12939
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12940
# libtool to hard-code these into programs
12943
cygwin* | mingw* | pw32*)
12944
version_type=windows
12949
case $GCC,$host_os in
12950
yes,cygwin* | yes,mingw* | yes,pw32*)
12951
library_names_spec='$libname.dll.a'
12952
# DLL is installed to $(libdir)/../bin by postinstall_cmds
12953
postinstall_cmds='base_file=`basename \${file}`~
12954
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12955
dldir=$destdir/`dirname \$dlpath`~
12956
test -d \$dldir || mkdir -p \$dldir~
12957
$install_prog $dir/$dlname \$dldir/$dlname~
12958
chmod a+x \$dldir/$dlname'
12959
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12960
dlpath=$dir/\$dldll~
12962
shlibpath_overrides_runpath=yes
12966
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
12967
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12968
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12971
# MinGW DLLs use traditional 'lib' prefix
12972
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12973
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12974
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12975
# It is most probably a Windows format PATH printed by
12976
# mingw gcc, but we are running on Cygwin. Gcc prints its search
12977
# path with ; separators, and with drive letters. We can handle the
12978
# drive letters (cygwin fileutils understands them), so leave them,
12979
# especially as we might pass files found there to a mingw objdump,
12980
# which wouldn't understand a cygwinified path. Ahh.
12981
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12983
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12987
# pw32 DLLs use 'pw' prefix rather than 'lib'
12988
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12994
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12997
dynamic_linker='Win32 ld.exe'
12998
# FIXME: first we should search . and the directory the executable is in
13002
darwin* | rhapsody*)
13003
dynamic_linker="$host_os dyld"
13004
version_type=darwin
13007
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13008
soname_spec='${libname}${release}${major}$shared_ext'
13009
shlibpath_overrides_runpath=yes
13010
shlibpath_var=DYLD_LIBRARY_PATH
13011
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13013
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13020
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13021
soname_spec='${libname}${release}${shared_ext}$major'
13022
shlibpath_var=LD_LIBRARY_PATH
13029
freebsd* | dragonfly*)
13030
# DragonFly does not have aout. When/if they implement a new
13031
# versioning mechanism, adjust this.
13032
if test -x /usr/bin/objformat; then
13033
objformat=`/usr/bin/objformat`
13036
freebsd[123]*) objformat=aout ;;
13037
*) objformat=elf ;;
13040
# Handle Gentoo/FreeBSD as it was Linux
13041
case $host_vendor in
13043
version_type=linux ;;
13045
version_type=freebsd-$objformat ;;
13048
case $version_type in
13050
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13055
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13059
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13060
soname_spec='${libname}${release}${shared_ext}$major'
13065
shlibpath_var=LD_LIBRARY_PATH
13068
shlibpath_overrides_runpath=yes
13070
freebsd3.[01]* | freebsdelf3.[01]*)
13071
shlibpath_overrides_runpath=yes
13072
hardcode_into_libs=yes
13074
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13075
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13076
shlibpath_overrides_runpath=no
13077
hardcode_into_libs=yes
13079
*) # from 4.6 on, and DragonFly
13080
shlibpath_overrides_runpath=yes
13081
hardcode_into_libs=yes
13090
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13091
soname_spec='${libname}${release}${shared_ext}$major'
13092
shlibpath_var=LD_LIBRARY_PATH
13093
hardcode_into_libs=yes
13096
hpux9* | hpux10* | hpux11*)
13097
# Give a soname corresponding to the major version so that dld.sl refuses to
13098
# link against other versions.
13105
hardcode_into_libs=yes
13106
dynamic_linker="$host_os dld.so"
13107
shlibpath_var=LD_LIBRARY_PATH
13108
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13109
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13110
soname_spec='${libname}${release}${shared_ext}$major'
13111
if test "X$HPUX_IA64_MODE" = X32; then
13112
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13114
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13116
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13120
hardcode_into_libs=yes
13121
dynamic_linker="$host_os dld.sl"
13122
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13123
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13124
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13125
soname_spec='${libname}${release}${shared_ext}$major'
13126
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13127
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13131
dynamic_linker="$host_os dld.sl"
13132
shlibpath_var=SHLIB_PATH
13133
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13134
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13135
soname_spec='${libname}${release}${shared_ext}$major'
13138
# HP-UX runs *really* slowly unless shared libraries are mode 555.
13139
postinstall_cmds='chmod 555 $lib'
13146
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13147
soname_spec='${libname}${release}${shared_ext}$major'
13148
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13149
shlibpath_var=LD_LIBRARY_PATH
13150
shlibpath_overrides_runpath=no
13151
hardcode_into_libs=yes
13154
irix5* | irix6* | nonstopux*)
13156
nonstopux*) version_type=nonstopux ;;
13158
if test "$lt_cv_prog_gnu_ld" = yes; then
13166
soname_spec='${libname}${release}${shared_ext}$major'
13167
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13169
irix5* | nonstopux*)
13170
libsuff= shlibsuff=
13173
case $LD in # libtool.m4 will add one of these switches to LD
13174
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13175
libsuff= shlibsuff= libmagic=32-bit;;
13176
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13177
libsuff=32 shlibsuff=N32 libmagic=N32;;
13178
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13179
libsuff=64 shlibsuff=64 libmagic=64-bit;;
13180
*) libsuff= shlibsuff= libmagic=never-match;;
13184
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13185
shlibpath_overrides_runpath=no
13186
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13187
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13188
hardcode_into_libs=yes
13191
# No shared lib support for Linux oldld, aout, or coff.
13192
linux*oldld* | linux*aout* | linux*coff*)
13196
# This must be Linux ELF.
13197
linux* | k*bsd*-gnu)
13201
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13202
soname_spec='${libname}${release}${shared_ext}$major'
13203
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13204
shlibpath_var=LD_LIBRARY_PATH
13205
shlibpath_overrides_runpath=no
13206
# This implies no fast_install, which is unacceptable.
13207
# Some rework will be needed to allow for fast_install
13208
# before this can be enabled.
13209
hardcode_into_libs=yes
13211
# Append ld.so.conf contents to the search path
13212
if test -f /etc/ld.so.conf; then
13213
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13214
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13217
# We used to test for /lib/ld.so.1 and disable shared libraries on
13218
# powerpc, because MkLinux only supported shared libraries with the
13219
# GNU dynamic linker. Since this was broken with cross compilers,
13220
# most powerpc-linux boxes support dynamic linking these days and
13221
# people can always --disable-shared, the test was removed, and we
13222
# assume the GNU/Linux dynamic linker is in use.
13223
dynamic_linker='GNU/Linux ld.so'
13230
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13231
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13232
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13233
dynamic_linker='NetBSD (a.out) ld.so'
13235
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13236
soname_spec='${libname}${release}${shared_ext}$major'
13237
dynamic_linker='NetBSD ld.elf_so'
13239
shlibpath_var=LD_LIBRARY_PATH
13240
shlibpath_overrides_runpath=yes
13241
hardcode_into_libs=yes
13246
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13247
shlibpath_var=LD_LIBRARY_PATH
13248
shlibpath_overrides_runpath=yes
13255
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13256
soname_spec='${libname}${release}${shared_ext}$major'
13257
shlibpath_var=LD_LIBRARY_PATH
13258
shlibpath_overrides_runpath=yes
13263
sys_lib_dlsearch_path_spec="/usr/lib"
13265
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13267
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13268
*) need_version=no ;;
13270
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13271
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13272
shlibpath_var=LD_LIBRARY_PATH
13273
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13275
openbsd2.[89] | openbsd2.[89].*)
13276
shlibpath_overrides_runpath=no
13279
shlibpath_overrides_runpath=yes
13283
shlibpath_overrides_runpath=yes
13288
libname_spec='$name'
13291
library_names_spec='$libname${shared_ext} $libname.a'
13292
dynamic_linker='OS/2 ld.exe'
13293
shlibpath_var=LIBPATH
13296
osf3* | osf4* | osf5*)
13300
soname_spec='${libname}${release}${shared_ext}$major'
13301
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13302
shlibpath_var=LD_LIBRARY_PATH
13303
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13304
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13315
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13316
soname_spec='${libname}${release}${shared_ext}$major'
13317
shlibpath_var=LD_LIBRARY_PATH
13318
shlibpath_overrides_runpath=yes
13319
hardcode_into_libs=yes
13320
# ldd complains unless libraries are executable
13321
postinstall_cmds='chmod +x $lib'
13326
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13327
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13328
shlibpath_var=LD_LIBRARY_PATH
13329
shlibpath_overrides_runpath=yes
13330
if test "$with_gnu_ld" = yes; then
13338
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13339
soname_spec='${libname}${release}${shared_ext}$major'
13340
shlibpath_var=LD_LIBRARY_PATH
13341
case $host_vendor in
13343
shlibpath_overrides_runpath=no
13345
export_dynamic_flag_spec='${wl}-Blargedynsym'
13346
runpath_var=LD_RUN_PATH
13354
shlibpath_overrides_runpath=no
13355
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13361
if test -d /usr/nec ;then
13363
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13364
soname_spec='$libname${shared_ext}.$major'
13365
shlibpath_var=LD_LIBRARY_PATH
13369
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13370
version_type=freebsd-elf
13373
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13374
soname_spec='${libname}${release}${shared_ext}$major'
13375
shlibpath_var=LD_LIBRARY_PATH
13376
hardcode_into_libs=yes
13377
if test "$with_gnu_ld" = yes; then
13378
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13379
shlibpath_overrides_runpath=no
13381
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13382
shlibpath_overrides_runpath=yes
13385
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13389
sys_lib_dlsearch_path_spec='/usr/lib'
13394
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13395
soname_spec='${libname}${release}${shared_ext}$major'
13396
shlibpath_var=LD_LIBRARY_PATH
13403
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13404
echo "${ECHO_T}$dynamic_linker" >&6; }
13405
test "$dynamic_linker" = no && can_build_shared=no
13407
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13408
if test "$GCC" = yes; then
13409
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13412
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13413
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13414
hardcode_action_CXX=
13415
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13416
test -n "$runpath_var_CXX" || \
13417
test "X$hardcode_automatic_CXX" = "Xyes" ; then
13419
# We can hardcode non-existant directories.
13420
if test "$hardcode_direct_CXX" != no &&
13421
# If the only mechanism to avoid hardcoding is shlibpath_var, we
13422
# have to relink, otherwise we might link with an installed library
13423
# when we should be linking with a yet-to-be-installed one
13424
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13425
test "$hardcode_minus_L_CXX" != no; then
13426
# Linking always hardcodes the temporary library directory.
13427
hardcode_action_CXX=relink
13429
# We can link without hardcoding, and we can hardcode nonexisting dirs.
13430
hardcode_action_CXX=immediate
13433
# We cannot hardcode anything, or else we can only hardcode existing
13435
hardcode_action_CXX=unsupported
13437
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13438
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13440
if test "$hardcode_action_CXX" = relink; then
13441
# Fast installation is not supported
13442
enable_fast_install=no
13443
elif test "$shlibpath_overrides_runpath" = yes ||
13444
test "$enable_shared" = no; then
13445
# Fast installation is not necessary
13446
enable_fast_install=needless
13450
# The else clause should only fire when bootstrapping the
13451
# libtool distribution, otherwise you forgot to ship ltmain.sh
13452
# with your package, and you will get complaints that there are
13453
# no rules to generate ltmain.sh.
13454
if test -f "$ltmain"; then
13455
# See if we are running on zsh, and set the options which allow our commands through
13456
# without removal of \ escapes.
13457
if test -n "${ZSH_VERSION+set}" ; then
13458
setopt NO_GLOB_SUBST
13460
# Now quote all the things that may contain metacharacters while being
13461
# careful not to overquote the AC_SUBSTed values. We take copies of the
13462
# variables and quote the copies for generation of the libtool script.
13463
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13465
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13466
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13467
deplibs_check_method reload_flag reload_cmds need_locks \
13468
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13469
lt_cv_sys_global_symbol_to_c_name_address \
13470
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13471
old_postinstall_cmds old_postuninstall_cmds \
13475
lt_prog_compiler_wl_CXX \
13476
lt_prog_compiler_pic_CXX \
13477
lt_prog_compiler_static_CXX \
13478
lt_prog_compiler_no_builtin_flag_CXX \
13479
export_dynamic_flag_spec_CXX \
13480
thread_safe_flag_spec_CXX \
13481
whole_archive_flag_spec_CXX \
13482
enable_shared_with_static_runtimes_CXX \
13483
old_archive_cmds_CXX \
13484
old_archive_from_new_cmds_CXX \
13485
predep_objects_CXX \
13486
postdep_objects_CXX \
13489
compiler_lib_search_path_CXX \
13491
archive_expsym_cmds_CXX \
13492
postinstall_cmds_CXX \
13493
postuninstall_cmds_CXX \
13494
old_archive_from_expsyms_cmds_CXX \
13495
allow_undefined_flag_CXX \
13496
no_undefined_flag_CXX \
13497
export_symbols_cmds_CXX \
13498
hardcode_libdir_flag_spec_CXX \
13499
hardcode_libdir_flag_spec_ld_CXX \
13500
hardcode_libdir_separator_CXX \
13501
hardcode_automatic_CXX \
13503
module_expsym_cmds_CXX \
13504
lt_cv_prog_compiler_c_o_CXX \
13505
fix_srcfile_path_CXX \
13506
exclude_expsyms_CXX \
13507
include_expsyms_CXX; do
13510
old_archive_cmds_CXX | \
13511
old_archive_from_new_cmds_CXX | \
13512
archive_cmds_CXX | \
13513
archive_expsym_cmds_CXX | \
13514
module_cmds_CXX | \
13515
module_expsym_cmds_CXX | \
13516
old_archive_from_expsyms_cmds_CXX | \
13517
export_symbols_cmds_CXX | \
13518
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13519
postinstall_cmds | postuninstall_cmds | \
13520
old_postinstall_cmds | old_postuninstall_cmds | \
13521
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13522
# Double-quote double-evaled strings.
13523
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13526
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13532
*'\$0 --fallback-echo"')
13533
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13539
cat <<__EOF__ >> "$cfgfile"
13540
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13542
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13544
# Shell to use when invoking shell scripts.
13547
# Whether or not to build shared libraries.
13548
build_libtool_libs=$enable_shared
13550
# Whether or not to build static libraries.
13551
build_old_libs=$enable_static
13553
# Whether or not to add -lc for building shared libraries.
13554
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13556
# Whether or not to disallow shared libs when runtime libs are static
13557
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13559
# Whether or not to optimize for fast installation.
13560
fast_install=$enable_fast_install
13563
host_alias=$host_alias
13567
# The build system.
13568
build_alias=$build_alias
13572
# An echo program that does not interpret backslashes.
13577
AR_FLAGS=$lt_AR_FLAGS
13582
# LTCC compiler flags.
13583
LTCFLAGS=$lt_LTCFLAGS
13585
# A language-specific compiler.
13586
CC=$lt_compiler_CXX
13588
# Is the compiler the GNU C compiler?
13594
# The linker used to build libraries.
13597
# Whether we need hard or soft links.
13600
# A BSD-compatible nm program.
13603
# A symbol stripping program
13606
# Used to examine libraries when file_magic_cmd begins "file"
13607
MAGIC_CMD=$MAGIC_CMD
13609
# Used on cygwin: DLL creation program.
13612
# Used on cygwin: object dumper.
13615
# Used on cygwin: assembler.
13618
# The name of the directory that contains temporary libtool files.
13621
# How to create reloadable object files.
13622
reload_flag=$lt_reload_flag
13623
reload_cmds=$lt_reload_cmds
13625
# How to pass a linker flag through the compiler.
13626
wl=$lt_lt_prog_compiler_wl_CXX
13628
# Object file suffix (normally "o").
13629
objext="$ac_objext"
13631
# Old archive suffix (normally "a").
13634
# Shared library suffix (normally ".so").
13635
shrext_cmds='$shrext_cmds'
13637
# Executable file suffix (normally "").
13640
# Additional compiler flags for building library objects.
13641
pic_flag=$lt_lt_prog_compiler_pic_CXX
13644
# What is the maximum length of a command?
13645
max_cmd_len=$lt_cv_sys_max_cmd_len
13647
# Does compiler simultaneously support -c and -o options?
13648
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13650
# Must we lock files when doing compilation?
13651
need_locks=$lt_need_locks
13653
# Do we need the lib prefix for modules?
13654
need_lib_prefix=$need_lib_prefix
13656
# Do we need a version for libraries?
13657
need_version=$need_version
13659
# Whether dlopen is supported.
13660
dlopen_support=$enable_dlopen
13662
# Whether dlopen of programs is supported.
13663
dlopen_self=$enable_dlopen_self
13665
# Whether dlopen of statically linked programs is supported.
13666
dlopen_self_static=$enable_dlopen_self_static
13668
# Compiler flag to prevent dynamic linking.
13669
link_static_flag=$lt_lt_prog_compiler_static_CXX
13671
# Compiler flag to turn off builtin functions.
13672
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13674
# Compiler flag to allow reflexive dlopens.
13675
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13677
# Compiler flag to generate shared objects directly from archives.
13678
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13680
# Compiler flag to generate thread-safe objects.
13681
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13683
# Library versioning type.
13684
version_type=$version_type
13686
# Format of library name prefix.
13687
libname_spec=$lt_libname_spec
13689
# List of archive names. First name is the real one, the rest are links.
13690
# The last name is the one that the linker finds with -lNAME.
13691
library_names_spec=$lt_library_names_spec
13693
# The coded name of the library, if different from the real name.
13694
soname_spec=$lt_soname_spec
13696
# Commands used to build and install an old-style archive.
13698
old_archive_cmds=$lt_old_archive_cmds_CXX
13699
old_postinstall_cmds=$lt_old_postinstall_cmds
13700
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13702
# Create an old-style archive from a shared archive.
13703
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13705
# Create a temporary old-style archive to link instead of a shared archive.
13706
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13708
# Commands used to build and install a shared archive.
13709
archive_cmds=$lt_archive_cmds_CXX
13710
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13711
postinstall_cmds=$lt_postinstall_cmds
13712
postuninstall_cmds=$lt_postuninstall_cmds
13714
# Commands used to build a loadable module (assumed same as above if empty)
13715
module_cmds=$lt_module_cmds_CXX
13716
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13718
# Commands to strip libraries.
13719
old_striplib=$lt_old_striplib
13720
striplib=$lt_striplib
13722
# Dependencies to place before the objects being linked to create a
13724
predep_objects=$lt_predep_objects_CXX
13726
# Dependencies to place after the objects being linked to create a
13728
postdep_objects=$lt_postdep_objects_CXX
13730
# Dependencies to place before the objects being linked to create a
13732
predeps=$lt_predeps_CXX
13734
# Dependencies to place after the objects being linked to create a
13736
postdeps=$lt_postdeps_CXX
13738
# The library search path used internally by the compiler when linking
13739
# a shared library.
13740
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13742
# Method to check whether dependent libraries are shared objects.
13743
deplibs_check_method=$lt_deplibs_check_method
13745
# Command to use when deplibs_check_method == file_magic.
13746
file_magic_cmd=$lt_file_magic_cmd
13748
# Flag that allows shared libraries with undefined symbols to be built.
13749
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13751
# Flag that forces no undefined symbols.
13752
no_undefined_flag=$lt_no_undefined_flag_CXX
13754
# Commands used to finish a libtool library installation in a directory.
13755
finish_cmds=$lt_finish_cmds
13757
# Same as above, but a single script fragment to be evaled but not shown.
13758
finish_eval=$lt_finish_eval
13760
# Take the output of nm and produce a listing of raw symbols and C names.
13761
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13763
# Transform the output of nm in a proper C declaration
13764
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13766
# Transform the output of nm in a C name address pair
13767
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13769
# This is the shared library runtime path variable.
13770
runpath_var=$runpath_var
13772
# This is the shared library path variable.
13773
shlibpath_var=$shlibpath_var
13775
# Is shlibpath searched before the hard-coded library search path?
13776
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13778
# How to hardcode a shared library path into an executable.
13779
hardcode_action=$hardcode_action_CXX
13781
# Whether we should hardcode library paths into libraries.
13782
hardcode_into_libs=$hardcode_into_libs
13784
# Flag to hardcode \$libdir into a binary during linking.
13785
# This must work even if \$libdir does not exist.
13786
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13788
# If ld is used when linking, flag to hardcode \$libdir into
13789
# a binary during linking. This must work even if \$libdir does
13791
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13793
# Whether we need a single -rpath flag with a separated argument.
13794
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13796
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13797
# resulting binary.
13798
hardcode_direct=$hardcode_direct_CXX
13800
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13801
# resulting binary.
13802
hardcode_minus_L=$hardcode_minus_L_CXX
13804
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13805
# the resulting binary.
13806
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13808
# Set to yes if building a shared library automatically hardcodes DIR into the library
13809
# and all subsequent libraries and executables linked against it.
13810
hardcode_automatic=$hardcode_automatic_CXX
13812
# Variables whose values should be saved in libtool wrapper scripts and
13813
# restored at relink time.
13814
variables_saved_for_relink="$variables_saved_for_relink"
13816
# Whether libtool must link a program against all its dependency libraries.
13817
link_all_deplibs=$link_all_deplibs_CXX
13819
# Compile-time system search path for libraries
13820
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13822
# Run-time system search path for libraries
13823
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13825
# Fix the shell variable \$srcfile for the compiler.
13826
fix_srcfile_path=$lt_fix_srcfile_path
13828
# Set to yes if exported symbols are required.
13829
always_export_symbols=$always_export_symbols_CXX
13831
# The commands to list exported symbols.
13832
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13834
# The commands to extract the exported symbol list from a shared archive.
13835
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13837
# Symbols that should not be listed in the preloaded symbols.
13838
exclude_expsyms=$lt_exclude_expsyms_CXX
13840
# Symbols that must always be exported.
13841
include_expsyms=$lt_include_expsyms_CXX
13843
# ### END LIBTOOL TAG CONFIG: $tagname
13849
# If there is no Makefile yet, we rely on a make rule to execute
13850
# `config.status --recheck' to rerun these tests and create the
13851
# libtool script then.
13852
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13853
if test -f "$ltmain_in"; then
13854
test -f Makefile && make "$ltmain"
13860
ac_cpp='$CPP $CPPFLAGS'
13861
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13862
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13863
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13869
with_gnu_ldcxx=$with_gnu_ld
13870
with_gnu_ld=$lt_save_with_gnu_ld
13871
lt_cv_path_LDCXX=$lt_cv_path_LD
13872
lt_cv_path_LD=$lt_save_path_LD
13873
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13874
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13882
if test -n "$F77" && test "X$F77" != "Xno"; then
13885
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13886
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13887
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13890
archive_cmds_need_lc_F77=no
13891
allow_undefined_flag_F77=
13892
always_export_symbols_F77=no
13893
archive_expsym_cmds_F77=
13894
export_dynamic_flag_spec_F77=
13895
hardcode_direct_F77=no
13896
hardcode_libdir_flag_spec_F77=
13897
hardcode_libdir_flag_spec_ld_F77=
13898
hardcode_libdir_separator_F77=
13899
hardcode_minus_L_F77=no
13900
hardcode_automatic_F77=no
13902
module_expsym_cmds_F77=
13903
link_all_deplibs_F77=unknown
13904
old_archive_cmds_F77=$old_archive_cmds
13905
no_undefined_flag_F77=
13906
whole_archive_flag_spec_F77=
13907
enable_shared_with_static_runtimes_F77=no
13909
# Source file extension for f77 test sources.
13912
# Object file extension for compiled f77 test sources.
13916
# Code to be used in simple compile tests
13917
lt_simple_compile_test_code="\
13923
# Code to be used in simple link tests
13924
lt_simple_link_test_code="\
13929
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13931
# If no C compiler was specified, use CC.
13934
# If no C compiler flags were specified, use CFLAGS.
13935
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13937
# Allow CC to be a program name with arguments.
13941
# save warnings/boilerplate of simple test code
13942
ac_outfile=conftest.$ac_objext
13943
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13944
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13945
_lt_compiler_boilerplate=`cat conftest.err`
13948
ac_outfile=conftest.$ac_objext
13949
echo "$lt_simple_link_test_code" >conftest.$ac_ext
13950
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13951
_lt_linker_boilerplate=`cat conftest.err`
13955
# Allow CC to be a program name with arguments.
13960
for cc_temp in $compiler""; do
13962
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13963
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13968
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13971
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13972
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13973
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13974
echo "${ECHO_T}$can_build_shared" >&6; }
13976
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13977
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13978
test "$can_build_shared" = "no" && enable_shared=no
13980
# On AIX, shared libraries and static libraries use the same namespace, and
13981
# are all built from PIC.
13984
test "$enable_shared" = yes && enable_static=no
13985
if test -n "$RANLIB"; then
13986
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13987
postinstall_cmds='$RANLIB $lib'
13991
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13992
test "$enable_shared" = yes && enable_static=no
13996
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13997
echo "${ECHO_T}$enable_shared" >&6; }
13999
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14000
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14001
# Make sure either enable_shared or enable_static is yes.
14002
test "$enable_shared" = yes || enable_static=yes
14003
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14004
echo "${ECHO_T}$enable_static" >&6; }
14009
lt_prog_compiler_wl_F77=
14010
lt_prog_compiler_pic_F77=
14011
lt_prog_compiler_static_F77=
14013
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14014
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14016
if test "$GCC" = yes; then
14017
lt_prog_compiler_wl_F77='-Wl,'
14018
lt_prog_compiler_static_F77='-static'
14022
# All AIX code is PIC.
14023
if test "$host_cpu" = ia64; then
14024
# AIX 5 now supports IA64 processor
14025
lt_prog_compiler_static_F77='-Bstatic'
14030
# FIXME: we need at least 68020 code to build shared libraries, but
14031
# adding the `-m68020' flag to GCC prevents building anything better,
14033
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14036
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14037
# PIC is the default for these OSes.
14040
mingw* | cygwin* | pw32* | os2*)
14041
# This hack is so that the source file can tell whether it is being
14042
# built for inclusion in a dll (and should export symbols for example).
14043
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14044
# (--disable-auto-import) libraries
14045
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14048
darwin* | rhapsody*)
14049
# PIC is the default on this platform
14050
# Common symbols not allowed in MH_DYLIB files
14051
lt_prog_compiler_pic_F77='-fno-common'
14055
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14056
# Instead, we relocate shared libraries at runtime.
14060
# Just because we use GCC doesn't mean we suddenly get shared libraries
14061
# on systems that don't support them.
14062
lt_prog_compiler_can_build_shared_F77=no
14067
if test -d /usr/nec; then
14068
lt_prog_compiler_pic_F77=-Kconform_pic
14073
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14074
# not for PA HP-UX.
14080
lt_prog_compiler_pic_F77='-fPIC'
14086
lt_prog_compiler_pic_F77='-fPIC'
14090
# PORTME Check for flag to pass linker flags through the system compiler.
14093
lt_prog_compiler_wl_F77='-Wl,'
14094
if test "$host_cpu" = ia64; then
14095
# AIX 5 now supports IA64 processor
14096
lt_prog_compiler_static_F77='-Bstatic'
14098
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14102
# PIC is the default on this platform
14103
# Common symbols not allowed in MH_DYLIB files
14104
case $cc_basename in
14106
lt_prog_compiler_pic_F77='-qnocommon'
14107
lt_prog_compiler_wl_F77='-Wl,'
14112
mingw* | cygwin* | pw32* | os2*)
14113
# This hack is so that the source file can tell whether it is being
14114
# built for inclusion in a dll (and should export symbols for example).
14115
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14118
hpux9* | hpux10* | hpux11*)
14119
lt_prog_compiler_wl_F77='-Wl,'
14120
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14121
# not for PA HP-UX.
14127
lt_prog_compiler_pic_F77='+Z'
14130
# Is there a better lt_prog_compiler_static that works with the bundled CC?
14131
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14134
irix5* | irix6* | nonstopux*)
14135
lt_prog_compiler_wl_F77='-Wl,'
14136
# PIC (with -KPIC) is the default.
14137
lt_prog_compiler_static_F77='-non_shared'
14141
lt_prog_compiler_pic_F77='-KPIC'
14142
lt_prog_compiler_static_F77='-Bstatic'
14145
linux* | k*bsd*-gnu)
14146
case $cc_basename in
14148
lt_prog_compiler_wl_F77='-Wl,'
14149
lt_prog_compiler_pic_F77='-KPIC'
14150
lt_prog_compiler_static_F77='-static'
14152
pgcc* | pgf77* | pgf90* | pgf95*)
14153
# Portland Group compilers (*not* the Pentium gcc compiler,
14154
# which looks to be a dead project)
14155
lt_prog_compiler_wl_F77='-Wl,'
14156
lt_prog_compiler_pic_F77='-fpic'
14157
lt_prog_compiler_static_F77='-Bstatic'
14160
lt_prog_compiler_wl_F77='-Wl,'
14161
# All Alpha code is PIC.
14162
lt_prog_compiler_static_F77='-non_shared'
14165
case `$CC -V 2>&1 | sed 5q` in
14168
lt_prog_compiler_pic_F77='-KPIC'
14169
lt_prog_compiler_static_F77='-Bstatic'
14170
lt_prog_compiler_wl_F77='-Wl,'
14173
# Sun Fortran 8.3 passes all unrecognized flags to the linker
14174
lt_prog_compiler_pic_F77='-KPIC'
14175
lt_prog_compiler_static_F77='-Bstatic'
14176
lt_prog_compiler_wl_F77=''
14183
osf3* | osf4* | osf5*)
14184
lt_prog_compiler_wl_F77='-Wl,'
14185
# All OSF/1 code is PIC.
14186
lt_prog_compiler_static_F77='-non_shared'
14190
lt_prog_compiler_static_F77='-non_shared'
14194
lt_prog_compiler_pic_F77='-KPIC'
14195
lt_prog_compiler_static_F77='-Bstatic'
14196
case $cc_basename in
14197
f77* | f90* | f95*)
14198
lt_prog_compiler_wl_F77='-Qoption ld ';;
14200
lt_prog_compiler_wl_F77='-Wl,';;
14205
lt_prog_compiler_wl_F77='-Qoption ld '
14206
lt_prog_compiler_pic_F77='-PIC'
14207
lt_prog_compiler_static_F77='-Bstatic'
14210
sysv4 | sysv4.2uw2* | sysv4.3*)
14211
lt_prog_compiler_wl_F77='-Wl,'
14212
lt_prog_compiler_pic_F77='-KPIC'
14213
lt_prog_compiler_static_F77='-Bstatic'
14217
if test -d /usr/nec ;then
14218
lt_prog_compiler_pic_F77='-Kconform_pic'
14219
lt_prog_compiler_static_F77='-Bstatic'
14223
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14224
lt_prog_compiler_wl_F77='-Wl,'
14225
lt_prog_compiler_pic_F77='-KPIC'
14226
lt_prog_compiler_static_F77='-Bstatic'
14230
lt_prog_compiler_wl_F77='-Wl,'
14231
lt_prog_compiler_can_build_shared_F77=no
14235
lt_prog_compiler_pic_F77='-pic'
14236
lt_prog_compiler_static_F77='-Bstatic'
14240
lt_prog_compiler_can_build_shared_F77=no
14245
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14246
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14249
# Check to make sure the PIC flag actually works.
14251
if test -n "$lt_prog_compiler_pic_F77"; then
14253
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14254
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14255
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14256
echo $ECHO_N "(cached) $ECHO_C" >&6
14258
lt_prog_compiler_pic_works_F77=no
14259
ac_outfile=conftest.$ac_objext
14260
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14261
lt_compiler_flag="$lt_prog_compiler_pic_F77"
14262
# Insert the option either (1) after the last *FLAGS variable, or
14263
# (2) before a word containing "conftest.", or (3) at the end.
14264
# Note that $ac_compile itself does not contain backslashes and begins
14265
# with a dollar sign (not a hyphen), so the echo should work correctly.
14266
# The option is referenced via a variable to avoid confusing sed.
14267
lt_compile=`echo "$ac_compile" | $SED \
14268
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14269
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14270
-e 's:$: $lt_compiler_flag:'`
14271
(eval echo "\"\$as_me:14271: $lt_compile\"" >&5)
14272
(eval "$lt_compile" 2>conftest.err)
14274
cat conftest.err >&5
14275
echo "$as_me:14275: \$? = $ac_status" >&5
14276
if (exit $ac_status) && test -s "$ac_outfile"; then
14277
# The compiler can only warn and ignore the option if not recognized
14278
# So say no if there are warnings other than the usual output.
14279
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14280
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14281
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14282
lt_prog_compiler_pic_works_F77=yes
14288
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14289
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14291
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14292
case $lt_prog_compiler_pic_F77 in
14294
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14297
lt_prog_compiler_pic_F77=
14298
lt_prog_compiler_can_build_shared_F77=no
14303
# For platforms which do not support PIC, -DPIC is meaningless:
14305
lt_prog_compiler_pic_F77=
14308
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14313
# Check to make sure the static flag actually works.
14315
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14316
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14317
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14318
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14319
echo $ECHO_N "(cached) $ECHO_C" >&6
14321
lt_prog_compiler_static_works_F77=no
14322
save_LDFLAGS="$LDFLAGS"
14323
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14324
echo "$lt_simple_link_test_code" > conftest.$ac_ext
14325
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14326
# The linker can only warn and ignore the option if not recognized
14327
# So say no if there are warnings
14328
if test -s conftest.err; then
14329
# Append any errors to the config.log.
14330
cat conftest.err 1>&5
14331
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14332
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14333
if diff conftest.exp conftest.er2 >/dev/null; then
14334
lt_prog_compiler_static_works_F77=yes
14337
lt_prog_compiler_static_works_F77=yes
14341
LDFLAGS="$save_LDFLAGS"
14344
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14345
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14347
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14350
lt_prog_compiler_static_F77=
14354
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14355
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14356
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14357
echo $ECHO_N "(cached) $ECHO_C" >&6
14359
lt_cv_prog_compiler_c_o_F77=no
14360
$rm -r conftest 2>/dev/null
14364
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14366
lt_compiler_flag="-o out/conftest2.$ac_objext"
14367
# Insert the option either (1) after the last *FLAGS variable, or
14368
# (2) before a word containing "conftest.", or (3) at the end.
14369
# Note that $ac_compile itself does not contain backslashes and begins
14370
# with a dollar sign (not a hyphen), so the echo should work correctly.
14371
lt_compile=`echo "$ac_compile" | $SED \
14372
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14373
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14374
-e 's:$: $lt_compiler_flag:'`
14375
(eval echo "\"\$as_me:14375: $lt_compile\"" >&5)
14376
(eval "$lt_compile" 2>out/conftest.err)
14378
cat out/conftest.err >&5
14379
echo "$as_me:14379: \$? = $ac_status" >&5
14380
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14382
# The compiler can only warn and ignore the option if not recognized
14383
# So say no if there are warnings
14384
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14385
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14386
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14387
lt_cv_prog_compiler_c_o_F77=yes
14392
# SGI C++ compiler will create directory out/ii_files/ for
14393
# template instantiation
14394
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14395
$rm out/* && rmdir out
14401
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14402
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14405
hard_links="nottested"
14406
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14407
# do not overwrite the value of need_locks provided by the user
14408
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14409
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14412
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14414
ln conftest.a conftest.b 2>&5 || hard_links=no
14415
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14416
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14417
echo "${ECHO_T}$hard_links" >&6; }
14418
if test "$hard_links" = no; then
14419
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14420
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14427
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14428
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14431
allow_undefined_flag_F77=
14432
enable_shared_with_static_runtimes_F77=no
14434
archive_expsym_cmds_F77=
14435
old_archive_From_new_cmds_F77=
14436
old_archive_from_expsyms_cmds_F77=
14437
export_dynamic_flag_spec_F77=
14438
whole_archive_flag_spec_F77=
14439
thread_safe_flag_spec_F77=
14440
hardcode_libdir_flag_spec_F77=
14441
hardcode_libdir_flag_spec_ld_F77=
14442
hardcode_libdir_separator_F77=
14443
hardcode_direct_F77=no
14444
hardcode_minus_L_F77=no
14445
hardcode_shlibpath_var_F77=unsupported
14446
link_all_deplibs_F77=unknown
14447
hardcode_automatic_F77=no
14449
module_expsym_cmds_F77=
14450
always_export_symbols_F77=no
14451
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14452
# include_expsyms should be a list of space-separated symbols to be *always*
14453
# included in the symbol list
14454
include_expsyms_F77=
14455
# exclude_expsyms can be an extended regexp of symbols to exclude
14456
# it will be wrapped by ` (' and `)$', so one must not match beginning or
14457
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14458
# as well as any symbol that contains `d'.
14459
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14460
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14461
# platforms (ab)use it in PIC code, but their linkers get confused if
14462
# the symbol is explicitly referenced. Since portable code cannot
14463
# rely on this symbol name, it's probably fine to never include it in
14464
# preloaded symbol tables.
14465
extract_expsyms_cmds=
14466
# Just being paranoid about ensuring that cc_basename is set.
14467
for cc_temp in $compiler""; do
14469
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14470
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14475
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14478
cygwin* | mingw* | pw32*)
14479
# FIXME: the MSVC++ port hasn't been tested in a loooong time
14480
# When not using gcc, we currently assume that we are using
14481
# Microsoft Visual C++.
14482
if test "$GCC" != yes; then
14487
# we just hope/assume this is gcc and not c89 (= MSVC++)
14496
if test "$with_gnu_ld" = yes; then
14497
# If archive_cmds runs LD, not CC, wlarc should be empty
14500
# Set some defaults for GNU ld with shared library support. These
14501
# are reset later if shared libraries are not supported. Putting them
14502
# here allows them to be overridden if necessary.
14503
runpath_var=LD_RUN_PATH
14504
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14505
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14506
# ancient GNU ld didn't support --whole-archive et. al.
14507
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14508
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14510
whole_archive_flag_spec_F77=
14512
supports_anon_versioning=no
14513
case `$LD -v 2>/dev/null` in
14514
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14515
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14516
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14517
*\ 2.11.*) ;; # other 2.11 versions
14518
*) supports_anon_versioning=yes ;;
14521
# See if GNU ld supports shared libraries.
14523
aix3* | aix4* | aix5*)
14524
# On AIX/PPC, the GNU linker is very broken
14525
if test "$host_cpu" != ia64; then
14529
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14530
*** to be unable to reliably create shared libraries on AIX.
14531
*** Therefore, libtool is disabling shared libraries support. If you
14532
*** really care for shared libraries, you may want to modify your PATH
14533
*** so that a non-GNU linker is found, and then restart.
14540
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)'
14541
hardcode_libdir_flag_spec_F77='-L$libdir'
14542
hardcode_minus_L_F77=yes
14544
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14545
# that the semantics of dynamic libraries on AmigaOS, at least up
14546
# to version 4, is to share data among multiple programs linked
14547
# with the same dynamic library. Since this doesn't match the
14548
# behavior of shared libraries on other platforms, we can't use
14554
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14555
allow_undefined_flag_F77=unsupported
14556
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14557
# support --undefined. This deserves some investigation. FIXME
14558
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14564
cygwin* | mingw* | pw32*)
14565
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14566
# as there is no search path for DLLs.
14567
hardcode_libdir_flag_spec_F77='-L$libdir'
14568
allow_undefined_flag_F77=unsupported
14569
always_export_symbols_F77=no
14570
enable_shared_with_static_runtimes_F77=yes
14571
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14573
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14574
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14575
# If the export-symbols file already is a .def file (1st line
14576
# is EXPORTS), use it as is; otherwise, prepend...
14577
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14578
cp $export_symbols $output_objdir/$soname.def;
14580
echo EXPORTS > $output_objdir/$soname.def;
14581
cat $export_symbols >> $output_objdir/$soname.def;
14583
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14590
hardcode_direct_F77=no
14591
hardcode_shlibpath_var_F77=no
14592
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14593
export_dynamic_flag_spec_F77='${wl}-E'
14594
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14595
# Instead, shared libraries are loaded at an image base (0x10000000 by
14596
# default) and relocated if they conflict, which is a slow very memory
14597
# consuming and fragmenting process. To avoid this, we pick a random,
14598
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14599
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14600
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'
14601
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'
14604
gnu* | linux* | k*bsd*-gnu)
14605
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14607
case $cc_basename,$host_cpu in
14608
pgcc*) # Portland Group C compiler
14609
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'
14610
tmp_addflag=' $pic_flag'
14612
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14613
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'
14614
tmp_addflag=' $pic_flag -Mnomain' ;;
14615
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14616
tmp_addflag=' -i_dynamic' ;;
14617
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14618
tmp_addflag=' -i_dynamic -nofor_main' ;;
14619
ifc* | ifort*) # Intel Fortran compiler
14620
tmp_addflag=' -nofor_main' ;;
14622
case `$CC -V 2>&1 | sed 5q` in
14623
*Sun\ C*) # Sun C 5.9
14624
whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14625
tmp_sharedflag='-G' ;;
14626
*Sun\ F*) # Sun Fortran 8.3
14627
tmp_sharedflag='-G' ;;
14629
tmp_sharedflag='-shared' ;;
14631
archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14633
if test $supports_anon_versioning = yes; then
14634
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14635
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14636
$echo "local: *; };" >> $output_objdir/$libname.ver~
14637
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14645
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14646
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14649
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14650
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14655
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14659
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14660
*** create shared libraries on Solaris systems. Therefore, libtool
14661
*** is disabling shared libraries support. We urge you to upgrade GNU
14662
*** binutils to release 2.9.1 or newer. Another option is to modify
14663
*** your PATH or compiler configuration so that the native linker is
14664
*** used, and then restart.
14667
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14668
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14669
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14675
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14676
case `$LD -v 2>&1` in
14677
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14681
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14682
*** reliably create shared libraries on SCO systems. Therefore, libtool
14683
*** is disabling shared libraries support. We urge you to upgrade GNU
14684
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14685
*** your PATH or compiler configuration so that the native linker is
14686
*** used, and then restart.
14691
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14692
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14693
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14694
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14703
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14705
hardcode_direct_F77=yes
14706
hardcode_shlibpath_var_F77=no
14710
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14711
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14712
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14719
if test "$ld_shlibs_F77" = no; then
14721
hardcode_libdir_flag_spec_F77=
14722
export_dynamic_flag_spec_F77=
14723
whole_archive_flag_spec_F77=
14726
# PORTME fill in a description of your system's linker (not GNU ld)
14729
allow_undefined_flag_F77=unsupported
14730
always_export_symbols_F77=yes
14731
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'
14732
# Note: this linker hardcodes the directories in LIBPATH if there
14733
# are no directories specified by -L.
14734
hardcode_minus_L_F77=yes
14735
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14736
# Neither direct hardcoding nor static linking is supported with a
14738
hardcode_direct_F77=unsupported
14743
if test "$host_cpu" = ia64; then
14744
# On IA64, the linker does run time linking by default, so we don't
14745
# have to do anything special.
14746
aix_use_runtimelinking=no
14747
exp_sym_flag='-Bexport'
14750
# If we're using GNU nm, then we don't want the "-C" option.
14751
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14752
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14753
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'
14755
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'
14757
aix_use_runtimelinking=no
14759
# Test if we are trying to use run time linking or normal
14760
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14761
# need to do runtime linking.
14762
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14763
for ld_flag in $LDFLAGS; do
14764
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14765
aix_use_runtimelinking=yes
14772
exp_sym_flag='-bexport'
14773
no_entry_flag='-bnoentry'
14776
# When large executables or shared objects are built, AIX ld can
14777
# have problems creating the table of contents. If linking a library
14778
# or program results in "error TOC overflow" add -mminimal-toc to
14779
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14780
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14782
archive_cmds_F77=''
14783
hardcode_direct_F77=yes
14784
hardcode_libdir_separator_F77=':'
14785
link_all_deplibs_F77=yes
14787
if test "$GCC" = yes; then
14788
case $host_os in aix4.[012]|aix4.[012].*)
14789
# We only want to do this on AIX 4.2 and lower, the check
14790
# below for broken collect2 doesn't work under 4.3+
14791
collect2name=`${CC} -print-prog-name=collect2`
14792
if test -f "$collect2name" && \
14793
strings "$collect2name" | grep resolve_lib_name >/dev/null
14795
# We have reworked collect2
14798
# We have old collect2
14799
hardcode_direct_F77=unsupported
14800
# It fails to find uninstalled libraries when the uninstalled
14801
# path is not listed in the libpath. Setting hardcode_minus_L
14802
# to unsupported forces relinking
14803
hardcode_minus_L_F77=yes
14804
hardcode_libdir_flag_spec_F77='-L$libdir'
14805
hardcode_libdir_separator_F77=
14809
shared_flag='-shared'
14810
if test "$aix_use_runtimelinking" = yes; then
14811
shared_flag="$shared_flag "'${wl}-G'
14815
if test "$host_cpu" = ia64; then
14816
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14817
# chokes on -Wl,-G. The following line is correct:
14820
if test "$aix_use_runtimelinking" = yes; then
14821
shared_flag='${wl}-G'
14823
shared_flag='${wl}-bM:SRE'
14828
# It seems that -bexpall does not export symbols beginning with
14829
# underscore (_), so it is better to generate a list of symbols to export.
14830
always_export_symbols_F77=yes
14831
if test "$aix_use_runtimelinking" = yes; then
14832
# Warning - without using the other runtime loading flags (-brtl),
14833
# -berok will link without error, but may produce a broken library.
14834
allow_undefined_flag_F77='-berok'
14835
# Determine the default libpath from the value encoded in an empty executable.
14836
cat >conftest.$ac_ext <<_ACEOF
14841
rm -f conftest.$ac_objext conftest$ac_exeext
14842
if { (ac_try="$ac_link"
14843
case "(($ac_try" in
14844
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14845
*) ac_try_echo=$ac_try;;
14847
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14848
(eval "$ac_link") 2>conftest.er1
14850
grep -v '^ *+' conftest.er1 >conftest.err
14852
cat conftest.err >&5
14853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854
(exit $ac_status); } && {
14855
test -z "$ac_f77_werror_flag" ||
14856
test ! -s conftest.err
14857
} && test -s conftest$ac_exeext &&
14858
$as_test_x conftest$ac_exeext; then
14860
lt_aix_libpath_sed='
14861
/Import File Strings/,/^$/ {
14867
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14868
# Check for a 64-bit object if we didn't find anything.
14869
if test -z "$aix_libpath"; then
14870
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14873
echo "$as_me: failed program was:" >&5
14874
sed 's/^/| /' conftest.$ac_ext >&5
14879
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14880
conftest$ac_exeext conftest.$ac_ext
14881
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14883
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14884
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"
14886
if test "$host_cpu" = ia64; then
14887
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14888
allow_undefined_flag_F77="-z nodefs"
14889
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"
14891
# Determine the default libpath from the value encoded in an empty executable.
14892
cat >conftest.$ac_ext <<_ACEOF
14897
rm -f conftest.$ac_objext conftest$ac_exeext
14898
if { (ac_try="$ac_link"
14899
case "(($ac_try" in
14900
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14901
*) ac_try_echo=$ac_try;;
14903
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14904
(eval "$ac_link") 2>conftest.er1
14906
grep -v '^ *+' conftest.er1 >conftest.err
14908
cat conftest.err >&5
14909
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910
(exit $ac_status); } && {
14911
test -z "$ac_f77_werror_flag" ||
14912
test ! -s conftest.err
14913
} && test -s conftest$ac_exeext &&
14914
$as_test_x conftest$ac_exeext; then
14916
lt_aix_libpath_sed='
14917
/Import File Strings/,/^$/ {
14923
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14924
# Check for a 64-bit object if we didn't find anything.
14925
if test -z "$aix_libpath"; then
14926
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14929
echo "$as_me: failed program was:" >&5
14930
sed 's/^/| /' conftest.$ac_ext >&5
14935
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14936
conftest$ac_exeext conftest.$ac_ext
14937
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14939
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14940
# Warning - without using the other run time loading flags,
14941
# -berok will link without error, but may produce a broken library.
14942
no_undefined_flag_F77=' ${wl}-bernotok'
14943
allow_undefined_flag_F77=' ${wl}-berok'
14944
# Exported symbols can be pulled into shared objects from archives
14945
whole_archive_flag_spec_F77='$convenience'
14946
archive_cmds_need_lc_F77=yes
14947
# This is similar to how AIX traditionally builds its shared libraries.
14948
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'
14954
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)'
14955
hardcode_libdir_flag_spec_F77='-L$libdir'
14956
hardcode_minus_L_F77=yes
14957
# see comment about different semantics on the GNU ld section
14962
export_dynamic_flag_spec_F77=-rdynamic
14965
cygwin* | mingw* | pw32*)
14966
# When not using gcc, we currently assume that we are using
14967
# Microsoft Visual C++.
14968
# hardcode_libdir_flag_spec is actually meaningless, as there is
14969
# no search path for DLLs.
14970
hardcode_libdir_flag_spec_F77=' '
14971
allow_undefined_flag_F77=unsupported
14972
# Tell ltmain to make .lib files, not .a files.
14974
# Tell ltmain to make .dll files, not .so files.
14976
# FIXME: Setting linknames here is a bad hack.
14977
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14978
# The linker will automatically build a .lib file if we build a DLL.
14979
old_archive_From_new_cmds_F77='true'
14980
# FIXME: Should let the user specify the lib program.
14981
old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14982
fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14983
enable_shared_with_static_runtimes_F77=yes
14986
darwin* | rhapsody*)
14988
rhapsody* | darwin1.[012])
14989
allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14992
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14993
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14995
case ${MACOSX_DEPLOYMENT_TARGET} in
14997
allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15000
allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15006
archive_cmds_need_lc_F77=no
15007
hardcode_direct_F77=no
15008
hardcode_automatic_F77=yes
15009
hardcode_shlibpath_var_F77=unsupported
15010
whole_archive_flag_spec_F77=''
15011
link_all_deplibs_F77=yes
15012
if test "$GCC" = yes ; then
15013
output_verbose_link_cmd='echo'
15014
archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15015
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15016
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15017
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}'
15018
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}'
15020
case $cc_basename in
15022
output_verbose_link_cmd='echo'
15023
archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15024
module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15025
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15026
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15027
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}'
15037
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15038
hardcode_libdir_flag_spec_F77='-L$libdir'
15039
hardcode_shlibpath_var_F77=no
15046
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15047
# support. Future versions do this automatically, but an explicit c++rt0.o
15048
# does not break anything, and helps significantly (at the cost of a little
15051
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15052
hardcode_libdir_flag_spec_F77='-R$libdir'
15053
hardcode_direct_F77=yes
15054
hardcode_shlibpath_var_F77=no
15057
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
15059
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15060
hardcode_direct_F77=yes
15061
hardcode_minus_L_F77=yes
15062
hardcode_shlibpath_var_F77=no
15065
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15066
freebsd* | dragonfly*)
15067
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15068
hardcode_libdir_flag_spec_F77='-R$libdir'
15069
hardcode_direct_F77=yes
15070
hardcode_shlibpath_var_F77=no
15074
if test "$GCC" = yes; then
15075
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'
15077
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'
15079
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15080
hardcode_libdir_separator_F77=:
15081
hardcode_direct_F77=yes
15083
# hardcode_minus_L: Not really in the search PATH,
15084
# but as the default location of the library.
15085
hardcode_minus_L_F77=yes
15086
export_dynamic_flag_spec_F77='${wl}-E'
15090
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15091
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15093
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15095
if test "$with_gnu_ld" = no; then
15096
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15097
hardcode_libdir_separator_F77=:
15099
hardcode_direct_F77=yes
15100
export_dynamic_flag_spec_F77='${wl}-E'
15102
# hardcode_minus_L: Not really in the search PATH,
15103
# but as the default location of the library.
15104
hardcode_minus_L_F77=yes
15109
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15112
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15115
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15118
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15124
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15127
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15130
archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15134
if test "$with_gnu_ld" = no; then
15135
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15136
hardcode_libdir_separator_F77=:
15140
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15141
hardcode_direct_F77=no
15142
hardcode_shlibpath_var_F77=no
15145
hardcode_direct_F77=yes
15146
export_dynamic_flag_spec_F77='${wl}-E'
15148
# hardcode_minus_L: Not really in the search PATH,
15149
# but as the default location of the library.
15150
hardcode_minus_L_F77=yes
15156
irix5* | irix6* | nonstopux*)
15157
if test "$GCC" = yes; then
15158
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'
15160
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'
15161
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15163
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15164
hardcode_libdir_separator_F77=:
15165
link_all_deplibs_F77=yes
15169
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15170
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15172
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15174
hardcode_libdir_flag_spec_F77='-R$libdir'
15175
hardcode_direct_F77=yes
15176
hardcode_shlibpath_var_F77=no
15180
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15181
hardcode_direct_F77=yes
15182
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15183
hardcode_libdir_separator_F77=:
15184
hardcode_shlibpath_var_F77=no
15188
if test -f /usr/libexec/ld.so; then
15189
hardcode_direct_F77=yes
15190
hardcode_shlibpath_var_F77=no
15191
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15192
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15193
archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15194
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15195
export_dynamic_flag_spec_F77='${wl}-E'
15198
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15199
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15200
hardcode_libdir_flag_spec_F77='-R$libdir'
15203
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15204
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15214
hardcode_libdir_flag_spec_F77='-L$libdir'
15215
hardcode_minus_L_F77=yes
15216
allow_undefined_flag_F77=unsupported
15217
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'
15218
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15222
if test "$GCC" = yes; then
15223
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15224
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'
15226
allow_undefined_flag_F77=' -expect_unresolved \*'
15227
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'
15229
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15230
hardcode_libdir_separator_F77=:
15233
osf4* | osf5*) # as osf3* with the addition of -msym flag
15234
if test "$GCC" = yes; then
15235
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15236
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'
15237
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15239
allow_undefined_flag_F77=' -expect_unresolved \*'
15240
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'
15241
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~
15242
$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'
15244
# Both c and cxx compiler support -rpath directly
15245
hardcode_libdir_flag_spec_F77='-rpath $libdir'
15247
hardcode_libdir_separator_F77=:
15251
no_undefined_flag_F77=' -z text'
15252
if test "$GCC" = yes; then
15254
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15255
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15256
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15259
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15260
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15261
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15263
hardcode_libdir_flag_spec_F77='-R$libdir'
15264
hardcode_shlibpath_var_F77=no
15266
solaris2.[0-5] | solaris2.[0-5].*) ;;
15268
# The compiler driver will combine and reorder linker options,
15269
# but understands `-z linker_flag'. GCC discards it without `$wl',
15270
# but is careful enough not to reorder.
15271
# Supported since Solaris 2.6 (maybe 2.5.1?)
15272
if test "$GCC" = yes; then
15273
whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15275
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15279
link_all_deplibs_F77=yes
15283
if test "x$host_vendor" = xsequent; then
15284
# Use $CC to link under sequent, because it throws in some extra .o
15285
# files that make .init and .fini sections work.
15286
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15288
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15290
hardcode_libdir_flag_spec_F77='-L$libdir'
15291
hardcode_direct_F77=yes
15292
hardcode_minus_L_F77=yes
15293
hardcode_shlibpath_var_F77=no
15297
case $host_vendor in
15299
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15300
hardcode_direct_F77=yes # is this really true???
15303
## LD is ld it makes a PLAMLIB
15304
## CC just makes a GrossModule.
15305
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15306
reload_cmds_F77='$CC -r -o $output$reload_objs'
15307
hardcode_direct_F77=no
15310
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15311
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15314
runpath_var='LD_RUN_PATH'
15315
hardcode_shlibpath_var_F77=no
15319
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15320
hardcode_shlibpath_var_F77=no
15321
export_dynamic_flag_spec_F77='-Bexport'
15325
if test -d /usr/nec; then
15326
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15327
hardcode_shlibpath_var_F77=no
15328
runpath_var=LD_RUN_PATH
15329
hardcode_runpath_var=yes
15334
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15335
no_undefined_flag_F77='${wl}-z,text'
15336
archive_cmds_need_lc_F77=no
15337
hardcode_shlibpath_var_F77=no
15338
runpath_var='LD_RUN_PATH'
15340
if test "$GCC" = yes; then
15341
archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15342
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15344
archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15345
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15349
sysv5* | sco3.2v5* | sco5v6*)
15350
# Note: We can NOT use -z defs as we might desire, because we do not
15351
# link with -lc, and that would cause any symbols used from libc to
15352
# always be unresolved, which means just about no library would
15353
# ever link correctly. If we're not using GNU ld we use -z text
15354
# though, which does catch some bad symbols but isn't as heavy-handed
15356
no_undefined_flag_F77='${wl}-z,text'
15357
allow_undefined_flag_F77='${wl}-z,nodefs'
15358
archive_cmds_need_lc_F77=no
15359
hardcode_shlibpath_var_F77=no
15360
hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15361
hardcode_libdir_separator_F77=':'
15362
link_all_deplibs_F77=yes
15363
export_dynamic_flag_spec_F77='${wl}-Bexport'
15364
runpath_var='LD_RUN_PATH'
15366
if test "$GCC" = yes; then
15367
archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15368
archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15370
archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15371
archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15376
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15377
hardcode_libdir_flag_spec_F77='-L$libdir'
15378
hardcode_shlibpath_var_F77=no
15387
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15388
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15389
test "$ld_shlibs_F77" = no && can_build_shared=no
15392
# Do we need to explicitly link libc?
15394
case "x$archive_cmds_need_lc_F77" in
15396
# Assume -lc should be added
15397
archive_cmds_need_lc_F77=yes
15399
if test "$enable_shared" = yes && test "$GCC" = yes; then
15400
case $archive_cmds_F77 in
15402
# FIXME: we may have to deal with multi-command sequences.
15405
# Test whether the compiler implicitly links with -lc since on some
15406
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15407
# to ld, don't add -lc before -lgcc.
15408
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15409
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15411
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15413
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15414
(eval $ac_compile) 2>&5
15416
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417
(exit $ac_status); } 2>conftest.err; then
15420
libobjs=conftest.$ac_objext
15422
wl=$lt_prog_compiler_wl_F77
15423
pic_flag=$lt_prog_compiler_pic_F77
15429
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15430
allow_undefined_flag_F77=
15431
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15432
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15434
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435
(exit $ac_status); }
15437
archive_cmds_need_lc_F77=no
15439
archive_cmds_need_lc_F77=yes
15441
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15443
cat conftest.err 1>&5
15446
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15447
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15454
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15455
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15456
library_names_spec=
15457
libname_spec='lib$name'
15461
postuninstall_cmds=
15465
shlibpath_overrides_runpath=unknown
15467
dynamic_linker="$host_os ld.so"
15468
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15470
need_lib_prefix=unknown
15471
hardcode_into_libs=no
15473
# when you set need_version to no, make sure it does not cause -set_version
15474
# flags to be left without arguments
15475
need_version=unknown
15480
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15481
shlibpath_var=LIBPATH
15483
# AIX 3 has no versioning support, so we append a major version to the name.
15484
soname_spec='${libname}${release}${shared_ext}$major'
15491
hardcode_into_libs=yes
15492
if test "$host_cpu" = ia64; then
15493
# AIX 5 supports IA64
15494
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15495
shlibpath_var=LD_LIBRARY_PATH
15497
# With GCC up to 2.95.x, collect2 would create an import file
15498
# for dependence libraries. The import file would start with
15499
# the line `#! .'. This would cause the generated library to
15500
# depend on `.', always an invalid library. This was fixed in
15501
# development snapshots of GCC prior to 3.0.
15503
aix4 | aix4.[01] | aix4.[01].*)
15504
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15506
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15509
can_build_shared=no
15513
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15514
# soname into executable. Probably we can add versioning support to
15515
# collect2, so additional links can be useful in future.
15516
if test "$aix_use_runtimelinking" = yes; then
15517
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15518
# instead of lib<name>.a to let people know that these are not
15519
# typical AIX shared libraries.
15520
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15522
# We preserve .a as extension for shared libraries through AIX4.2
15523
# and later when we are not doing run time linking.
15524
library_names_spec='${libname}${release}.a $libname.a'
15525
soname_spec='${libname}${release}${shared_ext}$major'
15527
shlibpath_var=LIBPATH
15532
library_names_spec='$libname.ixlibrary $libname.a'
15533
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15534
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'
15538
library_names_spec='${libname}${shared_ext}'
15539
dynamic_linker="$host_os ld.so"
15540
shlibpath_var=LIBRARY_PATH
15546
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15547
soname_spec='${libname}${release}${shared_ext}$major'
15548
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15549
shlibpath_var=LD_LIBRARY_PATH
15550
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15551
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15552
# the default ld.so.conf also contains /usr/contrib/lib and
15553
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15554
# libtool to hard-code these into programs
15557
cygwin* | mingw* | pw32*)
15558
version_type=windows
15563
case $GCC,$host_os in
15564
yes,cygwin* | yes,mingw* | yes,pw32*)
15565
library_names_spec='$libname.dll.a'
15566
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15567
postinstall_cmds='base_file=`basename \${file}`~
15568
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15569
dldir=$destdir/`dirname \$dlpath`~
15570
test -d \$dldir || mkdir -p \$dldir~
15571
$install_prog $dir/$dlname \$dldir/$dlname~
15572
chmod a+x \$dldir/$dlname'
15573
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15574
dlpath=$dir/\$dldll~
15576
shlibpath_overrides_runpath=yes
15580
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15581
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15582
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15585
# MinGW DLLs use traditional 'lib' prefix
15586
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15587
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15588
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15589
# It is most probably a Windows format PATH printed by
15590
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15591
# path with ; separators, and with drive letters. We can handle the
15592
# drive letters (cygwin fileutils understands them), so leave them,
15593
# especially as we might pass files found there to a mingw objdump,
15594
# which wouldn't understand a cygwinified path. Ahh.
15595
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15597
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15601
# pw32 DLLs use 'pw' prefix rather than 'lib'
15602
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15608
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15611
dynamic_linker='Win32 ld.exe'
15612
# FIXME: first we should search . and the directory the executable is in
15616
darwin* | rhapsody*)
15617
dynamic_linker="$host_os dyld"
15618
version_type=darwin
15621
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15622
soname_spec='${libname}${release}${major}$shared_ext'
15623
shlibpath_overrides_runpath=yes
15624
shlibpath_var=DYLD_LIBRARY_PATH
15625
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15627
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15634
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15635
soname_spec='${libname}${release}${shared_ext}$major'
15636
shlibpath_var=LD_LIBRARY_PATH
15643
freebsd* | dragonfly*)
15644
# DragonFly does not have aout. When/if they implement a new
15645
# versioning mechanism, adjust this.
15646
if test -x /usr/bin/objformat; then
15647
objformat=`/usr/bin/objformat`
15650
freebsd[123]*) objformat=aout ;;
15651
*) objformat=elf ;;
15654
# Handle Gentoo/FreeBSD as it was Linux
15655
case $host_vendor in
15657
version_type=linux ;;
15659
version_type=freebsd-$objformat ;;
15662
case $version_type in
15664
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15669
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15673
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15674
soname_spec='${libname}${release}${shared_ext}$major'
15679
shlibpath_var=LD_LIBRARY_PATH
15682
shlibpath_overrides_runpath=yes
15684
freebsd3.[01]* | freebsdelf3.[01]*)
15685
shlibpath_overrides_runpath=yes
15686
hardcode_into_libs=yes
15688
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15689
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15690
shlibpath_overrides_runpath=no
15691
hardcode_into_libs=yes
15693
*) # from 4.6 on, and DragonFly
15694
shlibpath_overrides_runpath=yes
15695
hardcode_into_libs=yes
15704
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15705
soname_spec='${libname}${release}${shared_ext}$major'
15706
shlibpath_var=LD_LIBRARY_PATH
15707
hardcode_into_libs=yes
15710
hpux9* | hpux10* | hpux11*)
15711
# Give a soname corresponding to the major version so that dld.sl refuses to
15712
# link against other versions.
15719
hardcode_into_libs=yes
15720
dynamic_linker="$host_os dld.so"
15721
shlibpath_var=LD_LIBRARY_PATH
15722
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15723
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15724
soname_spec='${libname}${release}${shared_ext}$major'
15725
if test "X$HPUX_IA64_MODE" = X32; then
15726
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15728
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15730
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15734
hardcode_into_libs=yes
15735
dynamic_linker="$host_os dld.sl"
15736
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15737
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15738
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15739
soname_spec='${libname}${release}${shared_ext}$major'
15740
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15741
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15745
dynamic_linker="$host_os dld.sl"
15746
shlibpath_var=SHLIB_PATH
15747
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15748
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15749
soname_spec='${libname}${release}${shared_ext}$major'
15752
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15753
postinstall_cmds='chmod 555 $lib'
15760
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15761
soname_spec='${libname}${release}${shared_ext}$major'
15762
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15763
shlibpath_var=LD_LIBRARY_PATH
15764
shlibpath_overrides_runpath=no
15765
hardcode_into_libs=yes
15768
irix5* | irix6* | nonstopux*)
15770
nonstopux*) version_type=nonstopux ;;
15772
if test "$lt_cv_prog_gnu_ld" = yes; then
15780
soname_spec='${libname}${release}${shared_ext}$major'
15781
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15783
irix5* | nonstopux*)
15784
libsuff= shlibsuff=
15787
case $LD in # libtool.m4 will add one of these switches to LD
15788
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15789
libsuff= shlibsuff= libmagic=32-bit;;
15790
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15791
libsuff=32 shlibsuff=N32 libmagic=N32;;
15792
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15793
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15794
*) libsuff= shlibsuff= libmagic=never-match;;
15798
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15799
shlibpath_overrides_runpath=no
15800
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15801
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15802
hardcode_into_libs=yes
15805
# No shared lib support for Linux oldld, aout, or coff.
15806
linux*oldld* | linux*aout* | linux*coff*)
15810
# This must be Linux ELF.
15811
linux* | k*bsd*-gnu)
15815
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15816
soname_spec='${libname}${release}${shared_ext}$major'
15817
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15818
shlibpath_var=LD_LIBRARY_PATH
15819
shlibpath_overrides_runpath=no
15820
# This implies no fast_install, which is unacceptable.
15821
# Some rework will be needed to allow for fast_install
15822
# before this can be enabled.
15823
hardcode_into_libs=yes
15825
# Append ld.so.conf contents to the search path
15826
if test -f /etc/ld.so.conf; then
15827
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15828
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15831
# We used to test for /lib/ld.so.1 and disable shared libraries on
15832
# powerpc, because MkLinux only supported shared libraries with the
15833
# GNU dynamic linker. Since this was broken with cross compilers,
15834
# most powerpc-linux boxes support dynamic linking these days and
15835
# people can always --disable-shared, the test was removed, and we
15836
# assume the GNU/Linux dynamic linker is in use.
15837
dynamic_linker='GNU/Linux ld.so'
15844
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15845
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15846
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15847
dynamic_linker='NetBSD (a.out) ld.so'
15849
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15850
soname_spec='${libname}${release}${shared_ext}$major'
15851
dynamic_linker='NetBSD ld.elf_so'
15853
shlibpath_var=LD_LIBRARY_PATH
15854
shlibpath_overrides_runpath=yes
15855
hardcode_into_libs=yes
15860
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15861
shlibpath_var=LD_LIBRARY_PATH
15862
shlibpath_overrides_runpath=yes
15869
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15870
soname_spec='${libname}${release}${shared_ext}$major'
15871
shlibpath_var=LD_LIBRARY_PATH
15872
shlibpath_overrides_runpath=yes
15877
sys_lib_dlsearch_path_spec="/usr/lib"
15879
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15881
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15882
*) need_version=no ;;
15884
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15885
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15886
shlibpath_var=LD_LIBRARY_PATH
15887
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15889
openbsd2.[89] | openbsd2.[89].*)
15890
shlibpath_overrides_runpath=no
15893
shlibpath_overrides_runpath=yes
15897
shlibpath_overrides_runpath=yes
15902
libname_spec='$name'
15905
library_names_spec='$libname${shared_ext} $libname.a'
15906
dynamic_linker='OS/2 ld.exe'
15907
shlibpath_var=LIBPATH
15910
osf3* | osf4* | osf5*)
15914
soname_spec='${libname}${release}${shared_ext}$major'
15915
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15916
shlibpath_var=LD_LIBRARY_PATH
15917
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15918
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15929
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15930
soname_spec='${libname}${release}${shared_ext}$major'
15931
shlibpath_var=LD_LIBRARY_PATH
15932
shlibpath_overrides_runpath=yes
15933
hardcode_into_libs=yes
15934
# ldd complains unless libraries are executable
15935
postinstall_cmds='chmod +x $lib'
15940
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15941
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15942
shlibpath_var=LD_LIBRARY_PATH
15943
shlibpath_overrides_runpath=yes
15944
if test "$with_gnu_ld" = yes; then
15952
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15953
soname_spec='${libname}${release}${shared_ext}$major'
15954
shlibpath_var=LD_LIBRARY_PATH
15955
case $host_vendor in
15957
shlibpath_overrides_runpath=no
15959
export_dynamic_flag_spec='${wl}-Blargedynsym'
15960
runpath_var=LD_RUN_PATH
15968
shlibpath_overrides_runpath=no
15969
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15975
if test -d /usr/nec ;then
15977
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15978
soname_spec='$libname${shared_ext}.$major'
15979
shlibpath_var=LD_LIBRARY_PATH
15983
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15984
version_type=freebsd-elf
15987
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15988
soname_spec='${libname}${release}${shared_ext}$major'
15989
shlibpath_var=LD_LIBRARY_PATH
15990
hardcode_into_libs=yes
15991
if test "$with_gnu_ld" = yes; then
15992
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15993
shlibpath_overrides_runpath=no
15995
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15996
shlibpath_overrides_runpath=yes
15999
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16003
sys_lib_dlsearch_path_spec='/usr/lib'
16008
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16009
soname_spec='${libname}${release}${shared_ext}$major'
16010
shlibpath_var=LD_LIBRARY_PATH
16017
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16018
echo "${ECHO_T}$dynamic_linker" >&6; }
16019
test "$dynamic_linker" = no && can_build_shared=no
16021
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16022
if test "$GCC" = yes; then
16023
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16026
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16027
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16028
hardcode_action_F77=
16029
if test -n "$hardcode_libdir_flag_spec_F77" || \
16030
test -n "$runpath_var_F77" || \
16031
test "X$hardcode_automatic_F77" = "Xyes" ; then
16033
# We can hardcode non-existant directories.
16034
if test "$hardcode_direct_F77" != no &&
16035
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16036
# have to relink, otherwise we might link with an installed library
16037
# when we should be linking with a yet-to-be-installed one
16038
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16039
test "$hardcode_minus_L_F77" != no; then
16040
# Linking always hardcodes the temporary library directory.
16041
hardcode_action_F77=relink
16043
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16044
hardcode_action_F77=immediate
16047
# We cannot hardcode anything, or else we can only hardcode existing
16049
hardcode_action_F77=unsupported
16051
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16052
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16054
if test "$hardcode_action_F77" = relink; then
16055
# Fast installation is not supported
16056
enable_fast_install=no
16057
elif test "$shlibpath_overrides_runpath" = yes ||
16058
test "$enable_shared" = no; then
16059
# Fast installation is not necessary
16060
enable_fast_install=needless
16064
# The else clause should only fire when bootstrapping the
16065
# libtool distribution, otherwise you forgot to ship ltmain.sh
16066
# with your package, and you will get complaints that there are
16067
# no rules to generate ltmain.sh.
16068
if test -f "$ltmain"; then
16069
# See if we are running on zsh, and set the options which allow our commands through
16070
# without removal of \ escapes.
16071
if test -n "${ZSH_VERSION+set}" ; then
16072
setopt NO_GLOB_SUBST
16074
# Now quote all the things that may contain metacharacters while being
16075
# careful not to overquote the AC_SUBSTed values. We take copies of the
16076
# variables and quote the copies for generation of the libtool script.
16077
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16079
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16080
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16081
deplibs_check_method reload_flag reload_cmds need_locks \
16082
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16083
lt_cv_sys_global_symbol_to_c_name_address \
16084
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16085
old_postinstall_cmds old_postuninstall_cmds \
16089
lt_prog_compiler_wl_F77 \
16090
lt_prog_compiler_pic_F77 \
16091
lt_prog_compiler_static_F77 \
16092
lt_prog_compiler_no_builtin_flag_F77 \
16093
export_dynamic_flag_spec_F77 \
16094
thread_safe_flag_spec_F77 \
16095
whole_archive_flag_spec_F77 \
16096
enable_shared_with_static_runtimes_F77 \
16097
old_archive_cmds_F77 \
16098
old_archive_from_new_cmds_F77 \
16099
predep_objects_F77 \
16100
postdep_objects_F77 \
16103
compiler_lib_search_path_F77 \
16105
archive_expsym_cmds_F77 \
16106
postinstall_cmds_F77 \
16107
postuninstall_cmds_F77 \
16108
old_archive_from_expsyms_cmds_F77 \
16109
allow_undefined_flag_F77 \
16110
no_undefined_flag_F77 \
16111
export_symbols_cmds_F77 \
16112
hardcode_libdir_flag_spec_F77 \
16113
hardcode_libdir_flag_spec_ld_F77 \
16114
hardcode_libdir_separator_F77 \
16115
hardcode_automatic_F77 \
16117
module_expsym_cmds_F77 \
16118
lt_cv_prog_compiler_c_o_F77 \
16119
fix_srcfile_path_F77 \
16120
exclude_expsyms_F77 \
16121
include_expsyms_F77; do
16124
old_archive_cmds_F77 | \
16125
old_archive_from_new_cmds_F77 | \
16126
archive_cmds_F77 | \
16127
archive_expsym_cmds_F77 | \
16128
module_cmds_F77 | \
16129
module_expsym_cmds_F77 | \
16130
old_archive_from_expsyms_cmds_F77 | \
16131
export_symbols_cmds_F77 | \
16132
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16133
postinstall_cmds | postuninstall_cmds | \
16134
old_postinstall_cmds | old_postuninstall_cmds | \
16135
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16136
# Double-quote double-evaled strings.
16137
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16140
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16146
*'\$0 --fallback-echo"')
16147
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16153
cat <<__EOF__ >> "$cfgfile"
16154
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16156
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16158
# Shell to use when invoking shell scripts.
16161
# Whether or not to build shared libraries.
16162
build_libtool_libs=$enable_shared
16164
# Whether or not to build static libraries.
16165
build_old_libs=$enable_static
16167
# Whether or not to add -lc for building shared libraries.
16168
build_libtool_need_lc=$archive_cmds_need_lc_F77
16170
# Whether or not to disallow shared libs when runtime libs are static
16171
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16173
# Whether or not to optimize for fast installation.
16174
fast_install=$enable_fast_install
16177
host_alias=$host_alias
16181
# The build system.
16182
build_alias=$build_alias
16186
# An echo program that does not interpret backslashes.
16191
AR_FLAGS=$lt_AR_FLAGS
16196
# LTCC compiler flags.
16197
LTCFLAGS=$lt_LTCFLAGS
16199
# A language-specific compiler.
16200
CC=$lt_compiler_F77
16202
# Is the compiler the GNU C compiler?
16208
# The linker used to build libraries.
16211
# Whether we need hard or soft links.
16214
# A BSD-compatible nm program.
16217
# A symbol stripping program
16220
# Used to examine libraries when file_magic_cmd begins "file"
16221
MAGIC_CMD=$MAGIC_CMD
16223
# Used on cygwin: DLL creation program.
16226
# Used on cygwin: object dumper.
16229
# Used on cygwin: assembler.
16232
# The name of the directory that contains temporary libtool files.
16235
# How to create reloadable object files.
16236
reload_flag=$lt_reload_flag
16237
reload_cmds=$lt_reload_cmds
16239
# How to pass a linker flag through the compiler.
16240
wl=$lt_lt_prog_compiler_wl_F77
16242
# Object file suffix (normally "o").
16243
objext="$ac_objext"
16245
# Old archive suffix (normally "a").
16248
# Shared library suffix (normally ".so").
16249
shrext_cmds='$shrext_cmds'
16251
# Executable file suffix (normally "").
16254
# Additional compiler flags for building library objects.
16255
pic_flag=$lt_lt_prog_compiler_pic_F77
16258
# What is the maximum length of a command?
16259
max_cmd_len=$lt_cv_sys_max_cmd_len
16261
# Does compiler simultaneously support -c and -o options?
16262
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16264
# Must we lock files when doing compilation?
16265
need_locks=$lt_need_locks
16267
# Do we need the lib prefix for modules?
16268
need_lib_prefix=$need_lib_prefix
16270
# Do we need a version for libraries?
16271
need_version=$need_version
16273
# Whether dlopen is supported.
16274
dlopen_support=$enable_dlopen
16276
# Whether dlopen of programs is supported.
16277
dlopen_self=$enable_dlopen_self
16279
# Whether dlopen of statically linked programs is supported.
16280
dlopen_self_static=$enable_dlopen_self_static
16282
# Compiler flag to prevent dynamic linking.
16283
link_static_flag=$lt_lt_prog_compiler_static_F77
16285
# Compiler flag to turn off builtin functions.
16286
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16288
# Compiler flag to allow reflexive dlopens.
16289
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16291
# Compiler flag to generate shared objects directly from archives.
16292
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16294
# Compiler flag to generate thread-safe objects.
16295
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16297
# Library versioning type.
16298
version_type=$version_type
16300
# Format of library name prefix.
16301
libname_spec=$lt_libname_spec
16303
# List of archive names. First name is the real one, the rest are links.
16304
# The last name is the one that the linker finds with -lNAME.
16305
library_names_spec=$lt_library_names_spec
16307
# The coded name of the library, if different from the real name.
16308
soname_spec=$lt_soname_spec
16310
# Commands used to build and install an old-style archive.
16312
old_archive_cmds=$lt_old_archive_cmds_F77
16313
old_postinstall_cmds=$lt_old_postinstall_cmds
16314
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16316
# Create an old-style archive from a shared archive.
16317
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16319
# Create a temporary old-style archive to link instead of a shared archive.
16320
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16322
# Commands used to build and install a shared archive.
16323
archive_cmds=$lt_archive_cmds_F77
16324
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16325
postinstall_cmds=$lt_postinstall_cmds
16326
postuninstall_cmds=$lt_postuninstall_cmds
16328
# Commands used to build a loadable module (assumed same as above if empty)
16329
module_cmds=$lt_module_cmds_F77
16330
module_expsym_cmds=$lt_module_expsym_cmds_F77
16332
# Commands to strip libraries.
16333
old_striplib=$lt_old_striplib
16334
striplib=$lt_striplib
16336
# Dependencies to place before the objects being linked to create a
16338
predep_objects=$lt_predep_objects_F77
16340
# Dependencies to place after the objects being linked to create a
16342
postdep_objects=$lt_postdep_objects_F77
16344
# Dependencies to place before the objects being linked to create a
16346
predeps=$lt_predeps_F77
16348
# Dependencies to place after the objects being linked to create a
16350
postdeps=$lt_postdeps_F77
16352
# The library search path used internally by the compiler when linking
16353
# a shared library.
16354
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16356
# Method to check whether dependent libraries are shared objects.
16357
deplibs_check_method=$lt_deplibs_check_method
16359
# Command to use when deplibs_check_method == file_magic.
16360
file_magic_cmd=$lt_file_magic_cmd
16362
# Flag that allows shared libraries with undefined symbols to be built.
16363
allow_undefined_flag=$lt_allow_undefined_flag_F77
16365
# Flag that forces no undefined symbols.
16366
no_undefined_flag=$lt_no_undefined_flag_F77
16368
# Commands used to finish a libtool library installation in a directory.
16369
finish_cmds=$lt_finish_cmds
16371
# Same as above, but a single script fragment to be evaled but not shown.
16372
finish_eval=$lt_finish_eval
16374
# Take the output of nm and produce a listing of raw symbols and C names.
16375
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16377
# Transform the output of nm in a proper C declaration
16378
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16380
# Transform the output of nm in a C name address pair
16381
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16383
# This is the shared library runtime path variable.
16384
runpath_var=$runpath_var
16386
# This is the shared library path variable.
16387
shlibpath_var=$shlibpath_var
16389
# Is shlibpath searched before the hard-coded library search path?
16390
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16392
# How to hardcode a shared library path into an executable.
16393
hardcode_action=$hardcode_action_F77
16395
# Whether we should hardcode library paths into libraries.
16396
hardcode_into_libs=$hardcode_into_libs
16398
# Flag to hardcode \$libdir into a binary during linking.
16399
# This must work even if \$libdir does not exist.
16400
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16402
# If ld is used when linking, flag to hardcode \$libdir into
16403
# a binary during linking. This must work even if \$libdir does
16405
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16407
# Whether we need a single -rpath flag with a separated argument.
16408
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16410
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16411
# resulting binary.
16412
hardcode_direct=$hardcode_direct_F77
16414
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16415
# resulting binary.
16416
hardcode_minus_L=$hardcode_minus_L_F77
16418
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16419
# the resulting binary.
16420
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16422
# Set to yes if building a shared library automatically hardcodes DIR into the library
16423
# and all subsequent libraries and executables linked against it.
16424
hardcode_automatic=$hardcode_automatic_F77
16426
# Variables whose values should be saved in libtool wrapper scripts and
16427
# restored at relink time.
16428
variables_saved_for_relink="$variables_saved_for_relink"
16430
# Whether libtool must link a program against all its dependency libraries.
16431
link_all_deplibs=$link_all_deplibs_F77
16433
# Compile-time system search path for libraries
16434
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16436
# Run-time system search path for libraries
16437
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16439
# Fix the shell variable \$srcfile for the compiler.
16440
fix_srcfile_path=$lt_fix_srcfile_path
16442
# Set to yes if exported symbols are required.
16443
always_export_symbols=$always_export_symbols_F77
16445
# The commands to list exported symbols.
16446
export_symbols_cmds=$lt_export_symbols_cmds_F77
16448
# The commands to extract the exported symbol list from a shared archive.
16449
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16451
# Symbols that should not be listed in the preloaded symbols.
16452
exclude_expsyms=$lt_exclude_expsyms_F77
16454
# Symbols that must always be exported.
16455
include_expsyms=$lt_include_expsyms_F77
16457
# ### END LIBTOOL TAG CONFIG: $tagname
16463
# If there is no Makefile yet, we rely on a make rule to execute
16464
# `config.status --recheck' to rerun these tests and create the
16465
# libtool script then.
16466
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16467
if test -f "$ltmain_in"; then
16468
test -f Makefile && make "$ltmain"
16474
ac_cpp='$CPP $CPPFLAGS'
16475
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16476
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16477
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16487
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16490
# Source file extension for Java test sources.
16493
# Object file extension for compiled Java test sources.
16497
# Code to be used in simple compile tests
16498
lt_simple_compile_test_code="class foo {}"
16500
# Code to be used in simple link tests
16501
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16503
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16505
# If no C compiler was specified, use CC.
16508
# If no C compiler flags were specified, use CFLAGS.
16509
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16511
# Allow CC to be a program name with arguments.
16515
# save warnings/boilerplate of simple test code
16516
ac_outfile=conftest.$ac_objext
16517
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16518
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16519
_lt_compiler_boilerplate=`cat conftest.err`
16522
ac_outfile=conftest.$ac_objext
16523
echo "$lt_simple_link_test_code" >conftest.$ac_ext
16524
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16525
_lt_linker_boilerplate=`cat conftest.err`
16529
# Allow CC to be a program name with arguments.
16534
for cc_temp in $compiler""; do
16536
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16537
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16542
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16545
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16546
archive_cmds_need_lc_GCJ=no
16548
old_archive_cmds_GCJ=$old_archive_cmds
16551
lt_prog_compiler_no_builtin_flag_GCJ=
16553
if test "$GCC" = yes; then
16554
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16557
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16558
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16559
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16560
echo $ECHO_N "(cached) $ECHO_C" >&6
16562
lt_cv_prog_compiler_rtti_exceptions=no
16563
ac_outfile=conftest.$ac_objext
16564
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16565
lt_compiler_flag="-fno-rtti -fno-exceptions"
16566
# Insert the option either (1) after the last *FLAGS variable, or
16567
# (2) before a word containing "conftest.", or (3) at the end.
16568
# Note that $ac_compile itself does not contain backslashes and begins
16569
# with a dollar sign (not a hyphen), so the echo should work correctly.
16570
# The option is referenced via a variable to avoid confusing sed.
16571
lt_compile=`echo "$ac_compile" | $SED \
16572
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16573
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16574
-e 's:$: $lt_compiler_flag:'`
16575
(eval echo "\"\$as_me:16575: $lt_compile\"" >&5)
16576
(eval "$lt_compile" 2>conftest.err)
16578
cat conftest.err >&5
16579
echo "$as_me:16579: \$? = $ac_status" >&5
16580
if (exit $ac_status) && test -s "$ac_outfile"; then
16581
# The compiler can only warn and ignore the option if not recognized
16582
# So say no if there are warnings other than the usual output.
16583
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16584
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16585
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16586
lt_cv_prog_compiler_rtti_exceptions=yes
16592
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16593
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16595
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16596
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16603
lt_prog_compiler_wl_GCJ=
16604
lt_prog_compiler_pic_GCJ=
16605
lt_prog_compiler_static_GCJ=
16607
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16608
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16610
if test "$GCC" = yes; then
16611
lt_prog_compiler_wl_GCJ='-Wl,'
16612
lt_prog_compiler_static_GCJ='-static'
16616
# All AIX code is PIC.
16617
if test "$host_cpu" = ia64; then
16618
# AIX 5 now supports IA64 processor
16619
lt_prog_compiler_static_GCJ='-Bstatic'
16624
# FIXME: we need at least 68020 code to build shared libraries, but
16625
# adding the `-m68020' flag to GCC prevents building anything better,
16627
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16630
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16631
# PIC is the default for these OSes.
16634
mingw* | cygwin* | pw32* | os2*)
16635
# This hack is so that the source file can tell whether it is being
16636
# built for inclusion in a dll (and should export symbols for example).
16637
# Although the cygwin gcc ignores -fPIC, still need this for old-style
16638
# (--disable-auto-import) libraries
16639
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16642
darwin* | rhapsody*)
16643
# PIC is the default on this platform
16644
# Common symbols not allowed in MH_DYLIB files
16645
lt_prog_compiler_pic_GCJ='-fno-common'
16649
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
16650
# Instead, we relocate shared libraries at runtime.
16654
# Just because we use GCC doesn't mean we suddenly get shared libraries
16655
# on systems that don't support them.
16656
lt_prog_compiler_can_build_shared_GCJ=no
16661
if test -d /usr/nec; then
16662
lt_prog_compiler_pic_GCJ=-Kconform_pic
16667
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16668
# not for PA HP-UX.
16674
lt_prog_compiler_pic_GCJ='-fPIC'
16680
lt_prog_compiler_pic_GCJ='-fPIC'
16684
# PORTME Check for flag to pass linker flags through the system compiler.
16687
lt_prog_compiler_wl_GCJ='-Wl,'
16688
if test "$host_cpu" = ia64; then
16689
# AIX 5 now supports IA64 processor
16690
lt_prog_compiler_static_GCJ='-Bstatic'
16692
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16696
# PIC is the default on this platform
16697
# Common symbols not allowed in MH_DYLIB files
16698
case $cc_basename in
16700
lt_prog_compiler_pic_GCJ='-qnocommon'
16701
lt_prog_compiler_wl_GCJ='-Wl,'
16706
mingw* | cygwin* | pw32* | os2*)
16707
# This hack is so that the source file can tell whether it is being
16708
# built for inclusion in a dll (and should export symbols for example).
16709
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16712
hpux9* | hpux10* | hpux11*)
16713
lt_prog_compiler_wl_GCJ='-Wl,'
16714
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16715
# not for PA HP-UX.
16721
lt_prog_compiler_pic_GCJ='+Z'
16724
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16725
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16728
irix5* | irix6* | nonstopux*)
16729
lt_prog_compiler_wl_GCJ='-Wl,'
16730
# PIC (with -KPIC) is the default.
16731
lt_prog_compiler_static_GCJ='-non_shared'
16735
lt_prog_compiler_pic_GCJ='-KPIC'
16736
lt_prog_compiler_static_GCJ='-Bstatic'
16739
linux* | k*bsd*-gnu)
16740
case $cc_basename in
16742
lt_prog_compiler_wl_GCJ='-Wl,'
16743
lt_prog_compiler_pic_GCJ='-KPIC'
16744
lt_prog_compiler_static_GCJ='-static'
16746
pgcc* | pgf77* | pgf90* | pgf95*)
16747
# Portland Group compilers (*not* the Pentium gcc compiler,
16748
# which looks to be a dead project)
16749
lt_prog_compiler_wl_GCJ='-Wl,'
16750
lt_prog_compiler_pic_GCJ='-fpic'
16751
lt_prog_compiler_static_GCJ='-Bstatic'
16754
lt_prog_compiler_wl_GCJ='-Wl,'
16755
# All Alpha code is PIC.
16756
lt_prog_compiler_static_GCJ='-non_shared'
16759
case `$CC -V 2>&1 | sed 5q` in
16762
lt_prog_compiler_pic_GCJ='-KPIC'
16763
lt_prog_compiler_static_GCJ='-Bstatic'
16764
lt_prog_compiler_wl_GCJ='-Wl,'
16767
# Sun Fortran 8.3 passes all unrecognized flags to the linker
16768
lt_prog_compiler_pic_GCJ='-KPIC'
16769
lt_prog_compiler_static_GCJ='-Bstatic'
16770
lt_prog_compiler_wl_GCJ=''
16777
osf3* | osf4* | osf5*)
16778
lt_prog_compiler_wl_GCJ='-Wl,'
16779
# All OSF/1 code is PIC.
16780
lt_prog_compiler_static_GCJ='-non_shared'
16784
lt_prog_compiler_static_GCJ='-non_shared'
16788
lt_prog_compiler_pic_GCJ='-KPIC'
16789
lt_prog_compiler_static_GCJ='-Bstatic'
16790
case $cc_basename in
16791
f77* | f90* | f95*)
16792
lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16794
lt_prog_compiler_wl_GCJ='-Wl,';;
16799
lt_prog_compiler_wl_GCJ='-Qoption ld '
16800
lt_prog_compiler_pic_GCJ='-PIC'
16801
lt_prog_compiler_static_GCJ='-Bstatic'
16804
sysv4 | sysv4.2uw2* | sysv4.3*)
16805
lt_prog_compiler_wl_GCJ='-Wl,'
16806
lt_prog_compiler_pic_GCJ='-KPIC'
16807
lt_prog_compiler_static_GCJ='-Bstatic'
16811
if test -d /usr/nec ;then
16812
lt_prog_compiler_pic_GCJ='-Kconform_pic'
16813
lt_prog_compiler_static_GCJ='-Bstatic'
16817
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16818
lt_prog_compiler_wl_GCJ='-Wl,'
16819
lt_prog_compiler_pic_GCJ='-KPIC'
16820
lt_prog_compiler_static_GCJ='-Bstatic'
16824
lt_prog_compiler_wl_GCJ='-Wl,'
16825
lt_prog_compiler_can_build_shared_GCJ=no
16829
lt_prog_compiler_pic_GCJ='-pic'
16830
lt_prog_compiler_static_GCJ='-Bstatic'
16834
lt_prog_compiler_can_build_shared_GCJ=no
16839
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16840
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16843
# Check to make sure the PIC flag actually works.
16845
if test -n "$lt_prog_compiler_pic_GCJ"; then
16847
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16848
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16849
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16850
echo $ECHO_N "(cached) $ECHO_C" >&6
16852
lt_prog_compiler_pic_works_GCJ=no
16853
ac_outfile=conftest.$ac_objext
16854
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16855
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16856
# Insert the option either (1) after the last *FLAGS variable, or
16857
# (2) before a word containing "conftest.", or (3) at the end.
16858
# Note that $ac_compile itself does not contain backslashes and begins
16859
# with a dollar sign (not a hyphen), so the echo should work correctly.
16860
# The option is referenced via a variable to avoid confusing sed.
16861
lt_compile=`echo "$ac_compile" | $SED \
16862
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16863
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16864
-e 's:$: $lt_compiler_flag:'`
16865
(eval echo "\"\$as_me:16865: $lt_compile\"" >&5)
16866
(eval "$lt_compile" 2>conftest.err)
16868
cat conftest.err >&5
16869
echo "$as_me:16869: \$? = $ac_status" >&5
16870
if (exit $ac_status) && test -s "$ac_outfile"; then
16871
# The compiler can only warn and ignore the option if not recognized
16872
# So say no if there are warnings other than the usual output.
16873
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16874
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16875
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16876
lt_prog_compiler_pic_works_GCJ=yes
16882
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16883
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16885
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16886
case $lt_prog_compiler_pic_GCJ in
16888
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16891
lt_prog_compiler_pic_GCJ=
16892
lt_prog_compiler_can_build_shared_GCJ=no
16897
# For platforms which do not support PIC, -DPIC is meaningless:
16899
lt_prog_compiler_pic_GCJ=
16902
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16907
# Check to make sure the static flag actually works.
16909
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16910
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16911
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16912
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16913
echo $ECHO_N "(cached) $ECHO_C" >&6
16915
lt_prog_compiler_static_works_GCJ=no
16916
save_LDFLAGS="$LDFLAGS"
16917
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16918
echo "$lt_simple_link_test_code" > conftest.$ac_ext
16919
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16920
# The linker can only warn and ignore the option if not recognized
16921
# So say no if there are warnings
16922
if test -s conftest.err; then
16923
# Append any errors to the config.log.
16924
cat conftest.err 1>&5
16925
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16926
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16927
if diff conftest.exp conftest.er2 >/dev/null; then
16928
lt_prog_compiler_static_works_GCJ=yes
16931
lt_prog_compiler_static_works_GCJ=yes
16935
LDFLAGS="$save_LDFLAGS"
16938
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16939
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16941
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16944
lt_prog_compiler_static_GCJ=
16948
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16949
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16950
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16951
echo $ECHO_N "(cached) $ECHO_C" >&6
16953
lt_cv_prog_compiler_c_o_GCJ=no
16954
$rm -r conftest 2>/dev/null
16958
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16960
lt_compiler_flag="-o out/conftest2.$ac_objext"
16961
# Insert the option either (1) after the last *FLAGS variable, or
16962
# (2) before a word containing "conftest.", or (3) at the end.
16963
# Note that $ac_compile itself does not contain backslashes and begins
16964
# with a dollar sign (not a hyphen), so the echo should work correctly.
16965
lt_compile=`echo "$ac_compile" | $SED \
16966
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16967
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16968
-e 's:$: $lt_compiler_flag:'`
16969
(eval echo "\"\$as_me:16969: $lt_compile\"" >&5)
16970
(eval "$lt_compile" 2>out/conftest.err)
16972
cat out/conftest.err >&5
16973
echo "$as_me:16973: \$? = $ac_status" >&5
16974
if (exit $ac_status) && test -s out/conftest2.$ac_objext
16976
# The compiler can only warn and ignore the option if not recognized
16977
# So say no if there are warnings
16978
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16979
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16980
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16981
lt_cv_prog_compiler_c_o_GCJ=yes
16986
# SGI C++ compiler will create directory out/ii_files/ for
16987
# template instantiation
16988
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16989
$rm out/* && rmdir out
16995
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16996
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16999
hard_links="nottested"
17000
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17001
# do not overwrite the value of need_locks provided by the user
17002
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17003
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17006
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17008
ln conftest.a conftest.b 2>&5 || hard_links=no
17009
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17010
{ echo "$as_me:$LINENO: result: $hard_links" >&5
17011
echo "${ECHO_T}$hard_links" >&6; }
17012
if test "$hard_links" = no; then
17013
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17014
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17021
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17022
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17025
allow_undefined_flag_GCJ=
17026
enable_shared_with_static_runtimes_GCJ=no
17028
archive_expsym_cmds_GCJ=
17029
old_archive_From_new_cmds_GCJ=
17030
old_archive_from_expsyms_cmds_GCJ=
17031
export_dynamic_flag_spec_GCJ=
17032
whole_archive_flag_spec_GCJ=
17033
thread_safe_flag_spec_GCJ=
17034
hardcode_libdir_flag_spec_GCJ=
17035
hardcode_libdir_flag_spec_ld_GCJ=
17036
hardcode_libdir_separator_GCJ=
17037
hardcode_direct_GCJ=no
17038
hardcode_minus_L_GCJ=no
17039
hardcode_shlibpath_var_GCJ=unsupported
17040
link_all_deplibs_GCJ=unknown
17041
hardcode_automatic_GCJ=no
17043
module_expsym_cmds_GCJ=
17044
always_export_symbols_GCJ=no
17045
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17046
# include_expsyms should be a list of space-separated symbols to be *always*
17047
# included in the symbol list
17048
include_expsyms_GCJ=
17049
# exclude_expsyms can be an extended regexp of symbols to exclude
17050
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17051
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17052
# as well as any symbol that contains `d'.
17053
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17054
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17055
# platforms (ab)use it in PIC code, but their linkers get confused if
17056
# the symbol is explicitly referenced. Since portable code cannot
17057
# rely on this symbol name, it's probably fine to never include it in
17058
# preloaded symbol tables.
17059
extract_expsyms_cmds=
17060
# Just being paranoid about ensuring that cc_basename is set.
17061
for cc_temp in $compiler""; do
17063
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17064
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17069
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17072
cygwin* | mingw* | pw32*)
17073
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17074
# When not using gcc, we currently assume that we are using
17075
# Microsoft Visual C++.
17076
if test "$GCC" != yes; then
17081
# we just hope/assume this is gcc and not c89 (= MSVC++)
17090
if test "$with_gnu_ld" = yes; then
17091
# If archive_cmds runs LD, not CC, wlarc should be empty
17094
# Set some defaults for GNU ld with shared library support. These
17095
# are reset later if shared libraries are not supported. Putting them
17096
# here allows them to be overridden if necessary.
17097
runpath_var=LD_RUN_PATH
17098
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17099
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17100
# ancient GNU ld didn't support --whole-archive et. al.
17101
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17102
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17104
whole_archive_flag_spec_GCJ=
17106
supports_anon_versioning=no
17107
case `$LD -v 2>/dev/null` in
17108
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17109
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17110
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17111
*\ 2.11.*) ;; # other 2.11 versions
17112
*) supports_anon_versioning=yes ;;
17115
# See if GNU ld supports shared libraries.
17117
aix3* | aix4* | aix5*)
17118
# On AIX/PPC, the GNU linker is very broken
17119
if test "$host_cpu" != ia64; then
17123
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17124
*** to be unable to reliably create shared libraries on AIX.
17125
*** Therefore, libtool is disabling shared libraries support. If you
17126
*** really care for shared libraries, you may want to modify your PATH
17127
*** so that a non-GNU linker is found, and then restart.
17134
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)'
17135
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17136
hardcode_minus_L_GCJ=yes
17138
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17139
# that the semantics of dynamic libraries on AmigaOS, at least up
17140
# to version 4, is to share data among multiple programs linked
17141
# with the same dynamic library. Since this doesn't match the
17142
# behavior of shared libraries on other platforms, we can't use
17148
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17149
allow_undefined_flag_GCJ=unsupported
17150
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17151
# support --undefined. This deserves some investigation. FIXME
17152
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17158
cygwin* | mingw* | pw32*)
17159
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17160
# as there is no search path for DLLs.
17161
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17162
allow_undefined_flag_GCJ=unsupported
17163
always_export_symbols_GCJ=no
17164
enable_shared_with_static_runtimes_GCJ=yes
17165
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17167
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17168
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17169
# If the export-symbols file already is a .def file (1st line
17170
# is EXPORTS), use it as is; otherwise, prepend...
17171
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17172
cp $export_symbols $output_objdir/$soname.def;
17174
echo EXPORTS > $output_objdir/$soname.def;
17175
cat $export_symbols >> $output_objdir/$soname.def;
17177
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17184
hardcode_direct_GCJ=no
17185
hardcode_shlibpath_var_GCJ=no
17186
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17187
export_dynamic_flag_spec_GCJ='${wl}-E'
17188
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17189
# Instead, shared libraries are loaded at an image base (0x10000000 by
17190
# default) and relocated if they conflict, which is a slow very memory
17191
# consuming and fragmenting process. To avoid this, we pick a random,
17192
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17193
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
17194
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'
17195
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'
17198
gnu* | linux* | k*bsd*-gnu)
17199
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17201
case $cc_basename,$host_cpu in
17202
pgcc*) # Portland Group C compiler
17203
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'
17204
tmp_addflag=' $pic_flag'
17206
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17207
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'
17208
tmp_addflag=' $pic_flag -Mnomain' ;;
17209
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17210
tmp_addflag=' -i_dynamic' ;;
17211
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17212
tmp_addflag=' -i_dynamic -nofor_main' ;;
17213
ifc* | ifort*) # Intel Fortran compiler
17214
tmp_addflag=' -nofor_main' ;;
17216
case `$CC -V 2>&1 | sed 5q` in
17217
*Sun\ C*) # Sun C 5.9
17218
whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17219
tmp_sharedflag='-G' ;;
17220
*Sun\ F*) # Sun Fortran 8.3
17221
tmp_sharedflag='-G' ;;
17223
tmp_sharedflag='-shared' ;;
17225
archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17227
if test $supports_anon_versioning = yes; then
17228
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17229
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17230
$echo "local: *; };" >> $output_objdir/$libname.ver~
17231
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17239
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17240
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17243
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17244
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17249
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17253
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17254
*** create shared libraries on Solaris systems. Therefore, libtool
17255
*** is disabling shared libraries support. We urge you to upgrade GNU
17256
*** binutils to release 2.9.1 or newer. Another option is to modify
17257
*** your PATH or compiler configuration so that the native linker is
17258
*** used, and then restart.
17261
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17262
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17263
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17269
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17270
case `$LD -v 2>&1` in
17271
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17275
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17276
*** reliably create shared libraries on SCO systems. Therefore, libtool
17277
*** is disabling shared libraries support. We urge you to upgrade GNU
17278
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17279
*** your PATH or compiler configuration so that the native linker is
17280
*** used, and then restart.
17285
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17286
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17287
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17288
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17297
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17299
hardcode_direct_GCJ=yes
17300
hardcode_shlibpath_var_GCJ=no
17304
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17305
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17306
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17313
if test "$ld_shlibs_GCJ" = no; then
17315
hardcode_libdir_flag_spec_GCJ=
17316
export_dynamic_flag_spec_GCJ=
17317
whole_archive_flag_spec_GCJ=
17320
# PORTME fill in a description of your system's linker (not GNU ld)
17323
allow_undefined_flag_GCJ=unsupported
17324
always_export_symbols_GCJ=yes
17325
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'
17326
# Note: this linker hardcodes the directories in LIBPATH if there
17327
# are no directories specified by -L.
17328
hardcode_minus_L_GCJ=yes
17329
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17330
# Neither direct hardcoding nor static linking is supported with a
17332
hardcode_direct_GCJ=unsupported
17337
if test "$host_cpu" = ia64; then
17338
# On IA64, the linker does run time linking by default, so we don't
17339
# have to do anything special.
17340
aix_use_runtimelinking=no
17341
exp_sym_flag='-Bexport'
17344
# If we're using GNU nm, then we don't want the "-C" option.
17345
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17346
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17347
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'
17349
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'
17351
aix_use_runtimelinking=no
17353
# Test if we are trying to use run time linking or normal
17354
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17355
# need to do runtime linking.
17356
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17357
for ld_flag in $LDFLAGS; do
17358
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17359
aix_use_runtimelinking=yes
17366
exp_sym_flag='-bexport'
17367
no_entry_flag='-bnoentry'
17370
# When large executables or shared objects are built, AIX ld can
17371
# have problems creating the table of contents. If linking a library
17372
# or program results in "error TOC overflow" add -mminimal-toc to
17373
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17374
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17376
archive_cmds_GCJ=''
17377
hardcode_direct_GCJ=yes
17378
hardcode_libdir_separator_GCJ=':'
17379
link_all_deplibs_GCJ=yes
17381
if test "$GCC" = yes; then
17382
case $host_os in aix4.[012]|aix4.[012].*)
17383
# We only want to do this on AIX 4.2 and lower, the check
17384
# below for broken collect2 doesn't work under 4.3+
17385
collect2name=`${CC} -print-prog-name=collect2`
17386
if test -f "$collect2name" && \
17387
strings "$collect2name" | grep resolve_lib_name >/dev/null
17389
# We have reworked collect2
17392
# We have old collect2
17393
hardcode_direct_GCJ=unsupported
17394
# It fails to find uninstalled libraries when the uninstalled
17395
# path is not listed in the libpath. Setting hardcode_minus_L
17396
# to unsupported forces relinking
17397
hardcode_minus_L_GCJ=yes
17398
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17399
hardcode_libdir_separator_GCJ=
17403
shared_flag='-shared'
17404
if test "$aix_use_runtimelinking" = yes; then
17405
shared_flag="$shared_flag "'${wl}-G'
17409
if test "$host_cpu" = ia64; then
17410
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17411
# chokes on -Wl,-G. The following line is correct:
17414
if test "$aix_use_runtimelinking" = yes; then
17415
shared_flag='${wl}-G'
17417
shared_flag='${wl}-bM:SRE'
17422
# It seems that -bexpall does not export symbols beginning with
17423
# underscore (_), so it is better to generate a list of symbols to export.
17424
always_export_symbols_GCJ=yes
17425
if test "$aix_use_runtimelinking" = yes; then
17426
# Warning - without using the other runtime loading flags (-brtl),
17427
# -berok will link without error, but may produce a broken library.
17428
allow_undefined_flag_GCJ='-berok'
17429
# Determine the default libpath from the value encoded in an empty executable.
17430
cat >conftest.$ac_ext <<_ACEOF
17433
cat confdefs.h >>conftest.$ac_ext
17434
cat >>conftest.$ac_ext <<_ACEOF
17435
/* end confdefs.h. */
17445
rm -f conftest.$ac_objext conftest$ac_exeext
17446
if { (ac_try="$ac_link"
17447
case "(($ac_try" in
17448
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449
*) ac_try_echo=$ac_try;;
17451
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17452
(eval "$ac_link") 2>conftest.er1
17454
grep -v '^ *+' conftest.er1 >conftest.err
17456
cat conftest.err >&5
17457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458
(exit $ac_status); } && {
17459
test -z "$ac_c_werror_flag" ||
17460
test ! -s conftest.err
17461
} && test -s conftest$ac_exeext &&
17462
$as_test_x conftest$ac_exeext; then
17464
lt_aix_libpath_sed='
17465
/Import File Strings/,/^$/ {
17471
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17472
# Check for a 64-bit object if we didn't find anything.
17473
if test -z "$aix_libpath"; then
17474
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17477
echo "$as_me: failed program was:" >&5
17478
sed 's/^/| /' conftest.$ac_ext >&5
17483
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17484
conftest$ac_exeext conftest.$ac_ext
17485
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17487
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17488
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"
17490
if test "$host_cpu" = ia64; then
17491
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17492
allow_undefined_flag_GCJ="-z nodefs"
17493
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"
17495
# Determine the default libpath from the value encoded in an empty executable.
17496
cat >conftest.$ac_ext <<_ACEOF
17499
cat confdefs.h >>conftest.$ac_ext
17500
cat >>conftest.$ac_ext <<_ACEOF
17501
/* end confdefs.h. */
17511
rm -f conftest.$ac_objext conftest$ac_exeext
17512
if { (ac_try="$ac_link"
17513
case "(($ac_try" in
17514
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515
*) ac_try_echo=$ac_try;;
17517
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518
(eval "$ac_link") 2>conftest.er1
17520
grep -v '^ *+' conftest.er1 >conftest.err
17522
cat conftest.err >&5
17523
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17524
(exit $ac_status); } && {
17525
test -z "$ac_c_werror_flag" ||
17526
test ! -s conftest.err
17527
} && test -s conftest$ac_exeext &&
17528
$as_test_x conftest$ac_exeext; then
17530
lt_aix_libpath_sed='
17531
/Import File Strings/,/^$/ {
17537
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17538
# Check for a 64-bit object if we didn't find anything.
17539
if test -z "$aix_libpath"; then
17540
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17543
echo "$as_me: failed program was:" >&5
17544
sed 's/^/| /' conftest.$ac_ext >&5
17549
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17550
conftest$ac_exeext conftest.$ac_ext
17551
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17553
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17554
# Warning - without using the other run time loading flags,
17555
# -berok will link without error, but may produce a broken library.
17556
no_undefined_flag_GCJ=' ${wl}-bernotok'
17557
allow_undefined_flag_GCJ=' ${wl}-berok'
17558
# Exported symbols can be pulled into shared objects from archives
17559
whole_archive_flag_spec_GCJ='$convenience'
17560
archive_cmds_need_lc_GCJ=yes
17561
# This is similar to how AIX traditionally builds its shared libraries.
17562
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'
17568
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)'
17569
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17570
hardcode_minus_L_GCJ=yes
17571
# see comment about different semantics on the GNU ld section
17576
export_dynamic_flag_spec_GCJ=-rdynamic
17579
cygwin* | mingw* | pw32*)
17580
# When not using gcc, we currently assume that we are using
17581
# Microsoft Visual C++.
17582
# hardcode_libdir_flag_spec is actually meaningless, as there is
17583
# no search path for DLLs.
17584
hardcode_libdir_flag_spec_GCJ=' '
17585
allow_undefined_flag_GCJ=unsupported
17586
# Tell ltmain to make .lib files, not .a files.
17588
# Tell ltmain to make .dll files, not .so files.
17590
# FIXME: Setting linknames here is a bad hack.
17591
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17592
# The linker will automatically build a .lib file if we build a DLL.
17593
old_archive_From_new_cmds_GCJ='true'
17594
# FIXME: Should let the user specify the lib program.
17595
old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17596
fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17597
enable_shared_with_static_runtimes_GCJ=yes
17600
darwin* | rhapsody*)
17602
rhapsody* | darwin1.[012])
17603
allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17606
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17607
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17609
case ${MACOSX_DEPLOYMENT_TARGET} in
17611
allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17614
allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17620
archive_cmds_need_lc_GCJ=no
17621
hardcode_direct_GCJ=no
17622
hardcode_automatic_GCJ=yes
17623
hardcode_shlibpath_var_GCJ=unsupported
17624
whole_archive_flag_spec_GCJ=''
17625
link_all_deplibs_GCJ=yes
17626
if test "$GCC" = yes ; then
17627
output_verbose_link_cmd='echo'
17628
archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17629
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17630
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17631
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}'
17632
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}'
17634
case $cc_basename in
17636
output_verbose_link_cmd='echo'
17637
archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17638
module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17639
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17640
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17641
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}'
17651
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17652
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17653
hardcode_shlibpath_var_GCJ=no
17660
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17661
# support. Future versions do this automatically, but an explicit c++rt0.o
17662
# does not break anything, and helps significantly (at the cost of a little
17665
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17666
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17667
hardcode_direct_GCJ=yes
17668
hardcode_shlibpath_var_GCJ=no
17671
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17673
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17674
hardcode_direct_GCJ=yes
17675
hardcode_minus_L_GCJ=yes
17676
hardcode_shlibpath_var_GCJ=no
17679
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17680
freebsd* | dragonfly*)
17681
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17682
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17683
hardcode_direct_GCJ=yes
17684
hardcode_shlibpath_var_GCJ=no
17688
if test "$GCC" = yes; then
17689
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'
17691
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'
17693
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17694
hardcode_libdir_separator_GCJ=:
17695
hardcode_direct_GCJ=yes
17697
# hardcode_minus_L: Not really in the search PATH,
17698
# but as the default location of the library.
17699
hardcode_minus_L_GCJ=yes
17700
export_dynamic_flag_spec_GCJ='${wl}-E'
17704
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17705
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17707
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17709
if test "$with_gnu_ld" = no; then
17710
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17711
hardcode_libdir_separator_GCJ=:
17713
hardcode_direct_GCJ=yes
17714
export_dynamic_flag_spec_GCJ='${wl}-E'
17716
# hardcode_minus_L: Not really in the search PATH,
17717
# but as the default location of the library.
17718
hardcode_minus_L_GCJ=yes
17723
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17726
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17729
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17732
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17738
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17741
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17744
archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17748
if test "$with_gnu_ld" = no; then
17749
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17750
hardcode_libdir_separator_GCJ=:
17754
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17755
hardcode_direct_GCJ=no
17756
hardcode_shlibpath_var_GCJ=no
17759
hardcode_direct_GCJ=yes
17760
export_dynamic_flag_spec_GCJ='${wl}-E'
17762
# hardcode_minus_L: Not really in the search PATH,
17763
# but as the default location of the library.
17764
hardcode_minus_L_GCJ=yes
17770
irix5* | irix6* | nonstopux*)
17771
if test "$GCC" = yes; then
17772
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'
17774
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'
17775
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17777
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17778
hardcode_libdir_separator_GCJ=:
17779
link_all_deplibs_GCJ=yes
17783
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17784
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17786
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17788
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17789
hardcode_direct_GCJ=yes
17790
hardcode_shlibpath_var_GCJ=no
17794
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17795
hardcode_direct_GCJ=yes
17796
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17797
hardcode_libdir_separator_GCJ=:
17798
hardcode_shlibpath_var_GCJ=no
17802
if test -f /usr/libexec/ld.so; then
17803
hardcode_direct_GCJ=yes
17804
hardcode_shlibpath_var_GCJ=no
17805
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17806
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17807
archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17808
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17809
export_dynamic_flag_spec_GCJ='${wl}-E'
17812
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17813
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17814
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17817
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17818
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17828
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17829
hardcode_minus_L_GCJ=yes
17830
allow_undefined_flag_GCJ=unsupported
17831
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'
17832
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17836
if test "$GCC" = yes; then
17837
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17838
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'
17840
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17841
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'
17843
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17844
hardcode_libdir_separator_GCJ=:
17847
osf4* | osf5*) # as osf3* with the addition of -msym flag
17848
if test "$GCC" = yes; then
17849
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17850
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'
17851
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17853
allow_undefined_flag_GCJ=' -expect_unresolved \*'
17854
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'
17855
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~
17856
$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'
17858
# Both c and cxx compiler support -rpath directly
17859
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17861
hardcode_libdir_separator_GCJ=:
17865
no_undefined_flag_GCJ=' -z text'
17866
if test "$GCC" = yes; then
17868
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17869
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17870
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17873
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17874
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17875
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17877
hardcode_libdir_flag_spec_GCJ='-R$libdir'
17878
hardcode_shlibpath_var_GCJ=no
17880
solaris2.[0-5] | solaris2.[0-5].*) ;;
17882
# The compiler driver will combine and reorder linker options,
17883
# but understands `-z linker_flag'. GCC discards it without `$wl',
17884
# but is careful enough not to reorder.
17885
# Supported since Solaris 2.6 (maybe 2.5.1?)
17886
if test "$GCC" = yes; then
17887
whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17889
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17893
link_all_deplibs_GCJ=yes
17897
if test "x$host_vendor" = xsequent; then
17898
# Use $CC to link under sequent, because it throws in some extra .o
17899
# files that make .init and .fini sections work.
17900
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17902
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17904
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17905
hardcode_direct_GCJ=yes
17906
hardcode_minus_L_GCJ=yes
17907
hardcode_shlibpath_var_GCJ=no
17911
case $host_vendor in
17913
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17914
hardcode_direct_GCJ=yes # is this really true???
17917
## LD is ld it makes a PLAMLIB
17918
## CC just makes a GrossModule.
17919
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17920
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17921
hardcode_direct_GCJ=no
17924
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17925
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17928
runpath_var='LD_RUN_PATH'
17929
hardcode_shlibpath_var_GCJ=no
17933
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17934
hardcode_shlibpath_var_GCJ=no
17935
export_dynamic_flag_spec_GCJ='-Bexport'
17939
if test -d /usr/nec; then
17940
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17941
hardcode_shlibpath_var_GCJ=no
17942
runpath_var=LD_RUN_PATH
17943
hardcode_runpath_var=yes
17948
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17949
no_undefined_flag_GCJ='${wl}-z,text'
17950
archive_cmds_need_lc_GCJ=no
17951
hardcode_shlibpath_var_GCJ=no
17952
runpath_var='LD_RUN_PATH'
17954
if test "$GCC" = yes; then
17955
archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17956
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17958
archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17959
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17963
sysv5* | sco3.2v5* | sco5v6*)
17964
# Note: We can NOT use -z defs as we might desire, because we do not
17965
# link with -lc, and that would cause any symbols used from libc to
17966
# always be unresolved, which means just about no library would
17967
# ever link correctly. If we're not using GNU ld we use -z text
17968
# though, which does catch some bad symbols but isn't as heavy-handed
17970
no_undefined_flag_GCJ='${wl}-z,text'
17971
allow_undefined_flag_GCJ='${wl}-z,nodefs'
17972
archive_cmds_need_lc_GCJ=no
17973
hardcode_shlibpath_var_GCJ=no
17974
hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17975
hardcode_libdir_separator_GCJ=':'
17976
link_all_deplibs_GCJ=yes
17977
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17978
runpath_var='LD_RUN_PATH'
17980
if test "$GCC" = yes; then
17981
archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17982
archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17984
archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17985
archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17990
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17991
hardcode_libdir_flag_spec_GCJ='-L$libdir'
17992
hardcode_shlibpath_var_GCJ=no
18001
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18002
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18003
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18006
# Do we need to explicitly link libc?
18008
case "x$archive_cmds_need_lc_GCJ" in
18010
# Assume -lc should be added
18011
archive_cmds_need_lc_GCJ=yes
18013
if test "$enable_shared" = yes && test "$GCC" = yes; then
18014
case $archive_cmds_GCJ in
18016
# FIXME: we may have to deal with multi-command sequences.
18019
# Test whether the compiler implicitly links with -lc since on some
18020
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18021
# to ld, don't add -lc before -lgcc.
18022
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18023
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18025
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18027
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18028
(eval $ac_compile) 2>&5
18030
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031
(exit $ac_status); } 2>conftest.err; then
18034
libobjs=conftest.$ac_objext
18036
wl=$lt_prog_compiler_wl_GCJ
18037
pic_flag=$lt_prog_compiler_pic_GCJ
18043
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18044
allow_undefined_flag_GCJ=
18045
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18046
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18048
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049
(exit $ac_status); }
18051
archive_cmds_need_lc_GCJ=no
18053
archive_cmds_need_lc_GCJ=yes
18055
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18057
cat conftest.err 1>&5
18060
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18061
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18068
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18069
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18070
library_names_spec=
18071
libname_spec='lib$name'
18075
postuninstall_cmds=
18079
shlibpath_overrides_runpath=unknown
18081
dynamic_linker="$host_os ld.so"
18082
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18084
need_lib_prefix=unknown
18085
hardcode_into_libs=no
18087
# when you set need_version to no, make sure it does not cause -set_version
18088
# flags to be left without arguments
18089
need_version=unknown
18094
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18095
shlibpath_var=LIBPATH
18097
# AIX 3 has no versioning support, so we append a major version to the name.
18098
soname_spec='${libname}${release}${shared_ext}$major'
18105
hardcode_into_libs=yes
18106
if test "$host_cpu" = ia64; then
18107
# AIX 5 supports IA64
18108
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18109
shlibpath_var=LD_LIBRARY_PATH
18111
# With GCC up to 2.95.x, collect2 would create an import file
18112
# for dependence libraries. The import file would start with
18113
# the line `#! .'. This would cause the generated library to
18114
# depend on `.', always an invalid library. This was fixed in
18115
# development snapshots of GCC prior to 3.0.
18117
aix4 | aix4.[01] | aix4.[01].*)
18118
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18120
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18123
can_build_shared=no
18127
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18128
# soname into executable. Probably we can add versioning support to
18129
# collect2, so additional links can be useful in future.
18130
if test "$aix_use_runtimelinking" = yes; then
18131
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18132
# instead of lib<name>.a to let people know that these are not
18133
# typical AIX shared libraries.
18134
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18136
# We preserve .a as extension for shared libraries through AIX4.2
18137
# and later when we are not doing run time linking.
18138
library_names_spec='${libname}${release}.a $libname.a'
18139
soname_spec='${libname}${release}${shared_ext}$major'
18141
shlibpath_var=LIBPATH
18146
library_names_spec='$libname.ixlibrary $libname.a'
18147
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18148
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'
18152
library_names_spec='${libname}${shared_ext}'
18153
dynamic_linker="$host_os ld.so"
18154
shlibpath_var=LIBRARY_PATH
18160
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18161
soname_spec='${libname}${release}${shared_ext}$major'
18162
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18163
shlibpath_var=LD_LIBRARY_PATH
18164
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18165
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18166
# the default ld.so.conf also contains /usr/contrib/lib and
18167
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18168
# libtool to hard-code these into programs
18171
cygwin* | mingw* | pw32*)
18172
version_type=windows
18177
case $GCC,$host_os in
18178
yes,cygwin* | yes,mingw* | yes,pw32*)
18179
library_names_spec='$libname.dll.a'
18180
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18181
postinstall_cmds='base_file=`basename \${file}`~
18182
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18183
dldir=$destdir/`dirname \$dlpath`~
18184
test -d \$dldir || mkdir -p \$dldir~
18185
$install_prog $dir/$dlname \$dldir/$dlname~
18186
chmod a+x \$dldir/$dlname'
18187
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18188
dlpath=$dir/\$dldll~
18190
shlibpath_overrides_runpath=yes
18194
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18195
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18196
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18199
# MinGW DLLs use traditional 'lib' prefix
18200
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18201
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18202
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18203
# It is most probably a Windows format PATH printed by
18204
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18205
# path with ; separators, and with drive letters. We can handle the
18206
# drive letters (cygwin fileutils understands them), so leave them,
18207
# especially as we might pass files found there to a mingw objdump,
18208
# which wouldn't understand a cygwinified path. Ahh.
18209
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18211
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18215
# pw32 DLLs use 'pw' prefix rather than 'lib'
18216
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18222
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18225
dynamic_linker='Win32 ld.exe'
18226
# FIXME: first we should search . and the directory the executable is in
18230
darwin* | rhapsody*)
18231
dynamic_linker="$host_os dyld"
18232
version_type=darwin
18235
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18236
soname_spec='${libname}${release}${major}$shared_ext'
18237
shlibpath_overrides_runpath=yes
18238
shlibpath_var=DYLD_LIBRARY_PATH
18239
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18241
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18248
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18249
soname_spec='${libname}${release}${shared_ext}$major'
18250
shlibpath_var=LD_LIBRARY_PATH
18257
freebsd* | dragonfly*)
18258
# DragonFly does not have aout. When/if they implement a new
18259
# versioning mechanism, adjust this.
18260
if test -x /usr/bin/objformat; then
18261
objformat=`/usr/bin/objformat`
18264
freebsd[123]*) objformat=aout ;;
18265
*) objformat=elf ;;
18268
# Handle Gentoo/FreeBSD as it was Linux
18269
case $host_vendor in
18271
version_type=linux ;;
18273
version_type=freebsd-$objformat ;;
18276
case $version_type in
18278
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18283
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18287
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18288
soname_spec='${libname}${release}${shared_ext}$major'
18293
shlibpath_var=LD_LIBRARY_PATH
18296
shlibpath_overrides_runpath=yes
18298
freebsd3.[01]* | freebsdelf3.[01]*)
18299
shlibpath_overrides_runpath=yes
18300
hardcode_into_libs=yes
18302
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18303
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18304
shlibpath_overrides_runpath=no
18305
hardcode_into_libs=yes
18307
*) # from 4.6 on, and DragonFly
18308
shlibpath_overrides_runpath=yes
18309
hardcode_into_libs=yes
18318
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18319
soname_spec='${libname}${release}${shared_ext}$major'
18320
shlibpath_var=LD_LIBRARY_PATH
18321
hardcode_into_libs=yes
18324
hpux9* | hpux10* | hpux11*)
18325
# Give a soname corresponding to the major version so that dld.sl refuses to
18326
# link against other versions.
18333
hardcode_into_libs=yes
18334
dynamic_linker="$host_os dld.so"
18335
shlibpath_var=LD_LIBRARY_PATH
18336
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18337
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18338
soname_spec='${libname}${release}${shared_ext}$major'
18339
if test "X$HPUX_IA64_MODE" = X32; then
18340
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18342
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18344
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18348
hardcode_into_libs=yes
18349
dynamic_linker="$host_os dld.sl"
18350
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18351
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18352
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18353
soname_spec='${libname}${release}${shared_ext}$major'
18354
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18355
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18359
dynamic_linker="$host_os dld.sl"
18360
shlibpath_var=SHLIB_PATH
18361
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18362
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18363
soname_spec='${libname}${release}${shared_ext}$major'
18366
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18367
postinstall_cmds='chmod 555 $lib'
18374
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18375
soname_spec='${libname}${release}${shared_ext}$major'
18376
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18377
shlibpath_var=LD_LIBRARY_PATH
18378
shlibpath_overrides_runpath=no
18379
hardcode_into_libs=yes
18382
irix5* | irix6* | nonstopux*)
18384
nonstopux*) version_type=nonstopux ;;
18386
if test "$lt_cv_prog_gnu_ld" = yes; then
18394
soname_spec='${libname}${release}${shared_ext}$major'
18395
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18397
irix5* | nonstopux*)
18398
libsuff= shlibsuff=
18401
case $LD in # libtool.m4 will add one of these switches to LD
18402
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18403
libsuff= shlibsuff= libmagic=32-bit;;
18404
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18405
libsuff=32 shlibsuff=N32 libmagic=N32;;
18406
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18407
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18408
*) libsuff= shlibsuff= libmagic=never-match;;
18412
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18413
shlibpath_overrides_runpath=no
18414
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18415
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18416
hardcode_into_libs=yes
18419
# No shared lib support for Linux oldld, aout, or coff.
18420
linux*oldld* | linux*aout* | linux*coff*)
18424
# This must be Linux ELF.
18425
linux* | k*bsd*-gnu)
18429
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18430
soname_spec='${libname}${release}${shared_ext}$major'
18431
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18432
shlibpath_var=LD_LIBRARY_PATH
18433
shlibpath_overrides_runpath=no
18434
# This implies no fast_install, which is unacceptable.
18435
# Some rework will be needed to allow for fast_install
18436
# before this can be enabled.
18437
hardcode_into_libs=yes
18439
# Append ld.so.conf contents to the search path
18440
if test -f /etc/ld.so.conf; then
18441
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18442
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18445
# We used to test for /lib/ld.so.1 and disable shared libraries on
18446
# powerpc, because MkLinux only supported shared libraries with the
18447
# GNU dynamic linker. Since this was broken with cross compilers,
18448
# most powerpc-linux boxes support dynamic linking these days and
18449
# people can always --disable-shared, the test was removed, and we
18450
# assume the GNU/Linux dynamic linker is in use.
18451
dynamic_linker='GNU/Linux ld.so'
18458
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18459
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18460
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18461
dynamic_linker='NetBSD (a.out) ld.so'
18463
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18464
soname_spec='${libname}${release}${shared_ext}$major'
18465
dynamic_linker='NetBSD ld.elf_so'
18467
shlibpath_var=LD_LIBRARY_PATH
18468
shlibpath_overrides_runpath=yes
18469
hardcode_into_libs=yes
18474
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18475
shlibpath_var=LD_LIBRARY_PATH
18476
shlibpath_overrides_runpath=yes
18483
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18484
soname_spec='${libname}${release}${shared_ext}$major'
18485
shlibpath_var=LD_LIBRARY_PATH
18486
shlibpath_overrides_runpath=yes
18491
sys_lib_dlsearch_path_spec="/usr/lib"
18493
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18495
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18496
*) need_version=no ;;
18498
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18499
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18500
shlibpath_var=LD_LIBRARY_PATH
18501
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18503
openbsd2.[89] | openbsd2.[89].*)
18504
shlibpath_overrides_runpath=no
18507
shlibpath_overrides_runpath=yes
18511
shlibpath_overrides_runpath=yes
18516
libname_spec='$name'
18519
library_names_spec='$libname${shared_ext} $libname.a'
18520
dynamic_linker='OS/2 ld.exe'
18521
shlibpath_var=LIBPATH
18524
osf3* | osf4* | osf5*)
18528
soname_spec='${libname}${release}${shared_ext}$major'
18529
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18530
shlibpath_var=LD_LIBRARY_PATH
18531
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18532
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18543
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18544
soname_spec='${libname}${release}${shared_ext}$major'
18545
shlibpath_var=LD_LIBRARY_PATH
18546
shlibpath_overrides_runpath=yes
18547
hardcode_into_libs=yes
18548
# ldd complains unless libraries are executable
18549
postinstall_cmds='chmod +x $lib'
18554
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18555
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18556
shlibpath_var=LD_LIBRARY_PATH
18557
shlibpath_overrides_runpath=yes
18558
if test "$with_gnu_ld" = yes; then
18566
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18567
soname_spec='${libname}${release}${shared_ext}$major'
18568
shlibpath_var=LD_LIBRARY_PATH
18569
case $host_vendor in
18571
shlibpath_overrides_runpath=no
18573
export_dynamic_flag_spec='${wl}-Blargedynsym'
18574
runpath_var=LD_RUN_PATH
18582
shlibpath_overrides_runpath=no
18583
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18589
if test -d /usr/nec ;then
18591
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18592
soname_spec='$libname${shared_ext}.$major'
18593
shlibpath_var=LD_LIBRARY_PATH
18597
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18598
version_type=freebsd-elf
18601
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18602
soname_spec='${libname}${release}${shared_ext}$major'
18603
shlibpath_var=LD_LIBRARY_PATH
18604
hardcode_into_libs=yes
18605
if test "$with_gnu_ld" = yes; then
18606
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18607
shlibpath_overrides_runpath=no
18609
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18610
shlibpath_overrides_runpath=yes
18613
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18617
sys_lib_dlsearch_path_spec='/usr/lib'
18622
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18623
soname_spec='${libname}${release}${shared_ext}$major'
18624
shlibpath_var=LD_LIBRARY_PATH
18631
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18632
echo "${ECHO_T}$dynamic_linker" >&6; }
18633
test "$dynamic_linker" = no && can_build_shared=no
18635
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18636
if test "$GCC" = yes; then
18637
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18640
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18641
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18642
hardcode_action_GCJ=
18643
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18644
test -n "$runpath_var_GCJ" || \
18645
test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18647
# We can hardcode non-existant directories.
18648
if test "$hardcode_direct_GCJ" != no &&
18649
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18650
# have to relink, otherwise we might link with an installed library
18651
# when we should be linking with a yet-to-be-installed one
18652
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18653
test "$hardcode_minus_L_GCJ" != no; then
18654
# Linking always hardcodes the temporary library directory.
18655
hardcode_action_GCJ=relink
18657
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18658
hardcode_action_GCJ=immediate
18661
# We cannot hardcode anything, or else we can only hardcode existing
18663
hardcode_action_GCJ=unsupported
18665
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18666
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18668
if test "$hardcode_action_GCJ" = relink; then
18669
# Fast installation is not supported
18670
enable_fast_install=no
18671
elif test "$shlibpath_overrides_runpath" = yes ||
18672
test "$enable_shared" = no; then
18673
# Fast installation is not necessary
18674
enable_fast_install=needless
18678
# The else clause should only fire when bootstrapping the
18679
# libtool distribution, otherwise you forgot to ship ltmain.sh
18680
# with your package, and you will get complaints that there are
18681
# no rules to generate ltmain.sh.
18682
if test -f "$ltmain"; then
18683
# See if we are running on zsh, and set the options which allow our commands through
18684
# without removal of \ escapes.
18685
if test -n "${ZSH_VERSION+set}" ; then
18686
setopt NO_GLOB_SUBST
18688
# Now quote all the things that may contain metacharacters while being
18689
# careful not to overquote the AC_SUBSTed values. We take copies of the
18690
# variables and quote the copies for generation of the libtool script.
18691
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18693
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18694
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18695
deplibs_check_method reload_flag reload_cmds need_locks \
18696
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18697
lt_cv_sys_global_symbol_to_c_name_address \
18698
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18699
old_postinstall_cmds old_postuninstall_cmds \
18703
lt_prog_compiler_wl_GCJ \
18704
lt_prog_compiler_pic_GCJ \
18705
lt_prog_compiler_static_GCJ \
18706
lt_prog_compiler_no_builtin_flag_GCJ \
18707
export_dynamic_flag_spec_GCJ \
18708
thread_safe_flag_spec_GCJ \
18709
whole_archive_flag_spec_GCJ \
18710
enable_shared_with_static_runtimes_GCJ \
18711
old_archive_cmds_GCJ \
18712
old_archive_from_new_cmds_GCJ \
18713
predep_objects_GCJ \
18714
postdep_objects_GCJ \
18717
compiler_lib_search_path_GCJ \
18719
archive_expsym_cmds_GCJ \
18720
postinstall_cmds_GCJ \
18721
postuninstall_cmds_GCJ \
18722
old_archive_from_expsyms_cmds_GCJ \
18723
allow_undefined_flag_GCJ \
18724
no_undefined_flag_GCJ \
18725
export_symbols_cmds_GCJ \
18726
hardcode_libdir_flag_spec_GCJ \
18727
hardcode_libdir_flag_spec_ld_GCJ \
18728
hardcode_libdir_separator_GCJ \
18729
hardcode_automatic_GCJ \
18731
module_expsym_cmds_GCJ \
18732
lt_cv_prog_compiler_c_o_GCJ \
18733
fix_srcfile_path_GCJ \
18734
exclude_expsyms_GCJ \
18735
include_expsyms_GCJ; do
18738
old_archive_cmds_GCJ | \
18739
old_archive_from_new_cmds_GCJ | \
18740
archive_cmds_GCJ | \
18741
archive_expsym_cmds_GCJ | \
18742
module_cmds_GCJ | \
18743
module_expsym_cmds_GCJ | \
18744
old_archive_from_expsyms_cmds_GCJ | \
18745
export_symbols_cmds_GCJ | \
18746
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18747
postinstall_cmds | postuninstall_cmds | \
18748
old_postinstall_cmds | old_postuninstall_cmds | \
18749
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18750
# Double-quote double-evaled strings.
18751
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18754
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18760
*'\$0 --fallback-echo"')
18761
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18767
cat <<__EOF__ >> "$cfgfile"
18768
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18770
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18772
# Shell to use when invoking shell scripts.
18775
# Whether or not to build shared libraries.
18776
build_libtool_libs=$enable_shared
18778
# Whether or not to build static libraries.
18779
build_old_libs=$enable_static
18781
# Whether or not to add -lc for building shared libraries.
18782
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18784
# Whether or not to disallow shared libs when runtime libs are static
18785
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18787
# Whether or not to optimize for fast installation.
18788
fast_install=$enable_fast_install
18791
host_alias=$host_alias
18795
# The build system.
18796
build_alias=$build_alias
18800
# An echo program that does not interpret backslashes.
18805
AR_FLAGS=$lt_AR_FLAGS
18810
# LTCC compiler flags.
18811
LTCFLAGS=$lt_LTCFLAGS
18813
# A language-specific compiler.
18814
CC=$lt_compiler_GCJ
18816
# Is the compiler the GNU C compiler?
18822
# The linker used to build libraries.
18825
# Whether we need hard or soft links.
18828
# A BSD-compatible nm program.
18831
# A symbol stripping program
18834
# Used to examine libraries when file_magic_cmd begins "file"
18835
MAGIC_CMD=$MAGIC_CMD
18837
# Used on cygwin: DLL creation program.
18840
# Used on cygwin: object dumper.
18843
# Used on cygwin: assembler.
18846
# The name of the directory that contains temporary libtool files.
18849
# How to create reloadable object files.
18850
reload_flag=$lt_reload_flag
18851
reload_cmds=$lt_reload_cmds
18853
# How to pass a linker flag through the compiler.
18854
wl=$lt_lt_prog_compiler_wl_GCJ
18856
# Object file suffix (normally "o").
18857
objext="$ac_objext"
18859
# Old archive suffix (normally "a").
18862
# Shared library suffix (normally ".so").
18863
shrext_cmds='$shrext_cmds'
18865
# Executable file suffix (normally "").
18868
# Additional compiler flags for building library objects.
18869
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18872
# What is the maximum length of a command?
18873
max_cmd_len=$lt_cv_sys_max_cmd_len
18875
# Does compiler simultaneously support -c and -o options?
18876
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18878
# Must we lock files when doing compilation?
18879
need_locks=$lt_need_locks
18881
# Do we need the lib prefix for modules?
18882
need_lib_prefix=$need_lib_prefix
18884
# Do we need a version for libraries?
18885
need_version=$need_version
18887
# Whether dlopen is supported.
18888
dlopen_support=$enable_dlopen
18890
# Whether dlopen of programs is supported.
18891
dlopen_self=$enable_dlopen_self
18893
# Whether dlopen of statically linked programs is supported.
18894
dlopen_self_static=$enable_dlopen_self_static
18896
# Compiler flag to prevent dynamic linking.
18897
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18899
# Compiler flag to turn off builtin functions.
18900
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18902
# Compiler flag to allow reflexive dlopens.
18903
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18905
# Compiler flag to generate shared objects directly from archives.
18906
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18908
# Compiler flag to generate thread-safe objects.
18909
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18911
# Library versioning type.
18912
version_type=$version_type
18914
# Format of library name prefix.
18915
libname_spec=$lt_libname_spec
18917
# List of archive names. First name is the real one, the rest are links.
18918
# The last name is the one that the linker finds with -lNAME.
18919
library_names_spec=$lt_library_names_spec
18921
# The coded name of the library, if different from the real name.
18922
soname_spec=$lt_soname_spec
18924
# Commands used to build and install an old-style archive.
18926
old_archive_cmds=$lt_old_archive_cmds_GCJ
18927
old_postinstall_cmds=$lt_old_postinstall_cmds
18928
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18930
# Create an old-style archive from a shared archive.
18931
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18933
# Create a temporary old-style archive to link instead of a shared archive.
18934
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18936
# Commands used to build and install a shared archive.
18937
archive_cmds=$lt_archive_cmds_GCJ
18938
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18939
postinstall_cmds=$lt_postinstall_cmds
18940
postuninstall_cmds=$lt_postuninstall_cmds
18942
# Commands used to build a loadable module (assumed same as above if empty)
18943
module_cmds=$lt_module_cmds_GCJ
18944
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18946
# Commands to strip libraries.
18947
old_striplib=$lt_old_striplib
18948
striplib=$lt_striplib
18950
# Dependencies to place before the objects being linked to create a
18952
predep_objects=$lt_predep_objects_GCJ
18954
# Dependencies to place after the objects being linked to create a
18956
postdep_objects=$lt_postdep_objects_GCJ
18958
# Dependencies to place before the objects being linked to create a
18960
predeps=$lt_predeps_GCJ
18962
# Dependencies to place after the objects being linked to create a
18964
postdeps=$lt_postdeps_GCJ
18966
# The library search path used internally by the compiler when linking
18967
# a shared library.
18968
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18970
# Method to check whether dependent libraries are shared objects.
18971
deplibs_check_method=$lt_deplibs_check_method
18973
# Command to use when deplibs_check_method == file_magic.
18974
file_magic_cmd=$lt_file_magic_cmd
18976
# Flag that allows shared libraries with undefined symbols to be built.
18977
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18979
# Flag that forces no undefined symbols.
18980
no_undefined_flag=$lt_no_undefined_flag_GCJ
18982
# Commands used to finish a libtool library installation in a directory.
18983
finish_cmds=$lt_finish_cmds
18985
# Same as above, but a single script fragment to be evaled but not shown.
18986
finish_eval=$lt_finish_eval
18988
# Take the output of nm and produce a listing of raw symbols and C names.
18989
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18991
# Transform the output of nm in a proper C declaration
18992
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18994
# Transform the output of nm in a C name address pair
18995
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18997
# This is the shared library runtime path variable.
18998
runpath_var=$runpath_var
19000
# This is the shared library path variable.
19001
shlibpath_var=$shlibpath_var
19003
# Is shlibpath searched before the hard-coded library search path?
19004
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19006
# How to hardcode a shared library path into an executable.
19007
hardcode_action=$hardcode_action_GCJ
19009
# Whether we should hardcode library paths into libraries.
19010
hardcode_into_libs=$hardcode_into_libs
19012
# Flag to hardcode \$libdir into a binary during linking.
19013
# This must work even if \$libdir does not exist.
19014
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19016
# If ld is used when linking, flag to hardcode \$libdir into
19017
# a binary during linking. This must work even if \$libdir does
19019
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19021
# Whether we need a single -rpath flag with a separated argument.
19022
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19024
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19025
# resulting binary.
19026
hardcode_direct=$hardcode_direct_GCJ
19028
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19029
# resulting binary.
19030
hardcode_minus_L=$hardcode_minus_L_GCJ
19032
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19033
# the resulting binary.
19034
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19036
# Set to yes if building a shared library automatically hardcodes DIR into the library
19037
# and all subsequent libraries and executables linked against it.
19038
hardcode_automatic=$hardcode_automatic_GCJ
19040
# Variables whose values should be saved in libtool wrapper scripts and
19041
# restored at relink time.
19042
variables_saved_for_relink="$variables_saved_for_relink"
19044
# Whether libtool must link a program against all its dependency libraries.
19045
link_all_deplibs=$link_all_deplibs_GCJ
19047
# Compile-time system search path for libraries
19048
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19050
# Run-time system search path for libraries
19051
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19053
# Fix the shell variable \$srcfile for the compiler.
19054
fix_srcfile_path=$lt_fix_srcfile_path
19056
# Set to yes if exported symbols are required.
19057
always_export_symbols=$always_export_symbols_GCJ
19059
# The commands to list exported symbols.
19060
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19062
# The commands to extract the exported symbol list from a shared archive.
19063
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19065
# Symbols that should not be listed in the preloaded symbols.
19066
exclude_expsyms=$lt_exclude_expsyms_GCJ
19068
# Symbols that must always be exported.
19069
include_expsyms=$lt_include_expsyms_GCJ
19071
# ### END LIBTOOL TAG CONFIG: $tagname
19077
# If there is no Makefile yet, we rely on a make rule to execute
19078
# `config.status --recheck' to rerun these tests and create the
19079
# libtool script then.
19080
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19081
if test -f "$ltmain_in"; then
19082
test -f Makefile && make "$ltmain"
19088
ac_cpp='$CPP $CPPFLAGS'
19089
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19090
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19091
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19103
# Source file extension for RC test sources.
19106
# Object file extension for compiled RC test sources.
19110
# Code to be used in simple compile tests
19111
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19113
# Code to be used in simple link tests
19114
lt_simple_link_test_code="$lt_simple_compile_test_code"
19116
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19118
# If no C compiler was specified, use CC.
19121
# If no C compiler flags were specified, use CFLAGS.
19122
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19124
# Allow CC to be a program name with arguments.
19128
# save warnings/boilerplate of simple test code
19129
ac_outfile=conftest.$ac_objext
19130
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19131
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19132
_lt_compiler_boilerplate=`cat conftest.err`
19135
ac_outfile=conftest.$ac_objext
19136
echo "$lt_simple_link_test_code" >conftest.$ac_ext
19137
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19138
_lt_linker_boilerplate=`cat conftest.err`
19142
# Allow CC to be a program name with arguments.
19147
for cc_temp in $compiler""; do
19149
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19150
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19155
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19157
lt_cv_prog_compiler_c_o_RC=yes
19159
# The else clause should only fire when bootstrapping the
19160
# libtool distribution, otherwise you forgot to ship ltmain.sh
19161
# with your package, and you will get complaints that there are
19162
# no rules to generate ltmain.sh.
19163
if test -f "$ltmain"; then
19164
# See if we are running on zsh, and set the options which allow our commands through
19165
# without removal of \ escapes.
19166
if test -n "${ZSH_VERSION+set}" ; then
19167
setopt NO_GLOB_SUBST
19169
# Now quote all the things that may contain metacharacters while being
19170
# careful not to overquote the AC_SUBSTed values. We take copies of the
19171
# variables and quote the copies for generation of the libtool script.
19172
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19174
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19175
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19176
deplibs_check_method reload_flag reload_cmds need_locks \
19177
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19178
lt_cv_sys_global_symbol_to_c_name_address \
19179
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19180
old_postinstall_cmds old_postuninstall_cmds \
19184
lt_prog_compiler_wl_RC \
19185
lt_prog_compiler_pic_RC \
19186
lt_prog_compiler_static_RC \
19187
lt_prog_compiler_no_builtin_flag_RC \
19188
export_dynamic_flag_spec_RC \
19189
thread_safe_flag_spec_RC \
19190
whole_archive_flag_spec_RC \
19191
enable_shared_with_static_runtimes_RC \
19192
old_archive_cmds_RC \
19193
old_archive_from_new_cmds_RC \
19194
predep_objects_RC \
19195
postdep_objects_RC \
19198
compiler_lib_search_path_RC \
19200
archive_expsym_cmds_RC \
19201
postinstall_cmds_RC \
19202
postuninstall_cmds_RC \
19203
old_archive_from_expsyms_cmds_RC \
19204
allow_undefined_flag_RC \
19205
no_undefined_flag_RC \
19206
export_symbols_cmds_RC \
19207
hardcode_libdir_flag_spec_RC \
19208
hardcode_libdir_flag_spec_ld_RC \
19209
hardcode_libdir_separator_RC \
19210
hardcode_automatic_RC \
19212
module_expsym_cmds_RC \
19213
lt_cv_prog_compiler_c_o_RC \
19214
fix_srcfile_path_RC \
19215
exclude_expsyms_RC \
19216
include_expsyms_RC; do
19219
old_archive_cmds_RC | \
19220
old_archive_from_new_cmds_RC | \
19221
archive_cmds_RC | \
19222
archive_expsym_cmds_RC | \
19224
module_expsym_cmds_RC | \
19225
old_archive_from_expsyms_cmds_RC | \
19226
export_symbols_cmds_RC | \
19227
extract_expsyms_cmds | reload_cmds | finish_cmds | \
19228
postinstall_cmds | postuninstall_cmds | \
19229
old_postinstall_cmds | old_postuninstall_cmds | \
19230
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19231
# Double-quote double-evaled strings.
19232
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19235
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19241
*'\$0 --fallback-echo"')
19242
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19248
cat <<__EOF__ >> "$cfgfile"
19249
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19251
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19253
# Shell to use when invoking shell scripts.
19256
# Whether or not to build shared libraries.
19257
build_libtool_libs=$enable_shared
19259
# Whether or not to build static libraries.
19260
build_old_libs=$enable_static
19262
# Whether or not to add -lc for building shared libraries.
19263
build_libtool_need_lc=$archive_cmds_need_lc_RC
19265
# Whether or not to disallow shared libs when runtime libs are static
19266
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19268
# Whether or not to optimize for fast installation.
19269
fast_install=$enable_fast_install
19272
host_alias=$host_alias
19276
# The build system.
19277
build_alias=$build_alias
19281
# An echo program that does not interpret backslashes.
19286
AR_FLAGS=$lt_AR_FLAGS
19291
# LTCC compiler flags.
19292
LTCFLAGS=$lt_LTCFLAGS
19294
# A language-specific compiler.
19297
# Is the compiler the GNU C compiler?
19303
# The linker used to build libraries.
19306
# Whether we need hard or soft links.
19309
# A BSD-compatible nm program.
19312
# A symbol stripping program
19315
# Used to examine libraries when file_magic_cmd begins "file"
19316
MAGIC_CMD=$MAGIC_CMD
19318
# Used on cygwin: DLL creation program.
19321
# Used on cygwin: object dumper.
19324
# Used on cygwin: assembler.
19327
# The name of the directory that contains temporary libtool files.
19330
# How to create reloadable object files.
19331
reload_flag=$lt_reload_flag
19332
reload_cmds=$lt_reload_cmds
19334
# How to pass a linker flag through the compiler.
19335
wl=$lt_lt_prog_compiler_wl_RC
19337
# Object file suffix (normally "o").
19338
objext="$ac_objext"
19340
# Old archive suffix (normally "a").
19343
# Shared library suffix (normally ".so").
19344
shrext_cmds='$shrext_cmds'
19346
# Executable file suffix (normally "").
19349
# Additional compiler flags for building library objects.
19350
pic_flag=$lt_lt_prog_compiler_pic_RC
19353
# What is the maximum length of a command?
19354
max_cmd_len=$lt_cv_sys_max_cmd_len
19356
# Does compiler simultaneously support -c and -o options?
19357
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19359
# Must we lock files when doing compilation?
19360
need_locks=$lt_need_locks
19362
# Do we need the lib prefix for modules?
19363
need_lib_prefix=$need_lib_prefix
19365
# Do we need a version for libraries?
19366
need_version=$need_version
19368
# Whether dlopen is supported.
19369
dlopen_support=$enable_dlopen
19371
# Whether dlopen of programs is supported.
19372
dlopen_self=$enable_dlopen_self
19374
# Whether dlopen of statically linked programs is supported.
19375
dlopen_self_static=$enable_dlopen_self_static
19377
# Compiler flag to prevent dynamic linking.
19378
link_static_flag=$lt_lt_prog_compiler_static_RC
19380
# Compiler flag to turn off builtin functions.
19381
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19383
# Compiler flag to allow reflexive dlopens.
19384
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19386
# Compiler flag to generate shared objects directly from archives.
19387
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19389
# Compiler flag to generate thread-safe objects.
19390
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19392
# Library versioning type.
19393
version_type=$version_type
19395
# Format of library name prefix.
19396
libname_spec=$lt_libname_spec
19398
# List of archive names. First name is the real one, the rest are links.
19399
# The last name is the one that the linker finds with -lNAME.
19400
library_names_spec=$lt_library_names_spec
19402
# The coded name of the library, if different from the real name.
19403
soname_spec=$lt_soname_spec
19405
# Commands used to build and install an old-style archive.
19407
old_archive_cmds=$lt_old_archive_cmds_RC
19408
old_postinstall_cmds=$lt_old_postinstall_cmds
19409
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19411
# Create an old-style archive from a shared archive.
19412
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19414
# Create a temporary old-style archive to link instead of a shared archive.
19415
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19417
# Commands used to build and install a shared archive.
19418
archive_cmds=$lt_archive_cmds_RC
19419
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19420
postinstall_cmds=$lt_postinstall_cmds
19421
postuninstall_cmds=$lt_postuninstall_cmds
19423
# Commands used to build a loadable module (assumed same as above if empty)
19424
module_cmds=$lt_module_cmds_RC
19425
module_expsym_cmds=$lt_module_expsym_cmds_RC
19427
# Commands to strip libraries.
19428
old_striplib=$lt_old_striplib
19429
striplib=$lt_striplib
19431
# Dependencies to place before the objects being linked to create a
19433
predep_objects=$lt_predep_objects_RC
19435
# Dependencies to place after the objects being linked to create a
19437
postdep_objects=$lt_postdep_objects_RC
19439
# Dependencies to place before the objects being linked to create a
19441
predeps=$lt_predeps_RC
19443
# Dependencies to place after the objects being linked to create a
19445
postdeps=$lt_postdeps_RC
19447
# The library search path used internally by the compiler when linking
19448
# a shared library.
19449
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19451
# Method to check whether dependent libraries are shared objects.
19452
deplibs_check_method=$lt_deplibs_check_method
19454
# Command to use when deplibs_check_method == file_magic.
19455
file_magic_cmd=$lt_file_magic_cmd
19457
# Flag that allows shared libraries with undefined symbols to be built.
19458
allow_undefined_flag=$lt_allow_undefined_flag_RC
19460
# Flag that forces no undefined symbols.
19461
no_undefined_flag=$lt_no_undefined_flag_RC
19463
# Commands used to finish a libtool library installation in a directory.
19464
finish_cmds=$lt_finish_cmds
19466
# Same as above, but a single script fragment to be evaled but not shown.
19467
finish_eval=$lt_finish_eval
19469
# Take the output of nm and produce a listing of raw symbols and C names.
19470
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19472
# Transform the output of nm in a proper C declaration
19473
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19475
# Transform the output of nm in a C name address pair
19476
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19478
# This is the shared library runtime path variable.
19479
runpath_var=$runpath_var
19481
# This is the shared library path variable.
19482
shlibpath_var=$shlibpath_var
19484
# Is shlibpath searched before the hard-coded library search path?
19485
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19487
# How to hardcode a shared library path into an executable.
19488
hardcode_action=$hardcode_action_RC
19490
# Whether we should hardcode library paths into libraries.
19491
hardcode_into_libs=$hardcode_into_libs
19493
# Flag to hardcode \$libdir into a binary during linking.
19494
# This must work even if \$libdir does not exist.
19495
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19497
# If ld is used when linking, flag to hardcode \$libdir into
19498
# a binary during linking. This must work even if \$libdir does
19500
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19502
# Whether we need a single -rpath flag with a separated argument.
19503
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19505
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19506
# resulting binary.
19507
hardcode_direct=$hardcode_direct_RC
19509
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19510
# resulting binary.
19511
hardcode_minus_L=$hardcode_minus_L_RC
19513
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19514
# the resulting binary.
19515
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19517
# Set to yes if building a shared library automatically hardcodes DIR into the library
19518
# and all subsequent libraries and executables linked against it.
19519
hardcode_automatic=$hardcode_automatic_RC
19521
# Variables whose values should be saved in libtool wrapper scripts and
19522
# restored at relink time.
19523
variables_saved_for_relink="$variables_saved_for_relink"
19525
# Whether libtool must link a program against all its dependency libraries.
19526
link_all_deplibs=$link_all_deplibs_RC
19528
# Compile-time system search path for libraries
19529
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19531
# Run-time system search path for libraries
19532
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19534
# Fix the shell variable \$srcfile for the compiler.
19535
fix_srcfile_path=$lt_fix_srcfile_path
19537
# Set to yes if exported symbols are required.
19538
always_export_symbols=$always_export_symbols_RC
19540
# The commands to list exported symbols.
19541
export_symbols_cmds=$lt_export_symbols_cmds_RC
19543
# The commands to extract the exported symbol list from a shared archive.
19544
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19546
# Symbols that should not be listed in the preloaded symbols.
19547
exclude_expsyms=$lt_exclude_expsyms_RC
19549
# Symbols that must always be exported.
19550
include_expsyms=$lt_include_expsyms_RC
19552
# ### END LIBTOOL TAG CONFIG: $tagname
19558
# If there is no Makefile yet, we rely on a make rule to execute
19559
# `config.status --recheck' to rerun these tests and create the
19560
# libtool script then.
19561
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19562
if test -f "$ltmain_in"; then
19563
test -f Makefile && make "$ltmain"
19569
ac_cpp='$CPP $CPPFLAGS'
19570
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19571
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19572
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19579
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19580
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19581
{ (exit 1); exit 1; }; }
19585
# Append the new tag name to the list of available tags.
19586
if test -n "$tagname" ; then
19587
available_tags="$available_tags $tagname"
19593
# Now substitute the updated list of available tags.
19594
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19595
mv "${ofile}T" "$ofile"
19599
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19600
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19601
{ (exit 1); exit 1; }; }
19607
# This can be used to rebuild libtool when needed
19608
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19610
# Always use our own libtool.
19611
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19613
# Prevent multiple expansion