1226
1226
kde_qt_dirs="$QTDIR /usr/lib/qt4 /usr/lib/qt /usr/share/qt4"
1228
1228
if test $kde_qtver = 3; then
1229
kde_qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt /usr/share/qt3"
1229
kde_qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt /usr/share/qt3 /usr/lib${kdelibsuff}/qt-3.3"
1230
if test -z "$PKG_CONFIG"; then
1231
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
1233
if test "$PKG_CONFIG" != "no" ; then
1234
if $PKG_CONFIG --exists qt-mt ; then
1235
kde_qt_dirs="$kde_qt_dirs `$PKG_CONFIG --variable=prefix qt-mt`"
1231
1239
if test $kde_qtver = 2; then
1232
1240
kde_qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt"
1443
1451
for dir in $kde_qt_dirs; do
1444
1452
qt_incdirs="$qt_incdirs $dir/include $dir"
1454
if test -z "$PKG_CONFIG"; then
1455
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
1457
if test "$PKG_CONFIG" != "no" ; then
1458
if $PKG_CONFIG --exists qt-mt ; then
1459
qt_incdirs="$qt_incdirs `$PKG_CONFIG --variable=includedir qt-mt`"
1446
1462
qt_incdirs="$QTINC $qt_incdirs /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/X11R6/include/qt2 /usr/include/qt3 $x_includes"
1447
1463
if test ! "$ac_qt_includes" = "NO"; then
1448
1464
qt_incdirs="$ac_qt_includes $qt_incdirs"
1461
1477
for dir in $kde_qt_dirs; do
1462
qt_libdirs="$qt_libdirs $dir/lib${kdelibsuff} $dir"
1478
qt_libdirs="$qt_libdirs $dir/lib${kdelibsuff} $dir/lib $dir"
1480
if test -z "$PKG_CONFIG"; then
1481
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
1483
if test "$PKG_CONFIG" != "no" ; then
1484
if $PKG_CONFIG --exists qt-mt ; then
1485
qt_libdirs="$qt_incdirs `$PKG_CONFIG --variable=libdir qt-mt`"
1464
1488
qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
1465
1489
if test ! "$ac_qt_libraries" = "NO"; then
1466
1490
qt_libdir=$ac_qt_libraries
2626
2651
/* this would segfault.. but we only link, don't run */
2627
2652
(void) gzgets(f, buf, sizeof(buf));
2629
return (zlibVersion() == ZLIB_VERSION);
2654
return (strcmp(zlibVersion(), ZLIB_VERSION) == 0);
2631
2656
eval "ac_cv_lib_z='-lz'",
2632
2657
eval "ac_cv_lib_z=no")
2726
2751
echo "*** to the full path to pkg-config."
2727
2752
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
2729
if !(`$PKG_CONFIG --exists OpenEXR`) ; then
2754
if ! $PKG_CONFIG --exists OpenEXR ; then
2730
2755
AC_MSG_RESULT(no)
2733
if !(`$PKG_CONFIG --atleast-version="1.1.1" OpenEXR`) ; then
2758
if ! $PKG_CONFIG --atleast-version="1.1.1" OpenEXR ; then
2734
2759
AC_MSG_RESULT(no)
3188
3213
CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
3189
CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts $CXXFLAGS"
3214
CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
3190
3215
KDE_CHECK_COMPILER_FLAG(Wmissing-format-attribute, [CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"])
3191
3216
KDE_CHECK_C_COMPILER_FLAG(Wmissing-format-attribute, [CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"])
5203
5228
for dir in $javadirs; do
5204
5229
dnl Check for the java executable
5205
5230
if test -x "$dir/java"; then
5231
sane_path=$(cd $dir; /bin/pwd)
5206
5232
dnl And also check for a libjvm.so somewhere under there
5207
5233
dnl Since we have to go to the parent dir, /usr/bin is excluded, /usr is too big.
5208
if test "$dir" != "/usr/bin"; then
5234
if test "$sane_path" != "/usr/bin"; then
5209
5235
libjvmdir=`find $dir/.. -name libjvm.so | sed 's,libjvm.so,,'|head -n 1`
5210
5236
if test ! -f $libjvmdir/libjvm.so; then continue; fi
5211
5237
jredirs="$jredirs $dir"
5960
5986
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
5961
## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
5987
## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007
5962
5988
## Free Software Foundation, Inc.
5963
5989
## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5966
5992
## unlimited permission to copy and/or distribute it, with or without
5967
5993
## modifications, as long as this notice is preserved.
5969
# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
5995
# serial 51 Debian 1.5.24-2 AC_PROG_LIBTOOL
5972
5998
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
6129
6155
test -z "$ac_objext" && ac_objext=o
6131
6157
# Determine commands to create old-style static archives.
6132
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6158
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6133
6159
old_postinstall_cmds='chmod 644 $oldlib'
6134
6160
old_postuninstall_cmds=
6216
6242
# Check for compiler boilerplate output or warnings with
6217
6243
# the simple compiler test code.
6218
6244
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
6219
[ac_outfile=conftest.$ac_objext
6220
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6245
[AC_REQUIRE([LT_AC_PROG_SED])dnl
6246
ac_outfile=conftest.$ac_objext
6247
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6221
6248
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6222
6249
_lt_compiler_boilerplate=`cat conftest.err`
6229
6256
# Check for linker boilerplate output or warnings with
6230
6257
# the simple link test code.
6231
6258
AC_DEFUN([_LT_LINKER_BOILERPLATE],
6232
[ac_outfile=conftest.$ac_objext
6233
printf "$lt_simple_link_test_code" >conftest.$ac_ext
6259
[AC_REQUIRE([LT_AC_PROG_SED])dnl
6260
ac_outfile=conftest.$ac_objext
6261
echo "$lt_simple_link_test_code" >conftest.$ac_ext
6234
6262
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6235
6263
_lt_linker_boilerplate=`cat conftest.err`
6246
6274
# If we don't find anything, use the default library path according
6247
6275
# to the aix ld manual.
6248
6276
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
6249
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
6250
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6277
[AC_REQUIRE([LT_AC_PROG_SED])dnl
6278
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
6279
lt_aix_libpath_sed='
6280
/Import File Strings/,/^$/ {
6286
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6252
6287
# Check for a 64-bit object if we didn't find anything.
6253
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; }
6288
if test -z "$aix_libpath"; then
6289
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6255
6291
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6256
6292
])# _LT_AC_SYS_LIBPATH_AIX
6482
6518
rm -rf conftest*
6485
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6521
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6522
s390*-*linux*|sparc*-*linux*)
6486
6523
# Find out which ABI we are using.
6487
6524
echo 'int i;' > conftest.$ac_ext
6488
6525
if AC_TRY_EVAL(ac_compile); then
6489
6526
case `/usr/bin/file conftest.o` in
6529
x86_64-*kfreebsd*-gnu)
6530
LD="${LD-ld} -m elf_i386_fbsd"
6492
6532
x86_64-*linux*)
6493
6533
LD="${LD-ld} -m elf_i386"
6576
6619
AC_CACHE_CHECK([$1], [$2],
6578
6621
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
6579
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6622
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6580
6623
lt_compiler_flag="$3"
6581
6624
# Insert the option either (1) after the last *FLAGS variable, or
6582
6625
# (2) before a word containing "conftest.", or (3) at the end.
6617
6660
# ------------------------------------------------------------
6618
6661
# Check whether the given compiler option works
6619
6662
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
6620
[AC_CACHE_CHECK([$1], [$2],
6663
[AC_REQUIRE([LT_AC_PROG_SED])dnl
6664
AC_CACHE_CHECK([$1], [$2],
6622
6666
save_LDFLAGS="$LDFLAGS"
6623
6667
LDFLAGS="$LDFLAGS $3"
6624
printf "$lt_simple_link_test_code" > conftest.$ac_ext
6668
echo "$lt_simple_link_test_code" > conftest.$ac_ext
6625
6669
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6626
6670
# The linker can only warn and ignore the option if not recognized
6627
6671
# So say no if there are warnings
6738
# If test is not a shell built-in, we'll probably end up computing a
6739
# maximum length that is only half of the actual maximum length, but
6741
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6742
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
6782
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6783
if test -n "$lt_cv_sys_max_cmd_len"; then
6784
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6785
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6787
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6788
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
6743
6789
= "XX$teststring") >/dev/null 2>&1 &&
6744
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6745
lt_cv_sys_max_cmd_len=$new_result &&
6746
test $i != 17 # 1/2 MB should be enough
6749
teststring=$teststring$teststring
6752
# Add a significant safety factor because C++ compilers can tack on massive
6753
# amounts of additional arguments before passing them to the linker.
6754
# It appears as though 1/2 is a usable value.
6755
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6790
new_result=`expr "X$teststring" : ".*" 2>&1` &&
6791
lt_cv_sys_max_cmd_len=$new_result &&
6792
test $i != 17 # 1/2 MB should be enough
6795
teststring=$teststring$teststring
6798
# Add a significant safety factor because C++ compilers can tack on massive
6799
# amounts of additional arguments before passing them to the linker.
6800
# It appears as though 1/2 is a usable value.
6801
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6979
7026
# ---------------------------------
6980
7027
# Check to see if options -c and -o are simultaneously supported by compiler
6981
7028
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
6982
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
7029
[AC_REQUIRE([LT_AC_PROG_SED])dnl
7030
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
6983
7031
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
6984
7032
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
6985
7033
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
7144
7193
# -----------------------------
7145
7194
# PORTME Fill in your ld.so characteristics
7146
7195
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
7147
[AC_MSG_CHECKING([dynamic linker characteristics])
7196
[AC_REQUIRE([LT_AC_PROG_SED])dnl
7197
AC_MSG_CHECKING([dynamic linker characteristics])
7148
7198
library_names_spec=
7149
7199
libname_spec='lib$name'
7158
7208
version_type=none
7159
7209
dynamic_linker="$host_os ld.so"
7160
7210
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7161
7212
if test "$GCC" = yes; then
7162
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7163
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7214
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7215
*) lt_awk_arg="/^libraries:/" ;;
7217
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7218
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
7164
7219
# if the path contains ";" then we assume it to be the separator
7165
7220
# otherwise default to the standard path separator (i.e. ":") - it is
7166
7221
# assumed that no part of a normal pathname contains ";" but that should
7167
7222
# okay in the real world where ";" in dirpaths is itself problematic.
7168
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7223
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7170
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7225
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7227
# Ok, now we have the path, separated by spaces, we can step through it
7228
# and add multilib dir if necessary.
7229
lt_tmp_lt_search_path_spec=
7230
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7231
for lt_sys_path in $lt_search_path_spec; do
7232
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7233
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7235
test -d "$lt_sys_path" && \
7236
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7239
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
7240
BEGIN {RS=" "; FS="/|\n";} {
7243
for (lt_i = NF; lt_i > 0; lt_i--) {
7244
if ($lt_i != "" && $lt_i != ".") {
7245
if ($lt_i == "..") {
7248
if (lt_count == 0) {
7249
lt_foo="/" $lt_i lt_foo;
7256
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
7257
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
7259
sys_lib_search_path_spec=`echo $lt_search_path_spec`
7173
7261
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7175
7263
need_lib_prefix=unknown
7176
7264
hardcode_into_libs=no
7328
7416
shlibpath_overrides_runpath=yes
7329
7417
shlibpath_var=DYLD_LIBRARY_PATH
7330
7418
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7331
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7332
if test "$GCC" = yes; then
7333
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"`
7335
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7420
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
7337
7421
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7522
7606
# Append ld.so.conf contents to the search path
7523
7607
if test -f /etc/ld.so.conf; then
7524
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' ' '`
7608
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' ' '`
7525
7609
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7732
7820
# _LT_AC_TAGCONFIG
7733
7821
# ----------------
7734
7822
AC_DEFUN([_LT_AC_TAGCONFIG],
7735
[AC_ARG_WITH([tags],
7823
[AC_REQUIRE([LT_AC_PROG_SED])dnl
7736
7825
[AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
7737
7826
[include additional configurations @<:@automatic@:>@])],
7738
7827
[tagnames="$withval"])
7994
8083
# AC_PATH_TOOL_PREFIX
7995
8084
# -------------------
7996
# find a file program which can recognise shared library
8085
# find a file program which can recognize shared library
7997
8086
AC_DEFUN([AC_PATH_TOOL_PREFIX],
7998
8087
[AC_REQUIRE([AC_PROG_EGREP])dnl
7999
8088
AC_MSG_CHECKING([for $1])
8057
8146
# AC_PATH_MAGIC
8058
8147
# -------------
8059
# find a file program which can recognise a shared library
8148
# find a file program which can recognize a shared library
8060
8149
AC_DEFUN([AC_PATH_MAGIC],
8061
8150
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
8062
8151
if test -z "$lt_cv_path_MAGIC_CMD"; then
8203
8292
# how to check for library dependencies
8204
8293
# -- PORTME fill in with the dynamic library characteristics
8205
8294
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
8206
[AC_CACHE_CHECK([how to recognise dependent libraries],
8295
[AC_CACHE_CHECK([how to recognize dependent libraries],
8207
8296
lt_cv_deplibs_check_method,
8208
8297
[lt_cv_file_magic_cmd='$MAGIC_CMD'
8209
8298
lt_cv_file_magic_test_file=
8243
8332
mingw* | pw32*)
8244
8333
# Base MSYS/MinGW do not provide the 'file' command needed by
8245
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
8246
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8247
lt_cv_file_magic_cmd='$OBJDUMP -f'
8334
# func_win32_libid shell function, so use a weaker test based on 'objdump',
8335
# unless we find 'file', for example because we are cross-compiling.
8336
if ( file / ) >/dev/null 2>&1; then
8337
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8338
lt_cv_file_magic_cmd='func_win32_libid'
8340
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8341
lt_cv_file_magic_cmd='$OBJDUMP -f'
8250
8345
darwin* | rhapsody*)
8391
8490
lt_cv_path_NM="$NM"
8393
8492
lt_nm_to_check="${ac_tool_prefix}nm"
8394
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8493
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8395
8494
lt_nm_to_check="$lt_nm_to_check nm"
8397
8496
for lt_tmp_nm in $lt_nm_to_check; do
8607
8706
_LT_AC_TAGVAR(objext, $1)=$objext
8609
8708
# Code to be used in simple compile tests
8610
lt_simple_compile_test_code="int some_variable = 0;\n"
8709
lt_simple_compile_test_code="int some_variable = 0;"
8612
8711
# Code to be used in simple link tests
8613
lt_simple_link_test_code='int main(){return(0);}\n'
8712
lt_simple_link_test_code='int main(){return(0);}'
8615
8714
_LT_AC_SYS_COMPILER
8716
8815
_LT_AC_TAGVAR(objext, $1)=$objext
8718
8817
# Code to be used in simple compile tests
8719
lt_simple_compile_test_code="int some_variable = 0;\n"
8818
lt_simple_compile_test_code="int some_variable = 0;"
8721
8820
# Code to be used in simple link tests
8722
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
8821
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
8724
8823
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
8725
8824
_LT_AC_SYS_COMPILER
8865
8964
strings "$collect2name" | grep resolve_lib_name >/dev/null
8867
8966
# We have reworked collect2
8868
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
8870
8969
# We have old collect2
8871
8970
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
9024
9123
case $cc_basename in
9026
9125
output_verbose_link_cmd='echo'
9027
_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'
9126
_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'
9028
9127
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9029
9128
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9030
_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}'
9129
_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}'
9031
9130
_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}'
9300
9397
# dependencies.
9301
9398
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'
9401
case `$CC -V 2>&1 | sed 5q` in
9404
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
9405
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9406
_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'
9407
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
9408
_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'
9410
# Not sure whether something based on
9411
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
9413
output_verbose_link_cmd='echo'
9415
# Archives containing C++ object files must be created using
9416
# "CC -xar", where "CC" is the Sun C++ compiler. This is
9417
# necessary to make sure instantiated templates are included
9419
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
9338
9458
_LT_AC_TAGVAR(ld_shlibs, $1)=no
9341
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
9342
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9343
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9344
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
9345
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9346
_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'
9347
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
9348
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9461
if test -f /usr/libexec/ld.so; then
9462
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
9463
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
9464
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9465
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
9466
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9467
_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'
9468
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
9469
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9471
output_verbose_link_cmd='echo'
9473
_LT_AC_TAGVAR(ld_shlibs, $1)=no
9350
output_verbose_link_cmd='echo'
9353
9477
case $cc_basename in
9509
9633
case $host_os in
9510
9634
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
9512
# The C++ compiler is used as linker so we must use $wl
9513
# flag to pass the commands to the underlying system
9514
# linker. We must also pass each convience library through
9515
# to the system linker between allextract/defaultextract.
9516
# The C++ compiler will combine linker options so we
9517
# cannot just pass the convience library names through
9636
# The compiler driver will combine and reorder linker options,
9637
# but understands `-z linker_flag'.
9519
9638
# Supported since Solaris 2.6 (maybe 2.5.1?)
9520
_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'
9639
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
9523
9642
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
9811
9936
# PORTME: override above test on systems where it is broken
9812
9937
ifelse([$1],[CXX],
9813
9938
[case $host_os in
9815
9940
# Interix 3.5 installs completely hosed .la files for C++, so rather than
9816
9941
# hack all around it, let's just trust "g++" to DTRT.
9817
9942
_LT_AC_TAGVAR(predep_objects,$1)=
9819
9944
_LT_AC_TAGVAR(postdeps,$1)=
9948
case `$CC -V 2>&1 | sed 5q` in
9952
# The more standards-conforming stlport4 library is
9953
# incompatible with the Cstd library. Avoid specifying
9954
# it if it's in CXXFLAGS. Ignore libCrun as
9955
# -library=stlport4 depends on it.
9956
case " $CXX $CXXFLAGS " in
9957
*" -library=stlport4 "*)
9958
solaris_use_stlport4=yes
9961
if test "$solaris_use_stlport4" != yes; then
9962
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
9823
9969
case $cc_basename in
9971
# The more standards-conforming stlport4 library is
9972
# incompatible with the Cstd library. Avoid specifying
9973
# it if it's in CXXFLAGS. Ignore libCrun as
9974
# -library=stlport4 depends on it.
9975
case " $CXX $CXXFLAGS " in
9976
*" -library=stlport4 "*)
9977
solaris_use_stlport4=yes
9825
9981
# Adding this requires a known-good setup of shared libraries for
9826
9982
# Sun compiler versions before 5.6, else PIC objects from an old
9827
9983
# archive will be linked into the output, leading to subtle bugs.
9828
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
9984
if test "$solaris_use_stlport4" != yes; then
9985
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
9874
10032
_LT_AC_TAGVAR(objext, $1)=$objext
9876
10034
# Code to be used in simple compile tests
9877
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
10035
lt_simple_compile_test_code="\
9879
10041
# Code to be used in simple link tests
9880
lt_simple_link_test_code=" program t\n end\n"
10042
lt_simple_link_test_code="\
9882
10047
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9883
10048
_LT_AC_SYS_COMPILER
9956
10121
_LT_AC_TAGVAR(objext, $1)=$objext
9958
10123
# Code to be used in simple compile tests
9959
lt_simple_compile_test_code="class foo {}\n"
10124
lt_simple_compile_test_code="class foo {}"
9961
10126
# Code to be used in simple link tests
9962
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
10127
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
9964
10129
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9965
10130
_LT_AC_SYS_COMPILER
10016
10181
_LT_AC_TAGVAR(objext, $1)=$objext
10018
10183
# Code to be used in simple compile tests
10019
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
10184
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
10021
10186
# Code to be used in simple link tests
10022
10187
lt_simple_link_test_code="$lt_simple_compile_test_code"
10105
10270
_LT_AC_TAGVAR(module_cmds, $1) \
10106
10271
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
10107
10272
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
10273
_LT_AC_TAGVAR(fix_srcfile_path, $1) \
10108
10274
_LT_AC_TAGVAR(exclude_expsyms, $1) \
10109
10275
_LT_AC_TAGVAR(include_expsyms, $1); do
10151
10317
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10152
10318
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10154
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10320
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10155
10321
# Free Software Foundation, Inc.
10157
10323
# This file is part of GNU Libtool:
10476
10642
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10478
10644
# Fix the shell variable \$srcfile for the compiler.
10479
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
10645
fix_srcfile_path=$lt_fix_srcfile_path
10481
10647
# Set to yes if exported symbols are required.
10482
10648
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
10559
10725
# ---------------------------------
10560
10726
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
10561
10727
[AC_REQUIRE([AC_CANONICAL_HOST])
10728
AC_REQUIRE([LT_AC_PROG_SED])
10562
10729
AC_REQUIRE([AC_PROG_NM])
10563
10730
AC_REQUIRE([AC_OBJEXT])
10564
10731
# Check for command to grab the raw symbol name followed by C symbol from nm.
10785
10952
# like `-m68040'.
10786
10953
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
10788
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10955
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10789
10956
# PIC is the default for these OSes.
10791
mingw* | os2* | pw32*)
10958
mingw* | cygwin* | os2* | pw32*)
10792
10959
# This hack is so that the source file can tell whether it is being
10793
10960
# built for inclusion in a dll (and should export symbols for example).
10961
# Although the cygwin gcc ignores -fPIC, still need this for old-style
10962
# (--disable-auto-import) libraries
10794
10963
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
10796
10965
darwin* | rhapsody*)
10802
10971
# DJGPP does not support shared libraries at all
10803
10972
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
10806
10975
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
10807
10976
# Instead, we relocate shared libraries at runtime.
10938
11107
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
11110
case `$CC -V 2>&1 | sed 5q` in
11113
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11114
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11115
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
11058
11235
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
11061
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11238
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11062
11239
# PIC is the default for these OSes.
11065
mingw* | pw32* | os2*)
11242
mingw* | cygwin* | pw32* | os2*)
11066
11243
# This hack is so that the source file can tell whether it is being
11067
11244
# built for inclusion in a dll (and should export symbols for example).
11245
# Although the cygwin gcc ignores -fPIC, still need this for old-style
11246
# (--disable-auto-import) libraries
11068
11247
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
11184
11363
# All Alpha code is PIC.
11185
11364
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
11367
case `$CC -V 2>&1 | sed 5q` in
11370
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11371
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11372
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
11375
# Sun Fortran 8.3 passes all unrecognized flags to the linker
11376
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11377
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11378
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
11193
11388
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
11392
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
11197
11396
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
11198
11397
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
11287
11486
# ------------------------------------
11288
11487
# See if the linker supports building shared libraries.
11289
11488
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
11290
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
11489
[AC_REQUIRE([LT_AC_PROG_SED])dnl
11490
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
11291
11491
ifelse([$1],[CXX],[
11292
11492
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11293
11493
case $host_os in
11304
11504
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
11306
11506
cygwin* | mingw*)
11307
_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'
11507
_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'
11309
11509
linux* | k*bsd*-gnu)
11310
11510
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
11446
11646
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
11447
11647
_LT_AC_TAGVAR(always_export_symbols, $1)=no
11448
11648
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
11449
_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'
11649
_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'
11451
11651
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11452
11652
_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'
11479
11679
_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'
11482
linux* | k*bsd*-gnu)
11682
gnu* | linux* | k*bsd*-gnu)
11483
11683
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11485
11685
case $cc_basename,$host_cpu in
11497
11697
ifc* | ifort*) # Intel Fortran compiler
11498
11698
tmp_addflag=' -nofor_main' ;;
11500
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11700
case `$CC -V 2>&1 | sed 5q` in
11701
*Sun\ C*) # Sun C 5.9
11702
_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'
11703
tmp_sharedflag='-G' ;;
11704
*Sun\ F*) # Sun Fortran 8.3
11705
tmp_sharedflag='-G' ;;
11707
tmp_sharedflag='-shared' ;;
11709
_LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11502
11711
if test $supports_anon_versioning = yes; then
11503
11712
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
11504
11713
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11505
11714
$echo "local: *; };" >> $output_objdir/$libname.ver~
11506
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11715
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11508
11717
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
11663
11872
strings "$collect2name" | grep resolve_lib_name >/dev/null
11665
11874
# We have reworked collect2
11666
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
11668
11877
# We have old collect2
11669
11878
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
11756
11965
# The linker will automatically build a .lib file if we build a DLL.
11757
11966
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
11758
11967
# FIXME: Should let the user specify the lib program.
11759
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
11968
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
11760
11969
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
11761
11970
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
11798
12007
case $cc_basename in
11800
12009
output_verbose_link_cmd='echo'
11801
_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'
12010
_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'
11802
12011
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11803
12012
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11804
_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}'
12013
_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}'
11805
12014
_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}'
11966
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
11967
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
11968
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11969
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11970
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11971
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
11972
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
12175
if test -f /usr/libexec/ld.so; then
12176
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
12177
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12178
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12179
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12180
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12181
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
12182
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
12185
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
12186
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12187
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
12190
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12191
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
11975
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
11976
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11977
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
11980
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11981
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
12196
_LT_AC_TAGVAR(ld_shlibs, $1)=no
12039
12252
case $host_os in
12040
12253
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
12042
# The compiler driver will combine linker options so we
12043
# cannot just pass the convience library names through
12044
# without $wl, iff we do not link with $LD.
12045
# Luckily, gcc supports the same syntax we need for Sun Studio.
12255
# The compiler driver will combine and reorder linker options,
12256
# but understands `-z linker_flag'. GCC discards it without `$wl',
12257
# but is careful enough not to reorder.
12046
12258
# Supported since Solaris 2.6 (maybe 2.5.1?)
12049
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
12051
_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' ;;
12259
if test "$GCC" = yes; then
12260
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12262
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
12054
12266
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
12109
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
12321
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
12110
12322
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
12111
12323
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
12112
12324
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
12181
12393
# to ld, don't add -lc before -lgcc.
12182
12394
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
12183
12395
$rm conftest*
12184
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12396
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12186
12398
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
12187
12399
soname=conftest
12284
12496
[AC_CHECK_TOOL(RC, windres, no)
12500
# Cheap backport of AS_EXECUTABLE_P and required macros
12501
# from Autoconf 2.59; we should not use $as_executable_p directly.
12505
m4_ifndef([_AS_TEST_PREPARE],
12506
[m4_defun([_AS_TEST_PREPARE],
12507
[if test -x / >/dev/null 2>&1; then
12508
as_executable_p='test -x'
12510
as_executable_p='test -f'
12512
])])# _AS_TEST_PREPARE
12516
# Check whether a file is executable.
12517
m4_ifndef([AS_EXECUTABLE_P],
12518
[m4_defun([AS_EXECUTABLE_P],
12519
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
12520
$as_executable_p $1[]dnl
12521
])])# AS_EXECUTABLE_P
12287
12523
############################################################
12288
12524
# NOTE: This macro has been submitted for inclusion into #
12289
12525
# GNU Autoconf as AC_PROG_SED. When it is available in #
12306
12542
test -z "$as_dir" && as_dir=.
12307
12543
for lt_ac_prog in sed gsed; do
12308
12544
for ac_exec_ext in '' $ac_executable_extensions; do
12309
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
12545
if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
12310
12546
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
12316
12553
lt_ac_count=0
12317
12554
# Add /usr/xpg4/bin/sed as it is typically found on Solaris