278
276
# Check for linker boilerplate output or warnings with
279
277
# the simple link test code.
280
278
AC_DEFUN([_LT_LINKER_BOILERPLATE],
281
[AC_REQUIRE([LT_AC_PROG_SED])dnl
282
ac_outfile=conftest.$ac_objext
283
echo "$lt_simple_link_test_code" >conftest.$ac_ext
279
[ac_outfile=conftest.$ac_objext
280
printf "$lt_simple_link_test_code" >conftest.$ac_ext
284
281
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
285
282
_lt_linker_boilerplate=`cat conftest.err`
287
284
])# _LT_LINKER_BOILERPLATE
289
# _LT_REQUIRED_DARWIN_CHECKS
290
# --------------------------
291
# Check for some things on darwin
292
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
295
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
296
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
298
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
299
[lt_cv_apple_cc_single_mod=no
300
if test -z "${LT_MULTI_MODULE}"; then
301
# By default we will add the -single_module flag. You can override
302
# by either setting the environment variable LT_MULTI_MODULE
303
# non-empty at configure time, or by adding -multi_module to the
305
echo "int foo(void){return 1;}" > conftest.c
306
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
307
-dynamiclib ${wl}-single_module conftest.c
308
if test -f libconftest.dylib; then
309
lt_cv_apple_cc_single_mod=yes
310
rm -rf libconftest.dylib*
314
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
315
[lt_cv_ld_exported_symbols_list],
316
[lt_cv_ld_exported_symbols_list=no
317
save_LDFLAGS=$LDFLAGS
318
echo "_main" > conftest.sym
319
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
320
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
321
[lt_cv_ld_exported_symbols_list=yes],
322
[lt_cv_ld_exported_symbols_list=no])
323
LDFLAGS="$save_LDFLAGS"
326
rhapsody* | darwin1.[[0123]])
327
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
329
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
331
# if running on 10.5 or later, the deployment target defaults
332
# to the OS version, if on x86, and 10.4, the deployment
333
# target defaults to 10.4. Don't you love it?
334
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
335
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
336
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
338
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
340
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
344
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
345
_lt_dar_single_mod='$single_module'
347
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
348
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
350
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
352
if test "$DSYMUTIL" != ":"; then
353
_lt_dsymutil="~$DSYMUTIL \$lib || :"
361
287
# _LT_AC_SYS_LIBPATH_AIX
362
288
# ----------------------
367
293
# If we don't find anything, use the default library path according
368
294
# to the aix ld manual.
369
295
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
370
[AC_REQUIRE([LT_AC_PROG_SED])dnl
371
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
373
/Import File Strings/,/^$/ {
379
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
296
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
297
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
380
299
# Check for a 64-bit object if we didn't find anything.
381
if test -z "$aix_libpath"; then
382
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
300
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
384
302
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
385
303
])# _LT_AC_SYS_LIBPATH_AIX
879
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
880
if test -n "$lt_cv_sys_max_cmd_len"; then
881
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
882
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
884
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
885
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
785
# If test is not a shell built-in, we'll probably end up computing a
786
# maximum length that is only half of the actual maximum length, but
788
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
789
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
886
790
= "XX$teststring") >/dev/null 2>&1 &&
887
new_result=`expr "X$teststring" : ".*" 2>&1` &&
888
lt_cv_sys_max_cmd_len=$new_result &&
889
test $i != 17 # 1/2 MB should be enough
892
teststring=$teststring$teststring
895
# Add a significant safety factor because C++ compilers can tack on massive
896
# amounts of additional arguments before passing them to the linker.
897
# It appears as though 1/2 is a usable value.
898
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
791
new_result=`expr "X$teststring" : ".*" 2>&1` &&
792
lt_cv_sys_max_cmd_len=$new_result &&
793
test $i != 17 # 1/2 MB should be enough
796
teststring=$teststring$teststring
799
# Add a significant safety factor because C++ compilers can tack on massive
800
# amounts of additional arguments before passing them to the linker.
801
# It appears as though 1/2 is a usable value.
802
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1305
1205
version_type=none
1306
1206
dynamic_linker="$host_os ld.so"
1307
1207
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1309
1208
if test "$GCC" = yes; then
1311
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1312
*) lt_awk_arg="/^libraries:/" ;;
1314
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1315
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1209
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1210
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1316
1211
# if the path contains ";" then we assume it to be the separator
1317
1212
# otherwise default to the standard path separator (i.e. ":") - it is
1318
1213
# assumed that no part of a normal pathname contains ";" but that should
1319
1214
# okay in the real world where ";" in dirpaths is itself problematic.
1320
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1215
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1322
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1217
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1324
# Ok, now we have the path, separated by spaces, we can step through it
1325
# and add multilib dir if necessary.
1326
lt_tmp_lt_search_path_spec=
1327
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1328
for lt_sys_path in $lt_search_path_spec; do
1329
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1330
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1332
test -d "$lt_sys_path" && \
1333
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1336
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1337
BEGIN {RS=" "; FS="/|\n";} {
1340
for (lt_i = NF; lt_i > 0; lt_i--) {
1341
if ($lt_i != "" && $lt_i != ".") {
1342
if ($lt_i == "..") {
1345
if (lt_count == 0) {
1346
lt_foo="/" $lt_i lt_foo;
1353
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1354
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1356
sys_lib_search_path_spec=`echo $lt_search_path_spec`
1358
1220
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1360
1222
need_lib_prefix=unknown
1361
1223
hardcode_into_libs=no
1700
1578
# before this can be enabled.
1701
1579
hardcode_into_libs=yes
1581
# find out which ABI we are using
1584
x86_64*|s390x*|powerpc64*)
1585
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1586
if AC_TRY_EVAL(ac_compile); then
1587
case `/usr/bin/file conftest.$ac_objext` in
1590
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
1703
1598
# Append ld.so.conf contents to the search path
1704
1599
if test -f /etc/ld.so.conf; then
1705
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' ' '`
1706
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1600
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1601
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
1709
1604
# We used to test for /lib/ld.so.1 and disable shared libraries on
2436
2319
mingw* | pw32*)
2437
2320
# Base MSYS/MinGW do not provide the 'file' command needed by
2438
# func_win32_libid shell function, so use a weaker test based on 'objdump',
2439
# unless we find 'file', for example because we are cross-compiling.
2440
if ( file / ) >/dev/null 2>&1; then
2441
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2442
lt_cv_file_magic_cmd='func_win32_libid'
2444
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2445
lt_cv_file_magic_cmd='$OBJDUMP -f'
2321
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
2322
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2323
lt_cv_file_magic_cmd='$OBJDUMP -f'
2449
2326
darwin* | rhapsody*)
2450
2327
lt_cv_deplibs_check_method=pass_all
2453
freebsd* | dragonfly*)
2330
freebsd* | kfreebsd*-gnu | dragonfly*)
2454
2331
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2455
2332
case $host_cpu in
3177
3049
darwin* | rhapsody*)
3051
rhapsody* | darwin1.[[012]])
3052
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3055
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3056
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3058
case ${MACOSX_DEPLOYMENT_TARGET} in
3060
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3063
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3178
3069
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3179
3070
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3180
3071
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3181
3072
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3182
3073
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3183
3074
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3184
_LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3185
if test "$GXX" = yes ; then
3076
if test "$GXX" = yes ; then
3077
lt_int_apple_cc_single_mod=no
3186
3078
output_verbose_link_cmd='echo'
3187
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
3188
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3189
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
3190
_LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
3191
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3192
_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${_lt_dsymutil}"
3193
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
3079
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3080
lt_int_apple_cc_single_mod=yes
3082
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3083
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3085
_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'
3087
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3088
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3089
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3090
_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}'
3092
_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}'
3094
_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}'
3196
3096
case $cc_basename in
3198
3098
output_verbose_link_cmd='echo'
3199
_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` $xlcverstring'
3099
_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'
3200
3100
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3201
3101
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3202
_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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3102
_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}'
3203
3103
_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}'
3470
3372
# dependencies.
3471
3373
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'
3474
case `$CC -V 2>&1 | sed 5q` in
3477
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3478
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3479
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
3480
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3481
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${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'
3483
# Not sure whether something based on
3484
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3486
output_verbose_link_cmd='echo'
3488
# Archives containing C++ object files must be created using
3489
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3490
# necessary to make sure instantiated templates are included
3492
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3531
3410
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3534
if test -f /usr/libexec/ld.so; then
3535
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3536
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3537
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3538
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3539
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3540
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3541
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3542
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3544
output_verbose_link_cmd='echo'
3546
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3413
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3414
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3415
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3416
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3417
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3418
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3419
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3420
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3422
output_verbose_link_cmd='echo'
3550
3425
case $cc_basename in
3706
3581
case $host_os in
3707
3582
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3709
# The compiler driver will combine and reorder linker options,
3710
# but understands `-z linker_flag'.
3584
# The C++ compiler is used as linker so we must use $wl
3585
# flag to pass the commands to the underlying system
3586
# linker. We must also pass each convience library through
3587
# to the system linker between allextract/defaultextract.
3588
# The C++ compiler will combine linker options so we
3589
# cannot just pass the convience library names through
3711
3591
# Supported since Solaris 2.6 (maybe 2.5.1?)
3712
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3592
_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'
3715
3595
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4019
3887
_LT_AC_TAGVAR(postdeps,$1)=
4023
case `$CC -V 2>&1 | sed 5q` in
4027
# The more standards-conforming stlport4 library is
4028
# incompatible with the Cstd library. Avoid specifying
4029
# it if it's in CXXFLAGS. Ignore libCrun as
4030
# -library=stlport4 depends on it.
4031
case " $CXX $CXXFLAGS " in
4032
*" -library=stlport4 "*)
4033
solaris_use_stlport4=yes
4036
if test "$solaris_use_stlport4" != yes; then
4037
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4044
3891
case $cc_basename in
4046
# The more standards-conforming stlport4 library is
4047
# incompatible with the Cstd library. Avoid specifying
4048
# it if it's in CXXFLAGS. Ignore libCrun as
4049
# -library=stlport4 depends on it.
4050
case " $CXX $CXXFLAGS " in
4051
*" -library=stlport4 "*)
4052
solaris_use_stlport4=yes
4056
3893
# Adding this requires a known-good setup of shared libraries for
4057
3894
# Sun compiler versions before 5.6, else PIC objects from an old
4058
3895
# archive will be linked into the output, leading to subtle bugs.
4059
if test "$solaris_use_stlport4" != yes; then
4060
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
3896
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4067
3903
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4068
3904
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5622
5404
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5623
5405
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5624
5406
# as well as any symbol that contains `d'.
5625
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5407
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5626
5408
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5627
5409
# platforms (ab)use it in PIC code, but their linkers get confused if
5628
5410
# the symbol is explicitly referenced. Since portable code cannot
5629
5411
# rely on this symbol name, it's probably fine to never include it in
5630
5412
# preloaded symbol tables.
5631
# Exclude shared library initialization/finalization symbols.
5632
dnl Note also adjust exclude_expsyms for C++ above.
5633
5413
extract_expsyms_cmds=
5634
5414
# Just being paranoid about ensuring that cc_basename is set.
5635
5415
_LT_CC_BASENAME([$compiler])
5778
5558
ifc* | ifort*) # Intel Fortran compiler
5779
5559
tmp_addflag=' -nofor_main' ;;
5781
case `$CC -V 2>&1 | sed 5q` in
5782
*Sun\ C*) # Sun C 5.9
5783
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${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'
5784
tmp_sharedflag='-G' ;;
5785
*Sun\ F*) # Sun Fortran 8.3
5786
tmp_sharedflag='-G' ;;
5788
tmp_sharedflag='-shared' ;;
5790
_LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5561
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5792
5563
if test $supports_anon_versioning = yes; then
5793
5564
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5794
5565
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5795
5566
$echo "local: *; };" >> $output_objdir/$libname.ver~
5796
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5567
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5798
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
5800
5570
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5804
netbsd* | netbsdelf*-gnu)
5805
5575
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5806
5576
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6079
5849
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6080
5850
if test "$GCC" = yes ; then
6081
5851
output_verbose_link_cmd='echo'
6082
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
6083
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6084
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
6085
_LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
5852
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5853
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5854
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5855
_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}'
5856
_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}'
6087
5858
case $cc_basename in
6089
5860
output_verbose_link_cmd='echo'
6090
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
5861
_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'
6091
5862
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6092
5863
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6093
_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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5864
_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}'
6094
5865
_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}'
6255
if test -f /usr/libexec/ld.so; then
6256
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6257
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6258
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6259
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6260
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6261
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6262
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6265
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6266
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6267
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6270
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6271
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6026
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6027
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6028
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6029
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6030
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6031
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6032
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6276
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6035
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6036
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6037
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6040
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6041
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6332
6099
case $host_os in
6333
6100
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6335
# The compiler driver will combine and reorder linker options,
6336
# but understands `-z linker_flag'. GCC discards it without `$wl',
6337
# but is careful enough not to reorder.
6102
# The compiler driver will combine linker options so we
6103
# cannot just pass the convience library names through
6104
# without $wl, iff we do not link with $LD.
6105
# Luckily, gcc supports the same syntax we need for Sun Studio.
6338
6106
# Supported since Solaris 2.6 (maybe 2.5.1?)
6339
if test "$GCC" = yes; then
6340
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6342
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6109
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6111
_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' ;;
6346
6114
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6576
6344
[AC_CHECK_TOOL(RC, windres, no)
6580
# Cheap backport of AS_EXECUTABLE_P and required macros
6581
# from Autoconf 2.59; we should not use $as_executable_p directly.
6585
m4_ifndef([_AS_TEST_PREPARE],
6586
[m4_defun([_AS_TEST_PREPARE],
6587
[if test -x / >/dev/null 2>&1; then
6588
as_executable_p='test -x'
6590
as_executable_p='test -f'
6592
])])# _AS_TEST_PREPARE
6596
# Check whether a file is executable.
6597
m4_ifndef([AS_EXECUTABLE_P],
6598
[m4_defun([AS_EXECUTABLE_P],
6599
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
6600
$as_executable_p $1[]dnl
6601
])])# AS_EXECUTABLE_P
6603
6347
# NOTE: This macro has been submitted for inclusion into #
6604
6348
# GNU Autoconf as AC_PROG_SED. When it is available in #
6605
6349
# a released version of Autoconf we should remove this #