901
901
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
903
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
903
# serial 51 Debian 1.5.24-1 AC_PROG_LIBTOOL
906
906
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1063
1063
test -z "$ac_objext" && ac_objext=o
1065
1065
# Determine commands to create old-style static archives.
1066
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1066
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1067
1067
old_postinstall_cmds='chmod 644 $oldlib'
1068
1068
old_postuninstall_cmds=
1150
1150
# Check for compiler boilerplate output or warnings with
1151
1151
# the simple compiler test code.
1152
1152
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
1153
[ac_outfile=conftest.$ac_objext
1154
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
1153
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1154
ac_outfile=conftest.$ac_objext
1155
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1155
1156
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1156
1157
_lt_compiler_boilerplate=`cat conftest.err`
1163
1164
# Check for linker boilerplate output or warnings with
1164
1165
# the simple link test code.
1165
1166
AC_DEFUN([_LT_LINKER_BOILERPLATE],
1166
[ac_outfile=conftest.$ac_objext
1167
printf "$lt_simple_link_test_code" >conftest.$ac_ext
1167
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1168
ac_outfile=conftest.$ac_objext
1169
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1168
1170
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1169
1171
_lt_linker_boilerplate=`cat conftest.err`
1180
1182
# If we don't find anything, use the default library path according
1181
1183
# to the aix ld manual.
1182
1184
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1183
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1184
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1185
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1186
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1187
lt_aix_libpath_sed='
1188
/Import File Strings/,/^$/ {
1194
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1186
1195
# Check for a 64-bit object if we didn't find anything.
1187
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; }
1196
if test -z "$aix_libpath"; then
1197
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1189
1199
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1190
1200
])# _LT_AC_SYS_LIBPATH_AIX
1416
1426
rm -rf conftest*
1419
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1429
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1430
s390*-*linux*|sparc*-*linux*)
1420
1431
# Find out which ABI we are using.
1421
1432
echo 'int i;' > conftest.$ac_ext
1422
1433
if AC_TRY_EVAL(ac_compile); then
1423
1434
case `/usr/bin/file conftest.o` in
1437
x86_64-*kfreebsd*-gnu)
1438
LD="${LD-ld} -m elf_i386_fbsd"
1426
1440
x86_64-*linux*)
1427
1441
LD="${LD-ld} -m elf_i386"
1510
1527
AC_CACHE_CHECK([$1], [$2],
1512
1529
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1513
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1530
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1514
1531
lt_compiler_flag="$3"
1515
1532
# Insert the option either (1) after the last *FLAGS variable, or
1516
1533
# (2) before a word containing "conftest.", or (3) at the end.
1551
1568
# ------------------------------------------------------------
1552
1569
# Check whether the given compiler option works
1553
1570
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1554
[AC_CACHE_CHECK([$1], [$2],
1571
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1572
AC_CACHE_CHECK([$1], [$2],
1556
1574
save_LDFLAGS="$LDFLAGS"
1557
1575
LDFLAGS="$LDFLAGS $3"
1558
printf "$lt_simple_link_test_code" > conftest.$ac_ext
1576
echo "$lt_simple_link_test_code" > conftest.$ac_ext
1559
1577
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1560
1578
# The linker can only warn and ignore the option if not recognized
1561
1579
# So say no if there are warnings
1672
# If test is not a shell built-in, we'll probably end up computing a
1673
# maximum length that is only half of the actual maximum length, but
1675
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1676
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1690
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1691
if test -n "$lt_cv_sys_max_cmd_len"; then
1692
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1693
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1695
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1696
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1677
1697
= "XX$teststring") >/dev/null 2>&1 &&
1678
new_result=`expr "X$teststring" : ".*" 2>&1` &&
1679
lt_cv_sys_max_cmd_len=$new_result &&
1680
test $i != 17 # 1/2 MB should be enough
1683
teststring=$teststring$teststring
1686
# Add a significant safety factor because C++ compilers can tack on massive
1687
# amounts of additional arguments before passing them to the linker.
1688
# It appears as though 1/2 is a usable value.
1689
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1698
new_result=`expr "X$teststring" : ".*" 2>&1` &&
1699
lt_cv_sys_max_cmd_len=$new_result &&
1700
test $i != 17 # 1/2 MB should be enough
1703
teststring=$teststring$teststring
1706
# Add a significant safety factor because C++ compilers can tack on massive
1707
# amounts of additional arguments before passing them to the linker.
1708
# It appears as though 1/2 is a usable value.
1709
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1913
1934
# ---------------------------------
1914
1935
# Check to see if options -c and -o are simultaneously supported by compiler
1915
1936
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1916
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1937
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1938
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1917
1939
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1918
1940
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1919
1941
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2078
2101
# -----------------------------
2079
2102
# PORTME Fill in your ld.so characteristics
2080
2103
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2081
[AC_MSG_CHECKING([dynamic linker characteristics])
2104
[AC_REQUIRE([LT_AC_PROG_SED])dnl
2105
AC_MSG_CHECKING([dynamic linker characteristics])
2082
2106
library_names_spec=
2083
2107
libname_spec='lib$name'
2092
2116
version_type=none
2093
2117
dynamic_linker="$host_os ld.so"
2094
2118
sys_lib_dlsearch_path_spec="/lib /usr/lib"
2095
2120
if test "$GCC" = yes; then
2096
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2097
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
2122
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2123
*) lt_awk_arg="/^libraries:/" ;;
2125
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2126
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
2098
2127
# if the path contains ";" then we assume it to be the separator
2099
2128
# otherwise default to the standard path separator (i.e. ":") - it is
2100
2129
# assumed that no part of a normal pathname contains ";" but that should
2101
2130
# okay in the real world where ";" in dirpaths is itself problematic.
2102
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2131
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2104
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2133
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2135
# Ok, now we have the path, separated by spaces, we can step through it
2136
# and add multilib dir if necessary.
2137
lt_tmp_lt_search_path_spec=
2138
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2139
for lt_sys_path in $lt_search_path_spec; do
2140
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2141
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2143
test -d "$lt_sys_path" && \
2144
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2147
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
2148
BEGIN {RS=" "; FS="/|\n";} {
2151
for (lt_i = NF; lt_i > 0; lt_i--) {
2152
if ($lt_i != "" && $lt_i != ".") {
2153
if ($lt_i == "..") {
2156
if (lt_count == 0) {
2157
lt_foo="/" $lt_i lt_foo;
2164
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2165
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2167
sys_lib_search_path_spec=`echo $lt_search_path_spec`
2107
2169
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2109
2171
need_lib_prefix=unknown
2110
2172
hardcode_into_libs=no
2262
2324
shlibpath_overrides_runpath=yes
2263
2325
shlibpath_var=DYLD_LIBRARY_PATH
2264
2326
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2265
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2266
if test "$GCC" = yes; then
2267
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
2269
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2328
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2271
2329
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2456
2514
# Append ld.so.conf contents to the search path
2457
2515
if test -f /etc/ld.so.conf; then
2458
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' ' '`
2516
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' ' '`
2459
2517
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2666
2728
# _LT_AC_TAGCONFIG
2667
2729
# ----------------
2668
2730
AC_DEFUN([_LT_AC_TAGCONFIG],
2669
[AC_ARG_WITH([tags],
2731
[AC_REQUIRE([LT_AC_PROG_SED])dnl
2670
2733
[AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2671
2734
[include additional configurations @<:@automatic@:>@])],
2672
2735
[tagnames="$withval"])
2928
2991
# AC_PATH_TOOL_PREFIX
2929
2992
# -------------------
2930
# find a file program which can recognise shared library
2993
# find a file program which can recognize shared library
2931
2994
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2932
2995
[AC_REQUIRE([AC_PROG_EGREP])dnl
2933
2996
AC_MSG_CHECKING([for $1])
2991
3054
# AC_PATH_MAGIC
2992
3055
# -------------
2993
# find a file program which can recognise a shared library
3056
# find a file program which can recognize a shared library
2994
3057
AC_DEFUN([AC_PATH_MAGIC],
2995
3058
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2996
3059
if test -z "$lt_cv_path_MAGIC_CMD"; then
3137
3200
# how to check for library dependencies
3138
3201
# -- PORTME fill in with the dynamic library characteristics
3139
3202
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3140
[AC_CACHE_CHECK([how to recognise dependent libraries],
3203
[AC_CACHE_CHECK([how to recognize dependent libraries],
3141
3204
lt_cv_deplibs_check_method,
3142
3205
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3143
3206
lt_cv_file_magic_test_file=
3177
3240
mingw* | pw32*)
3178
3241
# Base MSYS/MinGW do not provide the 'file' command needed by
3179
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
3180
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3181
lt_cv_file_magic_cmd='$OBJDUMP -f'
3242
# func_win32_libid shell function, so use a weaker test based on 'objdump',
3243
# unless we find 'file', for example because we are cross-compiling.
3244
if ( file / ) >/dev/null 2>&1; then
3245
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3246
lt_cv_file_magic_cmd='func_win32_libid'
3248
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3249
lt_cv_file_magic_cmd='$OBJDUMP -f'
3184
3253
darwin* | rhapsody*)
3325
3398
lt_cv_path_NM="$NM"
3327
3400
lt_nm_to_check="${ac_tool_prefix}nm"
3328
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3401
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3329
3402
lt_nm_to_check="$lt_nm_to_check nm"
3331
3404
for lt_tmp_nm in $lt_nm_to_check; do
3541
3614
_LT_AC_TAGVAR(objext, $1)=$objext
3543
3616
# Code to be used in simple compile tests
3544
lt_simple_compile_test_code="int some_variable = 0;\n"
3617
lt_simple_compile_test_code="int some_variable = 0;"
3546
3619
# Code to be used in simple link tests
3547
lt_simple_link_test_code='int main(){return(0);}\n'
3620
lt_simple_link_test_code='int main(){return(0);}'
3549
3622
_LT_AC_SYS_COMPILER
3646
3719
_LT_AC_TAGVAR(objext, $1)=$objext
3648
3721
# Code to be used in simple compile tests
3649
lt_simple_compile_test_code="int some_variable = 0;\n"
3722
lt_simple_compile_test_code="int some_variable = 0;"
3651
3724
# Code to be used in simple link tests
3652
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
3725
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
3654
3727
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3655
3728
_LT_AC_SYS_COMPILER
3795
3868
strings "$collect2name" | grep resolve_lib_name >/dev/null
3797
3870
# We have reworked collect2
3798
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3800
3873
# We have old collect2
3801
3874
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3954
4027
case $cc_basename in
3956
4029
output_verbose_link_cmd='echo'
3957
_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'
4030
_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'
3958
4031
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3959
4032
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3960
_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}'
4033
_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}'
3961
4034
_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}'
4230
4301
# dependencies.
4231
4302
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'
4305
case `$CC -V 2>&1 | sed 5q` in
4308
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4309
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4310
_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'
4311
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4312
_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'
4314
# Not sure whether something based on
4315
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
4317
output_verbose_link_cmd='echo'
4319
# Archives containing C++ object files must be created using
4320
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4321
# necessary to make sure instantiated templates are included
4323
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4268
4362
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4271
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4272
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4273
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4274
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4275
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4276
_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'
4277
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4278
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4365
if test -f /usr/libexec/ld.so; then
4366
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4367
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4368
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4369
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4370
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4371
_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'
4372
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4373
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4375
output_verbose_link_cmd='echo'
4377
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4280
output_verbose_link_cmd='echo'
4283
4381
case $cc_basename in
4439
4537
case $host_os in
4440
4538
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4442
# The C++ compiler is used as linker so we must use $wl
4443
# flag to pass the commands to the underlying system
4444
# linker. We must also pass each convience library through
4445
# to the system linker between allextract/defaultextract.
4446
# The C++ compiler will combine linker options so we
4447
# cannot just pass the convience library names through
4540
# The compiler driver will combine and reorder linker options,
4541
# but understands `-z linker_flag'.
4449
4542
# Supported since Solaris 2.6 (maybe 2.5.1?)
4450
_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'
4543
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4453
4546
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4737
4836
# PORTME: override above test on systems where it is broken
4738
4837
ifelse([$1],[CXX],
4739
4838
[case $host_os in
4741
4840
# Interix 3.5 installs completely hosed .la files for C++, so rather than
4742
4841
# hack all around it, let's just trust "g++" to DTRT.
4743
4842
_LT_AC_TAGVAR(predep_objects,$1)=
4745
4844
_LT_AC_TAGVAR(postdeps,$1)=
4848
case `$CC -V 2>&1 | sed 5q` in
4852
# The more standards-conforming stlport4 library is
4853
# incompatible with the Cstd library. Avoid specifying
4854
# it if it's in CXXFLAGS. Ignore libCrun as
4855
# -library=stlport4 depends on it.
4856
case " $CXX $CXXFLAGS " in
4857
*" -library=stlport4 "*)
4858
solaris_use_stlport4=yes
4861
if test "$solaris_use_stlport4" != yes; then
4862
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4749
4869
case $cc_basename in
4871
# The more standards-conforming stlport4 library is
4872
# incompatible with the Cstd library. Avoid specifying
4873
# it if it's in CXXFLAGS. Ignore libCrun as
4874
# -library=stlport4 depends on it.
4875
case " $CXX $CXXFLAGS " in
4876
*" -library=stlport4 "*)
4877
solaris_use_stlport4=yes
4751
4881
# Adding this requires a known-good setup of shared libraries for
4752
4882
# Sun compiler versions before 5.6, else PIC objects from an old
4753
4883
# archive will be linked into the output, leading to subtle bugs.
4754
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4884
if test "$solaris_use_stlport4" != yes; then
4885
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4800
4932
_LT_AC_TAGVAR(objext, $1)=$objext
4802
4934
# Code to be used in simple compile tests
4803
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4935
lt_simple_compile_test_code="\
4805
4941
# Code to be used in simple link tests
4806
lt_simple_link_test_code=" program t\n end\n"
4942
lt_simple_link_test_code="\
4808
4947
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4809
4948
_LT_AC_SYS_COMPILER
4882
5021
_LT_AC_TAGVAR(objext, $1)=$objext
4884
5023
# Code to be used in simple compile tests
4885
lt_simple_compile_test_code="class foo {}\n"
5024
lt_simple_compile_test_code="class foo {}"
4887
5026
# Code to be used in simple link tests
4888
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
5027
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4890
5029
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4891
5030
_LT_AC_SYS_COMPILER
4938
5077
_LT_AC_TAGVAR(objext, $1)=$objext
4940
5079
# Code to be used in simple compile tests
4941
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
5080
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4943
5082
# Code to be used in simple link tests
4944
5083
lt_simple_link_test_code="$lt_simple_compile_test_code"
5027
5166
_LT_AC_TAGVAR(module_cmds, $1) \
5028
5167
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
5029
5168
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
5169
_LT_AC_TAGVAR(fix_srcfile_path, $1) \
5030
5170
_LT_AC_TAGVAR(exclude_expsyms, $1) \
5031
5171
_LT_AC_TAGVAR(include_expsyms, $1); do
5073
5213
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5074
5214
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5076
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
5216
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
5077
5217
# Free Software Foundation, Inc.
5079
5219
# This file is part of GNU Libtool:
5398
5538
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5400
5540
# Fix the shell variable \$srcfile for the compiler.
5401
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
5541
fix_srcfile_path=$lt_fix_srcfile_path
5403
5543
# Set to yes if exported symbols are required.
5404
5544
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5481
5621
# ---------------------------------
5482
5622
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5483
5623
[AC_REQUIRE([AC_CANONICAL_HOST])
5624
AC_REQUIRE([LT_AC_PROG_SED])
5484
5625
AC_REQUIRE([AC_PROG_NM])
5485
5626
AC_REQUIRE([AC_OBJEXT])
5486
5627
# Check for command to grab the raw symbol name followed by C symbol from nm.
5707
5848
# like `-m68040'.
5708
5849
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5710
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5851
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5711
5852
# PIC is the default for these OSes.
5713
mingw* | os2* | pw32*)
5854
mingw* | cygwin* | os2* | pw32*)
5714
5855
# This hack is so that the source file can tell whether it is being
5715
5856
# built for inclusion in a dll (and should export symbols for example).
5857
# Although the cygwin gcc ignores -fPIC, still need this for old-style
5858
# (--disable-auto-import) libraries
5716
5859
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5718
5861
darwin* | rhapsody*)
5724
5867
# DJGPP does not support shared libraries at all
5725
5868
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5728
5871
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
5729
5872
# Instead, we relocate shared libraries at runtime.
5860
6003
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6006
case `$CC -V 2>&1 | sed 5q` in
6009
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6010
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6011
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5980
6131
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5983
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6134
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5984
6135
# PIC is the default for these OSes.
5987
mingw* | pw32* | os2*)
6138
mingw* | cygwin* | pw32* | os2*)
5988
6139
# This hack is so that the source file can tell whether it is being
5989
6140
# built for inclusion in a dll (and should export symbols for example).
6141
# Although the cygwin gcc ignores -fPIC, still need this for old-style
6142
# (--disable-auto-import) libraries
5990
6143
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6106
6259
# All Alpha code is PIC.
6107
6260
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6263
case `$CC -V 2>&1 | sed 5q` in
6266
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6267
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6268
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6271
# Sun Fortran 8.3 passes all unrecognized flags to the linker
6272
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6273
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6274
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
6115
6284
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6288
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6119
6292
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6120
6293
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6209
6382
# ------------------------------------
6210
6383
# See if the linker supports building shared libraries.
6211
6384
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6212
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6385
[AC_REQUIRE([LT_AC_PROG_SED])dnl
6386
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6213
6387
ifelse([$1],[CXX],[
6214
6388
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6215
6389
case $host_os in
6226
6400
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6228
6402
cygwin* | mingw*)
6229
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$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'
6403
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$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'
6231
6405
linux* | k*bsd*-gnu)
6232
6406
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
6368
6542
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6369
6543
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6370
6544
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6371
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
6545
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
6373
6547
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6374
6548
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6401
6575
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='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'
6404
linux* | k*bsd*-gnu)
6578
gnu* | linux* | k*bsd*-gnu)
6405
6579
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6407
6581
case $cc_basename,$host_cpu in
6419
6593
ifc* | ifort*) # Intel Fortran compiler
6420
6594
tmp_addflag=' -nofor_main' ;;
6422
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6596
case `$CC -V 2>&1 | sed 5q` in
6597
*Sun\ C*) # Sun C 5.9
6598
_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'
6599
tmp_sharedflag='-G' ;;
6600
*Sun\ F*) # Sun Fortran 8.3
6601
tmp_sharedflag='-G' ;;
6603
tmp_sharedflag='-shared' ;;
6605
_LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6424
6607
if test $supports_anon_versioning = yes; then
6425
6608
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6426
6609
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6427
6610
$echo "local: *; };" >> $output_objdir/$libname.ver~
6428
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6611
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6430
6613
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
6585
6768
strings "$collect2name" | grep resolve_lib_name >/dev/null
6587
6770
# We have reworked collect2
6588
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6590
6773
# We have old collect2
6591
6774
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6678
6861
# The linker will automatically build a .lib file if we build a DLL.
6679
6862
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6680
6863
# FIXME: Should let the user specify the lib program.
6681
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6864
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6682
6865
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6683
6866
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6720
6903
case $cc_basename in
6722
6905
output_verbose_link_cmd='echo'
6723
_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'
6906
_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'
6724
6907
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6725
6908
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6726
_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}'
6909
_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}'
6727
6910
_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}'
6888
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6889
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6890
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6891
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6892
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6893
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6894
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7071
if test -f /usr/libexec/ld.so; then
7072
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7073
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7074
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7075
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7076
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7077
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7078
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7081
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
7082
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7083
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7086
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7087
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6897
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6898
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6899
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6902
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6903
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7092
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6961
7148
case $host_os in
6962
7149
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6964
# The compiler driver will combine linker options so we
6965
# cannot just pass the convience library names through
6966
# without $wl, iff we do not link with $LD.
6967
# Luckily, gcc supports the same syntax we need for Sun Studio.
7151
# The compiler driver will combine and reorder linker options,
7152
# but understands `-z linker_flag'. GCC discards it without `$wl',
7153
# but is careful enough not to reorder.
6968
7154
# Supported since Solaris 2.6 (maybe 2.5.1?)
6971
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6973
_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' ;;
7155
if test "$GCC" = yes; then
7156
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7158
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6976
7162
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7031
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
7217
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7032
7218
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7033
7219
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7034
7220
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7103
7289
# to ld, don't add -lc before -lgcc.
7104
7290
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7106
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7292
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7108
7294
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7109
7295
soname=conftest
7206
7392
[AC_CHECK_TOOL(RC, windres, no)
7396
# Cheap backport of AS_EXECUTABLE_P and required macros
7397
# from Autoconf 2.59; we should not use $as_executable_p directly.
7401
m4_ifndef([_AS_TEST_PREPARE],
7402
[m4_defun([_AS_TEST_PREPARE],
7403
[if test -x / >/dev/null 2>&1; then
7404
as_executable_p='test -x'
7406
as_executable_p='test -f'
7408
])])# _AS_TEST_PREPARE
7412
# Check whether a file is executable.
7413
m4_ifndef([AS_EXECUTABLE_P],
7414
[m4_defun([AS_EXECUTABLE_P],
7415
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
7416
$as_executable_p $1[]dnl
7417
])])# AS_EXECUTABLE_P
7209
7419
# NOTE: This macro has been submitted for inclusion into #
7210
7420
# GNU Autoconf as AC_PROG_SED. When it is available in #
7211
7421
# a released version of Autoconf we should remove this #
7226
7436
test -z "$as_dir" && as_dir=.
7227
7437
for lt_ac_prog in sed gsed; do
7228
7438
for ac_exec_ext in '' $ac_executable_extensions; do
7229
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7439
if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
7230
7440
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7237
7448
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
8024
8236
[use gtk-doc to build documentation [[default=no]]]),,
8025
8237
[enable_gtk_doc=no])
8028
8239
if test x$enable_gtk_doc = xyes; then
8029
if test -z "$PKG_CONFIG"; then
8030
AC_PATH_PROG([PKG_CONFIG], [pkg-config], [no])
8032
if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
8036
dnl do we want to do a version check?
8038
[gtk_doc_min_version=$1
8039
if test "$have_gtk_doc" = yes; then
8040
AC_MSG_CHECKING([gtk-doc version >= $gtk_doc_min_version])
8041
if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then
8042
AC_MSG_RESULT([yes])
8049
if test "$have_gtk_doc" != yes; then
8241
[PKG_CHECK_EXISTS([gtk-doc],,
8242
AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
8243
[PKG_CHECK_EXISTS([gtk-doc >= $1],,
8244
AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build gtk-doc]))])
8247
AC_MSG_CHECKING([whether to build gtk-doc documentation])
8248
AC_MSG_RESULT($enable_gtk_doc)
8054
8250
AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
8055
8251
AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])