670
674
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
673
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
675
# serial 52 Debian 1.5.26-4 AC_PROG_LIBTOOL
678
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
679
# -----------------------------------------------------------
680
# If this macro is not defined by Autoconf, define it here.
681
m4_ifdef([AC_PROVIDE_IFELSE],
683
[m4_define([AC_PROVIDE_IFELSE],
684
[m4_ifdef([AC_PROVIDE_$1],
690
AC_DEFUN([AC_PROG_LIBTOOL],
691
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
692
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
693
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
694
AC_PROVIDE_IFELSE([AC_PROG_CXX],
696
[define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
698
dnl And a similar setup for Fortran 77 support
699
AC_PROVIDE_IFELSE([AC_PROG_F77],
701
[define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
704
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
705
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
706
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
707
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
709
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
711
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
713
[ifdef([AC_PROG_GCJ],
714
[define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
715
ifdef([A][M_PROG_GCJ],
716
[define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
717
ifdef([LT_AC_PROG_GCJ],
718
[define([LT_AC_PROG_GCJ],
719
defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
720
])])# AC_PROG_LIBTOOL
725
AC_DEFUN([_AC_PROG_LIBTOOL],
726
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
727
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
728
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
729
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
731
# This can be used to rebuild libtool when needed
732
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
734
# Always use our own libtool.
735
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
738
# Prevent multiple expansion
739
define([AC_PROG_LIBTOOL], [])
745
AC_DEFUN([AC_LIBTOOL_SETUP],
747
AC_REQUIRE([AC_ENABLE_SHARED])dnl
748
AC_REQUIRE([AC_ENABLE_STATIC])dnl
749
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
750
AC_REQUIRE([AC_CANONICAL_HOST])dnl
751
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
752
AC_REQUIRE([AC_PROG_CC])dnl
753
AC_REQUIRE([AC_PROG_LD])dnl
754
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
755
AC_REQUIRE([AC_PROG_NM])dnl
757
AC_REQUIRE([AC_PROG_LN_S])dnl
758
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
759
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
760
AC_REQUIRE([AC_OBJEXT])dnl
761
AC_REQUIRE([AC_EXEEXT])dnl
763
AC_LIBTOOL_SYS_MAX_CMD_LEN
764
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
767
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
768
_LT_AC_PROG_ECHO_BACKSLASH
772
# AIX sometimes has problems with the GCC collect2 program. For some
773
# reason, if we set the COLLECT_NAMES environment variable, the problems
774
# vanish in a puff of smoke.
775
if test "X${COLLECT_NAMES+set}" != Xset; then
782
# Sed substitution that helps us do robust quoting. It backslashifies
783
# metacharacters that are still active within double-quoted strings.
784
Xsed='sed -e 1s/^X//'
785
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
787
# Same as above, but do not quote variable references.
788
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
790
# Sed substitution to delay expansion of an escaped shell variable in a
791
# double_quote_subst'ed string.
792
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
794
# Sed substitution to avoid accidental globbing in evaled expressions
795
no_glob_subst='s/\*/\\\*/g'
801
default_ofile=libtool
804
# All known linkers require a `.a' archive for static linking (except MSVC,
805
# which needs '.lib').
807
ltmain="$ac_aux_dir/ltmain.sh"
808
ofile="$default_ofile"
809
with_gnu_ld="$lt_cv_prog_gnu_ld"
811
AC_CHECK_TOOL(AR, ar, false)
812
AC_CHECK_TOOL(RANLIB, ranlib, :)
813
AC_CHECK_TOOL(STRIP, strip, :)
818
# Set sane defaults for various variables
819
test -z "$AR" && AR=ar
820
test -z "$AR_FLAGS" && AR_FLAGS=cru
821
test -z "$AS" && AS=as
822
test -z "$CC" && CC=cc
823
test -z "$LTCC" && LTCC=$CC
824
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
825
test -z "$DLLTOOL" && DLLTOOL=dlltool
826
test -z "$LD" && LD=ld
827
test -z "$LN_S" && LN_S="ln -s"
828
test -z "$MAGIC_CMD" && MAGIC_CMD=file
829
test -z "$NM" && NM=nm
830
test -z "$SED" && SED=sed
831
test -z "$OBJDUMP" && OBJDUMP=objdump
832
test -z "$RANLIB" && RANLIB=:
833
test -z "$STRIP" && STRIP=:
834
test -z "$ac_objext" && ac_objext=o
836
# Determine commands to create old-style static archives.
837
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
838
old_postinstall_cmds='chmod 644 $oldlib'
839
old_postuninstall_cmds=
841
if test -n "$RANLIB"; then
844
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
847
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
850
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
853
_LT_CC_BASENAME([$compiler])
855
# Only perform the check for file, if the check method requires it
856
case $deplibs_check_method in
858
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
864
_LT_REQUIRED_DARWIN_CHECKS
866
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
867
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
868
enable_win32_dll=yes, enable_win32_dll=no)
870
AC_ARG_ENABLE([libtool-lock],
871
[AC_HELP_STRING([--disable-libtool-lock],
872
[avoid locking (might break parallel builds)])])
873
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
876
[AC_HELP_STRING([--with-pic],
877
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
878
[pic_mode="$withval"],
880
test -z "$pic_mode" && pic_mode=default
882
# Use C for the default configuration in the libtool script
884
AC_LIBTOOL_LANG_C_CONFIG
889
# _LT_AC_SYS_COMPILER
890
# -------------------
891
AC_DEFUN([_LT_AC_SYS_COMPILER],
892
[AC_REQUIRE([AC_PROG_CC])dnl
894
# If no C compiler was specified, use CC.
897
# If no C compiler flags were specified, use CFLAGS.
898
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
900
# Allow CC to be a program name with arguments.
902
])# _LT_AC_SYS_COMPILER
905
# _LT_CC_BASENAME(CC)
906
# -------------------
907
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
908
AC_DEFUN([_LT_CC_BASENAME],
909
[for cc_temp in $1""; do
911
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
912
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
917
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
921
# _LT_COMPILER_BOILERPLATE
922
# ------------------------
923
# Check for compiler boilerplate output or warnings with
924
# the simple compiler test code.
925
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
926
[AC_REQUIRE([LT_AC_PROG_SED])dnl
927
ac_outfile=conftest.$ac_objext
928
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
929
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
930
_lt_compiler_boilerplate=`cat conftest.err`
932
])# _LT_COMPILER_BOILERPLATE
935
# _LT_LINKER_BOILERPLATE
936
# ----------------------
937
# Check for linker boilerplate output or warnings with
938
# the simple link test code.
939
AC_DEFUN([_LT_LINKER_BOILERPLATE],
940
[AC_REQUIRE([LT_AC_PROG_SED])dnl
941
ac_outfile=conftest.$ac_objext
942
echo "$lt_simple_link_test_code" >conftest.$ac_ext
943
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
944
_lt_linker_boilerplate=`cat conftest.err`
946
])# _LT_LINKER_BOILERPLATE
948
# _LT_REQUIRED_DARWIN_CHECKS
949
# --------------------------
950
# Check for some things on darwin
951
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
954
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
955
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
957
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
958
[lt_cv_apple_cc_single_mod=no
959
if test -z "${LT_MULTI_MODULE}"; then
960
# By default we will add the -single_module flag. You can override
961
# by either setting the environment variable LT_MULTI_MODULE
962
# non-empty at configure time, or by adding -multi_module to the
964
echo "int foo(void){return 1;}" > conftest.c
965
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
966
-dynamiclib ${wl}-single_module conftest.c
967
if test -f libconftest.dylib; then
968
lt_cv_apple_cc_single_mod=yes
969
rm -rf libconftest.dylib*
973
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
974
[lt_cv_ld_exported_symbols_list],
975
[lt_cv_ld_exported_symbols_list=no
976
save_LDFLAGS=$LDFLAGS
977
echo "_main" > conftest.sym
978
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
979
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
980
[lt_cv_ld_exported_symbols_list=yes],
981
[lt_cv_ld_exported_symbols_list=no])
982
LDFLAGS="$save_LDFLAGS"
985
rhapsody* | darwin1.[[0123]])
986
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
988
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
990
# if running on 10.5 or later, the deployment target defaults
991
# to the OS version, if on x86, and 10.4, the deployment
992
# target defaults to 10.4. Don't you love it?
993
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
994
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
995
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
997
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
999
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1003
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1004
_lt_dar_single_mod='$single_module'
1006
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1007
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1009
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
1011
if test "$DSYMUTIL" != ":"; then
1012
_lt_dsymutil="~$DSYMUTIL \$lib || :"
1020
# _LT_AC_SYS_LIBPATH_AIX
1021
# ----------------------
1022
# Links a minimal program and checks the executable
1023
# for the system default hardcoded library path. In most cases,
1024
# this is /usr/lib:/lib, but when the MPI compilers are used
1025
# the location of the communication and MPI libs are included too.
1026
# If we don't find anything, use the default library path according
1027
# to the aix ld manual.
1028
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1029
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1030
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1031
lt_aix_libpath_sed='
1032
/Import File Strings/,/^$/ {
1038
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1039
# Check for a 64-bit object if we didn't find anything.
1040
if test -z "$aix_libpath"; then
1041
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1043
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1044
])# _LT_AC_SYS_LIBPATH_AIX
1047
# _LT_AC_SHELL_INIT(ARG)
1048
# ----------------------
1049
AC_DEFUN([_LT_AC_SHELL_INIT],
1050
[ifdef([AC_DIVERSION_NOTICE],
1051
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1052
[AC_DIVERT_PUSH(NOTICE)])
1055
])# _LT_AC_SHELL_INIT
1058
# _LT_AC_PROG_ECHO_BACKSLASH
1059
# --------------------------
1060
# Add some code to the start of the generated configure script which
1061
# will find an echo command which doesn't interpret backslashes.
1062
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1063
[_LT_AC_SHELL_INIT([
1064
# Check that we are running under the correct shell.
1065
SHELL=${CONFIG_SHELL-/bin/sh}
1069
# Remove one level of quotation (which was required for Make).
1070
ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1075
if test "X[$]1" = X--no-reexec; then
1076
# Discard the --no-reexec flag, and continue.
1078
elif test "X[$]1" = X--fallback-echo; then
1079
# Avoid inline document here, it may be left over
1081
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1082
# Yippee, $echo works!
1085
# Restart under the correct shell.
1086
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1089
if test "X[$]1" = X--fallback-echo; then
1090
# used as fallback echo
1098
# The HP-UX ksh and POSIX shell print the target directory to stdout
1100
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1102
if test -z "$ECHO"; then
1103
if test "X${echo_test_string+set}" != Xset; then
1104
# find a string as large as possible, as long as the shell can cope with it
1105
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1106
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1107
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
1108
echo_test_string=`eval $cmd` &&
1109
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1116
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1117
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1118
test "X$echo_testing_string" = "X$echo_test_string"; then
1121
# The Solaris, AIX, and Digital Unix default echo programs unquote
1122
# backslashes. This makes it impossible to quote backslashes using
1123
# echo "$something" | sed 's/\\/\\\\/g'
1125
# So, first we look for a working echo in the user's PATH.
1127
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1128
for dir in $PATH /usr/ucb; do
1130
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1131
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1132
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1133
test "X$echo_testing_string" = "X$echo_test_string"; then
1140
if test "X$echo" = Xecho; then
1141
# We didn't find a better echo, so look for alternatives.
1142
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1143
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1144
test "X$echo_testing_string" = "X$echo_test_string"; then
1145
# This shell has a builtin print -r that does the trick.
1147
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1148
test "X$CONFIG_SHELL" != X/bin/ksh; then
1149
# If we have ksh, try running configure again with it.
1150
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1151
export ORIGINAL_CONFIG_SHELL
1152
CONFIG_SHELL=/bin/ksh
1154
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1158
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1159
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1160
test "X$echo_testing_string" = "X$echo_test_string"; then
1161
# Cool, printf works
1163
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1164
test "X$echo_testing_string" = 'X\t' &&
1165
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1166
test "X$echo_testing_string" = "X$echo_test_string"; then
1167
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1169
SHELL="$CONFIG_SHELL"
1171
echo="$CONFIG_SHELL [$]0 --fallback-echo"
1172
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1173
test "X$echo_testing_string" = 'X\t' &&
1174
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1175
test "X$echo_testing_string" = "X$echo_test_string"; then
1176
echo="$CONFIG_SHELL [$]0 --fallback-echo"
1178
# maybe with a smaller string...
1181
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1182
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1189
if test "$prev" != 'sed 50q "[$]0"'; then
1190
echo_test_string=`eval $prev`
1191
export echo_test_string
1192
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1194
# Oops. We lost completely, so just stick with echo.
1203
# Copy echo and quote the copy suitably for passing to libtool from
1204
# the Makefile, instead of quoting the original, which is used later.
1206
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1207
ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1211
])])# _LT_AC_PROG_ECHO_BACKSLASH
1216
AC_DEFUN([_LT_AC_LOCK],
1217
[AC_ARG_ENABLE([libtool-lock],
1218
[AC_HELP_STRING([--disable-libtool-lock],
1219
[avoid locking (might break parallel builds)])])
1220
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1222
# Some flags need to be propagated to the compiler or linker for good
1226
# Find out which ABI we are using.
1227
echo 'int i;' > conftest.$ac_ext
1228
if AC_TRY_EVAL(ac_compile); then
1229
case `/usr/bin/file conftest.$ac_objext` in
1241
# Find out which ABI we are using.
1242
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1243
if AC_TRY_EVAL(ac_compile); then
1244
if test "$lt_cv_prog_gnu_ld" = yes; then
1245
case `/usr/bin/file conftest.$ac_objext` in
1247
LD="${LD-ld} -melf32bsmip"
1250
LD="${LD-ld} -melf32bmipn32"
1253
LD="${LD-ld} -melf64bmip"
1257
case `/usr/bin/file conftest.$ac_objext` in
1273
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1274
s390*-*linux*|sparc*-*linux*)
1275
# Find out which ABI we are using.
1276
echo 'int i;' > conftest.$ac_ext
1277
if AC_TRY_EVAL(ac_compile); then
1278
case `/usr/bin/file conftest.o` in
1281
x86_64-*kfreebsd*-gnu)
1282
LD="${LD-ld} -m elf_i386_fbsd"
1285
LD="${LD-ld} -m elf_i386"
1287
ppc64-*linux*|powerpc64-*linux*)
1288
LD="${LD-ld} -m elf32ppclinux"
1291
LD="${LD-ld} -m elf_s390"
1294
LD="${LD-ld} -m elf32_sparc"
1300
x86_64-*kfreebsd*-gnu)
1301
LD="${LD-ld} -m elf_x86_64_fbsd"
1304
LD="${LD-ld} -m elf_x86_64"
1306
ppc*-*linux*|powerpc*-*linux*)
1307
LD="${LD-ld} -m elf64ppc"
1310
LD="${LD-ld} -m elf64_s390"
1313
LD="${LD-ld} -m elf64_sparc"
1323
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
1324
SAVE_CFLAGS="$CFLAGS"
1325
CFLAGS="$CFLAGS -belf"
1326
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1328
AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1330
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1331
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1332
CFLAGS="$SAVE_CFLAGS"
1336
# Find out which ABI we are using.
1337
echo 'int i;' > conftest.$ac_ext
1338
if AC_TRY_EVAL(ac_compile); then
1339
case `/usr/bin/file conftest.o` in
1341
case $lt_cv_prog_gnu_ld in
1342
yes*) LD="${LD-ld} -m elf64_sparc" ;;
1344
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1355
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1356
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1357
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1358
AC_CHECK_TOOL(AS, as, false)
1359
AC_CHECK_TOOL(OBJDUMP, objdump, false)
1364
need_locks="$enable_libtool_lock"
1369
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1370
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1371
# ----------------------------------------------------------------
1372
# Check whether the given compiler option works
1373
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1374
[AC_REQUIRE([LT_AC_PROG_SED])
1375
AC_CACHE_CHECK([$1], [$2],
1377
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1378
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1379
lt_compiler_flag="$3"
1380
# Insert the option either (1) after the last *FLAGS variable, or
1381
# (2) before a word containing "conftest.", or (3) at the end.
1382
# Note that $ac_compile itself does not contain backslashes and begins
1383
# with a dollar sign (not a hyphen), so the echo should work correctly.
1384
# The option is referenced via a variable to avoid confusing sed.
1385
lt_compile=`echo "$ac_compile" | $SED \
1386
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1387
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1388
-e 's:$: $lt_compiler_flag:'`
1389
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1390
(eval "$lt_compile" 2>conftest.err)
1392
cat conftest.err >&AS_MESSAGE_LOG_FD
1393
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1394
if (exit $ac_status) && test -s "$ac_outfile"; then
1395
# The compiler can only warn and ignore the option if not recognized
1396
# So say no if there are warnings other than the usual output.
1397
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1398
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1399
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1406
if test x"[$]$2" = xyes; then
1407
ifelse([$5], , :, [$5])
1409
ifelse([$6], , :, [$6])
1411
])# AC_LIBTOOL_COMPILER_OPTION
1414
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1415
# [ACTION-SUCCESS], [ACTION-FAILURE])
1416
# ------------------------------------------------------------
1417
# Check whether the given compiler option works
1418
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1419
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1420
AC_CACHE_CHECK([$1], [$2],
1422
save_LDFLAGS="$LDFLAGS"
1423
LDFLAGS="$LDFLAGS $3"
1424
echo "$lt_simple_link_test_code" > conftest.$ac_ext
1425
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1426
# The linker can only warn and ignore the option if not recognized
1427
# So say no if there are warnings
1428
if test -s conftest.err; then
1429
# Append any errors to the config.log.
1430
cat conftest.err 1>&AS_MESSAGE_LOG_FD
1431
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1432
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1433
if diff conftest.exp conftest.er2 >/dev/null; then
1441
LDFLAGS="$save_LDFLAGS"
1444
if test x"[$]$2" = xyes; then
1445
ifelse([$4], , :, [$4])
1447
ifelse([$5], , :, [$5])
1449
])# AC_LIBTOOL_LINKER_OPTION
1452
# AC_LIBTOOL_SYS_MAX_CMD_LEN
1453
# --------------------------
1454
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1455
[# find the maximum length of command line arguments
1456
AC_MSG_CHECKING([the maximum length of command line arguments])
1457
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1463
# On DJGPP, this test can blow up pretty badly due to problems in libc
1464
# (any single argument exceeding 2000 bytes causes a buffer overrun
1465
# during glob expansion). Even if it were fixed, the result of this
1466
# check would be larger than it should be.
1467
lt_cv_sys_max_cmd_len=12288; # 12K is about right
1471
# Under GNU Hurd, this test is not required because there is
1472
# no limit to the length of command line arguments.
1473
# Libtool will interpret -1 as no limit whatsoever
1474
lt_cv_sys_max_cmd_len=-1;
1478
# On Win9x/ME, this test blows up -- it succeeds, but takes
1479
# about 5 minutes as the teststring grows exponentially.
1480
# Worse, since 9x/ME are not pre-emptively multitasking,
1481
# you end up with a "frozen" computer, even though with patience
1482
# the test eventually succeeds (with a max line length of 256k).
1483
# Instead, let's just punt: use the minimum linelength reported by
1484
# all of the supported platforms: 8192 (on NT/2K/XP).
1485
lt_cv_sys_max_cmd_len=8192;
1489
# On AmigaOS with pdksh, this test takes hours, literally.
1490
# So we just punt and use a minimum line length of 8192.
1491
lt_cv_sys_max_cmd_len=8192;
1494
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1495
# This has been around since 386BSD, at least. Likely further.
1496
if test -x /sbin/sysctl; then
1497
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1498
elif test -x /usr/sbin/sysctl; then
1499
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1501
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1503
# And add a safety zone
1504
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1505
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1509
# We know the value 262144 and hardcode it with a safety zone (like BSD)
1510
lt_cv_sys_max_cmd_len=196608
1514
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1515
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1516
# nice to cause kernel panics so lets avoid the loop below.
1517
# First set a reasonable default.
1518
lt_cv_sys_max_cmd_len=16384
1520
if test -x /sbin/sysconfig; then
1521
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1522
*1*) lt_cv_sys_max_cmd_len=-1 ;;
1527
lt_cv_sys_max_cmd_len=102400
1529
sysv5* | sco5v6* | sysv4.2uw2*)
1530
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1531
if test -n "$kargmax"; then
1532
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1534
lt_cv_sys_max_cmd_len=32768
1538
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1539
if test -n "$lt_cv_sys_max_cmd_len"; then
1540
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1541
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1543
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1544
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1545
= "XX$teststring") >/dev/null 2>&1 &&
1546
new_result=`expr "X$teststring" : ".*" 2>&1` &&
1547
lt_cv_sys_max_cmd_len=$new_result &&
1548
test $i != 17 # 1/2 MB should be enough
1551
teststring=$teststring$teststring
1554
# Add a significant safety factor because C++ compilers can tack on massive
1555
# amounts of additional arguments before passing them to the linker.
1556
# It appears as though 1/2 is a usable value.
1557
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1562
if test -n $lt_cv_sys_max_cmd_len ; then
1563
AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1567
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1570
# _LT_AC_CHECK_DLFCN
1571
# ------------------
1572
AC_DEFUN([_LT_AC_CHECK_DLFCN],
1573
[AC_CHECK_HEADERS(dlfcn.h)dnl
1574
])# _LT_AC_CHECK_DLFCN
1577
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1578
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1579
# ---------------------------------------------------------------------
1580
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1581
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1582
if test "$cross_compiling" = yes; then :
1585
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1586
lt_status=$lt_dlunknown
1587
cat > conftest.$ac_ext <<EOF
1588
[#line __oline__ "configure"
1589
#include "confdefs.h"
1598
# define LT_DLGLOBAL RTLD_GLOBAL
1601
# define LT_DLGLOBAL DL_GLOBAL
1603
# define LT_DLGLOBAL 0
1607
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1608
find out it does not work in some platform. */
1609
#ifndef LT_DLLAZY_OR_NOW
1611
# define LT_DLLAZY_OR_NOW RTLD_LAZY
1614
# define LT_DLLAZY_OR_NOW DL_LAZY
1617
# define LT_DLLAZY_OR_NOW RTLD_NOW
1620
# define LT_DLLAZY_OR_NOW DL_NOW
1622
# define LT_DLLAZY_OR_NOW 0
1630
extern "C" void exit (int);
1633
void fnord() { int i=42;}
1636
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1637
int status = $lt_dlunknown;
1641
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1642
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1643
/* dlclose (self); */
1651
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1652
(./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1655
x$lt_dlno_uscore) $1 ;;
1656
x$lt_dlneed_uscore) $2 ;;
1657
x$lt_dlunknown|x*) $3 ;;
1660
# compilation failed
1665
])# _LT_AC_TRY_DLOPEN_SELF
1668
# AC_LIBTOOL_DLOPEN_SELF
1669
# ----------------------
1670
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1671
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1672
if test "x$enable_dlopen" != xyes; then
1673
enable_dlopen=unknown
1674
enable_dlopen_self=unknown
1675
enable_dlopen_self_static=unknown
1682
lt_cv_dlopen="load_add_on"
1684
lt_cv_dlopen_self=yes
1688
lt_cv_dlopen="LoadLibrary"
1693
lt_cv_dlopen="dlopen"
1698
# if libdl is installed we need to link against it
1699
AC_CHECK_LIB([dl], [dlopen],
1700
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1703
lt_cv_dlopen_self=yes
1708
AC_CHECK_FUNC([shl_load],
1709
[lt_cv_dlopen="shl_load"],
1710
[AC_CHECK_LIB([dld], [shl_load],
1711
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1712
[AC_CHECK_FUNC([dlopen],
1713
[lt_cv_dlopen="dlopen"],
1714
[AC_CHECK_LIB([dl], [dlopen],
1715
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1716
[AC_CHECK_LIB([svld], [dlopen],
1717
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1718
[AC_CHECK_LIB([dld], [dld_link],
1719
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1728
if test "x$lt_cv_dlopen" != xno; then
1734
case $lt_cv_dlopen in
1736
save_CPPFLAGS="$CPPFLAGS"
1737
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1739
save_LDFLAGS="$LDFLAGS"
1740
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1743
LIBS="$lt_cv_dlopen_libs $LIBS"
1745
AC_CACHE_CHECK([whether a program can dlopen itself],
1746
lt_cv_dlopen_self, [dnl
1747
_LT_AC_TRY_DLOPEN_SELF(
1748
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1749
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1752
if test "x$lt_cv_dlopen_self" = xyes; then
1753
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1754
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1755
lt_cv_dlopen_self_static, [dnl
1756
_LT_AC_TRY_DLOPEN_SELF(
1757
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1758
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1762
CPPFLAGS="$save_CPPFLAGS"
1763
LDFLAGS="$save_LDFLAGS"
1768
case $lt_cv_dlopen_self in
1769
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1770
*) enable_dlopen_self=unknown ;;
1773
case $lt_cv_dlopen_self_static in
1774
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1775
*) enable_dlopen_self_static=unknown ;;
1778
])# AC_LIBTOOL_DLOPEN_SELF
1781
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1782
# ---------------------------------
1783
# Check to see if options -c and -o are simultaneously supported by compiler
1784
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1785
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1786
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1787
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1788
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1789
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1790
$rm -r conftest 2>/dev/null
1794
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1796
lt_compiler_flag="-o out/conftest2.$ac_objext"
1797
# Insert the option either (1) after the last *FLAGS variable, or
1798
# (2) before a word containing "conftest.", or (3) at the end.
1799
# Note that $ac_compile itself does not contain backslashes and begins
1800
# with a dollar sign (not a hyphen), so the echo should work correctly.
1801
lt_compile=`echo "$ac_compile" | $SED \
1802
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1803
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1804
-e 's:$: $lt_compiler_flag:'`
1805
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1806
(eval "$lt_compile" 2>out/conftest.err)
1808
cat out/conftest.err >&AS_MESSAGE_LOG_FD
1809
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1810
if (exit $ac_status) && test -s out/conftest2.$ac_objext
1812
# The compiler can only warn and ignore the option if not recognized
1813
# So say no if there are warnings
1814
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1815
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1816
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1817
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1820
chmod u+w . 2>&AS_MESSAGE_LOG_FD
1822
# SGI C++ compiler will create directory out/ii_files/ for
1823
# template instantiation
1824
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1825
$rm out/* && rmdir out
1830
])# AC_LIBTOOL_PROG_CC_C_O
1833
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1834
# -----------------------------------------
1835
# Check to see if we can do hard links to lock some files if needed
1836
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1837
[AC_REQUIRE([_LT_AC_LOCK])dnl
1839
hard_links="nottested"
1840
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1841
# do not overwrite the value of need_locks provided by the user
1842
AC_MSG_CHECKING([if we can lock with hard links])
1845
ln conftest.a conftest.b 2>/dev/null && hard_links=no
1847
ln conftest.a conftest.b 2>&5 || hard_links=no
1848
ln conftest.a conftest.b 2>/dev/null && hard_links=no
1849
AC_MSG_RESULT([$hard_links])
1850
if test "$hard_links" = no; then
1851
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1857
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1862
AC_DEFUN([AC_LIBTOOL_OBJDIR],
1863
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1864
[rm -f .libs 2>/dev/null
1865
mkdir .libs 2>/dev/null
1866
if test -d .libs; then
1869
# MS-DOS does not allow filenames that begin with a dot.
1872
rmdir .libs 2>/dev/null])
1873
objdir=$lt_cv_objdir
1874
])# AC_LIBTOOL_OBJDIR
1877
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1878
# ----------------------------------------------
1879
# Check hardcoding attributes.
1880
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1881
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1882
_LT_AC_TAGVAR(hardcode_action, $1)=
1883
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1884
test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1885
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1887
# We can hardcode non-existant directories.
1888
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1889
# If the only mechanism to avoid hardcoding is shlibpath_var, we
1890
# have to relink, otherwise we might link with an installed library
1891
# when we should be linking with a yet-to-be-installed one
1892
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1893
test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1894
# Linking always hardcodes the temporary library directory.
1895
_LT_AC_TAGVAR(hardcode_action, $1)=relink
1897
# We can link without hardcoding, and we can hardcode nonexisting dirs.
1898
_LT_AC_TAGVAR(hardcode_action, $1)=immediate
1901
# We cannot hardcode anything, or else we can only hardcode existing
1903
_LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1905
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1907
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1908
# Fast installation is not supported
1909
enable_fast_install=no
1910
elif test "$shlibpath_overrides_runpath" = yes ||
1911
test "$enable_shared" = no; then
1912
# Fast installation is not necessary
1913
enable_fast_install=needless
1915
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1918
# AC_LIBTOOL_SYS_LIB_STRIP
1919
# ------------------------
1920
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1923
AC_MSG_CHECKING([whether stripping libraries is possible])
1924
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1925
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1926
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1927
AC_MSG_RESULT([yes])
1929
# FIXME - insert some real tests, host_os isn't really good enough
1932
if test -n "$STRIP" ; then
1933
striplib="$STRIP -x"
1934
old_striplib="$STRIP -S"
1935
AC_MSG_RESULT([yes])
1945
])# AC_LIBTOOL_SYS_LIB_STRIP
1948
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1949
# -----------------------------
1950
# PORTME Fill in your ld.so characteristics
1951
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1952
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1953
AC_MSG_CHECKING([dynamic linker characteristics])
1955
libname_spec='lib$name'
1963
shlibpath_overrides_runpath=unknown
1965
dynamic_linker="$host_os ld.so"
1966
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1968
if test "$GCC" = yes; then
1970
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1971
*) lt_awk_arg="/^libraries:/" ;;
1973
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1974
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1975
# if the path contains ";" then we assume it to be the separator
1976
# otherwise default to the standard path separator (i.e. ":") - it is
1977
# assumed that no part of a normal pathname contains ";" but that should
1978
# okay in the real world where ";" in dirpaths is itself problematic.
1979
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1981
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1983
# Ok, now we have the path, separated by spaces, we can step through it
1984
# and add multilib dir if necessary.
1985
lt_tmp_lt_search_path_spec=
1986
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1987
for lt_sys_path in $lt_search_path_spec; do
1988
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1989
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1991
test -d "$lt_sys_path" && \
1992
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1995
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1996
BEGIN {RS=" "; FS="/|\n";} {
1999
for (lt_i = NF; lt_i > 0; lt_i--) {
2000
if ($lt_i != "" && $lt_i != ".") {
2001
if ($lt_i == "..") {
2004
if (lt_count == 0) {
2005
lt_foo="/" $lt_i lt_foo;
2012
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2013
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2015
sys_lib_search_path_spec=`echo $lt_search_path_spec`
2017
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2019
need_lib_prefix=unknown
2020
hardcode_into_libs=no
2022
# when you set need_version to no, make sure it does not cause -set_version
2023
# flags to be left without arguments
2024
need_version=unknown
2029
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2030
shlibpath_var=LIBPATH
2032
# AIX 3 has no versioning support, so we append a major version to the name.
2033
soname_spec='${libname}${release}${shared_ext}$major'
2040
hardcode_into_libs=yes
2041
if test "$host_cpu" = ia64; then
2042
# AIX 5 supports IA64
2043
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2044
shlibpath_var=LD_LIBRARY_PATH
2046
# With GCC up to 2.95.x, collect2 would create an import file
2047
# for dependence libraries. The import file would start with
2048
# the line `#! .'. This would cause the generated library to
2049
# depend on `.', always an invalid library. This was fixed in
2050
# development snapshots of GCC prior to 3.0.
2052
aix4 | aix4.[[01]] | aix4.[[01]].*)
2053
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2055
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2062
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2063
# soname into executable. Probably we can add versioning support to
2064
# collect2, so additional links can be useful in future.
2065
if test "$aix_use_runtimelinking" = yes; then
2066
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
2067
# instead of lib<name>.a to let people know that these are not
2068
# typical AIX shared libraries.
2069
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2071
# We preserve .a as extension for shared libraries through AIX4.2
2072
# and later when we are not doing run time linking.
2073
library_names_spec='${libname}${release}.a $libname.a'
2074
soname_spec='${libname}${release}${shared_ext}$major'
2076
shlibpath_var=LIBPATH
2081
library_names_spec='$libname.ixlibrary $libname.a'
2082
# Create ${libname}_ixlibrary.a entries in /sys/libs.
2083
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2087
library_names_spec='${libname}${shared_ext}'
2088
dynamic_linker="$host_os ld.so"
2089
shlibpath_var=LIBRARY_PATH
2095
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2096
soname_spec='${libname}${release}${shared_ext}$major'
2097
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2098
shlibpath_var=LD_LIBRARY_PATH
2099
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2100
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2101
# the default ld.so.conf also contains /usr/contrib/lib and
2102
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2103
# libtool to hard-code these into programs
2106
cygwin* | mingw* | pw32*)
2107
version_type=windows
2112
case $GCC,$host_os in
2113
yes,cygwin* | yes,mingw* | yes,pw32*)
2114
library_names_spec='$libname.dll.a'
2115
# DLL is installed to $(libdir)/../bin by postinstall_cmds
2116
postinstall_cmds='base_file=`basename \${file}`~
2117
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2118
dldir=$destdir/`dirname \$dlpath`~
2119
test -d \$dldir || mkdir -p \$dldir~
2120
$install_prog $dir/$dlname \$dldir/$dlname~
2121
chmod a+x \$dldir/$dlname'
2122
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2123
dlpath=$dir/\$dldll~
2125
shlibpath_overrides_runpath=yes
2129
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
2130
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2131
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2134
# MinGW DLLs use traditional 'lib' prefix
2135
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2136
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2137
if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2138
# It is most probably a Windows format PATH printed by
2139
# mingw gcc, but we are running on Cygwin. Gcc prints its search
2140
# path with ; separators, and with drive letters. We can handle the
2141
# drive letters (cygwin fileutils understands them), so leave them,
2142
# especially as we might pass files found there to a mingw objdump,
2143
# which wouldn't understand a cygwinified path. Ahh.
2144
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2146
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2150
# pw32 DLLs use 'pw' prefix rather than 'lib'
2151
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2157
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2160
dynamic_linker='Win32 ld.exe'
2161
# FIXME: first we should search . and the directory the executable is in
2165
darwin* | rhapsody*)
2166
dynamic_linker="$host_os dyld"
2170
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2171
soname_spec='${libname}${release}${major}$shared_ext'
2172
shlibpath_overrides_runpath=yes
2173
shlibpath_var=DYLD_LIBRARY_PATH
2174
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2176
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2177
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2184
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2185
soname_spec='${libname}${release}${shared_ext}$major'
2186
shlibpath_var=LD_LIBRARY_PATH
2193
freebsd* | dragonfly*)
2194
# DragonFly does not have aout. When/if they implement a new
2195
# versioning mechanism, adjust this.
2196
if test -x /usr/bin/objformat; then
2197
objformat=`/usr/bin/objformat`
2200
freebsd[[123]]*) objformat=aout ;;
2204
version_type=freebsd-$objformat
2205
case $version_type in
2207
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2212
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2216
shlibpath_var=LD_LIBRARY_PATH
2219
shlibpath_overrides_runpath=yes
2221
freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2222
shlibpath_overrides_runpath=yes
2223
hardcode_into_libs=yes
2225
freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2226
freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2227
shlibpath_overrides_runpath=no
2228
hardcode_into_libs=yes
2230
*) # from 4.6 on, and DragonFly
2231
shlibpath_overrides_runpath=yes
2232
hardcode_into_libs=yes
2241
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2242
soname_spec='${libname}${release}${shared_ext}$major'
2243
shlibpath_var=LD_LIBRARY_PATH
2244
hardcode_into_libs=yes
2247
hpux9* | hpux10* | hpux11*)
2248
# Give a soname corresponding to the major version so that dld.sl refuses to
2249
# link against other versions.
2256
hardcode_into_libs=yes
2257
dynamic_linker="$host_os dld.so"
2258
shlibpath_var=LD_LIBRARY_PATH
2259
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2260
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2261
soname_spec='${libname}${release}${shared_ext}$major'
2262
if test "X$HPUX_IA64_MODE" = X32; then
2263
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2265
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2267
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2271
hardcode_into_libs=yes
2272
dynamic_linker="$host_os dld.sl"
2273
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2274
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2275
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2276
soname_spec='${libname}${release}${shared_ext}$major'
2277
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2278
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2282
dynamic_linker="$host_os dld.sl"
2283
shlibpath_var=SHLIB_PATH
2284
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2285
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2286
soname_spec='${libname}${release}${shared_ext}$major'
2289
# HP-UX runs *really* slowly unless shared libraries are mode 555.
2290
postinstall_cmds='chmod 555 $lib'
2297
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2298
soname_spec='${libname}${release}${shared_ext}$major'
2299
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2300
shlibpath_var=LD_LIBRARY_PATH
2301
shlibpath_overrides_runpath=no
2302
hardcode_into_libs=yes
2305
irix5* | irix6* | nonstopux*)
2307
nonstopux*) version_type=nonstopux ;;
2309
if test "$lt_cv_prog_gnu_ld" = yes; then
2317
soname_spec='${libname}${release}${shared_ext}$major'
2318
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2320
irix5* | nonstopux*)
2324
case $LD in # libtool.m4 will add one of these switches to LD
2325
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2326
libsuff= shlibsuff= libmagic=32-bit;;
2327
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2328
libsuff=32 shlibsuff=N32 libmagic=N32;;
2329
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2330
libsuff=64 shlibsuff=64 libmagic=64-bit;;
2331
*) libsuff= shlibsuff= libmagic=never-match;;
2335
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2336
shlibpath_overrides_runpath=no
2337
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2338
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2339
hardcode_into_libs=yes
2342
# No shared lib support for Linux oldld, aout, or coff.
2343
linux*oldld* | linux*aout* | linux*coff*)
2347
# This must be Linux ELF.
2348
linux* | k*bsd*-gnu)
2352
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2353
soname_spec='${libname}${release}${shared_ext}$major'
2354
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2355
shlibpath_var=LD_LIBRARY_PATH
2356
shlibpath_overrides_runpath=no
2357
# This implies no fast_install, which is unacceptable.
2358
# Some rework will be needed to allow for fast_install
2359
# before this can be enabled.
2360
hardcode_into_libs=yes
2362
# Append ld.so.conf contents to the search path
2363
if test -f /etc/ld.so.conf; then
2364
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' ' '`
2365
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2368
# We used to test for /lib/ld.so.1 and disable shared libraries on
2369
# powerpc, because MkLinux only supported shared libraries with the
2370
# GNU dynamic linker. Since this was broken with cross compilers,
2371
# most powerpc-linux boxes support dynamic linking these days and
2372
# people can always --disable-shared, the test was removed, and we
2373
# assume the GNU/Linux dynamic linker is in use.
2374
dynamic_linker='GNU/Linux ld.so'
2381
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2382
soname_spec='${libname}${release}${shared_ext}$major'
2383
shlibpath_var=LD_LIBRARY_PATH
2384
shlibpath_overrides_runpath=no
2385
hardcode_into_libs=yes
2386
dynamic_linker='NetBSD ld.elf_so'
2393
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2394
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2395
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2396
dynamic_linker='NetBSD (a.out) ld.so'
2398
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2399
soname_spec='${libname}${release}${shared_ext}$major'
2400
dynamic_linker='NetBSD ld.elf_so'
2402
shlibpath_var=LD_LIBRARY_PATH
2403
shlibpath_overrides_runpath=yes
2404
hardcode_into_libs=yes
2409
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2410
shlibpath_var=LD_LIBRARY_PATH
2411
shlibpath_overrides_runpath=yes
2418
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2419
soname_spec='${libname}${release}${shared_ext}$major'
2420
shlibpath_var=LD_LIBRARY_PATH
2421
shlibpath_overrides_runpath=yes
2426
sys_lib_dlsearch_path_spec="/usr/lib"
2428
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2430
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2431
*) need_version=no ;;
2433
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2434
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2435
shlibpath_var=LD_LIBRARY_PATH
2436
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2438
openbsd2.[[89]] | openbsd2.[[89]].*)
2439
shlibpath_overrides_runpath=no
2442
shlibpath_overrides_runpath=yes
2446
shlibpath_overrides_runpath=yes
2451
libname_spec='$name'
2454
library_names_spec='$libname${shared_ext} $libname.a'
2455
dynamic_linker='OS/2 ld.exe'
2456
shlibpath_var=LIBPATH
2459
osf3* | osf4* | osf5*)
2463
soname_spec='${libname}${release}${shared_ext}$major'
2464
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2465
shlibpath_var=LD_LIBRARY_PATH
2466
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2467
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2478
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2479
soname_spec='${libname}${release}${shared_ext}$major'
2480
shlibpath_var=LD_LIBRARY_PATH
2481
shlibpath_overrides_runpath=yes
2482
hardcode_into_libs=yes
2483
# ldd complains unless libraries are executable
2484
postinstall_cmds='chmod +x $lib'
2489
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2490
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2491
shlibpath_var=LD_LIBRARY_PATH
2492
shlibpath_overrides_runpath=yes
2493
if test "$with_gnu_ld" = yes; then
2501
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2502
soname_spec='${libname}${release}${shared_ext}$major'
2503
shlibpath_var=LD_LIBRARY_PATH
2504
case $host_vendor in
2506
shlibpath_overrides_runpath=no
2508
export_dynamic_flag_spec='${wl}-Blargedynsym'
2509
runpath_var=LD_RUN_PATH
2517
shlibpath_overrides_runpath=no
2518
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2524
if test -d /usr/nec ;then
2526
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2527
soname_spec='$libname${shared_ext}.$major'
2528
shlibpath_var=LD_LIBRARY_PATH
2532
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2533
version_type=freebsd-elf
2536
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2537
soname_spec='${libname}${release}${shared_ext}$major'
2538
shlibpath_var=LD_LIBRARY_PATH
2539
hardcode_into_libs=yes
2540
if test "$with_gnu_ld" = yes; then
2541
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2542
shlibpath_overrides_runpath=no
2544
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2545
shlibpath_overrides_runpath=yes
2548
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2552
sys_lib_dlsearch_path_spec='/usr/lib'
2557
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2558
soname_spec='${libname}${release}${shared_ext}$major'
2559
shlibpath_var=LD_LIBRARY_PATH
2566
AC_MSG_RESULT([$dynamic_linker])
2567
test "$dynamic_linker" = no && can_build_shared=no
2569
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
2570
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
2571
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
2572
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
2573
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
2574
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2576
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2577
if test "$GCC" = yes; then
2578
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2580
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2585
AC_DEFUN([_LT_AC_TAGCONFIG],
2586
[AC_REQUIRE([LT_AC_PROG_SED])dnl
2588
[AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2589
[include additional configurations @<:@automatic@:>@])],
2590
[tagnames="$withval"])
2592
if test -f "$ltmain" && test -n "$tagnames"; then
2593
if test ! -f "${ofile}"; then
2594
AC_MSG_WARN([output file `$ofile' does not exist])
2597
if test -z "$LTCC"; then
2598
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2599
if test -z "$LTCC"; then
2600
AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2602
AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2605
if test -z "$LTCFLAGS"; then
2606
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
2609
# Extract list of available tagged configurations in $ofile.
2610
# Note that this assumes the entire list is on one line.
2611
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2613
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2614
for tagname in $tagnames; do
2616
# Check whether tagname contains only valid characters
2617
case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2619
*) AC_MSG_ERROR([invalid tag name: $tagname])
2623
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2625
AC_MSG_ERROR([tag name \"$tagname\" already exists])
2628
# Update the list of available tags.
2629
if test -n "$tagname"; then
2630
echo appending configuration tag \"$tagname\" to $ofile
2634
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2635
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2636
(test "X$CXX" != "Xg++"))) ; then
2637
AC_LIBTOOL_LANG_CXX_CONFIG
2644
if test -n "$F77" && test "X$F77" != "Xno"; then
2645
AC_LIBTOOL_LANG_F77_CONFIG
2652
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2653
AC_LIBTOOL_LANG_GCJ_CONFIG
2660
AC_LIBTOOL_LANG_RC_CONFIG
2664
AC_MSG_ERROR([Unsupported tag name: $tagname])
2668
# Append the new tag name to the list of available tags.
2669
if test -n "$tagname" ; then
2670
available_tags="$available_tags $tagname"
2676
# Now substitute the updated list of available tags.
2677
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2678
mv "${ofile}T" "$ofile"
2682
AC_MSG_ERROR([unable to update list of available tagged configurations.])
2685
])# _LT_AC_TAGCONFIG
2690
# enable checks for dlopen support
2691
AC_DEFUN([AC_LIBTOOL_DLOPEN],
2692
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2693
])# AC_LIBTOOL_DLOPEN
2696
# AC_LIBTOOL_WIN32_DLL
2697
# --------------------
2698
# declare package support for building win32 DLLs
2699
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2700
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2701
])# AC_LIBTOOL_WIN32_DLL
2704
# AC_ENABLE_SHARED([DEFAULT])
2705
# ---------------------------
2706
# implement the --enable-shared flag
2707
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2708
AC_DEFUN([AC_ENABLE_SHARED],
2709
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2710
AC_ARG_ENABLE([shared],
2711
[AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2712
[build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2713
[p=${PACKAGE-default}
2715
yes) enable_shared=yes ;;
2716
no) enable_shared=no ;;
2719
# Look at the argument we got. We use all the common list separators.
2720
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2721
for pkg in $enableval; do
2723
if test "X$pkg" = "X$p"; then
2730
[enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2731
])# AC_ENABLE_SHARED
2736
# set the default shared flag to --disable-shared
2737
AC_DEFUN([AC_DISABLE_SHARED],
2738
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2739
AC_ENABLE_SHARED(no)
2740
])# AC_DISABLE_SHARED
2743
# AC_ENABLE_STATIC([DEFAULT])
2744
# ---------------------------
2745
# implement the --enable-static flag
2746
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2747
AC_DEFUN([AC_ENABLE_STATIC],
2748
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2749
AC_ARG_ENABLE([static],
2750
[AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2751
[build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2752
[p=${PACKAGE-default}
2754
yes) enable_static=yes ;;
2755
no) enable_static=no ;;
2758
# Look at the argument we got. We use all the common list separators.
2759
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2760
for pkg in $enableval; do
2762
if test "X$pkg" = "X$p"; then
2769
[enable_static=]AC_ENABLE_STATIC_DEFAULT)
2770
])# AC_ENABLE_STATIC
2775
# set the default static flag to --disable-static
2776
AC_DEFUN([AC_DISABLE_STATIC],
2777
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2778
AC_ENABLE_STATIC(no)
2779
])# AC_DISABLE_STATIC
2782
# AC_ENABLE_FAST_INSTALL([DEFAULT])
2783
# ---------------------------------
2784
# implement the --enable-fast-install flag
2785
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2786
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2787
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2788
AC_ARG_ENABLE([fast-install],
2789
[AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2790
[optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2791
[p=${PACKAGE-default}
2793
yes) enable_fast_install=yes ;;
2794
no) enable_fast_install=no ;;
2796
enable_fast_install=no
2797
# Look at the argument we got. We use all the common list separators.
2798
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2799
for pkg in $enableval; do
2801
if test "X$pkg" = "X$p"; then
2802
enable_fast_install=yes
2808
[enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2809
])# AC_ENABLE_FAST_INSTALL
2812
# AC_DISABLE_FAST_INSTALL
2813
# -----------------------
2814
# set the default to --disable-fast-install
2815
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2816
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2817
AC_ENABLE_FAST_INSTALL(no)
2818
])# AC_DISABLE_FAST_INSTALL
2821
# AC_LIBTOOL_PICMODE([MODE])
2822
# --------------------------
2823
# implement the --with-pic flag
2824
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2825
AC_DEFUN([AC_LIBTOOL_PICMODE],
2826
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2827
pic_mode=ifelse($#,1,$1,default)
2828
])# AC_LIBTOOL_PICMODE
2833
# This is predefined starting with Autoconf 2.54, so this conditional
2834
# definition can be removed once we require Autoconf 2.54 or later.
2835
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2836
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2837
[if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2838
then ac_cv_prog_egrep='grep -E'
2839
else ac_cv_prog_egrep='egrep'
2841
EGREP=$ac_cv_prog_egrep
2846
# AC_PATH_TOOL_PREFIX
2847
# -------------------
2848
# find a file program which can recognize shared library
2849
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2850
[AC_REQUIRE([AC_PROG_EGREP])dnl
2851
AC_MSG_CHECKING([for $1])
2852
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2854
[[\\/*] | ?:[\\/]*])
2855
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2858
lt_save_MAGIC_CMD="$MAGIC_CMD"
2859
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2860
dnl $ac_dummy forces splitting on constant user-supplied paths.
2861
dnl POSIX.2 word splitting is done only on the output of word expansions,
2862
dnl not every word. This closes a longstanding sh security hole.
2863
ac_dummy="ifelse([$2], , $PATH, [$2])"
2864
for ac_dir in $ac_dummy; do
2866
test -z "$ac_dir" && ac_dir=.
2867
if test -f $ac_dir/$1; then
2868
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2869
if test -n "$file_magic_test_file"; then
2870
case $deplibs_check_method in
2872
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2873
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2874
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2875
$EGREP "$file_magic_regex" > /dev/null; then
2880
*** Warning: the command libtool uses to detect shared libraries,
2881
*** $file_magic_cmd, produces output that libtool cannot recognize.
2882
*** The result is that libtool may fail to recognize shared libraries
2883
*** as such. This will affect the creation of libtool libraries that
2884
*** depend on shared libraries, but programs linked with such libtool
2885
*** libraries will work regardless of this problem. Nevertheless, you
2886
*** may want to report the problem to your system manager and/or to
2887
*** bug-libtool@gnu.org
2897
MAGIC_CMD="$lt_save_MAGIC_CMD"
2900
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2901
if test -n "$MAGIC_CMD"; then
2902
AC_MSG_RESULT($MAGIC_CMD)
2906
])# AC_PATH_TOOL_PREFIX
2911
# find a file program which can recognize a shared library
2912
AC_DEFUN([AC_PATH_MAGIC],
2913
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2914
if test -z "$lt_cv_path_MAGIC_CMD"; then
2915
if test -n "$ac_tool_prefix"; then
2916
AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2926
# find the pathname to the GNU or non-GNU linker
2927
AC_DEFUN([AC_PROG_LD],
2928
[AC_ARG_WITH([gnu-ld],
2929
[AC_HELP_STRING([--with-gnu-ld],
2930
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
2931
[test "$withval" = no || with_gnu_ld=yes],
2933
AC_REQUIRE([LT_AC_PROG_SED])dnl
2934
AC_REQUIRE([AC_PROG_CC])dnl
2935
AC_REQUIRE([AC_CANONICAL_HOST])dnl
2936
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2938
if test "$GCC" = yes; then
2939
# Check if gcc -print-prog-name=ld gives a path.
2940
AC_MSG_CHECKING([for ld used by $CC])
2943
# gcc leaves a trailing carriage return which upsets mingw
2944
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2946
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2949
# Accept absolute paths.
2950
[[\\/]]* | ?:[[\\/]]*)
2951
re_direlt='/[[^/]][[^/]]*/\.\./'
2952
# Canonicalize the pathname of ld
2953
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2954
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2955
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2957
test -z "$LD" && LD="$ac_prog"
2960
# If it fails, then pretend we aren't using GCC.
2964
# If it is relative, then search for the first ld in PATH.
2968
elif test "$with_gnu_ld" = yes; then
2969
AC_MSG_CHECKING([for GNU ld])
2971
AC_MSG_CHECKING([for non-GNU ld])
2973
AC_CACHE_VAL(lt_cv_path_LD,
2974
[if test -z "$LD"; then
2975
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2976
for ac_dir in $PATH; do
2978
test -z "$ac_dir" && ac_dir=.
2979
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2980
lt_cv_path_LD="$ac_dir/$ac_prog"
2981
# Check to see if the program is GNU ld. I'd rather use --version,
2982
# but apparently some variants of GNU ld only accept -v.
2983
# Break only if it was the GNU/non-GNU ld that we prefer.
2984
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2985
*GNU* | *'with BFD'*)
2986
test "$with_gnu_ld" != no && break
2989
test "$with_gnu_ld" != yes && break
2996
lt_cv_path_LD="$LD" # Let the user override the test with a path.
2999
if test -n "$LD"; then
3004
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3011
AC_DEFUN([AC_PROG_LD_GNU],
3012
[AC_REQUIRE([AC_PROG_EGREP])dnl
3013
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3014
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3015
case `$LD -v 2>&1 </dev/null` in
3016
*GNU* | *'with BFD'*)
3017
lt_cv_prog_gnu_ld=yes
3020
lt_cv_prog_gnu_ld=no
3023
with_gnu_ld=$lt_cv_prog_gnu_ld
3027
# AC_PROG_LD_RELOAD_FLAG
3028
# ----------------------
3029
# find reload flag for linker
3030
# -- PORTME Some linkers may need a different reload flag.
3031
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3032
[AC_CACHE_CHECK([for $LD option to reload object files],
3033
lt_cv_ld_reload_flag,
3034
[lt_cv_ld_reload_flag='-r'])
3035
reload_flag=$lt_cv_ld_reload_flag
3036
case $reload_flag in
3038
*) reload_flag=" $reload_flag" ;;
3040
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3043
if test "$GCC" = yes; then
3044
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3046
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3050
])# AC_PROG_LD_RELOAD_FLAG
3053
# AC_DEPLIBS_CHECK_METHOD
3054
# -----------------------
3055
# how to check for library dependencies
3056
# -- PORTME fill in with the dynamic library characteristics
3057
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3058
[AC_CACHE_CHECK([how to recognize dependent libraries],
3059
lt_cv_deplibs_check_method,
3060
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3061
lt_cv_file_magic_test_file=
3062
lt_cv_deplibs_check_method='unknown'
3063
# Need to set the preceding variable on all platforms that support
3064
# interlibrary dependencies.
3065
# 'none' -- dependencies not supported.
3066
# `unknown' -- same as none, but documents that we really don't know.
3067
# 'pass_all' -- all dependencies passed with no checks.
3068
# 'test_compile' -- check by making test program.
3069
# 'file_magic [[regex]]' -- check by looking for files in library path
3070
# which responds to the $file_magic_cmd with a given extended regex.
3071
# If you have `file' or equivalent on your system and you're not sure
3072
# whether `pass_all' will *always* work, you probably want this one.
3076
lt_cv_deplibs_check_method=pass_all
3080
lt_cv_deplibs_check_method=pass_all
3084
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3085
lt_cv_file_magic_cmd='/usr/bin/file -L'
3086
lt_cv_file_magic_test_file=/shlib/libc.so
3090
# func_win32_libid is a shell function defined in ltmain.sh
3091
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3092
lt_cv_file_magic_cmd='func_win32_libid'
3096
# Base MSYS/MinGW do not provide the 'file' command needed by
3097
# func_win32_libid shell function, so use a weaker test based on 'objdump',
3098
# unless we find 'file', for example because we are cross-compiling.
3099
if ( file / ) >/dev/null 2>&1; then
3100
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3101
lt_cv_file_magic_cmd='func_win32_libid'
3103
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3104
lt_cv_file_magic_cmd='$OBJDUMP -f'
3108
darwin* | rhapsody*)
3109
lt_cv_deplibs_check_method=pass_all
3112
freebsd* | dragonfly*)
3113
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3116
# Not sure whether the presence of OpenBSD here was a mistake.
3117
# Let's accept both of them until this is cleared up.
3118
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3119
lt_cv_file_magic_cmd=/usr/bin/file
3120
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3124
lt_cv_deplibs_check_method=pass_all
3129
lt_cv_deplibs_check_method=pass_all
3132
hpux10.20* | hpux11*)
3133
lt_cv_file_magic_cmd=/usr/bin/file
3136
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3137
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3140
[lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3141
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3144
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3145
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3151
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3152
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3155
irix5* | irix6* | nonstopux*)
3157
*-32|*"-32 ") libmagic=32-bit;;
3158
*-n32|*"-n32 ") libmagic=N32;;
3159
*-64|*"-64 ") libmagic=64-bit;;
3160
*) libmagic=never-match;;
3162
lt_cv_deplibs_check_method=pass_all
3165
# This must be Linux ELF.
3166
linux* | k*bsd*-gnu)
3167
lt_cv_deplibs_check_method=pass_all
3170
netbsd* | netbsdelf*-gnu)
3171
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3172
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3174
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3179
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3180
lt_cv_file_magic_cmd=/usr/bin/file
3181
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3185
lt_cv_deplibs_check_method=unknown
3189
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3190
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3192
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3196
osf3* | osf4* | osf5*)
3197
lt_cv_deplibs_check_method=pass_all
3201
lt_cv_deplibs_check_method=pass_all
3205
lt_cv_deplibs_check_method=pass_all
3209
case $host_vendor in
3211
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3212
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3215
lt_cv_deplibs_check_method=pass_all
3218
lt_cv_file_magic_cmd='/bin/file'
3219
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3222
lt_cv_file_magic_cmd='/bin/file'
3223
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3224
lt_cv_file_magic_test_file=/lib/libc.so
3227
lt_cv_deplibs_check_method=pass_all
3230
lt_cv_deplibs_check_method=pass_all
3235
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3236
lt_cv_deplibs_check_method=pass_all
3240
file_magic_cmd=$lt_cv_file_magic_cmd
3241
deplibs_check_method=$lt_cv_deplibs_check_method
3242
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3243
])# AC_DEPLIBS_CHECK_METHOD
3248
# find the pathname to a BSD-compatible name lister
3249
AC_DEFUN([AC_PROG_NM],
3250
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3251
[if test -n "$NM"; then
3252
# Let the user override the test.
3255
lt_nm_to_check="${ac_tool_prefix}nm"
3256
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3257
lt_nm_to_check="$lt_nm_to_check nm"
3259
for lt_tmp_nm in $lt_nm_to_check; do
3260
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3261
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3263
test -z "$ac_dir" && ac_dir=.
3264
tmp_nm="$ac_dir/$lt_tmp_nm"
3265
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3266
# Check to see if the nm accepts a BSD-compat flag.
3267
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3268
# nm: unknown option "B" ignored
3269
# Tru64's nm complains that /dev/null is an invalid object file
3270
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3271
*/dev/null* | *'Invalid file or object type'*)
3272
lt_cv_path_NM="$tmp_nm -B"
3276
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3278
lt_cv_path_NM="$tmp_nm -p"
3282
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3283
continue # so that we can try to find one that supports BSD flags
3292
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3300
# check for math library
3301
AC_DEFUN([AC_CHECK_LIBM],
3302
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3305
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3306
# These system don't have libm, or don't need it
3309
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3310
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3313
AC_CHECK_LIB(m, cos, LIBM="-lm")
3319
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3320
# -----------------------------------
3321
# sets LIBLTDL to the link flags for the libltdl convenience library and
3322
# LTDLINCL to the include flags for the libltdl header and adds
3323
# --enable-ltdl-convenience to the configure arguments. Note that
3324
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3325
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
3326
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3327
# (note the single quotes!). If your package is not flat and you're not
3328
# using automake, define top_builddir and top_srcdir appropriately in
3330
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3331
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3332
case $enable_ltdl_convenience in
3333
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3334
"") enable_ltdl_convenience=yes
3335
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3337
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3338
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3339
# For backwards non-gettext consistent compatibility...
3341
])# AC_LIBLTDL_CONVENIENCE
3344
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3345
# -----------------------------------
3346
# sets LIBLTDL to the link flags for the libltdl installable library and
3347
# LTDLINCL to the include flags for the libltdl header and adds
3348
# --enable-ltdl-install to the configure arguments. Note that
3349
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3350
# and an installed libltdl is not found, it is assumed to be `libltdl'.
3351
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3352
# '${top_srcdir}/' (note the single quotes!). If your package is not
3353
# flat and you're not using automake, define top_builddir and top_srcdir
3354
# appropriately in the Makefiles.
3355
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3356
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3357
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3358
AC_CHECK_LIB(ltdl, lt_dlinit,
3359
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3360
[if test x"$enable_ltdl_install" = xno; then
3361
AC_MSG_WARN([libltdl not installed, but installation disabled])
3363
enable_ltdl_install=yes
3366
if test x"$enable_ltdl_install" = x"yes"; then
3367
ac_configure_args="$ac_configure_args --enable-ltdl-install"
3368
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3369
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3371
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3375
# For backwards non-gettext consistent compatibility...
3377
])# AC_LIBLTDL_INSTALLABLE
3382
# enable support for C++ libraries
3383
AC_DEFUN([AC_LIBTOOL_CXX],
3384
[AC_REQUIRE([_LT_AC_LANG_CXX])
3390
AC_DEFUN([_LT_AC_LANG_CXX],
3391
[AC_REQUIRE([AC_PROG_CXX])
3392
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3393
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3396
# _LT_AC_PROG_CXXCPP
3397
# ------------------
3398
AC_DEFUN([_LT_AC_PROG_CXXCPP],
3400
AC_REQUIRE([AC_PROG_CXX])
3401
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3402
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3403
(test "X$CXX" != "Xg++"))) ; then
3406
])# _LT_AC_PROG_CXXCPP
3410
# enable support for Fortran 77 libraries
3411
AC_DEFUN([AC_LIBTOOL_F77],
3412
[AC_REQUIRE([_LT_AC_LANG_F77])
3418
AC_DEFUN([_LT_AC_LANG_F77],
3419
[AC_REQUIRE([AC_PROG_F77])
3420
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3426
# enable support for GCJ libraries
3427
AC_DEFUN([AC_LIBTOOL_GCJ],
3428
[AC_REQUIRE([_LT_AC_LANG_GCJ])
3434
AC_DEFUN([_LT_AC_LANG_GCJ],
3435
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3436
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3437
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3438
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3439
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3440
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3441
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3447
# enable support for Windows resource files
3448
AC_DEFUN([AC_LIBTOOL_RC],
3449
[AC_REQUIRE([LT_AC_PROG_RC])
3450
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3454
# AC_LIBTOOL_LANG_C_CONFIG
3455
# ------------------------
3456
# Ensure that the configuration vars for the C compiler are
3457
# suitably defined. Those variables are subsequently used by
3458
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3459
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3460
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3464
# Source file extension for C test sources.
3467
# Object file extension for compiled C test sources.
3469
_LT_AC_TAGVAR(objext, $1)=$objext
3471
# Code to be used in simple compile tests
3472
lt_simple_compile_test_code="int some_variable = 0;"
3474
# Code to be used in simple link tests
3475
lt_simple_link_test_code='int main(){return(0);}'
3479
# save warnings/boilerplate of simple test code
3480
_LT_COMPILER_BOILERPLATE
3481
_LT_LINKER_BOILERPLATE
3483
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3484
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3485
AC_LIBTOOL_PROG_CC_C_O($1)
3486
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3487
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3488
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3489
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3490
AC_LIBTOOL_SYS_LIB_STRIP
3491
AC_LIBTOOL_DLOPEN_SELF
3493
# Report which library types will actually be built
3494
AC_MSG_CHECKING([if libtool supports shared libraries])
3495
AC_MSG_RESULT([$can_build_shared])
3497
AC_MSG_CHECKING([whether to build shared libraries])
3498
test "$can_build_shared" = "no" && enable_shared=no
3500
# On AIX, shared libraries and static libraries use the same namespace, and
3501
# are all built from PIC.
3504
test "$enable_shared" = yes && enable_static=no
3505
if test -n "$RANLIB"; then
3506
archive_cmds="$archive_cmds~\$RANLIB \$lib"
3507
postinstall_cmds='$RANLIB $lib'
3512
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3513
test "$enable_shared" = yes && enable_static=no
3517
AC_MSG_RESULT([$enable_shared])
3519
AC_MSG_CHECKING([whether to build static libraries])
3520
# Make sure either enable_shared or enable_static is yes.
3521
test "$enable_shared" = yes || enable_static=yes
3522
AC_MSG_RESULT([$enable_static])
3524
AC_LIBTOOL_CONFIG($1)
3528
])# AC_LIBTOOL_LANG_C_CONFIG
3531
# AC_LIBTOOL_LANG_CXX_CONFIG
3532
# --------------------------
3533
# Ensure that the configuration vars for the C compiler are
3534
# suitably defined. Those variables are subsequently used by
3535
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3536
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3537
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3539
AC_REQUIRE([AC_PROG_CXX])
3540
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3542
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3543
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3544
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3545
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3546
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3547
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3548
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3549
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3550
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3551
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3552
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3553
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3554
_LT_AC_TAGVAR(module_cmds, $1)=
3555
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3556
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3557
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3558
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3559
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3560
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3562
# Dependencies to place before and after the object being linked:
3563
_LT_AC_TAGVAR(predep_objects, $1)=
3564
_LT_AC_TAGVAR(postdep_objects, $1)=
3565
_LT_AC_TAGVAR(predeps, $1)=
3566
_LT_AC_TAGVAR(postdeps, $1)=
3567
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3568
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
3570
# Source file extension for C++ test sources.
3573
# Object file extension for compiled C++ test sources.
3575
_LT_AC_TAGVAR(objext, $1)=$objext
3577
# Code to be used in simple compile tests
3578
lt_simple_compile_test_code="int some_variable = 0;"
3580
# Code to be used in simple link tests
3581
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
3583
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3586
# save warnings/boilerplate of simple test code
3587
_LT_COMPILER_BOILERPLATE
3588
_LT_LINKER_BOILERPLATE
3590
# Allow CC to be a program name with arguments.
3595
lt_save_with_gnu_ld=$with_gnu_ld
3596
lt_save_path_LD=$lt_cv_path_LD
3597
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3598
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3600
$as_unset lt_cv_prog_gnu_ld
3602
if test -n "${lt_cv_path_LDCXX+set}"; then
3603
lt_cv_path_LD=$lt_cv_path_LDCXX
3605
$as_unset lt_cv_path_LD
3607
test -z "${LDCXX+set}" || LD=$LDCXX
3610
_LT_AC_TAGVAR(compiler, $1)=$CC
3611
_LT_CC_BASENAME([$compiler])
3613
# We don't want -fno-exception wen compiling C++ code, so set the
3614
# no_builtin_flag separately
3615
if test "$GXX" = yes; then
3616
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3618
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3621
if test "$GXX" = yes; then
3622
# Set up default GNU C++ configuration
3626
# Check if GNU C++ uses GNU ld as the underlying linker, since the
3627
# archiving commands below assume that GNU ld is being used.
3628
if test "$with_gnu_ld" = yes; then
3629
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3630
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3632
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3633
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3635
# If archive_cmds runs LD, not CC, wlarc should be empty
3636
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3637
# investigate it a little bit more. (MM)
3640
# ancient GNU ld didn't support --whole-archive et. al.
3641
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3642
grep 'no-whole-archive' > /dev/null; then
3643
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3645
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3651
# A generic and very simple default shared library creation
3652
# command for GNU C++ for the case where it uses the native
3653
# linker, instead of GNU ld. If possible, this setting should
3654
# overridden to take advantage of the native linker features on
3655
# the platform it is being used on.
3656
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3659
# Commands to make compiler produce verbose output that lists
3660
# what "hidden" libraries, object files and flags are used when
3661
# linking a shared library.
3662
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3670
# PORTME: fill in a description of your system's C++ link characteristics
3671
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3672
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3675
# FIXME: insert proper C++ library support
3676
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3679
if test "$host_cpu" = ia64; then
3680
# On IA64, the linker does run time linking by default, so we don't
3681
# have to do anything special.
3682
aix_use_runtimelinking=no
3683
exp_sym_flag='-Bexport'
3686
aix_use_runtimelinking=no
3688
# Test if we are trying to use run time linking or normal
3689
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
3690
# need to do runtime linking.
3691
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3692
for ld_flag in $LDFLAGS; do
3695
aix_use_runtimelinking=yes
3703
exp_sym_flag='-bexport'
3704
no_entry_flag='-bnoentry'
3707
# When large executables or shared objects are built, AIX ld can
3708
# have problems creating the table of contents. If linking a library
3709
# or program results in "error TOC overflow" add -mminimal-toc to
3710
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3711
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3713
_LT_AC_TAGVAR(archive_cmds, $1)=''
3714
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3715
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3716
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3718
if test "$GXX" = yes; then
3719
case $host_os in aix4.[[012]]|aix4.[[012]].*)
3720
# We only want to do this on AIX 4.2 and lower, the check
3721
# below for broken collect2 doesn't work under 4.3+
3722
collect2name=`${CC} -print-prog-name=collect2`
3723
if test -f "$collect2name" && \
3724
strings "$collect2name" | grep resolve_lib_name >/dev/null
3726
# We have reworked collect2
3729
# We have old collect2
3730
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3731
# It fails to find uninstalled libraries when the uninstalled
3732
# path is not listed in the libpath. Setting hardcode_minus_L
3733
# to unsupported forces relinking
3734
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3735
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3736
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3740
shared_flag='-shared'
3741
if test "$aix_use_runtimelinking" = yes; then
3742
shared_flag="$shared_flag "'${wl}-G'
3746
if test "$host_cpu" = ia64; then
3747
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3748
# chokes on -Wl,-G. The following line is correct:
3751
if test "$aix_use_runtimelinking" = yes; then
3752
shared_flag='${wl}-G'
3754
shared_flag='${wl}-bM:SRE'
3759
# It seems that -bexpall does not export symbols beginning with
3760
# underscore (_), so it is better to generate a list of symbols to export.
3761
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3762
if test "$aix_use_runtimelinking" = yes; then
3763
# Warning - without using the other runtime loading flags (-brtl),
3764
# -berok will link without error, but may produce a broken library.
3765
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3766
# Determine the default libpath from the value encoded in an empty executable.
3767
_LT_AC_SYS_LIBPATH_AIX
3768
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3770
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3772
if test "$host_cpu" = ia64; then
3773
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3774
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3775
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
3777
# Determine the default libpath from the value encoded in an empty executable.
3778
_LT_AC_SYS_LIBPATH_AIX
3779
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3780
# Warning - without using the other run time loading flags,
3781
# -berok will link without error, but may produce a broken library.
3782
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3783
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3784
# Exported symbols can be pulled into shared objects from archives
3785
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3786
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3787
# This is similar to how AIX traditionally builds its shared libraries.
3788
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3794
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3795
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3796
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3797
# support --undefined. This deserves some investigation. FIXME
3798
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3800
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3805
case $cc_basename in
3807
# FIXME: insert proper C++ library support
3808
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3813
cygwin* | mingw* | pw32*)
3814
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3815
# as there is no search path for DLLs.
3816
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3817
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3818
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3819
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3821
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3822
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3823
# If the export-symbols file already is a .def file (1st line
3824
# is EXPORTS), use it as is; otherwise, prepend...
3825
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3826
cp $export_symbols $output_objdir/$soname.def;
3828
echo EXPORTS > $output_objdir/$soname.def;
3829
cat $export_symbols >> $output_objdir/$soname.def;
3831
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3833
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3836
darwin* | rhapsody*)
3837
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3838
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3839
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3840
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3841
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3842
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3843
_LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3844
if test "$GXX" = yes ; then
3845
output_verbose_link_cmd='echo'
3846
_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}"
3847
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3848
_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}"
3849
_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}"
3850
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3851
_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}"
3852
_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}"
3855
case $cc_basename in
3857
output_verbose_link_cmd='echo'
3858
_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'
3859
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3860
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3861
_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}'
3862
_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}'
3865
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3872
case $cc_basename in
3874
# FIXME: insert proper C++ library support
3875
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3878
# Green Hills C++ Compiler
3879
# FIXME: insert proper C++ library support
3880
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3883
# FIXME: insert proper C++ library support
3884
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3889
# C++ shared libraries reported to be fairly broken before switch to ELF
3890
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3893
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3895
freebsd* | dragonfly*)
3896
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3898
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3903
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3904
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3905
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3906
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3907
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3908
# but as the default
3909
# location of the library.
3911
case $cc_basename in
3913
# FIXME: insert proper C++ library support
3914
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3917
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3918
# Commands to make compiler produce verbose output that lists
3919
# what "hidden" libraries, object files and flags are used when
3920
# linking a shared library.
3922
# There doesn't appear to be a way to prevent this compiler from
3923
# explicitly linking system object files so we need to strip them
3924
# from the output so that they don't get included in the library
3926
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3929
if test "$GXX" = yes; then
3930
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3932
# FIXME: insert proper C++ library support
3933
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3939
if test $with_gnu_ld = no; then
3940
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3941
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3946
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3952
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3953
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3956
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3957
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3958
# but as the default
3959
# location of the library.
3963
case $cc_basename in
3965
# FIXME: insert proper C++ library support
3966
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3971
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3974
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3977
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3980
# Commands to make compiler produce verbose output that lists
3981
# what "hidden" libraries, object files and flags are used when
3982
# linking a shared library.
3984
# There doesn't appear to be a way to prevent this compiler from
3985
# explicitly linking system object files so we need to strip them
3986
# from the output so that they don't get included in the library
3988
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3991
if test "$GXX" = yes; then
3992
if test $with_gnu_ld = no; then
3995
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3998
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4001
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4006
# FIXME: insert proper C++ library support
4007
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4013
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4014
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4015
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4016
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4017
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4018
# Instead, shared libraries are loaded at an image base (0x10000000 by
4019
# default) and relocated if they conflict, which is a slow very memory
4020
# consuming and fragmenting process. To avoid this, we pick a random,
4021
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4022
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
4023
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4024
_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'
4027
case $cc_basename in
4030
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4032
# Archives containing C++ object files must be created using
4033
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
4034
# necessary to make sure instantiated templates are included
4036
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4039
if test "$GXX" = yes; then
4040
if test "$with_gnu_ld" = no; then
4041
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4043
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
4046
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4049
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4050
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4052
linux* | k*bsd*-gnu)
4053
case $cc_basename in
4055
# Kuck and Associates, Inc. (KAI) C++ Compiler
4057
# KCC will only create a shared library if the output file
4058
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4059
# to its proper name (with version) after linking.
4060
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4061
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
4062
# Commands to make compiler produce verbose output that lists
4063
# what "hidden" libraries, object files and flags are used when
4064
# linking a shared library.
4066
# There doesn't appear to be a way to prevent this compiler from
4067
# explicitly linking system object files so we need to strip them
4068
# from the output so that they don't get included in the library
4070
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4072
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4073
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4075
# Archives containing C++ object files must be created using
4076
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4077
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4082
# version 8.0 and above of icpc choke on multiply defined symbols
4083
# if we add $predep_objects and $postdep_objects, however 7.1 and
4084
# earlier do not add the objects themselves.
4085
case `$CC -V 2>&1` in
4087
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4088
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4090
*) # Version 8.0 or newer
4093
ia64*) tmp_idyn=' -i_dynamic';;
4095
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4096
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4099
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4100
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4101
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4102
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4105
# Portland Group C++ compiler
4106
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4107
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
4109
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4110
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4111
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4115
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4116
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
4118
runpath_var=LD_RUN_PATH
4119
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4120
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4122
# Commands to make compiler produce verbose output that lists
4123
# what "hidden" libraries, object files and flags are used when
4124
# linking a shared library.
4126
# There doesn't appear to be a way to prevent this compiler from
4127
# explicitly linking system object files so we need to strip them
4128
# from the output so that they don't get included in the library
4130
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'
4133
case `$CC -V 2>&1 | sed 5q` in
4136
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4137
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4138
_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'
4139
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4140
_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'
4142
# Not sure whether something based on
4143
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
4145
output_verbose_link_cmd='echo'
4147
# Archives containing C++ object files must be created using
4148
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4149
# necessary to make sure instantiated templates are included
4151
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4158
# FIXME: insert proper C++ library support
4159
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4162
# FIXME: insert proper C++ library support
4163
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4166
case $cc_basename in
4168
# FIXME: insert proper C++ library support
4169
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4172
# FIXME: insert proper C++ library support
4173
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4177
netbsd* | netbsdelf*-gnu)
4178
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4179
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4181
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4182
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4183
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4185
# Workaround some broken pre-1.5 toolchains
4186
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4189
# C++ shared libraries are fairly broken
4190
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4193
if test -f /usr/libexec/ld.so; then
4194
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4195
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4196
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4197
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4198
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4199
_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'
4200
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4201
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4203
output_verbose_link_cmd='echo'
4205
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4209
case $cc_basename in
4211
# Kuck and Associates, Inc. (KAI) C++ Compiler
4213
# KCC will only create a shared library if the output file
4214
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4215
# to its proper name (with version) after linking.
4216
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4218
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4219
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4221
# Archives containing C++ object files must be created using
4222
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4223
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4227
# Rational C++ 2.4.1
4228
# FIXME: insert proper C++ library support
4229
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4232
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4233
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4235
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4236
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4238
# Commands to make compiler produce verbose output that lists
4239
# what "hidden" libraries, object files and flags are used when
4240
# linking a shared library.
4242
# There doesn't appear to be a way to prevent this compiler from
4243
# explicitly linking system object files so we need to strip them
4244
# from the output so that they don't get included in the library
4246
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4249
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4250
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4251
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4253
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4254
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4256
# Commands to make compiler produce verbose output that lists
4257
# what "hidden" libraries, object files and flags are used when
4258
# linking a shared library.
4259
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4262
# FIXME: insert proper C++ library support
4263
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4269
case $cc_basename in
4271
# Kuck and Associates, Inc. (KAI) C++ Compiler
4273
# KCC will only create a shared library if the output file
4274
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4275
# to its proper name (with version) after linking.
4276
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
4278
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4279
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4281
# Archives containing C++ object files must be created using
4282
# the KAI C++ compiler.
4283
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4286
# Rational C++ 2.4.1
4287
# FIXME: insert proper C++ library support
4288
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4291
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4292
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4293
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4294
echo "-hidden">> $lib.exp~
4295
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
4298
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4299
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4301
# Commands to make compiler produce verbose output that lists
4302
# what "hidden" libraries, object files and flags are used when
4303
# linking a shared library.
4305
# There doesn't appear to be a way to prevent this compiler from
4306
# explicitly linking system object files so we need to strip them
4307
# from the output so that they don't get included in the library
4309
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4312
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4313
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4314
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4316
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4317
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4319
# Commands to make compiler produce verbose output that lists
4320
# what "hidden" libraries, object files and flags are used when
4321
# linking a shared library.
4322
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4325
# FIXME: insert proper C++ library support
4326
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4332
# FIXME: insert proper C++ library support
4333
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4336
case $cc_basename in
4339
# FIXME: insert proper C++ library support
4340
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4344
# FIXME: insert proper C++ library support
4345
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4348
# FIXME: insert proper C++ library support
4349
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4354
case $cc_basename in
4356
# Sun C++ 4.2, 5.x and Centerline C++
4357
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4358
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4359
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4360
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4361
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4363
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4364
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4366
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4368
# The compiler driver will combine and reorder linker options,
4369
# but understands `-z linker_flag'.
4370
# Supported since Solaris 2.6 (maybe 2.5.1?)
4371
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4374
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4376
output_verbose_link_cmd='echo'
4378
# Archives containing C++ object files must be created using
4379
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4380
# necessary to make sure instantiated templates are included
4382
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4385
# Green Hills C++ Compiler
4386
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4388
# The C++ compiler must be used to create the archive.
4389
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4392
# GNU C++ compiler with Solaris linker
4393
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4394
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4395
if $CC --version | grep -v '^2\.7' > /dev/null; then
4396
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4397
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4398
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4400
# Commands to make compiler produce verbose output that lists
4401
# what "hidden" libraries, object files and flags are used when
4402
# linking a shared library.
4403
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4405
# g++ 2.7 appears to require `-G' NOT `-shared' on this
4407
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4408
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4409
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4411
# Commands to make compiler produce verbose output that lists
4412
# what "hidden" libraries, object files and flags are used when
4413
# linking a shared library.
4414
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4417
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4419
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4421
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4428
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4429
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4430
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4431
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4432
runpath_var='LD_RUN_PATH'
4434
case $cc_basename in
4436
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4437
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4440
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4441
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4445
sysv5* | sco3.2v5* | sco5v6*)
4446
# Note: We can NOT use -z defs as we might desire, because we do not
4447
# link with -lc, and that would cause any symbols used from libc to
4448
# always be unresolved, which means just about no library would
4449
# ever link correctly. If we're not using GNU ld we use -z text
4450
# though, which does catch some bad symbols but isn't as heavy-handed
4452
# For security reasons, it is highly recommended that you always
4453
# use absolute paths for naming shared libraries, and exclude the
4454
# DT_RUNPATH tag from executables and libraries. But doing so
4455
# requires that you compile everything twice, which is a pain.
4456
# So that behaviour is only enabled if SCOABSPATH is set to a
4457
# non-empty value in the environment. Most likely only useful for
4458
# creating official distributions of packages.
4459
# This is a hack until libtool officially supports absolute path
4460
# names for shared libraries.
4461
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4462
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4463
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4464
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4465
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4466
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4467
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4468
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4469
runpath_var='LD_RUN_PATH'
4471
case $cc_basename in
4473
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4474
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4477
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4478
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4483
case $cc_basename in
4485
# NonStop-UX NCC 3.20
4486
# FIXME: insert proper C++ library support
4487
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4490
# FIXME: insert proper C++ library support
4491
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4496
# FIXME: insert proper C++ library support
4497
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4500
# FIXME: insert proper C++ library support
4501
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4504
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4505
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4507
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4508
_LT_AC_TAGVAR(LD, $1)="$LD"
4510
AC_LIBTOOL_POSTDEP_PREDEP($1)
4511
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4512
AC_LIBTOOL_PROG_CC_C_O($1)
4513
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4514
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4515
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4516
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4518
AC_LIBTOOL_CONFIG($1)
4525
with_gnu_ldcxx=$with_gnu_ld
4526
with_gnu_ld=$lt_save_with_gnu_ld
4527
lt_cv_path_LDCXX=$lt_cv_path_LD
4528
lt_cv_path_LD=$lt_save_path_LD
4529
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4530
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4531
])# AC_LIBTOOL_LANG_CXX_CONFIG
4533
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4534
# ------------------------------------
4535
# Figure out "hidden" library dependencies from verbose
4536
# compiler output when linking a shared library.
4537
# Parse the compiler output and extract the necessary
4538
# objects, libraries and library flags.
4539
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
4540
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4541
dnl we can't use the lt_simple_compile_test_code here,
4542
dnl because it contains code intended for an executable,
4543
dnl not a library. It's possible we should let each
4544
dnl tag define a new lt_????_link_test_code variable,
4545
dnl but it's only used here...
4546
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4548
void foo (void) { a = 0; }
4550
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4554
Foo (void) { a = 0; }
4559
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4567
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4570
public void bar (void) {
4576
dnl Parse the compiler output and extract the necessary
4577
dnl objects, libraries and library flags.
4578
if AC_TRY_EVAL(ac_compile); then
4579
# Parse the compiler output and extract the necessary
4580
# objects, libraries and library flags.
4582
# Sentinel used to keep track of whether or not we are before
4583
# the conftest object file.
4584
pre_test_object_deps_done=no
4586
# The `*' in the case matches for architectures that use `case' in
4587
# $output_verbose_cmd can trigger glob expansion during the loop
4588
# eval without this substitution.
4589
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4591
for p in `eval $output_verbose_link_cmd`; do
4595
# Some compilers place space between "-{L,R}" and the path.
4598
|| test $p = "-R"; then
4605
if test "$pre_test_object_deps_done" = no; then
4608
# Internal compiler library paths should come after those
4609
# provided the user. The postdeps already come after the
4610
# user supplied libs so there is no need to process them.
4611
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4612
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4614
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4617
# The "-l" case would never come before the object being
4618
# linked, so don't bother handling this case.
4621
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4622
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4624
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4630
# This assumes that the test object file only shows up
4631
# once in the compiler output.
4632
if test "$p" = "conftest.$objext"; then
4633
pre_test_object_deps_done=yes
4637
if test "$pre_test_object_deps_done" = no; then
4638
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4639
_LT_AC_TAGVAR(predep_objects, $1)="$p"
4641
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4644
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4645
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
4647
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4652
*) ;; # Ignore the rest.
4660
echo "libtool.m4: error: problem compiling $1 test program"
4663
$rm -f confest.$objext
4665
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4666
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4667
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4670
# PORTME: override above test on systems where it is broken
4674
# Interix 3.5 installs completely hosed .la files for C++, so rather than
4675
# hack all around it, let's just trust "g++" to DTRT.
4676
_LT_AC_TAGVAR(predep_objects,$1)=
4677
_LT_AC_TAGVAR(postdep_objects,$1)=
4678
_LT_AC_TAGVAR(postdeps,$1)=
4682
case `$CC -V 2>&1 | sed 5q` in
4686
# The more standards-conforming stlport4 library is
4687
# incompatible with the Cstd library. Avoid specifying
4688
# it if it's in CXXFLAGS. Ignore libCrun as
4689
# -library=stlport4 depends on it.
4690
case " $CXX $CXXFLAGS " in
4691
*" -library=stlport4 "*)
4692
solaris_use_stlport4=yes
4695
if test "$solaris_use_stlport4" != yes; then
4696
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4703
case $cc_basename in
4705
# The more standards-conforming stlport4 library is
4706
# incompatible with the Cstd library. Avoid specifying
4707
# it if it's in CXXFLAGS. Ignore libCrun as
4708
# -library=stlport4 depends on it.
4709
case " $CXX $CXXFLAGS " in
4710
*" -library=stlport4 "*)
4711
solaris_use_stlport4=yes
4715
# Adding this requires a known-good setup of shared libraries for
4716
# Sun compiler versions before 5.6, else PIC objects from an old
4717
# archive will be linked into the output, leading to subtle bugs.
4718
if test "$solaris_use_stlport4" != yes; then
4719
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4726
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4727
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4729
])# AC_LIBTOOL_POSTDEP_PREDEP
4731
# AC_LIBTOOL_LANG_F77_CONFIG
4732
# --------------------------
4733
# Ensure that the configuration vars for the C compiler are
4734
# suitably defined. Those variables are subsequently used by
4735
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4736
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4737
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4738
[AC_REQUIRE([AC_PROG_F77])
4739
AC_LANG_PUSH(Fortran 77)
4741
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4742
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4743
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4744
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4745
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4746
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4747
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4748
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4749
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4750
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4751
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4752
_LT_AC_TAGVAR(module_cmds, $1)=
4753
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4754
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4755
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4756
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4757
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4758
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4760
# Source file extension for f77 test sources.
4763
# Object file extension for compiled f77 test sources.
4765
_LT_AC_TAGVAR(objext, $1)=$objext
4767
# Code to be used in simple compile tests
4768
lt_simple_compile_test_code="\
4774
# Code to be used in simple link tests
4775
lt_simple_link_test_code="\
4780
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4783
# save warnings/boilerplate of simple test code
4784
_LT_COMPILER_BOILERPLATE
4785
_LT_LINKER_BOILERPLATE
4787
# Allow CC to be a program name with arguments.
4791
_LT_AC_TAGVAR(compiler, $1)=$CC
4792
_LT_CC_BASENAME([$compiler])
4794
AC_MSG_CHECKING([if libtool supports shared libraries])
4795
AC_MSG_RESULT([$can_build_shared])
4797
AC_MSG_CHECKING([whether to build shared libraries])
4798
test "$can_build_shared" = "no" && enable_shared=no
4800
# On AIX, shared libraries and static libraries use the same namespace, and
4801
# are all built from PIC.
4804
test "$enable_shared" = yes && enable_static=no
4805
if test -n "$RANLIB"; then
4806
archive_cmds="$archive_cmds~\$RANLIB \$lib"
4807
postinstall_cmds='$RANLIB $lib'
4811
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4812
test "$enable_shared" = yes && enable_static=no
4816
AC_MSG_RESULT([$enable_shared])
4818
AC_MSG_CHECKING([whether to build static libraries])
4819
# Make sure either enable_shared or enable_static is yes.
4820
test "$enable_shared" = yes || enable_static=yes
4821
AC_MSG_RESULT([$enable_static])
4823
_LT_AC_TAGVAR(GCC, $1)="$G77"
4824
_LT_AC_TAGVAR(LD, $1)="$LD"
4826
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4827
AC_LIBTOOL_PROG_CC_C_O($1)
4828
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4829
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4830
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4831
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4833
AC_LIBTOOL_CONFIG($1)
4837
])# AC_LIBTOOL_LANG_F77_CONFIG
4840
# AC_LIBTOOL_LANG_GCJ_CONFIG
4841
# --------------------------
4842
# Ensure that the configuration vars for the C compiler are
4843
# suitably defined. Those variables are subsequently used by
4844
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4845
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4846
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4849
# Source file extension for Java test sources.
4852
# Object file extension for compiled Java test sources.
4854
_LT_AC_TAGVAR(objext, $1)=$objext
4856
# Code to be used in simple compile tests
4857
lt_simple_compile_test_code="class foo {}"
4859
# Code to be used in simple link tests
4860
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4862
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4865
# save warnings/boilerplate of simple test code
4866
_LT_COMPILER_BOILERPLATE
4867
_LT_LINKER_BOILERPLATE
4869
# Allow CC to be a program name with arguments.
4873
_LT_AC_TAGVAR(compiler, $1)=$CC
4874
_LT_CC_BASENAME([$compiler])
4876
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4877
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4879
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4881
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4882
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4883
AC_LIBTOOL_PROG_CC_C_O($1)
4884
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4885
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4886
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4887
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4889
AC_LIBTOOL_CONFIG($1)
4893
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4896
# AC_LIBTOOL_LANG_RC_CONFIG
4897
# -------------------------
4898
# Ensure that the configuration vars for the Windows resource compiler are
4899
# suitably defined. Those variables are subsequently used by
4900
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4901
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4902
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4905
# Source file extension for RC test sources.
4908
# Object file extension for compiled RC test sources.
4910
_LT_AC_TAGVAR(objext, $1)=$objext
4912
# Code to be used in simple compile tests
4913
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4915
# Code to be used in simple link tests
4916
lt_simple_link_test_code="$lt_simple_compile_test_code"
4918
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4921
# save warnings/boilerplate of simple test code
4922
_LT_COMPILER_BOILERPLATE
4923
_LT_LINKER_BOILERPLATE
4925
# Allow CC to be a program name with arguments.
4929
_LT_AC_TAGVAR(compiler, $1)=$CC
4930
_LT_CC_BASENAME([$compiler])
4931
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4933
AC_LIBTOOL_CONFIG($1)
4937
])# AC_LIBTOOL_LANG_RC_CONFIG
4940
# AC_LIBTOOL_CONFIG([TAGNAME])
4941
# ----------------------------
4942
# If TAGNAME is not passed, then create an initial libtool script
4943
# with a default configuration from the untagged config vars. Otherwise
4944
# add code to config.status for appending the configuration named by
4945
# TAGNAME from the matching tagged config vars.
4946
AC_DEFUN([AC_LIBTOOL_CONFIG],
4947
[# The else clause should only fire when bootstrapping the
4948
# libtool distribution, otherwise you forgot to ship ltmain.sh
4949
# with your package, and you will get complaints that there are
4950
# no rules to generate ltmain.sh.
4951
if test -f "$ltmain"; then
4952
# See if we are running on zsh, and set the options which allow our commands through
4953
# without removal of \ escapes.
4954
if test -n "${ZSH_VERSION+set}" ; then
4955
setopt NO_GLOB_SUBST
4957
# Now quote all the things that may contain metacharacters while being
4958
# careful not to overquote the AC_SUBSTed values. We take copies of the
4959
# variables and quote the copies for generation of the libtool script.
4960
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4962
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4963
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4964
deplibs_check_method reload_flag reload_cmds need_locks \
4965
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4966
lt_cv_sys_global_symbol_to_c_name_address \
4967
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4968
old_postinstall_cmds old_postuninstall_cmds \
4969
_LT_AC_TAGVAR(compiler, $1) \
4970
_LT_AC_TAGVAR(CC, $1) \
4971
_LT_AC_TAGVAR(LD, $1) \
4972
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4973
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4974
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4975
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4976
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4977
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4978
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4979
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4980
_LT_AC_TAGVAR(old_archive_cmds, $1) \
4981
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4982
_LT_AC_TAGVAR(predep_objects, $1) \
4983
_LT_AC_TAGVAR(postdep_objects, $1) \
4984
_LT_AC_TAGVAR(predeps, $1) \
4985
_LT_AC_TAGVAR(postdeps, $1) \
4986
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4987
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4988
_LT_AC_TAGVAR(archive_cmds, $1) \
4989
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4990
_LT_AC_TAGVAR(postinstall_cmds, $1) \
4991
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
4992
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4993
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
4994
_LT_AC_TAGVAR(no_undefined_flag, $1) \
4995
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
4996
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4997
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4998
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4999
_LT_AC_TAGVAR(hardcode_automatic, $1) \
5000
_LT_AC_TAGVAR(module_cmds, $1) \
5001
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
5002
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
5003
_LT_AC_TAGVAR(fix_srcfile_path, $1) \
5004
_LT_AC_TAGVAR(exclude_expsyms, $1) \
5005
_LT_AC_TAGVAR(include_expsyms, $1); do
5008
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
5009
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
5010
_LT_AC_TAGVAR(archive_cmds, $1) | \
5011
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
5012
_LT_AC_TAGVAR(module_cmds, $1) | \
5013
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5014
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5015
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5016
extract_expsyms_cmds | reload_cmds | finish_cmds | \
5017
postinstall_cmds | postuninstall_cmds | \
5018
old_postinstall_cmds | old_postuninstall_cmds | \
5019
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5020
# Double-quote double-evaled strings.
5021
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5024
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5030
*'\[$]0 --fallback-echo"')
5031
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5036
[cfgfile="${ofile}T"
5037
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5039
AC_MSG_NOTICE([creating $ofile])],
5042
cat <<__EOF__ >> "$cfgfile"
5046
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5047
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5048
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5050
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
5051
# Free Software Foundation, Inc.
5053
# This file is part of GNU Libtool:
5054
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5056
# This program is free software; you can redistribute it and/or modify
5057
# it under the terms of the GNU General Public License as published by
5058
# the Free Software Foundation; either version 2 of the License, or
5059
# (at your option) any later version.
5061
# This program is distributed in the hope that it will be useful, but
5062
# WITHOUT ANY WARRANTY; without even the implied warranty of
5063
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5064
# General Public License for more details.
5066
# You should have received a copy of the GNU General Public License
5067
# along with this program; if not, write to the Free Software
5068
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5070
# As a special exception to the GNU General Public License, if you
5071
# distribute this file as part of a program that contains a
5072
# configuration script generated by Autoconf, you may include it under
5073
# the same distribution terms that you use for the rest of that program.
5075
# A sed program that does not truncate output.
5078
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5079
Xsed="$SED -e 1s/^X//"
5081
# The HP-UX ksh and POSIX shell print the target directory to stdout
5083
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5085
# The names of the tagged configurations supported by this script.
5088
# ### BEGIN LIBTOOL CONFIG],
5089
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5091
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5093
# Shell to use when invoking shell scripts.
5096
# Whether or not to build shared libraries.
5097
build_libtool_libs=$enable_shared
5099
# Whether or not to build static libraries.
5100
build_old_libs=$enable_static
5102
# Whether or not to add -lc for building shared libraries.
5103
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5105
# Whether or not to disallow shared libs when runtime libs are static
5106
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5108
# Whether or not to optimize for fast installation.
5109
fast_install=$enable_fast_install
5112
host_alias=$host_alias
5117
build_alias=$build_alias
5121
# An echo program that does not interpret backslashes.
5126
AR_FLAGS=$lt_AR_FLAGS
5131
# LTCC compiler flags.
5132
LTCFLAGS=$lt_LTCFLAGS
5134
# A language-specific compiler.
5135
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5137
# Is the compiler the GNU C compiler?
5138
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5143
# The linker used to build libraries.
5144
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5146
# Whether we need hard or soft links.
5149
# A BSD-compatible nm program.
5152
# A symbol stripping program
5155
# Used to examine libraries when file_magic_cmd begins "file"
5156
MAGIC_CMD=$MAGIC_CMD
5158
# Used on cygwin: DLL creation program.
5161
# Used on cygwin: object dumper.
5164
# Used on cygwin: assembler.
5167
# The name of the directory that contains temporary libtool files.
5170
# How to create reloadable object files.
5171
reload_flag=$lt_reload_flag
5172
reload_cmds=$lt_reload_cmds
5174
# How to pass a linker flag through the compiler.
5175
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5177
# Object file suffix (normally "o").
5180
# Old archive suffix (normally "a").
5183
# Shared library suffix (normally ".so").
5184
shrext_cmds='$shrext_cmds'
5186
# Executable file suffix (normally "").
5189
# Additional compiler flags for building library objects.
5190
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5193
# What is the maximum length of a command?
5194
max_cmd_len=$lt_cv_sys_max_cmd_len
5196
# Does compiler simultaneously support -c and -o options?
5197
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5199
# Must we lock files when doing compilation?
5200
need_locks=$lt_need_locks
5202
# Do we need the lib prefix for modules?
5203
need_lib_prefix=$need_lib_prefix
5205
# Do we need a version for libraries?
5206
need_version=$need_version
5208
# Whether dlopen is supported.
5209
dlopen_support=$enable_dlopen
5211
# Whether dlopen of programs is supported.
5212
dlopen_self=$enable_dlopen_self
5214
# Whether dlopen of statically linked programs is supported.
5215
dlopen_self_static=$enable_dlopen_self_static
5217
# Compiler flag to prevent dynamic linking.
5218
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5220
# Compiler flag to turn off builtin functions.
5221
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5223
# Compiler flag to allow reflexive dlopens.
5224
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5226
# Compiler flag to generate shared objects directly from archives.
5227
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5229
# Compiler flag to generate thread-safe objects.
5230
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5232
# Library versioning type.
5233
version_type=$version_type
5235
# Format of library name prefix.
5236
libname_spec=$lt_libname_spec
5238
# List of archive names. First name is the real one, the rest are links.
5239
# The last name is the one that the linker finds with -lNAME.
5240
library_names_spec=$lt_library_names_spec
5242
# The coded name of the library, if different from the real name.
5243
soname_spec=$lt_soname_spec
5245
# Commands used to build and install an old-style archive.
5247
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5248
old_postinstall_cmds=$lt_old_postinstall_cmds
5249
old_postuninstall_cmds=$lt_old_postuninstall_cmds
5251
# Create an old-style archive from a shared archive.
5252
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5254
# Create a temporary old-style archive to link instead of a shared archive.
5255
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5257
# Commands used to build and install a shared archive.
5258
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5259
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5260
postinstall_cmds=$lt_postinstall_cmds
5261
postuninstall_cmds=$lt_postuninstall_cmds
5263
# Commands used to build a loadable module (assumed same as above if empty)
5264
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5265
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5267
# Commands to strip libraries.
5268
old_striplib=$lt_old_striplib
5269
striplib=$lt_striplib
5271
# Dependencies to place before the objects being linked to create a
5273
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5275
# Dependencies to place after the objects being linked to create a
5277
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5279
# Dependencies to place before the objects being linked to create a
5281
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5283
# Dependencies to place after the objects being linked to create a
5285
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5287
# The directories searched by this compiler when creating a shared
5289
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
5291
# The library search path used internally by the compiler when linking
5293
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5295
# Method to check whether dependent libraries are shared objects.
5296
deplibs_check_method=$lt_deplibs_check_method
5298
# Command to use when deplibs_check_method == file_magic.
5299
file_magic_cmd=$lt_file_magic_cmd
5301
# Flag that allows shared libraries with undefined symbols to be built.
5302
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5304
# Flag that forces no undefined symbols.
5305
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5307
# Commands used to finish a libtool library installation in a directory.
5308
finish_cmds=$lt_finish_cmds
5310
# Same as above, but a single script fragment to be evaled but not shown.
5311
finish_eval=$lt_finish_eval
5313
# Take the output of nm and produce a listing of raw symbols and C names.
5314
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5316
# Transform the output of nm in a proper C declaration
5317
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5319
# Transform the output of nm in a C name address pair
5320
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5322
# This is the shared library runtime path variable.
5323
runpath_var=$runpath_var
5325
# This is the shared library path variable.
5326
shlibpath_var=$shlibpath_var
5328
# Is shlibpath searched before the hard-coded library search path?
5329
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5331
# How to hardcode a shared library path into an executable.
5332
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5334
# Whether we should hardcode library paths into libraries.
5335
hardcode_into_libs=$hardcode_into_libs
5337
# Flag to hardcode \$libdir into a binary during linking.
5338
# This must work even if \$libdir does not exist.
5339
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5341
# If ld is used when linking, flag to hardcode \$libdir into
5342
# a binary during linking. This must work even if \$libdir does
5344
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5346
# Whether we need a single -rpath flag with a separated argument.
5347
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5349
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5351
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5353
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5355
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5357
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5358
# the resulting binary.
5359
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5361
# Set to yes if building a shared library automatically hardcodes DIR into the library
5362
# and all subsequent libraries and executables linked against it.
5363
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5365
# Variables whose values should be saved in libtool wrapper scripts and
5366
# restored at relink time.
5367
variables_saved_for_relink="$variables_saved_for_relink"
5369
# Whether libtool must link a program against all its dependency libraries.
5370
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5372
# Compile-time system search path for libraries
5373
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5375
# Run-time system search path for libraries
5376
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5378
# Fix the shell variable \$srcfile for the compiler.
5379
fix_srcfile_path=$lt_fix_srcfile_path
5381
# Set to yes if exported symbols are required.
5382
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5384
# The commands to list exported symbols.
5385
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5387
# The commands to extract the exported symbol list from a shared archive.
5388
extract_expsyms_cmds=$lt_extract_expsyms_cmds
5390
# Symbols that should not be listed in the preloaded symbols.
5391
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5393
# Symbols that must always be exported.
5394
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5397
[# ### END LIBTOOL CONFIG],
5398
[# ### END LIBTOOL TAG CONFIG: $tagname])
5405
cat <<\EOF >> "$cfgfile"
5407
# AIX sometimes has problems with the GCC collect2 program. For some
5408
# reason, if we set the COLLECT_NAMES environment variable, the problems
5409
# vanish in a puff of smoke.
5410
if test "X${COLLECT_NAMES+set}" != Xset; then
5412
export COLLECT_NAMES
5418
# We use sed instead of cat because bash on DJGPP gets confused if
5419
# if finds mixed CR/LF and LF-only lines. Since sed operates in
5420
# text mode, it properly converts lines to CR/LF. This bash problem
5421
# is reportedly fixed, but why not run on old versions too?
5422
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5424
mv -f "$cfgfile" "$ofile" || \
5425
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5429
# If there is no Makefile yet, we rely on a make rule to execute
5430
# `config.status --recheck' to rerun these tests and create the
5431
# libtool script then.
5432
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5433
if test -f "$ltmain_in"; then
5434
test -f Makefile && make "$ltmain"
5437
])# AC_LIBTOOL_CONFIG
5440
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5441
# -------------------------------------------
5442
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5443
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5445
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5447
if test "$GCC" = yes; then
5448
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5450
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5451
lt_cv_prog_compiler_rtti_exceptions,
5452
[-fno-rtti -fno-exceptions], [],
5453
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5455
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5458
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5459
# ---------------------------------
5460
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5461
[AC_REQUIRE([AC_CANONICAL_HOST])
5462
AC_REQUIRE([LT_AC_PROG_SED])
5463
AC_REQUIRE([AC_PROG_NM])
5464
AC_REQUIRE([AC_OBJEXT])
5465
# Check for command to grab the raw symbol name followed by C symbol from nm.
5466
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5467
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5469
# These are sane defaults that work on at least a few old systems.
5470
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5472
# Character class describing NM global symbol codes.
5473
symcode='[[BCDEGRST]]'
5475
# Regexp to match symbols that can be accessed directly from C.
5476
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5478
# Transform an extracted symbol line into a proper C declaration
5479
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5481
# Transform an extracted symbol line into symbol name and symbol address
5482
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5484
# Define system-specific variables.
5489
cygwin* | mingw* | pw32*)
5490
symcode='[[ABCDGISTW]]'
5492
hpux*) # Its linker distinguishes data from code symbols
5493
if test "$host_cpu" = ia64; then
5494
symcode='[[ABCDEGRST]]'
5496
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5497
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5499
linux* | k*bsd*-gnu)
5500
if test "$host_cpu" = ia64; then
5501
symcode='[[ABCDGIRSTW]]'
5502
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5503
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5507
symcode='[[BCDEGRST]]'
5510
symcode='[[BCDEGQRST]]'
5521
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5525
symcode='[[DFNSTU]]'
5529
# Handle CRLF in mingw tool chain
5533
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5537
# If we're using GNU nm, then use its standard symbol codes.
5538
case `$NM -V 2>&1` in
5539
*GNU* | *'with BFD'*)
5540
symcode='[[ABCDGIRSTW]]' ;;
5543
# Try without a prefix undercore, then with it.
5544
for ac_symprfx in "" "_"; do
5546
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5547
symxfrm="\\1 $ac_symprfx\\2 \\2"
5549
# Write the raw and C identifiers.
5550
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5552
# Check to see that the pipe works correctly.
5556
cat > conftest.$ac_ext <<EOF
5561
void nm_test_func(){}
5565
int main(){nm_test_var='a';nm_test_func();return(0);}
5568
if AC_TRY_EVAL(ac_compile); then
5569
# Now try to grab the symbols.
5571
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
5572
# Try sorting and uniquifying the output.
5573
if sort "$nlist" | uniq > "$nlist"T; then
5574
mv -f "$nlist"T "$nlist"
5579
# Make sure that we snagged all the symbols we need.
5580
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5581
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5582
cat <<EOF > conftest.$ac_ext
5588
# Now generate the symbol file.
5589
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5591
cat <<EOF >> conftest.$ac_ext
5592
#if defined (__STDC__) && __STDC__
5593
# define lt_ptr_t void *
5595
# define lt_ptr_t char *
5599
/* The mapping between symbol names and symbols. */
5604
lt_preloaded_symbols[[]] =
5607
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5608
cat <<\EOF >> conftest.$ac_ext
5616
# Now try linking the two files.
5617
mv conftest.$ac_objext conftstm.$ac_objext
5618
lt_save_LIBS="$LIBS"
5619
lt_save_CFLAGS="$CFLAGS"
5620
LIBS="conftstm.$ac_objext"
5621
CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5622
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5625
LIBS="$lt_save_LIBS"
5626
CFLAGS="$lt_save_CFLAGS"
5628
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5631
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5634
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5637
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5638
cat conftest.$ac_ext >&5
5640
rm -rf conftest* conftst*
5642
# Do not use the global_symbol_pipe unless it works.
5643
if test "$pipe_works" = yes; then
5646
lt_cv_sys_global_symbol_pipe=
5650
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5651
lt_cv_sys_global_symbol_to_cdecl=
5653
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5654
AC_MSG_RESULT(failed)
5658
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5661
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5662
# ---------------------------------------
5663
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5664
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5665
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5666
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
5668
AC_MSG_CHECKING([for $compiler option to produce PIC])
5670
# C++ specific cases for pic, static, wl, etc.
5671
if test "$GXX" = yes; then
5672
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5673
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5677
# All AIX code is PIC.
5678
if test "$host_cpu" = ia64; then
5679
# AIX 5 now supports IA64 processor
5680
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5684
# FIXME: we need at least 68020 code to build shared libraries, but
5685
# adding the `-m68020' flag to GCC prevents building anything better,
5687
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5689
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5690
# PIC is the default for these OSes.
5692
mingw* | cygwin* | os2* | pw32*)
5693
# This hack is so that the source file can tell whether it is being
5694
# built for inclusion in a dll (and should export symbols for example).
5695
# Although the cygwin gcc ignores -fPIC, still need this for old-style
5696
# (--disable-auto-import) libraries
5697
m4_if([$1], [GCJ], [],
5698
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5700
darwin* | rhapsody*)
5701
# PIC is the default on this platform
5702
# Common symbols not allowed in MH_DYLIB files
5703
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5706
# DJGPP does not support shared libraries at all
5707
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5710
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
5711
# Instead, we relocate shared libraries at runtime.
5714
if test -d /usr/nec; then
5715
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5719
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5725
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5730
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5736
# All AIX code is PIC.
5737
if test "$host_cpu" = ia64; then
5738
# AIX 5 now supports IA64 processor
5739
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5741
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5745
case $cc_basename in
5747
# Green Hills C++ Compiler
5748
# _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
5753
# PIC is the default on this platform
5754
# Common symbols not allowed in MH_DYLIB files
5755
case $cc_basename in
5757
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5758
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5763
case $cc_basename in
5765
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5768
# Green Hills C++ Compiler
5769
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5775
freebsd* | dragonfly*)
5776
# FreeBSD uses GNU C++
5778
hpux9* | hpux10* | hpux11*)
5779
case $cc_basename in
5781
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5782
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5783
if test "$host_cpu" != ia64; then
5784
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5788
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5789
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5795
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5804
# This is c89, which is MS Visual C++ (no shared libs)
5805
# Anyone wants to do a port?
5807
irix5* | irix6* | nonstopux*)
5808
case $cc_basename in
5810
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5811
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5812
# CC pic flag -KPIC is the default.
5818
linux* | k*bsd*-gnu)
5819
case $cc_basename in
5822
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5823
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5827
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5828
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5829
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5832
# Portland Group C++ compiler.
5833
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5834
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5835
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5839
# Make sure the PIC flag is empty. It appears that all Alpha
5840
# Linux and Compaq Tru64 Unix objects are PIC.
5841
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5842
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5845
case `$CC -V 2>&1 | sed 5q` in
5848
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5849
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5850
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5861
case $cc_basename in
5863
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5869
netbsd* | netbsdelf*-gnu)
5871
osf3* | osf4* | osf5*)
5872
case $cc_basename in
5874
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5877
# Rational C++ 2.4.1
5878
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5881
# Digital/Compaq C++
5882
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5883
# Make sure the PIC flag is empty. It appears that all Alpha
5884
# Linux and Compaq Tru64 Unix objects are PIC.
5885
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5886
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5895
case $cc_basename in
5897
# Sun C++ 4.2, 5.x and Centerline C++
5898
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5899
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5900
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5903
# Green Hills C++ Compiler
5904
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5911
case $cc_basename in
5914
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5915
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5919
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5926
case $cc_basename in
5928
# NonStop-UX NCC 3.20
5929
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5935
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5936
case $cc_basename in
5938
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5939
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5940
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5947
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5953
if test "$GCC" = yes; then
5954
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5955
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5959
# All AIX code is PIC.
5960
if test "$host_cpu" = ia64; then
5961
# AIX 5 now supports IA64 processor
5962
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5967
# FIXME: we need at least 68020 code to build shared libraries, but
5968
# adding the `-m68020' flag to GCC prevents building anything better,
5970
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5973
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5974
# PIC is the default for these OSes.
5977
mingw* | cygwin* | pw32* | os2*)
5978
# This hack is so that the source file can tell whether it is being
5979
# built for inclusion in a dll (and should export symbols for example).
5980
# Although the cygwin gcc ignores -fPIC, still need this for old-style
5981
# (--disable-auto-import) libraries
5982
m4_if([$1], [GCJ], [],
5983
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5986
darwin* | rhapsody*)
5987
# PIC is the default on this platform
5988
# Common symbols not allowed in MH_DYLIB files
5989
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5993
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
5994
# Instead, we relocate shared libraries at runtime.
5998
# Just because we use GCC doesn't mean we suddenly get shared libraries
5999
# on systems that don't support them.
6000
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6005
if test -d /usr/nec; then
6006
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6011
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6018
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6024
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6028
# PORTME Check for flag to pass linker flags through the system compiler.
6031
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6032
if test "$host_cpu" = ia64; then
6033
# AIX 5 now supports IA64 processor
6034
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6036
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6040
# PIC is the default on this platform
6041
# Common symbols not allowed in MH_DYLIB files
6042
case $cc_basename in
6044
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6045
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6050
mingw* | cygwin* | pw32* | os2*)
6051
# This hack is so that the source file can tell whether it is being
6052
# built for inclusion in a dll (and should export symbols for example).
6053
m4_if([$1], [GCJ], [],
6054
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
6057
hpux9* | hpux10* | hpux11*)
6058
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6059
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6066
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6069
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6070
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6073
irix5* | irix6* | nonstopux*)
6074
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6075
# PIC (with -KPIC) is the default.
6076
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6080
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6081
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6084
linux* | k*bsd*-gnu)
6085
case $cc_basename in
6087
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6088
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6089
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6091
pgcc* | pgf77* | pgf90* | pgf95*)
6092
# Portland Group compilers (*not* the Pentium gcc compiler,
6093
# which looks to be a dead project)
6094
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6095
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6096
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6099
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6100
# All Alpha code is PIC.
6101
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6104
case `$CC -V 2>&1 | sed 5q` in
6107
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6108
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6109
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6112
# Sun Fortran 8.3 passes all unrecognized flags to the linker
6113
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6114
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6115
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
6122
osf3* | osf4* | osf5*)
6123
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6124
# All OSF/1 code is PIC.
6125
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6129
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6133
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6134
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6135
case $cc_basename in
6137
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6139
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6144
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6145
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6146
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6149
sysv4 | sysv4.2uw2* | sysv4.3*)
6150
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6151
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6152
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6156
if test -d /usr/nec ;then
6157
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6158
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6162
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6163
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6164
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6165
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6169
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6170
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6174
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6175
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6179
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6184
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
6187
# Check to make sure the PIC flag actually works.
6189
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6190
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6191
_LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
6192
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6193
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
6195
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6197
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6198
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6201
# For platforms which do not support PIC, -DPIC is meaningless:
6203
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6206
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6211
# Check to make sure the static flag actually works.
6213
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6214
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6215
_LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
6216
$lt_tmp_static_flag,
6218
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6222
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6223
# ------------------------------------
6224
# See if the linker supports building shared libraries.
6225
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6226
[AC_REQUIRE([LT_AC_PROG_SED])dnl
6227
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6229
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6232
# If we're using GNU nm, then we don't want the "-C" option.
6233
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6234
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6235
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6237
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6241
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6244
_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'
6246
linux* | k*bsd*-gnu)
6247
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
6250
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6253
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6256
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6257
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6258
_LT_AC_TAGVAR(archive_cmds, $1)=
6259
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6260
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6261
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6262
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6263
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6264
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6265
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6266
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6267
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6268
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6269
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6270
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6271
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6272
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6273
_LT_AC_TAGVAR(module_cmds, $1)=
6274
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6275
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6276
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6277
# include_expsyms should be a list of space-separated symbols to be *always*
6278
# included in the symbol list
6279
_LT_AC_TAGVAR(include_expsyms, $1)=
6280
# exclude_expsyms can be an extended regexp of symbols to exclude
6281
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6282
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6283
# as well as any symbol that contains `d'.
6284
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
6285
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6286
# platforms (ab)use it in PIC code, but their linkers get confused if
6287
# the symbol is explicitly referenced. Since portable code cannot
6288
# rely on this symbol name, it's probably fine to never include it in
6289
# preloaded symbol tables.
6290
# Exclude shared library initialization/finalization symbols.
6291
dnl Note also adjust exclude_expsyms for C++ above.
6292
extract_expsyms_cmds=
6293
# Just being paranoid about ensuring that cc_basename is set.
6294
_LT_CC_BASENAME([$compiler])
6296
cygwin* | mingw* | pw32*)
6297
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6298
# When not using gcc, we currently assume that we are using
6299
# Microsoft Visual C++.
6300
if test "$GCC" != yes; then
6305
# we just hope/assume this is gcc and not c89 (= MSVC++)
6313
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
6314
if test "$with_gnu_ld" = yes; then
6315
# If archive_cmds runs LD, not CC, wlarc should be empty
6318
# Set some defaults for GNU ld with shared library support. These
6319
# are reset later if shared libraries are not supported. Putting them
6320
# here allows them to be overridden if necessary.
6321
runpath_var=LD_RUN_PATH
6322
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6323
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6324
# ancient GNU ld didn't support --whole-archive et. al.
6325
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6326
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6328
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6330
supports_anon_versioning=no
6331
case `$LD -v 2>/dev/null` in
6332
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6333
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6334
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6335
*\ 2.11.*) ;; # other 2.11 versions
6336
*) supports_anon_versioning=yes ;;
6339
# See if GNU ld supports shared libraries.
6342
# On AIX/PPC, the GNU linker is very broken
6343
if test "$host_cpu" != ia64; then
6344
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6347
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6348
*** to be unable to reliably create shared libraries on AIX.
6349
*** Therefore, libtool is disabling shared libraries support. If you
6350
*** really care for shared libraries, you may want to modify your PATH
6351
*** so that a non-GNU linker is found, and then restart.
6358
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6359
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6360
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6362
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6363
# that the semantics of dynamic libraries on AmigaOS, at least up
6364
# to version 4, is to share data among multiple programs linked
6365
# with the same dynamic library. Since this doesn't match the
6366
# behavior of shared libraries on other platforms, we can't use
6368
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6372
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6373
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6374
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6375
# support --undefined. This deserves some investigation. FIXME
6376
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6378
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6382
cygwin* | mingw* | pw32*)
6383
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6384
# as there is no search path for DLLs.
6385
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6386
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6387
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6388
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6389
_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'
6391
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6392
_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'
6393
# If the export-symbols file already is a .def file (1st line
6394
# is EXPORTS), use it as is; otherwise, prepend...
6395
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6396
cp $export_symbols $output_objdir/$soname.def;
6398
echo EXPORTS > $output_objdir/$soname.def;
6399
cat $export_symbols >> $output_objdir/$soname.def;
6401
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6403
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6408
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6409
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6410
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6411
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6412
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6413
# Instead, shared libraries are loaded at an image base (0x10000000 by
6414
# default) and relocated if they conflict, which is a slow very memory
6415
# consuming and fragmenting process. To avoid this, we pick a random,
6416
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6417
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6418
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6419
_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'
6422
gnu* | linux* | k*bsd*-gnu)
6423
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6425
case $cc_basename,$host_cpu in
6426
pgcc*) # Portland Group C compiler
6427
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6428
tmp_addflag=' $pic_flag'
6430
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6431
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6432
tmp_addflag=' $pic_flag -Mnomain' ;;
6433
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6434
tmp_addflag=' -i_dynamic' ;;
6435
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6436
tmp_addflag=' -i_dynamic -nofor_main' ;;
6437
ifc* | ifort*) # Intel Fortran compiler
6438
tmp_addflag=' -nofor_main' ;;
6440
case `$CC -V 2>&1 | sed 5q` in
6441
*Sun\ C*) # Sun C 5.9
6442
_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'
6443
tmp_sharedflag='-G' ;;
6444
*Sun\ F*) # Sun Fortran 8.3
6445
tmp_sharedflag='-G' ;;
6447
tmp_sharedflag='-shared' ;;
6449
_LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6451
if test $supports_anon_versioning = yes; then
6452
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6453
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6454
$echo "local: *; };" >> $output_objdir/$libname.ver~
6455
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6457
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
6459
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6463
netbsd* | netbsdelf*-gnu)
6464
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6465
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6468
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6469
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6474
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6475
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6478
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6479
*** create shared libraries on Solaris systems. Therefore, libtool
6480
*** is disabling shared libraries support. We urge you to upgrade GNU
6481
*** binutils to release 2.9.1 or newer. Another option is to modify
6482
*** your PATH or compiler configuration so that the native linker is
6483
*** used, and then restart.
6486
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6487
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6488
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6490
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6494
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6495
case `$LD -v 2>&1` in
6496
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
6497
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6500
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6501
*** reliably create shared libraries on SCO systems. Therefore, libtool
6502
*** is disabling shared libraries support. We urge you to upgrade GNU
6503
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6504
*** your PATH or compiler configuration so that the native linker is
6505
*** used, and then restart.
6510
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6511
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6512
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6513
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6515
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6522
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6524
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6525
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6529
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6530
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6531
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6533
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6538
if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
6540
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6541
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6542
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6545
# PORTME fill in a description of your system's linker (not GNU ld)
6548
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6549
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
6550
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6551
# Note: this linker hardcodes the directories in LIBPATH if there
6552
# are no directories specified by -L.
6553
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6554
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6555
# Neither direct hardcoding nor static linking is supported with a
6557
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6562
if test "$host_cpu" = ia64; then
6563
# On IA64, the linker does run time linking by default, so we don't
6564
# have to do anything special.
6565
aix_use_runtimelinking=no
6566
exp_sym_flag='-Bexport'
6569
# If we're using GNU nm, then we don't want the "-C" option.
6570
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6571
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6572
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6574
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6576
aix_use_runtimelinking=no
6578
# Test if we are trying to use run time linking or normal
6579
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6580
# need to do runtime linking.
6581
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6582
for ld_flag in $LDFLAGS; do
6583
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6584
aix_use_runtimelinking=yes
6591
exp_sym_flag='-bexport'
6592
no_entry_flag='-bnoentry'
6595
# When large executables or shared objects are built, AIX ld can
6596
# have problems creating the table of contents. If linking a library
6597
# or program results in "error TOC overflow" add -mminimal-toc to
6598
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6599
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6601
_LT_AC_TAGVAR(archive_cmds, $1)=''
6602
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6603
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6604
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6606
if test "$GCC" = yes; then
6607
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6608
# We only want to do this on AIX 4.2 and lower, the check
6609
# below for broken collect2 doesn't work under 4.3+
6610
collect2name=`${CC} -print-prog-name=collect2`
6611
if test -f "$collect2name" && \
6612
strings "$collect2name" | grep resolve_lib_name >/dev/null
6614
# We have reworked collect2
6617
# We have old collect2
6618
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6619
# It fails to find uninstalled libraries when the uninstalled
6620
# path is not listed in the libpath. Setting hardcode_minus_L
6621
# to unsupported forces relinking
6622
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6623
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6624
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6628
shared_flag='-shared'
6629
if test "$aix_use_runtimelinking" = yes; then
6630
shared_flag="$shared_flag "'${wl}-G'
6634
if test "$host_cpu" = ia64; then
6635
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6636
# chokes on -Wl,-G. The following line is correct:
6639
if test "$aix_use_runtimelinking" = yes; then
6640
shared_flag='${wl}-G'
6642
shared_flag='${wl}-bM:SRE'
6647
# It seems that -bexpall does not export symbols beginning with
6648
# underscore (_), so it is better to generate a list of symbols to export.
6649
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
6650
if test "$aix_use_runtimelinking" = yes; then
6651
# Warning - without using the other runtime loading flags (-brtl),
6652
# -berok will link without error, but may produce a broken library.
6653
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6654
# Determine the default libpath from the value encoded in an empty executable.
6655
_LT_AC_SYS_LIBPATH_AIX
6656
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6657
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6659
if test "$host_cpu" = ia64; then
6660
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6661
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6662
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6664
# Determine the default libpath from the value encoded in an empty executable.
6665
_LT_AC_SYS_LIBPATH_AIX
6666
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6667
# Warning - without using the other run time loading flags,
6668
# -berok will link without error, but may produce a broken library.
6669
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6670
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6671
# Exported symbols can be pulled into shared objects from archives
6672
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6673
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6674
# This is similar to how AIX traditionally builds its shared libraries.
6675
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6681
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6682
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6683
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6684
# see comment about different semantics on the GNU ld section
6685
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6689
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6692
cygwin* | mingw* | pw32*)
6693
# When not using gcc, we currently assume that we are using
6694
# Microsoft Visual C++.
6695
# hardcode_libdir_flag_spec is actually meaningless, as there is
6696
# no search path for DLLs.
6697
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6698
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6699
# Tell ltmain to make .lib files, not .a files.
6701
# Tell ltmain to make .dll files, not .so files.
6703
# FIXME: Setting linknames here is a bad hack.
6704
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6705
# The linker will automatically build a .lib file if we build a DLL.
6706
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6707
# FIXME: Should let the user specify the lib program.
6708
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6709
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6710
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6713
darwin* | rhapsody*)
6715
rhapsody* | darwin1.[[012]])
6716
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6719
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6720
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6722
case ${MACOSX_DEPLOYMENT_TARGET} in
6724
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6727
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6733
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6734
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6735
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6736
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6737
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6738
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6739
if test "$GCC" = yes ; then
6740
output_verbose_link_cmd='echo'
6741
_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}"
6742
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6743
_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}"
6744
_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}"
6746
case $cc_basename in
6748
output_verbose_link_cmd='echo'
6749
_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'
6750
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6751
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6752
_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}'
6753
_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}'
6756
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6763
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6764
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6765
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6769
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6772
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6773
# support. Future versions do this automatically, but an explicit c++rt0.o
6774
# does not break anything, and helps significantly (at the cost of a little
6777
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6778
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6779
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6780
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6783
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
6785
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6786
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6787
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6788
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6791
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6792
freebsd* | dragonfly*)
6793
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6794
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6795
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6796
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6800
if test "$GCC" = yes; then
6801
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6803
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6805
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6806
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6807
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6809
# hardcode_minus_L: Not really in the search PATH,
6810
# but as the default location of the library.
6811
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6812
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6816
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6817
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6819
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6821
if test "$with_gnu_ld" = no; then
6822
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6823
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6825
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6826
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6828
# hardcode_minus_L: Not really in the search PATH,
6829
# but as the default location of the library.
6830
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6835
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6838
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6841
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6844
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6850
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6853
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6856
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6860
if test "$with_gnu_ld" = no; then
6861
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6862
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6866
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6867
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6868
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6871
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6872
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6874
# hardcode_minus_L: Not really in the search PATH,
6875
# but as the default location of the library.
6876
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6882
irix5* | irix6* | nonstopux*)
6883
if test "$GCC" = yes; then
6884
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6886
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6887
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6889
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6890
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6891
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6894
netbsd* | netbsdelf*-gnu)
6895
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6896
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6898
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6900
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6901
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6902
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6906
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6907
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6908
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6909
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6910
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6914
if test -f /usr/libexec/ld.so; then
6915
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6916
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6917
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6918
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6919
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6920
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6921
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6924
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6925
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6926
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6929
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6930
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6935
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6940
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6941
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6942
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6943
_LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6944
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6948
if test "$GCC" = yes; then
6949
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6950
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6952
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6953
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6955
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6956
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6959
osf4* | osf5*) # as osf3* with the addition of -msym flag
6960
if test "$GCC" = yes; then
6961
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6962
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6963
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6965
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6966
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6967
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6968
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
6970
# Both c and cxx compiler support -rpath directly
6971
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6973
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6977
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6978
if test "$GCC" = yes; then
6980
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6981
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6982
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6985
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6986
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6987
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6989
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6990
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6992
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6994
# The compiler driver will combine and reorder linker options,
6995
# but understands `-z linker_flag'. GCC discards it without `$wl',
6996
# but is careful enough not to reorder.
6997
# Supported since Solaris 2.6 (maybe 2.5.1?)
6998
if test "$GCC" = yes; then
6999
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7001
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7005
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7009
if test "x$host_vendor" = xsequent; then
7010
# Use $CC to link under sequent, because it throws in some extra .o
7011
# files that make .init and .fini sections work.
7012
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7014
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7016
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7017
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
7018
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7019
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7023
case $host_vendor in
7025
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7026
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7029
## LD is ld it makes a PLAMLIB
7030
## CC just makes a GrossModule.
7031
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7032
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7033
_LT_AC_TAGVAR(hardcode_direct, $1)=no
7036
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7037
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7040
runpath_var='LD_RUN_PATH'
7041
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7045
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7046
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7047
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7051
if test -d /usr/nec; then
7052
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7053
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7054
runpath_var=LD_RUN_PATH
7055
hardcode_runpath_var=yes
7056
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
7060
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7061
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7062
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7063
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7064
runpath_var='LD_RUN_PATH'
7066
if test "$GCC" = yes; then
7067
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7068
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7070
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7071
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7075
sysv5* | sco3.2v5* | sco5v6*)
7076
# Note: We can NOT use -z defs as we might desire, because we do not
7077
# link with -lc, and that would cause any symbols used from libc to
7078
# always be unresolved, which means just about no library would
7079
# ever link correctly. If we're not using GNU ld we use -z text
7080
# though, which does catch some bad symbols but isn't as heavy-handed
7082
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7083
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7084
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7085
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7086
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7087
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
7088
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7089
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7090
runpath_var='LD_RUN_PATH'
7092
if test "$GCC" = yes; then
7093
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7094
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7096
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7097
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7102
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7103
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7104
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7108
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7113
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
7114
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7117
# Do we need to explicitly link libc?
7119
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
7121
# Assume -lc should be added
7122
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7124
if test "$enable_shared" = yes && test "$GCC" = yes; then
7125
case $_LT_AC_TAGVAR(archive_cmds, $1) in
7127
# FIXME: we may have to deal with multi-command sequences.
7130
# Test whether the compiler implicitly links with -lc since on some
7131
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7132
# to ld, don't add -lc before -lgcc.
7133
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7135
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7137
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7140
libobjs=conftest.$ac_objext
7142
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7143
pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
7149
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7150
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7151
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
7153
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7155
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7157
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7159
cat conftest.err 1>&5
7162
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
7168
])# AC_LIBTOOL_PROG_LD_SHLIBS
7171
# _LT_AC_FILE_LTDLL_C
7172
# -------------------
7173
# Be careful that the start marker always follows a newline.
7174
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7175
# /* ltdll.c starts here */
7176
# #define WIN32_LEAN_AND_MEAN
7177
# #include <windows.h>
7178
# #undef WIN32_LEAN_AND_MEAN
7179
# #include <stdio.h>
7181
# #ifndef __CYGWIN__
7182
# # ifdef __CYGWIN32__
7183
# # define __CYGWIN__ __CYGWIN32__
7187
# #ifdef __cplusplus
7190
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7191
# #ifdef __cplusplus
7196
# #include <cygwin/cygwin_dll.h>
7197
# DECLARE_CYGWIN_DLL( DllMain );
7199
# HINSTANCE __hDllInstance_base;
7202
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7204
# __hDllInstance_base = hInst;
7207
# /* ltdll.c ends here */
7208
])# _LT_AC_FILE_LTDLL_C
7211
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
7212
# ---------------------------------
7213
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7217
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
7218
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7219
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7220
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7221
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7222
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
7223
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
7225
# This is just to silence aclocal about the macro not being used
7226
ifelse([AC_DISABLE_FAST_INSTALL])
7228
AC_DEFUN([LT_AC_PROG_GCJ],
7229
[AC_CHECK_TOOL(GCJ, gcj, no)
7230
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7234
AC_DEFUN([LT_AC_PROG_RC],
7235
[AC_CHECK_TOOL(RC, windres, no)
7239
# Cheap backport of AS_EXECUTABLE_P and required macros
7240
# from Autoconf 2.59; we should not use $as_executable_p directly.
7244
m4_ifndef([_AS_TEST_PREPARE],
7245
[m4_defun([_AS_TEST_PREPARE],
7246
[if test -x / >/dev/null 2>&1; then
7247
as_executable_p='test -x'
7249
as_executable_p='test -f'
7251
])])# _AS_TEST_PREPARE
7255
# Check whether a file is executable.
7256
m4_ifndef([AS_EXECUTABLE_P],
7257
[m4_defun([AS_EXECUTABLE_P],
7258
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
7259
$as_executable_p $1[]dnl
7260
])])# AS_EXECUTABLE_P
7262
# NOTE: This macro has been submitted for inclusion into #
7263
# GNU Autoconf as AC_PROG_SED. When it is available in #
7264
# a released version of Autoconf we should remove this #
7265
# macro and use it instead. #
7268
# Check for a fully-functional sed program, that truncates
7269
# as few characters as possible. Prefer GNU sed if found.
7270
AC_DEFUN([LT_AC_PROG_SED],
7271
[AC_MSG_CHECKING([for a sed that does not truncate output])
7272
AC_CACHE_VAL(lt_cv_path_SED,
7273
[# Loop through the user's path and test for sed and gsed.
7274
# Then use that list of sed's as ones to test for truncation.
7275
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279
test -z "$as_dir" && as_dir=.
7280
for lt_ac_prog in sed gsed; do
7281
for ac_exec_ext in '' $ac_executable_extensions; do
7282
if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
7283
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7291
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7292
# along with /bin/sed that truncates output.
7293
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7294
test ! -f $lt_ac_sed && continue
7295
cat /dev/null > conftest.in
7297
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7298
# Check for GNU sed and select it if it is found.
7299
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7300
lt_cv_path_SED=$lt_ac_sed
7304
cat conftest.in conftest.in >conftest.tmp
7305
mv conftest.tmp conftest.in
7306
cp conftest.in conftest.nl
7308
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7309
cmp -s conftest.out conftest.nl || break
7310
# 10000 chars as input seems more than enough
7311
test $lt_ac_count -gt 10 && break
7312
lt_ac_count=`expr $lt_ac_count + 1`
7313
if test $lt_ac_count -gt $lt_ac_max; then
7314
lt_ac_max=$lt_ac_count
7315
lt_cv_path_SED=$lt_ac_sed
7322
AC_MSG_RESULT([$SED])
7325
677
# nls.m4 serial 3 (gettext-0.15)
7326
678
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
7327
679
dnl This file is free software; the Free Software Foundation