7096
7097
])# _LT_AC_SYS_COMPILER
7100
# _LT_CC_BASENAME(CC)
7101
# -------------------
7102
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7103
AC_DEFUN([_LT_CC_BASENAME],
7104
[for cc_temp in $1""; do
7106
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
7107
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
7112
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7116
# _LT_COMPILER_BOILERPLATE
7117
# ------------------------
7118
# Check for compiler boilerplate output or warnings with
7119
# the simple compiler test code.
7120
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
7121
[ac_outfile=conftest.$ac_objext
7122
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7123
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7124
_lt_compiler_boilerplate=`cat conftest.err`
7126
])# _LT_COMPILER_BOILERPLATE
7129
# _LT_LINKER_BOILERPLATE
7130
# ----------------------
7131
# Check for linker boilerplate output or warnings with
7132
# the simple link test code.
7133
AC_DEFUN([_LT_LINKER_BOILERPLATE],
7134
[ac_outfile=conftest.$ac_objext
7135
printf "$lt_simple_link_test_code" >conftest.$ac_ext
7136
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7137
_lt_linker_boilerplate=`cat conftest.err`
7139
])# _LT_LINKER_BOILERPLATE
7099
7142
# _LT_AC_SYS_LIBPATH_AIX
7100
7143
# ----------------------
7101
7144
# Links a minimal program and checks the executable
7527
7577
lt_cv_sys_max_cmd_len=8192;
7580
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7581
# This has been around since 386BSD, at least. Likely further.
7582
if test -x /sbin/sysctl; then
7583
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7584
elif test -x /usr/sbin/sysctl; then
7585
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7587
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7589
# And add a safety zone
7590
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7591
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7594
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7595
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7596
# nice to cause kernel panics so lets avoid the loop below.
7597
# First set a reasonable default.
7598
lt_cv_sys_max_cmd_len=16384
7600
if test -x /sbin/sysconfig; then
7601
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7602
*1*) lt_cv_sys_max_cmd_len=-1 ;;
7531
7607
# If test is not a shell built-in, we'll probably end up computing a
7532
7608
# maximum length that is only half of the actual maximum length, but
7533
7609
# we can't tell.
7534
while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
7610
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7611
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
7535
7612
= "XX$teststring") >/dev/null 2>&1 &&
7536
7613
new_result=`expr "X$teststring" : ".*" 2>&1` &&
7537
7614
lt_cv_sys_max_cmd_len=$new_result &&
9194
9296
# -----------------------------------
9195
9297
# sets LIBLTDL to the link flags for the libltdl convenience library and
9196
9298
# LTDLINCL to the include flags for the libltdl header and adds
9197
# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
9198
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
9199
# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
9200
# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
9201
# '${top_srcdir}/' (note the single quotes!). If your package is not
9202
# flat and you're not using automake, define top_builddir and
9203
# top_srcdir appropriately in the Makefiles.
9299
# --enable-ltdl-convenience to the configure arguments. Note that
9300
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
9301
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
9302
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
9303
# (note the single quotes!). If your package is not flat and you're not
9304
# using automake, define top_builddir and top_srcdir appropriately in
9204
9306
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
9205
9307
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
9206
9308
case $enable_ltdl_convenience in
9219
9321
# -----------------------------------
9220
9322
# sets LIBLTDL to the link flags for the libltdl installable library and
9221
9323
# LTDLINCL to the include flags for the libltdl header and adds
9222
# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
9223
# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
9224
# DIRECTORY is not provided and an installed libltdl is not found, it is
9225
# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
9226
# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
9227
# quotes!). If your package is not flat and you're not using automake,
9228
# define top_builddir and top_srcdir appropriately in the Makefiles.
9324
# --enable-ltdl-install to the configure arguments. Note that
9325
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
9326
# and an installed libltdl is not found, it is assumed to be `libltdl'.
9327
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
9328
# '${top_srcdir}/' (note the single quotes!). If your package is not
9329
# flat and you're not using automake, define top_builddir and top_srcdir
9330
# appropriately in the Makefiles.
9229
9331
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
9230
9332
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
9231
9333
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
9402
9519
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9403
9520
test "$enable_shared" = yes && enable_static=no
9406
darwin* | rhapsody*)
9407
if test "$GCC" = yes; then
9408
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
9410
rhapsody* | darwin1.[[012]])
9411
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
9414
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9415
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
9417
case ${MACOSX_DEPLOYMENT_TARGET} in
9419
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
9422
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
9428
output_verbose_link_cmd='echo'
9429
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9430
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9431
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9432
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
9433
_LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
9434
_LT_AC_TAGVAR(hardcode_direct, $1)=no
9435
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
9436
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
9437
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
9438
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
9440
_LT_AC_TAGVAR(ld_shlibs, $1)=no
9444
9524
AC_MSG_RESULT([$enable_shared])
9739
9827
_LT_AC_TAGVAR(ld_shlibs, $1)=no
9743
darwin* | rhapsody*)
9744
if test "$GXX" = yes; then
9745
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
9747
rhapsody* | darwin1.[[012]])
9748
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
9751
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9752
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
9754
case ${MACOSX_DEPLOYMENT_TARGET} in
9756
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
9759
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
9830
darwin* | rhapsody*)
9832
rhapsody* | darwin1.[[012]])
9833
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
9836
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9837
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9839
case ${MACOSX_DEPLOYMENT_TARGET} in
9841
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9844
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
9765
lt_int_apple_cc_single_mod=no
9766
output_verbose_link_cmd='echo'
9767
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9768
lt_int_apple_cc_single_mod=yes
9770
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9771
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9773
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
9775
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9850
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
9851
_LT_AC_TAGVAR(hardcode_direct, $1)=no
9852
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
9853
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
9854
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
9855
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
9777
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9778
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9779
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
9781
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
9783
_LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
9784
_LT_AC_TAGVAR(hardcode_direct, $1)=no
9785
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
9786
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
9787
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
9788
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
9790
_LT_AC_TAGVAR(ld_shlibs, $1)=no
9857
if test "$GXX" = yes ; then
9858
lt_int_apple_cc_single_mod=no
9859
output_verbose_link_cmd='echo'
9860
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9861
lt_int_apple_cc_single_mod=yes
9863
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9864
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9866
_LT_AC_TAGVAR(archive_cmds, $1)='$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'
9868
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9869
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9870
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9871
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
9873
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
9875
_LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
9877
case $cc_basename in
9879
output_verbose_link_cmd='echo'
9880
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9881
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9882
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9883
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9884
_LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
9887
_LT_AC_TAGVAR(ld_shlibs, $1)=no
9795
9894
case $cc_basename in
9797
9896
# FIXME: insert proper C++ library support
9798
9897
_LT_AC_TAGVAR(ld_shlibs, $1)=no
9801
9900
# Green Hills C++ Compiler
9802
9901
# FIXME: insert proper C++ library support
9803
9902
_LT_AC_TAGVAR(ld_shlibs, $1)=no
9992
10091
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
9993
10092
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
9997
10096
with_gnu_ld=yes
10097
# version 8.0 and above of icpc choke on multiply defined symbols
10098
# if we add $predep_objects and $postdep_objects, however 7.1 and
10099
# earlier do not add the objects themselves.
10100
case `$CC -V 2>&1` in
10102
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10103
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10105
*) # Version 8.0 or newer
10108
ia64*) tmp_idyn=' -i_dynamic';;
10110
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10111
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9998
10114
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
9999
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10000
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10001
10115
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
10002
10116
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
10003
10117
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10120
# Portland Group C++ compiler
10121
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10122
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$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'
10124
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
10125
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
10126
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10007
10130
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10008
10131
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
10216
10355
case $cc_basename in
10218
10357
# Sun C++ 4.2, 5.x and Centerline C++
10358
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
10219
10359
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
10220
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10360
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10221
10361
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10222
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10362
$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'
10224
10364
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
10225
10365
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
10226
10366
case $host_os in
10227
solaris2.[0-5] | solaris2.[0-5].*) ;;
10367
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
10229
10369
# The C++ compiler is used as linker so we must use $wl
10230
10370
# flag to pass the commands to the underlying system
10371
# linker. We must also pass each convience library through
10372
# to the system linker between allextract/defaultextract.
10373
# The C++ compiler will combine linker options so we
10374
# cannot just pass the convience library names through
10232
10376
# Supported since Solaris 2.6 (maybe 2.5.1?)
10233
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10377
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10236
10380
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
10238
# Commands to make compiler produce verbose output that lists
10239
# what "hidden" libraries, object files and flags are used when
10240
# linking a shared library.
10242
# There doesn't appear to be a way to prevent this compiler from
10243
# explicitly linking system object files so we need to strip them
10244
# from the output so that they don't get included in the library
10246
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10382
output_verbose_link_cmd='echo'
10248
10384
# Archives containing C++ object files must be created using
10249
10385
# "CC -xar", where "CC" is the Sun C++ compiler. This is
11973
12220
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12222
_LT_AC_TAGVAR(ld_shlibs, $1)=no
12227
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12229
case $cc_basename,$host_cpu in
12230
pgcc*) # Portland Group C compiler
12231
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12232
tmp_addflag=' $pic_flag'
12234
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
12235
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12236
tmp_addflag=' $pic_flag -Mnomain' ;;
12237
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12238
tmp_addflag=' -i_dynamic' ;;
12239
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12240
tmp_addflag=' -i_dynamic -nofor_main' ;;
12241
ifc* | ifort*) # Intel Fortran compiler
12242
tmp_addflag=' -nofor_main' ;;
12244
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12246
if test $supports_anon_versioning = yes; then
12247
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
12248
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12249
$echo "local: *; };" >> $output_objdir/$libname.ver~
12250
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12252
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
12254
_LT_AC_TAGVAR(ld_shlibs, $1)=no
12014
12293
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12018
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12019
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12020
_LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
12021
supports_anon_versioning=no
12022
case `$LD -v 2>/dev/null` in
12023
*\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
12024
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12025
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12026
*\ 2.11.*) ;; # other 2.11 versions
12027
*) supports_anon_versioning=yes ;;
12029
if test $supports_anon_versioning = yes; then
12030
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
12031
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12032
$echo "local: *; };" >> $output_objdir/$libname.ver~
12033
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12035
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
12037
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
12039
_LT_AC_TAGVAR(ld_shlibs, $1)=no
12044
12297
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12045
12298
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12223
12474
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
12224
12475
# FIXME: Should let the user specify the lib program.
12225
12476
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
12226
fix_srcfile_path='`cygpath -w "$srcfile"`'
12477
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
12227
12478
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
12230
12481
darwin* | rhapsody*)
12231
if test "$GXX" = yes ; then
12483
rhapsody* | darwin1.[[012]])
12484
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
12487
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12488
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12490
case ${MACOSX_DEPLOYMENT_TARGET} in
12492
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12495
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
12232
12501
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
12234
rhapsody* | darwin1.[[012]])
12235
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
12238
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12239
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
12241
case ${MACOSX_DEPLOYMENT_TARGET} in
12243
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
12246
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
12252
lt_int_apple_cc_single_mod=no
12253
output_verbose_link_cmd='echo'
12254
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12255
lt_int_apple_cc_single_mod=yes
12257
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12258
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12260
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
12262
_LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12263
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12264
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12265
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
12267
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
12269
_LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
12270
12502
_LT_AC_TAGVAR(hardcode_direct, $1)=no
12271
12503
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
12272
12504
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
12273
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
12505
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
12274
12506
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
12507
if test "$GCC" = yes ; then
12508
output_verbose_link_cmd='echo'
12509
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12510
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12511
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12512
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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}'
12513
_LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
12276
_LT_AC_TAGVAR(ld_shlibs, $1)=no
12515
case $cc_basename in
12517
output_verbose_link_cmd='echo'
12518
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12519
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12520
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12521
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12522
_LT_AC_TAGVAR(module_expsym_cmds, $1)='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}'
12525
_LT_AC_TAGVAR(ld_shlibs, $1)=no